@para-ui/core 2.2.39 → 2.2.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/Button/SplitButton.d.ts +1 -1
  2. package/Button/index.d.ts +1 -1
  3. package/Carousel/index.d.ts +2 -2
  4. package/Cascader/index.js +1 -1
  5. package/Collapse/collapsePanel.d.ts +1 -1
  6. package/Collapse/index.d.ts +1 -1
  7. package/Collapse/util.d.ts +2 -2
  8. package/ComboSelect/WithTabsCombo/interface.d.ts +3 -3
  9. package/ComboSelect/index.d.ts +1 -1
  10. package/ComboSelect/index.js +1 -1
  11. package/ComboSelect/interface.d.ts +3 -3
  12. package/DatePicker/generatePicker/index.d.ts +16 -16
  13. package/DatePicker/index.d.ts +4 -4
  14. package/Drawer/interface.d.ts +3 -3
  15. package/Dropdown/index.d.ts +1 -1
  16. package/DynamicMultiBox/formItem.d.ts +1 -1
  17. package/DynamicMultiBox/index.js +1 -1
  18. package/DynamicMultiBox/interface.d.ts +2 -2
  19. package/Form/index.d.ts +1 -1
  20. package/Form/index.js +1 -1
  21. package/FormItem/index.d.ts +1 -1
  22. package/FormItem/index.js +1 -1
  23. package/FormItem/validateFunction.d.ts +1 -1
  24. package/FunctionModal/index.js +1 -1
  25. package/Menu/index.js +1 -1
  26. package/Menu/interface.d.ts +2 -2
  27. package/Menu/verticalMenuList.d.ts +1 -1
  28. package/Message/index.d.ts +1 -1
  29. package/Modal/Confirm/index.d.ts +2 -2
  30. package/Modal/index.d.ts +1 -1
  31. package/Notification/index.d.ts +2 -2
  32. package/OperateBtn/index.js +1 -1
  33. package/PageHeader/interface.d.ts +1 -1
  34. package/PopConfirm/index.d.ts +1 -1
  35. package/PopoverNew/TooltipNew/interface.d.ts +1 -1
  36. package/Progress/index.d.ts +6 -6
  37. package/Progress/index.js +1 -1
  38. package/README.md +12 -0
  39. package/Selector/index.js +1 -1
  40. package/SelectorPicker/index.js +1 -1
  41. package/Slider/index.d.ts +1 -1
  42. package/Slider/interface.d.ts +2 -2
  43. package/Stepper/index.d.ts +1 -1
  44. package/Switch/index.d.ts +2 -2
  45. package/Table/index.js +1 -1
  46. package/Table/interface.d.ts +5 -5
  47. package/Tag/TagGroup.d.ts +1 -1
  48. package/Tag/index.d.ts +2 -2
  49. package/TimePicker/index.d.ts +1 -1
  50. package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  51. package/Tooltip/index.d.ts +1 -1
  52. package/Tree/index.js +1 -1
  53. package/Tree/interface.d.ts +6 -6
  54. package/Upload/Dragger/index.d.ts +1 -1
  55. package/Upload/ImageUpload/index.d.ts +1 -1
  56. package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
  57. package/Upload/index.d.ts +1 -1
  58. package/Upload/index.js +1 -1
  59. package/Upload/interface.d.ts +2 -2
  60. package/cdn/AutoBox/index.js +1 -1
  61. package/cdn/AutoTips/index.js +1 -1
  62. package/cdn/Breadcrumbs/index.js +1 -1
  63. package/cdn/Button/index.js +5 -5
  64. package/cdn/ButtonGroup/index.js +5 -5
  65. package/cdn/Cascader/index.js +6 -6
  66. package/cdn/Checkbox/index.js +5 -5
  67. package/cdn/CheckboxGroup/index.js +5 -5
  68. package/cdn/Collapse/index.js +2 -2
  69. package/cdn/ColorPicker/index.js +1 -1
  70. package/cdn/ComboSelect/index.js +2 -2
  71. package/cdn/DatePicker/index.js +8 -8
  72. package/cdn/Desktop/index.js +2 -2
  73. package/cdn/Drawer/index.js +5 -5
  74. package/cdn/Dropdown/index.js +3 -3
  75. package/cdn/DynamicMultiBox/index.js +8 -8
  76. package/cdn/Form/index.js +2 -2
  77. package/cdn/FormItem/index.js +5 -5
  78. package/cdn/FunctionModal/index.js +5 -5
  79. package/cdn/Help/index.js +1 -1
  80. package/cdn/InputLang/index.js +1 -1
  81. package/cdn/InputNumber/index.js +5 -5
  82. package/cdn/Label/index.js +1 -1
  83. package/cdn/Menu/index.js +2 -2
  84. package/cdn/Modal/index.js +1 -1
  85. package/cdn/MultiBox/index.js +5 -5
  86. package/cdn/Notification/index.js +2 -2
  87. package/cdn/OperateBtn/index.js +1 -1
  88. package/cdn/PageHeader/index.js +5 -5
  89. package/cdn/Pagination/index.js +1 -1
  90. package/cdn/ParauiProvider/index.js +2 -2
  91. package/cdn/PasswordRules/index.js +2 -2
  92. package/cdn/PopConfirm/index.js +5 -5
  93. package/cdn/Popover/index.js +1 -1
  94. package/cdn/PopoverNew/index.js +3 -3
  95. package/cdn/Progress/index.js +1 -1
  96. package/cdn/Radio/index.js +5 -5
  97. package/cdn/RadioGroup/index.js +6 -6
  98. package/cdn/Search/index.js +5 -5
  99. package/cdn/Select/index.js +1 -1
  100. package/cdn/SelectInput/index.js +1 -1
  101. package/cdn/Selector/index.js +10 -10
  102. package/cdn/SelectorPicker/index.js +10 -10
  103. package/cdn/SingleBox/index.js +5 -5
  104. package/cdn/Slider/index.js +3 -3
  105. package/cdn/Stepper/index.js +3 -3
  106. package/cdn/Switch/index.js +5 -5
  107. package/cdn/Table/index.js +7 -7
  108. package/cdn/Tabs/index.js +6 -6
  109. package/cdn/TextField/index.js +1 -1
  110. package/cdn/TimePicker/index.js +8 -8
  111. package/cdn/Timeline/index.js +2 -2
  112. package/cdn/ToggleButton/index.js +1 -1
  113. package/cdn/Tooltip/index.js +1 -1
  114. package/cdn/Transfer/index.js +5 -5
  115. package/cdn/Tree/index.js +2 -2
  116. package/cdn/Upload/index.js +10 -10
  117. package/index.js +1 -1
  118. package/package.json +2 -2
@@ -3,7 +3,7 @@
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},18872:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-slider{position:relative;height:8px;padding:0;width:100%;border-radius:4px;touch-action:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-rail{position:absolute;width:100%;background-color:rgba(171,176,185,.2);height:8px;border-radius:4px}.paraui-slider-track{position:absolute;left:0;height:8px;border-radius:4px;background-color:#3666d6}.paraui-slider-handle{position:absolute;width:16px;height:16px;cursor:pointer;margin-top:-4px;border-radius:50%;border:solid 2px #3666d6;background-color:#fff;touch-action:pan-x}.paraui-slider-handle-dragging{border-color:#3666d6;box-shadow:0 0 5px rgba(54,102,214,.2);outline:2px solid rgba(54,102,214,.2)}.paraui-slider-handle:focus{outline:none}.paraui-slider-handle-click-focused:focus{border-color:#3666d6;box-shadow:unset}.paraui-slider-handle:hover{border-color:#3666d6}.paraui-slider-handle:active{border-color:#3666d6;box-shadow:0 0 5px rgba(54,102,214,.2);outline:2px solid rgba(54,102,214,.2);cursor:grabbing}.paraui-slider-mark{position:absolute;top:18px;left:0;width:100%;font-size:12px}.paraui-slider-mark-text{position:absolute;display:inline-block;vertical-align:middle;text-align:center;cursor:pointer;color:#999}.paraui-slider-mark-text-active{color:#666}.paraui-slider-step{position:absolute;width:100%;height:8px;background:rgba(0,0,0,0)}.paraui-slider-dot{position:absolute;bottom:-2px;margin-left:-4px;width:12px;height:12px;border:solid 2px rgba(171,176,185,.4);background-color:#fff;cursor:pointer;border-radius:50%;vertical-align:middle}.paraui-slider-dot-active{border-color:#3666d6}.paraui-slider-dot-reverse{margin-right:-4px}.paraui-slider-disabled{background-color:#e9e9e9}.paraui-slider-disabled .paraui-slider-track{background-color:#ccc}.paraui-slider-disabled .paraui-slider-handle,.paraui-slider-disabled .paraui-slider-dot{border-color:#ccc;box-shadow:none;background-color:#fff;cursor:not-allowed}.paraui-slider-disabled .paraui-slider-mark-text,.paraui-slider-disabled .paraui-slider-dot{cursor:not-allowed !important}.paraui-slider-vertical{width:14px;height:100%;padding:0 5px}.paraui-slider-vertical .paraui-slider-rail{height:100%;width:4px}.paraui-slider-vertical .paraui-slider-track{left:5px;bottom:0;width:4px}.paraui-slider-vertical .paraui-slider-handle{margin-left:-6px;touch-action:pan-y}.paraui-slider-vertical .paraui-slider-mark{top:0;left:18px;height:100%}.paraui-slider-vertical .paraui-slider-step{height:100%;width:4px}.paraui-slider-vertical .paraui-slider-dot{left:0px;margin-bottom:-4px}.paraui-slider-vertical .paraui-slider-dot:first-child{margin-bottom:-4px}.paraui-slider-vertical .paraui-slider-dot:last-child{margin-bottom:-4px}.paraui-slider-tooltip-zoom-down-enter,.paraui-slider-tooltip-zoom-down-appear{animation-duration:.3s;animation-fill-mode:both;display:block !important;animation-play-state:paused}.paraui-slider-tooltip-zoom-down-leave{animation-duration:.3s;animation-fill-mode:both;display:block !important;animation-play-state:paused}.paraui-slider-tooltip-zoom-down-enter.paraui-slider-tooltip-zoom-down-enter-active,.paraui-slider-tooltip-zoom-down-appear.paraui-slider-tooltip-zoom-down-appear-active{animation-name:rcSliderTooltipZoomDownIn;animation-play-state:running}.paraui-slider-tooltip-zoom-down-leave.paraui-slider-tooltip-zoom-down-leave-active{animation-name:rcSliderTooltipZoomDownOut;animation-play-state:running}.paraui-slider-tooltip-zoom-down-enter,.paraui-slider-tooltip-zoom-down-appear{transform:scale(0, 0);animation-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.paraui-slider-tooltip-zoom-down-leave{animation-timing-function:cubic-bezier(0.755, 0.05, 0.855, 0.06)}@keyframes rcSliderTooltipZoomDownIn{0%{opacity:0;transform-origin:50% 100%;transform:scale(0, 0)}100%{transform-origin:50% 100%;transform:scale(1, 1)}}@keyframes rcSliderTooltipZoomDownOut{0%{transform-origin:50% 100%;transform:scale(1, 1)}100%{opacity:0;transform-origin:50% 100%;transform:scale(0, 0)}}.paraui-slider-tooltip{position:absolute;display:block;left:-9999px;top:-9999px;max-width:250px;z-index:1500;visibility:visible;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-tooltip *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-tooltip-hidden{display:none}.paraui-slider-tooltip-inner{min-width:24px;padding-bottom:3px;font-size:14px;line-height:1;color:rgba(46,55,67,.7);text-align:center;text-decoration:none;background-color:rgba(0,0,0,0);border-radius:6px;white-space:nowrap;box-shadow:none}.paraui-slider-tooltip-arrow{display:none;position:absolute;width:0;height:0;border-color:rgba(0,0,0,0);border-style:solid}.paraui-slider-tooltip-placement-top .paraui-slider-tooltip-arrow{bottom:4px;left:50%;margin-left:-4px;border-width:4px 4px 0;border-top-color:#6c6c6c}",""]),e.exports=t},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(s," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,u,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<e.length;u++){var s=[].concat(e[u]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),u=n(81866);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},38407:function(e,t,n){var r=n(27040),o=n(14125),i=n(82117),a=n(67518),u=n(54705);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},57071:function(e,t,n){var r=n(10852)(n(55639),"Map");e.exports=r},83369:function(e,t,n){var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),u=n(95265);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},53818:function(e,t,n){var r=n(10852)(n(55639),"Promise");e.exports=r},58525:function(e,t,n){var r=n(10852)(n(55639),"Set");e.exports=r},88668:function(e,t,n){var r=n(83369),o=n(90619),i=n(72385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},46384:function(e,t,n){var r=n(38407),o=n(37465),i=n(63779),a=n(67599),u=n(44758),s=n(34309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,e.exports=c},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},11149:function(e,t,n){var r=n(55639).Uint8Array;e.exports=r},70577:function(e,t,n){var r=n(10852)(n(55639),"WeakMap");e.exports=r},34963:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},14636:function(e,t,n){var r=n(22545),o=n(35694),i=n(1469),a=n(44144),u=n(65776),s=n(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&s(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var m in e)!t&&!c.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,v))||h.push(m);return h}},62488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},82908:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},18470:function(e,t,n){var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},68866:function(e,t,n){var r=n(62488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9454:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},90939:function(e,t,n){var r=n(2492),o=n(37005);e.exports=function e(t,n,i,a,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,u))}},2492:function(e,t,n){var r=n(46384),o=n(67114),i=n(18351),a=n(16096),u=n(64160),s=n(1469),c=n(44144),l=n(36719),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,y){var g=s(e),b=s(t),w=g?p:u(e),x=b?p:u(t),O=(w=w==f?d:w)==d,E=(x=x==f?d:x)==d,k=w==x;if(k&&c(e)){if(!c(t))return!1;g=!0,O=!1}if(k&&!O)return y||(y=new r),g||l(e)?o(e,t,n,v,m,y):i(e,t,w,n,v,m,y);if(!(1&n)){var Z=O&&h.call(e,"__wrapped__"),_=E&&h.call(t,"__wrapped__");if(Z||_){var M=Z?e.value():e,S=_?t.value():t;return y||(y=new r),m(M,S,n,v,y)}}return!!k&&(y||(y=new r),a(e,t,n,v,m,y))}},28458:function(e,t,n){var r=n(23560),o=n(15346),i=n(13218),a=n(80346),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:u).test(a(e))}},38749:function(e,t,n){var r=n(44239),o=n(41780),i=n(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},280:function(e,t,n){var r=n(25726),o=n(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},22545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},74757:function(e){e.exports=function(e,t){return e.has(t)}},14429:function(e,t,n){var r=n(55639)["__core-js_shared__"];e.exports=r},67114:function(e,t,n){var r=n(88668),o=n(82908),i=n(74757);e.exports=function(e,t,n,a,u,s){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,m=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<l;){var y=e[h],g=t[h];if(a)var b=c?a(g,y,h,t,e,s):a(y,g,h,e,t,s);if(void 0!==b){if(b)continue;v=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(y===e||u(y,e,n,a,s)))return m.push(t)}))){v=!1;break}}else if(y!==g&&!u(y,g,n,a,s)){v=!1;break}}return s.delete(e),s.delete(t),v}},18351:function(e,t,n){var r=n(62705),o=n(11149),i=n(77813),a=n(67114),u=n(68776),s=n(21814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=u;case"[object Set]":var h=1&r;if(d||(d=s),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var m=a(d(e),d(t),r,c,f,p);return p.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},16096:function(e,t,n){var r=n(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,u){var s=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!s)return!1;for(var f=l;f--;){var p=c[f];if(!(s?p in t:o.call(t,p)))return!1}var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var v=!0;u.set(e,t),u.set(t,e);for(var m=s;++f<l;){var y=e[p=c[f]],g=t[p];if(i)var b=s?i(g,y,p,t,e,u):i(y,g,p,e,t,u);if(!(void 0===b?y===g||a(y,g,n,i,u):b)){v=!1;break}m||(m="constructor"==p)}if(v&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return u.delete(e),u.delete(t),v}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:function(e,t,n){var r=n(68866),o=n(99551),i=n(3674);e.exports=function(e){return r(e,i,o)}},45050:function(e,t,n){var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10852:function(e,t,n){var r=n(28458),o=n(47801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},99551:function(e,t,n){var r=n(34963),o=n(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},64160:function(e,t,n){var r=n(18552),o=n(57071),i=n(53818),a=n(58525),u=n(70577),s=n(44239),c=n(80346),l="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",v=c(r),m=c(o),y=c(i),g=c(a),b=c(u),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=f||a&&w(new a)!=p||u&&w(new u)!=d)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return h;case m:return l;case y:return f;case g:return p;case b:return d}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},51789:function(e,t,n){var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},21327:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},81866:function(e,t,n){var r=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var r,o=n(14429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var r=n(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},82117:function(e,t,n){var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},54705:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:function(e,t,n){var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),o=n(57071),i=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35694:function(e,t,n){var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},44144:function(e,t,n){e=n.nmd(e);var r=n(55639),o=n(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s},18446:function(e,t,n){var r=n(90939);e.exports=function(e,t){return r(e,t)}},23560:function(e,t,n){var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},36719:function(e,t,n){var r=n(38749),o=n(7518),i=n(31167),a=i&&i.isTypedArray,u=a?o(a):r;e.exports=u},3674:function(e,t,n){var r=n(14636),o=n(280),i=n(98612);e.exports=function(e){return i(e)?r(e):o(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},80334:function(e,t,n){"use strict";var r={};function o(e,t){0}function i(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}t.ZP=function(e,t){i(o,e,t)}},51162:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},18872:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-slider{position:relative;height:8px;padding:0;width:100%;border-radius:4px;touch-action:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-rail{position:absolute;width:100%;background-color:rgba(171,176,185,.2);height:8px;border-radius:4px}.paraui-slider-track{position:absolute;left:0;height:8px;border-radius:4px;background-color:#3666d6}.paraui-slider-handle{position:absolute;width:16px;height:16px;cursor:pointer;margin-top:-4px;border-radius:50%;border:solid 2px #3666d6;background-color:#fff;touch-action:pan-x}.paraui-slider-handle-dragging{border-color:#3666d6;box-shadow:0 0 5px rgba(54,102,214,.2);outline:2px solid rgba(54,102,214,.2)}.paraui-slider-handle:focus{outline:none}.paraui-slider-handle-click-focused:focus{border-color:#3666d6;box-shadow:unset}.paraui-slider-handle:hover{border-color:#3666d6}.paraui-slider-handle:active{border-color:#3666d6;box-shadow:0 0 5px rgba(54,102,214,.2);outline:2px solid rgba(54,102,214,.2);cursor:grabbing}.paraui-slider-mark{position:absolute;top:18px;left:0;width:100%;font-size:12px}.paraui-slider-mark-text{position:absolute;display:inline-block;vertical-align:middle;text-align:center;cursor:pointer;color:#999}.paraui-slider-mark-text-active{color:#666}.paraui-slider-step{position:absolute;width:100%;height:8px;background:rgba(0,0,0,0)}.paraui-slider-dot{position:absolute;bottom:-2px;margin-left:-4px;width:12px;height:12px;border:solid 2px rgba(171,176,185,.4);background-color:#fff;cursor:pointer;border-radius:50%;vertical-align:middle}.paraui-slider-dot-active{border-color:#3666d6}.paraui-slider-dot-reverse{margin-right:-4px}.paraui-slider-disabled{background-color:#e9e9e9}.paraui-slider-disabled .paraui-slider-track{background-color:#ccc}.paraui-slider-disabled .paraui-slider-handle,.paraui-slider-disabled .paraui-slider-dot{border-color:#ccc;box-shadow:none;background-color:#fff;cursor:not-allowed}.paraui-slider-disabled .paraui-slider-mark-text,.paraui-slider-disabled .paraui-slider-dot{cursor:not-allowed !important}.paraui-slider-vertical{width:14px;height:100%;padding:0 5px}.paraui-slider-vertical .paraui-slider-rail{height:100%;width:4px}.paraui-slider-vertical .paraui-slider-track{left:5px;bottom:0;width:4px}.paraui-slider-vertical .paraui-slider-handle{margin-left:-6px;touch-action:pan-y}.paraui-slider-vertical .paraui-slider-mark{top:0;left:18px;height:100%}.paraui-slider-vertical .paraui-slider-step{height:100%;width:4px}.paraui-slider-vertical .paraui-slider-dot{left:0px;margin-bottom:-4px}.paraui-slider-vertical .paraui-slider-dot:first-child{margin-bottom:-4px}.paraui-slider-vertical .paraui-slider-dot:last-child{margin-bottom:-4px}.paraui-slider-tooltip-zoom-down-enter,.paraui-slider-tooltip-zoom-down-appear{animation-duration:.3s;animation-fill-mode:both;display:block !important;animation-play-state:paused}.paraui-slider-tooltip-zoom-down-leave{animation-duration:.3s;animation-fill-mode:both;display:block !important;animation-play-state:paused}.paraui-slider-tooltip-zoom-down-enter.paraui-slider-tooltip-zoom-down-enter-active,.paraui-slider-tooltip-zoom-down-appear.paraui-slider-tooltip-zoom-down-appear-active{animation-name:rcSliderTooltipZoomDownIn;animation-play-state:running}.paraui-slider-tooltip-zoom-down-leave.paraui-slider-tooltip-zoom-down-leave-active{animation-name:rcSliderTooltipZoomDownOut;animation-play-state:running}.paraui-slider-tooltip-zoom-down-enter,.paraui-slider-tooltip-zoom-down-appear{transform:scale(0, 0);animation-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.paraui-slider-tooltip-zoom-down-leave{animation-timing-function:cubic-bezier(0.755, 0.05, 0.855, 0.06)}@keyframes rcSliderTooltipZoomDownIn{0%{opacity:0;transform-origin:50% 100%;transform:scale(0, 0)}100%{transform-origin:50% 100%;transform:scale(1, 1)}}@keyframes rcSliderTooltipZoomDownOut{0%{transform-origin:50% 100%;transform:scale(1, 1)}100%{opacity:0;transform-origin:50% 100%;transform:scale(0, 0)}}.paraui-slider-tooltip{position:absolute;display:block;left:-9999px;top:-9999px;max-width:250px;z-index:1500;visibility:visible;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-tooltip *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.paraui-slider-tooltip-hidden{display:none}.paraui-slider-tooltip-inner{min-width:24px;padding-bottom:3px;font-size:14px;line-height:1;color:rgba(46,55,67,.7);text-align:center;text-decoration:none;background-color:rgba(0,0,0,0);border-radius:6px;white-space:nowrap;box-shadow:none}.paraui-slider-tooltip-arrow{display:none;position:absolute;width:0;height:0;border-color:rgba(0,0,0,0);border-style:solid}.paraui-slider-tooltip-placement-top .paraui-slider-tooltip-arrow{bottom:4px;left:50%;margin-left:-4px;border-width:4px 4px 0;border-top-color:#6c6c6c}",""]),e.exports=t},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(s," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,u,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<e.length;u++){var s=[].concat(e[u]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},80334:function(e,t,n){"use strict";var r={};function o(e,t){0}function i(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}t.ZP=function(e,t){i(o,e,t)}},51162:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;
7
7
  /** @license React v16.13.1
8
8
  * react-is.production.min.js
9
9
  *
@@ -11,5 +11,5 @@
11
11
  *
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case v:case s:return e;default:return t}}case o:return t}}}function O(e){return x(e)===f}t.isMemo=function(e){return x(e)===v}},11805:function(e,t,n){"use strict";e.exports=n(51162)},74951:function(e,t,n){var r=n(93379),o=n(18872);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function u(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=c(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(e,t),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(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,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},45057:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},97326:function(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,{Z:function(){return r}})},15861:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).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 u(e){r(a,o,i,u,s,"next",e)}function s(e){r(a,o,i,u,s,"throw",e)}u(void 0)}))}}n.d(t,{Z:function(){return o}})},15671:function(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,{Z:function(){return r}})},43144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},29388:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(61120),o=n(78814),i=n(82963);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:function(e,t,n){"use strict";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}n.d(t,{Z:function(){return r}})},87462:function(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,{Z:function(){return r}})},61120:function(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,{Z:function(){return r}})},60136:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(89611);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.Z)(e,t)}},78814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},59199:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},31902:function(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=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}n.d(t,{Z:function(){return r}})},25267:function(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,{Z:function(){return r}})},42786:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4942);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.Z)(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}},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(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}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},82963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(97326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},89611:function(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,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function u(e,t){return(0,r.Z)(e)||(0,o.Z)(e,t)||(0,i.Z)(e,t)||(0,a.Z)()}},89062:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(45057),o=n(59199),i=n(40181),a=n(42786);function u(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},71002:function(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,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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.Z)(e,t):void 0}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e](i,i.exports,o),i.loaded=!0,i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},o.nc=void 0;var i={};return function(){"use strict";o.r(i),o.d(i,{Slider:function(){return yr},default:function(){return gr}});var e=o(8156),t=o.n(e),n=o(1413),r=o(15671),a=o(43144),u=o(60136),s=o(29388),c=o(80334),l=o(4942),f=function(e){var r,o,i=e.className,a=e.included,u=e.vertical,s=e.style,c=e.length,f=e.offset,p=e.reverse;c<0&&(p=!p,c=Math.abs(c),f=100-f);var d=u?(r={},(0,l.Z)(r,p?"top":"bottom","".concat(f,"%")),(0,l.Z)(r,p?"bottom":"top","auto"),(0,l.Z)(r,"height","".concat(c,"%")),r):(o={},(0,l.Z)(o,p?"right":"left","".concat(f,"%")),(0,l.Z)(o,p?"left":"right","auto"),(0,l.Z)(o,"width","".concat(c,"%")),o),h=(0,n.Z)((0,n.Z)({},s),d);return a?t().createElement("div",{className:i,style:h}):null},p=o(87462),d=o(45987),h=o(89062),v=o(61120);function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,v.Z)(e)););return e}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=m(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}var g=o(47111),b=o.n(g);function w(e,t,n,r){var o=b().unstable_batchedUpdates?function(e){b().unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r)}}}var x=o(94184),O=o.n(x),E=function(e){var r=e.prefixCls,o=e.vertical,i=e.reverse,a=e.marks,u=e.dots,s=e.step,f=e.included,p=e.lowerBound,d=e.upperBound,h=e.max,v=e.min,m=e.dotStyle,y=e.activeDotStyle,g=h-v,b=function(e,t,n,r,o,i){(0,c.ZP)(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var u=o;u<=i;u+=r)-1===a.indexOf(u)&&a.push(u);return a}(0,a,u,s,v,h).map((function(e){var a,u="".concat(Math.abs(e-v)/g*100,"%"),s=!f&&e===d||f&&e<=d&&e>=p,c=o?(0,n.Z)((0,n.Z)({},m),{},(0,l.Z)({},i?"top":"bottom",u)):(0,n.Z)((0,n.Z)({},m),{},(0,l.Z)({},i?"right":"left",u));s&&(c=(0,n.Z)((0,n.Z)({},c),y));var h=O()((a={},(0,l.Z)(a,"".concat(r,"-dot"),!0),(0,l.Z)(a,"".concat(r,"-dot-active"),s),(0,l.Z)(a,"".concat(r,"-dot-reverse"),i),a));return t().createElement("span",{className:h,style:c,key:e})}));return t().createElement("div",{className:"".concat(r,"-step")},b)},k=o(71002),Z=function(e){var r=e.className,o=e.vertical,i=e.reverse,a=e.marks,u=e.included,s=e.upperBound,c=e.lowerBound,f=e.max,p=e.min,d=e.onClickLabel,h=Object.keys(a),v=f-p,m=h.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var f,h=a[e],m="object"===(0,k.Z)(h)&&!t().isValidElement(h),y=m?h.label:h;if(!y&&0!==y)return null;var g=!u&&e===s||u&&e<=s&&e>=c,b=O()((f={},(0,l.Z)(f,"".concat(r,"-text"),!0),(0,l.Z)(f,"".concat(r,"-text-active"),g),f)),w=(0,l.Z)({marginBottom:"-50%"},i?"top":"bottom","".concat((e-p)/v*100,"%")),x=(0,l.Z)({transform:"translateX(".concat(i?"50%":"-50%",")"),msTransform:"translateX(".concat(i?"50%":"-50%",")")},i?"right":"left","".concat((e-p)/v*100,"%")),E=o?w:x,Z=m?(0,n.Z)((0,n.Z)({},E),h.style):E;return t().createElement("span",{className:b,style:Z,key:e,onMouseDown:function(t){return d(t,e)},onTouchStart:function(t){return d(t,e)}},y)}));return t().createElement("div",{className:r},m)},_=["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"],M=function(e){(0,u.Z)(i,e);var o=(0,s.Z)(i);function i(){var e;(0,r.Z)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=o.call.apply(o,[this].concat(n))).state={clickFocused:!1},e.onMouseUpListener=void 0,e.handle=void 0,e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){this.onMouseUpListener=w(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,r,o,i=this.props,a=i.prefixCls,u=i.vertical,s=i.reverse,c=i.offset,f=i.style,h=i.disabled,v=i.min,m=i.max,y=i.value,g=i.tabIndex,b=i.ariaLabel,w=i.ariaLabelledBy,x=i.ariaValueTextFormatter,E=(0,d.Z)(i,_),k=O()(this.props.className,(0,l.Z)({},"".concat(a,"-handle-click-focused"),this.state.clickFocused)),Z=u?(e={},(0,l.Z)(e,s?"top":"bottom","".concat(c,"%")),(0,l.Z)(e,s?"bottom":"top","auto"),(0,l.Z)(e,"transform",s?null:"translateY(+50%)"),e):(r={},(0,l.Z)(r,s?"right":"left","".concat(c,"%")),(0,l.Z)(r,s?"left":"right","auto"),(0,l.Z)(r,"transform","translateX(".concat(s?"+":"-","50%)")),r),M=(0,n.Z)((0,n.Z)({},f),Z),S=g||0;return(h||null===g)&&(S=null),x&&(o=x(y)),t().createElement("div",(0,p.Z)({ref:this.setHandleRef,tabIndex:S},E,{className:k,style:M,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":y,"aria-disabled":!!h,"aria-label":b,"aria-labelledby":w,"aria-valuetext":o}))}}]),i}(t().Component),S={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=S.F1&&t<=S.F12)return!1;switch(t){case S.ALT:case S.CAPS_LOCK:case S.CONTEXT_MENU:case S.CTRL:case S.DOWN:case S.END:case S.ESC:case S.HOME:case S.INSERT:case S.LEFT:case S.MAC_FF_META:case S.META:case S.NUMLOCK:case S.NUM_CENTER:case S.PAGE_DOWN:case S.PAGE_UP:case S.PAUSE:case S.PRINT_SCREEN:case S.RIGHT:case S.SHIFT:case S.UP:case S.WIN_KEY:case S.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=S.ZERO&&e<=S.NINE)return!0;if(e>=S.NUM_ZERO&&e<=S.NUM_MULTIPLY)return!0;if(e>=S.A&&e<=S.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case S.SPACE:case S.QUESTION_MARK:case S.NUM_PLUS:case S.NUM_MINUS:case S.NUM_PERIOD:case S.NUM_DIVISION:case S.SEMICOLON:case S.DASH:case S.EQUALS:case S.COMMA:case S.PERIOD:case S.SLASH:case S.APOSTROPHE:case S.SINGLE_QUOTE:case S.OPEN_SQUARE_BRACKET:case S.BACKSLASH:case S.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},T=S;function C(e,t){try{return Object.keys(t).some((function(n){return e.target===(0,g.findDOMNode)(t[n])}))}catch(e){return!1}}function P(e,t){var n=t.min,r=t.max;return e<n||e>r}function j(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function A(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.pow(10,N(r)),s=Math.floor((i*u-o*u)/(r*u)),c=Math.min((e-o)/r,s),l=Math.round(c)*r+o;a.push(l)}var f=a.map((function(t){return Math.abs(e-t)}));return a[f.indexOf(Math.min.apply(Math,(0,h.Z)(f)))]}function N(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function L(e,t){return e?t.clientY:t.pageX}function D(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function R(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function H(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function V(e,t){var n=t.step,r=isFinite(A(e,t))?A(e,t):0;return null===n?r:parseFloat(r.toFixed(N(n)))}function F(e){e.stopPropagation(),e.preventDefault()}function I(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case T.UP:i=t&&n?o:r;break;case T.RIGHT:i=!t&&n?o:r;break;case T.DOWN:i=t&&n?r:o;break;case T.LEFT:i=!t&&n?r:o;break;case T.END:return function(e,t){return t.max};case T.HOME:return function(e,t){return t.min};case T.PAGE_UP:return function(e,t){return e+2*t.step};case T.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}}var B=["index"];function U(){}function z(e){var o,i;return i=o=function(e){(0,u.Z)(i,e);var o=(0,s.Z)(i);function i(e){var t;(0,r.Z)(this,i),(t=o.call(this,e)).handlesRefs=void 0,t.sliderRef=void 0,t.document=void 0,t.dragOffset=void 0,t.prevMovedHandleIndex=void 0,t.onTouchMoveListener=void 0,t.onTouchUpListener=void 0,t.onMouseMoveListener=void 0,t.onMouseUpListener=void 0,t.dragTrack=void 0,t.startBounds=void 0,t.onDown=function(e,n){var r=n,o=t.props,i=o.draggableTrack,a=o.vertical,u=t.state.bounds,s=i&&t.positionGetValue&&t.positionGetValue(r)||[],c=C(e,t.handlesRefs);if(t.dragTrack=i&&u.length>=2&&!c&&!s.map((function(e,t){var n=!!t||e>=u[t];return t===s.length-1?e<=u[t]:n})).some((function(e){return!e})),t.dragTrack)t.dragOffset=r,t.startBounds=(0,h.Z)(u);else{if(c){var l=R(a,e.target);t.dragOffset=r-l,r=l}else t.dragOffset=0;t.onStart(r)}},t.onMouseDown=function(e){if(0===e.button){t.removeDocumentEvents();var n=L(t.props.vertical,e);t.onDown(e,n),t.addDocumentMouseEvents()}},t.onTouchStart=function(e){if(!j(e)){var n=D(t.props.vertical,e);t.onDown(e,n),t.addDocumentTouchEvents(),F(e)}},t.onFocus=function(e){var n=t.props,r=n.onFocus,o=n.vertical;if(C(e,t.handlesRefs)&&!t.dragTrack){var i=R(o,e.target);t.dragOffset=0,t.onStart(i),F(e),r&&r(e)}},t.onBlur=function(e){var n=t.props.onBlur;t.dragTrack||t.onEnd(),n&&n(e)},t.onMouseUp=function(){t.handlesRefs[t.prevMovedHandleIndex]&&t.handlesRefs[t.prevMovedHandleIndex].clickFocus()},t.onMouseMove=function(e){if(t.sliderRef){var n=L(t.props.vertical,e);t.onMove(e,n-t.dragOffset,t.dragTrack,t.startBounds)}else t.onEnd()},t.onTouchMove=function(e){if(!j(e)&&t.sliderRef){var n=D(t.props.vertical,e);t.onMove(e,n-t.dragOffset,t.dragTrack,t.startBounds)}else t.onEnd()},t.onKeyDown=function(e){t.sliderRef&&C(e,t.handlesRefs)&&t.onKeyboard(e)},t.onClickMarkLabel=function(e,n){e.stopPropagation(),t.onChange({value:n}),t.setState({value:n},(function(){return t.onEnd(!0)}))},t.saveSlider=function(e){t.sliderRef=e};var n=e.step,a=e.max,u=e.min,s=!isFinite(a-u)||(a-u)%n==0;return(0,c.ZP)(!n||Math.floor(n)!==n||s,"Slider[max] - Slider[min] (".concat(a-u,") should be a multiple of Slider[step] (").concat(n,")")),t.handlesRefs={},t}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){y((0,v.Z)(i.prototype),"componentWillUnmount",this)&&y((0,v.Z)(i.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=w(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=w(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=w(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=w(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){var e;this.props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){var n,r;null===(n=e.handlesRefs[t])||void 0===n||null===(r=n.blur)||void 0===r||r.call(n)}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,r=(e-n)/(t.max-n);return Math.max(0,100*r)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,r=this.props,o=r.prefixCls,a=r.className,u=r.marks,s=r.dots,c=r.step,f=r.included,p=r.disabled,d=r.vertical,h=r.reverse,m=r.min,g=r.max,b=r.children,w=r.maximumTrackStyle,x=r.style,k=r.railStyle,_=r.dotStyle,M=r.activeDotStyle,S=y((0,v.Z)(i.prototype),"render",this).call(this),T=S.tracks,C=S.handles,P=O()(o,(e={},(0,l.Z)(e,"".concat(o,"-with-marks"),Object.keys(u).length),(0,l.Z)(e,"".concat(o,"-disabled"),p),(0,l.Z)(e,"".concat(o,"-vertical"),d),(0,l.Z)(e,a,a),e));return t().createElement("div",{ref:this.saveSlider,className:P,onTouchStart:p?U:this.onTouchStart,onMouseDown:p?U:this.onMouseDown,onMouseUp:p?U:this.onMouseUp,onKeyDown:p?U:this.onKeyDown,onFocus:p?U:this.onFocus,onBlur:p?U:this.onBlur,style:x},t().createElement("div",{className:"".concat(o,"-rail"),style:(0,n.Z)((0,n.Z)({},w),k)}),T,t().createElement(E,{prefixCls:o,vertical:d,reverse:h,marks:u,dots:s,step:c,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:g,min:m,dotStyle:_,activeDotStyle:M}),C,t().createElement(Z,{className:"".concat(o,"-mark"),onClickLabel:p?U:this.onClickMarkLabel,vertical:d,marks:u,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:g,min:m,reverse:h}),b)}}]),i}(e),o.displayName="ComponentEnhancer(".concat(e.displayName,")"),o.defaultProps=(0,n.Z)((0,n.Z)({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var n=e.index,r=(0,d.Z)(e,B);return delete r.dragging,null===r.value?null:t().createElement(M,(0,p.Z)({},r,{key:n}))},onBeforeChange:U,onChange:U,onAfterChange:U,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),i}var W=function(e){(0,u.Z)(i,e);var o=(0,s.Z)(i);function i(e){var t;(0,r.Z)(this,i),(t=o.call(this,e)).positionGetValue=function(e){return[]},t.startValue=void 0,t.startPosition=void 0,t.prevMovedHandleIndex=void 0,t.onEnd=function(e){var n=t.state.dragging;t.removeDocumentEvents(),(n||e)&&t.props.onAfterChange(t.getValue()),t.setState({dragging:!1})};var n=void 0!==e.defaultValue?e.defaultValue:e.min,a=void 0!==e.value?e.value:n;return t.state={value:t.trimAlignValue(a),dragging:!1},(0,c.ZP)(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),(0,c.ZP)(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),t}return(0,a.Z)(i,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.min,o=n.max,i=n.value,a=n.onChange;if("min"in this.props||"max"in this.props){var u=void 0!==i?i:t.value,s=this.trimAlignValue(u,this.props);s!==t.value&&(this.setState({value:s}),r===e.min&&o===e.max||!P(u,this.props)||a(s))}}},{key:"onChange",value:function(e){var t=this.props,r=!("value"in t),o=e.value>this.props.max?(0,n.Z)((0,n.Z)({},e),{},{value:this.props.max}):e;r&&this.setState(o);var i=o.value;t.onChange(i)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){F(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=I(e,t.vertical,n);if(r){F(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){var e=this.props.startPoint||this.props.min;return this.state.value>e?e:this.state.value}},{key:"getUpperBound",value:function(){return this.state.value<this.props.startPoint?this.props.startPoint:this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var r=(0,n.Z)((0,n.Z)({},this.props),t),o=H(e,r);return V(o,r)}},{key:"render",value:function(){var e=this,r=this.props,o=r.prefixCls,i=r.vertical,a=r.included,u=r.disabled,s=r.minimumTrackStyle,c=r.trackStyle,l=r.handleStyle,p=r.tabIndex,d=r.ariaLabelForHandle,h=r.ariaLabelledByForHandle,v=r.ariaValueTextFormatterForHandle,m=r.min,y=r.max,g=r.startPoint,b=r.reverse,w=r.handle,x=this.state,O=x.value,E=x.dragging,k=this.calcOffset(O),Z=w({className:"".concat(o,"-handle"),prefixCls:o,vertical:i,offset:k,value:O,dragging:E,disabled:u,min:m,max:y,reverse:b,index:0,tabIndex:p,ariaLabel:d,ariaLabelledBy:h,ariaValueTextFormatter:v,style:l[0]||l,ref:function(t){return e.saveHandle(0,t)}}),_=void 0!==g?this.calcOffset(g):0,M=c[0]||c;return{tracks:t().createElement(f,{className:"".concat(o,"-track"),vertical:i,included:a,offset:_,reverse:b,length:k-_,style:(0,n.Z)((0,n.Z)({},s),M)}),handles:Z}}}]),i}(t().Component),G=z(W),X=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,u=Number(a),s=H(t,o),c=s;return i||null==n||void 0===r||(n>0&&s<=r[n-1]+u&&(c=r[n-1]+u),n<r.length-1&&s>=r[n+1]-u&&(c=r[n+1]-u)),V(c,o)},Y=function(e){(0,u.Z)(i,e);var o=(0,s.Z)(i);function i(e){var t;(0,r.Z)(this,i),(t=o.call(this,e)).startValue=void 0,t.startPosition=void 0,t.prevMovedHandleIndex=void 0,t.internalPointsCache=void 0,t.handlesRefs=void 0,t.dragTrack=void 0,t.positionGetValue=function(e){var n=t.getValue(),r=t.calcValueByPos(e),o=t.getClosestBound(r),i=t.getBoundNeedMoving(r,o);if(r===n[i])return null;var a=(0,h.Z)(n);return a[i]=r,a},t.onEnd=function(e){var n=t.state.handle;t.removeDocumentEvents(),n||(t.dragTrack=!1),(null!==n||e)&&t.props.onAfterChange(t.getValue()),t.setState({handle:null})};var n=e.count,a=e.min,u=e.max,s=Array.apply(void 0,(0,h.Z)(Array(n+1))).map((function(){return a})),c="defaultValue"in e?e.defaultValue:s,l=(void 0!==e.value?e.value:c).map((function(t,n){return X({value:t,handle:n,props:e})})),f=l[0]===u?0:l.length-1;return t.state={handle:null,recent:f,bounds:l},t}return(0,a.Z)(i,[{key:"calcValueByPos",value:function(e){return 0}},{key:"getSliderLength",value:function(){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.onChange,i=r.value,a=r.min,u=r.max;if(("min"in this.props||"max"in this.props)&&(a!==e.min||u!==e.max)){var s=i||t.bounds;if(s.some((function(e){return P(e,n.props)})))o(s.map((function(e){return H(e,n.props)})))}}},{key:"onChange",value:function(e){var t=this.props;if(!("value"in t))this.setState(e);else{var r={};["handle","recent"].forEach((function(t){void 0!==e[t]&&(r[t]=e[t])})),Object.keys(r).length&&this.setState(r)}var o=(0,n.Z)((0,n.Z)({},this.state),e).bounds;t.onChange(o)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var i=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,i),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var a=(0,h.Z)(n.bounds);a[this.prevMovedHandleIndex]=o,this.onChange({bounds:a})}}},{key:"onMove",value:function(e,t,n,r){F(e);var o=this.state,i=this.props,a=i.max||100,u=i.min||0;if(n){var s=i.vertical?-t:t;s=i.reverse?-s:s;var c=a-Math.max.apply(Math,(0,h.Z)(r)),l=u-Math.min.apply(Math,(0,h.Z)(r)),f=Math.min(Math.max(s/(this.getSliderLength()/(a-u)),l),c),p=r.map((function(e){return Math.floor(Math.max(Math.min(e+f,a),u))}));o.bounds.map((function(e,t){return e===p[t]})).some((function(e){return!e}))&&this.onChange({bounds:p})}else{var d=this.calcValueByPos(t);d!==o.bounds[o.handle]&&this.moveTo(d)}}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=I(e,t.vertical,n);if(r){F(e);var o=this.state,i=this.props,a=o.bounds,u=o.handle,s=a[null===u?o.recent:u],c=r(s,i),l=X({value:c,handle:u,bounds:o.bounds,props:i});if(l===s)return;this.moveTo(l,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,r=n.bounds,o=n.recent,i=t,a=r[t+1]===r[t];return a&&r[o]===r[t]&&(i=o),a&&e!==r[t+1]&&(i=e<r[t+1]?t:t+1),i}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,r=e.step,o=e.min,i=e.max,a=this.internalPointsCache;if(!a||a.marks!==t||a.step!==r){var u=(0,n.Z)({},t);if(null!==r)for(var s=o;s<=i;s+=r)u[s]=s;var c=Object.keys(u).map(parseFloat);c.sort((function(e,t){return e-t})),this.internalPointsCache={marks:t,step:r,points:c}}return this.internalPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,r=this.state,o=this.props,i=(0,h.Z)(r.bounds),a=null===r.handle?r.recent:r.handle;i[a]=e;var u=a;!1!==o.pushable?this.pushSurroundingHandles(i,u):o.allowCross&&(i.sort((function(e,t){return e-t})),u=i.indexOf(e)),this.onChange({recent:u,handle:u,bounds:i}),t&&(this.props.onAfterChange(i),this.setState({},(function(){n.handlesRefs[u].focus()})),this.onEnd())}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],r=this.props.pushable,o=Number(r),i=0;if(e[t+1]-n<o&&(i=1),n-e[t-1]<o&&(i=-1),0!==i){var a=t+i,u=i*(e[a]-n);this.pushHandle(e,a,i,o-u)||(e[t]=e[a]-i*o)}}},{key:"pushHandle",value:function(e,t,n,r){for(var o=e[t],i=e[t];n*(i-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t])+n;if(o>=r.length||o<0)return!1;var i=t+n,a=r[o],u=this.props.pushable,s=Number(u),c=n*(e[i]-a);return!!this.pushHandle(e,i,n,s-c)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return X({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,n=this.state,r=n.handle,o=n.bounds,i=this.props,a=i.prefixCls,u=i.vertical,s=i.included,c=i.disabled,p=i.min,d=i.max,h=i.reverse,v=i.handle,m=i.trackStyle,y=i.handleStyle,g=i.tabIndex,b=i.ariaLabelGroupForHandles,w=i.ariaLabelledByGroupForHandles,x=i.ariaValueTextFormatterGroupForHandles,E=o.map((function(t){return e.calcOffset(t)})),k="".concat(a,"-handle"),Z=o.map((function(t,n){var o,i=g[n]||0;(c||null===g[n])&&(i=null);var s=r===n;return v({className:O()((o={},(0,l.Z)(o,k,!0),(0,l.Z)(o,"".concat(k,"-").concat(n+1),!0),(0,l.Z)(o,"".concat(k,"-dragging"),s),o)),prefixCls:a,vertical:u,dragging:s,offset:E[n],value:t,index:n,tabIndex:i,min:p,max:d,reverse:h,disabled:c,style:y[n],ref:function(t){return e.saveHandle(n,t)},ariaLabel:b[n],ariaLabelledBy:w[n],ariaValueTextFormatter:x[n]})})),_=o.slice(0,-1).map((function(e,n){var r,o=n+1,i=O()((r={},(0,l.Z)(r,"".concat(a,"-track"),!0),(0,l.Z)(r,"".concat(a,"-track-").concat(o),!0),r));return t().createElement(f,{className:i,vertical:u,reverse:h,included:s,offset:E[o-1],length:E[o]-E[o-1],style:m[n],key:o})}));return{tracks:_,handles:Z}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!("value"in e||"min"in e||"max"in e))return null;var r=e.value||t.bounds,o=r.map((function(n,r){return X({value:n,handle:r,bounds:t.bounds,props:e})}));if(t.bounds.length===o.length){if(o.every((function(e,n){return e===t.bounds[n]})))return null}else o=r.map((function(t,n){return X({value:t,handle:n,props:e})}));return(0,n.Z)((0,n.Z)({},t),{},{bounds:o})}}]),i}(t().Component);Y.displayName="Range",Y.defaultProps={count:1,allowCross:!0,pushable:!1,draggableTrack:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var K=z(Y),q=o(97326),$=function(e){return+setTimeout(e,16)},Q=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&($=function(e){return window.requestAnimationFrame(e)},Q=function(e){return window.cancelAnimationFrame(e)});var J=0,ee=new Map;function te(e){ee.delete(e)}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=J+=1;function r(t){if(0===t)te(n),e();else{var o=$((function(){r(t-1)}));ee.set(n,o)}}return r(t),n}function re(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}function oe(e){return e instanceof HTMLElement?e:b().findDOMNode(e)}ne.cancel=function(e){var t=ee.get(e);return te(t),Q(t)};var ie=o(11805);function ae(e,t){"function"==typeof e?e(t):"object"===(0,k.Z)(e)&&e&&"current"in e&&(e.current=t)}function ue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){ae(t,e)}))}}function se(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var ce=(0,e.forwardRef)((function(t,n){var r=t.didUpdate,o=t.getContainer,i=t.children,a=(0,e.useRef)(),u=(0,e.useRef)();(0,e.useImperativeHandle)(n,(function(){return{}}));var s=(0,e.useRef)(!1);return!s.current&&se()&&(u.current=o(),a.current=u.current.parentNode,s.current=!0),(0,e.useEffect)((function(){null==r||r(t)})),(0,e.useEffect)((function(){return null===u.current.parentNode&&null!==a.current&&a.current.appendChild(u.current),function(){var e,t;null===(e=u.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(u.current)}}),[]),u.current?b().createPortal(i,u.current):null}));function le(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var fe=o(93324);function pe(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 de,he,ve,me=(de=se(),he="undefined"!=typeof window?window:{},ve={animationend:pe("Animation","AnimationEnd"),transitionend:pe("Transition","TransitionEnd")},de&&("AnimationEvent"in he||delete ve.animationend.animation,"TransitionEvent"in he||delete ve.transitionend.transition),ve),ye={};if(se()){var ge=document.createElement("div");ye=ge.style}var be={};function we(e){if(be[e])return be[e];var t=me[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 ye)return be[e]=t[i],be[e]}return""}var xe=we("animationend"),Oe=we("transitionend"),Ee=!(!xe||!Oe),ke=xe||"animationend",Ze=Oe||"transitionend";function _e(e,t){return e?"object"===(0,k.Z)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var Me="none",Se="appear",Te="enter",Ce="leave",Pe="none",je="prepare",Ae="start",Ne="active",Le="end";function De(t){var n=(0,e.useRef)(!1),r=(0,e.useState)(t),o=(0,fe.Z)(r,2),i=o[0],a=o[1];return(0,e.useEffect)((function(){return function(){n.current=!0}}),[]),[i,function(e){n.current||a(e)}]}var Re=se()?e.useLayoutEffect:e.useEffect,He=[je,Ae,Ne,Le];function Ve(e){return e===Ne||e===Le}var Fe=function(t,n){var r=e.useState(Pe),o=(0,fe.Z)(r,2),i=o[0],a=o[1],u=function(){var t=e.useRef(null);function n(){ne.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=ne((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),s=(0,fe.Z)(u,2),c=s[0],l=s[1];return Re((function(){if(i!==Pe&&i!==Le){var e=He.indexOf(i),t=He[e+1],r=n(i);false===r?a(t):c((function(e){function n(){e.isCanceled()||a(t)}!0===r?n():Promise.resolve(r).then(n)}))}}),[t,i]),e.useEffect((function(){return function(){l()}}),[]),[function(){a(je)},i]};function Ie(t,r,o,i){var a=i.motionEnter,u=void 0===a||a,s=i.motionAppear,c=void 0===s||s,f=i.motionLeave,p=void 0===f||f,d=i.motionDeadline,h=i.motionLeaveImmediately,v=i.onAppearPrepare,m=i.onEnterPrepare,y=i.onLeavePrepare,g=i.onAppearStart,b=i.onEnterStart,w=i.onLeaveStart,x=i.onAppearActive,O=i.onEnterActive,E=i.onLeaveActive,k=i.onAppearEnd,Z=i.onEnterEnd,_=i.onLeaveEnd,M=i.onVisibleChanged,S=De(),T=(0,fe.Z)(S,2),C=T[0],P=T[1],j=De(Me),A=(0,fe.Z)(j,2),N=A[0],L=A[1],D=De(null),R=(0,fe.Z)(D,2),H=R[0],V=R[1],F=(0,e.useRef)(!1),I=(0,e.useRef)(null),B=(0,e.useRef)(!1),U=(0,e.useRef)(null);function z(){return o()||U.current}var W=(0,e.useRef)(!1);function G(e){var t,n=z();e&&!e.deadline&&e.target!==n||(N===Se&&W.current?t=null==k?void 0:k(n,e):N===Te&&W.current?t=null==Z?void 0:Z(n,e):N===Ce&&W.current&&(t=null==_?void 0:_(n,e)),!1===t||B.current||(L(Me),V(null)))}var X=function(t){var n=(0,e.useRef)(),r=(0,e.useRef)(t);r.current=t;var o=e.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(Ze,o),e.removeEventListener(ke,o))}return e.useEffect((function(){return function(){i(n.current)}}),[]),[function(e){n.current&&n.current!==e&&i(n.current),e&&e!==n.current&&(e.addEventListener(Ze,o),e.addEventListener(ke,o),n.current=e)},i]}(G),Y=(0,fe.Z)(X,1)[0],K=e.useMemo((function(){var e,t,n;switch(N){case"appear":return e={},(0,l.Z)(e,je,v),(0,l.Z)(e,Ae,g),(0,l.Z)(e,Ne,x),e;case"enter":return t={},(0,l.Z)(t,je,m),(0,l.Z)(t,Ae,b),(0,l.Z)(t,Ne,O),t;case"leave":return n={},(0,l.Z)(n,je,y),(0,l.Z)(n,Ae,w),(0,l.Z)(n,Ne,E),n;default:return{}}}),[N]),q=Fe(N,(function(e){if(e===je){var t=K.prepare;return!!t&&t(z())}var n;J in K&&V((null===(n=K[J])||void 0===n?void 0:n.call(K,z(),null))||null);return J===Ne&&(Y(z()),d>0&&(clearTimeout(I.current),I.current=setTimeout((function(){G({deadline:!0})}),d))),true})),$=(0,fe.Z)(q,2),Q=$[0],J=$[1],ee=Ve(J);W.current=ee,Re((function(){P(r);var e,n=F.current;(F.current=!0,t)&&(!n&&r&&c&&(e=Se),n&&r&&u&&(e=Te),(n&&!r&&p||!n&&h&&!r&&p)&&(e=Ce),e&&(L(e),Q()))}),[r]),(0,e.useEffect)((function(){(N===Se&&!c||N===Te&&!u||N===Ce&&!p)&&L(Me)}),[c,u,p]),(0,e.useEffect)((function(){return function(){clearTimeout(I.current),B.current=!0}}),[]),(0,e.useEffect)((function(){void 0!==C&&N===Me&&(null==M||M(C))}),[C,N]);var te=H;return K.prepare&&J===Ae&&(te=(0,n.Z)({transition:"none"},te)),[N,J,te,null!=C?C:r]}var Be=function(e){(0,u.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component),Ue=Be;var ze=function(t){var r=t;function o(e){return!(!e.motionName||!r)}"object"===(0,k.Z)(t)&&(r=t.transitionSupport);var i=e.forwardRef((function(t,r){var i=t.visible,a=void 0===i||i,u=t.removeOnLeave,s=void 0===u||u,c=t.forceRender,f=t.children,p=t.motionName,d=t.leavedClassName,h=t.eventProps,v=o(t),m=(0,e.useRef)(),y=(0,e.useRef)();var g=Ie(v,a,(function(){try{return oe(m.current||y.current)}catch(e){return null}}),t),b=(0,fe.Z)(g,4),w=b[0],x=b[1],E=b[2],k=b[3],Z=e.useRef(k);k&&(Z.current=!0);var _=(0,e.useRef)(r);_.current=r;var M,S=e.useCallback((function(e){m.current=e,ae(_.current,e)}),[]),T=(0,n.Z)((0,n.Z)({},h),{},{visible:a});if(f)if(w!==Me&&o(t)){var C,P;x===je?P="prepare":Ve(x)?P="active":x===Ae&&(P="start"),M=f((0,n.Z)((0,n.Z)({},T),{},{className:O()(_e(p,w),(C={},(0,l.Z)(C,_e(p,"".concat(w,"-").concat(P)),P),(0,l.Z)(C,p,"string"==typeof p),C)),style:E}),S)}else M=k?f((0,n.Z)({},T),S):!s&&Z.current?f((0,n.Z)((0,n.Z)({},T),{},{className:d}),S):c?f((0,n.Z)((0,n.Z)({},T),{},{style:{display:"none"}}),S):null;else M=null;return e.createElement(Ue,{ref:y},M)}));return i.displayName="CSSMotion",i}(Ee),We="add",Ge="keep",Xe="remove",Ye="removed";function Ke(e){var t;return t=e&&"object"===(0,k.Z)(e)&&"key"in e?e:{key:e},(0,n.Z)((0,n.Z)({},t),{},{key:String(t.key)})}function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Ke)}function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],o=0,i=t.length,a=qe(e),u=qe(t);a.forEach((function(e){for(var t=!1,a=o;a<i;a+=1){var s=u[a];if(s.key===e.key){o<a&&(r=r.concat(u.slice(o,a).map((function(e){return(0,n.Z)((0,n.Z)({},e),{},{status:We})}))),o=a),r.push((0,n.Z)((0,n.Z)({},s),{},{status:Ge})),o+=1,t=!0;break}}t||r.push((0,n.Z)((0,n.Z)({},e),{},{status:Xe}))})),o<i&&(r=r.concat(u.slice(o).map((function(e){return(0,n.Z)((0,n.Z)({},e),{},{status:We})}))));var s={};r.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var c=Object.keys(s).filter((function(e){return s[e]>1}));return c.forEach((function(e){(r=r.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Xe}))).forEach((function(t){t.key===e&&(t.status=Ge)}))})),r}var Qe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze,i=function(t){(0,u.Z)(c,t);var i=(0,s.Z)(c);function c(){var e;return(0,r.Z)(this,c),(e=i.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,n.Z)((0,n.Z)({},e),{},{status:Ye})}))}}))},e}return(0,a.Z)(c,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,u=r.onVisibleChanged,s=(0,d.Z)(r,["component","children","onVisibleChanged"]),c=i||e.Fragment,l={};return Qe.forEach((function(e){l[e]=s[e],delete s[e]})),delete s.keys,e.createElement(c,s,n.map((function(n){var r=n.status,i=(0,d.Z)(n,["status"]),s=r===We||r===Ge;return e.createElement(o,(0,p.Z)({},l,{key:i.key,visible:s,eventProps:i,onVisibleChanged:function(e){null==u||u(e,{key:i.key}),e||t.removeKey(i.key)}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=qe(n);return{keyEntities:$e(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Ye||e.status!==Xe}))}}}]),c}(e.Component);i.defaultProps={component:"div"}}(Ee);var Je=ze;function et(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 tt(t){var r=t.prefixCls,o=t.visible,i=t.zIndex,a=t.mask,u=t.maskMotion,s=t.maskAnimation,c=t.maskTransitionName;if(!a)return null;var l={};return(u||c||s)&&(l=(0,n.Z)({motionAppear:!0},et({motion:u,prefixCls:r,transitionName:c,animation:s}))),e.createElement(Je,(0,p.Z)({},l,{visible:o,removeOnLeave:!0}),(function(t){var n=t.className;return e.createElement("div",{style:{zIndex:i},className:O()("".concat(r,"-mask"),n)})}))}var nt;function rt(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 ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function it(e){return it="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},it(e)}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ut={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function st(){if(void 0!==nt)return nt;nt="";var e=document.createElement("p").style;for(var t in ut)t+"Transform"in e&&(nt=t);return nt}function ct(){return st()?"".concat(st(),"TransitionProperty"):"transitionProperty"}function lt(){return st()?"".concat(st(),"Transform"):"transform"}function ft(e,t){var n=ct();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function pt(e,t){var n=lt();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var dt,ht=/matrix\((.*)\)/,vt=/matrix3d\((.*)\)/;function mt(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function yt(e,t,n){var r=n;if("object"!==it(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):dt(e,t);for(var o in t)t.hasOwnProperty(o)&&yt(e,o,t[o])}function gt(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 bt(e){return gt(e)}function wt(e){return gt(e,!0)}function xt(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+=bt(r),t.top+=wt(r),t}function Ot(e){return null!=e&&e==e.window}function Et(e){return Ot(e)?e.document:9===e.nodeType?e:e.ownerDocument}var kt=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Zt=/^(top|right|bottom|left)$/;function _t(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Mt(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function St(e,t,n){"static"===yt(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=_t("left",n),a=_t("top",n),u=Mt(i),s=Mt(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var c,l="",f=xt(e);("left"in t||"top"in t)&&(l=(c=e).style.transitionProperty||c.style[ct()]||"",ft(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),mt(e);var p=xt(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=_t(h,n),m="left"===h?r:o,y=f[h]-p[h];d[v]=v===h?m+y:m-y}yt(e,d),mt(e),("left"in t||"top"in t)&&ft(e,l);var g={};for(var b in t)if(t.hasOwnProperty(b)){var w=_t(b,n),x=t[b]-f[b];g[w]=b===w?d[w]+x:d[w]-x}yt(e,g)}function Tt(e,t){var n=xt(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(lt());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(lt());if(r&&"none"!==r){var o,i=r.match(ht);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,pt(e,"matrix(".concat(o.join(","),")"))):((o=r.match(vt)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,pt(e,"matrix3d(".concat(o.join(","),")")))}else pt(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function Ct(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Pt(e){return"border-box"===dt(e,"boxSizing")}"undefined"!=typeof window&&(dt=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Et(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(kt.test(n)&&!Zt.test(t)){var r=e.style,o=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=i}return""===n?"auto":n});var jt=["margin","border","padding"];function At(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])}function Nt(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 u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(dt(e,u))||0}return a}var Lt={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 Dt(e,t,n){var r=n;if(Ot(e))return"width"===t?Lt.viewportWidth(e):Lt.viewportHeight(e);if(9===e.nodeType)return"width"===t?Lt.docWidth(e):Lt.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=Pt(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=dt(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=parseFloat(u)||0),void 0===r&&(r=a?1:-1);var s=void 0!==i||a,c=i||u;return-1===r?s?c-Nt(e,["border","padding"],o):u:s?1===r?c:c+(2===r?-Nt(e,["border"],o):Nt(e,["margin"],o)):u+Nt(e,jt.slice(r),o)}Ct(["Width","Height"],(function(e){Lt["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Lt["viewport".concat(e)](n))},Lt["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 Rt={position:"absolute",visibility:"hidden",display:"block"};function Ht(){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=Dt.apply(void 0,t):At(o,Rt,(function(){r=Dt.apply(void 0,t)})),r}function Vt(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Ct(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Lt["outer".concat(t)]=function(t,n){return t&&Ht(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Lt[e]=function(t,r){var o=r;return void 0!==o?t?(Pt(t)&&(o+=Nt(t,["padding","border"],n)),yt(t,e,o)):void 0:t&&Ht(t,e,-1)}}));var Ft={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Et,offset:function(e,t,n){if(void 0===t)return xt(e);!function(e,t,n){if(n.ignoreShake){var r=xt(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?St(e,t,n):n.useCssTransform&&lt()in document.body.style?Tt(e,t):St(e,t,n)}(e,t,n||{})},isWindow:Ot,each:Ct,css:yt,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:Vt,getWindowScrollLeft:function(e){return bt(e)},getWindowScrollTop:function(e){return wt(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Ft.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Vt(Ft,Lt);var It=Ft.getParent;function Bt(e){if(Ft.isWindow(e)||9===e.nodeType)return null;var t,n=Ft.getDocument(e).body,r=Ft.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:It(e);for(t=It(e);t&&t!==n&&9!==t.nodeType;t=It(t))if("static"!==(r=Ft.css(t,"position")))return t;return null}var Ut=Ft.getParent;function zt(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Bt(e),o=Ft.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===u||"visible"===Ft.css(r,"overflow")){if(r===a||r===u)break}else{var s=Ft.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}r=Bt(r)}var c=null;Ft.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===Ft.css(e,"position")&&(e.style.position="fixed"));var l=Ft.getWindowScrollLeft(i),f=Ft.getWindowScrollTop(i),p=Ft.viewportWidth(i),d=Ft.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(Ft.isWindow(e)||9===e.nodeType)return!1;var t=Ft.getDocument(e),n=t.body,r=null;for(r=Ut(e);r&&r!==n&&r!==t;r=Ut(r))if("fixed"===Ft.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 y=Math.max(h,l+p);n.right=Math.min(n.right,y);var g=Math.max(v,f+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Wt(e){var t,n,r;if(Ft.isWindow(e)||9===e.nodeType){var o=Ft.getWindow(e);t={left:Ft.getWindowScrollLeft(o),top:Ft.getWindowScrollTop(o)},n=Ft.viewportWidth(o),r=Ft.viewportHeight(o)}else t=Ft.offset(e),n=Ft.outerWidth(e),r=Ft.outerHeight(e);return t.width=n,t.height=r,t}function Gt(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function Xt(e,t,n,r,o){var i=Gt(t,n[1]),a=Gt(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function Yt(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Kt(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function qt(e,t,n){var r=[];return Ft.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function $t(e,t){return e[t]=-e[t],e}function Qt(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Jt(e,t){e[0]=Qt(e[0],t.width),e[1]=Qt(e[1],t.height)}function en(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var c={},l=0,f=zt(s,!(!(u=u||{})||!u.alwaysByViewport)),p=Wt(s);Jt(i,p),Jt(a,t);var d=Xt(p,t,o,i,a),h=Ft.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Yt(d,p,f)){var v=qt(o,/[lr]/gi,{l:"r",r:"l"}),m=$t(i,0),y=$t(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Xt(p,t,v,m,y),p,f)||(l=1,o=v,i=m,a=y)}if(u.adjustY&&Kt(d,p,f)){var g=qt(o,/[tb]/gi,{t:"b",b:"t"}),b=$t(i,1),w=$t(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Xt(p,t,g,b,w),p,f)||(l=1,o=g,i=b,a=w)}l&&(d=Xt(p,t,o,i,a),Ft.mix(h,d));var x=Yt(d,p,f),O=Kt(d,p,f);if(x||O){var E=o;x&&(E=qt(o,/[lr]/gi,{l:"r",r:"l"})),O&&(E=qt(o,/[tb]/gi,{t:"b",b:"t"})),o=E,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=u.adjustX&&x,c.adjustY=u.adjustY&&O,(c.adjustX||c.adjustY)&&(h=function(e,t,n,r){var o=Ft.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)),Ft.mix(o,i)}(d,p,f,c))}return h.width!==p.width&&Ft.css(s,"width",Ft.width(s)+h.width-p.width),h.height!==p.height&&Ft.css(s,"height",Ft.height(s)+h.height-p.height),Ft.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function tn(e,t,n){var r=n.target||t,o=Wt(r),i=!function(e,t){var n=zt(e,t),r=Wt(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 en(e,o,n,i)}tn.__getOffsetParent=Bt,tn.__getVisibleRectForElement=zt;var nn=o(18446),rn=o.n(nn),on=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),an="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,un=void 0!==o.g&&o.g.Math===Math?o.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),sn="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(un):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var cn=["top","right","bottom","left","width","height","size","weight"],ln="undefined"!=typeof MutationObserver,fn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function a(){sn(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){an&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ln?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){an&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;cn.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),pn=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},dn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||un},hn=wn(0,0,0,0);function vn(e){return parseFloat(e)||0}function mn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+vn(e["border-"+n+"-width"])}),0)}function yn(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return hn;var r=dn(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=vn(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=vn(r.width),s=vn(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=mn(r,"left","right")+i),Math.round(s+a)!==n&&(s-=mn(r,"top","bottom")+a)),!function(e){return e===dn(e).document.documentElement}(e)){var c=Math.round(u+i)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return wn(o.left,o.top,u,s)}var gn="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof dn(e).SVGGraphicsElement}:function(e){return e instanceof dn(e).SVGElement&&"function"==typeof e.getBBox};function bn(e){return an?gn(e)?function(e){var t=e.getBBox();return wn(0,0,t.width,t.height)}(e):yn(e):hn}function wn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var xn=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=wn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=bn(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),On=function(e,t){var n,r,o,i,a,u,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),pn(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);pn(this,{target:e,contentRect:c})},En=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new on,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof dn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new xn(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof dn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new On(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),kn="undefined"!=typeof WeakMap?new WeakMap:new on,Zn=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=fn.getInstance(),r=new En(t,n,this);kn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Zn.prototype[e]=function(){var t;return(t=kn.get(this))[e].apply(t,arguments)}}));var _n=void 0!==un.ResizeObserver?un.ResizeObserver:Zn;function Mn(e,t){var n=null,r=null;var o=new _n((function(e){var o=(0,fe.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,s=Math.floor(a),c=Math.floor(u);n===s&&r===c||Promise.resolve().then((function(){t({width:s,height:c})})),n=s,r=c}}));return e&&o.observe(e),function(){o.disconnect()}}function Sn(e){return"function"!=typeof e?null:e()}function Tn(e){return"object"===(0,k.Z)(e)&&e?e:null}var Cn=function(e,n){var r=e.children,o=e.disabled,i=e.target,a=e.align,u=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,l=void 0===c?0:c,f=t().useRef({}),p=t().useRef(),d=t().Children.only(r),h=t().useRef({});h.current.disabled=o,h.current.target=i,h.current.align=a,h.current.onAlign=u;var v=function(e,n){var r=t().useRef(!1),o=t().useRef(null);function i(){window.clearTimeout(o.current)}return[function t(a){if(i(),r.current&&!0!==a)o.current=window.setTimeout((function(){r.current=!1,t()}),n);else{if(!1===e())return;r.current=!0,o.current=window.setTimeout((function(){r.current=!1}),n)}},function(){r.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a=p.current,u=Sn(n),s=Tn(n);f.current.element=u,f.current.point=s,f.current.align=r;var c=document.activeElement;return u&&function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1}(u)?i=tn(a,u,r):s&&(i=function(e,t,n){var r,o,i=Ft.getDocument(e),a=i.defaultView||i.parentWindow,u=Ft.getWindowScrollLeft(a),s=Ft.getWindowScrollTop(a),c=Ft.viewportWidth(a),l=Ft.viewportHeight(a),f={left:r="pageX"in t?t.pageX:u+t.clientX,top:o="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},p=r>=0&&r<=u+c&&o>=0&&o<=s+l,d=[n.points[0],"cc"];return en(e,f,ot(ot({},n),{},{points:d}),p)}(a,s,r)),function(e,t){e!==document.activeElement&&re(t,e)&&"function"==typeof e.focus&&e.focus()}(c,a),o&&i&&o(a,i),!0}return!1}),l),m=(0,fe.Z)(v,2),y=m[0],g=m[1],b=t().useRef({cancel:function(){}}),x=t().useRef({cancel:function(){}});t().useEffect((function(){var e,t,n=Sn(i),r=Tn(i);p.current!==x.current.element&&(x.current.cancel(),x.current.element=p.current,x.current.cancel=Mn(p.current,y)),f.current.element===n&&((e=f.current.point)===(t=r)||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))&&rn()(f.current.align,a)||(y(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=Mn(n,y)))})),t().useEffect((function(){o?g():y()}),[o]);var O=t().useRef(null);return t().useEffect((function(){s?O.current||(O.current=w(window,"resize",y)):O.current&&(O.current.remove(),O.current=null)}),[s]),t().useEffect((function(){return function(){b.current.cancel(),x.current.cancel(),O.current&&O.current.remove(),g()}}),[]),t().useImperativeHandle(n,(function(){return{forceAlign:function(){return y(!0)}}})),t().isValidElement(d)&&(d=t().cloneElement(d,{ref:ue(d.ref,p)})),d},Pn=t().forwardRef(Cn);Pn.displayName="Align";var jn=Pn,An=se()?e.useLayoutEffect:e.useEffect,Nn=An;function Ln(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
15
- Ln=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.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 c(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),u=new _(o||[]);return r(a,"_invoke",{value:x(e,n,u)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function p(){}function d(){}function h(){}var v={};s(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(M([])));y&&y!==t&&n.call(y,i)&&(v=y);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,u){var s=l(e[r],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==(0,k.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,u)}))}u(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=O(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(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 Z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=s(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,u,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.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}},e.values=M,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Z),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var 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,f):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),f},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),Z(n),f}},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;Z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Dn=o(15861);var Rn=["measure","alignPre","align",null,"motion"],Hn=function(t,n){var r,o,i,a,u,s,c=(r=null,o=e.useRef(!1),i=e.useState(r),a=(0,fe.Z)(i,2),u=a[0],s=a[1],e.useEffect((function(){return o.current=!1,function(){o.current=!0}}),[]),[u,function(e,t){t&&o.current||s(e)}]),l=(0,fe.Z)(c,2),f=l[0],p=l[1],d=(0,e.useRef)();function h(e){p(e,!0)}function v(){ne.cancel(d.current)}return(0,e.useEffect)((function(){h("measure")}),[t]),(0,e.useEffect)((function(){if("measure"===f)n();f&&(d.current=ne((0,Dn.Z)(Ln().mark((function e(){var t,n;return Ln().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Rn.indexOf(f),(n=Rn[t+1])&&-1!==t&&h(n);case 3:case"end":return e.stop()}}),e)})))))}),[f]),(0,e.useEffect)((function(){return function(){v()}}),[]),[f,function(e){v(),d.current=ne((function(){h((function(e){switch(f){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]},Vn=e.forwardRef((function(t,r){var o=t.visible,i=t.prefixCls,a=t.className,u=t.style,s=t.children,c=t.zIndex,l=t.stretch,f=t.destroyPopupOnHide,d=t.forceRender,h=t.align,v=t.point,m=t.getRootDomNode,y=t.getClassNameFromAlign,g=t.onAlign,b=t.onMouseEnter,w=t.onMouseLeave,x=t.onMouseDown,E=t.onTouchStart,k=t.onClick,Z=(0,e.useRef)(),_=(0,e.useRef)(),M=(0,e.useState)(),S=(0,fe.Z)(M,2),T=S[0],C=S[1],P=function(t){var n=e.useState({width:0,height:0}),r=(0,fe.Z)(n,2),o=r[0],i=r[1];return[e.useMemo((function(){var e={};if(t){var n=o.width,r=o.height;-1!==t.indexOf("height")&&r?e.height=r:-1!==t.indexOf("minHeight")&&r&&(e.minHeight=r),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,o]),function(e){i({width:e.offsetWidth,height:e.offsetHeight})}]}(l),j=(0,fe.Z)(P,2),A=j[0],N=j[1];var L=Hn(o,(function(){l&&N(m())})),D=(0,fe.Z)(L,2),R=D[0],H=D[1],V=(0,e.useState)(0),F=(0,fe.Z)(V,2),I=F[0],B=F[1],U=(0,e.useRef)();function z(){var e;null===(e=Z.current)||void 0===e||e.forceAlign()}function W(e,t){var n=y(t);T!==n&&C(n),B((function(e){return e+1})),"align"===R&&(null==g||g(e,t))}Nn((function(){"alignPre"===R&&B(0)}),[R]),Nn((function(){"align"===R&&(I<3?z():H((function(){var e;null===(e=U.current)||void 0===e||e.call(U)})))}),[I]);var G=(0,n.Z)({},et(t));function X(){return new Promise((function(e){U.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=G[e];G[e]=function(e,n){return H(),null==t?void 0:t(e,n)}})),e.useEffect((function(){G.motionName||"motion"!==R||H()}),[G.motionName,R]),e.useImperativeHandle(r,(function(){return{forceAlign:z,getElement:function(){return _.current}}}));var Y=(0,n.Z)((0,n.Z)({},A),{},{zIndex:c,opacity:"motion"!==R&&"stable"!==R&&o?0:void 0,pointerEvents:o||"stable"===R?void 0:"none"},u),K=!0;null==h||!h.points||"align"!==R&&"stable"!==R||(K=!1);var q=s;return e.Children.count(s)>1&&(q=e.createElement("div",{className:"".concat(i,"-content")},s)),e.createElement(Je,(0,p.Z)({visible:o,ref:_,leavedClassName:"".concat(i,"-hidden")},G,{onAppearPrepare:X,onEnterPrepare:X,removeOnLeave:f,forceRender:d}),(function(t,r){var o=t.className,u=t.style,s=O()(i,a,T,o);return e.createElement(jn,{target:v||m,key:"popup",ref:Z,monitorWindowResize:!0,disabled:K,align:h,onAlign:W},e.createElement("div",{ref:r,className:s,onMouseEnter:b,onMouseLeave:w,onMouseDownCapture:x,onTouchStartCapture:E,onClick:k,style:(0,n.Z)((0,n.Z)({},u),Y)},q))}))}));Vn.displayName="PopupInner";var Fn=Vn,In=e.forwardRef((function(t,r){var o=t.prefixCls,i=t.visible,a=t.zIndex,u=t.children,s=t.mobile,c=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,f=s.popupMotion,d=void 0===f?{}:f,h=s.popupRender,v=t.onClick,m=e.useRef();e.useImperativeHandle(r,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var y=(0,n.Z)({zIndex:a},l),g=u;return e.Children.count(u)>1&&(g=e.createElement("div",{className:"".concat(o,"-content")},u)),h&&(g=h(g)),e.createElement(Je,(0,p.Z)({visible:i,ref:m,removeOnLeave:!0},d),(function(t,r){var i=t.className,a=t.style,u=O()(o,c,i);return e.createElement("div",{ref:r,className:u,onClick:v,style:(0,n.Z)((0,n.Z)({},a),y)},g)}))}));In.displayName="MobilePopupInner";var Bn=In,Un=["visible","mobile"],zn=e.forwardRef((function(t,r){var o=t.visible,i=t.mobile,a=(0,d.Z)(t,Un),u=(0,e.useState)(o),s=(0,fe.Z)(u,2),c=s[0],l=s[1],f=(0,e.useState)(!1),h=(0,fe.Z)(f,2),v=h[0],m=h[1],y=(0,n.Z)((0,n.Z)({},a),{},{visible:c});(0,e.useEffect)((function(){l(o),o&&i&&m(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))}())}),[o,i]);var g=v?e.createElement(Bn,(0,p.Z)({},y,{mobile:i,ref:r})):e.createElement(Fn,(0,p.Z)({},y,{ref:r}));return e.createElement("div",null,e.createElement(tt,y),g)}));zn.displayName="Popup";var Wn=zn,Gn=e.createContext(null);function Xn(){}function Yn(){return""}function Kn(e){return e?e.ownerDocument:window.document}var qn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var $n,Qn,Jn=($n=ce,Qn=function(t){(0,u.Z)(i,t);var o=(0,s.Z)(i);function i(t){var n,a;return(0,r.Z)(this,i),n=o.call(this,t),(0,l.Z)((0,q.Z)(n),"popupRef",e.createRef()),(0,l.Z)((0,q.Z)(n),"triggerRef",e.createRef()),(0,l.Z)((0,q.Z)(n),"portalContainer",void 0),(0,l.Z)((0,q.Z)(n),"attachId",void 0),(0,l.Z)((0,q.Z)(n),"clickOutsideHandler",void 0),(0,l.Z)((0,q.Z)(n),"touchOutsideHandler",void 0),(0,l.Z)((0,q.Z)(n),"contextMenuOutsideHandler1",void 0),(0,l.Z)((0,q.Z)(n),"contextMenuOutsideHandler2",void 0),(0,l.Z)((0,q.Z)(n),"mouseDownTimeout",void 0),(0,l.Z)((0,q.Z)(n),"focusTime",void 0),(0,l.Z)((0,q.Z)(n),"preClickTime",void 0),(0,l.Z)((0,q.Z)(n),"preTouchTime",void 0),(0,l.Z)((0,q.Z)(n),"delayTimer",void 0),(0,l.Z)((0,q.Z)(n),"hasPopupMouseDown",void 0),(0,l.Z)((0,q.Z)(n),"onMouseEnter",(function(e){var t=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",e),n.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.Z)((0,q.Z)(n),"onMouseMove",(function(e){n.fireEvents("onMouseMove",e),n.setPoint(e)})),(0,l.Z)((0,q.Z)(n),"onMouseLeave",(function(e){n.fireEvents("onMouseLeave",e),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)})),(0,l.Z)((0,q.Z)(n),"onPopupMouseEnter",(function(){n.clearDelayTimer()})),(0,l.Z)((0,q.Z)(n),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&re(null===(t=n.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)})),(0,l.Z)((0,q.Z)(n),"onFocus",(function(e){n.fireEvents("onFocus",e),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))})),(0,l.Z)((0,q.Z)(n),"onMouseDown",(function(e){n.fireEvents("onMouseDown",e),n.preClickTime=Date.now()})),(0,l.Z)((0,q.Z)(n),"onTouchStart",(function(e){n.fireEvents("onTouchStart",e),n.preTouchTime=Date.now()})),(0,l.Z)((0,q.Z)(n),"onBlur",(function(e){n.fireEvents("onBlur",e),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)})),(0,l.Z)((0,q.Z)(n),"onContextMenu",(function(e){e.preventDefault(),n.fireEvents("onContextMenu",e),n.setPopupVisible(!0,e)})),(0,l.Z)((0,q.Z)(n),"onContextMenuClose",(function(){n.isContextMenuToShow()&&n.close()})),(0,l.Z)((0,q.Z)(n),"onClick",(function(e){if(n.fireEvents("onClick",e),n.focusTime){var t;if(n.preClickTime&&n.preTouchTime?t=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?t=n.preClickTime:n.preTouchTime&&(t=n.preTouchTime),Math.abs(t-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!n.state.popupVisible;(n.isClickToHide()&&!r||r&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,e)})),(0,l.Z)((0,q.Z)(n),"onPopupMouseDown",(function(){var e;n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context&&(e=n.context).onPopupMouseDown.apply(e,arguments)})),(0,l.Z)((0,q.Z)(n),"onDocumentClick",(function(e){if(!n.props.mask||n.props.maskClosable){var t=e.target,r=n.getRootDomNode(),o=n.getPopupDomNode();re(r,t)&&!n.isContextMenuOnly()||re(o,t)||n.hasPopupMouseDown||n.close()}})),(0,l.Z)((0,q.Z)(n),"getRootDomNode",(function(){var e=n.props.getTriggerDOMNode;if(e)return e(n.triggerRef.current);try{var t=oe(n.triggerRef.current);if(t)return t}catch(e){}return b().findDOMNode((0,q.Z)(n))})),(0,l.Z)((0,q.Z)(n),"getPopupClassNameFromAlign",(function(e){var t=[],r=n.props,o=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,u=r.alignPoint,s=r.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 u=i[a];if(le(e[u].points,o,r))return"".concat(t,"-placement-").concat(u)}return""}(i,a,e,u)),s&&t.push(s(e)),t.join(" ")})),(0,l.Z)((0,q.Z)(n),"getComponent",(function(){var t=n.props,r=t.prefixCls,o=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,u=t.popupMotion,s=t.popupAnimation,c=t.popupTransitionName,l=t.popupStyle,f=t.mask,d=t.maskAnimation,h=t.maskTransitionName,v=t.maskMotion,m=t.zIndex,y=t.popup,g=t.stretch,b=t.alignPoint,w=t.mobile,x=t.forceRender,O=t.onPopupClick,E=n.state,k=E.popupVisible,Z=E.point,_=n.getPopupAlign(),M={};return n.isMouseEnterToShow()&&(M.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(M.onMouseLeave=n.onPopupMouseLeave),M.onMouseDown=n.onPopupMouseDown,M.onTouchStart=n.onPopupMouseDown,e.createElement(Wn,(0,p.Z)({prefixCls:r,destroyPopupOnHide:o,visible:k,point:b&&Z,className:i,align:_,onAlign:a,animation:s,getClassNameFromAlign:n.getPopupClassNameFromAlign},M,{stretch:g,getRootDomNode:n.getRootDomNode,style:l,mask:f,zIndex:m,transitionName:c,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:n.popupRef,motion:u,mobile:w,forceRender:x,onClick:O}),"function"==typeof y?y():y)})),(0,l.Z)((0,q.Z)(n),"attachParent",(function(e){ne.cancel(n.attachId);var t,r=n.props,o=r.getPopupContainer,i=r.getDocument,a=n.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(n.getRootDomNode()).body,t?t.appendChild(e):n.attachId=ne((function(){n.attachParent(e)}))})),(0,l.Z)((0,q.Z)(n),"getContainer",(function(){if(!n.portalContainer){var e=(0,n.props.getDocument)(n.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",n.portalContainer=e}return n.attachParent(n.portalContainer),n.portalContainer})),(0,l.Z)((0,q.Z)(n),"setPoint",(function(e){n.props.alignPoint&&e&&n.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.Z)((0,q.Z)(n),"handlePortalUpdate",(function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)})),(0,l.Z)((0,q.Z)(n),"triggerContextValue",{onPopupMouseDown:n.onPopupMouseDown}),a="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,n.state={prevPopupVisible:a,popupVisible:a},qn.forEach((function(e){n["fire".concat(e)]=function(t){n.fireEvents(e,t)}})),n}return(0,a.Z)(i,[{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=w(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=w(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=w(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=w(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ne.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,r=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,r){var o=e[t]||{};return(0,n.Z)((0,n.Z)({},o),r)}(o,t,r):r}},{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 t=this.state.popupVisible,r=this.props,o=r.children,i=r.forceRender,a=r.alignPoint,u=r.className,s=r.autoDestroy,c=e.Children.only(o),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,a&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var f=O()(c&&c.props&&c.props.className,u);f&&(l.className=f);var p,d,h,v,m=(0,n.Z)({},l);p=c,"function"==typeof(v=(0,ie.isMemo)(p)?p.type.type:p.type)&&!(null===(d=v.prototype)||void 0===d?void 0:d.render)||"function"==typeof p&&!(null===(h=p.prototype)||void 0===h?void 0:h.render)||(m.ref=ue(this.triggerRef,c.ref));var y,g=e.cloneElement(c,m);return(t||this.popupRef.current||i)&&(y=e.createElement($n,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(y=null),e.createElement(Gn.Provider,{value:this.triggerContextValue},g,y)}}],[{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}}]),i}(e.Component),(0,l.Z)(Qn,"contextType",Gn),(0,l.Z)(Qn,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Yn,getDocument:Kn,onPopupVisibleChange:Xn,afterPopupVisibleChange:Xn,onPopupAlign:Xn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),Qn),er={adjustX:1,adjustY:1},tr=[0,0],nr={left:{points:["cr","cl"],overflow:er,offset:[-4,0],targetOffset:tr},right:{points:["cl","cr"],overflow:er,offset:[4,0],targetOffset:tr},top:{points:["bc","tc"],overflow:er,offset:[0,-4],targetOffset:tr},bottom:{points:["tc","bc"],overflow:er,offset:[0,4],targetOffset:tr},topLeft:{points:["bl","tl"],overflow:er,offset:[0,-4],targetOffset:tr},leftTop:{points:["tr","tl"],overflow:er,offset:[-4,0],targetOffset:tr},topRight:{points:["br","tr"],overflow:er,offset:[0,-4],targetOffset:tr},rightTop:{points:["tl","tr"],overflow:er,offset:[4,0],targetOffset:tr},bottomRight:{points:["tr","br"],overflow:er,offset:[0,4],targetOffset:tr},rightBottom:{points:["bl","br"],overflow:er,offset:[4,0],targetOffset:tr},bottomLeft:{points:["tl","bl"],overflow:er,offset:[0,4],targetOffset:tr},leftBottom:{points:["br","bl"],overflow:er,offset:[-4,0],targetOffset:tr}},rr=function(t){var n=t.overlay,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle;return e.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n)},or=function(t,r){var o=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,u=t.mouseEnterDelay,s=void 0===u?0:u,c=t.mouseLeaveDelay,l=void 0===c?.1:c,f=t.overlayStyle,h=t.prefixCls,v=void 0===h?"rc-tooltip":h,m=t.children,y=t.onVisibleChange,g=t.afterVisibleChange,b=t.transitionName,w=t.animation,x=t.motion,O=t.placement,E=void 0===O?"right":O,Z=t.align,_=void 0===Z?{}:Z,M=t.destroyTooltipOnHide,S=void 0!==M&&M,T=t.defaultVisible,C=t.getTooltipContainer,P=t.overlayInnerStyle,j=(0,d.Z)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),A=(0,e.useRef)(null);(0,e.useImperativeHandle)(r,(function(){return A.current}));var N=(0,n.Z)({},j);"visible"in t&&(N.popupVisible=t.visible);var L=!1,D=!1;if("boolean"==typeof S)L=S;else if(S&&"object"===(0,k.Z)(S)){var R=S.keepParent;L=!0===R,D=!1===R}return e.createElement(Jn,(0,p.Z)({popupClassName:o,prefixCls:v,popup:function(){var n=t.arrowContent,r=void 0===n?null:n,o=t.overlay,i=t.id;return[e.createElement("div",{className:"".concat(v,"-arrow"),key:"arrow"},r),e.createElement(rr,{key:"content",prefixCls:v,id:i,overlay:o,overlayInnerStyle:P})]},action:a,builtinPlacements:nr,popupPlacement:E,ref:A,popupAlign:_,getPopupContainer:C,onPopupVisibleChange:y,afterPopupVisibleChange:g,popupTransitionName:b,popupAnimation:w,popupMotion:x,defaultPopupVisible:T,destroyPopupOnHide:L,autoDestroy:D,mouseLeaveDelay:l,popupStyle:f,mouseEnterDelay:s},N),m)},ir=(0,e.forwardRef)(or),ar=e.forwardRef((function(t,n){var r=t.visible,o=t.overlay,i=e.useRef(null),a=ue(n,i),u=e.useRef(null);function s(){ne.cancel(u.current)}return e.useEffect((function(){return r?u.current=ne((function(){var e;null===(e=i.current)||void 0===e||e.forcePopupAlign()})):s(),s}),[r,o]),e.createElement(ir,(0,p.Z)({ref:a},t))})),ur=["value","dragging","index","disabled"],sr=["prefixCls","overlay","placement","visible"];var cr=G;cr.Range=K,cr.Handle=M,cr.createSliderWithTooltip=function(e){var o,i;return i=o=function(o){(0,u.Z)(c,o);var i=(0,s.Z)(c);function c(){var e;(0,r.Z)(this,c);for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return(e=i.call.apply(i,[this].concat(a))).state={visibles:{}},e.handleTooltipVisibleChange=function(t,r){e.setState((function(e){return{visibles:(0,n.Z)((0,n.Z)({},e.visibles),{},(0,l.Z)({},t,r))}}))},e.handleWithTooltip=function(r){var o,i=r.value,a=r.dragging,u=r.index,s=r.disabled,c=(0,d.Z)(r,ur),l=e.props,f=l.tipFormatter,h=l.tipProps,v=l.handleStyle,m=l.getTooltipContainer,y=h.prefixCls,g=void 0===y?"rc-slider-tooltip":y,b=h.overlay,w=void 0===b?f(i):b,x=h.placement,O=void 0===x?"top":x,E=h.visible,k=void 0!==E&&E,Z=(0,d.Z)(h,sr);return o=Array.isArray(v)?v[u]||v[0]:v,t().createElement(ar,(0,p.Z)({},Z,{getTooltipContainer:m,prefixCls:g,overlay:w,placement:O,visible:!s&&(e.state.visibles[u]||a)||k,key:u}),t().createElement(M,(0,p.Z)({},c,{style:(0,n.Z)({},o),value:i,onMouseEnter:function(){return e.handleTooltipVisibleChange(u,!0)},onMouseLeave:function(){return e.handleTooltipVisibleChange(u,!1)}})))},e}return(0,a.Z)(c,[{key:"render",value:function(){return t().createElement(e,(0,p.Z)({},this.props,{handle:this.handleWithTooltip}))}}]),c}(t().Component),o.defaultProps={tipFormatter:function(e){return e},handleStyle:[{}],tipProps:{},getTooltipContainer:function(e){return e.parentNode}},i};var lr=cr;o(74951);function fr(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 pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(){return dr=Object.assign||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},dr.apply(this,arguments)}function hr(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 vr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mr(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,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fr(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 fr(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 yr=function(e){var n,r=e.range,o=e.step,i=vr(e,["range","step"]),a="paraui-slider",u="paraui-slider-tooltip";"object"==typeof r&&(n=r.draggableTrack);var s=mr(t().useState({}),2),c=s[0],l=s[1],f=function(e,t){l((function(n){return hr(function(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){pr(e,t,n[t])}))}return e}({},n),pr({},e,t))}))},p=function(e,t){return e||(t?"right":"top")},d=function(e){return"number"==typeof e?e.toString():""},h=function(n){var r=n.tooltipPrefixCls,o=n.info,i=o.value,a=o.index,u=o.dragging,s=vr(n.info,["value","index","dragging"]),l=e.tipFormatter,h=void 0===l?d:l,v=e.tooltipVisible,m=e.tooltipPlacement,y=e.getTooltipPopupContainer,g=void 0===y?function(e){return e}:y,b=e.vertical,w=!!h&&(c[a]||u),x=v||void 0===v&&w;return t().createElement(ar,{prefixCls:r,overlay:h?h(i):"",visible:x,placement:p(m,b),key:a,getTooltipContainer:g,destroyTooltipOnHide:!0},t().createElement(M,dr({},s,{value:i,onMouseEnter:function(){return f(a,!0)},onMouseLeave:function(){return f(a,!1)}})))};return r?t().createElement(K,dr({},i,{step:o,pushable:i.pushable,draggableTrack:n,handle:function(e){return h({tooltipPrefixCls:u,info:e})},prefixCls:a})):t().createElement(lr,dr({},i,{step:o,handle:function(e){return h({tooltipPrefixCls:u,info:e})},prefixCls:a}))},gr=yr}(),i}()}));
14
+ */function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case v:case s:return e;default:return t}}case o:return t}}}function E(e){return x(e)===f}t.isMemo=function(e){return x(e)===v}},11805:function(e,t,n){"use strict";e.exports=n(51162)},74951:function(e,t,n){var r=n(93379),o=n(18872);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function u(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=c(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(e,t),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(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,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},45057:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},97326:function(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,{Z:function(){return r}})},15861:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).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 u(e){r(a,o,i,u,s,"next",e)}function s(e){r(a,o,i,u,s,"throw",e)}u(void 0)}))}}n.d(t,{Z:function(){return o}})},15671:function(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,{Z:function(){return r}})},43144:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67343);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.Z)(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}},29388:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(61120),o=n(78814),i=n(82963);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67343);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:function(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,{Z:function(){return r}})},61120:function(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,{Z:function(){return r}})},60136:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(89611);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.Z)(e,t)}},78814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},59199:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},31902:function(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,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}n.d(t,{Z:function(){return r}})},25267:function(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,{Z:function(){return r}})},42786:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4942);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.Z)(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}},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(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}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},82963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(97326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},89611:function(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,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function u(e,t){return(0,r.Z)(e)||(0,o.Z)(e,t)||(0,i.Z)(e,t)||(0,a.Z)()}},89062:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(45057),o=n(59199),i=n(40181),a=n(42786);function u(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},35512:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002);function o(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},67343:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(35512);function i(e){var t=(0,o.Z)(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:function(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,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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.Z)(e,t):void 0}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};return function(){"use strict";o.r(i),o.d(i,{Slider:function(){return wr},default:function(){return xr}});var e=o(8156),t=o.n(e),n=o(1413),r=o(15671),a=o(43144),u=o(60136),s=o(29388),c=o(80334),l=o(4942),f=function(e){var r,o,i=e.className,a=e.included,u=e.vertical,s=e.style,c=e.length,f=e.offset,p=e.reverse;c<0&&(p=!p,c=Math.abs(c),f=100-f);var d=u?(r={},(0,l.Z)(r,p?"top":"bottom","".concat(f,"%")),(0,l.Z)(r,p?"bottom":"top","auto"),(0,l.Z)(r,"height","".concat(c,"%")),r):(o={},(0,l.Z)(o,p?"right":"left","".concat(f,"%")),(0,l.Z)(o,p?"left":"right","auto"),(0,l.Z)(o,"width","".concat(c,"%")),o),h=(0,n.Z)((0,n.Z)({},s),d);return a?t().createElement("div",{className:i,style:h}):null},p=o(87462),d=o(45987),h=o(89062),v=o(61120);function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,v.Z)(e)););return e}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=m(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},g.apply(this,arguments)}var y=o(47111),b=o.n(y);function w(e,t,n,r){var o=b().unstable_batchedUpdates?function(e){b().unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r)}}}var x=o(94184),E=o.n(x),k=function(e){var r=e.prefixCls,o=e.vertical,i=e.reverse,a=e.marks,u=e.dots,s=e.step,f=e.included,p=e.lowerBound,d=e.upperBound,h=e.max,v=e.min,m=e.dotStyle,g=e.activeDotStyle,y=h-v,b=function(e,t,n,r,o,i){(0,c.ZP)(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var u=o;u<=i;u+=r)-1===a.indexOf(u)&&a.push(u);return a}(0,a,u,s,v,h).map((function(e){var a,u="".concat(Math.abs(e-v)/y*100,"%"),s=!f&&e===d||f&&e<=d&&e>=p,c=o?(0,n.Z)((0,n.Z)({},m),{},(0,l.Z)({},i?"top":"bottom",u)):(0,n.Z)((0,n.Z)({},m),{},(0,l.Z)({},i?"right":"left",u));s&&(c=(0,n.Z)((0,n.Z)({},c),g));var h=E()((a={},(0,l.Z)(a,"".concat(r,"-dot"),!0),(0,l.Z)(a,"".concat(r,"-dot-active"),s),(0,l.Z)(a,"".concat(r,"-dot-reverse"),i),a));return t().createElement("span",{className:h,style:c,key:e})}));return t().createElement("div",{className:"".concat(r,"-step")},b)},O=o(71002),Z=function(e){var r=e.className,o=e.vertical,i=e.reverse,a=e.marks,u=e.included,s=e.upperBound,c=e.lowerBound,f=e.max,p=e.min,d=e.onClickLabel,h=Object.keys(a),v=f-p,m=h.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var f,h=a[e],m="object"===(0,O.Z)(h)&&!t().isValidElement(h),g=m?h.label:h;if(!g&&0!==g)return null;var y=!u&&e===s||u&&e<=s&&e>=c,b=E()((f={},(0,l.Z)(f,"".concat(r,"-text"),!0),(0,l.Z)(f,"".concat(r,"-text-active"),y),f)),w=(0,l.Z)({marginBottom:"-50%"},i?"top":"bottom","".concat((e-p)/v*100,"%")),x=(0,l.Z)({transform:"translateX(".concat(i?"50%":"-50%",")"),msTransform:"translateX(".concat(i?"50%":"-50%",")")},i?"right":"left","".concat((e-p)/v*100,"%")),k=o?w:x,Z=m?(0,n.Z)((0,n.Z)({},k),h.style):k;return t().createElement("span",{className:b,style:Z,key:e,onMouseDown:function(t){return d(t,e)},onTouchStart:function(t){return d(t,e)}},g)}));return t().createElement("div",{className:r},m)},M=["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"],S=function(e){(0,u.Z)(i,e);var o=(0,s.Z)(i);function i(){var e;(0,r.Z)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=o.call.apply(o,[this].concat(n))).state={clickFocused:!1},e.onMouseUpListener=void 0,e.handle=void 0,e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){this.onMouseUpListener=w(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,r,o,i=this.props,a=i.prefixCls,u=i.vertical,s=i.reverse,c=i.offset,f=i.style,h=i.disabled,v=i.min,m=i.max,g=i.value,y=i.tabIndex,b=i.ariaLabel,w=i.ariaLabelledBy,x=i.ariaValueTextFormatter,k=(0,d.Z)(i,M),O=E()(this.props.className,(0,l.Z)({},"".concat(a,"-handle-click-focused"),this.state.clickFocused)),Z=u?(e={},(0,l.Z)(e,s?"top":"bottom","".concat(c,"%")),(0,l.Z)(e,s?"bottom":"top","auto"),(0,l.Z)(e,"transform",s?null:"translateY(+50%)"),e):(r={},(0,l.Z)(r,s?"right":"left","".concat(c,"%")),(0,l.Z)(r,s?"left":"right","auto"),(0,l.Z)(r,"transform","translateX(".concat(s?"+":"-","50%)")),r),S=(0,n.Z)((0,n.Z)({},f),Z),C=y||0;return(h||null===y)&&(C=null),x&&(o=x(g)),t().createElement("div",(0,p.Z)({ref:this.setHandleRef,tabIndex:C},k,{className:O,style:S,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":g,"aria-disabled":!!h,"aria-label":b,"aria-labelledby":w,"aria-valuetext":o}))}}]),i}(t().Component),C={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=C.F1&&t<=C.F12)return!1;switch(t){case C.ALT:case C.CAPS_LOCK:case C.CONTEXT_MENU:case C.CTRL:case C.DOWN:case C.END:case C.ESC:case C.HOME:case C.INSERT:case C.LEFT:case C.MAC_FF_META:case C.META:case C.NUMLOCK:case C.NUM_CENTER:case C.PAGE_DOWN:case C.PAGE_UP:case C.PAUSE:case C.PRINT_SCREEN:case C.RIGHT:case C.SHIFT:case C.UP:case C.WIN_KEY:case C.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=C.ZERO&&e<=C.NINE)return!0;if(e>=C.NUM_ZERO&&e<=C.NUM_MULTIPLY)return!0;if(e>=C.A&&e<=C.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case C.SPACE:case C.QUESTION_MARK:case C.NUM_PLUS:case C.NUM_MINUS:case C.NUM_PERIOD:case C.NUM_DIVISION:case C.SEMICOLON:case C.DASH:case C.EQUALS:case C.COMMA:case C.PERIOD:case C.SLASH:case C.APOSTROPHE:case C.SINGLE_QUOTE:case C.OPEN_SQUARE_BRACKET:case C.BACKSLASH:case C.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},T=C;function P(e,t){try{return Object.keys(t).some((function(n){return e.target===(0,y.findDOMNode)(t[n])}))}catch(e){return!1}}function _(e,t){var n=t.min,r=t.max;return e<n||e>r}function N(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function L(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.pow(10,A(r)),s=Math.floor((i*u-o*u)/(r*u)),c=Math.min((e-o)/r,s),l=Math.round(c)*r+o;a.push(l)}var f=a.map((function(t){return Math.abs(e-t)}));return a[f.indexOf(Math.min.apply(Math,(0,h.Z)(f)))]}function A(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function D(e,t){return e?t.clientY:t.pageX}function R(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function j(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function H(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function V(e,t){var n=t.step,r=isFinite(L(e,t))?L(e,t):0;return null===n?r:parseFloat(r.toFixed(A(n)))}function I(e){e.stopPropagation(),e.preventDefault()}function F(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case T.UP:i=t&&n?o:r;break;case T.RIGHT:i=!t&&n?o:r;break;case T.DOWN:i=t&&n?r:o;break;case T.LEFT:i=!t&&n?r:o;break;case T.END:return function(e,t){return t.max};case T.HOME:return function(e,t){return t.min};case T.PAGE_UP:return function(e,t){return e+2*t.step};case T.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}}var B=["index"];function U(){}function W(e){var o,i;return i=o=function(e){(0,u.Z)(i,e);var o=(0,s.Z)(i);function i(e){var t;(0,r.Z)(this,i),(t=o.call(this,e)).handlesRefs=void 0,t.sliderRef=void 0,t.document=void 0,t.dragOffset=void 0,t.prevMovedHandleIndex=void 0,t.onTouchMoveListener=void 0,t.onTouchUpListener=void 0,t.onMouseMoveListener=void 0,t.onMouseUpListener=void 0,t.dragTrack=void 0,t.startBounds=void 0,t.onDown=function(e,n){var r=n,o=t.props,i=o.draggableTrack,a=o.vertical,u=t.state.bounds,s=i&&t.positionGetValue&&t.positionGetValue(r)||[],c=P(e,t.handlesRefs);if(t.dragTrack=i&&u.length>=2&&!c&&!s.map((function(e,t){var n=!!t||e>=u[t];return t===s.length-1?e<=u[t]:n})).some((function(e){return!e})),t.dragTrack)t.dragOffset=r,t.startBounds=(0,h.Z)(u);else{if(c){var l=j(a,e.target);t.dragOffset=r-l,r=l}else t.dragOffset=0;t.onStart(r)}},t.onMouseDown=function(e){if(0===e.button){t.removeDocumentEvents();var n=D(t.props.vertical,e);t.onDown(e,n),t.addDocumentMouseEvents()}},t.onTouchStart=function(e){if(!N(e)){var n=R(t.props.vertical,e);t.onDown(e,n),t.addDocumentTouchEvents(),I(e)}},t.onFocus=function(e){var n=t.props,r=n.onFocus,o=n.vertical;if(P(e,t.handlesRefs)&&!t.dragTrack){var i=j(o,e.target);t.dragOffset=0,t.onStart(i),I(e),r&&r(e)}},t.onBlur=function(e){var n=t.props.onBlur;t.dragTrack||t.onEnd(),n&&n(e)},t.onMouseUp=function(){t.handlesRefs[t.prevMovedHandleIndex]&&t.handlesRefs[t.prevMovedHandleIndex].clickFocus()},t.onMouseMove=function(e){if(t.sliderRef){var n=D(t.props.vertical,e);t.onMove(e,n-t.dragOffset,t.dragTrack,t.startBounds)}else t.onEnd()},t.onTouchMove=function(e){if(!N(e)&&t.sliderRef){var n=R(t.props.vertical,e);t.onMove(e,n-t.dragOffset,t.dragTrack,t.startBounds)}else t.onEnd()},t.onKeyDown=function(e){t.sliderRef&&P(e,t.handlesRefs)&&t.onKeyboard(e)},t.onClickMarkLabel=function(e,n){e.stopPropagation(),t.onChange({value:n}),t.setState({value:n},(function(){return t.onEnd(!0)}))},t.saveSlider=function(e){t.sliderRef=e};var n=e.step,a=e.max,u=e.min,s=!isFinite(a-u)||(a-u)%n==0;return(0,c.ZP)(!n||Math.floor(n)!==n||s,"Slider[max] - Slider[min] (".concat(a-u,") should be a multiple of Slider[step] (").concat(n,")")),t.handlesRefs={},t}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){g((0,v.Z)(i.prototype),"componentWillUnmount",this)&&g((0,v.Z)(i.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=w(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=w(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=w(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=w(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){var e;this.props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){var n,r;null===(n=e.handlesRefs[t])||void 0===n||null===(r=n.blur)||void 0===r||r.call(n)}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,r=(e-n)/(t.max-n);return Math.max(0,100*r)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,r=this.props,o=r.prefixCls,a=r.className,u=r.marks,s=r.dots,c=r.step,f=r.included,p=r.disabled,d=r.vertical,h=r.reverse,m=r.min,y=r.max,b=r.children,w=r.maximumTrackStyle,x=r.style,O=r.railStyle,M=r.dotStyle,S=r.activeDotStyle,C=g((0,v.Z)(i.prototype),"render",this).call(this),T=C.tracks,P=C.handles,_=E()(o,(e={},(0,l.Z)(e,"".concat(o,"-with-marks"),Object.keys(u).length),(0,l.Z)(e,"".concat(o,"-disabled"),p),(0,l.Z)(e,"".concat(o,"-vertical"),d),(0,l.Z)(e,a,a),e));return t().createElement("div",{ref:this.saveSlider,className:_,onTouchStart:p?U:this.onTouchStart,onMouseDown:p?U:this.onMouseDown,onMouseUp:p?U:this.onMouseUp,onKeyDown:p?U:this.onKeyDown,onFocus:p?U:this.onFocus,onBlur:p?U:this.onBlur,style:x},t().createElement("div",{className:"".concat(o,"-rail"),style:(0,n.Z)((0,n.Z)({},w),O)}),T,t().createElement(k,{prefixCls:o,vertical:d,reverse:h,marks:u,dots:s,step:c,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,dotStyle:M,activeDotStyle:S}),P,t().createElement(Z,{className:"".concat(o,"-mark"),onClickLabel:p?U:this.onClickMarkLabel,vertical:d,marks:u,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,reverse:h}),b)}}]),i}(e),o.displayName="ComponentEnhancer(".concat(e.displayName,")"),o.defaultProps=(0,n.Z)((0,n.Z)({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var n=e.index,r=(0,d.Z)(e,B);return delete r.dragging,null===r.value?null:t().createElement(S,(0,p.Z)({},r,{key:n}))},onBeforeChange:U,onChange:U,onAfterChange:U,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),i}var z=function(e){(0,u.Z)(i,e);var o=(0,s.Z)(i);function i(e){var t;(0,r.Z)(this,i),(t=o.call(this,e)).positionGetValue=function(e){return[]},t.startValue=void 0,t.startPosition=void 0,t.prevMovedHandleIndex=void 0,t.onEnd=function(e){var n=t.state.dragging;t.removeDocumentEvents(),(n||e)&&t.props.onAfterChange(t.getValue()),t.setState({dragging:!1})};var n=void 0!==e.defaultValue?e.defaultValue:e.min,a=void 0!==e.value?e.value:n;return t.state={value:t.trimAlignValue(a),dragging:!1},(0,c.ZP)(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),(0,c.ZP)(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),t}return(0,a.Z)(i,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.min,o=n.max,i=n.value,a=n.onChange;if("min"in this.props||"max"in this.props){var u=void 0!==i?i:t.value,s=this.trimAlignValue(u,this.props);s!==t.value&&(this.setState({value:s}),r===e.min&&o===e.max||!_(u,this.props)||a(s))}}},{key:"onChange",value:function(e){var t=this.props,r=!("value"in t),o=e.value>this.props.max?(0,n.Z)((0,n.Z)({},e),{},{value:this.props.max}):e;r&&this.setState(o);var i=o.value;t.onChange(i)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){I(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=F(e,t.vertical,n);if(r){I(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){var e=this.props.startPoint||this.props.min;return this.state.value>e?e:this.state.value}},{key:"getUpperBound",value:function(){return this.state.value<this.props.startPoint?this.props.startPoint:this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var r=(0,n.Z)((0,n.Z)({},this.props),t),o=H(e,r);return V(o,r)}},{key:"render",value:function(){var e=this,r=this.props,o=r.prefixCls,i=r.vertical,a=r.included,u=r.disabled,s=r.minimumTrackStyle,c=r.trackStyle,l=r.handleStyle,p=r.tabIndex,d=r.ariaLabelForHandle,h=r.ariaLabelledByForHandle,v=r.ariaValueTextFormatterForHandle,m=r.min,g=r.max,y=r.startPoint,b=r.reverse,w=r.handle,x=this.state,E=x.value,k=x.dragging,O=this.calcOffset(E),Z=w({className:"".concat(o,"-handle"),prefixCls:o,vertical:i,offset:O,value:E,dragging:k,disabled:u,min:m,max:g,reverse:b,index:0,tabIndex:p,ariaLabel:d,ariaLabelledBy:h,ariaValueTextFormatter:v,style:l[0]||l,ref:function(t){return e.saveHandle(0,t)}}),M=void 0!==y?this.calcOffset(y):0,S=c[0]||c;return{tracks:t().createElement(f,{className:"".concat(o,"-track"),vertical:i,included:a,offset:M,reverse:b,length:O-M,style:(0,n.Z)((0,n.Z)({},s),S)}),handles:Z}}}]),i}(t().Component),G=W(z),X=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,u=Number(a),s=H(t,o),c=s;return i||null==n||void 0===r||(n>0&&s<=r[n-1]+u&&(c=r[n-1]+u),n<r.length-1&&s>=r[n+1]-u&&(c=r[n+1]-u)),V(c,o)},Y=function(e){(0,u.Z)(i,e);var o=(0,s.Z)(i);function i(e){var t;(0,r.Z)(this,i),(t=o.call(this,e)).startValue=void 0,t.startPosition=void 0,t.prevMovedHandleIndex=void 0,t.internalPointsCache=void 0,t.handlesRefs=void 0,t.dragTrack=void 0,t.positionGetValue=function(e){var n=t.getValue(),r=t.calcValueByPos(e),o=t.getClosestBound(r),i=t.getBoundNeedMoving(r,o);if(r===n[i])return null;var a=(0,h.Z)(n);return a[i]=r,a},t.onEnd=function(e){var n=t.state.handle;t.removeDocumentEvents(),n||(t.dragTrack=!1),(null!==n||e)&&t.props.onAfterChange(t.getValue()),t.setState({handle:null})};var n=e.count,a=e.min,u=e.max,s=Array.apply(void 0,(0,h.Z)(Array(n+1))).map((function(){return a})),c="defaultValue"in e?e.defaultValue:s,l=(void 0!==e.value?e.value:c).map((function(t,n){return X({value:t,handle:n,props:e})})),f=l[0]===u?0:l.length-1;return t.state={handle:null,recent:f,bounds:l},t}return(0,a.Z)(i,[{key:"calcValueByPos",value:function(e){return 0}},{key:"getSliderLength",value:function(){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.onChange,i=r.value,a=r.min,u=r.max;if(("min"in this.props||"max"in this.props)&&(a!==e.min||u!==e.max)){var s=i||t.bounds;if(s.some((function(e){return _(e,n.props)})))o(s.map((function(e){return H(e,n.props)})))}}},{key:"onChange",value:function(e){var t=this.props;if(!("value"in t))this.setState(e);else{var r={};["handle","recent"].forEach((function(t){void 0!==e[t]&&(r[t]=e[t])})),Object.keys(r).length&&this.setState(r)}var o=(0,n.Z)((0,n.Z)({},this.state),e).bounds;t.onChange(o)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var i=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,i),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var a=(0,h.Z)(n.bounds);a[this.prevMovedHandleIndex]=o,this.onChange({bounds:a})}}},{key:"onMove",value:function(e,t,n,r){I(e);var o=this.state,i=this.props,a=i.max||100,u=i.min||0;if(n){var s=i.vertical?-t:t;s=i.reverse?-s:s;var c=a-Math.max.apply(Math,(0,h.Z)(r)),l=u-Math.min.apply(Math,(0,h.Z)(r)),f=Math.min(Math.max(s/(this.getSliderLength()/(a-u)),l),c),p=r.map((function(e){return Math.floor(Math.max(Math.min(e+f,a),u))}));o.bounds.map((function(e,t){return e===p[t]})).some((function(e){return!e}))&&this.onChange({bounds:p})}else{var d=this.calcValueByPos(t);d!==o.bounds[o.handle]&&this.moveTo(d)}}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=F(e,t.vertical,n);if(r){I(e);var o=this.state,i=this.props,a=o.bounds,u=o.handle,s=a[null===u?o.recent:u],c=r(s,i),l=X({value:c,handle:u,bounds:o.bounds,props:i});if(l===s)return;this.moveTo(l,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,r=n.bounds,o=n.recent,i=t,a=r[t+1]===r[t];return a&&r[o]===r[t]&&(i=o),a&&e!==r[t+1]&&(i=e<r[t+1]?t:t+1),i}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,r=e.step,o=e.min,i=e.max,a=this.internalPointsCache;if(!a||a.marks!==t||a.step!==r){var u=(0,n.Z)({},t);if(null!==r)for(var s=o;s<=i;s+=r)u[s]=s;var c=Object.keys(u).map(parseFloat);c.sort((function(e,t){return e-t})),this.internalPointsCache={marks:t,step:r,points:c}}return this.internalPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,r=this.state,o=this.props,i=(0,h.Z)(r.bounds),a=null===r.handle?r.recent:r.handle;i[a]=e;var u=a;!1!==o.pushable?this.pushSurroundingHandles(i,u):o.allowCross&&(i.sort((function(e,t){return e-t})),u=i.indexOf(e)),this.onChange({recent:u,handle:u,bounds:i}),t&&(this.props.onAfterChange(i),this.setState({},(function(){n.handlesRefs[u].focus()})),this.onEnd())}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],r=this.props.pushable,o=Number(r),i=0;if(e[t+1]-n<o&&(i=1),n-e[t-1]<o&&(i=-1),0!==i){var a=t+i,u=i*(e[a]-n);this.pushHandle(e,a,i,o-u)||(e[t]=e[a]-i*o)}}},{key:"pushHandle",value:function(e,t,n,r){for(var o=e[t],i=e[t];n*(i-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t])+n;if(o>=r.length||o<0)return!1;var i=t+n,a=r[o],u=this.props.pushable,s=Number(u),c=n*(e[i]-a);return!!this.pushHandle(e,i,n,s-c)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return X({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,n=this.state,r=n.handle,o=n.bounds,i=this.props,a=i.prefixCls,u=i.vertical,s=i.included,c=i.disabled,p=i.min,d=i.max,h=i.reverse,v=i.handle,m=i.trackStyle,g=i.handleStyle,y=i.tabIndex,b=i.ariaLabelGroupForHandles,w=i.ariaLabelledByGroupForHandles,x=i.ariaValueTextFormatterGroupForHandles,k=o.map((function(t){return e.calcOffset(t)})),O="".concat(a,"-handle"),Z=o.map((function(t,n){var o,i=y[n]||0;(c||null===y[n])&&(i=null);var s=r===n;return v({className:E()((o={},(0,l.Z)(o,O,!0),(0,l.Z)(o,"".concat(O,"-").concat(n+1),!0),(0,l.Z)(o,"".concat(O,"-dragging"),s),o)),prefixCls:a,vertical:u,dragging:s,offset:k[n],value:t,index:n,tabIndex:i,min:p,max:d,reverse:h,disabled:c,style:g[n],ref:function(t){return e.saveHandle(n,t)},ariaLabel:b[n],ariaLabelledBy:w[n],ariaValueTextFormatter:x[n]})})),M=o.slice(0,-1).map((function(e,n){var r,o=n+1,i=E()((r={},(0,l.Z)(r,"".concat(a,"-track"),!0),(0,l.Z)(r,"".concat(a,"-track-").concat(o),!0),r));return t().createElement(f,{className:i,vertical:u,reverse:h,included:s,offset:k[o-1],length:k[o]-k[o-1],style:m[n],key:o})}));return{tracks:M,handles:Z}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!("value"in e||"min"in e||"max"in e))return null;var r=e.value||t.bounds,o=r.map((function(n,r){return X({value:n,handle:r,bounds:t.bounds,props:e})}));if(t.bounds.length===o.length){if(o.every((function(e,n){return e===t.bounds[n]})))return null}else o=r.map((function(t,n){return X({value:t,handle:n,props:e})}));return(0,n.Z)((0,n.Z)({},t),{},{bounds:o})}}]),i}(t().Component);Y.displayName="Range",Y.defaultProps={count:1,allowCross:!0,pushable:!1,draggableTrack:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var K=W(Y),q=o(97326),Q=function(e){return+setTimeout(e,16)},$=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Q=function(e){return window.requestAnimationFrame(e)},$=function(e){return window.cancelAnimationFrame(e)});var J=0,ee=new Map;function te(e){ee.delete(e)}var ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=J+=1;function r(t){if(0===t)te(n),e();else{var o=Q((function(){r(t-1)}));ee.set(n,o)}}return r(t),n};ne.cancel=function(e){var t=ee.get(e);return te(t),$(t)};var re=ne;function oe(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}function ie(e){return e instanceof HTMLElement?e:b().findDOMNode(e)}var ae=o(11805);function ue(e,t){"function"==typeof e?e(t):"object"===(0,O.Z)(e)&&e&&"current"in e&&(e.current=t)}function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){ue(t,e)}))}}function ce(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var le=(0,e.forwardRef)((function(t,n){var r=t.didUpdate,o=t.getContainer,i=t.children,a=(0,e.useRef)(),u=(0,e.useRef)();(0,e.useImperativeHandle)(n,(function(){return{}}));var s=(0,e.useRef)(!1);return!s.current&&ce()&&(u.current=o(),a.current=u.current.parentNode,s.current=!0),(0,e.useEffect)((function(){null==r||r(t)})),(0,e.useEffect)((function(){return null===u.current.parentNode&&null!==a.current&&a.current.appendChild(u.current),function(){var e,t;null===(e=u.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(u.current)}}),[]),u.current?b().createPortal(i,u.current):null}));function fe(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var pe=o(93324);function de(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 he,ve,me,ge=(he=ce(),ve="undefined"!=typeof window?window:{},me={animationend:de("Animation","AnimationEnd"),transitionend:de("Transition","TransitionEnd")},he&&("AnimationEvent"in ve||delete me.animationend.animation,"TransitionEvent"in ve||delete me.transitionend.transition),me),ye={};if(ce()){var be=document.createElement("div");ye=be.style}var we={};function xe(e){if(we[e])return we[e];var t=ge[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 ye)return we[e]=t[i],we[e]}return""}var Ee=xe("animationend"),ke=xe("transitionend"),Oe=!(!Ee||!ke),Ze=Ee||"animationend",Me=ke||"transitionend";function Se(e,t){return e?"object"===(0,O.Z)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var Ce="none",Te="appear",Pe="enter",_e="leave",Ne="none",Le="prepare",Ae="start",De="active",Re="end";function je(t){var n=(0,e.useRef)(!1),r=(0,e.useState)(t),o=(0,pe.Z)(r,2),i=o[0],a=o[1];return(0,e.useEffect)((function(){return function(){n.current=!0}}),[]),[i,function(e){n.current||a(e)}]}var He=ce()?e.useLayoutEffect:e.useEffect,Ve=[Le,Ae,De,Re];function Ie(e){return e===De||e===Re}var Fe=function(t,n){var r=e.useState(Ne),o=(0,pe.Z)(r,2),i=o[0],a=o[1],u=function(){var t=e.useRef(null);function n(){re.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=re((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),s=(0,pe.Z)(u,2),c=s[0],l=s[1];return He((function(){if(i!==Ne&&i!==Re){var e=Ve.indexOf(i),t=Ve[e+1],r=n(i);false===r?a(t):c((function(e){function n(){e.isCanceled()||a(t)}!0===r?n():Promise.resolve(r).then(n)}))}}),[t,i]),e.useEffect((function(){return function(){l()}}),[]),[function(){a(Le)},i]};function Be(t,r,o,i){var a=i.motionEnter,u=void 0===a||a,s=i.motionAppear,c=void 0===s||s,f=i.motionLeave,p=void 0===f||f,d=i.motionDeadline,h=i.motionLeaveImmediately,v=i.onAppearPrepare,m=i.onEnterPrepare,g=i.onLeavePrepare,y=i.onAppearStart,b=i.onEnterStart,w=i.onLeaveStart,x=i.onAppearActive,E=i.onEnterActive,k=i.onLeaveActive,O=i.onAppearEnd,Z=i.onEnterEnd,M=i.onLeaveEnd,S=i.onVisibleChanged,C=je(),T=(0,pe.Z)(C,2),P=T[0],_=T[1],N=je(Ce),L=(0,pe.Z)(N,2),A=L[0],D=L[1],R=je(null),j=(0,pe.Z)(R,2),H=j[0],V=j[1],I=(0,e.useRef)(!1),F=(0,e.useRef)(null),B=(0,e.useRef)(!1),U=(0,e.useRef)(null);function W(){return o()||U.current}var z=(0,e.useRef)(!1);function G(e){var t,n=W();e&&!e.deadline&&e.target!==n||(A===Te&&z.current?t=null==O?void 0:O(n,e):A===Pe&&z.current?t=null==Z?void 0:Z(n,e):A===_e&&z.current&&(t=null==M?void 0:M(n,e)),!1===t||B.current||(D(Ce),V(null)))}var X=function(t){var n=(0,e.useRef)(),r=(0,e.useRef)(t);r.current=t;var o=e.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(Me,o),e.removeEventListener(Ze,o))}return e.useEffect((function(){return function(){i(n.current)}}),[]),[function(e){n.current&&n.current!==e&&i(n.current),e&&e!==n.current&&(e.addEventListener(Me,o),e.addEventListener(Ze,o),n.current=e)},i]}(G),Y=(0,pe.Z)(X,1)[0],K=e.useMemo((function(){var e,t,n;switch(A){case"appear":return e={},(0,l.Z)(e,Le,v),(0,l.Z)(e,Ae,y),(0,l.Z)(e,De,x),e;case"enter":return t={},(0,l.Z)(t,Le,m),(0,l.Z)(t,Ae,b),(0,l.Z)(t,De,E),t;case"leave":return n={},(0,l.Z)(n,Le,g),(0,l.Z)(n,Ae,w),(0,l.Z)(n,De,k),n;default:return{}}}),[A]),q=Fe(A,(function(e){if(e===Le){var t=K[Le];return!!t&&t(W())}var n;J in K&&V((null===(n=K[J])||void 0===n?void 0:n.call(K,W(),null))||null);return J===De&&(Y(W()),d>0&&(clearTimeout(F.current),F.current=setTimeout((function(){G({deadline:!0})}),d))),true})),Q=(0,pe.Z)(q,2),$=Q[0],J=Q[1],ee=Ie(J);z.current=ee,He((function(){_(r);var e,n=I.current;(I.current=!0,t)&&(!n&&r&&c&&(e=Te),n&&r&&u&&(e=Pe),(n&&!r&&p||!n&&h&&!r&&p)&&(e=_e),e&&(D(e),$()))}),[r]),(0,e.useEffect)((function(){(A===Te&&!c||A===Pe&&!u||A===_e&&!p)&&D(Ce)}),[c,u,p]),(0,e.useEffect)((function(){return function(){clearTimeout(F.current),B.current=!0}}),[]),(0,e.useEffect)((function(){void 0!==P&&A===Ce&&(null==S||S(P))}),[P,A]);var te=H;return K[Le]&&J===Ae&&(te=(0,n.Z)({transition:"none"},te)),[A,J,te,null!=P?P:r]}var Ue=function(e){(0,u.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component),We=Ue;var ze=function(t){var r=t;function o(e){return!(!e.motionName||!r)}"object"===(0,O.Z)(t)&&(r=t.transitionSupport);var i=e.forwardRef((function(t,r){var i=t.visible,a=void 0===i||i,u=t.removeOnLeave,s=void 0===u||u,c=t.forceRender,f=t.children,p=t.motionName,d=t.leavedClassName,h=t.eventProps,v=o(t),m=(0,e.useRef)(),g=(0,e.useRef)();var y=Be(v,a,(function(){try{return ie(m.current||g.current)}catch(e){return null}}),t),b=(0,pe.Z)(y,4),w=b[0],x=b[1],k=b[2],O=b[3],Z=e.useRef(O);O&&(Z.current=!0);var M=(0,e.useRef)(r);M.current=r;var S,C=e.useCallback((function(e){m.current=e,ue(M.current,e)}),[]),T=(0,n.Z)((0,n.Z)({},h),{},{visible:a});if(f)if(w!==Ce&&o(t)){var P,_;x===Le?_="prepare":Ie(x)?_="active":x===Ae&&(_="start"),S=f((0,n.Z)((0,n.Z)({},T),{},{className:E()(Se(p,w),(P={},(0,l.Z)(P,Se(p,"".concat(w,"-").concat(_)),_),(0,l.Z)(P,p,"string"==typeof p),P)),style:k}),C)}else S=O?f((0,n.Z)({},T),C):!s&&Z.current?f((0,n.Z)((0,n.Z)({},T),{},{className:d}),C):c?f((0,n.Z)((0,n.Z)({},T),{},{style:{display:"none"}}),C):null;else S=null;return e.createElement(We,{ref:g},S)}));return i.displayName="CSSMotion",i}(Oe),Ge="add",Xe="keep",Ye="remove",Ke="removed";function qe(e){var t;return t=e&&"object"===(0,O.Z)(e)&&"key"in e?e:{key:e},(0,n.Z)((0,n.Z)({},t),{},{key:String(t.key)})}function Qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(qe)}function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],o=0,i=t.length,a=Qe(e),u=Qe(t);a.forEach((function(e){for(var t=!1,a=o;a<i;a+=1){var s=u[a];if(s.key===e.key){o<a&&(r=r.concat(u.slice(o,a).map((function(e){return(0,n.Z)((0,n.Z)({},e),{},{status:Ge})}))),o=a),r.push((0,n.Z)((0,n.Z)({},s),{},{status:Xe})),o+=1,t=!0;break}}t||r.push((0,n.Z)((0,n.Z)({},e),{},{status:Ye}))})),o<i&&(r=r.concat(u.slice(o).map((function(e){return(0,n.Z)((0,n.Z)({},e),{},{status:Ge})}))));var s={};r.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var c=Object.keys(s).filter((function(e){return s[e]>1}));return c.forEach((function(e){(r=r.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Ye}))).forEach((function(t){t.key===e&&(t.status=Xe)}))})),r}var Je=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze,i=function(t){(0,u.Z)(c,t);var i=(0,s.Z)(c);function c(){var e;return(0,r.Z)(this,c),(e=i.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,n.Z)((0,n.Z)({},e),{},{status:Ke})}))}}))},e}return(0,a.Z)(c,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,u=r.onVisibleChanged,s=(0,d.Z)(r,["component","children","onVisibleChanged"]),c=i||e.Fragment,l={};return Je.forEach((function(e){l[e]=s[e],delete s[e]})),delete s.keys,e.createElement(c,s,n.map((function(n){var r=n.status,i=(0,d.Z)(n,["status"]),s=r===Ge||r===Xe;return e.createElement(o,(0,p.Z)({},l,{key:i.key,visible:s,eventProps:i,onVisibleChanged:function(e){null==u||u(e,{key:i.key}),e||t.removeKey(i.key)}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Qe(n);return{keyEntities:$e(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Ke||e.status!==Ye}))}}}]),c}(e.Component);i.defaultProps={component:"div"}}(Oe);var et,tt=ze;function nt(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 rt(t){var r=t.prefixCls,o=t.visible,i=t.zIndex,a=t.mask,u=t.maskMotion,s=t.maskAnimation,c=t.maskTransitionName;if(!a)return null;var l={};return(u||c||s)&&(l=(0,n.Z)({motionAppear:!0},nt({motion:u,prefixCls:r,transitionName:c,animation:s}))),e.createElement(tt,(0,p.Z)({},l,{visible:o,removeOnLeave:!0}),(function(t){var n=t.className;return e.createElement("div",{style:{zIndex:i},className:E()("".concat(r,"-mask"),n)})}))}function ot(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 it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e){return at="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},at(e)}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function ct(){if(void 0!==et)return et;et="";var e=document.createElement("p").style;for(var t in st)t+"Transform"in e&&(et=t);return et}function lt(){return ct()?"".concat(ct(),"TransitionProperty"):"transitionProperty"}function ft(){return ct()?"".concat(ct(),"Transform"):"transform"}function pt(e,t){var n=lt();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function dt(e,t){var n=ft();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var ht,vt=/matrix\((.*)\)/,mt=/matrix3d\((.*)\)/;function gt(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function yt(e,t,n){var r=n;if("object"!==at(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):ht(e,t);for(var o in t)t.hasOwnProperty(o)&&yt(e,o,t[o])}function bt(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 wt(e){return bt(e)}function xt(e){return bt(e,!0)}function Et(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+=wt(r),t.top+=xt(r),t}function kt(e){return null!=e&&e==e.window}function Ot(e){return kt(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Zt=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Mt=/^(top|right|bottom|left)$/,St="currentStyle",Ct="runtimeStyle",Tt="left";function Pt(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function _t(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Nt(e,t,n){"static"===yt(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=Pt("left",n),a=Pt("top",n),u=_t(i),s=_t(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var c,l="",f=Et(e);("left"in t||"top"in t)&&(l=(c=e).style.transitionProperty||c.style[lt()]||"",pt(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),gt(e);var p=Et(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=Pt(h,n),m="left"===h?r:o,g=f[h]-p[h];d[v]=v===h?m+g:m-g}yt(e,d),gt(e),("left"in t||"top"in t)&&pt(e,l);var y={};for(var b in t)if(t.hasOwnProperty(b)){var w=Pt(b,n),x=t[b]-f[b];y[w]=b===w?d[w]+x:d[w]-x}yt(e,y)}function Lt(e,t){var n=Et(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(ft());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(ft());if(r&&"none"!==r){var o,i=r.match(vt);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,dt(e,"matrix(".concat(o.join(","),")"))):((o=r.match(mt)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,dt(e,"matrix3d(".concat(o.join(","),")")))}else dt(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function At(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Dt(e){return"border-box"===ht(e,"boxSizing")}"undefined"!=typeof window&&(ht=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Ot(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[St]&&e[St][t];if(Zt.test(n)&&!Mt.test(t)){var r=e.style,o=r[Tt],i=e[Ct][Tt];e[Ct][Tt]=e[St][Tt],r[Tt]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[Tt]=o,e[Ct][Tt]=i}return""===n?"auto":n});var Rt=["margin","border","padding"];function jt(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])}function Ht(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 u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(ht(e,u))||0}return a}var Vt={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 It(e,t,n){var r=n;if(kt(e))return"width"===t?Vt.viewportWidth(e):Vt.viewportHeight(e);if(9===e.nodeType)return"width"===t?Vt.docWidth(e):Vt.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=Dt(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=ht(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=Math.floor(parseFloat(u))||0),void 0===r&&(r=a?1:-1);var s=void 0!==i||a,c=i||u;return-1===r?s?c-Ht(e,["border","padding"],o):u:s?1===r?c:c+(2===r?-Ht(e,["border"],o):Ht(e,["margin"],o)):u+Ht(e,Rt.slice(r),o)}At(["Width","Height"],(function(e){Vt["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Vt["viewport".concat(e)](n))},Vt["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 Ft={position:"absolute",visibility:"hidden",display:"block"};function Bt(){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=It.apply(void 0,t):jt(o,Ft,(function(){r=It.apply(void 0,t)})),r}function Ut(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}At(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Vt["outer".concat(t)]=function(t,n){return t&&Bt(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Vt[e]=function(t,r){var o=r;return void 0!==o?t?(Dt(t)&&(o+=Ht(t,["padding","border"],n)),yt(t,e,o)):void 0:t&&Bt(t,e,-1)}}));var Wt={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Ot,offset:function(e,t,n){if(void 0===t)return Et(e);!function(e,t,n){if(n.ignoreShake){var r=Et(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?Nt(e,t,n):n.useCssTransform&&ft()in document.body.style?Lt(e,t):Nt(e,t,n)}(e,t,n||{})},isWindow:kt,each:At,css:yt,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:Ut,getWindowScrollLeft:function(e){return wt(e)},getWindowScrollTop:function(e){return xt(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Wt.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Ut(Wt,Vt);var zt=Wt.getParent;function Gt(e){if(Wt.isWindow(e)||9===e.nodeType)return null;var t,n=Wt.getDocument(e).body,r=Wt.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:zt(e);for(t=zt(e);t&&t!==n&&9!==t.nodeType;t=zt(t))if("static"!==(r=Wt.css(t,"position")))return t;return null}var Xt=Wt.getParent;function Yt(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Gt(e),o=Wt.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===u||"visible"===Wt.css(r,"overflow")){if(r===a||r===u)break}else{var s=Wt.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}r=Gt(r)}var c=null;Wt.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===Wt.css(e,"position")&&(e.style.position="fixed"));var l=Wt.getWindowScrollLeft(i),f=Wt.getWindowScrollTop(i),p=Wt.viewportWidth(i),d=Wt.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(Wt.isWindow(e)||9===e.nodeType)return!1;var t=Wt.getDocument(e),n=t.body,r=null;for(r=Xt(e);r&&r!==n&&r!==t;r=Xt(r))if("fixed"===Wt.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 g=Math.max(h,l+p);n.right=Math.min(n.right,g);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 Kt(e){var t,n,r;if(Wt.isWindow(e)||9===e.nodeType){var o=Wt.getWindow(e);t={left:Wt.getWindowScrollLeft(o),top:Wt.getWindowScrollTop(o)},n=Wt.viewportWidth(o),r=Wt.viewportHeight(o)}else t=Wt.offset(e),n=Wt.outerWidth(e),r=Wt.outerHeight(e);return t.width=n,t.height=r,t}function qt(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function Qt(e,t,n,r,o){var i=qt(t,n[1]),a=qt(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function $t(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Jt(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function en(e,t,n){var r=[];return Wt.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function tn(e,t){return e[t]=-e[t],e}function nn(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function rn(e,t){e[0]=nn(e[0],t.width),e[1]=nn(e[1],t.height)}function on(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var c={},l=0,f=Yt(s,!(!(u=u||{})||!u.alwaysByViewport)),p=Kt(s);rn(i,p),rn(a,t);var d=Qt(p,t,o,i,a),h=Wt.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&$t(d,p,f)){var v=en(o,/[lr]/gi,{l:"r",r:"l"}),m=tn(i,0),g=tn(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Qt(p,t,v,m,g),p,f)||(l=1,o=v,i=m,a=g)}if(u.adjustY&&Jt(d,p,f)){var y=en(o,/[tb]/gi,{t:"b",b:"t"}),b=tn(i,1),w=tn(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Qt(p,t,y,b,w),p,f)||(l=1,o=y,i=b,a=w)}l&&(d=Qt(p,t,o,i,a),Wt.mix(h,d));var x=$t(d,p,f),E=Jt(d,p,f);if(x||E){var k=o;x&&(k=en(o,/[lr]/gi,{l:"r",r:"l"})),E&&(k=en(o,/[tb]/gi,{t:"b",b:"t"})),o=k,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=u.adjustX&&x,c.adjustY=u.adjustY&&E,(c.adjustX||c.adjustY)&&(h=function(e,t,n,r){var o=Wt.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)),Wt.mix(o,i)}(d,p,f,c))}return h.width!==p.width&&Wt.css(s,"width",Wt.width(s)+h.width-p.width),h.height!==p.height&&Wt.css(s,"height",Wt.height(s)+h.height-p.height),Wt.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function an(e,t,n){var r=n.target||t,o=Kt(r),i=!function(e,t){var n=Yt(e,t),r=Kt(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 on(e,o,n,i)}an.__getOffsetParent=Gt,an.__getVisibleRectForElement=Yt;var un=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;function o(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(e);if((0,c.ZP)(!a,"Warning: There may be circular references"),a)return!1;if(e===t)return!0;if(n&&i>1)return!1;r.add(e);var u=i+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var s=0;s<e.length;s++)if(!o(e[s],t[s],u))return!1;return!0}if(e&&t&&"object"===(0,O.Z)(e)&&"object"===(0,O.Z)(t)){var l=Object.keys(e);return l.length===Object.keys(t).length&&l.every((function(n){return o(e[n],t[n],u)}))}return!1}return o(e,t)},sn=ce()?e.useLayoutEffect:e.useEffect,cn=sn,ln=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),fn="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,pn=void 0!==o.g&&o.g.Math===Math?o.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),dn="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(pn):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var hn=["top","right","bottom","left","width","height","size","weight"],vn="undefined"!=typeof MutationObserver,mn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function a(){dn(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){fn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vn?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){fn&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;hn.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),gn=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},yn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||pn},bn=Zn(0,0,0,0);function wn(e){return parseFloat(e)||0}function xn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+wn(e["border-"+n+"-width"])}),0)}function En(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return bn;var r=yn(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=wn(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=wn(r.width),s=wn(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=xn(r,"left","right")+i),Math.round(s+a)!==n&&(s-=xn(r,"top","bottom")+a)),!function(e){return e===yn(e).document.documentElement}(e)){var c=Math.round(u+i)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return Zn(o.left,o.top,u,s)}var kn="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof yn(e).SVGGraphicsElement}:function(e){return e instanceof yn(e).SVGElement&&"function"==typeof e.getBBox};function On(e){return fn?kn(e)?function(e){var t=e.getBBox();return Zn(0,0,t.width,t.height)}(e):En(e):bn}function Zn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Mn=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Zn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=On(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Sn=function(e,t){var n,r,o,i,a,u,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),gn(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);gn(this,{target:e,contentRect:c})},Cn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ln,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof yn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Mn(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof yn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Sn(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Tn="undefined"!=typeof WeakMap?new WeakMap:new ln,Pn=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=mn.getInstance(),r=new Cn(t,n,this);Tn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Pn.prototype[e]=function(){var t;return(t=Tn.get(this))[e].apply(t,arguments)}}));var _n=void 0!==pn.ResizeObserver?pn.ResizeObserver:Pn;function Nn(e,t){var n=null,r=null;var o=new _n((function(e){var o=(0,pe.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,s=Math.floor(a),c=Math.floor(u);n===s&&r===c||Promise.resolve().then((function(){t({width:s,height:c})})),n=s,r=c}}));return e&&o.observe(e),function(){o.disconnect()}}function Ln(e){return"function"!=typeof e?null:e()}function An(e){return"object"===(0,O.Z)(e)&&e?e:null}var Dn=function(e,n){var r=e.children,o=e.disabled,i=e.target,a=e.align,u=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,l=void 0===c?0:c,f=t().useRef({}),p=t().useRef(),d=t().Children.only(r),h=t().useRef({});h.current.disabled=o,h.current.target=i,h.current.align=a,h.current.onAlign=u;var v=function(e,n){var r=t().useRef(!1),o=t().useRef(null);function i(){window.clearTimeout(o.current)}return[function t(a){if(i(),r.current&&!0!==a)o.current=window.setTimeout((function(){r.current=!1,t()}),n);else{if(!1===e(a))return;r.current=!0,o.current=window.setTimeout((function(){r.current=!1}),n)}},function(){r.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=p.current;if(!t&&n&&i){var a,u=Ln(n),s=An(n);f.current.element=u,f.current.point=s,f.current.align=r;var c=document.activeElement;return u&&function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1}(u)?a=an(i,u,r):s&&(a=function(e,t,n){var r,o,i=Wt.getDocument(e),a=i.defaultView||i.parentWindow,u=Wt.getWindowScrollLeft(a),s=Wt.getWindowScrollTop(a),c=Wt.viewportWidth(a),l=Wt.viewportHeight(a),f={left:r="pageX"in t?t.pageX:u+t.clientX,top:o="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},p=r>=0&&r<=u+c&&o>=0&&o<=s+l,d=[n.points[0],"cc"];return on(e,f,it(it({},n),{},{points:d}),p)}(i,s,r)),function(e,t){e!==document.activeElement&&oe(t,e)&&"function"==typeof e.focus&&e.focus()}(c,i),o&&a&&o(i,a),!0}return!1}),l),m=(0,pe.Z)(v,2),g=m[0],y=m[1],b=t().useState(),x=(0,pe.Z)(b,2),E=x[0],k=x[1],O=t().useState(),Z=(0,pe.Z)(O,2),M=Z[0],S=Z[1];return cn((function(){k(Ln(i)),S(An(i))})),t().useEffect((function(){var e,t;f.current.element===E&&((e=f.current.point)===(t=M)||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))&&un(f.current.align,a)||g()})),t().useEffect((function(){return Nn(p.current,g)}),[p.current]),t().useEffect((function(){return Nn(E,g)}),[E]),t().useEffect((function(){o?y():g()}),[o]),t().useEffect((function(){if(s)return w(window,"resize",g).remove}),[s]),t().useEffect((function(){return function(){y()}}),[]),t().useImperativeHandle(n,(function(){return{forceAlign:function(){return g(!0)}}})),t().isValidElement(d)&&(d=t().cloneElement(d,{ref:se(d.ref,p)})),d},Rn=t().forwardRef(Dn);Rn.displayName="Align";var jn=Rn;function Hn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
15
+ Hn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.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 c(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),u=new M(o||[]);return r(a,"_invoke",{value:x(e,n,u)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function p(){}function d(){}function h(){}var v={};s(v,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&n.call(g,i)&&(v=g);var y=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,u){var s=l(e[r],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==(0,O.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,u)}))}u(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(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 Z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:d,configurable:!0}),d.displayName=s(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,u,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,u,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.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}},e.values=S,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Z),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var 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,f):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),f},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),Z(n),f}},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;Z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Vn=o(15861);var In=["measure","alignPre","align",null,"motion"],Fn=function(t,n){var r,o,i,a,u,s,c=(r=null,o=e.useRef(!1),i=e.useState(r),a=(0,pe.Z)(i,2),u=a[0],s=a[1],e.useEffect((function(){return o.current=!1,function(){o.current=!0}}),[]),[u,function(e,t){t&&o.current||s(e)}]),l=(0,pe.Z)(c,2),f=l[0],p=l[1],d=(0,e.useRef)();function h(e){p(e,!0)}function v(){re.cancel(d.current)}return(0,e.useEffect)((function(){h("measure")}),[t]),(0,e.useEffect)((function(){if("measure"===f)n();f&&(d.current=re((0,Vn.Z)(Hn().mark((function e(){var t,n;return Hn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=In.indexOf(f),(n=In[t+1])&&-1!==t&&h(n);case 3:case"end":return e.stop()}}),e)})))))}),[f]),(0,e.useEffect)((function(){return function(){v()}}),[]),[f,function(e){v(),d.current=re((function(){h((function(e){switch(f){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]},Bn=e.forwardRef((function(t,r){var o=t.visible,i=t.prefixCls,a=t.className,u=t.style,s=t.children,c=t.zIndex,l=t.stretch,f=t.destroyPopupOnHide,d=t.forceRender,h=t.align,v=t.point,m=t.getRootDomNode,g=t.getClassNameFromAlign,y=t.onAlign,b=t.onMouseEnter,w=t.onMouseLeave,x=t.onMouseDown,k=t.onTouchStart,O=t.onClick,Z=(0,e.useRef)(),M=(0,e.useRef)(),S=(0,e.useState)(),C=(0,pe.Z)(S,2),T=C[0],P=C[1],_=function(t){var n=e.useState({width:0,height:0}),r=(0,pe.Z)(n,2),o=r[0],i=r[1];return[e.useMemo((function(){var e={};if(t){var n=o.width,r=o.height;-1!==t.indexOf("height")&&r?e.height=r:-1!==t.indexOf("minHeight")&&r&&(e.minHeight=r),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,o]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),o=r.width,a=r.height;Math.abs(t-o)<1&&Math.abs(n-a)<1&&(t=o,n=a),i({width:t,height:n})}]}(l),N=(0,pe.Z)(_,2),L=N[0],A=N[1];var D=Fn(o,(function(){l&&A(m())})),R=(0,pe.Z)(D,2),j=R[0],H=R[1],V=(0,e.useState)(0),I=(0,pe.Z)(V,2),F=I[0],B=I[1],U=(0,e.useRef)();function W(){var e;null===(e=Z.current)||void 0===e||e.forceAlign()}function z(e,t){var n=g(t);T!==n&&P(n),B((function(e){return e+1})),"align"===j&&(null==y||y(e,t))}cn((function(){"alignPre"===j&&B(0)}),[j]),cn((function(){"align"===j&&(F<3?W():H((function(){var e;null===(e=U.current)||void 0===e||e.call(U)})))}),[F]);var G=(0,n.Z)({},nt(t));function X(){return new Promise((function(e){U.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=G[e];G[e]=function(e,n){return H(),null==t?void 0:t(e,n)}})),e.useEffect((function(){G.motionName||"motion"!==j||H()}),[G.motionName,j]),e.useImperativeHandle(r,(function(){return{forceAlign:W,getElement:function(){return M.current}}}));var Y=(0,n.Z)((0,n.Z)({},L),{},{zIndex:c,opacity:"motion"!==j&&"stable"!==j&&o?0:void 0,pointerEvents:o||"stable"===j?void 0:"none"},u),K=!0;null==h||!h.points||"align"!==j&&"stable"!==j||(K=!1);var q=s;return e.Children.count(s)>1&&(q=e.createElement("div",{className:"".concat(i,"-content")},s)),e.createElement(tt,(0,p.Z)({visible:o,ref:M,leavedClassName:"".concat(i,"-hidden")},G,{onAppearPrepare:X,onEnterPrepare:X,removeOnLeave:f,forceRender:d}),(function(t,r){var o=t.className,u=t.style,s=E()(i,a,T,o);return e.createElement(jn,{target:v||m,key:"popup",ref:Z,monitorWindowResize:!0,disabled:K,align:h,onAlign:z},e.createElement("div",{ref:r,className:s,onMouseEnter:b,onMouseLeave:w,onMouseDownCapture:x,onTouchStartCapture:k,onClick:O,style:(0,n.Z)((0,n.Z)({},u),Y)},q))}))}));Bn.displayName="PopupInner";var Un=Bn,Wn=e.forwardRef((function(t,r){var o=t.prefixCls,i=t.visible,a=t.zIndex,u=t.children,s=t.mobile,c=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,f=s.popupMotion,d=void 0===f?{}:f,h=s.popupRender,v=t.onClick,m=e.useRef();e.useImperativeHandle(r,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var g=(0,n.Z)({zIndex:a},l),y=u;return e.Children.count(u)>1&&(y=e.createElement("div",{className:"".concat(o,"-content")},u)),h&&(y=h(y)),e.createElement(tt,(0,p.Z)({visible:i,ref:m,removeOnLeave:!0},d),(function(t,r){var i=t.className,a=t.style,u=E()(o,c,i);return e.createElement("div",{ref:r,className:u,onClick:v,style:(0,n.Z)((0,n.Z)({},a),g)},y)}))}));Wn.displayName="MobilePopupInner";var zn=Wn,Gn=["visible","mobile"],Xn=e.forwardRef((function(t,r){var o=t.visible,i=t.mobile,a=(0,d.Z)(t,Gn),u=(0,e.useState)(o),s=(0,pe.Z)(u,2),c=s[0],l=s[1],f=(0,e.useState)(!1),h=(0,pe.Z)(f,2),v=h[0],m=h[1],g=(0,n.Z)((0,n.Z)({},a),{},{visible:c});(0,e.useEffect)((function(){l(o),o&&i&&m(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))}())}),[o,i]);var y=v?e.createElement(zn,(0,p.Z)({},g,{mobile:i,ref:r})):e.createElement(Un,(0,p.Z)({},g,{ref:r}));return e.createElement("div",null,e.createElement(rt,g),y)}));Xn.displayName="Popup";var Yn=Xn,Kn=e.createContext(null);function qn(){}function Qn(){return""}function $n(e){return e?e.ownerDocument:window.document}var Jn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var er,tr,nr=(er=le,tr=function(t){(0,u.Z)(i,t);var o=(0,s.Z)(i);function i(t){var n,a;return(0,r.Z)(this,i),n=o.call(this,t),(0,l.Z)((0,q.Z)(n),"popupRef",e.createRef()),(0,l.Z)((0,q.Z)(n),"triggerRef",e.createRef()),(0,l.Z)((0,q.Z)(n),"portalContainer",void 0),(0,l.Z)((0,q.Z)(n),"attachId",void 0),(0,l.Z)((0,q.Z)(n),"clickOutsideHandler",void 0),(0,l.Z)((0,q.Z)(n),"touchOutsideHandler",void 0),(0,l.Z)((0,q.Z)(n),"contextMenuOutsideHandler1",void 0),(0,l.Z)((0,q.Z)(n),"contextMenuOutsideHandler2",void 0),(0,l.Z)((0,q.Z)(n),"mouseDownTimeout",void 0),(0,l.Z)((0,q.Z)(n),"focusTime",void 0),(0,l.Z)((0,q.Z)(n),"preClickTime",void 0),(0,l.Z)((0,q.Z)(n),"preTouchTime",void 0),(0,l.Z)((0,q.Z)(n),"delayTimer",void 0),(0,l.Z)((0,q.Z)(n),"hasPopupMouseDown",void 0),(0,l.Z)((0,q.Z)(n),"onMouseEnter",(function(e){var t=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",e),n.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.Z)((0,q.Z)(n),"onMouseMove",(function(e){n.fireEvents("onMouseMove",e),n.setPoint(e)})),(0,l.Z)((0,q.Z)(n),"onMouseLeave",(function(e){n.fireEvents("onMouseLeave",e),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)})),(0,l.Z)((0,q.Z)(n),"onPopupMouseEnter",(function(){n.clearDelayTimer()})),(0,l.Z)((0,q.Z)(n),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&oe(null===(t=n.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)})),(0,l.Z)((0,q.Z)(n),"onFocus",(function(e){n.fireEvents("onFocus",e),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))})),(0,l.Z)((0,q.Z)(n),"onMouseDown",(function(e){n.fireEvents("onMouseDown",e),n.preClickTime=Date.now()})),(0,l.Z)((0,q.Z)(n),"onTouchStart",(function(e){n.fireEvents("onTouchStart",e),n.preTouchTime=Date.now()})),(0,l.Z)((0,q.Z)(n),"onBlur",(function(e){n.fireEvents("onBlur",e),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)})),(0,l.Z)((0,q.Z)(n),"onContextMenu",(function(e){e.preventDefault(),n.fireEvents("onContextMenu",e),n.setPopupVisible(!0,e)})),(0,l.Z)((0,q.Z)(n),"onContextMenuClose",(function(){n.isContextMenuToShow()&&n.close()})),(0,l.Z)((0,q.Z)(n),"onClick",(function(e){if(n.fireEvents("onClick",e),n.focusTime){var t;if(n.preClickTime&&n.preTouchTime?t=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?t=n.preClickTime:n.preTouchTime&&(t=n.preTouchTime),Math.abs(t-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!n.state.popupVisible;(n.isClickToHide()&&!r||r&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,e)})),(0,l.Z)((0,q.Z)(n),"onPopupMouseDown",(function(){var e;n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context&&(e=n.context).onPopupMouseDown.apply(e,arguments)})),(0,l.Z)((0,q.Z)(n),"onDocumentClick",(function(e){if(!n.props.mask||n.props.maskClosable){var t=e.target,r=n.getRootDomNode(),o=n.getPopupDomNode();oe(r,t)&&!n.isContextMenuOnly()||oe(o,t)||n.hasPopupMouseDown||n.close()}})),(0,l.Z)((0,q.Z)(n),"getRootDomNode",(function(){var e=n.props.getTriggerDOMNode;if(e)return e(n.triggerRef.current);try{var t=ie(n.triggerRef.current);if(t)return t}catch(e){}return b().findDOMNode((0,q.Z)(n))})),(0,l.Z)((0,q.Z)(n),"getPopupClassNameFromAlign",(function(e){var t=[],r=n.props,o=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,u=r.alignPoint,s=r.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 u=i[a];if(fe(e[u].points,o,r))return"".concat(t,"-placement-").concat(u)}return""}(i,a,e,u)),s&&t.push(s(e)),t.join(" ")})),(0,l.Z)((0,q.Z)(n),"getComponent",(function(){var t=n.props,r=t.prefixCls,o=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,u=t.popupMotion,s=t.popupAnimation,c=t.popupTransitionName,l=t.popupStyle,f=t.mask,d=t.maskAnimation,h=t.maskTransitionName,v=t.maskMotion,m=t.zIndex,g=t.popup,y=t.stretch,b=t.alignPoint,w=t.mobile,x=t.forceRender,E=t.onPopupClick,k=n.state,O=k.popupVisible,Z=k.point,M=n.getPopupAlign(),S={};return n.isMouseEnterToShow()&&(S.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(S.onMouseLeave=n.onPopupMouseLeave),S.onMouseDown=n.onPopupMouseDown,S.onTouchStart=n.onPopupMouseDown,e.createElement(Yn,(0,p.Z)({prefixCls:r,destroyPopupOnHide:o,visible:O,point:b&&Z,className:i,align:M,onAlign:a,animation:s,getClassNameFromAlign:n.getPopupClassNameFromAlign},S,{stretch:y,getRootDomNode:n.getRootDomNode,style:l,mask:f,zIndex:m,transitionName:c,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:n.popupRef,motion:u,mobile:w,forceRender:x,onClick:E}),"function"==typeof g?g():g)})),(0,l.Z)((0,q.Z)(n),"attachParent",(function(e){re.cancel(n.attachId);var t,r=n.props,o=r.getPopupContainer,i=r.getDocument,a=n.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(n.getRootDomNode()).body,t?t.appendChild(e):n.attachId=re((function(){n.attachParent(e)}))})),(0,l.Z)((0,q.Z)(n),"getContainer",(function(){if(!n.portalContainer){var e=(0,n.props.getDocument)(n.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",n.portalContainer=e}return n.attachParent(n.portalContainer),n.portalContainer})),(0,l.Z)((0,q.Z)(n),"setPoint",(function(e){n.props.alignPoint&&e&&n.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.Z)((0,q.Z)(n),"handlePortalUpdate",(function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)})),(0,l.Z)((0,q.Z)(n),"triggerContextValue",{onPopupMouseDown:n.onPopupMouseDown}),a="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,n.state={prevPopupVisible:a,popupVisible:a},Jn.forEach((function(e){n["fire".concat(e)]=function(t){n.fireEvents(e,t)}})),n}return(0,a.Z)(i,[{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=w(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=w(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=w(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=w(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),re.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,r=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,r){var o=e[t]||{};return(0,n.Z)((0,n.Z)({},o),r)}(o,t,r):r}},{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 t=this.state.popupVisible,r=this.props,o=r.children,i=r.forceRender,a=r.alignPoint,u=r.className,s=r.autoDestroy,c=e.Children.only(o),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,a&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var f=E()(c&&c.props&&c.props.className,u);f&&(l.className=f);var p,d,h,v,m=(0,n.Z)({},l);p=c,"function"==typeof(v=(0,ae.isMemo)(p)?p.type.type:p.type)&&!(null===(d=v.prototype)||void 0===d?void 0:d.render)||"function"==typeof p&&!(null===(h=p.prototype)||void 0===h?void 0:h.render)||(m.ref=se(this.triggerRef,c.ref));var g,y=e.cloneElement(c,m);return(t||this.popupRef.current||i)&&(g=e.createElement(er,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(g=null),e.createElement(Kn.Provider,{value:this.triggerContextValue},y,g)}}],[{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}}]),i}(e.Component),(0,l.Z)(tr,"contextType",Kn),(0,l.Z)(tr,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Qn,getDocument:$n,onPopupVisibleChange:qn,afterPopupVisibleChange:qn,onPopupAlign:qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),tr),rr={adjustX:1,adjustY:1},or=[0,0],ir={left:{points:["cr","cl"],overflow:rr,offset:[-4,0],targetOffset:or},right:{points:["cl","cr"],overflow:rr,offset:[4,0],targetOffset:or},top:{points:["bc","tc"],overflow:rr,offset:[0,-4],targetOffset:or},bottom:{points:["tc","bc"],overflow:rr,offset:[0,4],targetOffset:or},topLeft:{points:["bl","tl"],overflow:rr,offset:[0,-4],targetOffset:or},leftTop:{points:["tr","tl"],overflow:rr,offset:[-4,0],targetOffset:or},topRight:{points:["br","tr"],overflow:rr,offset:[0,-4],targetOffset:or},rightTop:{points:["tl","tr"],overflow:rr,offset:[4,0],targetOffset:or},bottomRight:{points:["tr","br"],overflow:rr,offset:[0,4],targetOffset:or},rightBottom:{points:["bl","br"],overflow:rr,offset:[4,0],targetOffset:or},bottomLeft:{points:["tl","bl"],overflow:rr,offset:[0,4],targetOffset:or},leftBottom:{points:["br","bl"],overflow:rr,offset:[-4,0],targetOffset:or}},ar=function(t){var n=t.overlay,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle;return e.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n)},ur=function(t,r){var o=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,u=t.mouseEnterDelay,s=void 0===u?0:u,c=t.mouseLeaveDelay,l=void 0===c?.1:c,f=t.overlayStyle,h=t.prefixCls,v=void 0===h?"rc-tooltip":h,m=t.children,g=t.onVisibleChange,y=t.afterVisibleChange,b=t.transitionName,w=t.animation,x=t.motion,E=t.placement,k=void 0===E?"right":E,Z=t.align,M=void 0===Z?{}:Z,S=t.destroyTooltipOnHide,C=void 0!==S&&S,T=t.defaultVisible,P=t.getTooltipContainer,_=t.overlayInnerStyle,N=(0,d.Z)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,e.useRef)(null);(0,e.useImperativeHandle)(r,(function(){return L.current}));var A=(0,n.Z)({},N);"visible"in t&&(A.popupVisible=t.visible);var D=!1,R=!1;if("boolean"==typeof C)D=C;else if(C&&"object"===(0,O.Z)(C)){var j=C.keepParent;D=!0===j,R=!1===j}return e.createElement(nr,(0,p.Z)({popupClassName:o,prefixCls:v,popup:function(){var n=t.arrowContent,r=void 0===n?null:n,o=t.overlay,i=t.id;return[e.createElement("div",{className:"".concat(v,"-arrow"),key:"arrow"},r),e.createElement(ar,{key:"content",prefixCls:v,id:i,overlay:o,overlayInnerStyle:_})]},action:a,builtinPlacements:ir,popupPlacement:k,ref:L,popupAlign:M,getPopupContainer:P,onPopupVisibleChange:g,afterPopupVisibleChange:y,popupTransitionName:b,popupAnimation:w,popupMotion:x,defaultPopupVisible:T,destroyPopupOnHide:D,autoDestroy:R,mouseLeaveDelay:l,popupStyle:f,mouseEnterDelay:s},A),m)},sr=(0,e.forwardRef)(ur),cr=e.forwardRef((function(t,n){var r=t.visible,o=t.overlay,i=e.useRef(null),a=se(n,i),u=e.useRef(null);function s(){re.cancel(u.current)}return e.useEffect((function(){return r?u.current=re((function(){var e;null===(e=i.current)||void 0===e||e.forcePopupAlign()})):s(),s}),[r,o]),e.createElement(sr,(0,p.Z)({ref:a},t))})),lr=["value","dragging","index","disabled"],fr=["prefixCls","overlay","placement","visible"];var pr=G;pr.Range=K,pr.Handle=S,pr.createSliderWithTooltip=function(e){var o,i;return i=o=function(o){(0,u.Z)(c,o);var i=(0,s.Z)(c);function c(){var e;(0,r.Z)(this,c);for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return(e=i.call.apply(i,[this].concat(a))).state={visibles:{}},e.handleTooltipVisibleChange=function(t,r){e.setState((function(e){return{visibles:(0,n.Z)((0,n.Z)({},e.visibles),{},(0,l.Z)({},t,r))}}))},e.handleWithTooltip=function(r){var o,i=r.value,a=r.dragging,u=r.index,s=r.disabled,c=(0,d.Z)(r,lr),l=e.props,f=l.tipFormatter,h=l.tipProps,v=l.handleStyle,m=l.getTooltipContainer,g=h.prefixCls,y=void 0===g?"rc-slider-tooltip":g,b=h.overlay,w=void 0===b?f(i):b,x=h.placement,E=void 0===x?"top":x,k=h.visible,O=void 0!==k&&k,Z=(0,d.Z)(h,fr);return o=Array.isArray(v)?v[u]||v[0]:v,t().createElement(cr,(0,p.Z)({},Z,{getTooltipContainer:m,prefixCls:y,overlay:w,placement:E,visible:!s&&(e.state.visibles[u]||a)||O,key:u}),t().createElement(S,(0,p.Z)({},c,{style:(0,n.Z)({},o),value:i,onMouseEnter:function(){return e.handleTooltipVisibleChange(u,!0)},onMouseLeave:function(){return e.handleTooltipVisibleChange(u,!1)}})))},e}return(0,a.Z)(c,[{key:"render",value:function(){return t().createElement(e,(0,p.Z)({},this.props,{handle:this.handleWithTooltip}))}}]),c}(t().Component),o.defaultProps={tipFormatter:function(e){return e},handleStyle:[{}],tipProps:{},getTooltipContainer:function(e){return e.parentNode}},i};var dr=pr;o(74951);function hr(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 vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mr(){return mr=Object.assign||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},mr.apply(this,arguments)}function gr(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 yr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function br(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,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hr(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 hr(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 wr=function(e){var n,r=e.range,o=e.step,i=yr(e,["range","step"]),a="paraui-slider",u="paraui-slider-tooltip";"object"==typeof r&&(n=r.draggableTrack);var s=br(t().useState({}),2),c=s[0],l=s[1],f=function(e,t){l((function(n){return gr(function(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){vr(e,t,n[t])}))}return e}({},n),vr({},e,t))}))},p=function(e,t){return e||(t?"right":"top")},d=function(e){return"number"==typeof e?e.toString():""},h=function(n){var r=n.tooltipPrefixCls,o=n.info,i=o.value,a=o.index,u=o.dragging,s=yr(n.info,["value","index","dragging"]),l=e.tipFormatter,h=void 0===l?d:l,v=e.tooltipVisible,m=e.tooltipPlacement,g=e.getTooltipPopupContainer,y=void 0===g?function(e){return e}:g,b=e.vertical,w=!!h&&(c[a]||u),x=v||void 0===v&&w;return t().createElement(cr,{prefixCls:r,overlay:h?h(i):"",visible:x,placement:p(m,b),key:a,getTooltipContainer:y,destroyTooltipOnHide:!0},t().createElement(S,mr({},s,{value:i,onMouseEnter:function(){return f(a,!0)},onMouseLeave:function(){return f(a,!1)}})))};return r?t().createElement(K,mr({},i,{step:o,pushable:i.pushable,draggableTrack:n,handle:function(e){return h({tooltipPrefixCls:u,info:e})},prefixCls:a})):t().createElement(dr,mr({},i,{step:o,handle:function(e){return h({tooltipPrefixCls:u,info:e})},prefixCls:a}))},xr=wr}(),i}()}));