@para-ui/core 4.0.52 → 4.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Button/index.js +2 -2
- package/Cascader/Cascader.d.ts +3 -0
- package/Cascader/index.js +11 -8
- package/ComboSelect/index.js +5 -5
- package/CycleSelector/index.js +2 -2
- package/DatePicker/index.js +2 -2
- package/DynamicMultiBox/index.js +7 -7
- package/DynamicMultiBox/interface.d.ts +1 -1
- package/FieldForm/ErrorList.d.ts +16 -0
- package/FieldForm/FieldFormItem/ItemHolder.d.ts +18 -0
- package/FieldForm/FieldFormItem/MemoInput.d.ts +14 -0
- package/FieldForm/FieldFormItem/StatusProvider.d.ts +20 -0
- package/FieldForm/FieldFormItem/index.d.ts +58 -0
- package/FieldForm/Form.d.ts +36 -0
- package/FieldForm/FormItemInput.d.ts +21 -0
- package/FieldForm/FormItemLabel.d.ts +21 -0
- package/FieldForm/FormList.d.ts +23 -0
- package/FieldForm/context.d.ts +33 -0
- package/FieldForm/hooks/useChildren.d.ts +2 -0
- package/FieldForm/hooks/useDebounce.d.ts +1 -0
- package/FieldForm/hooks/useForm.d.ts +6 -0
- package/FieldForm/hooks/useFormInstance.d.ts +2 -0
- package/FieldForm/hooks/useFormItemStatus.d.ts +9 -0
- package/FieldForm/hooks/useFrameState.d.ts +3 -0
- package/FieldForm/hooks/useItemRef.d.ts +3 -0
- package/FieldForm/index.d.ts +30 -0
- package/FieldForm/index.js +5326 -0
- package/FieldForm/interface.d.ts +2 -0
- package/FieldForm/lang/en_US.d.ts +51 -0
- package/FieldForm/lang/index.d.ts +105 -0
- package/FieldForm/lang/zh_CN.d.ts +51 -0
- package/FieldForm/util.d.ts +21 -0
- package/Form/index.js +6 -6
- package/FormItem/index.js +6 -6
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +5 -55
- package/PopMenu/index.js +2 -2
- package/README.md +15 -0
- package/Result/index.js +2 -2
- package/Selector/index.js +1 -1
- package/SelectorPicker/index.js +1 -1
- package/Switch/index.d.ts +4 -0
- package/Switch/index.js +3 -2
- package/Table/index.js +433 -498
- package/Tag/index.js +2 -2
- package/TextEditor/index.d.ts +2 -0
- package/TextEditor/index.js +27 -6
- package/TimePicker/index.js +2 -2
- package/Tooltip/index.js +26 -27
- package/Transfer/index.d.ts +1 -0
- package/Transfer/index.js +120 -119
- package/Tree/index.js +4 -4
- package/Upload/index.js +9 -7
- package/_verture/{Portal-f9bedb3a.js → Portal-502bb85e.js} +29 -481
- package/_verture/{index-5b0d1c7d.js → index-0a300edb.js} +387 -700
- package/_verture/index-1856bbeb.js +480 -0
- package/_verture/{index-ba8815d0.js → index-320d67c4.js} +2 -2
- package/_verture/{index-887e5e11.js → index-43c653bb.js} +1 -1
- package/_verture/isEqual-30b6f859.js +56 -0
- package/_verture/{slicedToArray-75fa4188.js → slicedToArray-61604a6c.js} +1 -1
- package/_verture/{toConsumableArray-c7a8028f.js → toConsumableArray-599cd94a.js} +1 -1
- package/_verture/useState-f2419d68.js +353 -0
- package/index.d.ts +2 -0
- package/index.js +15 -11
- package/locale/en-US.d.ts +46 -0
- package/locale/index.d.ts +92 -0
- package/locale/index.js +92 -0
- package/locale/zh-CN.d.ts +46 -0
- package/package.json +3 -1
- package/umd/Anchor.js +5 -5
- package/umd/Argv.js +5 -5
- package/umd/AutoBox.js +5 -5
- package/umd/AutoButton.js +6 -6
- package/umd/AutoTips.js +5 -5
- package/umd/Breadcrumbs.js +4 -4
- package/umd/Button.js +5 -5
- package/umd/ButtonGroup.js +6 -6
- package/umd/Cascader.js +5 -5
- package/umd/Checkbox.js +4 -4
- package/umd/CheckboxGroup.js +4 -4
- package/umd/Collapse.js +1 -1
- package/umd/ComboSelect.js +5 -5
- package/umd/CopyText.js +5 -5
- package/umd/CycleSelector.js +5 -5
- package/umd/DatePicker.js +5 -5
- package/umd/Descriptions.js +6 -6
- package/umd/Desktop.js +5 -5
- package/umd/Drawer.js +5 -5
- package/umd/Dropdown.js +4 -4
- package/umd/DynamicMultiBox.js +5 -5
- package/umd/FieldForm.js +43 -0
- package/umd/Form.js +5 -5
- package/umd/FormItem.js +5 -5
- package/umd/FunctionModal.js +5 -5
- package/umd/Help.js +5 -5
- package/umd/Image.js +3 -3
- package/umd/InputCode.js +5 -5
- package/umd/InputLang.js +5 -5
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +4 -4
- package/umd/Menu.js +4 -4
- package/umd/Modal.js +5 -5
- package/umd/MultiBox.js +6 -6
- package/umd/Notification.js +3 -3
- package/umd/OperateBtn.js +5 -5
- package/umd/PageHeader.js +5 -5
- package/umd/Pagination.js +5 -5
- package/umd/PopConfirm.js +5 -5
- package/umd/PopMenu.js +5 -5
- package/umd/Popover.js +5 -5
- package/umd/QuickReply.js +5 -5
- package/umd/Radio.js +4 -4
- package/umd/RadioGroup.js +4 -4
- package/umd/RangeInput.js +5 -5
- package/umd/Result.js +4 -4
- package/umd/Search.js +5 -5
- package/umd/Select.js +5 -5
- package/umd/SelectInput.js +5 -5
- package/umd/Selector.js +5 -5
- package/umd/SelectorPicker.js +5 -5
- package/umd/SingleBox.js +5 -5
- package/umd/Slider.js +4 -4
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +5 -5
- package/umd/TextEditor.js +6 -6
- package/umd/TextField.js +5 -5
- package/umd/TimePicker.js +5 -5
- package/umd/Title.js +3 -3
- package/umd/ToggleButton.js +5 -5
- package/umd/Tooltip.js +4 -4
- package/umd/Transfer.js +7 -7
- package/umd/Tree.js +3 -3
- package/umd/Upload.js +5 -5
- package/umd/locale.js +1 -1
- /package/_verture/{modalContext-f68b51a2.js → modalContext-6ac2e323.js} +0 -0
package/umd/Dropdown.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","react-dom","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("react-dom"),require("@paraview/lib")):e.ParaUI=t(e.react,e["react-dom"],e["@paraview/lib"])}(self,((e,t,n)=>(()=>{var o={20053:(e,t,n)=>{"use strict";function o(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{A:()=>r})},26468:(e,t,n)=>{(t=n(76314)(!1)).push([e.id,".paraui-v4-dropdown{position:absolute;left:-9999px;top:-9999px;z-index:1500;display:block;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;line-height:1.5715;background-color:#fff;box-shadow:1px 1px 10px 2px rgba(212,218,227,.4);border-radius:4px;border:1px solid rgba(212,218,227,.4)}.paraui-v4-dropdown.component-dropdown-hidden{display:none;border:none;box-shadow:none}.paraui-v4-dropdown .component-dropdown-arrow{position:absolute;border-width:4px;border-color:rgba(0,0,0,0);box-shadow:1px 1px 10px 2px rgba(212,218,227,.4);border-style:solid;transform:rotate(45deg)}.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-top,.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-topLeft,.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-topRight{padding-bottom:6px}.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-bottom,.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-bottomLeft,.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-bottomRight{padding-top:6px}.paraui-v4-dropdown.component-dropdown-placement-top .component-dropdown-arrow,.paraui-v4-dropdown.component-dropdown-placement-topLeft .component-dropdown-arrow,.paraui-v4-dropdown.component-dropdown-placement-topRight .component-dropdown-arrow{bottom:4px;border-top-color:#fff}.paraui-v4-dropdown.component-dropdown-placement-top .component-dropdown-arrow{left:50%}.paraui-v4-dropdown.component-dropdown-placement-topLeft .component-dropdown-arrow{left:15%}.paraui-v4-dropdown.component-dropdown-placement-topRight .component-dropdown-arrow{right:15%}.paraui-v4-dropdown.component-dropdown-placement-bottom .component-dropdown-arrow,.paraui-v4-dropdown.component-dropdown-placement-bottomLeft .component-dropdown-arrow,.paraui-v4-dropdown.component-dropdown-placement-bottomRight .component-dropdown-arrow{top:4px;border-bottom-color:#fff}.paraui-v4-dropdown.component-dropdown-placement-bottom .component-dropdown-arrow{left:50%}.paraui-v4-dropdown.component-dropdown-placement-bottomLeft .component-dropdown-arrow{left:15%}.paraui-v4-dropdown.component-dropdown-placement-bottomRight .component-dropdown-arrow{right:15%}.component-dropdown-slide-up-enter,.component-dropdown-slide-up-appear{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;display:block !important;opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1);animation-play-state:paused}.component-dropdown-slide-up-leave{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;display:block !important;opacity:1;animation-timing-function:cubic-bezier(0.6, 0.04, 0.98, 0.34);animation-play-state:paused}.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-bottomLeft,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-bottomLeft,.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-bottomCenter,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-bottomCenter,.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-bottomRight,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-bottomRight{animation-name:componentDropdownSlideUpIn;animation-play-state:running}.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-topLeft,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-topLeft,.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-topCenter,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-topCenter,.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-topRight,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-topRight{animation-name:componentDropdownSlideDownIn;animation-play-state:running}.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-bottomLeft,.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-bottomCenter,.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-bottomRight{animation-name:componentDropdownSlideUpOut;animation-play-state:running}.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-topLeft,.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-topCenter,.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-topRight{animation-name:componentDropdownSlideDownOut;animation-play-state:running}@keyframes componentDropdownSlideUpIn{0%{opacity:0;transform-origin:0% 0%;transform:scaleY(0)}100%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}}@keyframes componentDropdownSlideUpOut{0%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}100%{opacity:0;transform-origin:0% 0%;transform:scaleY(0)}}@keyframes componentDropdownSlideDownIn{0%{opacity:0;transform-origin:0% 100%;transform:scaleY(0)}100%{opacity:1;transform-origin:0% 100%;transform:scaleY(1)}}@keyframes componentDropdownSlideDownOut{0%{opacity:1;transform-origin:0% 100%;transform:scaleY(1)}100%{opacity:0;transform-origin:0% 100%;transform:scaleY(0)}}",""]),e.exports=t},76314: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]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(c," */")),i=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([r]).join("\n")}var a,u,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},74353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",u="day",c="week",s="month",l="quarter",p="year",f="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+y(o,2,"0")+":"+y(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(o,s),i=n-r<0,a=t.clone().add(o+(i?-1:1),s);return+(-(o+(n-r)/(i?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:p,w:c,d:u,D:f,h:a,m:i,s:r,ms:o,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",b={};b[w]=m;var A="$isDayjsObject",E=function(e){return e instanceof C||!(!e||!e[A])},O=function e(t,n,o){var r;if(!t)return w;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(r=i),n&&(b[i]=n,r=i);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var u=t.name;b[u]=t,r=u}return!o&&r&&(w=r),r||!o&&w},M=function(e,t){if(E(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},S=g;S.l=O,S.i=E,S.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(h);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return M(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<M(e)},y.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,o=!!S.u(t)||t,l=S.p(e),d=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return o?r:r.endOf(u)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case p:return o?d(1,0):d(31,11);case s:return o?d(1,m):d(0,m+1);case c:var w=this.$locale().weekStart||0,b=(v<w?v+7:v)-w;return d(o?y-b:y+(6-b),m);case u:case f:return h(g+"Hours",0);case a:return h(g+"Minutes",1);case i:return h(g+"Seconds",2);case r:return h(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,c=S.p(e),l="set"+(this.$u?"UTC":""),d=(n={},n[u]=l+"Date",n[f]=l+"Date",n[s]=l+"Month",n[p]=l+"FullYear",n[a]=l+"Hours",n[i]=l+"Minutes",n[r]=l+"Seconds",n[o]=l+"Milliseconds",n)[c],h=c===u?this.$D+(t-this.$W):t;if(c===s||c===p){var v=this.clone().set(f,1);v.$d[d](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[S.p(e)]()},y.add=function(o,l){var f,d=this;o=Number(o);var h=S.p(l),v=function(e){var t=M(d);return S.w(t.date(t.date()+Math.round(e*o)),d)};if(h===s)return this.set(s,this.$M+o);if(h===p)return this.set(p,this.$y+o);if(h===u)return v(1);if(h===c)return v(7);var m=(f={},f[i]=t,f[a]=n,f[r]=e,f)[h]||1,y=this.$d.getTime()+o*m;return S.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var o=e||"YYYY-MM-DDTHH:mm:ssZ",r=S.z(this),i=this.$H,a=this.$m,u=this.$M,c=n.weekdays,s=n.months,l=n.meridiem,p=function(e,n,r,i){return e&&(e[n]||e(t,o))||r[n].slice(0,i)},f=function(e){return S.s(i%12||12,e,"0")},h=l||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o};return o.replace(v,(function(e,o){return o||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return u+1;case"MM":return S.s(u+1,2,"0");case"MMM":return p(n.monthsShort,u,s,3);case"MMMM":return p(s,u);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,c,2);case"ddd":return p(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return S.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(o,f,d){var h,v=this,m=S.p(f),y=M(o),g=(y.utcOffset()-this.utcOffset())*t,w=this-y,b=function(){return S.m(v,y)};switch(m){case p:h=b()/12;break;case s:h=b();break;case l:h=b()/3;break;case c:h=(w-g)/6048e5;break;case u:h=(w-g)/864e5;break;case a:h=w/n;break;case i:h=w/t;break;case r:h=w/e;break;default:h=w}return d?h:S.a(h)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=O(e,t,!0);return o&&(n.$L=o),n},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),x=C.prototype;return M.prototype=x,[["$ms",o],["$s",r],["$m",i],["$H",a],["$W",u],["$M",s],["$y",p],["$D",f]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,C,M),e.$i=!0),M},M.locale=O,M.isDayjs=E,M.unix=function(e){return M(1e3*e)},M.en=b[w],M.Ls=b,M.p={},M}()},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n(64467),r=n(89379),i=n(3453),a=n(82284),u=n(39155),c=n(66588),s=n(8719),l=n(46942),p=n.n(l),f=n(80371),d=n(25931),h=n(25318),v=n(72137),m=n(58515);const y=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var l=u.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,y=e.removeOnLeave,g=void 0===y||y,w=e.forceRender,b=e.children,A=e.motionName,E=e.leavedClassName,O=e.eventProps,M=n(e),S=(0,u.useRef)(),C=(0,u.useRef)();var x=(0,h.A)(M,l,(function(){try{return(0,c.A)(S.current||C.current)}catch(e){return null}}),e),T=(0,i.A)(x,4),P=T[0],_=T[1],k=T[2],D=T[3],N=u.useRef(D);D&&(N.current=!0);var R=(0,u.useRef)(t);R.current=t;var L,j=u.useCallback((function(e){S.current=e,(0,s.Xf)(R.current,e)}),[]),H=(0,r.A)((0,r.A)({},O),{},{visible:l});if(b)if(P!==d.SF&&n(e)){var I,$;_===d.px?$="prepare":(0,m.$m)(_)?$="active":_===d.Mv&&($="start"),L=b((0,r.A)((0,r.A)({},H),{},{className:p()((0,f.by)(A,P),(I={},(0,o.A)(I,(0,f.by)(A,"".concat(P,"-").concat($)),$),(0,o.A)(I,A,"string"==typeof A),I)),style:k}),j)}else L=D?b((0,r.A)({},H),j):!g&&N.current?b((0,r.A)((0,r.A)({},H),{},{className:E}),j):w?b((0,r.A)((0,r.A)({},H),{},{style:{display:"none"}}),j):null;else L=null;return u.createElement(v.A,{ref:C},L)}));return l.displayName="CSSMotion",l}(f.J1)},97333:(e,t,n)=>{"use strict";var o=n(58168),r=n(80045),i=n(89379),a=n(23029),u=n(92901),c=n(85501),s=n(29426),l=n(39155),p=n(44785),f=n(80371),d=n(29710),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,c.A)(p,e);var n=(0,s.A)(p);function p(){var e;return(0,a.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:d.e8})}))}}))},e}return(0,u.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,u=i.children,c=i.onVisibleChanged,s=(0,r.A)(i,["component","children","onVisibleChanged"]),p=a||l.Fragment,f={};return h.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,l.createElement(p,s,n.map((function(n){var i=n.status,a=(0,r.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(t,(0,o.A)({},f,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(t){null==c||c(t,{key:a.key}),t||e.removeKey(a.key)}}),u)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(o,r).filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),p}(l.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(23029),r=n(92901),i=n(85501),a=n(29426),u=n(39155);const c=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,o.A)(this,n),t.apply(this,arguments)}return(0,r.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(39155),r=n(80371);const i=function(e){var t=(0,o.useRef)(),n=(0,o.useRef)(e);n.current=e;var i=o.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(r.m8,i),e.removeEventListener(r.Vc,i))}return o.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(r.m8,i),e.addEventListener(r.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(39155);const r=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(39155),r=n(25371);const i=function(){var e=o.useRef(null);function t(){r.A.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,r.A)((function(){i<=1?o({isCanceled:function(){return a!==e.current}}):n(o,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3453),r=n(39155);function i(e){var t=(0,r.useRef)(!1),n=(0,r.useState)(e),i=(0,o.A)(n,2),a=i[0],u=i[1];return(0,r.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||u(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var o=n(89379),r=n(64467),i=n(3453),a=n(39155),u=n(25931),c=n(92659),s=n(43982),l=n(58515),p=n(85849);function f(e,t,n,f){var d=f.motionEnter,h=void 0===d||d,v=f.motionAppear,m=void 0===v||v,y=f.motionLeave,g=void 0===y||y,w=f.motionDeadline,b=f.motionLeaveImmediately,A=f.onAppearPrepare,E=f.onEnterPrepare,O=f.onLeavePrepare,M=f.onAppearStart,S=f.onEnterStart,C=f.onLeaveStart,x=f.onAppearActive,T=f.onEnterActive,P=f.onLeaveActive,_=f.onAppearEnd,k=f.onEnterEnd,D=f.onLeaveEnd,N=f.onVisibleChanged,R=(0,c.A)(),L=(0,i.A)(R,2),j=L[0],H=L[1],I=(0,c.A)(u.SF),$=(0,i.A)(I,2),F=$[0],V=$[1],U=(0,c.A)(null),W=(0,i.A)(U,2),Y=W[0],B=W[1],z=(0,a.useRef)(!1),K=(0,a.useRef)(null),X=(0,a.useRef)(!1),G=(0,a.useRef)(null);function q(){return n()||G.current}var Q=(0,a.useRef)(!1);function J(e){var t,n=q();e&&!e.deadline&&e.target!==n||(F===u.Tv&&Q.current?t=null==_?void 0:_(n,e):F===u.Wd&&Q.current?t=null==k?void 0:k(n,e):F===u.dp&&Q.current&&(t=null==D?void 0:D(n,e)),!1===t||X.current||(V(u.SF),B(null)))}var Z=(0,p.A)(J),ee=(0,i.A)(Z,1)[0],te=a.useMemo((function(){var e,t,n;switch(F){case"appear":return e={},(0,r.A)(e,u.px,A),(0,r.A)(e,u.Mv,M),(0,r.A)(e,u.m7,x),e;case"enter":return t={},(0,r.A)(t,u.px,E),(0,r.A)(t,u.Mv,S),(0,r.A)(t,u.m7,T),t;case"leave":return n={},(0,r.A)(n,u.px,O),(0,r.A)(n,u.Mv,C),(0,r.A)(n,u.m7,P),n;default:return{}}}),[F]),ne=(0,l.Ay)(F,(function(e){if(e===u.px){var t=te[u.px];return t?t(q()):l.es}var n;ie in te&&B((null===(n=te[ie])||void 0===n?void 0:n.call(te,q(),null))||null);return ie===u.m7&&(ee(q()),w>0&&(clearTimeout(K.current),K.current=setTimeout((function(){J({deadline:!0})}),w))),l.qB})),oe=(0,i.A)(ne,2),re=oe[0],ie=oe[1],ae=(0,l.$m)(ie);Q.current=ae,(0,s.A)((function(){H(t);var n,o=z.current;(z.current=!0,e)&&(!o&&t&&m&&(n=u.Tv),o&&t&&h&&(n=u.Wd),(o&&!t&&g||!o&&b&&!t&&g)&&(n=u.dp),n&&(V(n),re()))}),[t]),(0,a.useEffect)((function(){(F===u.Tv&&!m||F===u.Wd&&!h||F===u.dp&&!g)&&V(u.SF)}),[m,h,g]),(0,a.useEffect)((function(){return function(){clearTimeout(K.current),X.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==j&&F===u.SF&&(null==N||N(j))}),[j,F]);var ue=Y;return te[u.px]&&ie===u.Mv&&(ue=(0,o.A)({transition:"none"},ue)),[F,ie,ue,null!=j?j:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>f,es:()=>s,qB:()=>l});var o=n(3453),r=n(39155),i=n(25931),a=n(43982),u=n(84560),c=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function p(e){return e===i.m7||e===i.Hs}const f=function(e,t){var n=r.useState(i.cE),l=(0,o.A)(n,2),p=l[0],f=l[1],d=(0,u.A)(),h=(0,o.A)(d,2),v=h[0],m=h[1];return(0,a.A)((function(){if(p!==i.cE&&p!==i.Hs){var e=c.indexOf(p),n=c[e+1],o=t(p);o===s?f(n):v((function(e){function t(){e.isCanceled()||f(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,p]),r.useEffect((function(){return function(){m()}}),[]),[function(){f(i.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(44785);n(97333);const r=o.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>s,SF:()=>o,Tv:()=>r,Wd:()=>i,cE:()=>u,dp:()=>a,m7:()=>l,px:()=>c});var o="none",r="appear",i="enter",a="leave",u="none",c="prepare",s="start",l="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>l,au:()=>u,bK:()=>i,e8:()=>c,xI:()=>a,y$:()=>p});var o=n(89379),r=n(82284),i="add",a="keep",u="remove",c="removed";function s(e){var t;return t=e&&"object"===(0,r.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,c=t.length,s=l(e),p=l(t);s.forEach((function(e){for(var t=!1,s=r;s<c;s+=1){var l=p[s];if(l.key===e.key){r<s&&(n=n.concat(p.slice(r,s).map((function(e){return(0,o.A)((0,o.A)({},e),{},{status:i})}))),r=s),n.push((0,o.A)((0,o.A)({},l),{},{status:a})),r+=1,t=!0;break}}t||n.push((0,o.A)((0,o.A)({},e),{},{status:u}))})),r<c&&(n=n.concat(p.slice(r).map((function(e){return(0,o.A)((0,o.A)({},e),{},{status:i})}))));var f={};return n.forEach((function(e){var t=e.key;f[t]=(f[t]||0)+1})),Object.keys(f).filter((function(e){return f[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==u}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>m,Vc:()=>y,by:()=>w,m8:()=>g});var o=n(82284),r=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,u,c,s=(a=(0,r.A)(),u="undefined"!=typeof window?window:{},c={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in u||delete c.animationend.animation,"TransitionEvent"in u||delete c.transitionend.transition),c),l={};if((0,r.A)()){var p=document.createElement("div");l=p.style}var f={};function d(e){if(f[e])return f[e];var t=s[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return f[e]=t[i],f[e]}return""}var h=d("animationend"),v=d("transitionend"),m=!(!h||!v),y=h||"animationend",g=v||"transitionend";function w(e,t){return e?"object"===(0,o.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},1748:(e,t,n)=>{"use strict";n.d(t,{A:()=>ct});var o=n(89379),r=n(58168),i=n(23029),a=n(92901),u=n(9417),c=n(85501),s=n(29426),l=n(64467),p=n(39155),f=n.n(p),d=n(69514),h=n.n(d),v=n(25371),m=n(54808),y=n(66588),g=n(8719),w=n(69916),b=n(88822),A=n(46942),E=n.n(A);function O(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var M=n(3453),S=n(80045),C=n(68430),x=n(30156);function T(e){var t=e.prefixCls,n=e.motion,o=e.animation,r=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:r?{motionName:r}:null)}function P(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,u=e.maskMotion,c=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(u||s||c)&&(l=(0,o.A)({motionAppear:!0},T({motion:u,prefixCls:t,transitionName:s,animation:c}))),p.createElement(x.A,(0,r.A)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:i},className:E()("".concat(t,"-mask"),n)})}))}var _,k=n(82284);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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)}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function H(){if(void 0!==_)return _;_="";var e=document.createElement("p").style;for(var t in j)t+"Transform"in e&&(_=t);return _}function I(){return H()?"".concat(H(),"TransitionProperty"):"transitionProperty"}function $(){return H()?"".concat(H(),"Transform"):"transform"}function F(e,t){var n=I();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function V(e,t){var n=$();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var U,W=/matrix\((.*)\)/,Y=/matrix3d\((.*)\)/;function B(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function z(e,t,n){var o=n;if("object"!==R(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):U(e,t);for(var r in t)t.hasOwnProperty(r)&&z(e,r,t[r])}function K(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function X(e){return K(e)}function G(e){return K(e,!0)}function q(e){var t=function(e){var t,n,o,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=X(o),t.top+=G(o),t}function Q(e){return null!=e&&e==e.window}function J(e){return Q(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Z=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",oe="left";function re(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===z(e,"position")&&(e.style.position="relative");var o=-999,r=-999,i=re("left",n),a=re("top",n),u=ie(i),c=ie(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var s,l="",p=q(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[I()]||"",F(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(o,"px")),"top"in t&&(e.style[c]="",e.style[a]="".concat(r,"px")),B(e);var f=q(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=re(h,n),m="left"===h?o:r,y=p[h]-f[h];d[v]=v===h?m+y:m-y}z(e,d),B(e),("left"in t||"top"in t)&&F(e,l);var g={};for(var w in t)if(t.hasOwnProperty(w)){var b=re(w,n),A=t[w]-p[w];g[b]=w===b?d[b]+A:d[b]-A}z(e,g)}function ue(e,t){var n=q(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue($());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue($());if(o&&"none"!==o){var r,i=o.match(W);i?((r=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,V(e,"matrix(".concat(r.join(","),")"))):((r=o.match(Y)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,V(e,"matrix3d(".concat(r.join(","),")")))}else V(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function ce(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===U(e,"boxSizing")}"undefined"!=typeof window&&(U=window.getComputedStyle?function(e,t,n){var o=n,r="",i=J(e);return(o=o||i.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[te]&&e[te][t];if(Z.test(n)&&!ee.test(t)){var o=e.style,r=o[oe],i=e[ne][oe];e[ne][oe]=e[te][oe],o[oe]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[oe]=r,e[ne][oe]=i}return""===n?"auto":n});var le=["margin","border","padding"],pe=-1,fe=2,de=1;function he(e,t,n){var o,r,i,a=0;for(r=0;r<t.length;r++)if(o=t[r])for(i=0;i<n.length;i++){var u=void 0;u="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],a+=parseFloat(U(e,u))||0}return a}var ve={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function me(e,t,n){var o=n;if(Q(e))return"width"===t?ve.viewportWidth(e):ve.viewportHeight(e);if(9===e.nodeType)return"width"===t?ve.docWidth(e):ve.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=se(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=U(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=Math.floor(parseFloat(u))||0),void 0===o&&(o=a?de:pe);var c=void 0!==i||a,s=i||u;return o===pe?c?s-he(e,["border","padding"],r):u:c?o===de?s:s+(o===fe?-he(e,["border"],r):he(e,["margin"],r)):u+he(e,le.slice(o),r)}ce(["Width","Height"],(function(e){ve["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ve["viewport".concat(e)](n))},ve["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}}));var ye={position:"absolute",visibility:"hidden",display:"block"};function ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=me.apply(void 0,t):function(e,t,n){var o,r={},i=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}(r,ye,(function(){o=me.apply(void 0,t)})),o}function we(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ce(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ve["outer".concat(t)]=function(t,n){return t&&ge(t,e,n?0:de)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ve[e]=function(t,o){var r=o;return void 0!==r?t?(se(t)&&(r+=he(t,["padding","border"],n)),z(t,e,r)):void 0:t&&ge(t,e,pe)}}));var be={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return q(e);!function(e,t,n){if(n.ignoreShake){var o=q(e),r=o.left.toFixed(0),i=o.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(r===a&&i===u)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&$()in document.body.style?ue(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:Q,each:ce,css:z,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:we,getWindowScrollLeft:function(e){return X(e)},getWindowScrollTop:function(e){return G(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)be.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};we(be,ve);var Ae=be.getParent;function Ee(e){if(be.isWindow(e)||9===e.nodeType)return null;var t,n=be.getDocument(e).body,o=be.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:Ae(e);for(t=Ae(e);t&&t!==n&&9!==t.nodeType;t=Ae(t))if("static"!==(o=be.css(t,"position")))return t;return null}var Oe=be.getParent;function Me(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Ee(e),r=be.getDocument(e),i=r.defaultView||r.parentWindow,a=r.body,u=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===u||"visible"===be.css(o,"overflow")){if(o===a||o===u)break}else{var c=be.offset(o);c.left+=o.clientLeft,c.top+=o.clientTop,n.top=Math.max(n.top,c.top),n.right=Math.min(n.right,c.left+o.clientWidth),n.bottom=Math.min(n.bottom,c.top+o.clientHeight),n.left=Math.max(n.left,c.left)}o=Ee(o)}var s=null;be.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===be.css(e,"position")&&(e.style.position="fixed"));var l=be.getWindowScrollLeft(i),p=be.getWindowScrollTop(i),f=be.viewportWidth(i),d=be.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=s),t||function(e){if(be.isWindow(e)||9===e.nodeType)return!1;var t=be.getDocument(e),n=t.body,o=null;for(o=Oe(e);o&&o!==n&&o!==t;o=Oe(o))if("fixed"===be.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,p),n.right=Math.min(n.right,l+f),n.bottom=Math.min(n.bottom,p+d);else{var y=Math.max(h,l+f);n.right=Math.min(n.right,y);var g=Math.max(v,p+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Se(e){var t,n,o;if(be.isWindow(e)||9===e.nodeType){var r=be.getWindow(e);t={left:be.getWindowScrollLeft(r),top:be.getWindowScrollTop(r)},n=be.viewportWidth(r),o=be.viewportHeight(r)}else t=be.offset(e),n=be.outerWidth(e),o=be.outerHeight(e);return t.width=n,t.height=o,t}function Ce(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:u}}function xe(e,t,n,o,r){var i=Ce(t,n[1]),a=Ce(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+o[0]-r[0]),top:Math.round(e.top-u[1]+o[1]-r[1])}}function Te(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Pe(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function _e(e,t,n){var o=[];return be.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function ke(e,t){return e[t]=-e[t],e}function De(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ne(e,t){e[0]=De(e[0],t.width),e[1]=De(e[1],t.height)}function Re(e,t,n,o){var r=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,c=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,p=Me(c,!(!(u=u||{})||!u.alwaysByViewport)),f=Se(c);Ne(i,f),Ne(a,t);var d=xe(f,t,r,i,a),h=be.merge(f,d);if(p&&(u.adjustX||u.adjustY)&&o){if(u.adjustX&&Te(d,f,p)){var v=_e(r,/[lr]/gi,{l:"r",r:"l"}),m=ke(i,0),y=ke(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(xe(f,t,v,m,y),f,p)||(l=1,r=v,i=m,a=y)}if(u.adjustY&&Pe(d,f,p)){var g=_e(r,/[tb]/gi,{t:"b",b:"t"}),w=ke(i,1),b=ke(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(xe(f,t,g,w,b),f,p)||(l=1,r=g,i=w,a=b)}l&&(d=xe(f,t,r,i,a),be.mix(h,d));var A=Te(d,f,p),E=Pe(d,f,p);if(A||E){var O=r;A&&(O=_e(r,/[lr]/gi,{l:"r",r:"l"})),E&&(O=_e(r,/[tb]/gi,{t:"b",b:"t"})),r=O,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=u.adjustX&&A,s.adjustY=u.adjustY&&E,(s.adjustX||s.adjustY)&&(h=function(e,t,n,o){var r=be.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),be.mix(r,i)}(d,f,p,s))}return h.width!==f.width&&be.css(c,"width",be.width(c)+h.width-f.width),h.height!==f.height&&be.css(c,"height",be.height(c)+h.height-f.height),be.offset(c,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:s}}function Le(e,t,n){var o=n.target||t,r=Se(o),i=!function(e,t){var n=Me(e,t),o=Se(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Re(e,r,n,i)}Le.__getOffsetParent=Ee,Le.__getVisibleRectForElement=Me;var je=n(43210),He=n(42467),Ie=n(30981);var $e=n(43591);function Fe(e,t){var n=null,o=null;var r=new $e.default((function(e){var r=(0,M.A)(e,1)[0].target;if(document.documentElement.contains(r)){var i=r.getBoundingClientRect(),a=i.width,u=i.height,c=Math.floor(a),s=Math.floor(u);n===c&&o===s||Promise.resolve().then((function(){t({width:c,height:s})})),n=c,o=s}}));return e&&r.observe(e),function(){r.disconnect()}}function Ve(e){return"function"!=typeof e?null:e()}function Ue(e){return"object"===(0,k.A)(e)&&e?e:null}var We=function(e,t){var n=e.children,o=e.disabled,r=e.target,i=e.align,a=e.onAlign,u=e.monitorWindowResize,c=e.monitorBufferTime,s=void 0===c?0:c,l=f().useRef({}),p=f().useRef(),d=f().Children.only(n),h=f().useRef({});h.current.disabled=o,h.current.target=r,h.current.align=i,h.current.onAlign=a;var v=function(e,t){var n=f().useRef(!1),o=f().useRef(null);function r(){window.clearTimeout(o.current)}return[function i(a){if(r(),n.current&&!0!==a)o.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,r()}]}((function(){var e=h.current,t=e.disabled,n=e.target,o=e.align,r=e.onAlign,i=p.current;if(!t&&n&&i){var a,u=Ve(n),c=Ue(n);l.current.element=u,l.current.point=c,l.current.align=o;var s=document.activeElement;return u&&(0,He.A)(u)?a=Le(i,u,o):c&&(a=function(e,t,n){var o,r,i=be.getDocument(e),a=i.defaultView||i.parentWindow,u=be.getWindowScrollLeft(a),c=be.getWindowScrollTop(a),s=be.viewportWidth(a),l=be.viewportHeight(a),p={left:o="pageX"in t?t.pageX:u+t.clientX,top:r="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},f=o>=0&&o<=u+s&&r>=0&&r<=c+l,d=[n.points[0],"cc"];return Re(e,p,N(N({},n),{},{points:d}),f)}(i,c,o)),function(e,t){e!==document.activeElement&&(0,m.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),r&&a&&r(i,a),!0}return!1}),s),y=(0,M.A)(v,2),b=y[0],A=y[1],E=f().useState(),O=(0,M.A)(E,2),S=O[0],C=O[1],x=f().useState(),T=(0,M.A)(x,2),P=T[0],_=T[1];return(0,Ie.A)((function(){C(Ve(r)),_(Ue(r))})),f().useEffect((function(){var e,t;l.current.element===S&&((e=l.current.point)===(t=P)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,je.A)(l.current.align,i)||b()})),f().useEffect((function(){return Fe(p.current,b)}),[p.current]),f().useEffect((function(){return Fe(S,b)}),[S]),f().useEffect((function(){o?A():b()}),[o]),f().useEffect((function(){if(u)return(0,w.A)(window,"resize",b).remove}),[u]),f().useEffect((function(){return function(){A()}}),[]),f().useImperativeHandle(t,(function(){return{forceAlign:function(){return b(!0)}}})),f().isValidElement(d)&&(d=f().cloneElement(d,{ref:(0,g.K4)(d.ref,p)})),d},Ye=f().forwardRef(We);Ye.displayName="Align";const Be=Ye;function ze(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
2
|
-
ze=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),u=new _(o||[]);return r(a,"_invoke",{value:C(e,n,u)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function w(){}var b={};s(b,a,(function(){return this}));var A=Object.getPrototypeOf,E=A&&A(A(D([])));E&&E!==n&&o.call(E,a)&&(b=E);var O=w.prototype=y.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,a,u){var c=p(e[r],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==(0,k.A)(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,o){var r=f;return function(i,a){if(r===h)throw Error("Generator is already running");if(r===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var u=o.delegate;if(u){var c=x(u,o);if(c){if(c===m)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var s=p(t,n,o);if("normal"===s.type){if(r=o.done?v:d,s.arg===m)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r=v,o.method="throw",o.arg=s.arg)}}}function x(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=p(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,k.A)(t)+" is not iterable")}return g.prototype=w,r(O,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:g,configurable:!0}),g.displayName=s(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},M(S.prototype),s(S.prototype,u,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new S(l(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(O),s(O,c,"Generator"),s(O,a,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=D,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return u.type="throw",u.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:D(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}var Ke=n(10467),Xe=n(1233),Ge=["measure","alignPre","align",null,"motion"];var qe=p.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,u=e.style,c=e.children,s=e.zIndex,l=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,h=e.align,m=e.point,y=e.getRootDomNode,g=e.getClassNameFromAlign,w=e.onAlign,b=e.onMouseEnter,A=e.onMouseLeave,O=e.onMouseDown,S=e.onTouchStart,C=e.onClick,P=(0,p.useRef)(),_=(0,p.useRef)(),k=(0,p.useState)(),D=(0,M.A)(k,2),N=D[0],R=D[1],L=function(e){var t=p.useState({width:0,height:0}),n=(0,M.A)(t,2),o=n[0],r=n[1];return[p.useMemo((function(){var t={};if(e){var n=o.width,r=o.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),i=o.width,a=o.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),r({width:t,height:n})}]}(l),j=(0,M.A)(L,2),H=j[0],I=j[1];var $=function(e,t){var n=(0,Xe.A)(null),o=(0,M.A)(n,2),r=o[0],i=o[1],a=(0,p.useRef)();function u(e){i(e,!0)}function c(){v.A.cancel(a.current)}return(0,p.useEffect)((function(){u("measure")}),[e]),(0,p.useEffect)((function(){"measure"===r&&t(),r&&(a.current=(0,v.A)((0,Ke.A)(ze().mark((function e(){var t,n;return ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ge.indexOf(r),(n=Ge[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,p.useEffect)((function(){return function(){c()}}),[]),[r,function(e){c(),a.current=(0,v.A)((function(){u((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&I(y())})),F=(0,M.A)($,2),V=F[0],U=F[1],W=(0,p.useState)(0),Y=(0,M.A)(W,2),B=Y[0],z=Y[1],K=(0,p.useRef)();function X(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function G(e,t){var n=g(t);N!==n&&R(n),z((function(e){return e+1})),"align"===V&&(null==w||w(e,t))}(0,Ie.A)((function(){"alignPre"===V&&z(0)}),[V]),(0,Ie.A)((function(){"align"===V&&(B<3?X():U((function(){var e;null===(e=K.current)||void 0===e||e.call(K)})))}),[B]);var q=(0,o.A)({},T(e));function Q(){return new Promise((function(e){K.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=q[e];q[e]=function(e,n){return U(),null==t?void 0:t(e,n)}})),p.useEffect((function(){q.motionName||"motion"!==V||U()}),[q.motionName,V]),p.useImperativeHandle(t,(function(){return{forceAlign:X,getElement:function(){return _.current}}}));var J=(0,o.A)((0,o.A)({},H),{},{zIndex:s,opacity:"motion"!==V&&"stable"!==V&&n?0:void 0,pointerEvents:n||"stable"===V?void 0:"none"},u),Z=!0;null==h||!h.points||"align"!==V&&"stable"!==V||(Z=!1);var ee=c;return p.Children.count(c)>1&&(ee=p.createElement("div",{className:"".concat(i,"-content")},c)),p.createElement(x.A,(0,r.A)({visible:n,ref:_,leavedClassName:"".concat(i,"-hidden")},q,{onAppearPrepare:Q,onEnterPrepare:Q,removeOnLeave:f,forceRender:d}),(function(e,t){var n=e.className,r=e.style,u=E()(i,a,N,n);return p.createElement(Be,{target:m||y,key:"popup",ref:P,monitorWindowResize:!0,disabled:Z,align:h,onAlign:G},p.createElement("div",{ref:t,className:u,onMouseEnter:b,onMouseLeave:A,onMouseDownCapture:O,onTouchStartCapture:S,onClick:C,style:(0,o.A)((0,o.A)({},r),J)},ee))}))}));qe.displayName="PopupInner";const Qe=qe;var Je=p.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,u=e.children,c=e.mobile,s=(c=void 0===c?{}:c).popupClassName,l=c.popupStyle,f=c.popupMotion,d=void 0===f?{}:f,h=c.popupRender,v=e.onClick,m=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var y=(0,o.A)({zIndex:a},l),g=u;return p.Children.count(u)>1&&(g=p.createElement("div",{className:"".concat(n,"-content")},u)),h&&(g=h(g)),p.createElement(x.A,(0,r.A)({visible:i,ref:m,removeOnLeave:!0},d),(function(e,t){var r=e.className,i=e.style,a=E()(n,s,r);return p.createElement("div",{ref:t,className:a,onClick:v,style:(0,o.A)((0,o.A)({},i),y)},g)}))}));Je.displayName="MobilePopupInner";const Ze=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,S.A)(e,et),u=(0,p.useState)(n),c=(0,M.A)(u,2),s=c[0],l=c[1],f=(0,p.useState)(!1),d=(0,M.A)(f,2),h=d[0],v=d[1],m=(0,o.A)((0,o.A)({},a),{},{visible:s});(0,p.useEffect)((function(){l(n),n&&i&&v((0,C.A)())}),[n,i]);var y=h?p.createElement(Ze,(0,r.A)({},m,{mobile:i,ref:t})):p.createElement(Qe,(0,r.A)({},m,{ref:t}));return p.createElement("div",null,p.createElement(P,m),y)}));tt.displayName="Popup";const nt=tt;const ot=p.createContext(null);function rt(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ut=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ct=(st=b.A,lt=function(e){(0,c.A)(n,e);var t=(0,s.A)(n);function n(e){var o,a;return(0,i.A)(this,n),o=t.call(this,e),(0,l.A)((0,u.A)(o),"popupRef",p.createRef()),(0,l.A)((0,u.A)(o),"triggerRef",p.createRef()),(0,l.A)((0,u.A)(o),"portalContainer",void 0),(0,l.A)((0,u.A)(o),"attachId",void 0),(0,l.A)((0,u.A)(o),"clickOutsideHandler",void 0),(0,l.A)((0,u.A)(o),"touchOutsideHandler",void 0),(0,l.A)((0,u.A)(o),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,u.A)(o),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,u.A)(o),"mouseDownTimeout",void 0),(0,l.A)((0,u.A)(o),"focusTime",void 0),(0,l.A)((0,u.A)(o),"preClickTime",void 0),(0,l.A)((0,u.A)(o),"preTouchTime",void 0),(0,l.A)((0,u.A)(o),"delayTimer",void 0),(0,l.A)((0,u.A)(o),"hasPopupMouseDown",void 0),(0,l.A)((0,u.A)(o),"onMouseEnter",(function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.A)((0,u.A)(o),"onMouseMove",(function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)})),(0,l.A)((0,u.A)(o),"onMouseLeave",(function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(o),"onPopupMouseEnter",(function(){o.clearDelayTimer()})),(0,l.A)((0,u.A)(o),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,m.A)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(o),"onFocus",(function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))})),(0,l.A)((0,u.A)(o),"onMouseDown",(function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()})),(0,l.A)((0,u.A)(o),"onTouchStart",(function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()})),(0,l.A)((0,u.A)(o),"onBlur",(function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)})),(0,l.A)((0,u.A)(o),"onContextMenu",(function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)})),(0,l.A)((0,u.A)(o),"onContextMenuClose",(function(){o.isContextMenuToShow()&&o.close()})),(0,l.A)((0,u.A)(o),"onClick",(function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)})),(0,l.A)((0,u.A)(o),"onPopupMouseDown",(function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,u.A)(o),"onDocumentClick",(function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),r=o.getPopupDomNode();(0,m.A)(n,t)&&!o.isContextMenuOnly()||(0,m.A)(r,t)||o.hasPopupMouseDown||o.close()}})),(0,l.A)((0,u.A)(o),"getRootDomNode",(function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,y.A)(o.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,u.A)(o))})),(0,l.A)((0,u.A)(o),"getPopupClassNameFromAlign",(function(e){var t=[],n=o.props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,c=n.getPopupClassNameFromAlign;return r&&i&&t.push(function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u=i[a];if(O(e[u].points,r,o))return"".concat(t,"-placement-").concat(u)}return""}(i,a,e,u)),c&&t.push(c(e)),t.join(" ")})),(0,l.A)((0,u.A)(o),"getComponent",(function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,u=e.popupMotion,c=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,f=e.mask,d=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,y=e.popup,g=e.stretch,w=e.alignPoint,b=e.mobile,A=e.forceRender,E=e.onPopupClick,O=o.state,M=O.popupVisible,S=O.point,C=o.getPopupAlign(),x={};return o.isMouseEnterToShow()&&(x.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(x.onMouseLeave=o.onPopupMouseLeave),x.onMouseDown=o.onPopupMouseDown,x.onTouchStart=o.onPopupMouseDown,p.createElement(nt,(0,r.A)({prefixCls:t,destroyPopupOnHide:n,visible:M,point:w&&S,className:i,align:C,onAlign:a,animation:c,getClassNameFromAlign:o.getPopupClassNameFromAlign},x,{stretch:g,getRootDomNode:o.getRootDomNode,style:l,mask:f,zIndex:m,transitionName:s,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:o.popupRef,motion:u,mobile:b,forceRender:A,onClick:E}),"function"==typeof y?y():y)})),(0,l.A)((0,u.A)(o),"attachParent",(function(e){v.A.cancel(o.attachId);var t,n=o.props,r=n.getPopupContainer,i=n.getDocument,a=o.getRootDomNode();r?(a||0===r.length)&&(t=r(a)):t=i(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,v.A)((function(){o.attachParent(e)}))})),(0,l.A)((0,u.A)(o),"getContainer",(function(){if(!o.portalContainer){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.portalContainer=e}return o.attachParent(o.portalContainer),o.portalContainer})),(0,l.A)((0,u.A)(o),"setPoint",(function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.A)((0,u.A)(o),"handlePortalUpdate",(function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)})),(0,l.A)((0,u.A)(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:a,popupVisible:a},ut.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,w.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,w.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,w.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,w.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return(0,o.A)((0,o.A)({},r),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,r=1e3*t;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,i),o.clearDelayTimer()}),r)}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 o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,i=t.alignPoint,a=t.className,u=t.autoDestroy,c=p.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=E()(c&&c.props&&c.props.className,a);l&&(s.className=l);var f=(0,o.A)({},s);(0,g.f3)(c)&&(f.ref=(0,g.K4)(this.triggerRef,c.ref));var d,h=p.cloneElement(c,f);return(e||this.popupRef.current||r)&&(d=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&u&&(d=null),p.createElement(ot.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(p.Component),(0,l.A)(lt,"contextType",ot),(0,l.A)(lt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:rt,afterPopupVisibleChange:rt,onPopupAlign:rt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),lt);var st,lt},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(69514),r=n.n(o);function i(e,t,n,o){var i=r().unstable_batchedUpdates?function(e){r().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}},20998:(e,t,n)=>{"use strict";function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>o})},54808:(e,t,n)=>{"use strict";function o(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>o})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(39155),r=n.n(o),i=n(69514),a=n.n(i);function u(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof r().Component?a().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1}},16928:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o={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>=o.F1&&t<=o.F12)return!1;switch(t){case o.ALT:case o.CAPS_LOCK:case o.CONTEXT_MENU:case o.CTRL:case o.DOWN:case o.END:case o.ESC:case o.HOME:case o.INSERT:case o.LEFT:case o.MAC_FF_META:case o.META:case o.NUMLOCK:case o.NUM_CENTER:case o.PAGE_DOWN:case o.PAGE_UP:case o.PAUSE:case o.PRINT_SCREEN:case o.RIGHT:case o.SHIFT:case o.UP:case o.WIN_KEY:case o.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=o.ZERO&&e<=o.NINE)return!0;if(e>=o.NUM_ZERO&&e<=o.NUM_MULTIPLY)return!0;if(e>=o.A&&e<=o.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case o.SPACE:case o.QUESTION_MARK:case o.NUM_PLUS:case o.NUM_MINUS:case o.NUM_PERIOD:case o.NUM_DIVISION:case o.SEMICOLON:case o.DASH:case o.EQUALS:case o.COMMA:case o.PERIOD:case o.SLASH:case o.APOSTROPHE:case o.SINGLE_QUOTE:case o.OPEN_SQUARE_BRACKET:case o.BACKSLASH:case o.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const r=o},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(39155),r=n(69514),i=n.n(r),a=n(20998);const u=(0,o.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,u=e.children,c=(0,o.useRef)(),s=(0,o.useRef)();(0,o.useImperativeHandle)(t,(function(){return{}}));var l=(0,o.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=r(),c.current=s.current.parentNode,l.current=!0),(0,o.useEffect)((function(){null==n||n(e)})),(0,o.useEffect)((function(){return null===s.current.parentNode&&null!==c.current&&c.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(u,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(39155),r=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect,i=function(e,t){var n=o.useRef(!0);r((function(){return e(n.current)}),t),r((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3453),r=n(39155);function i(e){var t=r.useRef(!1),n=r.useState(e),i=(0,o.A)(n,2),a=i[0],u=i[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||u(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(t);if((0,r.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(t===a)return!0;if(n&&u>1)return!1;i.add(t);var s=u+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],a[l],s))return!1;return!0}if(t&&a&&"object"===(0,o.A)(t)&&"object"===(0,o.A)(a)){var p=Object.keys(t);return p.length===Object.keys(a).length&&p.every((function(n){return e(t[n],a[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(o=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function u(e){a.delete(e)}var c=function(e){var t=i+=1;return function n(r){if(0===r)u(t),e();else{var i=o((function(){n(r-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};c.cancel=function(e){var t=a.get(e);return u(e),r(t)};const s=c},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>a,Xf:()=>i,f3:()=>u});var o=n(82284),r=(n(39155),n(44363)),i=(n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,o.A)(e)&&e&&"current"in e&&(e.current=t)}),a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){i(t,e)}))}},u=function(e){var t,n,o=(0,r.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===r.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===r.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var o={},r=[];function i(e,t){}function a(e,t){}function u(e,t,n){t||o[n]||(e(!1,n),o[n]=!0)}function c(e,t){u(i,e,t)}c.preMessage=function(e){r.push(e)},c.resetWarned=function(){o={}},c.noteOnce=function(e,t){u(a,e,t)};const s=c},22799:(e,t)=>{"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","react-dom","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("react-dom"),require("@paraview/lib")):e.ParaUI=t(e.react,e["react-dom"],e["@paraview/lib"])}(self,((e,t,n)=>(()=>{var o={20053:(e,t,n)=>{"use strict";function o(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{A:()=>r})},26468:(e,t,n)=>{(t=n(76314)(!1)).push([e.id,".paraui-v4-dropdown{position:absolute;left:-9999px;top:-9999px;z-index:1500;display:block;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;line-height:1.5715;background-color:#fff;box-shadow:1px 1px 10px 2px rgba(212,218,227,.4);border-radius:4px;border:1px solid rgba(212,218,227,.4)}.paraui-v4-dropdown.component-dropdown-hidden{display:none;border:none;box-shadow:none}.paraui-v4-dropdown .component-dropdown-arrow{position:absolute;border-width:4px;border-color:rgba(0,0,0,0);box-shadow:1px 1px 10px 2px rgba(212,218,227,.4);border-style:solid;transform:rotate(45deg)}.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-top,.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-topLeft,.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-topRight{padding-bottom:6px}.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-bottom,.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-bottomLeft,.paraui-v4-dropdown.component-dropdown-show-arrow.component-dropdown-placement-bottomRight{padding-top:6px}.paraui-v4-dropdown.component-dropdown-placement-top .component-dropdown-arrow,.paraui-v4-dropdown.component-dropdown-placement-topLeft .component-dropdown-arrow,.paraui-v4-dropdown.component-dropdown-placement-topRight .component-dropdown-arrow{bottom:4px;border-top-color:#fff}.paraui-v4-dropdown.component-dropdown-placement-top .component-dropdown-arrow{left:50%}.paraui-v4-dropdown.component-dropdown-placement-topLeft .component-dropdown-arrow{left:15%}.paraui-v4-dropdown.component-dropdown-placement-topRight .component-dropdown-arrow{right:15%}.paraui-v4-dropdown.component-dropdown-placement-bottom .component-dropdown-arrow,.paraui-v4-dropdown.component-dropdown-placement-bottomLeft .component-dropdown-arrow,.paraui-v4-dropdown.component-dropdown-placement-bottomRight .component-dropdown-arrow{top:4px;border-bottom-color:#fff}.paraui-v4-dropdown.component-dropdown-placement-bottom .component-dropdown-arrow{left:50%}.paraui-v4-dropdown.component-dropdown-placement-bottomLeft .component-dropdown-arrow{left:15%}.paraui-v4-dropdown.component-dropdown-placement-bottomRight .component-dropdown-arrow{right:15%}.component-dropdown-slide-up-enter,.component-dropdown-slide-up-appear{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;display:block !important;opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1);animation-play-state:paused}.component-dropdown-slide-up-leave{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;display:block !important;opacity:1;animation-timing-function:cubic-bezier(0.6, 0.04, 0.98, 0.34);animation-play-state:paused}.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-bottomLeft,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-bottomLeft,.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-bottomCenter,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-bottomCenter,.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-bottomRight,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-bottomRight{animation-name:componentDropdownSlideUpIn;animation-play-state:running}.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-topLeft,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-topLeft,.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-topCenter,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-topCenter,.component-dropdown-slide-up-enter.component-dropdown-slide-up-enter-active.component-dropdown-placement-topRight,.component-dropdown-slide-up-appear.component-dropdown-slide-up-appear-active.component-dropdown-placement-topRight{animation-name:componentDropdownSlideDownIn;animation-play-state:running}.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-bottomLeft,.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-bottomCenter,.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-bottomRight{animation-name:componentDropdownSlideUpOut;animation-play-state:running}.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-topLeft,.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-topCenter,.component-dropdown-slide-up-leave.component-dropdown-slide-up-leave-active.component-dropdown-placement-topRight{animation-name:componentDropdownSlideDownOut;animation-play-state:running}@keyframes componentDropdownSlideUpIn{0%{opacity:0;transform-origin:0% 0%;transform:scaleY(0)}100%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}}@keyframes componentDropdownSlideUpOut{0%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}100%{opacity:0;transform-origin:0% 0%;transform:scaleY(0)}}@keyframes componentDropdownSlideDownIn{0%{opacity:0;transform-origin:0% 100%;transform:scaleY(0)}100%{opacity:1;transform-origin:0% 100%;transform:scaleY(1)}}@keyframes componentDropdownSlideDownOut{0%{opacity:1;transform-origin:0% 100%;transform:scaleY(1)}100%{opacity:0;transform-origin:0% 100%;transform:scaleY(0)}}",""]),e.exports=t},76314: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]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(c," */")),i=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([r]).join("\n")}var a,u,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},74353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",u="day",c="week",s="month",l="quarter",p="year",f="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+y(o,2,"0")+":"+y(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(o,s),i=n-r<0,a=t.clone().add(o+(i?-1:1),s);return+(-(o+(n-r)/(i?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:p,w:c,d:u,D:f,h:a,m:i,s:r,ms:o,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",b={};b[w]=m;var A="$isDayjsObject",E=function(e){return e instanceof C||!(!e||!e[A])},O=function e(t,n,o){var r;if(!t)return w;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(r=i),n&&(b[i]=n,r=i);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var u=t.name;b[u]=t,r=u}return!o&&r&&(w=r),r||!o&&w},M=function(e,t){if(E(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},S=g;S.l=O,S.i=E,S.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(h);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return M(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<M(e)},y.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,o=!!S.u(t)||t,l=S.p(e),d=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return o?r:r.endOf(u)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case p:return o?d(1,0):d(31,11);case s:return o?d(1,m):d(0,m+1);case c:var w=this.$locale().weekStart||0,b=(v<w?v+7:v)-w;return d(o?y-b:y+(6-b),m);case u:case f:return h(g+"Hours",0);case a:return h(g+"Minutes",1);case i:return h(g+"Seconds",2);case r:return h(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,c=S.p(e),l="set"+(this.$u?"UTC":""),d=(n={},n[u]=l+"Date",n[f]=l+"Date",n[s]=l+"Month",n[p]=l+"FullYear",n[a]=l+"Hours",n[i]=l+"Minutes",n[r]=l+"Seconds",n[o]=l+"Milliseconds",n)[c],h=c===u?this.$D+(t-this.$W):t;if(c===s||c===p){var v=this.clone().set(f,1);v.$d[d](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[S.p(e)]()},y.add=function(o,l){var f,d=this;o=Number(o);var h=S.p(l),v=function(e){var t=M(d);return S.w(t.date(t.date()+Math.round(e*o)),d)};if(h===s)return this.set(s,this.$M+o);if(h===p)return this.set(p,this.$y+o);if(h===u)return v(1);if(h===c)return v(7);var m=(f={},f[i]=t,f[a]=n,f[r]=e,f)[h]||1,y=this.$d.getTime()+o*m;return S.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var o=e||"YYYY-MM-DDTHH:mm:ssZ",r=S.z(this),i=this.$H,a=this.$m,u=this.$M,c=n.weekdays,s=n.months,l=n.meridiem,p=function(e,n,r,i){return e&&(e[n]||e(t,o))||r[n].slice(0,i)},f=function(e){return S.s(i%12||12,e,"0")},h=l||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o};return o.replace(v,(function(e,o){return o||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return u+1;case"MM":return S.s(u+1,2,"0");case"MMM":return p(n.monthsShort,u,s,3);case"MMMM":return p(s,u);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,c,2);case"ddd":return p(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return S.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(o,f,d){var h,v=this,m=S.p(f),y=M(o),g=(y.utcOffset()-this.utcOffset())*t,w=this-y,b=function(){return S.m(v,y)};switch(m){case p:h=b()/12;break;case s:h=b();break;case l:h=b()/3;break;case c:h=(w-g)/6048e5;break;case u:h=(w-g)/864e5;break;case a:h=w/n;break;case i:h=w/t;break;case r:h=w/e;break;default:h=w}return d?h:S.a(h)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=O(e,t,!0);return o&&(n.$L=o),n},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),x=C.prototype;return M.prototype=x,[["$ms",o],["$s",r],["$m",i],["$H",a],["$W",u],["$M",s],["$y",p],["$D",f]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,C,M),e.$i=!0),M},M.locale=O,M.isDayjs=E,M.unix=function(e){return M(1e3*e)},M.en=b[w],M.Ls=b,M.p={},M}()},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n(64467),r=n(89379),i=n(3453),a=n(82284),u=n(39155),c=n(66588),s=n(8719),l=n(46942),p=n.n(l),f=n(80371),d=n(25931),h=n(25318),v=n(72137),m=n(58515);const y=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var l=u.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,y=e.removeOnLeave,g=void 0===y||y,w=e.forceRender,b=e.children,A=e.motionName,E=e.leavedClassName,O=e.eventProps,M=n(e),S=(0,u.useRef)(),C=(0,u.useRef)();var x=(0,h.A)(M,l,(function(){try{return(0,c.Ay)(S.current||C.current)}catch(e){return null}}),e),T=(0,i.A)(x,4),P=T[0],_=T[1],k=T[2],D=T[3],N=u.useRef(D);D&&(N.current=!0);var R=(0,u.useRef)(t);R.current=t;var L,j=u.useCallback((function(e){S.current=e,(0,s.Xf)(R.current,e)}),[]),H=(0,r.A)((0,r.A)({},O),{},{visible:l});if(b)if(P!==d.SF&&n(e)){var I,$;_===d.px?$="prepare":(0,m.$m)(_)?$="active":_===d.Mv&&($="start"),L=b((0,r.A)((0,r.A)({},H),{},{className:p()((0,f.by)(A,P),(I={},(0,o.A)(I,(0,f.by)(A,"".concat(P,"-").concat($)),$),(0,o.A)(I,A,"string"==typeof A),I)),style:k}),j)}else L=D?b((0,r.A)({},H),j):!g&&N.current?b((0,r.A)((0,r.A)({},H),{},{className:E}),j):w?b((0,r.A)((0,r.A)({},H),{},{style:{display:"none"}}),j):null;else L=null;return u.createElement(v.A,{ref:C},L)}));return l.displayName="CSSMotion",l}(f.J1)},97333:(e,t,n)=>{"use strict";var o=n(58168),r=n(80045),i=n(89379),a=n(23029),u=n(92901),c=n(85501),s=n(29426),l=n(39155),p=n(44785),f=n(80371),d=n(29710),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,c.A)(p,e);var n=(0,s.A)(p);function p(){var e;return(0,a.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:d.e8})}))}}))},e}return(0,u.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,u=i.children,c=i.onVisibleChanged,s=(0,r.A)(i,["component","children","onVisibleChanged"]),p=a||l.Fragment,f={};return h.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,l.createElement(p,s,n.map((function(n){var i=n.status,a=(0,r.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(t,(0,o.A)({},f,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(t){null==c||c(t,{key:a.key}),t||e.removeKey(a.key)}}),u)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(o,r).filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),p}(l.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(23029),r=n(92901),i=n(85501),a=n(29426),u=n(39155);const c=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,o.A)(this,n),t.apply(this,arguments)}return(0,r.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(39155),r=n(80371);const i=function(e){var t=(0,o.useRef)(),n=(0,o.useRef)(e);n.current=e;var i=o.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(r.m8,i),e.removeEventListener(r.Vc,i))}return o.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(r.m8,i),e.addEventListener(r.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(39155);const r=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(39155),r=n(25371);const i=function(){var e=o.useRef(null);function t(){r.A.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,r.A)((function(){i<=1?o({isCanceled:function(){return a!==e.current}}):n(o,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3453),r=n(39155);function i(e){var t=(0,r.useRef)(!1),n=(0,r.useState)(e),i=(0,o.A)(n,2),a=i[0],u=i[1];return(0,r.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||u(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var o=n(89379),r=n(64467),i=n(3453),a=n(39155),u=n(25931),c=n(92659),s=n(43982),l=n(58515),p=n(85849);function f(e,t,n,f){var d=f.motionEnter,h=void 0===d||d,v=f.motionAppear,m=void 0===v||v,y=f.motionLeave,g=void 0===y||y,w=f.motionDeadline,b=f.motionLeaveImmediately,A=f.onAppearPrepare,E=f.onEnterPrepare,O=f.onLeavePrepare,M=f.onAppearStart,S=f.onEnterStart,C=f.onLeaveStart,x=f.onAppearActive,T=f.onEnterActive,P=f.onLeaveActive,_=f.onAppearEnd,k=f.onEnterEnd,D=f.onLeaveEnd,N=f.onVisibleChanged,R=(0,c.A)(),L=(0,i.A)(R,2),j=L[0],H=L[1],I=(0,c.A)(u.SF),$=(0,i.A)(I,2),F=$[0],V=$[1],U=(0,c.A)(null),W=(0,i.A)(U,2),Y=W[0],B=W[1],z=(0,a.useRef)(!1),K=(0,a.useRef)(null),X=(0,a.useRef)(!1),G=(0,a.useRef)(null);function q(){return n()||G.current}var Q=(0,a.useRef)(!1);function J(e){var t,n=q();e&&!e.deadline&&e.target!==n||(F===u.Tv&&Q.current?t=null==_?void 0:_(n,e):F===u.Wd&&Q.current?t=null==k?void 0:k(n,e):F===u.dp&&Q.current&&(t=null==D?void 0:D(n,e)),!1===t||X.current||(V(u.SF),B(null)))}var Z=(0,p.A)(J),ee=(0,i.A)(Z,1)[0],te=a.useMemo((function(){var e,t,n;switch(F){case"appear":return e={},(0,r.A)(e,u.px,A),(0,r.A)(e,u.Mv,M),(0,r.A)(e,u.m7,x),e;case"enter":return t={},(0,r.A)(t,u.px,E),(0,r.A)(t,u.Mv,S),(0,r.A)(t,u.m7,T),t;case"leave":return n={},(0,r.A)(n,u.px,O),(0,r.A)(n,u.Mv,C),(0,r.A)(n,u.m7,P),n;default:return{}}}),[F]),ne=(0,l.Ay)(F,(function(e){if(e===u.px){var t=te[u.px];return t?t(q()):l.es}var n;ie in te&&B((null===(n=te[ie])||void 0===n?void 0:n.call(te,q(),null))||null);return ie===u.m7&&(ee(q()),w>0&&(clearTimeout(K.current),K.current=setTimeout((function(){J({deadline:!0})}),w))),l.qB})),oe=(0,i.A)(ne,2),re=oe[0],ie=oe[1],ae=(0,l.$m)(ie);Q.current=ae,(0,s.A)((function(){H(t);var n,o=z.current;(z.current=!0,e)&&(!o&&t&&m&&(n=u.Tv),o&&t&&h&&(n=u.Wd),(o&&!t&&g||!o&&b&&!t&&g)&&(n=u.dp),n&&(V(n),re()))}),[t]),(0,a.useEffect)((function(){(F===u.Tv&&!m||F===u.Wd&&!h||F===u.dp&&!g)&&V(u.SF)}),[m,h,g]),(0,a.useEffect)((function(){return function(){clearTimeout(K.current),X.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==j&&F===u.SF&&(null==N||N(j))}),[j,F]);var ue=Y;return te[u.px]&&ie===u.Mv&&(ue=(0,o.A)({transition:"none"},ue)),[F,ie,ue,null!=j?j:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>f,es:()=>s,qB:()=>l});var o=n(3453),r=n(39155),i=n(25931),a=n(43982),u=n(84560),c=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function p(e){return e===i.m7||e===i.Hs}const f=function(e,t){var n=r.useState(i.cE),l=(0,o.A)(n,2),p=l[0],f=l[1],d=(0,u.A)(),h=(0,o.A)(d,2),v=h[0],m=h[1];return(0,a.A)((function(){if(p!==i.cE&&p!==i.Hs){var e=c.indexOf(p),n=c[e+1],o=t(p);o===s?f(n):v((function(e){function t(){e.isCanceled()||f(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,p]),r.useEffect((function(){return function(){m()}}),[]),[function(){f(i.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(44785);n(97333);const r=o.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>s,SF:()=>o,Tv:()=>r,Wd:()=>i,cE:()=>u,dp:()=>a,m7:()=>l,px:()=>c});var o="none",r="appear",i="enter",a="leave",u="none",c="prepare",s="start",l="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>l,au:()=>u,bK:()=>i,e8:()=>c,xI:()=>a,y$:()=>p});var o=n(89379),r=n(82284),i="add",a="keep",u="remove",c="removed";function s(e){var t;return t=e&&"object"===(0,r.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,c=t.length,s=l(e),p=l(t);s.forEach((function(e){for(var t=!1,s=r;s<c;s+=1){var l=p[s];if(l.key===e.key){r<s&&(n=n.concat(p.slice(r,s).map((function(e){return(0,o.A)((0,o.A)({},e),{},{status:i})}))),r=s),n.push((0,o.A)((0,o.A)({},l),{},{status:a})),r+=1,t=!0;break}}t||n.push((0,o.A)((0,o.A)({},e),{},{status:u}))})),r<c&&(n=n.concat(p.slice(r).map((function(e){return(0,o.A)((0,o.A)({},e),{},{status:i})}))));var f={};return n.forEach((function(e){var t=e.key;f[t]=(f[t]||0)+1})),Object.keys(f).filter((function(e){return f[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==u}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>m,Vc:()=>y,by:()=>w,m8:()=>g});var o=n(82284),r=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,u,c,s=(a=(0,r.A)(),u="undefined"!=typeof window?window:{},c={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in u||delete c.animationend.animation,"TransitionEvent"in u||delete c.transitionend.transition),c),l={};if((0,r.A)()){var p=document.createElement("div");l=p.style}var f={};function d(e){if(f[e])return f[e];var t=s[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return f[e]=t[i],f[e]}return""}var h=d("animationend"),v=d("transitionend"),m=!(!h||!v),y=h||"animationend",g=v||"transitionend";function w(e,t){return e?"object"===(0,o.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34848:(e,t,n)=>{"use strict";n.d(t,{A:()=>ct});var o=n(89379),r=n(58168),i=n(23029),a=n(92901),u=n(9417),c=n(85501),s=n(29426),l=n(64467),p=n(39155),f=n.n(p),d=n(69514),h=n.n(d),v=n(25371),m=n(54808),y=n(66588),g=n(8719),w=n(69916),b=n(88822),A=n(46942),E=n.n(A);function O(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var M=n(3453),S=n(80045),C=n(68430),x=n(30156);function T(e){var t=e.prefixCls,n=e.motion,o=e.animation,r=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:r?{motionName:r}:null)}function P(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,u=e.maskMotion,c=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(u||s||c)&&(l=(0,o.A)({motionAppear:!0},T({motion:u,prefixCls:t,transitionName:s,animation:c}))),p.createElement(x.A,(0,r.A)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:i},className:E()("".concat(t,"-mask"),n)})}))}var _,k=n(82284);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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)}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function H(){if(void 0!==_)return _;_="";var e=document.createElement("p").style;for(var t in j)t+"Transform"in e&&(_=t);return _}function I(){return H()?"".concat(H(),"TransitionProperty"):"transitionProperty"}function $(){return H()?"".concat(H(),"Transform"):"transform"}function F(e,t){var n=I();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function V(e,t){var n=$();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var U,W=/matrix\((.*)\)/,Y=/matrix3d\((.*)\)/;function B(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function z(e,t,n){var o=n;if("object"!==R(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):U(e,t);for(var r in t)t.hasOwnProperty(r)&&z(e,r,t[r])}function K(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function X(e){return K(e)}function G(e){return K(e,!0)}function q(e){var t=function(e){var t,n,o,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=X(o),t.top+=G(o),t}function Q(e){return null!=e&&e==e.window}function J(e){return Q(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Z=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",oe="left";function re(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===z(e,"position")&&(e.style.position="relative");var o=-999,r=-999,i=re("left",n),a=re("top",n),u=ie(i),c=ie(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var s,l="",p=q(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[I()]||"",F(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(o,"px")),"top"in t&&(e.style[c]="",e.style[a]="".concat(r,"px")),B(e);var f=q(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=re(h,n),m="left"===h?o:r,y=p[h]-f[h];d[v]=v===h?m+y:m-y}z(e,d),B(e),("left"in t||"top"in t)&&F(e,l);var g={};for(var w in t)if(t.hasOwnProperty(w)){var b=re(w,n),A=t[w]-p[w];g[b]=w===b?d[b]+A:d[b]-A}z(e,g)}function ue(e,t){var n=q(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue($());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue($());if(o&&"none"!==o){var r,i=o.match(W);i?((r=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,V(e,"matrix(".concat(r.join(","),")"))):((r=o.match(Y)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,V(e,"matrix3d(".concat(r.join(","),")")))}else V(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function ce(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===U(e,"boxSizing")}"undefined"!=typeof window&&(U=window.getComputedStyle?function(e,t,n){var o=n,r="",i=J(e);return(o=o||i.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[te]&&e[te][t];if(Z.test(n)&&!ee.test(t)){var o=e.style,r=o[oe],i=e[ne][oe];e[ne][oe]=e[te][oe],o[oe]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[oe]=r,e[ne][oe]=i}return""===n?"auto":n});var le=["margin","border","padding"],pe=-1,fe=2,de=1;function he(e,t,n){var o,r,i,a=0;for(r=0;r<t.length;r++)if(o=t[r])for(i=0;i<n.length;i++){var u=void 0;u="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],a+=parseFloat(U(e,u))||0}return a}var ve={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function me(e,t,n){var o=n;if(Q(e))return"width"===t?ve.viewportWidth(e):ve.viewportHeight(e);if(9===e.nodeType)return"width"===t?ve.docWidth(e):ve.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=se(e),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=U(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=Math.floor(parseFloat(u))||0),void 0===o&&(o=a?de:pe);var c=void 0!==i||a,s=i||u;return o===pe?c?s-he(e,["border","padding"],r):u:c?o===de?s:s+(o===fe?-he(e,["border"],r):he(e,["margin"],r)):u+he(e,le.slice(o),r)}ce(["Width","Height"],(function(e){ve["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ve["viewport".concat(e)](n))},ve["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}}));var ye={position:"absolute",visibility:"hidden",display:"block"};function ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=me.apply(void 0,t):function(e,t,n){var o,r={},i=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}(r,ye,(function(){o=me.apply(void 0,t)})),o}function we(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ce(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ve["outer".concat(t)]=function(t,n){return t&&ge(t,e,n?0:de)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ve[e]=function(t,o){var r=o;return void 0!==r?t?(se(t)&&(r+=he(t,["padding","border"],n)),z(t,e,r)):void 0:t&&ge(t,e,pe)}}));var be={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return q(e);!function(e,t,n){if(n.ignoreShake){var o=q(e),r=o.left.toFixed(0),i=o.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(r===a&&i===u)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&$()in document.body.style?ue(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:Q,each:ce,css:z,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:we,getWindowScrollLeft:function(e){return X(e)},getWindowScrollTop:function(e){return G(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)be.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};we(be,ve);var Ae=be.getParent;function Ee(e){if(be.isWindow(e)||9===e.nodeType)return null;var t,n=be.getDocument(e).body,o=be.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:Ae(e);for(t=Ae(e);t&&t!==n&&9!==t.nodeType;t=Ae(t))if("static"!==(o=be.css(t,"position")))return t;return null}var Oe=be.getParent;function Me(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Ee(e),r=be.getDocument(e),i=r.defaultView||r.parentWindow,a=r.body,u=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===u||"visible"===be.css(o,"overflow")){if(o===a||o===u)break}else{var c=be.offset(o);c.left+=o.clientLeft,c.top+=o.clientTop,n.top=Math.max(n.top,c.top),n.right=Math.min(n.right,c.left+o.clientWidth),n.bottom=Math.min(n.bottom,c.top+o.clientHeight),n.left=Math.max(n.left,c.left)}o=Ee(o)}var s=null;be.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===be.css(e,"position")&&(e.style.position="fixed"));var l=be.getWindowScrollLeft(i),p=be.getWindowScrollTop(i),f=be.viewportWidth(i),d=be.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=s),t||function(e){if(be.isWindow(e)||9===e.nodeType)return!1;var t=be.getDocument(e),n=t.body,o=null;for(o=Oe(e);o&&o!==n&&o!==t;o=Oe(o))if("fixed"===be.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,p),n.right=Math.min(n.right,l+f),n.bottom=Math.min(n.bottom,p+d);else{var y=Math.max(h,l+f);n.right=Math.min(n.right,y);var g=Math.max(v,p+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Se(e){var t,n,o;if(be.isWindow(e)||9===e.nodeType){var r=be.getWindow(e);t={left:be.getWindowScrollLeft(r),top:be.getWindowScrollTop(r)},n=be.viewportWidth(r),o=be.viewportHeight(r)}else t=be.offset(e),n=be.outerWidth(e),o=be.outerHeight(e);return t.width=n,t.height=o,t}function Ce(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:u}}function xe(e,t,n,o,r){var i=Ce(t,n[1]),a=Ce(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+o[0]-r[0]),top:Math.round(e.top-u[1]+o[1]-r[1])}}function Te(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Pe(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function _e(e,t,n){var o=[];return be.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function ke(e,t){return e[t]=-e[t],e}function De(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ne(e,t){e[0]=De(e[0],t.width),e[1]=De(e[1],t.height)}function Re(e,t,n,o){var r=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,c=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,p=Me(c,!(!(u=u||{})||!u.alwaysByViewport)),f=Se(c);Ne(i,f),Ne(a,t);var d=xe(f,t,r,i,a),h=be.merge(f,d);if(p&&(u.adjustX||u.adjustY)&&o){if(u.adjustX&&Te(d,f,p)){var v=_e(r,/[lr]/gi,{l:"r",r:"l"}),m=ke(i,0),y=ke(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(xe(f,t,v,m,y),f,p)||(l=1,r=v,i=m,a=y)}if(u.adjustY&&Pe(d,f,p)){var g=_e(r,/[tb]/gi,{t:"b",b:"t"}),w=ke(i,1),b=ke(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(xe(f,t,g,w,b),f,p)||(l=1,r=g,i=w,a=b)}l&&(d=xe(f,t,r,i,a),be.mix(h,d));var A=Te(d,f,p),E=Pe(d,f,p);if(A||E){var O=r;A&&(O=_e(r,/[lr]/gi,{l:"r",r:"l"})),E&&(O=_e(r,/[tb]/gi,{t:"b",b:"t"})),r=O,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=u.adjustX&&A,s.adjustY=u.adjustY&&E,(s.adjustX||s.adjustY)&&(h=function(e,t,n,o){var r=be.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),be.mix(r,i)}(d,f,p,s))}return h.width!==f.width&&be.css(c,"width",be.width(c)+h.width-f.width),h.height!==f.height&&be.css(c,"height",be.height(c)+h.height-f.height),be.offset(c,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:s}}function Le(e,t,n){var o=n.target||t,r=Se(o),i=!function(e,t){var n=Me(e,t),o=Se(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Re(e,r,n,i)}Le.__getOffsetParent=Ee,Le.__getVisibleRectForElement=Me;var je=n(43210),He=n(42467),Ie=n(30981);var $e=n(43591);function Fe(e,t){var n=null,o=null;var r=new $e.default((function(e){var r=(0,M.A)(e,1)[0].target;if(document.documentElement.contains(r)){var i=r.getBoundingClientRect(),a=i.width,u=i.height,c=Math.floor(a),s=Math.floor(u);n===c&&o===s||Promise.resolve().then((function(){t({width:c,height:s})})),n=c,o=s}}));return e&&r.observe(e),function(){r.disconnect()}}function Ve(e){return"function"!=typeof e?null:e()}function Ue(e){return"object"===(0,k.A)(e)&&e?e:null}var We=function(e,t){var n=e.children,o=e.disabled,r=e.target,i=e.align,a=e.onAlign,u=e.monitorWindowResize,c=e.monitorBufferTime,s=void 0===c?0:c,l=f().useRef({}),p=f().useRef(),d=f().Children.only(n),h=f().useRef({});h.current.disabled=o,h.current.target=r,h.current.align=i,h.current.onAlign=a;var v=function(e,t){var n=f().useRef(!1),o=f().useRef(null);function r(){window.clearTimeout(o.current)}return[function i(a){if(r(),n.current&&!0!==a)o.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,r()}]}((function(){var e=h.current,t=e.disabled,n=e.target,o=e.align,r=e.onAlign,i=p.current;if(!t&&n&&i){var a,u=Ve(n),c=Ue(n);l.current.element=u,l.current.point=c,l.current.align=o;var s=document.activeElement;return u&&(0,He.A)(u)?a=Le(i,u,o):c&&(a=function(e,t,n){var o,r,i=be.getDocument(e),a=i.defaultView||i.parentWindow,u=be.getWindowScrollLeft(a),c=be.getWindowScrollTop(a),s=be.viewportWidth(a),l=be.viewportHeight(a),p={left:o="pageX"in t?t.pageX:u+t.clientX,top:r="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},f=o>=0&&o<=u+s&&r>=0&&r<=c+l,d=[n.points[0],"cc"];return Re(e,p,N(N({},n),{},{points:d}),f)}(i,c,o)),function(e,t){e!==document.activeElement&&(0,m.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),r&&a&&r(i,a),!0}return!1}),s),y=(0,M.A)(v,2),b=y[0],A=y[1],E=f().useState(),O=(0,M.A)(E,2),S=O[0],C=O[1],x=f().useState(),T=(0,M.A)(x,2),P=T[0],_=T[1];return(0,Ie.A)((function(){C(Ve(r)),_(Ue(r))})),f().useEffect((function(){var e,t;l.current.element===S&&((e=l.current.point)===(t=P)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,je.A)(l.current.align,i)||b()})),f().useEffect((function(){return Fe(p.current,b)}),[p.current]),f().useEffect((function(){return Fe(S,b)}),[S]),f().useEffect((function(){o?A():b()}),[o]),f().useEffect((function(){if(u)return(0,w.A)(window,"resize",b).remove}),[u]),f().useEffect((function(){return function(){A()}}),[]),f().useImperativeHandle(t,(function(){return{forceAlign:function(){return b(!0)}}})),f().isValidElement(d)&&(d=f().cloneElement(d,{ref:(0,g.K4)(d.ref,p)})),d},Ye=f().forwardRef(We);Ye.displayName="Align";const Be=Ye;var ze=n(90675),Ke=n(10467),Xe=n(1233),Ge=["measure","alignPre","align",null,"motion"];var qe=p.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,u=e.style,c=e.children,s=e.zIndex,l=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,h=e.align,m=e.point,y=e.getRootDomNode,g=e.getClassNameFromAlign,w=e.onAlign,b=e.onMouseEnter,A=e.onMouseLeave,O=e.onMouseDown,S=e.onTouchStart,C=e.onClick,P=(0,p.useRef)(),_=(0,p.useRef)(),k=(0,p.useState)(),D=(0,M.A)(k,2),N=D[0],R=D[1],L=function(e){var t=p.useState({width:0,height:0}),n=(0,M.A)(t,2),o=n[0],r=n[1];return[p.useMemo((function(){var t={};if(e){var n=o.width,r=o.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),i=o.width,a=o.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),r({width:t,height:n})}]}(l),j=(0,M.A)(L,2),H=j[0],I=j[1];var $=function(e,t){var n=(0,Xe.A)(null),o=(0,M.A)(n,2),r=o[0],i=o[1],a=(0,p.useRef)();function u(e){i(e,!0)}function c(){v.A.cancel(a.current)}return(0,p.useEffect)((function(){u("measure")}),[e]),(0,p.useEffect)((function(){"measure"===r&&t(),r&&(a.current=(0,v.A)((0,Ke.A)((0,ze.A)().mark((function e(){var t,n;return(0,ze.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ge.indexOf(r),(n=Ge[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,p.useEffect)((function(){return function(){c()}}),[]),[r,function(e){c(),a.current=(0,v.A)((function(){u((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&I(y())})),F=(0,M.A)($,2),V=F[0],U=F[1],W=(0,p.useState)(0),Y=(0,M.A)(W,2),B=Y[0],z=Y[1],K=(0,p.useRef)();function X(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function G(e,t){var n=g(t);N!==n&&R(n),z((function(e){return e+1})),"align"===V&&(null==w||w(e,t))}(0,Ie.A)((function(){"alignPre"===V&&z(0)}),[V]),(0,Ie.A)((function(){"align"===V&&(B<3?X():U((function(){var e;null===(e=K.current)||void 0===e||e.call(K)})))}),[B]);var q=(0,o.A)({},T(e));function Q(){return new Promise((function(e){K.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=q[e];q[e]=function(e,n){return U(),null==t?void 0:t(e,n)}})),p.useEffect((function(){q.motionName||"motion"!==V||U()}),[q.motionName,V]),p.useImperativeHandle(t,(function(){return{forceAlign:X,getElement:function(){return _.current}}}));var J=(0,o.A)((0,o.A)({},H),{},{zIndex:s,opacity:"motion"!==V&&"stable"!==V&&n?0:void 0,pointerEvents:n||"stable"===V?void 0:"none"},u),Z=!0;null==h||!h.points||"align"!==V&&"stable"!==V||(Z=!1);var ee=c;return p.Children.count(c)>1&&(ee=p.createElement("div",{className:"".concat(i,"-content")},c)),p.createElement(x.A,(0,r.A)({visible:n,ref:_,leavedClassName:"".concat(i,"-hidden")},q,{onAppearPrepare:Q,onEnterPrepare:Q,removeOnLeave:f,forceRender:d}),(function(e,t){var n=e.className,r=e.style,u=E()(i,a,N,n);return p.createElement(Be,{target:m||y,key:"popup",ref:P,monitorWindowResize:!0,disabled:Z,align:h,onAlign:G},p.createElement("div",{ref:t,className:u,onMouseEnter:b,onMouseLeave:A,onMouseDownCapture:O,onTouchStartCapture:S,onClick:C,style:(0,o.A)((0,o.A)({},r),J)},ee))}))}));qe.displayName="PopupInner";const Qe=qe;var Je=p.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,u=e.children,c=e.mobile,s=(c=void 0===c?{}:c).popupClassName,l=c.popupStyle,f=c.popupMotion,d=void 0===f?{}:f,h=c.popupRender,v=e.onClick,m=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var y=(0,o.A)({zIndex:a},l),g=u;return p.Children.count(u)>1&&(g=p.createElement("div",{className:"".concat(n,"-content")},u)),h&&(g=h(g)),p.createElement(x.A,(0,r.A)({visible:i,ref:m,removeOnLeave:!0},d),(function(e,t){var r=e.className,i=e.style,a=E()(n,s,r);return p.createElement("div",{ref:t,className:a,onClick:v,style:(0,o.A)((0,o.A)({},i),y)},g)}))}));Je.displayName="MobilePopupInner";const Ze=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,S.A)(e,et),u=(0,p.useState)(n),c=(0,M.A)(u,2),s=c[0],l=c[1],f=(0,p.useState)(!1),d=(0,M.A)(f,2),h=d[0],v=d[1],m=(0,o.A)((0,o.A)({},a),{},{visible:s});(0,p.useEffect)((function(){l(n),n&&i&&v((0,C.A)())}),[n,i]);var y=h?p.createElement(Ze,(0,r.A)({},m,{mobile:i,ref:t})):p.createElement(Qe,(0,r.A)({},m,{ref:t}));return p.createElement("div",null,p.createElement(P,m),y)}));tt.displayName="Popup";const nt=tt;const ot=p.createContext(null);function rt(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ut=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ct=(st=b.A,lt=function(e){(0,c.A)(n,e);var t=(0,s.A)(n);function n(e){var o,a;return(0,i.A)(this,n),o=t.call(this,e),(0,l.A)((0,u.A)(o),"popupRef",p.createRef()),(0,l.A)((0,u.A)(o),"triggerRef",p.createRef()),(0,l.A)((0,u.A)(o),"portalContainer",void 0),(0,l.A)((0,u.A)(o),"attachId",void 0),(0,l.A)((0,u.A)(o),"clickOutsideHandler",void 0),(0,l.A)((0,u.A)(o),"touchOutsideHandler",void 0),(0,l.A)((0,u.A)(o),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,u.A)(o),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,u.A)(o),"mouseDownTimeout",void 0),(0,l.A)((0,u.A)(o),"focusTime",void 0),(0,l.A)((0,u.A)(o),"preClickTime",void 0),(0,l.A)((0,u.A)(o),"preTouchTime",void 0),(0,l.A)((0,u.A)(o),"delayTimer",void 0),(0,l.A)((0,u.A)(o),"hasPopupMouseDown",void 0),(0,l.A)((0,u.A)(o),"onMouseEnter",(function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.A)((0,u.A)(o),"onMouseMove",(function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)})),(0,l.A)((0,u.A)(o),"onMouseLeave",(function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(o),"onPopupMouseEnter",(function(){o.clearDelayTimer()})),(0,l.A)((0,u.A)(o),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,m.A)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(o),"onFocus",(function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))})),(0,l.A)((0,u.A)(o),"onMouseDown",(function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()})),(0,l.A)((0,u.A)(o),"onTouchStart",(function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()})),(0,l.A)((0,u.A)(o),"onBlur",(function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)})),(0,l.A)((0,u.A)(o),"onContextMenu",(function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)})),(0,l.A)((0,u.A)(o),"onContextMenuClose",(function(){o.isContextMenuToShow()&&o.close()})),(0,l.A)((0,u.A)(o),"onClick",(function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)})),(0,l.A)((0,u.A)(o),"onPopupMouseDown",(function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,u.A)(o),"onDocumentClick",(function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),r=o.getPopupDomNode();(0,m.A)(n,t)&&!o.isContextMenuOnly()||(0,m.A)(r,t)||o.hasPopupMouseDown||o.close()}})),(0,l.A)((0,u.A)(o),"getRootDomNode",(function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,y.Ay)(o.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,u.A)(o))})),(0,l.A)((0,u.A)(o),"getPopupClassNameFromAlign",(function(e){var t=[],n=o.props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,c=n.getPopupClassNameFromAlign;return r&&i&&t.push(function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u=i[a];if(O(e[u].points,r,o))return"".concat(t,"-placement-").concat(u)}return""}(i,a,e,u)),c&&t.push(c(e)),t.join(" ")})),(0,l.A)((0,u.A)(o),"getComponent",(function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,u=e.popupMotion,c=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,f=e.mask,d=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,y=e.popup,g=e.stretch,w=e.alignPoint,b=e.mobile,A=e.forceRender,E=e.onPopupClick,O=o.state,M=O.popupVisible,S=O.point,C=o.getPopupAlign(),x={};return o.isMouseEnterToShow()&&(x.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(x.onMouseLeave=o.onPopupMouseLeave),x.onMouseDown=o.onPopupMouseDown,x.onTouchStart=o.onPopupMouseDown,p.createElement(nt,(0,r.A)({prefixCls:t,destroyPopupOnHide:n,visible:M,point:w&&S,className:i,align:C,onAlign:a,animation:c,getClassNameFromAlign:o.getPopupClassNameFromAlign},x,{stretch:g,getRootDomNode:o.getRootDomNode,style:l,mask:f,zIndex:m,transitionName:s,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:o.popupRef,motion:u,mobile:b,forceRender:A,onClick:E}),"function"==typeof y?y():y)})),(0,l.A)((0,u.A)(o),"attachParent",(function(e){v.A.cancel(o.attachId);var t,n=o.props,r=n.getPopupContainer,i=n.getDocument,a=o.getRootDomNode();r?(a||0===r.length)&&(t=r(a)):t=i(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,v.A)((function(){o.attachParent(e)}))})),(0,l.A)((0,u.A)(o),"getContainer",(function(){if(!o.portalContainer){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.portalContainer=e}return o.attachParent(o.portalContainer),o.portalContainer})),(0,l.A)((0,u.A)(o),"setPoint",(function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.A)((0,u.A)(o),"handlePortalUpdate",(function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)})),(0,l.A)((0,u.A)(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:a,popupVisible:a},ut.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,w.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,w.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,w.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,w.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return(0,o.A)((0,o.A)({},r),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,r=1e3*t;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,i),o.clearDelayTimer()}),r)}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 o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,i=t.alignPoint,a=t.className,u=t.autoDestroy,c=p.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=E()(c&&c.props&&c.props.className,a);l&&(s.className=l);var f=(0,o.A)({},s);(0,g.f3)(c)&&(f.ref=(0,g.K4)(this.triggerRef,c.ref));var d,h=p.cloneElement(c,f);return(e||this.popupRef.current||r)&&(d=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&u&&(d=null),p.createElement(ot.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(p.Component),(0,l.A)(lt,"contextType",ot),(0,l.A)(lt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:rt,afterPopupVisibleChange:rt,onPopupAlign:rt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),lt);var st,lt},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(69514),r=n.n(o);function i(e,t,n,o){var i=r().unstable_batchedUpdates?function(e){r().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}},20998:(e,t,n)=>{"use strict";function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>o})},54808:(e,t,n)=>{"use strict";function o(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>o})},66588:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var o=n(82284),r=n(39155),i=n.n(r),a=n(69514),u=n.n(a);function c(e){return e instanceof HTMLElement||e instanceof SVGElement}function s(e){var t,n=function(e){return e&&"object"===(0,o.A)(e)&&c(e.nativeElement)?e.nativeElement:c(e)?e:null}(e);return n||(e instanceof i().Component?null===(t=u().findDOMNode)||void 0===t?void 0:t.call(u(),e):null)}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1}},16928:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o={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>=o.F1&&t<=o.F12)return!1;switch(t){case o.ALT:case o.CAPS_LOCK:case o.CONTEXT_MENU:case o.CTRL:case o.DOWN:case o.END:case o.ESC:case o.HOME:case o.INSERT:case o.LEFT:case o.MAC_FF_META:case o.META:case o.NUMLOCK:case o.NUM_CENTER:case o.PAGE_DOWN:case o.PAGE_UP:case o.PAUSE:case o.PRINT_SCREEN:case o.RIGHT:case o.SHIFT:case o.UP:case o.WIN_KEY:case o.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=o.ZERO&&e<=o.NINE)return!0;if(e>=o.NUM_ZERO&&e<=o.NUM_MULTIPLY)return!0;if(e>=o.A&&e<=o.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case o.SPACE:case o.QUESTION_MARK:case o.NUM_PLUS:case o.NUM_MINUS:case o.NUM_PERIOD:case o.NUM_DIVISION:case o.SEMICOLON:case o.DASH:case o.EQUALS:case o.COMMA:case o.PERIOD:case o.SLASH:case o.APOSTROPHE:case o.SINGLE_QUOTE:case o.OPEN_SQUARE_BRACKET:case o.BACKSLASH:case o.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const r=o},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(39155),r=n(69514),i=n.n(r),a=n(20998);const u=(0,o.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,u=e.children,c=(0,o.useRef)(),s=(0,o.useRef)();(0,o.useImperativeHandle)(t,(function(){return{}}));var l=(0,o.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=r(),c.current=s.current.parentNode,l.current=!0),(0,o.useEffect)((function(){null==n||n(e)})),(0,o.useEffect)((function(){return null===s.current.parentNode&&null!==c.current&&c.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(u,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(39155),r=(0,n(20998).A)()?o.useLayoutEffect:o.useEffect,i=function(e,t){var n=o.useRef(!0);r((function(){return e(n.current)}),t),r((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3453),r=n(39155);function i(e){var t=r.useRef(!1),n=r.useState(e),i=(0,o.A)(n,2),a=i[0],u=i[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||u(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(t);if((0,r.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(t===a)return!0;if(n&&u>1)return!1;i.add(t);var s=u+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],a[l],s))return!1;return!0}if(t&&a&&"object"===(0,o.A)(t)&&"object"===(0,o.A)(a)){var p=Object.keys(t);return p.length===Object.keys(a).length&&p.every((function(n){return e(t[n],a[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(o=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function u(e){a.delete(e)}var c=function(e){var t=i+=1;return function n(r){if(0===r)u(t),e();else{var i=o((function(){n(r-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};c.cancel=function(e){var t=a.get(e);return u(e),r(t)};const s=c},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>u,Xf:()=>a,f3:()=>c});var o=n(82284),r=n(39155),i=n(44363),a=(n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,o.A)(e)&&e&&"current"in e&&(e.current=t)}),u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){a(t,e)}))}},c=function(e){var t,n,o=(0,i.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===i.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===i.ForwardRef)};function s(e){return(0,r.isValidElement)(e)&&!(0,i.isFragment)(e)}Number(r.version.split(".")[0])},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var o={},r=[];function i(e,t){}function a(e,t){}function u(e,t,n){t||o[n]||(e(!1,n),o[n]=!0)}function c(e,t){u(i,e,t)}c.preMessage=function(e){r.push(e)},c.resetWarned=function(){o={}},c.noteOnce=function(e,t){u(a,e,t)};const s=c},22799:(e,t)=>{"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
|
|
3
2
|
/**
|
|
4
3
|
* @license React
|
|
5
4
|
* react-is.production.min.js
|
|
@@ -8,9 +7,10 @@ ze=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Objec
|
|
|
8
7
|
*
|
|
9
8
|
* This source code is licensed under the MIT license found in the
|
|
10
9
|
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case u:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case p:case v:case h:case c:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=p,t.isMemo=function(e){return y(e)===h}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},43591:(e,t,n)=>{"use strict";n.d(t,{default:()=>M});var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!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),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,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,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,s=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,o=!1,r=0;function i(){n&&(n=!1,e()),o&&c()}function u(){a(i)}function c(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(u,t);r=e}return c}(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(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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(){r&&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;u.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}(),l=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=g(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var o=p(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=d(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,u=d(o.width),c=d(o.height);if("border-box"===o.boxSizing&&(Math.round(u+i)!==t&&(u-=h(o,"left","right")+i),Math.round(c+a)!==n&&(c-=h(o,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var s=Math.round(u+i)-t,l=Math.round(c+a)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(l)&&(c-=l)}return g(r.left,r.top,u,c)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?m(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):v(e):f}function g(e,t,n,o){return{x:e,y:t,width:n,height:o}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(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}(),b=function(e,t){var n,o,r,i,a,u,c,s=(o=(n=t).x,r=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(u.prototype),l(c,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),c);l(this,{target:e,contentRect:s})},A=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"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 p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(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 p(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 b(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}(),E="undefined"!=typeof WeakMap?new WeakMap:new o,O=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=s.getInstance(),o=new A(t,n,this);E.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));const M=void 0!==i.ResizeObserver?i.ResizeObserver:O},81173:(e,t,n)=>{var o=n(85072),r=n(26468);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},85072:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},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 c(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],c=t.base?i[0]+t.base:i[0],s=n[c]||0,l="".concat(c," ").concat(s);n[c]=s+1;var p=u(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:m(f,t),references:1}),o.push(l)}return o}function s(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[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,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=p(t,r);else{var i=document.createTextNode(r),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 o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,v=0;function m(e,t){var n,o,r;if(t.singleton){var i=v++;n=h||(h=s(t)),o=f.bind(null,n,i,!1),r=f.bind(null,n,i,!0)}else n=s(t),o=d.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=u(n[o]);a[r].references--}for(var i=c(e,t),s=0;s<n.length;s++){var l=u(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},6564:(e,t,n)=>{"use strict";n.d(t,{l5:()=>r});n(74353),n(25400);function o(e,t){var n,r,i,a=e.parentNode,u=(null==a||null===(n=a.nodeName)||void 0===n?void 0:n.toLowerCase())||"";if(["html","body","#document"].includes(u))return null;if(r=a,null!=(i=window.HTMLElement)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](r):r instanceof i){var c=window.getComputedStyle(a).position;if(new RegExp(t).test(c))return a}return o(a,t)}function r(e,t){var n=document.getElementsByClassName("".concat(t))[0];if(n){var r=o(n,e?"fixed":"absolute");r&&(e?(r.style.position="absolute",r.style.left="0",r.style.top="0"):(r.style.position="fixed",r.style.left="-9999px",r.style.top="-9999px"))}}},14552:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,n:()=>o});var o="paraui-v4",r="component"},25400:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(39155),r=n.n(o);function i(e){var t,n,o,r,a,u,c,s,l,p=e.parentNode||e.ownerDocument,f=(null==p||null===(t=p.nodeName)||void 0===t?void 0:t.toLowerCase())||"";return["html","body","#document"].includes(f)?null==e||null===(n=e.ownerDocument)||void 0===n?void 0:n.body:(s=p,(null!=(l=window.HTMLElement)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](s):s instanceof l)&&(o=p,r=window.getComputedStyle(o),a=r.overflow,u=r.overflowX,c=r.overflowY,/auto|scroll|overlay/.test(a+c+u))?p:i(p))}function a(e,t){var n=r().useRef();return r().useEffect((function(){return function(){n.current&&(n.current.style.position="")}}),[]),function(o){var r;if(t)r=t(o)||document.body;else{var a,u,c,s,l=null===(u=e.current)||void 0===u||null===(a=u.getRootDomNode)||void 0===a?void 0:a.call(u);if(l)(r=i(l)).scrollHeight<=r.clientHeight&&(r=document.body);else r=document.body;if("body"!==(null===(c=r.nodeName)||void 0===c?void 0:c.toLowerCase()))"static"===(null===(s=window.getComputedStyle(r))||void 0===s?void 0:s.position)&&(r.style.position="relative");n.current=r}return r}}},32663:e=>{"use strict";e.exports=n},39155:t=>{"use strict";t.exports=e},69514:e=>{"use strict";e.exports=t},46942:(e,t)=>{var n;
|
|
10
|
+
*/function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case u:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case p:case v:case h:case c:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=p,t.isFragment=function(e){return y(e)===i},t.isMemo=function(e){return y(e)===h}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},43591:(e,t,n)=>{"use strict";n.d(t,{default:()=>M});var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!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),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,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,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,s=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,o=!1,r=0;function i(){n&&(n=!1,e()),o&&c()}function u(){a(i)}function c(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(u,t);r=e}return c}(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(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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(){r&&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;u.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}(),l=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=g(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var o=p(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=d(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,u=d(o.width),c=d(o.height);if("border-box"===o.boxSizing&&(Math.round(u+i)!==t&&(u-=h(o,"left","right")+i),Math.round(c+a)!==n&&(c-=h(o,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var s=Math.round(u+i)-t,l=Math.round(c+a)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(l)&&(c-=l)}return g(r.left,r.top,u,c)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?m(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):v(e):f}function g(e,t,n,o){return{x:e,y:t,width:n,height:o}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(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}(),b=function(e,t){var n,o,r,i,a,u,c,s=(o=(n=t).x,r=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(u.prototype),l(c,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),c);l(this,{target:e,contentRect:s})},A=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"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 p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(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 p(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 b(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}(),E="undefined"!=typeof WeakMap?new WeakMap:new o,O=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=s.getInstance(),o=new A(t,n,this);E.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));const M=void 0!==i.ResizeObserver?i.ResizeObserver:O},81173:(e,t,n)=>{var o=n(85072),r=n(26468);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},85072:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},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 c(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],c=t.base?i[0]+t.base:i[0],s=n[c]||0,l="".concat(c," ").concat(s);n[c]=s+1;var p=u(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:m(f,t),references:1}),o.push(l)}return o}function s(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[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,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=p(t,r);else{var i=document.createTextNode(r),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 o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,v=0;function m(e,t){var n,o,r;if(t.singleton){var i=v++;n=h||(h=s(t)),o=f.bind(null,n,i,!1),r=f.bind(null,n,i,!0)}else n=s(t),o=d.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=u(n[o]);a[r].references--}for(var i=c(e,t),s=0;s<n.length;s++){var l=u(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},6564:(e,t,n)=>{"use strict";n.d(t,{l5:()=>r});n(74353),n(25400);function o(e,t){var n,r,i,a=e.parentNode,u=(null==a||null===(n=a.nodeName)||void 0===n?void 0:n.toLowerCase())||"";if(["html","body","#document"].includes(u))return null;if(r=a,null!=(i=window.HTMLElement)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](r):r instanceof i){var c=window.getComputedStyle(a).position;if(new RegExp(t).test(c))return a}return o(a,t)}function r(e,t){var n=document.getElementsByClassName("".concat(t))[0];if(n){var r=o(n,e?"fixed":"absolute");r&&(e?(r.style.position="absolute",r.style.left="0",r.style.top="0"):(r.style.position="fixed",r.style.left="-9999px",r.style.top="-9999px"))}}},14552:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,n:()=>o});var o="paraui-v4",r="component"},25400:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(39155),r=n.n(o);function i(e){var t,n,o,r,a,u,c,s,l,p=e.parentNode||e.ownerDocument,f=(null==p||null===(t=p.nodeName)||void 0===t?void 0:t.toLowerCase())||"";return["html","body","#document"].includes(f)?null==e||null===(n=e.ownerDocument)||void 0===n?void 0:n.body:(s=p,(null!=(l=window.HTMLElement)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?l[Symbol.hasInstance](s):s instanceof l)&&(o=p,r=window.getComputedStyle(o),a=r.overflow,u=r.overflowX,c=r.overflowY,/auto|scroll|overlay/.test(a+c+u))?p:i(p))}function a(e,t){var n=r().useRef();return r().useEffect((function(){return function(){n.current&&(n.current.style.position="")}}),[]),function(o){var r;if(t)r=t(o)||document.body;else{var a,u,c,s,l=null===(u=e.current)||void 0===u||null===(a=u.getRootDomNode)||void 0===a?void 0:a.call(u);if(l)(r=i(l)).scrollHeight<=r.clientHeight&&(r=document.body);else r=document.body;if("body"!==(null===(c=r.nodeName)||void 0===c?void 0:c.toLowerCase()))"static"===(null===(s=window.getComputedStyle(r))||void 0===s?void 0:s.position)&&(r.style.position="relative");n.current=r}return r}}},32663:e=>{"use strict";e.exports=n},39155:t=>{"use strict";t.exports=e},69514:e=>{"use strict";e.exports=t},46942:(e,t)=>{var n;
|
|
12
11
|
/*!
|
|
13
12
|
Copyright (c) 2018 Jed Watson.
|
|
14
13
|
Licensed under the MIT License (MIT), see
|
|
15
14
|
http://jedwatson.github.io/classnames
|
|
16
|
-
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{A:()=>o})},96369:(e,t,n)=>{"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,{A:()=>o})},9417:(e,t,n)=>{"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>o})},10467:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function u(e){o(a,r,i,u,c,"next",e)}function c(e){o(a,r,i,u,c,"throw",e)}u(void 0)}))}}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>o})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(49922);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,(0,o.A)(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(53954),r=n(52176),i=n(56822);function a(e){var t=(0,r.A)();return function(){var n,r=(0,o.A)(e);if(t){var a=(0,o.A)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(49922);function r(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{A:()=>o})},53954:(e,t,n)=>{"use strict";function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{A:()=>o})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(63662);function r(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,o.A)(e,t)}},52176:(e,t,n)=>{"use strict";function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}n.d(t,{A:()=>o})},6986:(e,t,n)=>{"use strict";function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(u.push(o.value),u.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return u}}n.d(t,{A:()=>o})},76562:(e,t,n)=>{"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>o})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(64467);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(98587);function r(e,t){if(null==e)return{};var n,r,i=(0,o.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function o(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}n.d(t,{A:()=>o})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(9417);function i(e,t){if(t&&("object"===(0,o.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.A)(e)}},63662:(e,t,n)=>{"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}n.d(t,{A:()=>o})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(96369),r=n(6986),i=n(27800),a=n(76562);function u(e,t){return(0,o.A)(e)||(0,r.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(82284);function r(e,t){if("object"!=(0,o.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,o.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(92327);function i(e){var t=(0,r.A)(e,"string");return"symbol"==(0,o.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}n.d(t,{A:()=>o})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(43145);function r(e,t){if(e){if("string"==typeof e)return(0,o.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.A)(e,t):void 0}}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Dropdown:()=>P,default:()=>_});var e=i(39155),t=i.n(e),n=i(89379),o=i(64467),r=i(3453),u=i(80045),c=i(1748),s=i(46942),l=i.n(s),p={adjustX:1,adjustY:1},f=[0,0];const d={topLeft:{points:["bl","tl"],overflow:p,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:p,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:p,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:p,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:p,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:p,offset:[0,4],targetOffset:f}};var h=i(16928),v=i(25371),m=h.A.ESC,y=h.A.TAB;var g=i(8719),w=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function b(t,i){var a=t.arrow,s=void 0!==a&&a,p=t.prefixCls,f=void 0===p?"rc-dropdown":p,h=t.transitionName,b=t.animation,A=t.align,E=t.placement,O=void 0===E?"bottomLeft":E,M=t.placements,S=void 0===M?d:M,C=t.getPopupContainer,x=t.showAction,T=t.hideAction,P=t.overlayClassName,_=t.overlayStyle,k=t.visible,D=t.trigger,N=void 0===D?["hover"]:D,R=t.autoFocus,L=(0,u.A)(t,w),j=e.useState(),H=(0,r.A)(j,2),I=H[0],$=H[1],F="visible"in t?k:I,V=e.useRef(null);e.useImperativeHandle(i,(function(){return V.current}));var U=e.useRef(null),W="".concat(f,"-menu");!function(t){var n=t.visible,o=t.setTriggerVisible,r=t.triggerRef,i=t.menuRef,a=t.onVisibleChange,u=t.autoFocus,c=e.useRef(!1),s=function(){var e,t,i,u;n&&r.current&&(null===(e=r.current)||void 0===e||null===(t=e.triggerRef)||void 0===t||null===(i=t.current)||void 0===i||null===(u=i.focus)||void 0===u||u.call(i),o(!1),"function"==typeof a&&a(!1))},l=function(){var e,t;null===(e=i.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),c.current=!0},p=function(e){var t;switch(e.keyCode){case m:s();break;case y:!c.current&&(null===(t=i.current)||void 0===t?void 0:t.focus)?(e.preventDefault(),l()):s()}};e.useEffect((function(){return n?(window.addEventListener("keydown",p),u&&(0,v.A)(l,3),function(){window.removeEventListener("keydown",p),c.current=!1}):function(){c.current=!1}}),[n])}({visible:F,setTriggerVisible:$,triggerRef:V,menuRef:U,onVisibleChange:t.onVisibleChange,autoFocus:R});var Y,B,z,K,X,G,q=function(){var e=t.overlay;return"function"==typeof e?e():e},Q=function(e){var n=t.onOverlayClick,o=q().props;$(!1),n&&n(e),o.onClick&&o.onClick(e)},J=function(){var t,n=q(),r=(0,g.K4)(U,n.ref),i=(t={prefixCls:W},(0,o.A)(t,"data-dropdown-inject",!0),(0,o.A)(t,"onClick",Q),(0,o.A)(t,"ref",(0,g.f3)(n)?r:void 0),t);return"string"==typeof n.type&&(delete i.prefixCls,delete i["data-dropdown-inject"]),e.createElement(e.Fragment,null,s&&e.createElement("div",{className:"".concat(f,"-arrow")}),e.cloneElement(n,i))},Z=T;return Z||-1===N.indexOf("contextMenu")||(Z=["click"]),e.createElement(c.A,(0,n.A)((0,n.A)({builtinPlacements:S},L),{},{prefixCls:f,ref:V,popupClassName:l()(P,(0,o.A)({},"".concat(f,"-show-arrow"),s)),popupStyle:_,action:N,showAction:x,hideAction:Z||[],popupPlacement:O,popupAlign:A,popupTransitionName:h,popupAnimation:b,popupVisible:F,stretch:(X=t.minOverlayWidthMatchTrigger,G=t.alignPoint,("minOverlayWidthMatchTrigger"in t?X:!G)?"minWidth":""),popup:"function"==typeof t.overlay?J:J(),onPopupVisibleChange:function(e){var n=t.onVisibleChange;$(e),"function"==typeof n&&n(e)},getPopupContainer:C}),(B=t.children,z=B.props?B.props:{},K=l()(z.className,void 0!==(Y=t.openClassName)?Y:"".concat(f,"-open")),F&&B?e.cloneElement(B,{className:K}):B))}const A=e.forwardRef(b);var E=i(14552),O=i(25400),M=i(20053),S=i(6564),C=i(32663);i(81173);function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(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 o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var P=function(e){var n,o,r,i=t().useRef(),a=(0,O.A)(i,e.getPopupContainer),u=t().useRef((0,C.UUID)());return t().createElement(A,T(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){x(e,t,n[t])}))}return e}({},e),{prefixCls:"".concat(E.g,"-dropdown"),overlayClassName:(0,M.A)("".concat(E.n,"-dropdown"),e.overlayClassName,u.current),animation:"slide-up",align:{offset:(n=e.placement,null!==(r=null===(o={top:{offset:[0,-8]},topLeft:{offset:[0,-8]},topRight:{offset:[0,-8]},bottom:{offset:[0,8]},bottomRight:{offset:[0,8]},bottomLeft:{offset:[0,8]}}[n])||void 0===o?void 0:o.offset)&&void 0!==r?r:[0,0])},getPopupContainer:a,ref:i,onVisibleChange:function(t){var n;null===(n=e.onVisibleChange)||void 0===n||n.call(e,t),e.isolationPopupOnHide&&(0,S.l5)(t,u.current)}}),e.children)};P.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,trigger:["hover"],placement:"bottomRight",isolationPopupOnHide:!1};const _=P})(),a})()));
|
|
15
|
+
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{A:()=>o})},96369:(e,t,n)=>{"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,{A:()=>o})},9417:(e,t,n)=>{"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>o})},10467:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function u(e){o(a,r,i,u,c,"next",e)}function c(e){o(a,r,i,u,c,"throw",e)}u(void 0)}))}}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>o})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(49922);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,(0,o.A)(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(53954),r=n(52176),i=n(56822);function a(e){var t=(0,r.A)();return function(){var n,r=(0,o.A)(e);if(t){var a=(0,o.A)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(49922);function r(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{A:()=>o})},53954:(e,t,n)=>{"use strict";function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{A:()=>o})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(63662);function r(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,o.A)(e,t)}},52176:(e,t,n)=>{"use strict";function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}n.d(t,{A:()=>o})},6986:(e,t,n)=>{"use strict";function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(u.push(o.value),u.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return u}}n.d(t,{A:()=>o})},76562:(e,t,n)=>{"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>o})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(64467);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(98587);function r(e,t){if(null==e)return{};var n,r,i=(0,o.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function o(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}n.d(t,{A:()=>o})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(9417);function i(e,t){if(t&&("object"===(0,o.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.A)(e)}},90675:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(82284);function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
16
|
+
r=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var r=t&&t.prototype instanceof w?t:w,i=Object.create(r.prototype),u=new D(o||[]);return a(i,"_invoke",{value:T(e,n,u)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function w(){}function b(){}function A(){}var E={};p(E,c,(function(){return this}));var O=Object.getPrototypeOf,M=O&&O(O(N([])));M&&M!==n&&i.call(M,c)&&(E=M);var S=A.prototype=w.prototype=Object.create(E);function C(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(r,a,u,c){var s=d(e[r],e,a);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==(0,o.A)(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):t.resolve(p).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var r;a(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}})}function T(t,n,o){var r=h;return function(i,a){if(r===m)throw Error("Generator is already running");if(r===y){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var u=o.delegate;if(u){var c=P(u,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===h)throw r=y,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=m;var s=d(t,n,o);if("normal"===s.type){if(r=o.done?y:v,s.arg===g)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r=y,o.method="throw",o.arg=s.arg)}}}function P(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError((0,o.A)(t)+" is not iterable")}return b.prototype=A,a(S,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:b,configurable:!0}),b.displayName=p(A,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,p(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(x.prototype),p(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new x(f(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),p(S,l,"Generator"),p(S,c,(function(){return this})),p(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=N,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(o,r){return u.type="throw",u.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;k(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:N(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}},63662:(e,t,n)=>{"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}n.d(t,{A:()=>o})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(96369),r=n(6986),i=n(27800),a=n(76562);function u(e,t){return(0,o.A)(e)||(0,r.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(82284);function r(e,t){if("object"!=(0,o.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,o.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(82284),r=n(92327);function i(e){var t=(0,r.A)(e,"string");return"symbol"==(0,o.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}n.d(t,{A:()=>o})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(43145);function r(e,t){if(e){if("string"==typeof e)return(0,o.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.A)(e,t):void 0}}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Dropdown:()=>P,default:()=>_});var e=i(39155),t=i.n(e),n=i(89379),o=i(64467),r=i(3453),u=i(80045),c=i(34848),s=i(46942),l=i.n(s),p={adjustX:1,adjustY:1},f=[0,0];const d={topLeft:{points:["bl","tl"],overflow:p,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:p,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:p,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:p,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:p,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:p,offset:[0,4],targetOffset:f}};var h=i(16928),v=i(25371),m=h.A.ESC,y=h.A.TAB;var g=i(8719),w=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function b(t,i){var a=t.arrow,s=void 0!==a&&a,p=t.prefixCls,f=void 0===p?"rc-dropdown":p,h=t.transitionName,b=t.animation,A=t.align,E=t.placement,O=void 0===E?"bottomLeft":E,M=t.placements,S=void 0===M?d:M,C=t.getPopupContainer,x=t.showAction,T=t.hideAction,P=t.overlayClassName,_=t.overlayStyle,k=t.visible,D=t.trigger,N=void 0===D?["hover"]:D,R=t.autoFocus,L=(0,u.A)(t,w),j=e.useState(),H=(0,r.A)(j,2),I=H[0],$=H[1],F="visible"in t?k:I,V=e.useRef(null);e.useImperativeHandle(i,(function(){return V.current}));var U=e.useRef(null),W="".concat(f,"-menu");!function(t){var n=t.visible,o=t.setTriggerVisible,r=t.triggerRef,i=t.menuRef,a=t.onVisibleChange,u=t.autoFocus,c=e.useRef(!1),s=function(){var e,t,i,u;n&&r.current&&(null===(e=r.current)||void 0===e||null===(t=e.triggerRef)||void 0===t||null===(i=t.current)||void 0===i||null===(u=i.focus)||void 0===u||u.call(i),o(!1),"function"==typeof a&&a(!1))},l=function(){var e,t;null===(e=i.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),c.current=!0},p=function(e){var t;switch(e.keyCode){case m:s();break;case y:!c.current&&(null===(t=i.current)||void 0===t?void 0:t.focus)?(e.preventDefault(),l()):s()}};e.useEffect((function(){return n?(window.addEventListener("keydown",p),u&&(0,v.A)(l,3),function(){window.removeEventListener("keydown",p),c.current=!1}):function(){c.current=!1}}),[n])}({visible:F,setTriggerVisible:$,triggerRef:V,menuRef:U,onVisibleChange:t.onVisibleChange,autoFocus:R});var Y,B,z,K,X,G,q=function(){var e=t.overlay;return"function"==typeof e?e():e},Q=function(e){var n=t.onOverlayClick,o=q().props;$(!1),n&&n(e),o.onClick&&o.onClick(e)},J=function(){var t,n=q(),r=(0,g.K4)(U,n.ref),i=(t={prefixCls:W},(0,o.A)(t,"data-dropdown-inject",!0),(0,o.A)(t,"onClick",Q),(0,o.A)(t,"ref",(0,g.f3)(n)?r:void 0),t);return"string"==typeof n.type&&(delete i.prefixCls,delete i["data-dropdown-inject"]),e.createElement(e.Fragment,null,s&&e.createElement("div",{className:"".concat(f,"-arrow")}),e.cloneElement(n,i))},Z=T;return Z||-1===N.indexOf("contextMenu")||(Z=["click"]),e.createElement(c.A,(0,n.A)((0,n.A)({builtinPlacements:S},L),{},{prefixCls:f,ref:V,popupClassName:l()(P,(0,o.A)({},"".concat(f,"-show-arrow"),s)),popupStyle:_,action:N,showAction:x,hideAction:Z||[],popupPlacement:O,popupAlign:A,popupTransitionName:h,popupAnimation:b,popupVisible:F,stretch:(X=t.minOverlayWidthMatchTrigger,G=t.alignPoint,("minOverlayWidthMatchTrigger"in t?X:!G)?"minWidth":""),popup:"function"==typeof t.overlay?J:J(),onPopupVisibleChange:function(e){var n=t.onVisibleChange;$(e),"function"==typeof n&&n(e)},getPopupContainer:C}),(B=t.children,z=B.props?B.props:{},K=l()(z.className,void 0!==(Y=t.openClassName)?Y:"".concat(f,"-open")),F&&B?e.cloneElement(B,{className:K}):B))}const A=e.forwardRef(b);var E=i(14552),O=i(25400),M=i(20053),S=i(6564),C=i(32663);i(81173);function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(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 o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var P=function(e){var n,o,r,i=t().useRef(),a=(0,O.A)(i,e.getPopupContainer),u=t().useRef((0,C.UUID)());return t().createElement(A,T(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){x(e,t,n[t])}))}return e}({},e),{prefixCls:"".concat(E.g,"-dropdown"),overlayClassName:(0,M.A)("".concat(E.n,"-dropdown"),e.overlayClassName,u.current),animation:"slide-up",align:{offset:(n=e.placement,null!==(r=null===(o={top:{offset:[0,-8]},topLeft:{offset:[0,-8]},topRight:{offset:[0,-8]},bottom:{offset:[0,8]},bottomRight:{offset:[0,8]},bottomLeft:{offset:[0,8]}}[n])||void 0===o?void 0:o.offset)&&void 0!==r?r:[0,0])},getPopupContainer:a,ref:i,onVisibleChange:function(t){var n;null===(n=e.onVisibleChange)||void 0===n||n.call(e,t),e.isolationPopupOnHide&&(0,S.l5)(t,u.current)}}),e.children)};P.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,trigger:["hover"],placement:"bottomRight",isolationPopupOnHide:!1};const _=P})(),a})()));
|