@para-ui/core 2.0.23 → 2.0.24
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/ComboSelect/index.js +2 -2
- package/Form/index.js +1 -1
- package/Tree/index.js +2 -2
- package/cdn/ComboSelect/index.js +2 -2
- package/cdn/Form/index.js +4 -4
- package/cdn/Tree/index.js +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
package/cdn/Tree/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},86010:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:function(){return o}})},68979:function(e,t,n){(t=n(23645)(!1)).push([e.id,'.paraui-radio{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;cursor:pointer;display:inline-flex;align-items:center;line-height:14px}.paraui-radio:hover>.paraui-radio-label{color:#3666d6}.paraui-radio:hover>.paraui-radio-box>.paraui-radio-box-inner{border-color:#3666d6}.paraui-radio>.paraui-radio-box{position:relative}.paraui-radio>.paraui-radio-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner{position:relative;top:0;left:0;display:block;background-color:white;border:1px solid rgba(171,176,185,0.4);border-radius:50%;background-color:white}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner:after{position:absolute;display:table;content:" ";transform:scale(1) translate(-50%, -50%);width:6px;height:6px;border-radius:50%;left:50%;top:50%}.paraui-radio>.paraui-radio-label{color:#2e3743;padding:0 8px}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner{border-color:#3666d6}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:#3666d6}.paraui-radio.radio-checked>.paraui-radio-label{color:#3666d6}.paraui-radio.radio-disabled{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-label{color:rgba(46,55,67,0.4)}.paraui-radio.radio-disabled>.paraui-radio-box>input{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-box>.paraui-radio-box-inner{background-color:rgba(171,176,185,0.121569);border-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-radio.radio-small>.paraui-radio-box>.paraui-radio-box-inner{width:14px;height:14px}.paraui-radio.radio-medium>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}.paraui-radio.radio-large>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}\n',""]),e.exports=t},9929:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-tooltip>div{font-size:14px;color:#fff;background-color:rgba(46,55,67,0.701961)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}\n",""]),e.exports=t},70677:function(e,t,n){(t=n(23645)(!1)).push([e.id,".sector-container{position:relative;z-index:20}.sector-container .sector-item-container{position:absolute;left:0;top:50%;transform:translateY(-50%);padding:0}.sector-container .sector-item-container .sector-item{display:inline-flex;align-items:center;justify-content:center;position:absolute;left:0;top:0;width:24px;height:24px;background-color:#fff;border-radius:50%;box-shadow:4px 4px 6px rgba(70,75,105,0.2),-4px -4px 6px rgba(0,0,0,0.06);cursor:pointer;opacity:0}.sector-container .sector-item-container .sector-item svg{font-size:14px;color:rgba(46,55,67,0.701961)}.sector-container .sector-item-container .sector-item:hover{color:#3666d6}.sector-container .sector-item-container .sector-item:hover svg{color:inherit}.sector-container .sector-item-container .sector-item--del:hover{color:#eb6054}.sector-container .sector-item-container .sector-item--del:hover svg{color:inherit}\n",""]),e.exports=t},72027:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-tree-treenode-leaf-last .paraui-tree-switcher-leaf-line::before{top:auto !important;bottom:auto !important;height:14px !important}@keyframes paraCheckboxEffect{0%{transform:scale(1);opacity:0.5}100%{transform:scale(1.6);opacity:0}}.paraui-tree-rtl{direction:rtl}.paraui-tree-rtl .paraui-tree-node-content-wrapper[draggable='true'] .paraui-tree-drop-indicator::after{right:-6px;left:unset}.paraui-tree .paraui-tree-treenode-rtl{direction:rtl}.paraui-tree-rtl .paraui-tree-switcher_close .paraui-tree-switcher-icon svg{transform:rotate(90deg)}.paraui-tree-show-line .paraui-tree-indent-unit::before .paraui-tree-rtl.paraui-tree-show-line .paraui-tree-indent-unit::before{right:auto;left:-13px;border-right:none;border-left:1px solid #d9d9d9}.paraui-tree-checkbox .paraui-tree-rtl.paraui-tree-checkbox{margin:4px 0 0 8px}.paraui-tree-select-dropdown-rtl .paraui-select-tree-checkbox{margin:4px 0 0 8px}.paraui-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';position:relative;top:0.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.paraui-tree-checkbox-wrapper:hover .paraui-tree-checkbox-inner,.paraui-tree-checkbox:hover .paraui-tree-checkbox-inner,.paraui-tree-checkbox-input:focus+.paraui-tree-checkbox-inner{border-color:#3666d6}.paraui-tree-checkbox-checked::after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #3666d6;border-radius:2px;visibility:hidden;-webkit-animation:paraCheckboxEffect 0.36s ease-in-out;animation:paraCheckboxEffect 0.36s ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;content:'';box-sizing:border-box}.paraui-tree-checkbox:hover::after,.paraui-tree-checkbox-wrapper:hover .paraui-tree-checkbox::after{visibility:visible}.paraui-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all 0.3s}.paraui-tree-checkbox-inner::after{position:absolute;top:50%;left:21.5%;display:table;width:6px;height:9px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%, -50%);opacity:0;transition:all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;content:' ';box-sizing:border-box}.paraui-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.paraui-tree-checkbox-checked .paraui-tree-checkbox-inner::after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%);opacity:1;transition:all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;content:' '}.paraui-tree-checkbox-checked .paraui-tree-checkbox-inner{background-color:#3666d6;border-color:#3666d6}.paraui-tree-checkbox-disabled{cursor:not-allowed}.paraui-tree-checkbox-disabled.paraui-tree-checkbox-checked .paraui-tree-checkbox-inner::after{border-color:rgba(0,0,0,0.25);-webkit-animation-name:none;animation-name:none}.paraui-tree-checkbox-disabled .paraui-tree-checkbox-input{cursor:not-allowed}.paraui-tree-checkbox-disabled .paraui-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9 !important}.paraui-tree-checkbox-disabled .paraui-tree-checkbox-inner::after{border-color:#f5f5f5;border-collapse:separate;-webkit-animation-name:none;animation-name:none}.paraui-tree-checkbox-disabled+span{color:rgba(0,0,0,0.25);cursor:not-allowed}.paraui-tree-checkbox-disabled:hover::after,.paraui-tree-checkbox-wrapper:hover .paraui-tree-checkbox-disabled::after{visibility:hidden}.paraui-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.paraui-tree-checkbox-wrapper.paraui-tree-checkbox-wrapper-disabled{cursor:not-allowed}.paraui-tree-checkbox-wrapper+.paraui-tree-checkbox-wrapper{margin-left:8px}.paraui-tree-checkbox+span{padding-right:8px;padding-left:8px}.paraui-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';display:inline-block}.paraui-tree-checkbox-group-item{margin-right:8px}.paraui-tree-checkbox-group-item:last-child{margin-right:0}.paraui-tree-checkbox-group-item+.paraui-tree-checkbox-group-item{margin-left:0}.paraui-tree-checkbox-indeterminate .paraui-tree-checkbox-inner{background-color:#3666d6;border-color:#3666d6}.paraui-tree-checkbox-indeterminate .paraui-tree-checkbox-inner::after{top:50%;left:50%;width:8px;height:2px;background-color:#fff;border:0;transform:translate(-50%, -50%) scale(1);opacity:1;content:' '}.paraui-tree-checkbox-indeterminate.paraui-tree-checkbox-disabled .paraui-tree-checkbox-inner::after{background-color:rgba(0,0,0,0.25);border-color:rgba(0,0,0,0.25)}.paraui-tree{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';background:#fff;border-radius:2px;transition:background-color 0.3s}.paraui-tree-focused:not(:hover):not(.paraui-tree-active-focused){background:#e6f7ff}.paraui-tree-list-holder-inner{align-items:flex-start}.paraui-tree.paraui-tree-block-node .paraui-tree-list-holder-inner{align-items:stretch}.paraui-tree.paraui-tree-block-node .paraui-tree-list-holder-inner .paraui-tree-node-content-wrapper{flex:auto}.paraui-tree .paraui-tree-treenode{display:flex;align-items:flex-start;outline:none}.paraui-tree .paraui-tree-treenode-disabled .paraui-tree-node-content-wrapper{color:rgba(0,0,0,0.25);cursor:not-allowed}.paraui-tree .paraui-tree-treenode-disabled .paraui-tree-node-content-wrapper:hover{background:transparent}.paraui-tree .paraui-tree-treenode-active .paraui-tree-node-content-wrapper{background:#f5f5f5}.paraui-tree .paraui-tree-treenode.filter-node .paraui-tree-title{color:inherit;font-weight:500}.paraui-tree-indent{align-self:stretch;white-space:nowrap;user-select:none}.paraui-tree-indent-unit{display:inline-block;width:24px}.paraui-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.paraui-tree-switcher .paraui-tree-switcher-icon,.paraui-tree-switcher .paraui-select-tree-switcher-icon{display:inline-block;font-size:14px;vertical-align:middle;transition:transform 0.3s;color:inherit}.paraui-tree-switcher .paraui-tree-switcher-icon svg,.paraui-tree-switcher .paraui-select-tree-switcher-icon svg{font-size:inherit;color:inherit;transition:transform 0.3s}.paraui-tree-switcher-noop{cursor:default}.paraui-tree-switcher_close .paraui-tree-switcher-icon{transform:rotate(-90deg)}.paraui-tree-switcher_close .paraui-tree-switcher-icon svg{color:currentColor;transform:rotate(-90deg)}.paraui-tree-switcher-loading-icon{color:#3666d6;will-change:transform;transition:transform .3s ease-in-out;animation:loadingCircle 1s infinite linear;vertical-align:middle;font-size:14px !important}@keyframes loadingCircle{100%{transform:rotate(360deg)}}.paraui-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.paraui-tree-switcher-leaf-line::before{position:absolute;top:0;bottom:-4px;margin-left:-1px;border-left:1px solid #d9d9d9;content:' '}.paraui-tree-switcher-leaf-line::after{position:absolute;width:10px;height:14px;margin-left:-1px;border-bottom:1px solid #d9d9d9;content:' '}.paraui-tree-checkbox{top:initial;margin:6px 6px 0 0}.paraui-tree .paraui-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:2px 0 0 0;padding:0 6px;color:inherit;line-height:24px;background:transparent;border-radius:2px;cursor:pointer;transition:all 0.3s, border 0s, line-height 0s, box-shadow 0s}.paraui-tree .paraui-tree-node-content-wrapper:hover{background-color:rgba(171,176,185,0.121569);border-radius:8px}.paraui-tree .paraui-tree-node-content-wrapper.paraui-tree-node-selected{background-color:transparent;color:#3666d6}.paraui-tree .paraui-tree-node-content-wrapper .paraui-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.paraui-tree .paraui-tree-node-content-wrapper .paraui-tree-iconEle:empty{display:none}.paraui-tree-unselectable .paraui-tree-node-content-wrapper:hover{background-color:transparent}.paraui-tree-node-content-wrapper[draggable='true']{line-height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.paraui-tree-node-content-wrapper[draggable='true'] .paraui-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#3666d6;border-radius:1px;pointer-events:none}.paraui-tree-node-content-wrapper[draggable='true'] .paraui-tree-drop-indicator::after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:transparent;border:2px solid #3666d6;border-radius:50%;content:''}.paraui-tree .paraui-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #3666d6}.paraui-tree-show-line .paraui-tree-indent-unit{position:relative;height:100%}.paraui-tree-show-line .paraui-tree-indent-unit::before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:''}.paraui-tree-show-line .paraui-tree-indent-unit-end::before{display:none}.paraui-tree-show-line .paraui-tree-switcher{background:#fff}.paraui-tree-show-line .paraui-tree-switcher_close svg{transform:rotate(-90deg);color:inherit;font-size:14px;transition:transform 0.3s}.paraui-tree-show-line .paraui-tree-switcher_open svg{color:inherit;font-size:14px;transition:transform 0.3s}.paraui-tree-show-line .paraui-tree-switcher-line-icon{vertical-align:-0.225em;color:inherit;font-size:14px}.paraui-tree-node-content-wrapper:hover{background-color:transparent}.paraui-tree-node-content-wrapper .paraui-tree-treenode-more-wrapper{color:#3666d6}.paraui-tree .paraui-tree-node-content-wrapper--active{background-color:rgba(171,176,185,0.121569) !important;border-radius:8px !important}.paraui-tree .paraui-tree-node-content-wrapper--active .sector-anchor{opacity:1}.paraui-tree-title-wrapper{display:inline-flex;align-items:center;margin:0 -6px;padding:0 6px}.paraui-tree-title-wrapper .sector-anchor{position:relative;width:14px;height:14px;margin:1px 0 0 18px;line-height:14px;opacity:0;transition:opacity .3s}.paraui-tree-title-wrapper .sector-anchor:before{content:' ';position:absolute;left:-9px;top:0;width:1px;height:14px;background-color:rgba(171,176,185,0.2);pointer-events:none}.paraui-tree-title-wrapper .sector-anchor svg{font-size:14px;color:rgba(46,55,67,0.701961)}.paraui-tree-title-wrapper .sector-anchor--active.sector-anchor svg{color:#3666d6}.paraui-tree-title-wrapper--active .sector-anchor{opacity:1}.paraui-tree-radioable .paraui-tree-iconEle{position:absolute;left:-25px;top:-1px}.paraui-tree-radioable .paraui-tree-checkbox{display:none !important}.paraui-tree-radioable .paraui-tree-checkbox-checked+.paraui-tree-node-content-wrapper{color:#3666d6}.paraui-tree-radioable .paraui-tree-node-radio{width:16px;height:16px;margin-top:4px}.paraui-tree-radioable-showradio .paraui-tree-node-content-wrapper{margin-left:22px}.paraui-motion-collapse{overflow:hidden;transition:height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1),opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important}\n",""]),e.exports=t},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},55730:function(e,t,n){"use strict";n.d(t,{if:function(){return g},wR:function(){return Y},HO:function(){return ne}});var r=n(33827),o=n(78927),i="",a="",s="",c="",u=r.Z&&"ontouchstart"in document.documentElement;if(r.Z){var l={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},d=document.createElement("p").style;for(var f in l)if(f+"Transform"in d){i=f,a=l[f];break}"Webkit"===i&&"msHyphens"in d&&(i="ms",a=l.ms,c="edge"),"Webkit"===i&&"-apple-trailing-word"in d&&(s="apple")}var p=i,h=a,v=s,y=c,m=u;function g(e){return"-"===e[1]||"ms"===p?e:"@"+h+"keyframes"+e.substr(10)}var b={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===p?"-webkit-"+e:h+e)}},x={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===p?h+"print-"+e:e)}},w=/[-\s]+(.)?/g;function E(e,t){return t?t.toUpperCase():""}function k(e){return e.replace(w,E)}function S(e){return k("-"+e)}var O,C={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===p){var n="mask-image";if(k(n)in t)return e;if(p+S(n)in t)return h+e}return e}},Z={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==v||m?e:h+e)}},N={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:h+e)}},P={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:h+e)}},R={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===p||"ms"===p&&"edge"!==y?h+e:e)}},T={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===p||"ms"===p||"apple"===v?h+e:e)}},M={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===p?"WebkitColumn"+S(e)in t&&h+"column-"+e:"Moz"===p&&("page"+S(e)in t&&"page-"+e))}},A={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===p)return e;var n=e.replace("-inline","");return p+S(n)in t&&h+n}},L={supportedProperty:function(e,t){return k(e)in t&&e}},D={supportedProperty:function(e,t){var n=S(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:p+n in t?h+e:"Webkit"!==p&&"Webkit"+n in t&&"-webkit-"+e}},K={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===p?""+h+e:e)}},j={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===p?h+"scroll-chaining":e)}},_={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},I={supportedProperty:function(e,t){var n=_[e];return!!n&&(p+S(n)in t&&h+n)}},F={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},H=Object.keys(F),U=function(e){return h+e},z={supportedProperty:function(e,t,n){var r=n.multiple;if(H.indexOf(e)>-1){var o=F[e];if(!Array.isArray(o))return p+S(o)in t&&h+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(p+S(o[0])in t))return!1;return o.map(U)}return!1}},B=[b,x,C,Z,N,P,R,T,M,A,L,D,K,j,I,z],W=B.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),G=B.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,o.Z)(t.noPrefill)),e}),[]),q={};if(r.Z){O=document.createElement("p");var $=window.getComputedStyle(document.documentElement,"");for(var V in $)isNaN(V)||(q[$[V]]=$[V]);G.forEach((function(e){return delete q[e]}))}function Y(e,t){if(void 0===t&&(t={}),!O)return e;if(null!=q[e])return q[e];"transition"!==e&&"transform"!==e||(t[e]=e in O.style);for(var n=0;n<W.length&&(q[e]=W[n](e,O.style,t),!q[e]);n++);try{O.style[e]=""}catch(e){return!1}return q[e]}var X,J={},Q={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ee=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function te(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Y(t):", "+Y(n);return r||(t||n)}function ne(e,t){var n=t;if(!X||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=J[r])return J[r];try{X.style[e]=n}catch(e){return J[r]=!1,!1}if(Q[e])n=n.replace(ee,te);else if(""===X.style[e]&&("-ms-flex"===(n=h+n)&&(X.style[e]="-ms-flexbox"),X.style[e]=n,""===X.style[e]))return J[r]=!1,!1;return X.style[e]="",J[r]=n,J[r]}r.Z&&(X=document.createElement("p"))},8679:function(e,t,n){"use strict";var r=n(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=c(t),v=c(n),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||r&&r[m]||v&&v[m]||s&&s[m])){var g=f(n,m);try{u(t,m,g)}catch(e){}}}}return t}},96103:function(e,t){"use strict";
|
|
6
|
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},86010:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:function(){return o}})},68979:function(e,t,n){(t=n(23645)(!1)).push([e.id,'.paraui-radio{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;cursor:pointer;display:inline-flex;align-items:center;line-height:14px}.paraui-radio:hover>.paraui-radio-label{color:#3666d6}.paraui-radio:hover>.paraui-radio-box>.paraui-radio-box-inner{border-color:#3666d6}.paraui-radio>.paraui-radio-box{position:relative}.paraui-radio>.paraui-radio-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner{position:relative;top:0;left:0;display:block;background-color:white;border:1px solid rgba(171,176,185,0.4);border-radius:50%;background-color:white}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner:after{position:absolute;display:table;content:" ";transform:scale(1) translate(-50%, -50%);width:6px;height:6px;border-radius:50%;left:50%;top:50%}.paraui-radio>.paraui-radio-label{color:#2e3743;padding:0 8px}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner{border-color:#3666d6}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:#3666d6}.paraui-radio.radio-checked>.paraui-radio-label{color:#3666d6}.paraui-radio.radio-disabled{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-label{color:rgba(46,55,67,0.4)}.paraui-radio.radio-disabled>.paraui-radio-box>input{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-box>.paraui-radio-box-inner{background-color:rgba(171,176,185,0.121569);border-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-radio.radio-small>.paraui-radio-box>.paraui-radio-box-inner{width:14px;height:14px}.paraui-radio.radio-medium>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}.paraui-radio.radio-large>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}\n',""]),e.exports=t},9929:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-tooltip>div{font-size:14px;color:#fff;background-color:rgba(46,55,67,0.701961)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}\n",""]),e.exports=t},70677:function(e,t,n){(t=n(23645)(!1)).push([e.id,".sector-container{position:relative;z-index:20}.sector-container .sector-item-container{position:absolute;left:0;top:50%;transform:translateY(-50%);padding:0}.sector-container .sector-item-container .sector-item{display:inline-flex;align-items:center;justify-content:center;position:absolute;left:0;top:0;width:24px;height:24px;background-color:#fff;border-radius:50%;box-shadow:4px 4px 6px rgba(70,75,105,0.2),-4px -4px 6px rgba(0,0,0,0.06);cursor:pointer;opacity:0}.sector-container .sector-item-container .sector-item svg{font-size:14px;color:rgba(46,55,67,0.701961)}.sector-container .sector-item-container .sector-item:hover{color:#3666d6}.sector-container .sector-item-container .sector-item:hover svg{color:inherit}.sector-container .sector-item-container .sector-item--del:hover{color:#eb6054}.sector-container .sector-item-container .sector-item--del:hover svg{color:inherit}\n",""]),e.exports=t},72027:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-tree-treenode-leaf-last .paraui-tree-switcher-leaf-line::before{top:auto !important;bottom:auto !important;height:14px !important}@keyframes paraCheckboxEffect{0%{transform:scale(1);opacity:0.5}100%{transform:scale(1.6);opacity:0}}.paraui-tree-rtl{direction:rtl}.paraui-tree-rtl .paraui-tree-node-content-wrapper[draggable='true'] .paraui-tree-drop-indicator::after{right:-6px;left:unset}.paraui-tree .paraui-tree-treenode-rtl{direction:rtl}.paraui-tree-rtl .paraui-tree-switcher_close .paraui-tree-switcher-icon svg{transform:rotate(90deg)}.paraui-tree-show-line .paraui-tree-indent-unit::before .paraui-tree-rtl.paraui-tree-show-line .paraui-tree-indent-unit::before{right:auto;left:-13px;border-right:none;border-left:1px solid #d9d9d9}.paraui-tree-checkbox .paraui-tree-rtl.paraui-tree-checkbox{margin:4px 0 0 8px}.paraui-tree-select-dropdown-rtl .paraui-select-tree-checkbox{margin:4px 0 0 8px}.paraui-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';position:relative;top:0.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.paraui-tree-checkbox-wrapper:hover .paraui-tree-checkbox-inner,.paraui-tree-checkbox:hover .paraui-tree-checkbox-inner,.paraui-tree-checkbox-input:focus+.paraui-tree-checkbox-inner{border-color:#3666d6}.paraui-tree-checkbox-checked::after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #3666d6;border-radius:2px;visibility:hidden;-webkit-animation:paraCheckboxEffect 0.36s ease-in-out;animation:paraCheckboxEffect 0.36s ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;content:'';box-sizing:border-box}.paraui-tree-checkbox:hover::after,.paraui-tree-checkbox-wrapper:hover .paraui-tree-checkbox::after{visibility:visible}.paraui-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all 0.3s}.paraui-tree-checkbox-inner::after{position:absolute;top:50%;left:21.5%;display:table;width:6px;height:9px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%, -50%);opacity:0;transition:all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;content:' ';box-sizing:border-box}.paraui-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.paraui-tree-checkbox-checked .paraui-tree-checkbox-inner::after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%);opacity:1;transition:all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;content:' '}.paraui-tree-checkbox-checked .paraui-tree-checkbox-inner{background-color:#3666d6;border-color:#3666d6}.paraui-tree-checkbox-disabled{cursor:not-allowed}.paraui-tree-checkbox-disabled.paraui-tree-checkbox-checked .paraui-tree-checkbox-inner::after{border-color:rgba(0,0,0,0.25);-webkit-animation-name:none;animation-name:none}.paraui-tree-checkbox-disabled .paraui-tree-checkbox-input{cursor:not-allowed}.paraui-tree-checkbox-disabled .paraui-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9 !important}.paraui-tree-checkbox-disabled .paraui-tree-checkbox-inner::after{border-color:#f5f5f5;border-collapse:separate;-webkit-animation-name:none;animation-name:none}.paraui-tree-checkbox-disabled+span{color:rgba(0,0,0,0.25);cursor:not-allowed}.paraui-tree-checkbox-disabled:hover::after,.paraui-tree-checkbox-wrapper:hover .paraui-tree-checkbox-disabled::after{visibility:hidden}.paraui-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.paraui-tree-checkbox-wrapper.paraui-tree-checkbox-wrapper-disabled{cursor:not-allowed}.paraui-tree-checkbox-wrapper+.paraui-tree-checkbox-wrapper{margin-left:8px}.paraui-tree-checkbox+span{padding-right:8px;padding-left:8px}.paraui-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';display:inline-block}.paraui-tree-checkbox-group-item{margin-right:8px}.paraui-tree-checkbox-group-item:last-child{margin-right:0}.paraui-tree-checkbox-group-item+.paraui-tree-checkbox-group-item{margin-left:0}.paraui-tree-checkbox-indeterminate .paraui-tree-checkbox-inner{background-color:#3666d6;border-color:#3666d6}.paraui-tree-checkbox-indeterminate .paraui-tree-checkbox-inner::after{top:50%;left:50%;width:8px;height:2px;background-color:#fff;border:0;transform:translate(-50%, -50%) scale(1);opacity:1;content:' '}.paraui-tree-checkbox-indeterminate.paraui-tree-checkbox-disabled .paraui-tree-checkbox-inner::after{background-color:rgba(0,0,0,0.25);border-color:rgba(0,0,0,0.25)}.paraui-tree{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum';background:#fff;border-radius:2px;transition:background-color 0.3s}.paraui-tree-focused:not(:hover):not(.paraui-tree-active-focused){background:#e6f7ff}.paraui-tree-list-holder-inner{align-items:flex-start}.paraui-tree.paraui-tree-block-node .paraui-tree-list-holder-inner{align-items:stretch}.paraui-tree.paraui-tree-block-node .paraui-tree-list-holder-inner .paraui-tree-node-content-wrapper{flex:auto}.paraui-tree .paraui-tree-treenode{display:flex;align-items:flex-start;outline:none}.paraui-tree .paraui-tree-treenode-disabled .paraui-tree-node-content-wrapper{color:rgba(0,0,0,0.25);cursor:not-allowed}.paraui-tree .paraui-tree-treenode-disabled .paraui-tree-node-content-wrapper:hover{background:transparent}.paraui-tree .paraui-tree-treenode-active .paraui-tree-node-content-wrapper{background:#f5f5f5}.paraui-tree .paraui-tree-treenode.filter-node .paraui-tree-title{color:inherit;font-weight:500}.paraui-tree-indent{align-self:stretch;white-space:nowrap;user-select:none}.paraui-tree-indent-unit{display:inline-block;width:24px}.paraui-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.paraui-tree-switcher .paraui-tree-switcher-icon,.paraui-tree-switcher .paraui-select-tree-switcher-icon{display:inline-block;font-size:14px;vertical-align:middle;transition:transform 0.3s;color:inherit}.paraui-tree-switcher .paraui-tree-switcher-icon svg,.paraui-tree-switcher .paraui-select-tree-switcher-icon svg{font-size:inherit;color:inherit;transition:transform 0.3s}.paraui-tree-switcher-noop{cursor:default}.paraui-tree-switcher_close .paraui-tree-switcher-icon{transform:rotate(-90deg)}.paraui-tree-switcher_close .paraui-tree-switcher-icon svg{color:currentColor;transform:rotate(-90deg)}.paraui-tree-switcher-loading-icon{color:#3666d6;will-change:transform;transition:transform .3s ease-in-out;animation:loadingCircle 1s infinite linear;vertical-align:middle;font-size:14px !important}@keyframes loadingCircle{100%{transform:rotate(360deg)}}.paraui-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.paraui-tree-switcher-leaf-line::before{position:absolute;top:0;bottom:-4px;margin-left:-1px;border-left:1px solid #d9d9d9;content:' '}.paraui-tree-switcher-leaf-line::after{position:absolute;width:10px;height:14px;margin-left:-1px;border-bottom:1px solid #d9d9d9;content:' '}.paraui-tree-checkbox{top:initial;margin:6px 6px 0 0}.paraui-tree .paraui-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:2px 0 0 0;padding:0 6px;color:inherit;line-height:24px;background:transparent;border-radius:2px;cursor:pointer;transition:all 0.3s, border 0s, line-height 0s, box-shadow 0s}.paraui-tree .paraui-tree-node-content-wrapper:hover{background-color:rgba(171,176,185,0.121569);border-radius:8px}.paraui-tree .paraui-tree-node-content-wrapper.paraui-tree-node-selected{background-color:transparent;color:#3666d6}.paraui-tree .paraui-tree-node-content-wrapper .paraui-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.paraui-tree .paraui-tree-node-content-wrapper .paraui-tree-iconEle:empty{display:none}.paraui-tree-unselectable .paraui-tree-node-content-wrapper:hover{background-color:transparent}.paraui-tree-node-content-wrapper[draggable='true']{line-height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.paraui-tree-node-content-wrapper[draggable='true'] .paraui-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#3666d6;border-radius:1px;pointer-events:none}.paraui-tree-node-content-wrapper[draggable='true'] .paraui-tree-drop-indicator::after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:transparent;border:2px solid #3666d6;border-radius:50%;content:''}.paraui-tree .paraui-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #3666d6}.paraui-tree-show-line .paraui-tree-indent-unit{position:relative;height:100%}.paraui-tree-show-line .paraui-tree-indent-unit::before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:''}.paraui-tree-show-line .paraui-tree-indent-unit-end::before{display:none}.paraui-tree-show-line .paraui-tree-switcher{background:#fff}.paraui-tree-show-line .paraui-tree-switcher_close svg{transform:rotate(-90deg);color:inherit;font-size:14px;transition:transform 0.3s}.paraui-tree-show-line .paraui-tree-switcher_open svg{color:inherit;font-size:14px;transition:transform 0.3s}.paraui-tree-show-line .paraui-tree-switcher-line-icon{vertical-align:-0.225em;color:inherit;font-size:14px}.paraui-tree-node-content-wrapper:hover{background-color:transparent}.paraui-tree-node-content-wrapper .paraui-tree-treenode-more-wrapper{color:#3666d6}.paraui-tree .paraui-tree-node-content-wrapper--active{background-color:rgba(171,176,185,0.121569) !important;border-radius:8px !important}.paraui-tree .paraui-tree-node-content-wrapper--active .sector-anchor{opacity:1}.paraui-tree-node-content-wrapper .paraui-tree-iconEle-icon{display:inline-block;margin-right:5px;line-height:0;vertical-align:-3px}.paraui-tree-title-wrapper{display:inline-flex;align-items:center;margin:0 -6px;padding:0 6px}.paraui-tree-title-wrapper .sector-anchor{position:relative;width:14px;height:14px;margin:1px 0 0 18px;line-height:14px;opacity:0;transition:opacity .3s}.paraui-tree-title-wrapper .sector-anchor:before{content:' ';position:absolute;left:-9px;top:0;width:1px;height:14px;background-color:rgba(171,176,185,0.2);pointer-events:none}.paraui-tree-title-wrapper .sector-anchor svg{font-size:14px;color:rgba(46,55,67,0.701961)}.paraui-tree-title-wrapper .sector-anchor--active.sector-anchor svg{color:#3666d6}.paraui-tree-title-wrapper--active .sector-anchor{opacity:1}.paraui-tree-radioable .paraui-tree-iconEle{position:absolute;left:-25px;top:-1px}.paraui-tree-radioable .paraui-tree-checkbox{display:none !important}.paraui-tree-radioable .paraui-tree-checkbox-checked+.paraui-tree-node-content-wrapper{color:#3666d6}.paraui-tree-radioable .paraui-tree-node-radio{width:16px;height:16px;margin-top:4px}.paraui-tree-radioable-showradio .paraui-tree-node-content-wrapper{margin-left:22px}.paraui-motion-collapse{overflow:hidden;transition:height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1),opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important}\n",""]),e.exports=t},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},55730:function(e,t,n){"use strict";n.d(t,{if:function(){return g},wR:function(){return Y},HO:function(){return ne}});var r=n(33827),o=n(78927),i="",a="",s="",c="",u=r.Z&&"ontouchstart"in document.documentElement;if(r.Z){var l={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},d=document.createElement("p").style;for(var f in l)if(f+"Transform"in d){i=f,a=l[f];break}"Webkit"===i&&"msHyphens"in d&&(i="ms",a=l.ms,c="edge"),"Webkit"===i&&"-apple-trailing-word"in d&&(s="apple")}var p=i,h=a,v=s,y=c,m=u;function g(e){return"-"===e[1]||"ms"===p?e:"@"+h+"keyframes"+e.substr(10)}var b={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===p?"-webkit-"+e:h+e)}},x={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===p?h+"print-"+e:e)}},w=/[-\s]+(.)?/g;function E(e,t){return t?t.toUpperCase():""}function k(e){return e.replace(w,E)}function S(e){return k("-"+e)}var O,C={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===p){var n="mask-image";if(k(n)in t)return e;if(p+S(n)in t)return h+e}return e}},Z={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==v||m?e:h+e)}},N={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:h+e)}},P={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:h+e)}},R={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===p||"ms"===p&&"edge"!==y?h+e:e)}},T={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===p||"ms"===p||"apple"===v?h+e:e)}},M={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===p?"WebkitColumn"+S(e)in t&&h+"column-"+e:"Moz"===p&&("page"+S(e)in t&&"page-"+e))}},A={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===p)return e;var n=e.replace("-inline","");return p+S(n)in t&&h+n}},L={supportedProperty:function(e,t){return k(e)in t&&e}},D={supportedProperty:function(e,t){var n=S(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:p+n in t?h+e:"Webkit"!==p&&"Webkit"+n in t&&"-webkit-"+e}},K={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===p?""+h+e:e)}},j={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===p?h+"scroll-chaining":e)}},_={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},I={supportedProperty:function(e,t){var n=_[e];return!!n&&(p+S(n)in t&&h+n)}},F={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},H=Object.keys(F),U=function(e){return h+e},z={supportedProperty:function(e,t,n){var r=n.multiple;if(H.indexOf(e)>-1){var o=F[e];if(!Array.isArray(o))return p+S(o)in t&&h+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(p+S(o[0])in t))return!1;return o.map(U)}return!1}},B=[b,x,C,Z,N,P,R,T,M,A,L,D,K,j,I,z],W=B.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),G=B.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,o.Z)(t.noPrefill)),e}),[]),q={};if(r.Z){O=document.createElement("p");var $=window.getComputedStyle(document.documentElement,"");for(var V in $)isNaN(V)||(q[$[V]]=$[V]);G.forEach((function(e){return delete q[e]}))}function Y(e,t){if(void 0===t&&(t={}),!O)return e;if(null!=q[e])return q[e];"transition"!==e&&"transform"!==e||(t[e]=e in O.style);for(var n=0;n<W.length&&(q[e]=W[n](e,O.style,t),!q[e]);n++);try{O.style[e]=""}catch(e){return!1}return q[e]}var X,J={},Q={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ee=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function te(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Y(t):", "+Y(n);return r||(t||n)}function ne(e,t){var n=t;if(!X||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=J[r])return J[r];try{X.style[e]=n}catch(e){return J[r]=!1,!1}if(Q[e])n=n.replace(ee,te);else if(""===X.style[e]&&("-ms-flex"===(n=h+n)&&(X.style[e]="-ms-flexbox"),X.style[e]=n,""===X.style[e]))return J[r]=!1,!1;return X.style[e]="",J[r]=n,J[r]}r.Z&&(X=document.createElement("p"))},8679:function(e,t,n){"use strict";var r=n(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=c(t),v=c(n),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||r&&r[m]||v&&v[m]||s&&s[m])){var g=f(n,m);try{u(t,m,g)}catch(e){}}}}return t}},96103:function(e,t){"use strict";
|
|
7
7
|
/** @license React v16.13.1
|
|
8
8
|
* react-is.production.min.js
|
|
9
9
|
*
|
|
@@ -50,4 +50,4 @@
|
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the MIT license found in the
|
|
52
52
|
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case y:case v:case c:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.isFragment=function(e){return w(e)===i},t.isMemo=function(e){return w(e)===v}},11805:function(e,t,n){"use strict";e.exports=n(51162)},96630:function(e,t,n){"use strict";var r=n(19756),o=n(41788),i=n(69297),a=n.n(i),s=n(92268),c=n.n(s),u=n(6035),l=n(220),d="unmounted",f="exited",p="entering",h="entered",v="exiting",y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=f,r.appearStatus=p):o=h:o=t.unmountOnExit||t.mountOnEnter?d:f,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:f}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===f&&this.setState({status:d})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[c().findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||u.Z.disabled?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:p},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c().findDOMNode(this);t&&!u.Z.disabled?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:f},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:f},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(l.Z.Provider,{value:null},"function"==typeof n?n(e,o):a().cloneElement(a().Children.only(n),o))},t}(a().Component);function m(){}y.contextType=l.Z,y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},y.UNMOUNTED=d,y.EXITED=f,y.ENTERING=p,y.ENTERED=h,y.EXITING=v,t.ZP=y},220:function(e,t,n){"use strict";var r=n(69297),o=n.n(r);t.Z=o().createContext(null)},6035:function(e,t){"use strict";t.Z={disabled:!1}},35666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new N(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:f,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",v={};function y(){}function m(){}function g(){}var b={};c(b,i,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(P([])));w&&w!==n&&r.call(w,i)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return m.prototype=g,c(E,"constructor",g),c(g,"constructor",m),m.displayName=c(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Z),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){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(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Z(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;Z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},47831:function(e,t,n){var r=n(93379),o=n(68979);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},42560:function(e,t,n){var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},90019:function(e,t,n){var r=n(93379),o=n(70677);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},74314:function(e,t,n){var r=n(93379),o=n(72027);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(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={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=s(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:l,updater:y(f,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function y(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=u(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=u(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=c(e,t),u=0;u<n.length;u++){var l=s(n[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},4525:function(e,t,n){"use strict";var r=n(69297),o=n.n(r);n(47831);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.default=function(e){var t=e.className,n=void 0===t?"":t,i=e.label,c=void 0===i?"":i,u=e.size,l=void 0===u?"large":u,d=e.disabled,f=void 0!==d&&d,p=e.onChange,h=s((0,r.useState)(!1),2),v=h[0],y=h[1];(0,r.useEffect)((function(){void 0!==e.defaultChecked&&y(e.defaultChecked)}),[]),(0,r.useEffect)((function(){void 0!==e.checked&&y(e.checked)}),[e.checked]);var m;return o().createElement("label",{className:(m="paraui-radio",n&&(m+=" "+n),l&&(m+=" radio-"+l),f&&(m+=" radio-disabled"),v&&(m+=" radio-checked"),m),onClick:function(t){t.preventDefault(),f||(void 0===e.checked&&y(!v),t.target.checked=!v,p&&p(t,!v))}},o().createElement("span",{className:"paraui-radio-box"},o().createElement("input",a({type:"radio",value:v},e.inputProps)),o().createElement("span",{className:"paraui-radio-box-inner"})),c&&o().createElement("span",{className:"paraui-radio-label"},c))}},5685:function(e,t,n){"use strict";var r=n(69297),o=n.n(r),i=n(868),a=n(86010);n(42560);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}t.default=function(e){var t,n=e.placement,r=void 0===n?"bottom":n,u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},e.classes,{popper:(0,a.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return o().createElement(i.ZP,c({},e,{classes:u}))}},87622:function(){Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},13042:function(e){"use strict";e.exports=s},35648:function(e){"use strict";e.exports=r},25033:function(e){"use strict";e.exports=o},99760:function(e){"use strict";e.exports=i},45912:function(e){"use strict";e.exports=c},79787:function(e){"use strict";e.exports=n},7655:function(e){"use strict";e.exports=l},46819:function(e){"use strict";e.exports=a},73475:function(e){"use strict";e.exports=u},69297:function(t){"use strict";t.exports=e},92268:function(e){"use strict";e.exports=t}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={id:e,exports:{}};return d[e](n,n.exports,p),n.exports}p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return function(){"use strict";p.r(h),p.d(h,{default:function(){return Rr}});var e=p(35666),t=p.n(e),n=p(69297),r=p.n(n),o=p(22122),i=p(96156),a=p(28991),s=p(78927),c=p(6610),u=p(5991),l=p(63349),d=p(10379),f=p(60446),v={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>=v.F1&&t<=v.F12)return!1;switch(t){case v.ALT:case v.CAPS_LOCK:case v.CONTEXT_MENU:case v.CTRL:case v.DOWN:case v.END:case v.ESC:case v.HOME:case v.INSERT:case v.LEFT:case v.MAC_FF_META:case v.META:case v.NUMLOCK:case v.NUM_CENTER:case v.PAGE_DOWN:case v.PAGE_UP:case v.PAUSE:case v.PRINT_SCREEN:case v.RIGHT:case v.SHIFT:case v.UP:case v.WIN_KEY:case v.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=v.ZERO&&e<=v.NINE)return!0;if(e>=v.NUM_ZERO&&e<=v.NUM_MULTIPLY)return!0;if(e>=v.A&&e<=v.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case v.SPACE:case v.QUESTION_MARK:case v.NUM_PLUS:case v.NUM_MINUS:case v.NUM_PERIOD:case v.NUM_DIVISION:case v.SEMICOLON:case v.DASH:case v.EQUALS:case v.COMMA:case v.PERIOD:case v.SLASH:case v.APOSTROPHE:case v.SINGLE_QUOTE:case v.OPEN_SQUARE_BRACKET:case v.BACKSLASH:case v.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},y=v,m={};function g(e,t){0}function b(e,t,n){t||m[n]||(e(!1,n),m[n]=!0)}var x=function(e,t){b(g,e,t)},w=p(94184),E=p.n(w),k=n.createContext(null),S=p(90484),O=p(81253),C=function(e){for(var t=e.prefixCls,r=e.level,o=e.isStart,a=e.isEnd,s="".concat(t,"-indent-unit"),c=[],u=0;u<r;u+=1){var l;c.push(n.createElement("span",{key:u,className:E()(s,(l={},(0,i.Z)(l,"".concat(s,"-start"),o[u]),(0,i.Z)(l,"".concat(s,"-end"),a[u]),l))}))}return n.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},c)},Z=p(11805);function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(N(e)):(0,Z.isFragment)(e)&&e.props?n=n.concat(N(e.props.children,t)):n.push(e))})),n}var P=["children"];function R(e,t){return null!=e?e:t}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(!0===t?[]:t),r=[];function o(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(c,u){var l=B(i?i.pos:"0",u),d=R(c.key,l),f=(0,a.Z)((0,a.Z)({},c),{},{parent:i,pos:l,children:null,data:c,isStart:[].concat((0,s.Z)(i?i.isStart:[]),[0===u]),isEnd:[].concat((0,s.Z)(i?i.isEnd:[]),[u===e.length-1])});return r.push(f),!0===t||n.has(d)?f.children=o(c.children||[],f):f.children=[],f}))}return o(e),r}function M(e,t,n){var r,o,i=null,a=(0,S.Z)(n);"function"===a||"string"===a?i=n:n&&"object"===a&&(r=n.childrenPropName,i=n.externalGetKey),r=r||"children",i?"string"==typeof i?o=function(e){return e[i]}:"function"==typeof i&&(o=function(e){return i(e)}):o=function(e,t){return R(e.key,t)},function n(i,a,s){var c=i?i[r]:e,u=i?B(s.pos,a):"0";if(i){var l=o(i,u),d={node:i,index:a,pos:u,key:l,parentPos:s.node?s.pos:null,level:s.level+1};t(d)}c&&c.forEach((function(e,t){n(e,t,{node:i,pos:u,level:s?s.level+1:-1})}))}(null)}function A(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,l=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(l?l.pos:""),dragOver:c===e&&0===u,dragOverGapTop:c===e&&-1===u,dragOverGapBottom:c===e&&1===u}}function L(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,s=e.loading,c=e.halfChecked,u=e.dragOver,l=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,h=(0,a.Z)((0,a.Z)({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:s,halfChecked:c,dragOver:u,dragOverGapTop:l,dragOverGapBottom:d,pos:f,active:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return x(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var D=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove"],K="open",j="close",_=function(e){(0,d.Z)(r,e);var t=(0,f.Z)(r);function r(){var e;(0,c.Z)(this,r);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={dragNodeHighlight:!1},e.selectHandle=void 0,e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,L(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,L(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,L(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!o;i(t,L(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,L(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,L(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,L(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,(0,l.Z)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,(0,l.Z)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,(0,l.Z)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,(0,l.Z)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,l.Z)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,l.Z)(e))},e.onExpand=function(t){var n=e.props,r=n.loading,o=n.context.onNodeExpand;r||o(t,L(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?K:j},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,s=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||s(L(e.props)))},e.renderSwitcherIconDom=function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,o=n||r;return"function"==typeof o?o((0,a.Z)((0,a.Z)({},e.props),{},{isLeaf:t})):o},e.renderSwitcher=function(){var t=e.props.expanded,r=e.props.context.prefixCls;if(e.isLeaf()){var o=e.renderSwitcherIconDom(!0);return!1!==o?n.createElement("span",{className:E()("".concat(r,"-switcher"),"".concat(r,"-switcher-noop"))},o):null}var i=E()("".concat(r,"-switcher"),"".concat(r,"-switcher_").concat(t?K:j)),a=e.renderSwitcherIconDom(!1);return!1!==a?n.createElement("span",{onClick:e.onExpand,className:i},a):null},e.renderCheckbox=function(){var t=e.props,r=t.checked,o=t.halfChecked,i=t.disableCheckbox,a=e.props.context.prefixCls,s=e.isDisabled(),c=e.isCheckable();if(!c)return null;var u="boolean"!=typeof c?c:null;return n.createElement("span",{className:E()("".concat(a,"-checkbox"),r&&"".concat(a,"-checkbox-checked"),!r&&o&&"".concat(a,"-checkbox-indeterminate"),(s||i)&&"".concat(a,"-checkbox-disabled")),onClick:e.onCheck},u)},e.renderIcon=function(){var t=e.props.loading,r=e.props.context.prefixCls;return n.createElement("span",{className:E()("".concat(r,"-iconEle"),"".concat(r,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(r,"-icon_loading"))})},e.renderSelector=function(){var t,r,o=e.state.dragNodeHighlight,i=e.props,a=i.title,s=i.selected,c=i.icon,u=i.loading,l=i.data,d=e.props.context,f=d.prefixCls,p=d.showIcon,h=d.icon,v=d.draggable,y=d.loadData,m=d.titleRender,g=e.isDisabled(),b="function"==typeof v?v(l):v,x="".concat(f,"-node-content-wrapper");if(p){var w=c||h;t=w?n.createElement("span",{className:E()("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof w?w(e.props):w):e.renderIcon()}else y&&u&&(t=e.renderIcon());r="function"==typeof a?a(l):m?m(l):a;var k=n.createElement("span",{className:"".concat(f,"-title")},r);return n.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof a?a:"",className:E()("".concat(x),"".concat(x,"-").concat(e.getNodeState()||"normal"),!g&&(s||o)&&"".concat(f,"-node-selected"),!g&&b&&"draggable"),draggable:!g&&b||void 0,"aria-grabbed":!g&&b||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:b?e.onDragStart:void 0},t,k,e.renderDropIndicator())},e.renderDropIndicator=function(){var t=e.props,n=t.disabled,r=t.eventKey,o=e.props.context,i=o.draggable,a=o.dropLevelOffset,s=o.dropPosition,c=o.prefixCls,u=o.indent,l=o.dropIndicatorRender,d=o.dragOverNodeKey,f=o.direction;return!n&&!1!==i&&d===r?l({dropPosition:s,dropLevelOffset:a,indent:u,prefixCls:c,direction:f}):null},e}return(0,u.Z)(r,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,r=t.eventKey,a=t.className,s=t.style,c=t.dragOver,u=t.dragOverGapTop,l=t.dragOverGapBottom,d=t.isLeaf,f=t.isStart,p=t.isEnd,h=t.expanded,v=t.selected,y=t.checked,m=t.halfChecked,g=t.loading,b=t.domRef,x=t.active,w=t.data,k=t.onMouseMove,S=(0,O.Z)(t,D),Z=this.props.context,N=Z.prefixCls,P=Z.filterTreeNode,R=Z.draggable,T=Z.keyEntities,M=Z.dropContainerKey,A=Z.dropTargetKey,K=this.isDisabled(),j=X(S),_=(T[r]||{}).level,I=p[p.length-1],F="function"==typeof R?R(w):R;return n.createElement("div",(0,o.Z)({ref:b,className:E()(a,"".concat(N,"-treenode"),(e={},(0,i.Z)(e,"".concat(N,"-treenode-disabled"),K),(0,i.Z)(e,"".concat(N,"-treenode-switcher-").concat(h?"open":"close"),!d),(0,i.Z)(e,"".concat(N,"-treenode-checkbox-checked"),y),(0,i.Z)(e,"".concat(N,"-treenode-checkbox-indeterminate"),m),(0,i.Z)(e,"".concat(N,"-treenode-selected"),v),(0,i.Z)(e,"".concat(N,"-treenode-loading"),g),(0,i.Z)(e,"".concat(N,"-treenode-active"),x),(0,i.Z)(e,"".concat(N,"-treenode-leaf-last"),I),(0,i.Z)(e,"drop-target",A===r),(0,i.Z)(e,"drop-container",M===r),(0,i.Z)(e,"drag-over",!K&&c),(0,i.Z)(e,"drag-over-gap-top",!K&&u),(0,i.Z)(e,"drag-over-gap-bottom",!K&&l),(0,i.Z)(e,"filter-node",P&&P(L(this.props))),e)),style:s,onDragEnter:F?this.onDragEnter:void 0,onDragOver:F?this.onDragOver:void 0,onDragLeave:F?this.onDragLeave:void 0,onDrop:F?this.onDrop:void 0,onDragEnd:F?this.onDragEnd:void 0,onMouseMove:k},j),n.createElement(C,{prefixCls:N,level:_,isStart:f,isEnd:p}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),r}(n.Component),I=function(e){return n.createElement(k.Consumer,null,(function(t){return n.createElement(_,(0,o.Z)({},e,{context:t}))}))};I.displayName="TreeNode",I.defaultProps={title:"---"},I.isTreeNode=1;var F=I;function H(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function U(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function z(e){return e.split("-")}function B(e,t){return"".concat(e,"-").concat(t)}function W(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(t[e].children),n}function G(e){if(e.parent){var t=z(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function q(e,t,n,r,o,i,a,s,c,u){var l,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,v=p.height,y=(("rtl"===u?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,m=s[n.props.eventKey];if(f<h+v/2){var g=a.findIndex((function(e){return e.data.key===m.key})),b=a[g<=0?0:g-1].data.key;m=s[b]}var x=m.key,w=m,E=m.key,k=0,S=0;if(!c.includes(x))for(var O=0;O<y&&G(m);O+=1)m=m.parent,S+=1;var C,Z=m.node,N=!0;return C=z(m.pos),0===Number(C[C.length-1])&&0===m.level&&f<h+v/2&&i({dropNode:Z,dropPosition:-1})&&m.key===n.props.eventKey?k=-1:(w.children||[]).length&&c.includes(E)?i({dropNode:Z,dropPosition:0})?k=0:N=!1:0===S?y>-1.5?i({dropNode:Z,dropPosition:1})?k=1:N=!1:i({dropNode:Z,dropPosition:0})?k=0:i({dropNode:Z,dropPosition:1})?k=1:N=!1:i({dropNode:Z,dropPosition:1})?k=1:N=!1,{dropPosition:k,dropLevelOffset:S,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:E,dropContainerKey:0===k?null:(null===(l=m.parent)||void 0===l?void 0:l.key)||null,dropAllowed:N}}function $(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function V(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,S.Z)(e))return x(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Y(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=t[e];if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,s.Z)(n)}function X(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t}var J=p(34738);function Q(e,t){"function"==typeof e?e(t):"object"===(0,S.Z)(e)&&e&&"current"in e&&(e.current=t)}function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){Q(t,e)}))}}var te=p(92268),ne=p.n(te);function re(e){return e instanceof HTMLElement?e:ne().findDOMNode(e)}var oe=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),ie="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ae=void 0!==p.g&&p.g.Math===Math?p.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),se="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ae):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ce=["top","right","bottom","left","width","height","size","weight"],ue="undefined"!=typeof MutationObserver,le=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){se(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(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(){ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ue?(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(){ie&&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;ce.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}(),de=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},fe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ae},pe=be(0,0,0,0);function he(e){return parseFloat(e)||0}function ve(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+he(e["border-"+n+"-width"])}),0)}function ye(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return pe;var r=fe(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=he(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=he(r.width),c=he(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=ve(r,"left","right")+i),Math.round(c+a)!==n&&(c-=ve(r,"top","bottom")+a)),!function(e){return e===fe(e).document.documentElement}(e)){var u=Math.round(s+i)-t,l=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return be(o.left,o.top,s,c)}var me="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof fe(e).SVGGraphicsElement}:function(e){return e instanceof fe(e).SVGElement&&"function"==typeof e.getBBox};function ge(e){return ie?me(e)?function(e){var t=e.getBBox();return be(0,0,t.width,t.height)}(e):ye(e):pe}function be(e,t,n,r){return{x:e,y:t,width:n,height:r}}var xe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=be(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ge(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}(),we=function(e,t){var n,r,o,i,a,s,c,u=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),de(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);de(this,{target:e,contentRect:u})},Ee=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new oe,"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 fe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new xe(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 fe(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 we(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}(),ke="undefined"!=typeof WeakMap?new WeakMap:new oe,Se=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=le.getInstance(),r=new Ee(t,n,this);ke.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Se.prototype[e]=function(){var t;return(t=ke.get(this))[e].apply(t,arguments)}}));var Oe=void 0!==ae.ResizeObserver?ae.ResizeObserver:Se,Ce=new Map;var Ze=new Oe((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Ce.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var Ne=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,c.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(n.Component),Pe=n.createContext(null);function Re(e){var t,r,o,i,s=e.children,c=e.disabled,u=n.useRef(null),l=n.useRef(null),d=n.useContext(Pe),f=n.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=n.isValidElement(s)&&(t=s,!("function"==typeof(i=(0,Z.isMemo)(t)?t.type.type:t.type)&&!(null===(r=i.prototype)||void 0===r?void 0:r.render)||"function"==typeof t&&!(null===(o=t.prototype)||void 0===o?void 0:o.render))),h=p?s.ref:null,v=n.useMemo((function(){return ee(h,u)}),[h,u]),y=n.useRef(e);y.current=e;var m=n.useCallback((function(e){var t=y.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,c=e.offsetWidth,u=e.offsetHeight,l=Math.floor(i),p=Math.floor(s);if(f.current.width!==l||f.current.height!==p||f.current.offsetWidth!==c||f.current.offsetHeight!==u){var h={width:l,height:p,offsetWidth:c,offsetHeight:u};f.current=h;var v=c===Math.round(i)?i:c,m=u===Math.round(s)?s:u,g=(0,a.Z)((0,a.Z)({},h),{},{offsetWidth:v,offsetHeight:m});null==d||d(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return n.useEffect((function(){var e,t,n=re(u.current)||re(l.current);return n&&!c&&(e=n,t=m,Ce.has(e)||(Ce.set(e,new Set),Ze.observe(e)),Ce.get(e).add(t)),function(){return function(e,t){Ce.has(e)&&(Ce.get(e).delete(t),Ce.get(e).size||(Ze.unobserve(e),Ce.delete(e)))}(n,m)}}),[u.current,c]),n.createElement(Ne,{ref:l},p?n.cloneElement(s,{ref:v}):s)}function Te(e){return N(e.children).map((function(t,r){var i=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(r);return n.createElement(Re,(0,o.Z)({},e,{key:i}),t)}))}Te.Collection=function(e){var t=e.children,r=e.onBatchResize,o=n.useRef(0),i=n.useRef([]),a=n.useContext(Pe),s=n.useCallback((function(e,t,n){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){s===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return n.createElement(Pe.Provider,{value:s},t)};var Me=Te;function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){De(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=n.forwardRef((function(e,t){var r=e.height,o=e.offset,i=e.children,a=e.prefixCls,s=e.onInnerResize,c={},u={display:"flex",flexDirection:"column"};return void 0!==o&&(c={height:r,position:"relative",overflow:"hidden"},u=Le(Le({},u),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),n.createElement("div",{style:c},n.createElement(Me,{onResize:function(e){e.offsetHeight&&s&&s()}},n.createElement("div",{style:u,className:E()(De({},"".concat(a,"-holder-inner"),a)),ref:t},i)))}));Ke.displayName="Filler";var je=Ke,_e=function(e){return+setTimeout(e,16)},Ie=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(_e=function(e){return window.requestAnimationFrame(e)},Ie=function(e){return window.cancelAnimationFrame(e)});var Fe=0,He=new Map;function Ue(e){He.delete(e)}function ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Fe+=1;function r(t){if(0===t)Ue(n),e();else{var o=_e((function(){r(t-1)}));He.set(n,o)}}return r(t),n}function Be(e){return Be="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},Be(e)}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $e(e,t){return $e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$e(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xe(e);if(t){var o=Xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(e,t){if(t&&("object"===Be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}ze.cancel=function(e){var t=He.get(e);return Ue(t),Ie(t)};function Je(e){return"touches"in e?e.touches[0].pageY:e.pageY}var Qe=function(e){!function(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}}),t&&$e(e,t)}(a,e);var t,r,o,i=Ve(a);function a(){var e;Ge(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).moveRaf=null,e.scrollbarRef=n.createRef(),e.thumbRef=n.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),e.scrollbarRef.current.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp),ze.cancel(e.moveRaf)},e.onMouseDown=function(t){var n=e.props.onStartMove;e.setState({dragging:!0,pageY:Je(t),startTop:e.getTop()}),n(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var n=e.state,r=n.dragging,o=n.pageY,i=n.startTop,a=e.props.onScroll;if(ze.cancel(e.moveRaf),r){var s=i+(Je(t)-o),c=e.getEnableScrollRange(),u=e.getEnableHeightRange(),l=u?s/u:0,d=Math.ceil(l*c);e.moveRaf=ze((function(){a(d)}))}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,n=t.height,r=n/t.count*10;return r=Math.max(r,20),r=Math.min(r,n/2),Math.floor(r)},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var t=e.props.scrollTop,n=e.getEnableScrollRange(),r=e.getEnableHeightRange();return 0===t||0===n?0:t/n*r},e.showScroll=function(){var t=e.props,n=t.height;return t.scrollHeight>n},e}return t=a,(r=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,r=e.visible,o=this.props.prefixCls,i=this.getSpinHeight(),a=this.getTop(),s=this.showScroll(),c=s&&r;return n.createElement("div",{ref:this.scrollbarRef,className:E()("".concat(o,"-scrollbar"),We({},"".concat(o,"-scrollbar-show"),s)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:c?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},n.createElement("div",{ref:this.thumbRef,className:E()("".concat(o,"-scrollbar-thumb"),We({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&qe(t.prototype,r),o&&qe(t,o),a}(n.Component);function et(e){var t=e.children,r=e.setRef,o=n.useCallback((function(e){r(e)}),[]);return n.cloneElement(t,{ref:o})}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maps=void 0,this.maps=Object.create(null)}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}])&&tt(t.prototype,n),r&&tt(t,r),e}();function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return st(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return st(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ct(e,t,r){var o=at(n.useState(e),2),i=o[0],a=o[1],s=at(n.useState(null),2),c=s[0],u=s[1];return n.useEffect((function(){var n=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):s}for(var u=null,l=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){u=d,l=l||f!==c(o[d+1]);break}}return null===u?null:{index:u,multiple:l}}(i||[],e||[],t);void 0!==(null==n?void 0:n.index)&&(null==r||r(n.index),u(e[n.index])),a(e)}),[e]),[c]}function ut(e){return ut="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},ut(e)}var lt="object"===("undefined"==typeof navigator?"undefined":ut(navigator))&&/Firefox/i.test(navigator.userAgent),dt=function(e,t){var r=(0,n.useRef)(!1),o=(0,n.useRef)(null);function i(){clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)}var a=(0,n.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e<0&&a.current.top||e>0&&a.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||i(),!r.current&&n}};var ft=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function pt(){return pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(this,arguments)}function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xt=[],wt={overflowY:"auto",overflowAnchor:"none"};function Et(e,t){var r=e.prefixCls,o=void 0===r?"rc-virtual-list":r,i=e.className,a=e.height,s=e.itemHeight,c=e.fullHeight,u=void 0===c||c,l=e.style,d=e.data,f=e.children,p=e.itemKey,h=e.virtual,v=e.component,y=void 0===v?"div":v,m=e.onScroll,g=e.onVisibleChange,b=bt(e,ft),x=!(!1===h||!a||!s),w=x&&d&&s*d.length>a,k=mt((0,n.useState)(0),2),S=k[0],O=k[1],C=mt((0,n.useState)(!1),2),Z=C[0],N=C[1],P=E()(o,i),R=d||xt,T=(0,n.useRef)(),M=(0,n.useRef)(),A=(0,n.useRef)(),L=n.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),D={getKey:L};function K(e){O((function(t){var n=function(e){var t=e;Number.isNaN(J.current)||(t=Math.min(t,J.current));return t=Math.max(t,0)}("function"==typeof e?e(t):e);return T.current.scrollTop=n,n}))}var j=(0,n.useRef)({start:0,end:R.length}),_=(0,n.useRef)(),I=mt(ct(R,L),1)[0];_.current=I;var F=function(e,t,r){var o=rt(n.useState(0),2),i=o[0],a=o[1],s=(0,n.useRef)(new Map),c=(0,n.useRef)(new nt),u=(0,n.useRef)(0);function l(){u.current+=1;var e=u.current;Promise.resolve().then((function(){e===u.current&&(s.current.forEach((function(e,t){if(e&&e.offsetParent){var n=re(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1})))}))}return[function(n,o){var i=e(n),a=s.current.get(i);o?(s.current.set(i,o),l()):s.current.delete(i),!a!=!o&&(o?null==t||t(n):null==r||r(n))},l,c.current,i]}(L,null,null),H=mt(F,4),U=H[0],z=H[1],B=H[2],W=H[3],G=n.useMemo((function(){if(!x)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};var e;if(!w)return{scrollHeight:(null===(e=M.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:R.length-1,offset:void 0};for(var t,n,r,o=0,i=R.length,c=0;c<i;c+=1){var u=R[c],l=L(u),d=B.get(l),f=o+(void 0===d?s:d);f>=S&&void 0===t&&(t=c,n=o),f>S+a&&void 0===r&&(r=c),o=f}return void 0===t&&(t=0,n=0),void 0===r&&(r=R.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,R.length),offset:n}}),[w,x,S,R,W,a]),q=G.scrollHeight,$=G.start,V=G.end,Y=G.offset;j.current.start=$,j.current.end=V;var X=q-a,J=(0,n.useRef)(X);J.current=X;var Q=S<=0,ee=S>=X,te=dt(Q,ee);var ne=function(e,t,r,o){var i=(0,n.useRef)(0),a=(0,n.useRef)(null),s=(0,n.useRef)(null),c=(0,n.useRef)(!1),u=dt(t,r);return[function(t){if(e){ze.cancel(a.current);var n=t.deltaY;i.current+=n,s.current=n,u(n)||(lt||t.preventDefault(),a.current=ze((function(){var e=c.current?10:1;o(i.current*e),i.current=0})))}},function(t){e&&(c.current=t.detail===s.current)}]}(x,Q,ee,(function(e){K((function(t){return t+e}))})),oe=mt(ne,2),ie=oe[0],ae=oe[1];!function(e,t,r){var o,i=(0,n.useRef)(!1),a=(0,n.useRef)(0),s=(0,n.useRef)(null),c=(0,n.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),n=a.current-t;a.current=t,r(n)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!r(n*=.9333333333333333,!0)||Math.abs(n)<=.1)&&clearInterval(c.current)}),16)}},l=function(){i.current=!1,o()},d=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",u),s.current.addEventListener("touchend",l))};o=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",l))},n.useLayoutEffect((function(){return e&&t.current.addEventListener("touchstart",d),function(){t.current.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(x,T,(function(e,t){return!te(e,t)&&(ie({preventDefault:function(){},deltaY:e}),!0)})),(0,n.useLayoutEffect)((function(){function e(e){x&&e.preventDefault()}return T.current.addEventListener("wheel",ie),T.current.addEventListener("DOMMouseScroll",ae),T.current.addEventListener("MozMousePixelScroll",e),function(){T.current.removeEventListener("wheel",ie),T.current.removeEventListener("DOMMouseScroll",ae),T.current.removeEventListener("MozMousePixelScroll",e)}}),[x]);var se=function(e,t,r,o,i,a,s,c){var u=n.useRef();return function(n){if(null!=n){if(ze.cancel(u.current),"number"==typeof n)s(n);else if(n&&"object"===it(n)){var l,d=n.align;l="index"in n?n.index:t.findIndex((function(e){return i(e)===n.key}));var f=n.offset,p=void 0===f?0:f;!function n(c,f){if(!(c<0)&&e.current){var h=e.current.clientHeight,v=!1,y=f;if(h){for(var m=f||d,g=0,b=0,x=0,w=Math.min(t.length,l),E=0;E<=w;E+=1){var k=i(t[E]);b=g;var S=r.get(k);g=x=b+(void 0===S?o:S),E===l&&void 0===S&&(v=!0)}var O=null;switch(m){case"top":O=b-p;break;case"bottom":O=x-h+p;break;default:var C=e.current.scrollTop;b<C?y="top":x>C+h&&(y="bottom")}null!==O&&O!==e.current.scrollTop&&s(O)}u.current=ze((function(){v&&a(),n(c-1,y)}))}}(3)}}else c()}}(T,R,B,s,L,z,K,(function(){var e;null===(e=A.current)||void 0===e||e.delayHidden()}));n.useImperativeHandle(t,(function(){return{scrollTo:se}})),(0,n.useLayoutEffect)((function(){if(g){var e=R.slice($,V+1);g(e,R)}}),[$,V,R]);var ce=function(e,t,r,o,i,a){var s=a.getKey;return e.slice(t,r+1).map((function(e,r){var a=i(e,t+r,{}),c=s(e);return n.createElement(et,{key:c,setRef:function(t){return o(e,t)}},a)}))}(R,$,V,U,f,D),ue=null;return a&&(ue=vt(yt({},u?"height":"maxHeight",a),wt),x&&(ue.overflowY="hidden",Z&&(ue.pointerEvents="none"))),n.createElement("div",pt({style:vt(vt({},l),{},{position:"relative"}),className:P},b),n.createElement(y,{className:"".concat(o,"-holder"),style:ue,ref:T,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==S&&K(t),null==m||m(e)}},n.createElement(je,{prefixCls:o,height:q,offset:Y,onInnerResize:z,ref:M},ce)),x&&n.createElement(Qe,{ref:A,prefixCls:o,scrollTop:S,height:a,scrollHeight:q,count:R.length,onScroll:function(e){K(e)},onStartMove:function(){N(!0)},onStopMove:function(){N(!1)}}))}var kt=n.forwardRef(Et);kt.displayName="List";var St=kt;function Ot(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ct(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 Zt,Nt,Pt,Rt=(Zt=Ot(),Nt="undefined"!=typeof window?window:{},Pt={animationend:Ct("Animation","AnimationEnd"),transitionend:Ct("Transition","TransitionEnd")},Zt&&("AnimationEvent"in Nt||delete Pt.animationend.animation,"TransitionEvent"in Nt||delete Pt.transitionend.transition),Pt),Tt={};if(Ot()){var Mt=document.createElement("div");Tt=Mt.style}var At={};function Lt(e){if(At[e])return At[e];var t=Rt[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Tt)return At[e]=t[i],At[e]}return""}var Dt=Lt("animationend"),Kt=Lt("transitionend"),jt=!(!Dt||!Kt),_t=Dt||"animationend",It=Kt||"transitionend";function Ft(e,t){return e?"object"===(0,S.Z)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var Ht="none",Ut="appear",zt="enter",Bt="leave",Wt="none",Gt="prepare",qt="start",$t="active",Vt="end";function Yt(e){var t=(0,n.useRef)(!1),r=(0,n.useState)(e),o=(0,J.Z)(r,2),i=o[0],a=o[1];return(0,n.useEffect)((function(){return function(){t.current=!0}}),[]),[i,function(e){t.current||a(e)}]}var Xt=Ot()?n.useLayoutEffect:n.useEffect,Jt=[Gt,qt,$t,Vt];function Qt(e){return e===$t||e===Vt}var en=function(e,t){var r=n.useState(Wt),o=(0,J.Z)(r,2),i=o[0],a=o[1],s=function(){var e=n.useRef(null);function t(){ze.cancel(e.current)}return n.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=ze((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=(0,J.Z)(s,2),u=c[0],l=c[1];return Xt((function(){if(i!==Wt&&i!==Vt){var e=Jt.indexOf(i),n=Jt[e+1],r=t(i);false===r?a(n):u((function(e){function t(){e.isCanceled()||a(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),n.useEffect((function(){return function(){l()}}),[]),[function(){a(Gt)},i]};function tn(e,t,r,o){var s=o.motionEnter,c=void 0===s||s,u=o.motionAppear,l=void 0===u||u,d=o.motionLeave,f=void 0===d||d,p=o.motionDeadline,h=o.motionLeaveImmediately,v=o.onAppearPrepare,y=o.onEnterPrepare,m=o.onLeavePrepare,g=o.onAppearStart,b=o.onEnterStart,x=o.onLeaveStart,w=o.onAppearActive,E=o.onEnterActive,k=o.onLeaveActive,S=o.onAppearEnd,O=o.onEnterEnd,C=o.onLeaveEnd,Z=o.onVisibleChanged,N=Yt(),P=(0,J.Z)(N,2),R=P[0],T=P[1],M=Yt(Ht),A=(0,J.Z)(M,2),L=A[0],D=A[1],K=Yt(null),j=(0,J.Z)(K,2),_=j[0],I=j[1],F=(0,n.useRef)(!1),H=(0,n.useRef)(null),U=(0,n.useRef)(!1),z=(0,n.useRef)(null);function B(){return r()||z.current}var W=(0,n.useRef)(!1);function G(e){var t,n=B();e&&!e.deadline&&e.target!==n||(L===Ut&&W.current?t=null==S?void 0:S(n,e):L===zt&&W.current?t=null==O?void 0:O(n,e):L===Bt&&W.current&&(t=null==C?void 0:C(n,e)),!1===t||U.current||(D(Ht),I(null)))}var q=function(e){var t=(0,n.useRef)(),r=(0,n.useRef)(e);r.current=e;var o=n.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(It,o),e.removeEventListener(_t,o))}return n.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(It,o),e.addEventListener(_t,o),t.current=e)},i]}(G),$=(0,J.Z)(q,1)[0],V=n.useMemo((function(){var e,t,n;switch(L){case"appear":return e={},(0,i.Z)(e,Gt,v),(0,i.Z)(e,qt,g),(0,i.Z)(e,$t,w),e;case"enter":return t={},(0,i.Z)(t,Gt,y),(0,i.Z)(t,qt,b),(0,i.Z)(t,$t,E),t;case"leave":return n={},(0,i.Z)(n,Gt,m),(0,i.Z)(n,qt,x),(0,i.Z)(n,$t,k),n;default:return{}}}),[L]),Y=en(L,(function(e){if(e===Gt){var t=V.prepare;return!!t&&t(B())}var n;ee in V&&I((null===(n=V[ee])||void 0===n?void 0:n.call(V,B(),null))||null);return ee===$t&&($(B()),p>0&&(clearTimeout(H.current),H.current=setTimeout((function(){G({deadline:!0})}),p))),true})),X=(0,J.Z)(Y,2),Q=X[0],ee=X[1],te=Qt(ee);W.current=te,Xt((function(){T(t);var n,r=F.current;(F.current=!0,e)&&(!r&&t&&l&&(n=Ut),r&&t&&c&&(n=zt),(r&&!t&&f||!r&&h&&!t&&f)&&(n=Bt),n&&(D(n),Q()))}),[t]),(0,n.useEffect)((function(){(L===Ut&&!l||L===zt&&!c||L===Bt&&!f)&&D(Ht)}),[l,c,f]),(0,n.useEffect)((function(){return function(){clearTimeout(H.current),U.current=!0}}),[]),(0,n.useEffect)((function(){void 0!==R&&L===Ht&&(null==Z||Z(R))}),[R,L]);var ne=_;return V.prepare&&ee===qt&&(ne=(0,a.Z)({transition:"none"},ne)),[L,ee,ne,null!=R?R:t]}var nn=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,c.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(n.Component),rn=nn;var on=function(e){var t=e;function r(e){return!(!e.motionName||!t)}"object"===(0,S.Z)(e)&&(t=e.transitionSupport);var o=n.forwardRef((function(e,t){var o=e.visible,s=void 0===o||o,c=e.removeOnLeave,u=void 0===c||c,l=e.forceRender,d=e.children,f=e.motionName,p=e.leavedClassName,h=e.eventProps,v=r(e),y=(0,n.useRef)(),m=(0,n.useRef)();var g=tn(v,s,(function(){try{return re(y.current||m.current)}catch(e){return null}}),e),b=(0,J.Z)(g,4),x=b[0],w=b[1],k=b[2],S=b[3],O=n.useRef(S);S&&(O.current=!0);var C=(0,n.useRef)(t);C.current=t;var Z,N=n.useCallback((function(e){y.current=e,Q(C.current,e)}),[]),P=(0,a.Z)((0,a.Z)({},h),{},{visible:s});if(d)if(x!==Ht&&r(e)){var R,T;w===Gt?T="prepare":Qt(w)?T="active":w===qt&&(T="start"),Z=d((0,a.Z)((0,a.Z)({},P),{},{className:E()(Ft(f,x),(R={},(0,i.Z)(R,Ft(f,"".concat(x,"-").concat(T)),T),(0,i.Z)(R,f,"string"==typeof f),R)),style:k}),N)}else Z=S?d((0,a.Z)({},P),N):!u&&O.current?d((0,a.Z)((0,a.Z)({},P),{},{className:p}),N):l?d((0,a.Z)((0,a.Z)({},P),{},{style:{display:"none"}}),N):null;else Z=null;return n.createElement(rn,{ref:m},Z)}));return o.displayName="CSSMotion",o}(jt),an="add",sn="keep",cn="remove",un="removed";function ln(e){var t;return t=e&&"object"===(0,S.Z)(e)&&"key"in e?e:{key:e},(0,a.Z)((0,a.Z)({},t),{},{key:String(t.key)})}function dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ln)}function fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=dn(e),s=dn(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var c=s[i];if(c.key===e.key){r<i&&(n=n.concat(s.slice(r,i).map((function(e){return(0,a.Z)((0,a.Z)({},e),{},{status:an})}))),r=i),n.push((0,a.Z)((0,a.Z)({},c),{},{status:sn})),r+=1,t=!0;break}}t||n.push((0,a.Z)((0,a.Z)({},e),{},{status:cn}))})),r<o&&(n=n.concat(s.slice(r).map((function(e){return(0,a.Z)((0,a.Z)({},e),{},{status:an})}))));var c={};n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1}));var u=Object.keys(c).filter((function(e){return c[e]>1}));return u.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==cn}))).forEach((function(t){t.key===e&&(t.status=sn)}))})),n}var pn=["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]:on,r=function(e){(0,d.Z)(i,e);var r=(0,f.Z)(i);function i(){var e;return(0,c.Z)(this,i),(e=r.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,a.Z)((0,a.Z)({},e),{},{status:un})}))}}))},e}return(0,u.Z)(i,[{key:"render",value:function(){var e=this,r=this.state.keyEntities,i=this.props,a=i.component,s=i.children,c=i.onVisibleChanged,u=(0,O.Z)(i,["component","children","onVisibleChanged"]),l=a||n.Fragment,d={};return pn.forEach((function(e){d[e]=u[e],delete u[e]})),delete u.keys,n.createElement(l,u,r.map((function(r){var i=r.status,a=(0,O.Z)(r,["status"]),u=i===an||i===sn;return n.createElement(t,(0,o.Z)({},d,{key:a.key,visible:u,eventProps:a,onVisibleChanged:function(t){null==c||c(t,{key:a.key}),t||e.removeKey(a.key)}}),s)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=dn(n);return{keyEntities:fn(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==un||e.status!==cn}))}}}]),i}(n.Component);r.defaultProps={component:"div"}}(jt);var hn=on,vn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],yn=["key"],mn=function(e,t){var r=e.className,i=e.style,a=e.motion,s=e.motionNodes,c=e.motionType,u=e.onMotionStart,l=e.onMotionEnd,d=e.active,f=e.treeNodeRequiredProps,p=(0,O.Z)(e,vn),h=n.useState(!0),v=(0,J.Z)(h,2),y=v[0],m=v[1],g=n.useContext(k).prefixCls,b=n.useRef(!1),x=function(){b.current||l(),b.current=!0};return(0,n.useEffect)((function(){s&&"hide"===c&&y&&m(!1)}),[s]),(0,n.useEffect)((function(){return s&&u(),function(){s&&x()}}),[]),s?n.createElement(hn,(0,o.Z)({ref:t,visible:y},a,{motionAppear:"show"===c,onAppearEnd:x,onLeaveEnd:x}),(function(e,t){var r=e.className,i=e.style;return n.createElement("div",{ref:t,className:E()("".concat(g,"-treenode-motion"),r),style:i},s.map((function(e){var t=e.data,r=t.key,i=(0,O.Z)(t,yn),a=e.isStart,s=e.isEnd;delete i.children;var c=A(r,f);return n.createElement(F,(0,o.Z)({},i,c,{active:d,data:e.data,key:r,isStart:a,isEnd:s}))})))})):n.createElement(F,(0,o.Z)({domRef:t,className:r,style:i},p,{active:d}))};mn.displayName="MotionTreeNode";var gn=n.forwardRef(mn);function bn(e,t,n){var r=e.findIndex((function(e){return e.data.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.data.key===n}));if(o){var a=t.findIndex((function(e){return e.data.key===o.data.key}));return t.slice(i+1,a)}return t.slice(i+1)}var xn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],wn=["key"],En={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},kn=function(){},Sn="RC_TREE_MOTION_".concat(Math.random()),On={key:Sn},Cn={key:Sn,level:0,index:0,pos:"0",node:On},Zn={parent:null,children:[],pos:Cn.pos,data:On,isStart:[],isEnd:[]};function Nn(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function Pn(e){return R(e.data.key,e.pos)}var Rn=function(e,t){var r=e.prefixCls,i=e.data,a=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,l=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,h=e.dragging,v=e.dragOverNodeKey,y=e.dropPosition,m=e.motion,g=e.height,b=e.itemHeight,x=e.virtual,w=e.focusable,E=e.activeItem,k=e.focused,S=e.tabIndex,C=e.onKeyDown,Z=e.onFocus,N=e.onBlur,P=e.onActiveChange,T=e.onListChangeStart,M=e.onListChangeEnd,L=(0,O.Z)(e,xn),D=n.useRef(null),K=n.useRef(null);n.useImperativeHandle(t,(function(){return{scrollTo:function(e){D.current.scrollTo(e)},getIndentWidth:function(){return K.current.offsetWidth}}}));var j=n.useState(a),_=(0,J.Z)(j,2),I=_[0],F=_[1],H=n.useState(i),U=(0,J.Z)(H,2),z=U[0],B=U[1],W=n.useState(i),G=(0,J.Z)(W,2),q=G[0],$=G[1],V=n.useState([]),Y=(0,J.Z)(V,2),X=Y[0],Q=Y[1],ee=n.useState(null),te=(0,J.Z)(ee,2),ne=te[0],re=te[1];function oe(){B(i),$(i),Q([]),re(null),M()}n.useEffect((function(){F(a);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(I,a);if(null!==e.key)if(e.add){var t=z.findIndex((function(t){return t.data.key===e.key})),n=Nn(bn(z,i,e.key),x,g,b),r=z.slice();r.splice(t+1,0,Zn),$(r),Q(n),re("show")}else{var o=i.findIndex((function(t){return t.data.key===e.key})),s=Nn(bn(i,z,e.key),x,g,b),c=i.slice();c.splice(o+1,0,Zn),$(c),Q(s),re("hide")}else z!==i&&(B(i),$(i))}),[a,i]),n.useEffect((function(){h||oe()}),[h]);var ie=m?q:i,ae={expandedKeys:a,selectedKeys:s,loadedKeys:u,loadingKeys:l,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:v,dropPosition:y,keyEntities:f};return n.createElement(n.Fragment,null,k&&E&&n.createElement("span",{style:En,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(E)),n.createElement("div",{role:"tree"},n.createElement("input",{style:En,disabled:!1===w||p,tabIndex:!1!==w?S:null,onKeyDown:C,onFocus:Z,onBlur:N,value:"",onChange:kn})),n.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},n.createElement("div",{className:"".concat(r,"-indent")},n.createElement("div",{ref:K,className:"".concat(r,"-indent-unit")}))),n.createElement(St,(0,o.Z)({},L,{data:ie,itemKey:Pn,height:g,fullHeight:!1,virtual:x,itemHeight:b,prefixCls:"".concat(r,"-list"),ref:D}),(function(e){var t=e.pos,r=e.data,i=r.key,a=(0,O.Z)(r,wn),s=e.isStart,c=e.isEnd,u=R(i,t);delete a.children;var l=A(u,ae);return n.createElement(gn,(0,o.Z)({},a,l,{active:!!E&&i===E.data.key,pos:t,data:e.data,isStart:s,isEnd:c,motion:m,motionNodes:i===Sn?X:null,motionType:ne,onMotionStart:T,onMotionEnd:oe,treeNodeRequiredProps:ae,onMouseMove:function(){P(null)}}))})))},Tn=n.forwardRef(Rn);Tn.displayName="NodeList";var Mn=Tn;function An(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Ln(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Dn(e,t,n,r){var o,i=[];o=r||Ln;var a,s=new Set(e.filter((function(e){var t=!!n[e];return t||i.push(e),t}))),c=new Map,u=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),u=Math.max(u,r)})),x(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var s=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&o.add(t.key),c&&i.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(An(i,o))}}(s,c,u,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||s.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,u=r;u>=0;u-=1)(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),s||!n&&!a.has(t)||(s=!0)})),r||i.delete(t.key),s&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(An(a,i))}}(s,t.halfCheckedKeys,c,u,o),a}var Kn=function(e){(0,d.Z)(r,e);var t=(0,f.Z)(r);function r(){var e;(0,c.Z)(this,r);for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(e=t.call.apply(t,[this].concat(i))).destroyed=!1,e.delayedDragEnterLogic=void 0,e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},e.dragStartMousePosition=null,e.dragNode=void 0,e.listRef=n.createRef(),e.onNodeDragStart=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,s=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=H(o,s);e.setState({dragging:!0,dragChildrenKeys:W(s,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),a&&a({event:t,node:L(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,c=r.flattenNodes,u=r.indent,d=e.props,f=d.onDragEnter,p=d.onExpand,h=d.allowDrop,v=d.direction,y=n.props.pos,m=(0,l.Z)(e).dragNode,g=q(t,0,n,u,e.dragStartMousePosition,h,c,i,o,v),b=g.dropPosition,x=g.dropLevelOffset,w=g.dropTargetKey,E=g.dropContainerKey,k=g.dropTargetPos,S=g.dropAllowed,O=g.dragOverNodeKey;m&&-1===a.indexOf(w)&&S?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),m.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[y]=window.setTimeout((function(){if(e.state.dragging){var r=(0,s.Z)(o),a=i[n.props.eventKey];a&&(a.children||[]).length&&(r=U(o,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),p&&p(r,{node:L(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),m.props.eventKey!==w||0!==x?(e.setState({dragOverNodeKey:O,dropPosition:b,dropLevelOffset:x,dropTargetKey:w,dropContainerKey:E,dropTargetPos:k,dropAllowed:S}),f&&f({event:t,node:L(n.props),expandedKeys:o})):e.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})):e.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},e.onNodeDragOver=function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,s=r.expandedKeys,c=r.indent,u=e.props,d=u.onDragOver,f=u.allowDrop,p=u.direction,h=(0,l.Z)(e).dragNode,v=q(t,0,n,c,e.dragStartMousePosition,f,i,a,s,p),y=v.dropPosition,m=v.dropLevelOffset,g=v.dropTargetKey,b=v.dropContainerKey,x=v.dropAllowed,w=v.dropTargetPos,E=v.dragOverNodeKey;h&&-1===o.indexOf(g)&&x&&(h.props.eventKey===g&&0===m?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.setState({dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1,dragOverNodeKey:null}):y===e.state.dropPosition&&m===e.state.dropLevelOffset&&g===e.state.dropTargetKey&&b===e.state.dropContainerKey&&w===e.state.dropTargetPos&&x===e.state.dropAllowed&&E===e.state.dragOverNodeKey||e.setState({dropPosition:y,dropLevelOffset:m,dropTargetKey:g,dropContainerKey:b,dropTargetPos:w,dropAllowed:x,dragOverNodeKey:E}),d&&d({event:t,node:L(n.props)}))},e.onNodeDragLeave=function(t,n){var r=e.props.onDragLeave;r&&r({event:t,node:L(n.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),o&&!r&&o({event:t,node:L(n.props)}),e.dragNode=null},e.onNodeDrop=function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,s=i.dragChildrenKeys,c=i.dropPosition,u=i.dropTargetKey,l=i.dropTargetPos,d=i.dropAllowed;if(d){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==u){var p=(0,a.Z)((0,a.Z)({},A(u,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.data.key)===u,data:e.state.keyEntities[u].node}),h=-1!==s.indexOf(u);x(!h,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=z(l),y={event:t,node:L(p),dragNode:e.dragNode?L(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(s),dropToGap:0!==c,dropPosition:c+Number(v[v.length-1])};f&&!o&&f(y),e.dragNode=null}}},e.cleanDragState=function(){e.state.dragging&&e.setState({dragging:!1,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null},e.onNodeClick=function(t,n){var r=e.props.onClick;r&&r(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props.onDoubleClick;r&&r(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,o=e.state.keyEntities,i=e.props,a=i.onSelect,s=i.multiple,c=n.selected,u=n.key,l=!c,d=(r=l?s?U(r,u):[u]:H(r,u)).map((function(e){var t=o[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),a&&a(r,{event:"select",selected:l,node:n,selectedNodes:d,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var o,i=e.state,a=i.keyEntities,c=i.checkedKeys,u=i.halfCheckedKeys,l=e.props,d=l.checkStrictly,f=l.onCheck,p=n.key,h={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var v=r?U(c,p):H(c,p);o={checked:v,halfChecked:H(u,p)},h.checkedNodes=v.map((function(e){return a[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:v})}else{var y=Dn([].concat((0,s.Z)(c),[p]),!0,a),m=y.checkedKeys,g=y.halfCheckedKeys;if(!r){var b=new Set(m);b.delete(p);var x=Dn(Array.from(b),{checked:!1,halfCheckedKeys:g},a);m=x.checkedKeys,g=x.halfCheckedKeys}o=m,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=g,m.forEach((function(e){var t=a[e];if(t){var n=t.node,r=t.pos;h.checkedNodes.push(n),h.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:g})}f&&f(o,h)},e.onNodeLoad=function(t){return new Promise((function(n,r){e.setState((function(o){var i=o.loadedKeys,a=void 0===i?[]:i,s=o.loadingKeys,c=void 0===s?[]:s,u=e.props,l=u.loadData,d=u.onLoad,f=t.key;return l&&-1===a.indexOf(f)&&-1===c.indexOf(f)?(l(t).then((function(){var r=e.state,o=r.loadedKeys,i=r.loadingKeys,a=U(o,f),s=H(i,f);d&&d(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState({loadingKeys:s}),n()})).catch((function(t){var n=H(e.state.loadingKeys,f);e.setState({loadingKeys:n}),r(t)})),{loadingKeys:U(c,f)}):null}))}))},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;r&&r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;r&&r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0}),t&&t.apply(void 0,arguments)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null),t&&t.apply(void 0,arguments)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=T(e.state.treeData,t);e.setUncontrolledState({expandedKeys:t,flattenNodes:n},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,o=e.state.listChanging,i=e.props,a=i.onExpand,s=i.loadData,c=n.key,u=n.expanded;if(!o){var l=r.indexOf(c),d=!u;if(x(u&&-1!==l||!u&&-1===l,"Expand state not sync with index check"),r=d?U(r,c):H(r,c),e.setExpandedKeys(r),a&&a(r,{node:n,expanded:d,nativeEvent:t.nativeEvent}),d&&s){var f=e.onNodeLoad(n);f&&f.then((function(){var t=T(e.state.treeData,r);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=H(e.state.expandedKeys,c);e.setExpandedKeys(t)}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),r&&r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.data.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.data.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var s=a.data.key;e.onActiveChange(s)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,s=e.props,c=s.onKeyDown,u=s.checkable,l=s.selectable;switch(t.which){case y.UP:e.offsetActiveKey(-1),t.preventDefault();break;case y.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data.children||[]).length,h=L((0,a.Z)((0,a.Z)({},A(r,f)),{},{data:d.data,active:!0}));switch(t.which){case y.LEFT:p&&o.includes(r)?e.onNodeExpand({},h):d.parent&&e.onActiveChange(d.parent.data.key),t.preventDefault();break;case y.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},h):d.children&&d.children.length&&e.onActiveChange(d.children[0].data.key),t.preventDefault();break;case y.ENTER:case y.SPACE:!u||h.disabled||!1===h.checkable||h.disableCheckbox?u||!l||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(r))}}c&&c(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,s={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,s[n]=t[n])})),!o||n&&!i||e.setState((0,a.Z)((0,a.Z)({},s),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,u.Z)(r,[{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"render",value:function(){var e,t=this.state,r=t.focused,a=t.flattenNodes,s=t.keyEntities,c=t.dragging,u=t.activeKey,l=t.dropLevelOffset,d=t.dropContainerKey,f=t.dropTargetKey,p=t.dropPosition,h=t.dragOverNodeKey,v=t.indent,y=this.props,m=y.prefixCls,g=y.className,b=y.style,x=y.showLine,w=y.focusable,S=y.tabIndex,O=void 0===S?0:S,C=y.selectable,Z=y.showIcon,N=y.icon,P=y.switcherIcon,R=y.draggable,T=y.checkable,M=y.checkStrictly,A=y.disabled,L=y.motion,D=y.loadData,K=y.filterTreeNode,j=y.height,_=y.itemHeight,I=y.virtual,F=y.titleRender,H=y.dropIndicatorRender,U=y.onContextMenu,z=y.direction,B=X(this.props);return n.createElement(k.Provider,{value:{prefixCls:m,selectable:C,showIcon:Z,icon:N,switcherIcon:P,draggable:R,checkable:T,checkStrictly:M,disabled:A,keyEntities:s,dropLevelOffset:l,dropContainerKey:d,dropTargetKey:f,dropPosition:p,dragOverNodeKey:h,indent:v,direction:z,dropIndicatorRender:H,loadData:D,filterTreeNode:K,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},n.createElement("div",{className:E()(m,g,(e={},(0,i.Z)(e,"".concat(m,"-show-line"),x),(0,i.Z)(e,"".concat(m,"-focused"),r),(0,i.Z)(e,"".concat(m,"-active-focused"),null!==u),e))},n.createElement(Mn,(0,o.Z)({ref:this.listRef,prefixCls:m,style:b,data:a,disabled:A,selectable:C,checkable:!!T,motion:L,dragging:c,height:j,itemHeight:_,virtual:I,focusable:w,focused:r,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U},this.getTreeNodeRequiredProps(),B))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function s(t){return!r&&t in e||r&&r[t]!==e[t]}if(s("treeData")?n=e.treeData:s("children")&&(x(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=function e(t){return N(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return x(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=(0,O.Z)(r,P),s=(0,a.Z)({key:n},i),c=e(o);return c.length&&(s.children=c),s})).filter((function(e){return e}))}(e.children)),n){o.treeData=n;var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=arguments.length>2?arguments[2]:void 0,c=i||s,u={},l={},d={posEntities:u,keyEntities:l};return n&&(d=n(d)||d),M(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,s={node:t,index:n,key:i,pos:o,level:e.level},c=R(i,o);u[o]=s,l[c]=s,s.parent=u[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,d)}),{externalGetKey:c,childrenPropName:a}),o&&o(d),d}(n);o.keyEntities=(0,a.Z)((0,i.Z)({},Sn,Cn),c.keyEntities)}var u,l=o.keyEntities||t.keyEntities;if(s("expandedKeys")||r&&s("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Y(e.expandedKeys,l):e.expandedKeys;else if(!r&&e.defaultExpandAll){var d=(0,a.Z)({},l);delete d[Sn],o.expandedKeys=Object.keys(d).map((function(e){return d[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Y(e.defaultExpandedKeys,l):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=T(n||t.treeData,o.expandedKeys||t.expandedKeys);o.flattenNodes=f}if((e.selectable&&(s("selectedKeys")?o.selectedKeys=$(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=$(e.defaultSelectedKeys,e))),e.checkable)&&(s("checkedKeys")?u=V(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=V(e.defaultCheckedKeys)||{}:n&&(u=V(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var p=u,h=p.checkedKeys,v=void 0===h?[]:h,y=p.halfCheckedKeys,m=void 0===y?[]:y;if(!e.checkStrictly){var g=Dn(v,!0,l);v=g.checkedKeys,m=g.halfCheckedKeys}o.checkedKeys=v,o.halfCheckedKeys=m}return s("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),r}(n.Component);Kn.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,r=e.dropLevelOffset,o=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o}return n.createElement("div",{style:i})},allowDrop:function(){return!0}},Kn.TreeNode=F;var jn=Kn,_n=p(86010);function In(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fn=function(e){var t=[];return function e(n){if("object"!=typeof n||!n)return n;for(var r=0;r<t.length;r++)if(t[r].target===n)return t[r].copyTarget;var o={};return Array.isArray(n)&&(o=[]),t.push({target:n,copyTarget:o}),Object.keys(n).forEach((function(t){o[t]||(o[t]=e(n[t]))})),o}(e)},Hn=function(e){return e?e.reduce((function(e,t){var n=t.children,r=void 0===n?[]:n,o=In(t,["children"]);return e.concat([o],Hn(r))}),[]):[]},Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{key:"key",parentId:"parentId"},n=[],r=e.reduce((function(e,n){return e[n[t.key]]=n,e}),{}),o=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var u=s.value,l=u[t.parentId];if(l in r){var d=r[l];d.children=d.children||[],d.children.push(u)}else n.push(u)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return n},zn=p(79787),Bn=p.n(zn),Wn=p(35648),Gn=p.n(Wn),qn=p(25033),$n=p.n(qn),Vn=p(4525);var Yn=function(){return{height:0,opacity:0}},Xn=function(e){return{height:e.scrollHeight,opacity:1}},Jn=function(e,t){return"height"===t.propertyName},Qn={motionName:"paraui-motion-collapse",onAppearStart:Yn,onEnterStart:Yn,onAppearActive:Xn,onEnterActive:Xn,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:Yn,onAppearEnd:Jn,onEnterEnd:Jn,onLeaveEnd:Jn,motionDeadline:500};var er=p(99760),tr=p.n(er),nr=p(46819),rr=p.n(nr),or=p(13042),ir=p.n(or),ar=p(45912),sr=p.n(ar),cr=p(5685),ur=p(73475);p(90019);function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dr(e,t,n[t])}))}return e}function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hr={add:{icon:r().createElement(rr(),null),text:"新增"},edit:{icon:r().createElement(tr(),null),text:"编辑"},enable:{icon:r().createElement(sr(),null),text:"禁用"},del:{icon:r().createElement(ir(),null),text:"删除"}},vr=function(e){var t,o=e.actionsCallback,i=e.opRef,a=e.mouseInRef,s=e.showActions,c=e.onRemove,u=(0,n.useRef)(null),l=(0,n.useRef)((0,ur.UUID)().replace(/-/g,"")),d=pr((0,n.useState)({}),2),f=d[0],p=d[1],h=pr((0,n.useState)(!1),2),v=h[0],y=h[1],m=pr((0,n.useState)(!1),2),g=m[0],b=m[1],x=i.current,w=function(e,t){return{left:Math.round(Math.sin(Math.PI/180*t)*e)+"px",top:-Math.round(Math.cos(Math.PI/180*t)*e+12)+"px"}},E=function(e,t){var n=0;return 4===e?n=t*60:3===e?n=(2*t+1)*30:2===e?n=(t+1)*60:1===e?n=90:5===e?n=t*45:e>5&&e<=7?n=t*30:e>7&&(n=t*20),n},k=function(){var e,t,n=document.getElementById(l.current),r=null===(e=null==n?void 0:n.getElementsByClassName("sector-item-container"))||void 0===e?void 0:e[0],o=(null==r?void 0:r.childNodes)||[],a=null==r?void 0:r.parentNode,s=(t=o.length)<=4?40:5===t?60:t>5&&t<7?80:100;a&&function(e,t){var n,r,o=(null===(n=i.current)||void 0===n||null===(r=n.anchorEl)||void 0===r?void 0:r.getBoundingClientRect())||{},a=o.top,s=o.left,c=t+24+12,u=2*t+24+12;a=a-u/2+o.height/2,e.style.cssText="\n position: fixed;\n width:".concat(c,"px;\n height: ").concat(u,"px;\n top: ").concat(a,"px;\n left: ").concat(s,"px;\n ")}(a,s);for(var c=0;c<o.length;c++){var u=o[c];u.style.transition=".3s",u.style.opacity=1;var d=E(o.length,c),f=w(s,d),p=f.left,h=f.top;u.style.transform="translate(".concat(p,",").concat(h,")")}},S=function(e,t){t?(p(e),k()):function(){for(var e,t,n=document.getElementById(l.current),r=null===(e=null==n?void 0:n.getElementsByClassName("sector-item-container"))||void 0===e?void 0:e[0],o=(null==r?void 0:r.childNodes)||[],i=0;i<o.length;i++){var a=o[i];a.style.transition=".3s",a.style.transform="translate(0,0)",a.style.opacity=0}null==n||null===(t=n.parentNode)||void 0===t||t.removeChild(n),b(!1)}()};return(0,n.useImperativeHandle)(i,(function(){return fr({},x,{uid:l.current,onShowSector:S})})),(0,n.useEffect)((function(){var e;g||((e=document.getElementById(l.current))||((e=document.createElement("div")).id=l.current,e.style.position="fixed",e.style.top="-9999px",document.body.appendChild(e),b(!0)),y(!0),u.current=e)}),[g]),(0,n.useEffect)((function(){return function(){var e,t;null===(e=u.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(u.current),b(!1)}}),[]),r().createElement(r().Fragment,null,v&&ne().createPortal(r().createElement("div",{className:"sector-container",onMouseLeave:function(){null==c||c(x.anchorEl)},onMouseEnter:function(){a.current=!0}},r().createElement("ul",{className:"sector-item-container"},(null==(t=function(e,t){if(void 0===e||!1===e)return[];if(!0===e)return Object.keys(hr).map((function(e){return fr({},hr[e],{action:e})}));var n=[];return Object.keys(e).forEach((function(r){var o=e[r];"customizeActions"!==r?"object"==typeof o?"function"==typeof o.show?o.show(t)&&n.push(fr({},hr[r],o,{action:r})):n.push(fr({},hr[r],o,{action:r})):"function"==typeof o?o(t)&&n.push(fr({},hr[r],{action:r})):o&&n.push(fr({},hr[r],{action:r})):Array.isArray(o)&&o.length&&o.forEach((function(e){"function"==typeof e.show?e.show(t)&&n.push(e):n.push(e)}))})),n}(s,f))?void 0:t.length)?t.map((function(e,t){var n=null!=e?e:{},i=n.action,a=n.text,s=n.icon;return r().createElement(cr.default,{title:a,key:t},r().createElement("li",{className:(0,_n.Z)("sector-item",{"sector-item--del":"del"===i}),onClick:function(e){return function(e,t,n){n.stopPropagation(),null==o||o(e,t,n)}(f,i,e)}},s))})):null)),u.current))},yr=p(7655),mr=p.n(yr);function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function br(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function xr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){br(i,r,o,a,s,"next",e)}function s(e){br(i,r,o,a,s,"throw",e)}a(void 0)}))}}function wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Er(){return Er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Er.apply(this,arguments)}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wr(e,t,n[t])}))}return e}function Sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Cr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(e){return function(e){if(Array.isArray(e))return gr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cr(e,t){if(e){if("string"==typeof e)return gr(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(e,t):void 0}}var Zr={page:1,size:10},Nr=r().forwardRef((function(e,o){var i,a=e.url,s=e.ctx,c=e.params,u=void 0===c?null:c,l=e.method,d=void 0===l?"GET":l,f=e.requestCallback,p=e.refresh,h=e.replaceFields,v=void 0===h?{key:"key",parentId:"parentId",children:"children",title:"title",loadKey:"key"}:h,y=e.treeData,m=e.prefixCls,g=e.className,b=e.showIcon,x=e.showLine,w=e.switcherIcon,E=e.blockNode,k=e.checkable,S=e.selectable,O=e.radioable,C=void 0!==O&&O,Z=e.showRadio,N=void 0===Z||Z,P=e.checkStrictly,R=void 0!==P&&P,T=e.actionsCallback,M=e.showActions,A=e.checkedKeys,L=e.defaultCheckedKeys,D=e.expandedKeys,K=e.defaultExpandedKeys,j=e.onCheck,_=e.onExpand,I=e.asyncLoad,F=void 0!==I&&I,H=e.pagination,U=void 0!==H&&H,z=e.pageSize,B=void 0===z?Zr:z,W=e.loadData,G=e.localFilter,q=void 0!==G&&G,$=e.localParams,V=e.onFilter,Y=e.loadMoreNode,X=void 0===Y?null:Y,J=e.paramsCallback,Q=Sr((0,n.useState)([]),2),ee=Q[0],te=Q[1],ne=Sr((0,n.useState)([]),2),re=ne[0],oe=ne[1],ie=Sr((0,n.useState)([]),2),ae=ie[0],se=ie[1],ce=(0,n.useRef)({}),ue=(0,n.useRef)(!1),le=(0,n.useRef)(-1),de=(0,n.useRef)([]),fe=function(e,t){return t||(e?"paraui-".concat(e):"paraui")}("tree",m),pe=(0,n.useRef)({}),he=(0,n.useRef)([]),ve=function(e,t){var n=[],r=Hn(t),o=!0,i=!1,a=void 0;try{for(var s,c=function(e,t){var o=t.value;-1===r.findIndex((function(e){return e.key===o}))&&n.push(o)},u=e[Symbol.iterator]();!(o=(s=u.next()).done);o=!0)c(0,s)}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return n}(re,ee),ye=kr({},Zr,B),me=(0,n.useRef)([]),ge=kr({},e,{showLine:Boolean(x),checkStrictly:C||R,showIcon:C||b}),be=function(e){return v&&function e(t){var n=v||{},r=n.key,o=n.title,i=n.children,a=n.parentId;t.forEach((function(t){var n;r&&(t.key=t[r]),o&&(t.title=t[o]),i&&(t.children=t[i]),a&&(t.parentId=t[a]),(null===(n=t.children)||void 0===n?void 0:n.length)&&e(t.children)}))}(e),e},xe=function(e){return r().createElement("span",{className:"paraui-tree-title-wrapper",onMouseEnter:we,onMouseLeave:Ee},e.title,r().createElement("div",{className:"sector-anchor",onMouseEnter:function(t){return Se(e,t)},onMouseLeave:Oe},r().createElement(mr(),null)))},we=function(e){e.stopPropagation(),Pe();var t=e.currentTarget;if(t){var n=t.closest(".paraui-tree-node-content-wrapper");de.current.push(n),ke(n,!0)}},Ee=function(e){e.stopPropagation(),Pe();var t=e.currentTarget;if(t){var n=t.closest(".paraui-tree-node-content-wrapper");ke(n,!1)}},ke=function(e,t){e&&(t?null==e||e.classList.add("paraui-tree-node-content-wrapper--active"):null==e||e.classList.remove("paraui-tree-node-content-wrapper--active"))},Se=function(e,t){t.stopPropagation();var n=t.currentTarget;ce.current.anchorEl=n,le.current=setTimeout((function(){clearTimeout(le.current),Ce(n,e)}),300)},Oe=function(e){e.stopPropagation(),clearTimeout(le.current);var t=e.currentTarget,n=setTimeout((function(){clearTimeout(n),ue.current||Ze(t)}),300)},Ce=function(e,t){var n,r,o=document.getElementById(ce.current.uid);(e.classList.add("sector-anchor--active"),o)&&(o.querySelector(".sector-container")&&(null===(n=ce.current)||void 0===n||null===(r=n.onShowSector)||void 0===r||r.call(n,t,!0)))},Ze=function(e){var t,n;e&&(e.classList.remove("sector-anchor--active"),null===(t=ce.current)||void 0===t||null===(n=t.onShowSector)||void 0===n||n.call(t,{},!1))},Ne=function(e){if(e){var t=e.closest(".paraui-tree-node-content-wrapper");ke(t,!1),Ze(e)}},Pe=function(){var e;(null===(e=de.current)||void 0===e?void 0:e.length)&&(de.current.forEach((function(e){var t;null==e||null===(t=e.classList)||void 0===t||t.remove("paraui-tree-node-content-wrapper--active")})),de.current.length=0)},Re=function(e,t){var n=[],r=[];if(C){var o=t.node,i=v.key;t.checked&&(n=[o[i]])}else R?(n=e.checked,r=e.halfChecked,me.current=r):n=e;var a=Or(n).concat(Or(ve));oe(a),null==j||j(a,t,r)},Te=function(e,t){se(Or(e)),null==_||_(e,t)},Me=(i=xr(t().mark((function e(){var n,r,o,i,c,u,l=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>0&&void 0!==l[0]?l[0]:{},a){e.next=3;break}return e.abrupt("return",[]);case 3:return r=(null==J?void 0:J(n))||n,o=null==d?void 0:d.toUpperCase(),i=wr({url:a,ctx:s,method:o},"GET"===o?"params":"data",r||{}),e.next=8,(0,ur.Request)(i);case 8:if(c=e.sent,u=c.data,!c.err){e.next=13;break}return e.abrupt("return",[]);case 13:return e.abrupt("return",u.data||[]);case 14:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)}),Ae=function(e,t,n,r){return"ROOT_KEY"===t?(e.pop(),e.concat(n)):e.map((function(e){if(e.key===t){if(r){var o=e.children||[];return o.pop(),kr({},e,{children:o.concat(n)})}return kr({},e,{children:n})}return e.children?kr({},e,{children:Ae(e.children,t,n,r)}):e}))},Le=function(e){var n=e.key,r=e.children,o=e.parentId,i=e.moreFlag;return new Promise(xr(t().mark((function e(a){var s,c,l,d,p,h,y,m,g,b,x;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=3;break}return a(),e.abrupt("return");case 3:return s=n,c=v.loadKey,l=kr(wr({},c,s),u),U&&(i&&(s=o,pe.current[s].page+=1,l[c]=s,"ROOT_KEY"===s&&delete l[c]),l.page=pe.current[s].page,l.size=pe.current[s].size),e.next=9,Me(l);case 9:return d=e.sent,e.next=12,null==f?void 0:f(d);case 12:(p=e.sent)&&(d=p),h={},U&&(y=d.list,m=void 0===y?[]:y,g=d.page,b=d.size,x=d.total,d=m,h={page:g,size:b,total:x}),(null==d?void 0:d.length)?(d=be(d),U&&(d=De(d,h,s)),te((function(e){return Ae(e,s,d,i)}))):te([]),a();case 18:case"end":return e.stop()}}),e)}))))},De=function(e,t,n){var o,i,a,s=Un(e);if(t.page*t.size<t.total){var c={key:String((1e6*Math.random()|0)+Date.now()),title:"加载更多",checkable:!1,disableCheckbox:!0,isLeaf:!0,selectable:!1,icon:null,moreFlag:!0};c.parentId=n||"ROOT_KEY",c.title=(o=c,r().createElement("span",{className:"paraui-treenode-more-wrapper",onClick:function(e){e.stopPropagation(),Le(o)}},X||o.title)),s.push(c)}return pe.current=(i=s,a=pe.current,(null==i?void 0:i.length)?(i.forEach((function(e){var t=e.moreFlag?e.parentId:e.key;a[t]||(a[t]=kr({},e,ye))})),a):a),s},Ke=function(){var e=xr(t().mark((function e(){var n,r,o,i,a,s,c,l,d;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=kr({},u),U&&(n.page=ye.page,n.size=ye.size),e.next=4,Me(n);case 4:return r=e.sent,o={},e.next=8,null==f?void 0:f(r);case 8:if((i=e.sent)&&(r=i),U&&(a=r.list,s=void 0===a?[]:a,c=r.page,l=r.size,d=r.total,r=s,o={page:c,size:l,total:d},pe.current={}),null==r?void 0:r.length){e.next=13;break}return e.abrupt("return",te([]));case 13:r=be(r),q&&(he.current=Fn(r)),U&&(r=De(r,o)),te(Or(r));case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,n.useEffect)((function(){L&&oe(Or(L)),K&&se(Or(K))}),[L,K]),(0,n.useEffect)((function(){var e;A&&(oe(Or((e=A,Array.isArray(e)?e:e.checked))),me.current=function(e){return Array.isArray(e)?[]:e.halfChecked}(A)),D&&se(Or(D))}),[A,D]),(0,n.useEffect)((function(){var e,t;if(Array.isArray(y)){var n=be(y);q&&(he.current=Fn(n)),ge.defaultExpandAll&&(e=n,t=[],D||K||(function e(n){n.forEach((function(n){var r;(null===(r=n.children)||void 0===r?void 0:r.length)&&(t.push(n.key),e(n.children))}))}(e),t.length&&se(t))),te(Or(n))}else Ke()}),[a,s,u,d,p,y]),(0,n.useEffect)((function(){function e(t){return t.reduce((function(t,n){return t.concat(n.key,e(n.children||[]))}),[])}if(q){if(V){var t=V(he.current);if(!t)return;return void te(t)}!function(t){var n=t.searchKey,r=t.searchValue;if(n){if(""===r)return te(he.current),void se(Or(D||K||[]));var o=Hn(he.current),i=o.reduce((function(e,t){return String(t[n]).toLowerCase().includes(null==r?void 0:r.toLowerCase())?e.concat(t):e}),[]),a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{key:"key",parentId:"parentId"},r={},o=e.reduce((function(e,t){return e[t[n.key]]=t,e}),{}),i=t.reduce((function(e,t){return e[t[n.key]]=t,e}),{}),a=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;d[n.key]in i&&f(d)}}catch(e){s=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw c}}function f(e){r[e[n.key]]=e;var t=o[e[n.parentId]];t&&(r[t[n.key]]=t,t[n.parentId]&&f(t))}var p=Object.keys(r).reduce((function(e,t){return e.concat(r[t])}),[]);return Un(p)}(Fn(o),i);te(a),se(e(a))}}($)}}),[q,$]);var je=(0,n.useMemo)((function(){if(!(null==ee?void 0:ee.length))return null;var e,t,i=re;return R&&(i={checked:re,halfChecked:me.current}),r().createElement(jn,Er({itemHeight:20,ref:o},ge,{prefixCls:fe,className:(0,_n.Z)("paraui-tree",(wr(t={},"".concat(fe,"-icon-hide"),!b),wr(t,"".concat(fe,"-block-node"),E),wr(t,"".concat(fe,"-unselectable"),!S),wr(t,"".concat(fe,"-radioable"),C),wr(t,"".concat(fe,"-radioable-showradio"),C&&N),t),g),checkable:C||k?r().createElement("span",{className:"".concat(fe,"-checkbox-inner")}):k,selectable:!C&&S,switcherIcon:function(e){return function(e,t,o,i){var a,s=i.isLeaf,c=(i.expanded,i.loading);if(i.eventKey,c)return r().createElement(Bn(),{className:"".concat(e,"-switcher-loading-icon")});if(o&&"object"==typeof o&&(a=o.showLeafIcon),s)return o?"object"!=typeof o||a?r().createElement(Gn(),{className:"".concat(e,"-switcher-line-icon")}):r().createElement("span",{className:"".concat(e,"-switcher-leaf-line")}):null;var u="".concat(e,"-switcher-icon");return(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{className:(0,_n.Z)(t.props.className||"",u)}):t||(o?r().createElement($n(),{className:"".concat(e,"-switcher-line-icon")}):r().createElement($n(),{className:u}))}(fe,w,x,e)}},(e={},F&&(e.loadData=Le),W&&(e.loadData=W),M&&(e.titleRender=xe),e),{treeData:ee,checkedKeys:i,expandedKeys:ae,onCheck:Re,onExpand:Te,icon:function(e){return!1===e.checkable?null:C&&N?function(e,t,n,o){var i;if(!t)return null;var a=o.key,s=(null===(i=e.data)||void 0===i?void 0:i[a])===n;return r().createElement(Vn.default,{className:"paraui-tree-node-radio",checked:s})}(e,C,re[0],v):null}}))}),[ee,re,ae,ge.selectedKeys]);return r().createElement(r().Fragment,null,je,M?r().createElement(vr,{opRef:ce,mouseInRef:ue,actionsCallback:T,onRemove:Ne,showActions:M}):null)}));Nr.defaultProps={checkable:!1,selectable:!0,showIcon:!1,motion:kr({},Qn,{motionAppear:!1}),blockNode:!1};var Pr=Nr,Rr=(p(87622),p(74314),Pr)}(),h}()}));
|
|
53
|
+
*/function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case y:case v:case c:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.isFragment=function(e){return w(e)===i},t.isMemo=function(e){return w(e)===v}},11805:function(e,t,n){"use strict";e.exports=n(51162)},96630:function(e,t,n){"use strict";var r=n(19756),o=n(41788),i=n(69297),a=n.n(i),s=n(92268),c=n.n(s),u=n(6035),l=n(220),d="unmounted",f="exited",p="entering",h="entered",v="exiting",y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=f,r.appearStatus=p):o=h:o=t.unmountOnExit||t.mountOnEnter?d:f,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:f}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===f&&this.setState({status:d})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[c().findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||u.Z.disabled?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:p},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c().findDOMNode(this);t&&!u.Z.disabled?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:f},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:f},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(l.Z.Provider,{value:null},"function"==typeof n?n(e,o):a().cloneElement(a().Children.only(n),o))},t}(a().Component);function m(){}y.contextType=l.Z,y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},y.UNMOUNTED=d,y.EXITED=f,y.ENTERING=p,y.ENTERED=h,y.EXITING=v,t.ZP=y},220:function(e,t,n){"use strict";var r=n(69297),o=n.n(r);t.Z=o().createContext(null)},6035:function(e,t){"use strict";t.Z={disabled:!1}},35666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new N(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:f,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",v={};function y(){}function m(){}function g(){}var b={};c(b,i,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(P([])));w&&w!==n&&r.call(w,i)&&(b=w);var E=g.prototype=y.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return m.prototype=g,c(E,"constructor",g),c(g,"constructor",m),m.displayName=c(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Z),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){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(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Z(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;Z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},47831:function(e,t,n){var r=n(93379),o=n(68979);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},42560:function(e,t,n){var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},90019:function(e,t,n){var r=n(93379),o=n(70677);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},74314:function(e,t,n){var r=n(93379),o=n(72027);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(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={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=s(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:l,updater:y(f,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function y(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=u(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=u(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=c(e,t),u=0;u<n.length;u++){var l=s(n[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},4525:function(e,t,n){"use strict";var r=n(69297),o=n.n(r);n(47831);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.default=function(e){var t=e.className,n=void 0===t?"":t,i=e.label,c=void 0===i?"":i,u=e.size,l=void 0===u?"large":u,d=e.disabled,f=void 0!==d&&d,p=e.onChange,h=s((0,r.useState)(!1),2),v=h[0],y=h[1];(0,r.useEffect)((function(){void 0!==e.defaultChecked&&y(e.defaultChecked)}),[]),(0,r.useEffect)((function(){void 0!==e.checked&&y(e.checked)}),[e.checked]);var m;return o().createElement("label",{className:(m="paraui-radio",n&&(m+=" "+n),l&&(m+=" radio-"+l),f&&(m+=" radio-disabled"),v&&(m+=" radio-checked"),m),onClick:function(t){t.preventDefault(),f||(void 0===e.checked&&y(!v),t.target.checked=!v,p&&p(t,!v))}},o().createElement("span",{className:"paraui-radio-box"},o().createElement("input",a({type:"radio",value:v},e.inputProps)),o().createElement("span",{className:"paraui-radio-box-inner"})),c&&o().createElement("span",{className:"paraui-radio-label"},c))}},5685:function(e,t,n){"use strict";var r=n(69297),o=n.n(r),i=n(868),a=n(86010);n(42560);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}t.default=function(e){var t,n=e.placement,r=void 0===n?"bottom":n,u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},e.classes,{popper:(0,a.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return o().createElement(i.ZP,c({},e,{classes:u}))}},87622:function(){Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},13042:function(e){"use strict";e.exports=s},35648:function(e){"use strict";e.exports=r},25033:function(e){"use strict";e.exports=o},99760:function(e){"use strict";e.exports=i},45912:function(e){"use strict";e.exports=c},79787:function(e){"use strict";e.exports=n},7655:function(e){"use strict";e.exports=l},46819:function(e){"use strict";e.exports=a},73475:function(e){"use strict";e.exports=u},69297:function(t){"use strict";t.exports=e},92268:function(e){"use strict";e.exports=t}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={id:e,exports:{}};return d[e](n,n.exports,p),n.exports}p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return function(){"use strict";p.r(h),p.d(h,{default:function(){return Rr}});var e=p(35666),t=p.n(e),n=p(69297),r=p.n(n),o=p(22122),i=p(96156),a=p(28991),s=p(78927),c=p(6610),u=p(5991),l=p(63349),d=p(10379),f=p(60446),v={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>=v.F1&&t<=v.F12)return!1;switch(t){case v.ALT:case v.CAPS_LOCK:case v.CONTEXT_MENU:case v.CTRL:case v.DOWN:case v.END:case v.ESC:case v.HOME:case v.INSERT:case v.LEFT:case v.MAC_FF_META:case v.META:case v.NUMLOCK:case v.NUM_CENTER:case v.PAGE_DOWN:case v.PAGE_UP:case v.PAUSE:case v.PRINT_SCREEN:case v.RIGHT:case v.SHIFT:case v.UP:case v.WIN_KEY:case v.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=v.ZERO&&e<=v.NINE)return!0;if(e>=v.NUM_ZERO&&e<=v.NUM_MULTIPLY)return!0;if(e>=v.A&&e<=v.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case v.SPACE:case v.QUESTION_MARK:case v.NUM_PLUS:case v.NUM_MINUS:case v.NUM_PERIOD:case v.NUM_DIVISION:case v.SEMICOLON:case v.DASH:case v.EQUALS:case v.COMMA:case v.PERIOD:case v.SLASH:case v.APOSTROPHE:case v.SINGLE_QUOTE:case v.OPEN_SQUARE_BRACKET:case v.BACKSLASH:case v.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},y=v,m={};function g(e,t){0}function b(e,t,n){t||m[n]||(e(!1,n),m[n]=!0)}var x=function(e,t){b(g,e,t)},w=p(94184),E=p.n(w),k=n.createContext(null),S=p(90484),O=p(81253),C=function(e){for(var t=e.prefixCls,r=e.level,o=e.isStart,a=e.isEnd,s="".concat(t,"-indent-unit"),c=[],u=0;u<r;u+=1){var l;c.push(n.createElement("span",{key:u,className:E()(s,(l={},(0,i.Z)(l,"".concat(s,"-start"),o[u]),(0,i.Z)(l,"".concat(s,"-end"),a[u]),l))}))}return n.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},c)},Z=p(11805);function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(N(e)):(0,Z.isFragment)(e)&&e.props?n=n.concat(N(e.props.children,t)):n.push(e))})),n}var P=["children"];function R(e,t){return null!=e?e:t}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(!0===t?[]:t),r=[];function o(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(c,u){var l=B(i?i.pos:"0",u),d=R(c.key,l),f=(0,a.Z)((0,a.Z)({},c),{},{parent:i,pos:l,children:null,data:c,isStart:[].concat((0,s.Z)(i?i.isStart:[]),[0===u]),isEnd:[].concat((0,s.Z)(i?i.isEnd:[]),[u===e.length-1])});return r.push(f),!0===t||n.has(d)?f.children=o(c.children||[],f):f.children=[],f}))}return o(e),r}function M(e,t,n){var r,o,i=null,a=(0,S.Z)(n);"function"===a||"string"===a?i=n:n&&"object"===a&&(r=n.childrenPropName,i=n.externalGetKey),r=r||"children",i?"string"==typeof i?o=function(e){return e[i]}:"function"==typeof i&&(o=function(e){return i(e)}):o=function(e,t){return R(e.key,t)},function n(i,a,s){var c=i?i[r]:e,u=i?B(s.pos,a):"0";if(i){var l=o(i,u),d={node:i,index:a,pos:u,key:l,parentPos:s.node?s.pos:null,level:s.level+1};t(d)}c&&c.forEach((function(e,t){n(e,t,{node:i,pos:u,level:s?s.level+1:-1})}))}(null)}function A(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,l=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(l?l.pos:""),dragOver:c===e&&0===u,dragOverGapTop:c===e&&-1===u,dragOverGapBottom:c===e&&1===u}}function L(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,s=e.loading,c=e.halfChecked,u=e.dragOver,l=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,h=(0,a.Z)((0,a.Z)({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:s,halfChecked:c,dragOver:u,dragOverGapTop:l,dragOverGapBottom:d,pos:f,active:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return x(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var D=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove"],K="open",j="close",_=function(e){(0,d.Z)(r,e);var t=(0,f.Z)(r);function r(){var e;(0,c.Z)(this,r);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={dragNodeHighlight:!1},e.selectHandle=void 0,e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,L(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,L(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,L(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!o;i(t,L(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,L(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,L(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,L(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,(0,l.Z)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,(0,l.Z)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,(0,l.Z)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,(0,l.Z)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,l.Z)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,l.Z)(e))},e.onExpand=function(t){var n=e.props,r=n.loading,o=n.context.onNodeExpand;r||o(t,L(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?K:j},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,s=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||s(L(e.props)))},e.renderSwitcherIconDom=function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,o=n||r;return"function"==typeof o?o((0,a.Z)((0,a.Z)({},e.props),{},{isLeaf:t})):o},e.renderSwitcher=function(){var t=e.props.expanded,r=e.props.context.prefixCls;if(e.isLeaf()){var o=e.renderSwitcherIconDom(!0);return!1!==o?n.createElement("span",{className:E()("".concat(r,"-switcher"),"".concat(r,"-switcher-noop"))},o):null}var i=E()("".concat(r,"-switcher"),"".concat(r,"-switcher_").concat(t?K:j)),a=e.renderSwitcherIconDom(!1);return!1!==a?n.createElement("span",{onClick:e.onExpand,className:i},a):null},e.renderCheckbox=function(){var t=e.props,r=t.checked,o=t.halfChecked,i=t.disableCheckbox,a=e.props.context.prefixCls,s=e.isDisabled(),c=e.isCheckable();if(!c)return null;var u="boolean"!=typeof c?c:null;return n.createElement("span",{className:E()("".concat(a,"-checkbox"),r&&"".concat(a,"-checkbox-checked"),!r&&o&&"".concat(a,"-checkbox-indeterminate"),(s||i)&&"".concat(a,"-checkbox-disabled")),onClick:e.onCheck},u)},e.renderIcon=function(){var t=e.props.loading,r=e.props.context.prefixCls;return n.createElement("span",{className:E()("".concat(r,"-iconEle"),"".concat(r,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(r,"-icon_loading"))})},e.renderSelector=function(){var t,r,o=e.state.dragNodeHighlight,i=e.props,a=i.title,s=i.selected,c=i.icon,u=i.loading,l=i.data,d=e.props.context,f=d.prefixCls,p=d.showIcon,h=d.icon,v=d.draggable,y=d.loadData,m=d.titleRender,g=e.isDisabled(),b="function"==typeof v?v(l):v,x="".concat(f,"-node-content-wrapper");if(p){var w=c||h;t=w?n.createElement("span",{className:E()("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof w?w(e.props):w):e.renderIcon()}else y&&u&&(t=e.renderIcon());r="function"==typeof a?a(l):m?m(l):a;var k=n.createElement("span",{className:"".concat(f,"-title")},r);return n.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof a?a:"",className:E()("".concat(x),"".concat(x,"-").concat(e.getNodeState()||"normal"),!g&&(s||o)&&"".concat(f,"-node-selected"),!g&&b&&"draggable"),draggable:!g&&b||void 0,"aria-grabbed":!g&&b||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:b?e.onDragStart:void 0},t,k,e.renderDropIndicator())},e.renderDropIndicator=function(){var t=e.props,n=t.disabled,r=t.eventKey,o=e.props.context,i=o.draggable,a=o.dropLevelOffset,s=o.dropPosition,c=o.prefixCls,u=o.indent,l=o.dropIndicatorRender,d=o.dragOverNodeKey,f=o.direction;return!n&&!1!==i&&d===r?l({dropPosition:s,dropLevelOffset:a,indent:u,prefixCls:c,direction:f}):null},e}return(0,u.Z)(r,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,r=t.eventKey,a=t.className,s=t.style,c=t.dragOver,u=t.dragOverGapTop,l=t.dragOverGapBottom,d=t.isLeaf,f=t.isStart,p=t.isEnd,h=t.expanded,v=t.selected,y=t.checked,m=t.halfChecked,g=t.loading,b=t.domRef,x=t.active,w=t.data,k=t.onMouseMove,S=(0,O.Z)(t,D),Z=this.props.context,N=Z.prefixCls,P=Z.filterTreeNode,R=Z.draggable,T=Z.keyEntities,M=Z.dropContainerKey,A=Z.dropTargetKey,K=this.isDisabled(),j=X(S),_=(T[r]||{}).level,I=p[p.length-1],F="function"==typeof R?R(w):R;return n.createElement("div",(0,o.Z)({ref:b,className:E()(a,"".concat(N,"-treenode"),(e={},(0,i.Z)(e,"".concat(N,"-treenode-disabled"),K),(0,i.Z)(e,"".concat(N,"-treenode-switcher-").concat(h?"open":"close"),!d),(0,i.Z)(e,"".concat(N,"-treenode-checkbox-checked"),y),(0,i.Z)(e,"".concat(N,"-treenode-checkbox-indeterminate"),m),(0,i.Z)(e,"".concat(N,"-treenode-selected"),v),(0,i.Z)(e,"".concat(N,"-treenode-loading"),g),(0,i.Z)(e,"".concat(N,"-treenode-active"),x),(0,i.Z)(e,"".concat(N,"-treenode-leaf-last"),I),(0,i.Z)(e,"drop-target",A===r),(0,i.Z)(e,"drop-container",M===r),(0,i.Z)(e,"drag-over",!K&&c),(0,i.Z)(e,"drag-over-gap-top",!K&&u),(0,i.Z)(e,"drag-over-gap-bottom",!K&&l),(0,i.Z)(e,"filter-node",P&&P(L(this.props))),e)),style:s,onDragEnter:F?this.onDragEnter:void 0,onDragOver:F?this.onDragOver:void 0,onDragLeave:F?this.onDragLeave:void 0,onDrop:F?this.onDrop:void 0,onDragEnd:F?this.onDragEnd:void 0,onMouseMove:k},j),n.createElement(C,{prefixCls:N,level:_,isStart:f,isEnd:p}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),r}(n.Component),I=function(e){return n.createElement(k.Consumer,null,(function(t){return n.createElement(_,(0,o.Z)({},e,{context:t}))}))};I.displayName="TreeNode",I.defaultProps={title:"---"},I.isTreeNode=1;var F=I;function H(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function U(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function z(e){return e.split("-")}function B(e,t){return"".concat(e,"-").concat(t)}function W(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(t[e].children),n}function G(e){if(e.parent){var t=z(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function q(e,t,n,r,o,i,a,s,c,u){var l,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,v=p.height,y=(("rtl"===u?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,m=s[n.props.eventKey];if(f<h+v/2){var g=a.findIndex((function(e){return e.data.key===m.key})),b=a[g<=0?0:g-1].data.key;m=s[b]}var x=m.key,w=m,E=m.key,k=0,S=0;if(!c.includes(x))for(var O=0;O<y&&G(m);O+=1)m=m.parent,S+=1;var C,Z=m.node,N=!0;return C=z(m.pos),0===Number(C[C.length-1])&&0===m.level&&f<h+v/2&&i({dropNode:Z,dropPosition:-1})&&m.key===n.props.eventKey?k=-1:(w.children||[]).length&&c.includes(E)?i({dropNode:Z,dropPosition:0})?k=0:N=!1:0===S?y>-1.5?i({dropNode:Z,dropPosition:1})?k=1:N=!1:i({dropNode:Z,dropPosition:0})?k=0:i({dropNode:Z,dropPosition:1})?k=1:N=!1:i({dropNode:Z,dropPosition:1})?k=1:N=!1,{dropPosition:k,dropLevelOffset:S,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:E,dropContainerKey:0===k?null:(null===(l=m.parent)||void 0===l?void 0:l.key)||null,dropAllowed:N}}function $(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function V(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,S.Z)(e))return x(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Y(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=t[e];if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,s.Z)(n)}function X(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t}var J=p(34738);function Q(e,t){"function"==typeof e?e(t):"object"===(0,S.Z)(e)&&e&&"current"in e&&(e.current=t)}function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){Q(t,e)}))}}var te=p(92268),ne=p.n(te);function re(e){return e instanceof HTMLElement?e:ne().findDOMNode(e)}var oe=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),ie="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ae=void 0!==p.g&&p.g.Math===Math?p.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),se="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ae):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ce=["top","right","bottom","left","width","height","size","weight"],ue="undefined"!=typeof MutationObserver,le=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){se(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(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(){ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ue?(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(){ie&&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;ce.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}(),de=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},fe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ae},pe=be(0,0,0,0);function he(e){return parseFloat(e)||0}function ve(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+he(e["border-"+n+"-width"])}),0)}function ye(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return pe;var r=fe(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=he(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=he(r.width),c=he(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=ve(r,"left","right")+i),Math.round(c+a)!==n&&(c-=ve(r,"top","bottom")+a)),!function(e){return e===fe(e).document.documentElement}(e)){var u=Math.round(s+i)-t,l=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return be(o.left,o.top,s,c)}var me="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof fe(e).SVGGraphicsElement}:function(e){return e instanceof fe(e).SVGElement&&"function"==typeof e.getBBox};function ge(e){return ie?me(e)?function(e){var t=e.getBBox();return be(0,0,t.width,t.height)}(e):ye(e):pe}function be(e,t,n,r){return{x:e,y:t,width:n,height:r}}var xe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=be(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ge(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}(),we=function(e,t){var n,r,o,i,a,s,c,u=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),de(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);de(this,{target:e,contentRect:u})},Ee=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new oe,"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 fe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new xe(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 fe(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 we(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}(),ke="undefined"!=typeof WeakMap?new WeakMap:new oe,Se=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=le.getInstance(),r=new Ee(t,n,this);ke.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Se.prototype[e]=function(){var t;return(t=ke.get(this))[e].apply(t,arguments)}}));var Oe=void 0!==ae.ResizeObserver?ae.ResizeObserver:Se,Ce=new Map;var Ze=new Oe((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Ce.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var Ne=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,c.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(n.Component),Pe=n.createContext(null);function Re(e){var t,r,o,i,s=e.children,c=e.disabled,u=n.useRef(null),l=n.useRef(null),d=n.useContext(Pe),f=n.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=n.isValidElement(s)&&(t=s,!("function"==typeof(i=(0,Z.isMemo)(t)?t.type.type:t.type)&&!(null===(r=i.prototype)||void 0===r?void 0:r.render)||"function"==typeof t&&!(null===(o=t.prototype)||void 0===o?void 0:o.render))),h=p?s.ref:null,v=n.useMemo((function(){return ee(h,u)}),[h,u]),y=n.useRef(e);y.current=e;var m=n.useCallback((function(e){var t=y.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,c=e.offsetWidth,u=e.offsetHeight,l=Math.floor(i),p=Math.floor(s);if(f.current.width!==l||f.current.height!==p||f.current.offsetWidth!==c||f.current.offsetHeight!==u){var h={width:l,height:p,offsetWidth:c,offsetHeight:u};f.current=h;var v=c===Math.round(i)?i:c,m=u===Math.round(s)?s:u,g=(0,a.Z)((0,a.Z)({},h),{},{offsetWidth:v,offsetHeight:m});null==d||d(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return n.useEffect((function(){var e,t,n=re(u.current)||re(l.current);return n&&!c&&(e=n,t=m,Ce.has(e)||(Ce.set(e,new Set),Ze.observe(e)),Ce.get(e).add(t)),function(){return function(e,t){Ce.has(e)&&(Ce.get(e).delete(t),Ce.get(e).size||(Ze.unobserve(e),Ce.delete(e)))}(n,m)}}),[u.current,c]),n.createElement(Ne,{ref:l},p?n.cloneElement(s,{ref:v}):s)}function Te(e){return N(e.children).map((function(t,r){var i=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(r);return n.createElement(Re,(0,o.Z)({},e,{key:i}),t)}))}Te.Collection=function(e){var t=e.children,r=e.onBatchResize,o=n.useRef(0),i=n.useRef([]),a=n.useContext(Pe),s=n.useCallback((function(e,t,n){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){s===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return n.createElement(Pe.Provider,{value:s},t)};var Me=Te;function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){De(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=n.forwardRef((function(e,t){var r=e.height,o=e.offset,i=e.children,a=e.prefixCls,s=e.onInnerResize,c={},u={display:"flex",flexDirection:"column"};return void 0!==o&&(c={height:r,position:"relative",overflow:"hidden"},u=Le(Le({},u),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),n.createElement("div",{style:c},n.createElement(Me,{onResize:function(e){e.offsetHeight&&s&&s()}},n.createElement("div",{style:u,className:E()(De({},"".concat(a,"-holder-inner"),a)),ref:t},i)))}));Ke.displayName="Filler";var je=Ke,_e=function(e){return+setTimeout(e,16)},Ie=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(_e=function(e){return window.requestAnimationFrame(e)},Ie=function(e){return window.cancelAnimationFrame(e)});var Fe=0,He=new Map;function Ue(e){He.delete(e)}function ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Fe+=1;function r(t){if(0===t)Ue(n),e();else{var o=_e((function(){r(t-1)}));He.set(n,o)}}return r(t),n}function Be(e){return Be="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},Be(e)}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $e(e,t){return $e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$e(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xe(e);if(t){var o=Xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(e,t){if(t&&("object"===Be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}ze.cancel=function(e){var t=He.get(e);return Ue(t),Ie(t)};function Je(e){return"touches"in e?e.touches[0].pageY:e.pageY}var Qe=function(e){!function(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}}),t&&$e(e,t)}(a,e);var t,r,o,i=Ve(a);function a(){var e;Ge(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).moveRaf=null,e.scrollbarRef=n.createRef(),e.thumbRef=n.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),e.scrollbarRef.current.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp),ze.cancel(e.moveRaf)},e.onMouseDown=function(t){var n=e.props.onStartMove;e.setState({dragging:!0,pageY:Je(t),startTop:e.getTop()}),n(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var n=e.state,r=n.dragging,o=n.pageY,i=n.startTop,a=e.props.onScroll;if(ze.cancel(e.moveRaf),r){var s=i+(Je(t)-o),c=e.getEnableScrollRange(),u=e.getEnableHeightRange(),l=u?s/u:0,d=Math.ceil(l*c);e.moveRaf=ze((function(){a(d)}))}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,n=t.height,r=n/t.count*10;return r=Math.max(r,20),r=Math.min(r,n/2),Math.floor(r)},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var t=e.props.scrollTop,n=e.getEnableScrollRange(),r=e.getEnableHeightRange();return 0===t||0===n?0:t/n*r},e.showScroll=function(){var t=e.props,n=t.height;return t.scrollHeight>n},e}return t=a,(r=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,r=e.visible,o=this.props.prefixCls,i=this.getSpinHeight(),a=this.getTop(),s=this.showScroll(),c=s&&r;return n.createElement("div",{ref:this.scrollbarRef,className:E()("".concat(o,"-scrollbar"),We({},"".concat(o,"-scrollbar-show"),s)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:c?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},n.createElement("div",{ref:this.thumbRef,className:E()("".concat(o,"-scrollbar-thumb"),We({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&qe(t.prototype,r),o&&qe(t,o),a}(n.Component);function et(e){var t=e.children,r=e.setRef,o=n.useCallback((function(e){r(e)}),[]);return n.cloneElement(t,{ref:o})}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maps=void 0,this.maps=Object.create(null)}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}])&&tt(t.prototype,n),r&&tt(t,r),e}();function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return st(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return st(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ct(e,t,r){var o=at(n.useState(e),2),i=o[0],a=o[1],s=at(n.useState(null),2),c=s[0],u=s[1];return n.useEffect((function(){var n=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):s}for(var u=null,l=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){u=d,l=l||f!==c(o[d+1]);break}}return null===u?null:{index:u,multiple:l}}(i||[],e||[],t);void 0!==(null==n?void 0:n.index)&&(null==r||r(n.index),u(e[n.index])),a(e)}),[e]),[c]}function ut(e){return ut="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},ut(e)}var lt="object"===("undefined"==typeof navigator?"undefined":ut(navigator))&&/Firefox/i.test(navigator.userAgent),dt=function(e,t){var r=(0,n.useRef)(!1),o=(0,n.useRef)(null);function i(){clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)}var a=(0,n.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e<0&&a.current.top||e>0&&a.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||i(),!r.current&&n}};var ft=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function pt(){return pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pt.apply(this,arguments)}function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xt=[],wt={overflowY:"auto",overflowAnchor:"none"};function Et(e,t){var r=e.prefixCls,o=void 0===r?"rc-virtual-list":r,i=e.className,a=e.height,s=e.itemHeight,c=e.fullHeight,u=void 0===c||c,l=e.style,d=e.data,f=e.children,p=e.itemKey,h=e.virtual,v=e.component,y=void 0===v?"div":v,m=e.onScroll,g=e.onVisibleChange,b=bt(e,ft),x=!(!1===h||!a||!s),w=x&&d&&s*d.length>a,k=mt((0,n.useState)(0),2),S=k[0],O=k[1],C=mt((0,n.useState)(!1),2),Z=C[0],N=C[1],P=E()(o,i),R=d||xt,T=(0,n.useRef)(),M=(0,n.useRef)(),A=(0,n.useRef)(),L=n.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),D={getKey:L};function K(e){O((function(t){var n=function(e){var t=e;Number.isNaN(J.current)||(t=Math.min(t,J.current));return t=Math.max(t,0)}("function"==typeof e?e(t):e);return T.current.scrollTop=n,n}))}var j=(0,n.useRef)({start:0,end:R.length}),_=(0,n.useRef)(),I=mt(ct(R,L),1)[0];_.current=I;var F=function(e,t,r){var o=rt(n.useState(0),2),i=o[0],a=o[1],s=(0,n.useRef)(new Map),c=(0,n.useRef)(new nt),u=(0,n.useRef)(0);function l(){u.current+=1;var e=u.current;Promise.resolve().then((function(){e===u.current&&(s.current.forEach((function(e,t){if(e&&e.offsetParent){var n=re(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1})))}))}return[function(n,o){var i=e(n),a=s.current.get(i);o?(s.current.set(i,o),l()):s.current.delete(i),!a!=!o&&(o?null==t||t(n):null==r||r(n))},l,c.current,i]}(L,null,null),H=mt(F,4),U=H[0],z=H[1],B=H[2],W=H[3],G=n.useMemo((function(){if(!x)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};var e;if(!w)return{scrollHeight:(null===(e=M.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:R.length-1,offset:void 0};for(var t,n,r,o=0,i=R.length,c=0;c<i;c+=1){var u=R[c],l=L(u),d=B.get(l),f=o+(void 0===d?s:d);f>=S&&void 0===t&&(t=c,n=o),f>S+a&&void 0===r&&(r=c),o=f}return void 0===t&&(t=0,n=0),void 0===r&&(r=R.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,R.length),offset:n}}),[w,x,S,R,W,a]),q=G.scrollHeight,$=G.start,V=G.end,Y=G.offset;j.current.start=$,j.current.end=V;var X=q-a,J=(0,n.useRef)(X);J.current=X;var Q=S<=0,ee=S>=X,te=dt(Q,ee);var ne=function(e,t,r,o){var i=(0,n.useRef)(0),a=(0,n.useRef)(null),s=(0,n.useRef)(null),c=(0,n.useRef)(!1),u=dt(t,r);return[function(t){if(e){ze.cancel(a.current);var n=t.deltaY;i.current+=n,s.current=n,u(n)||(lt||t.preventDefault(),a.current=ze((function(){var e=c.current?10:1;o(i.current*e),i.current=0})))}},function(t){e&&(c.current=t.detail===s.current)}]}(x,Q,ee,(function(e){K((function(t){return t+e}))})),oe=mt(ne,2),ie=oe[0],ae=oe[1];!function(e,t,r){var o,i=(0,n.useRef)(!1),a=(0,n.useRef)(0),s=(0,n.useRef)(null),c=(0,n.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),n=a.current-t;a.current=t,r(n)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!r(n*=.9333333333333333,!0)||Math.abs(n)<=.1)&&clearInterval(c.current)}),16)}},l=function(){i.current=!1,o()},d=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",u),s.current.addEventListener("touchend",l))};o=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",l))},n.useLayoutEffect((function(){return e&&t.current.addEventListener("touchstart",d),function(){t.current.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(x,T,(function(e,t){return!te(e,t)&&(ie({preventDefault:function(){},deltaY:e}),!0)})),(0,n.useLayoutEffect)((function(){function e(e){x&&e.preventDefault()}return T.current.addEventListener("wheel",ie),T.current.addEventListener("DOMMouseScroll",ae),T.current.addEventListener("MozMousePixelScroll",e),function(){T.current.removeEventListener("wheel",ie),T.current.removeEventListener("DOMMouseScroll",ae),T.current.removeEventListener("MozMousePixelScroll",e)}}),[x]);var se=function(e,t,r,o,i,a,s,c){var u=n.useRef();return function(n){if(null!=n){if(ze.cancel(u.current),"number"==typeof n)s(n);else if(n&&"object"===it(n)){var l,d=n.align;l="index"in n?n.index:t.findIndex((function(e){return i(e)===n.key}));var f=n.offset,p=void 0===f?0:f;!function n(c,f){if(!(c<0)&&e.current){var h=e.current.clientHeight,v=!1,y=f;if(h){for(var m=f||d,g=0,b=0,x=0,w=Math.min(t.length,l),E=0;E<=w;E+=1){var k=i(t[E]);b=g;var S=r.get(k);g=x=b+(void 0===S?o:S),E===l&&void 0===S&&(v=!0)}var O=null;switch(m){case"top":O=b-p;break;case"bottom":O=x-h+p;break;default:var C=e.current.scrollTop;b<C?y="top":x>C+h&&(y="bottom")}null!==O&&O!==e.current.scrollTop&&s(O)}u.current=ze((function(){v&&a(),n(c-1,y)}))}}(3)}}else c()}}(T,R,B,s,L,z,K,(function(){var e;null===(e=A.current)||void 0===e||e.delayHidden()}));n.useImperativeHandle(t,(function(){return{scrollTo:se}})),(0,n.useLayoutEffect)((function(){if(g){var e=R.slice($,V+1);g(e,R)}}),[$,V,R]);var ce=function(e,t,r,o,i,a){var s=a.getKey;return e.slice(t,r+1).map((function(e,r){var a=i(e,t+r,{}),c=s(e);return n.createElement(et,{key:c,setRef:function(t){return o(e,t)}},a)}))}(R,$,V,U,f,D),ue=null;return a&&(ue=vt(yt({},u?"height":"maxHeight",a),wt),x&&(ue.overflowY="hidden",Z&&(ue.pointerEvents="none"))),n.createElement("div",pt({style:vt(vt({},l),{},{position:"relative"}),className:P},b),n.createElement(y,{className:"".concat(o,"-holder"),style:ue,ref:T,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==S&&K(t),null==m||m(e)}},n.createElement(je,{prefixCls:o,height:q,offset:Y,onInnerResize:z,ref:M},ce)),x&&n.createElement(Qe,{ref:A,prefixCls:o,scrollTop:S,height:a,scrollHeight:q,count:R.length,onScroll:function(e){K(e)},onStartMove:function(){N(!0)},onStopMove:function(){N(!1)}}))}var kt=n.forwardRef(Et);kt.displayName="List";var St=kt;function Ot(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ct(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 Zt,Nt,Pt,Rt=(Zt=Ot(),Nt="undefined"!=typeof window?window:{},Pt={animationend:Ct("Animation","AnimationEnd"),transitionend:Ct("Transition","TransitionEnd")},Zt&&("AnimationEvent"in Nt||delete Pt.animationend.animation,"TransitionEvent"in Nt||delete Pt.transitionend.transition),Pt),Tt={};if(Ot()){var Mt=document.createElement("div");Tt=Mt.style}var At={};function Lt(e){if(At[e])return At[e];var t=Rt[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Tt)return At[e]=t[i],At[e]}return""}var Dt=Lt("animationend"),Kt=Lt("transitionend"),jt=!(!Dt||!Kt),_t=Dt||"animationend",It=Kt||"transitionend";function Ft(e,t){return e?"object"===(0,S.Z)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var Ht="none",Ut="appear",zt="enter",Bt="leave",Wt="none",Gt="prepare",qt="start",$t="active",Vt="end";function Yt(e){var t=(0,n.useRef)(!1),r=(0,n.useState)(e),o=(0,J.Z)(r,2),i=o[0],a=o[1];return(0,n.useEffect)((function(){return function(){t.current=!0}}),[]),[i,function(e){t.current||a(e)}]}var Xt=Ot()?n.useLayoutEffect:n.useEffect,Jt=[Gt,qt,$t,Vt];function Qt(e){return e===$t||e===Vt}var en=function(e,t){var r=n.useState(Wt),o=(0,J.Z)(r,2),i=o[0],a=o[1],s=function(){var e=n.useRef(null);function t(){ze.cancel(e.current)}return n.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=ze((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=(0,J.Z)(s,2),u=c[0],l=c[1];return Xt((function(){if(i!==Wt&&i!==Vt){var e=Jt.indexOf(i),n=Jt[e+1],r=t(i);false===r?a(n):u((function(e){function t(){e.isCanceled()||a(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),n.useEffect((function(){return function(){l()}}),[]),[function(){a(Gt)},i]};function tn(e,t,r,o){var s=o.motionEnter,c=void 0===s||s,u=o.motionAppear,l=void 0===u||u,d=o.motionLeave,f=void 0===d||d,p=o.motionDeadline,h=o.motionLeaveImmediately,v=o.onAppearPrepare,y=o.onEnterPrepare,m=o.onLeavePrepare,g=o.onAppearStart,b=o.onEnterStart,x=o.onLeaveStart,w=o.onAppearActive,E=o.onEnterActive,k=o.onLeaveActive,S=o.onAppearEnd,O=o.onEnterEnd,C=o.onLeaveEnd,Z=o.onVisibleChanged,N=Yt(),P=(0,J.Z)(N,2),R=P[0],T=P[1],M=Yt(Ht),A=(0,J.Z)(M,2),L=A[0],D=A[1],K=Yt(null),j=(0,J.Z)(K,2),_=j[0],I=j[1],F=(0,n.useRef)(!1),H=(0,n.useRef)(null),U=(0,n.useRef)(!1),z=(0,n.useRef)(null);function B(){return r()||z.current}var W=(0,n.useRef)(!1);function G(e){var t,n=B();e&&!e.deadline&&e.target!==n||(L===Ut&&W.current?t=null==S?void 0:S(n,e):L===zt&&W.current?t=null==O?void 0:O(n,e):L===Bt&&W.current&&(t=null==C?void 0:C(n,e)),!1===t||U.current||(D(Ht),I(null)))}var q=function(e){var t=(0,n.useRef)(),r=(0,n.useRef)(e);r.current=e;var o=n.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(It,o),e.removeEventListener(_t,o))}return n.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(It,o),e.addEventListener(_t,o),t.current=e)},i]}(G),$=(0,J.Z)(q,1)[0],V=n.useMemo((function(){var e,t,n;switch(L){case"appear":return e={},(0,i.Z)(e,Gt,v),(0,i.Z)(e,qt,g),(0,i.Z)(e,$t,w),e;case"enter":return t={},(0,i.Z)(t,Gt,y),(0,i.Z)(t,qt,b),(0,i.Z)(t,$t,E),t;case"leave":return n={},(0,i.Z)(n,Gt,m),(0,i.Z)(n,qt,x),(0,i.Z)(n,$t,k),n;default:return{}}}),[L]),Y=en(L,(function(e){if(e===Gt){var t=V.prepare;return!!t&&t(B())}var n;ee in V&&I((null===(n=V[ee])||void 0===n?void 0:n.call(V,B(),null))||null);return ee===$t&&($(B()),p>0&&(clearTimeout(H.current),H.current=setTimeout((function(){G({deadline:!0})}),p))),true})),X=(0,J.Z)(Y,2),Q=X[0],ee=X[1],te=Qt(ee);W.current=te,Xt((function(){T(t);var n,r=F.current;(F.current=!0,e)&&(!r&&t&&l&&(n=Ut),r&&t&&c&&(n=zt),(r&&!t&&f||!r&&h&&!t&&f)&&(n=Bt),n&&(D(n),Q()))}),[t]),(0,n.useEffect)((function(){(L===Ut&&!l||L===zt&&!c||L===Bt&&!f)&&D(Ht)}),[l,c,f]),(0,n.useEffect)((function(){return function(){clearTimeout(H.current),U.current=!0}}),[]),(0,n.useEffect)((function(){void 0!==R&&L===Ht&&(null==Z||Z(R))}),[R,L]);var ne=_;return V.prepare&&ee===qt&&(ne=(0,a.Z)({transition:"none"},ne)),[L,ee,ne,null!=R?R:t]}var nn=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,c.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(n.Component),rn=nn;var on=function(e){var t=e;function r(e){return!(!e.motionName||!t)}"object"===(0,S.Z)(e)&&(t=e.transitionSupport);var o=n.forwardRef((function(e,t){var o=e.visible,s=void 0===o||o,c=e.removeOnLeave,u=void 0===c||c,l=e.forceRender,d=e.children,f=e.motionName,p=e.leavedClassName,h=e.eventProps,v=r(e),y=(0,n.useRef)(),m=(0,n.useRef)();var g=tn(v,s,(function(){try{return re(y.current||m.current)}catch(e){return null}}),e),b=(0,J.Z)(g,4),x=b[0],w=b[1],k=b[2],S=b[3],O=n.useRef(S);S&&(O.current=!0);var C=(0,n.useRef)(t);C.current=t;var Z,N=n.useCallback((function(e){y.current=e,Q(C.current,e)}),[]),P=(0,a.Z)((0,a.Z)({},h),{},{visible:s});if(d)if(x!==Ht&&r(e)){var R,T;w===Gt?T="prepare":Qt(w)?T="active":w===qt&&(T="start"),Z=d((0,a.Z)((0,a.Z)({},P),{},{className:E()(Ft(f,x),(R={},(0,i.Z)(R,Ft(f,"".concat(x,"-").concat(T)),T),(0,i.Z)(R,f,"string"==typeof f),R)),style:k}),N)}else Z=S?d((0,a.Z)({},P),N):!u&&O.current?d((0,a.Z)((0,a.Z)({},P),{},{className:p}),N):l?d((0,a.Z)((0,a.Z)({},P),{},{style:{display:"none"}}),N):null;else Z=null;return n.createElement(rn,{ref:m},Z)}));return o.displayName="CSSMotion",o}(jt),an="add",sn="keep",cn="remove",un="removed";function ln(e){var t;return t=e&&"object"===(0,S.Z)(e)&&"key"in e?e:{key:e},(0,a.Z)((0,a.Z)({},t),{},{key:String(t.key)})}function dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ln)}function fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=dn(e),s=dn(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var c=s[i];if(c.key===e.key){r<i&&(n=n.concat(s.slice(r,i).map((function(e){return(0,a.Z)((0,a.Z)({},e),{},{status:an})}))),r=i),n.push((0,a.Z)((0,a.Z)({},c),{},{status:sn})),r+=1,t=!0;break}}t||n.push((0,a.Z)((0,a.Z)({},e),{},{status:cn}))})),r<o&&(n=n.concat(s.slice(r).map((function(e){return(0,a.Z)((0,a.Z)({},e),{},{status:an})}))));var c={};n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1}));var u=Object.keys(c).filter((function(e){return c[e]>1}));return u.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==cn}))).forEach((function(t){t.key===e&&(t.status=sn)}))})),n}var pn=["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]:on,r=function(e){(0,d.Z)(i,e);var r=(0,f.Z)(i);function i(){var e;return(0,c.Z)(this,i),(e=r.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,a.Z)((0,a.Z)({},e),{},{status:un})}))}}))},e}return(0,u.Z)(i,[{key:"render",value:function(){var e=this,r=this.state.keyEntities,i=this.props,a=i.component,s=i.children,c=i.onVisibleChanged,u=(0,O.Z)(i,["component","children","onVisibleChanged"]),l=a||n.Fragment,d={};return pn.forEach((function(e){d[e]=u[e],delete u[e]})),delete u.keys,n.createElement(l,u,r.map((function(r){var i=r.status,a=(0,O.Z)(r,["status"]),u=i===an||i===sn;return n.createElement(t,(0,o.Z)({},d,{key:a.key,visible:u,eventProps:a,onVisibleChanged:function(t){null==c||c(t,{key:a.key}),t||e.removeKey(a.key)}}),s)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=dn(n);return{keyEntities:fn(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==un||e.status!==cn}))}}}]),i}(n.Component);r.defaultProps={component:"div"}}(jt);var hn=on,vn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],yn=["key"],mn=function(e,t){var r=e.className,i=e.style,a=e.motion,s=e.motionNodes,c=e.motionType,u=e.onMotionStart,l=e.onMotionEnd,d=e.active,f=e.treeNodeRequiredProps,p=(0,O.Z)(e,vn),h=n.useState(!0),v=(0,J.Z)(h,2),y=v[0],m=v[1],g=n.useContext(k).prefixCls,b=n.useRef(!1),x=function(){b.current||l(),b.current=!0};return(0,n.useEffect)((function(){s&&"hide"===c&&y&&m(!1)}),[s]),(0,n.useEffect)((function(){return s&&u(),function(){s&&x()}}),[]),s?n.createElement(hn,(0,o.Z)({ref:t,visible:y},a,{motionAppear:"show"===c,onAppearEnd:x,onLeaveEnd:x}),(function(e,t){var r=e.className,i=e.style;return n.createElement("div",{ref:t,className:E()("".concat(g,"-treenode-motion"),r),style:i},s.map((function(e){var t=e.data,r=t.key,i=(0,O.Z)(t,yn),a=e.isStart,s=e.isEnd;delete i.children;var c=A(r,f);return n.createElement(F,(0,o.Z)({},i,c,{active:d,data:e.data,key:r,isStart:a,isEnd:s}))})))})):n.createElement(F,(0,o.Z)({domRef:t,className:r,style:i},p,{active:d}))};mn.displayName="MotionTreeNode";var gn=n.forwardRef(mn);function bn(e,t,n){var r=e.findIndex((function(e){return e.data.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.data.key===n}));if(o){var a=t.findIndex((function(e){return e.data.key===o.data.key}));return t.slice(i+1,a)}return t.slice(i+1)}var xn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],wn=["key"],En={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},kn=function(){},Sn="RC_TREE_MOTION_".concat(Math.random()),On={key:Sn},Cn={key:Sn,level:0,index:0,pos:"0",node:On},Zn={parent:null,children:[],pos:Cn.pos,data:On,isStart:[],isEnd:[]};function Nn(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function Pn(e){return R(e.data.key,e.pos)}var Rn=function(e,t){var r=e.prefixCls,i=e.data,a=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,l=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,h=e.dragging,v=e.dragOverNodeKey,y=e.dropPosition,m=e.motion,g=e.height,b=e.itemHeight,x=e.virtual,w=e.focusable,E=e.activeItem,k=e.focused,S=e.tabIndex,C=e.onKeyDown,Z=e.onFocus,N=e.onBlur,P=e.onActiveChange,T=e.onListChangeStart,M=e.onListChangeEnd,L=(0,O.Z)(e,xn),D=n.useRef(null),K=n.useRef(null);n.useImperativeHandle(t,(function(){return{scrollTo:function(e){D.current.scrollTo(e)},getIndentWidth:function(){return K.current.offsetWidth}}}));var j=n.useState(a),_=(0,J.Z)(j,2),I=_[0],F=_[1],H=n.useState(i),U=(0,J.Z)(H,2),z=U[0],B=U[1],W=n.useState(i),G=(0,J.Z)(W,2),q=G[0],$=G[1],V=n.useState([]),Y=(0,J.Z)(V,2),X=Y[0],Q=Y[1],ee=n.useState(null),te=(0,J.Z)(ee,2),ne=te[0],re=te[1];function oe(){B(i),$(i),Q([]),re(null),M()}n.useEffect((function(){F(a);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(I,a);if(null!==e.key)if(e.add){var t=z.findIndex((function(t){return t.data.key===e.key})),n=Nn(bn(z,i,e.key),x,g,b),r=z.slice();r.splice(t+1,0,Zn),$(r),Q(n),re("show")}else{var o=i.findIndex((function(t){return t.data.key===e.key})),s=Nn(bn(i,z,e.key),x,g,b),c=i.slice();c.splice(o+1,0,Zn),$(c),Q(s),re("hide")}else z!==i&&(B(i),$(i))}),[a,i]),n.useEffect((function(){h||oe()}),[h]);var ie=m?q:i,ae={expandedKeys:a,selectedKeys:s,loadedKeys:u,loadingKeys:l,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:v,dropPosition:y,keyEntities:f};return n.createElement(n.Fragment,null,k&&E&&n.createElement("span",{style:En,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(E)),n.createElement("div",{role:"tree"},n.createElement("input",{style:En,disabled:!1===w||p,tabIndex:!1!==w?S:null,onKeyDown:C,onFocus:Z,onBlur:N,value:"",onChange:kn})),n.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},n.createElement("div",{className:"".concat(r,"-indent")},n.createElement("div",{ref:K,className:"".concat(r,"-indent-unit")}))),n.createElement(St,(0,o.Z)({},L,{data:ie,itemKey:Pn,height:g,fullHeight:!1,virtual:x,itemHeight:b,prefixCls:"".concat(r,"-list"),ref:D}),(function(e){var t=e.pos,r=e.data,i=r.key,a=(0,O.Z)(r,wn),s=e.isStart,c=e.isEnd,u=R(i,t);delete a.children;var l=A(u,ae);return n.createElement(gn,(0,o.Z)({},a,l,{active:!!E&&i===E.data.key,pos:t,data:e.data,isStart:s,isEnd:c,motion:m,motionNodes:i===Sn?X:null,motionType:ne,onMotionStart:T,onMotionEnd:oe,treeNodeRequiredProps:ae,onMouseMove:function(){P(null)}}))})))},Tn=n.forwardRef(Rn);Tn.displayName="NodeList";var Mn=Tn;function An(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Ln(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Dn(e,t,n,r){var o,i=[];o=r||Ln;var a,s=new Set(e.filter((function(e){var t=!!n[e];return t||i.push(e),t}))),c=new Map,u=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),u=Math.max(u,r)})),x(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var s=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&o.add(t.key),c&&i.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(An(i,o))}}(s,c,u,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||s.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,u=r;u>=0;u-=1)(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),s||!n&&!a.has(t)||(s=!0)})),r||i.delete(t.key),s&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(An(a,i))}}(s,t.halfCheckedKeys,c,u,o),a}var Kn=function(e){(0,d.Z)(r,e);var t=(0,f.Z)(r);function r(){var e;(0,c.Z)(this,r);for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(e=t.call.apply(t,[this].concat(i))).destroyed=!1,e.delayedDragEnterLogic=void 0,e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},e.dragStartMousePosition=null,e.dragNode=void 0,e.listRef=n.createRef(),e.onNodeDragStart=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,s=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=H(o,s);e.setState({dragging:!0,dragChildrenKeys:W(s,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),a&&a({event:t,node:L(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,c=r.flattenNodes,u=r.indent,d=e.props,f=d.onDragEnter,p=d.onExpand,h=d.allowDrop,v=d.direction,y=n.props.pos,m=(0,l.Z)(e).dragNode,g=q(t,0,n,u,e.dragStartMousePosition,h,c,i,o,v),b=g.dropPosition,x=g.dropLevelOffset,w=g.dropTargetKey,E=g.dropContainerKey,k=g.dropTargetPos,S=g.dropAllowed,O=g.dragOverNodeKey;m&&-1===a.indexOf(w)&&S?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),m.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[y]=window.setTimeout((function(){if(e.state.dragging){var r=(0,s.Z)(o),a=i[n.props.eventKey];a&&(a.children||[]).length&&(r=U(o,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),p&&p(r,{node:L(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),m.props.eventKey!==w||0!==x?(e.setState({dragOverNodeKey:O,dropPosition:b,dropLevelOffset:x,dropTargetKey:w,dropContainerKey:E,dropTargetPos:k,dropAllowed:S}),f&&f({event:t,node:L(n.props),expandedKeys:o})):e.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})):e.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},e.onNodeDragOver=function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,s=r.expandedKeys,c=r.indent,u=e.props,d=u.onDragOver,f=u.allowDrop,p=u.direction,h=(0,l.Z)(e).dragNode,v=q(t,0,n,c,e.dragStartMousePosition,f,i,a,s,p),y=v.dropPosition,m=v.dropLevelOffset,g=v.dropTargetKey,b=v.dropContainerKey,x=v.dropAllowed,w=v.dropTargetPos,E=v.dragOverNodeKey;h&&-1===o.indexOf(g)&&x&&(h.props.eventKey===g&&0===m?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.setState({dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1,dragOverNodeKey:null}):y===e.state.dropPosition&&m===e.state.dropLevelOffset&&g===e.state.dropTargetKey&&b===e.state.dropContainerKey&&w===e.state.dropTargetPos&&x===e.state.dropAllowed&&E===e.state.dragOverNodeKey||e.setState({dropPosition:y,dropLevelOffset:m,dropTargetKey:g,dropContainerKey:b,dropTargetPos:w,dropAllowed:x,dragOverNodeKey:E}),d&&d({event:t,node:L(n.props)}))},e.onNodeDragLeave=function(t,n){var r=e.props.onDragLeave;r&&r({event:t,node:L(n.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),o&&!r&&o({event:t,node:L(n.props)}),e.dragNode=null},e.onNodeDrop=function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,s=i.dragChildrenKeys,c=i.dropPosition,u=i.dropTargetKey,l=i.dropTargetPos,d=i.dropAllowed;if(d){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==u){var p=(0,a.Z)((0,a.Z)({},A(u,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.data.key)===u,data:e.state.keyEntities[u].node}),h=-1!==s.indexOf(u);x(!h,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=z(l),y={event:t,node:L(p),dragNode:e.dragNode?L(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(s),dropToGap:0!==c,dropPosition:c+Number(v[v.length-1])};f&&!o&&f(y),e.dragNode=null}}},e.cleanDragState=function(){e.state.dragging&&e.setState({dragging:!1,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null},e.onNodeClick=function(t,n){var r=e.props.onClick;r&&r(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props.onDoubleClick;r&&r(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,o=e.state.keyEntities,i=e.props,a=i.onSelect,s=i.multiple,c=n.selected,u=n.key,l=!c,d=(r=l?s?U(r,u):[u]:H(r,u)).map((function(e){var t=o[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),a&&a(r,{event:"select",selected:l,node:n,selectedNodes:d,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var o,i=e.state,a=i.keyEntities,c=i.checkedKeys,u=i.halfCheckedKeys,l=e.props,d=l.checkStrictly,f=l.onCheck,p=n.key,h={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var v=r?U(c,p):H(c,p);o={checked:v,halfChecked:H(u,p)},h.checkedNodes=v.map((function(e){return a[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:v})}else{var y=Dn([].concat((0,s.Z)(c),[p]),!0,a),m=y.checkedKeys,g=y.halfCheckedKeys;if(!r){var b=new Set(m);b.delete(p);var x=Dn(Array.from(b),{checked:!1,halfCheckedKeys:g},a);m=x.checkedKeys,g=x.halfCheckedKeys}o=m,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=g,m.forEach((function(e){var t=a[e];if(t){var n=t.node,r=t.pos;h.checkedNodes.push(n),h.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:g})}f&&f(o,h)},e.onNodeLoad=function(t){return new Promise((function(n,r){e.setState((function(o){var i=o.loadedKeys,a=void 0===i?[]:i,s=o.loadingKeys,c=void 0===s?[]:s,u=e.props,l=u.loadData,d=u.onLoad,f=t.key;return l&&-1===a.indexOf(f)&&-1===c.indexOf(f)?(l(t).then((function(){var r=e.state,o=r.loadedKeys,i=r.loadingKeys,a=U(o,f),s=H(i,f);d&&d(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState({loadingKeys:s}),n()})).catch((function(t){var n=H(e.state.loadingKeys,f);e.setState({loadingKeys:n}),r(t)})),{loadingKeys:U(c,f)}):null}))}))},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;r&&r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;r&&r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0}),t&&t.apply(void 0,arguments)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null),t&&t.apply(void 0,arguments)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=T(e.state.treeData,t);e.setUncontrolledState({expandedKeys:t,flattenNodes:n},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,o=e.state.listChanging,i=e.props,a=i.onExpand,s=i.loadData,c=n.key,u=n.expanded;if(!o){var l=r.indexOf(c),d=!u;if(x(u&&-1!==l||!u&&-1===l,"Expand state not sync with index check"),r=d?U(r,c):H(r,c),e.setExpandedKeys(r),a&&a(r,{node:n,expanded:d,nativeEvent:t.nativeEvent}),d&&s){var f=e.onNodeLoad(n);f&&f.then((function(){var t=T(e.state.treeData,r);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=H(e.state.expandedKeys,c);e.setExpandedKeys(t)}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),r&&r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.data.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.data.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var s=a.data.key;e.onActiveChange(s)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,s=e.props,c=s.onKeyDown,u=s.checkable,l=s.selectable;switch(t.which){case y.UP:e.offsetActiveKey(-1),t.preventDefault();break;case y.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data.children||[]).length,h=L((0,a.Z)((0,a.Z)({},A(r,f)),{},{data:d.data,active:!0}));switch(t.which){case y.LEFT:p&&o.includes(r)?e.onNodeExpand({},h):d.parent&&e.onActiveChange(d.parent.data.key),t.preventDefault();break;case y.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},h):d.children&&d.children.length&&e.onActiveChange(d.children[0].data.key),t.preventDefault();break;case y.ENTER:case y.SPACE:!u||h.disabled||!1===h.checkable||h.disableCheckbox?u||!l||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(r))}}c&&c(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,s={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,s[n]=t[n])})),!o||n&&!i||e.setState((0,a.Z)((0,a.Z)({},s),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,u.Z)(r,[{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"render",value:function(){var e,t=this.state,r=t.focused,a=t.flattenNodes,s=t.keyEntities,c=t.dragging,u=t.activeKey,l=t.dropLevelOffset,d=t.dropContainerKey,f=t.dropTargetKey,p=t.dropPosition,h=t.dragOverNodeKey,v=t.indent,y=this.props,m=y.prefixCls,g=y.className,b=y.style,x=y.showLine,w=y.focusable,S=y.tabIndex,O=void 0===S?0:S,C=y.selectable,Z=y.showIcon,N=y.icon,P=y.switcherIcon,R=y.draggable,T=y.checkable,M=y.checkStrictly,A=y.disabled,L=y.motion,D=y.loadData,K=y.filterTreeNode,j=y.height,_=y.itemHeight,I=y.virtual,F=y.titleRender,H=y.dropIndicatorRender,U=y.onContextMenu,z=y.direction,B=X(this.props);return n.createElement(k.Provider,{value:{prefixCls:m,selectable:C,showIcon:Z,icon:N,switcherIcon:P,draggable:R,checkable:T,checkStrictly:M,disabled:A,keyEntities:s,dropLevelOffset:l,dropContainerKey:d,dropTargetKey:f,dropPosition:p,dragOverNodeKey:h,indent:v,direction:z,dropIndicatorRender:H,loadData:D,filterTreeNode:K,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},n.createElement("div",{className:E()(m,g,(e={},(0,i.Z)(e,"".concat(m,"-show-line"),x),(0,i.Z)(e,"".concat(m,"-focused"),r),(0,i.Z)(e,"".concat(m,"-active-focused"),null!==u),e))},n.createElement(Mn,(0,o.Z)({ref:this.listRef,prefixCls:m,style:b,data:a,disabled:A,selectable:C,checkable:!!T,motion:L,dragging:c,height:j,itemHeight:_,virtual:I,focusable:w,focused:r,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U},this.getTreeNodeRequiredProps(),B))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function s(t){return!r&&t in e||r&&r[t]!==e[t]}if(s("treeData")?n=e.treeData:s("children")&&(x(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=function e(t){return N(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return x(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=(0,O.Z)(r,P),s=(0,a.Z)({key:n},i),c=e(o);return c.length&&(s.children=c),s})).filter((function(e){return e}))}(e.children)),n){o.treeData=n;var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=arguments.length>2?arguments[2]:void 0,c=i||s,u={},l={},d={posEntities:u,keyEntities:l};return n&&(d=n(d)||d),M(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,s={node:t,index:n,key:i,pos:o,level:e.level},c=R(i,o);u[o]=s,l[c]=s,s.parent=u[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,d)}),{externalGetKey:c,childrenPropName:a}),o&&o(d),d}(n);o.keyEntities=(0,a.Z)((0,i.Z)({},Sn,Cn),c.keyEntities)}var u,l=o.keyEntities||t.keyEntities;if(s("expandedKeys")||r&&s("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Y(e.expandedKeys,l):e.expandedKeys;else if(!r&&e.defaultExpandAll){var d=(0,a.Z)({},l);delete d[Sn],o.expandedKeys=Object.keys(d).map((function(e){return d[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Y(e.defaultExpandedKeys,l):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=T(n||t.treeData,o.expandedKeys||t.expandedKeys);o.flattenNodes=f}if((e.selectable&&(s("selectedKeys")?o.selectedKeys=$(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=$(e.defaultSelectedKeys,e))),e.checkable)&&(s("checkedKeys")?u=V(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=V(e.defaultCheckedKeys)||{}:n&&(u=V(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var p=u,h=p.checkedKeys,v=void 0===h?[]:h,y=p.halfCheckedKeys,m=void 0===y?[]:y;if(!e.checkStrictly){var g=Dn(v,!0,l);v=g.checkedKeys,m=g.halfCheckedKeys}o.checkedKeys=v,o.halfCheckedKeys=m}return s("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),r}(n.Component);Kn.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,r=e.dropLevelOffset,o=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o}return n.createElement("div",{style:i})},allowDrop:function(){return!0}},Kn.TreeNode=F;var jn=Kn,_n=p(86010);function In(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fn=function(e){var t=[];return function e(n){if("object"!=typeof n||!n)return n;for(var r=0;r<t.length;r++)if(t[r].target===n)return t[r].copyTarget;var o={};return Array.isArray(n)&&(o=[]),t.push({target:n,copyTarget:o}),Object.keys(n).forEach((function(t){o[t]||(o[t]=e(n[t]))})),o}(e)},Hn=function(e){return e?e.reduce((function(e,t){var n=t.children,r=void 0===n?[]:n,o=In(t,["children"]);return e.concat([o],Hn(r))}),[]):[]},Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{key:"key",parentId:"parentId"},n=[],r=e.reduce((function(e,n){return e[n[t.key]]=n,e}),{}),o=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var u=s.value,l=u[t.parentId];if(l in r){var d=r[l];d.children=d.children||[],d.children.push(u)}else n.push(u)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return n},zn=p(79787),Bn=p.n(zn),Wn=p(35648),Gn=p.n(Wn),qn=p(25033),$n=p.n(qn),Vn=p(4525);var Yn=function(){return{height:0,opacity:0}},Xn=function(e){return{height:e.scrollHeight,opacity:1}},Jn=function(e,t){return"height"===t.propertyName},Qn={motionName:"paraui-motion-collapse",onAppearStart:Yn,onEnterStart:Yn,onAppearActive:Xn,onEnterActive:Xn,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:Yn,onAppearEnd:Jn,onEnterEnd:Jn,onLeaveEnd:Jn,motionDeadline:500};var er=p(99760),tr=p.n(er),nr=p(46819),rr=p.n(nr),or=p(13042),ir=p.n(or),ar=p(45912),sr=p.n(ar),cr=p(5685),ur=p(73475);p(90019);function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dr(e,t,n[t])}))}return e}function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hr={add:{icon:r().createElement(rr(),null),text:"新增"},edit:{icon:r().createElement(tr(),null),text:"编辑"},enable:{icon:r().createElement(sr(),null),text:"禁用"},del:{icon:r().createElement(ir(),null),text:"删除"}},vr=function(e){var t,o=e.actionsCallback,i=e.opRef,a=e.mouseInRef,s=e.showActions,c=e.onRemove,u=(0,n.useRef)(null),l=(0,n.useRef)((0,ur.UUID)().replace(/-/g,"")),d=pr((0,n.useState)({}),2),f=d[0],p=d[1],h=pr((0,n.useState)(!1),2),v=h[0],y=h[1],m=pr((0,n.useState)(!1),2),g=m[0],b=m[1],x=i.current,w=function(e,t){return{left:Math.round(Math.sin(Math.PI/180*t)*e)+"px",top:-Math.round(Math.cos(Math.PI/180*t)*e+12)+"px"}},E=function(e,t){var n=0;return 4===e?n=t*60:3===e?n=(2*t+1)*30:2===e?n=(t+1)*60:1===e?n=90:5===e?n=t*45:e>5&&e<=7?n=t*30:e>7&&(n=t*20),n},k=function(){var e,t,n=document.getElementById(l.current),r=null===(e=null==n?void 0:n.getElementsByClassName("sector-item-container"))||void 0===e?void 0:e[0],o=(null==r?void 0:r.childNodes)||[],a=null==r?void 0:r.parentNode,s=(t=o.length)<=4?40:5===t?60:t>5&&t<7?80:100;a&&function(e,t){var n,r,o=(null===(n=i.current)||void 0===n||null===(r=n.anchorEl)||void 0===r?void 0:r.getBoundingClientRect())||{},a=o.top,s=o.left,c=t+24+12,u=2*t+24+12;a=a-u/2+o.height/2,e.style.cssText="\n position: fixed;\n width:".concat(c,"px;\n height: ").concat(u,"px;\n top: ").concat(a,"px;\n left: ").concat(s,"px;\n ")}(a,s);for(var c=0;c<o.length;c++){var u=o[c];u.style.transition=".3s",u.style.opacity=1;var d=E(o.length,c),f=w(s,d),p=f.left,h=f.top;u.style.transform="translate(".concat(p,",").concat(h,")")}},S=function(e,t){t?(p(e),k()):function(){for(var e,t,n=document.getElementById(l.current),r=null===(e=null==n?void 0:n.getElementsByClassName("sector-item-container"))||void 0===e?void 0:e[0],o=(null==r?void 0:r.childNodes)||[],i=0;i<o.length;i++){var a=o[i];a.style.transition=".3s",a.style.transform="translate(0,0)",a.style.opacity=0}null==n||null===(t=n.parentNode)||void 0===t||t.removeChild(n),b(!1)}()};return(0,n.useImperativeHandle)(i,(function(){return fr({},x,{uid:l.current,onShowSector:S})})),(0,n.useEffect)((function(){var e;g||((e=document.getElementById(l.current))||((e=document.createElement("div")).id=l.current,e.style.position="fixed",e.style.top="-9999px",document.body.appendChild(e),b(!0)),y(!0),u.current=e)}),[g]),(0,n.useEffect)((function(){return function(){var e,t;null===(e=u.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(u.current),b(!1)}}),[]),r().createElement(r().Fragment,null,v&&ne().createPortal(r().createElement("div",{className:"sector-container",onMouseLeave:function(){null==c||c(x.anchorEl)},onMouseEnter:function(){a.current=!0}},r().createElement("ul",{className:"sector-item-container"},(null==(t=function(e,t){if(void 0===e||!1===e)return[];if(!0===e)return Object.keys(hr).map((function(e){return fr({},hr[e],{action:e})}));var n=[];return Object.keys(e).forEach((function(r){var o=e[r];"customizeActions"!==r?"object"==typeof o?"function"==typeof o.show?o.show(t)&&n.push(fr({},hr[r],o,{action:r})):n.push(fr({},hr[r],o,{action:r})):"function"==typeof o?o(t)&&n.push(fr({},hr[r],{action:r})):o&&n.push(fr({},hr[r],{action:r})):Array.isArray(o)&&o.length&&o.forEach((function(e){"function"==typeof e.show?e.show(t)&&n.push(e):n.push(e)}))})),n}(s,f))?void 0:t.length)?t.map((function(e,t){var n=null!=e?e:{},i=n.action,a=n.text,s=n.icon;return r().createElement(cr.default,{title:a,key:t},r().createElement("li",{className:(0,_n.Z)("sector-item",{"sector-item--del":"del"===i}),onClick:function(e){return function(e,t,n){n.stopPropagation(),null==o||o(e,t,n)}(f,i,e)}},s))})):null)),u.current))},yr=p(7655),mr=p.n(yr);function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function br(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function xr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){br(i,r,o,a,s,"next",e)}function s(e){br(i,r,o,a,s,"throw",e)}a(void 0)}))}}function wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Er(){return Er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Er.apply(this,arguments)}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wr(e,t,n[t])}))}return e}function Sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Cr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(e){return function(e){if(Array.isArray(e))return gr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cr(e,t){if(e){if("string"==typeof e)return gr(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(e,t):void 0}}var Zr={page:1,size:10},Nr=r().forwardRef((function(e,o){var i,a=e.url,s=e.ctx,c=e.params,u=void 0===c?null:c,l=e.method,d=void 0===l?"GET":l,f=e.requestCallback,p=e.refresh,h=e.replaceFields,v=void 0===h?{key:"key",parentId:"parentId",children:"children",title:"title",loadKey:"key"}:h,y=e.treeData,m=e.prefixCls,g=e.className,b=e.showIcon,x=e.icon,w=e.showLine,E=e.switcherIcon,k=e.blockNode,S=e.checkable,O=e.selectable,C=e.radioable,Z=void 0!==C&&C,N=e.showRadio,P=void 0===N||N,R=e.checkStrictly,T=void 0!==R&&R,M=e.actionsCallback,A=e.showActions,L=e.checkedKeys,D=e.defaultCheckedKeys,K=e.expandedKeys,j=e.defaultExpandedKeys,_=e.onCheck,I=e.onExpand,F=e.asyncLoad,H=void 0!==F&&F,U=e.pagination,z=void 0!==U&&U,B=e.pageSize,W=void 0===B?Zr:B,G=e.loadData,q=e.localFilter,$=void 0!==q&&q,V=e.localParams,Y=e.onFilter,X=e.loadMoreNode,J=void 0===X?null:X,Q=e.paramsCallback,ee=Sr((0,n.useState)([]),2),te=ee[0],ne=ee[1],re=Sr((0,n.useState)([]),2),oe=re[0],ie=re[1],ae=Sr((0,n.useState)([]),2),se=ae[0],ce=ae[1],ue=(0,n.useRef)({}),le=(0,n.useRef)(!1),de=(0,n.useRef)(-1),fe=(0,n.useRef)([]),pe=function(e,t){return t||(e?"paraui-".concat(e):"paraui")}("tree",m),he=(0,n.useRef)({}),ve=(0,n.useRef)([]),ye=function(e,t){var n=[],r=Hn(t),o=!0,i=!1,a=void 0;try{for(var s,c=function(e,t){var o=t.value;-1===r.findIndex((function(e){return e.key===o}))&&n.push(o)},u=e[Symbol.iterator]();!(o=(s=u.next()).done);o=!0)c(0,s)}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return n}(oe,te),me=kr({},Zr,W),ge=(0,n.useRef)([]),be=kr({},e,{showLine:Boolean(w),checkStrictly:Z||T,showIcon:Z||b}),xe=function(e){return v&&function e(t){var n=v||{},r=n.key,o=n.title,i=n.children,a=n.parentId;t.forEach((function(t){var n;r&&(t.key=t[r]),o&&(t.title=t[o]),i&&(t.children=t[i]),a&&(t.parentId=t[a]),(null===(n=t.children)||void 0===n?void 0:n.length)&&e(t.children)}))}(e),e},we=function(e){return r().createElement("span",{className:"paraui-tree-title-wrapper",onMouseEnter:Ee,onMouseLeave:ke},e.title,r().createElement("div",{className:"sector-anchor",onMouseEnter:function(t){return Oe(e,t)},onMouseLeave:Ce},r().createElement(mr(),null)))},Ee=function(e){e.stopPropagation(),Re();var t=e.currentTarget;if(t){var n=t.closest(".paraui-tree-node-content-wrapper");fe.current.push(n),Se(n,!0)}},ke=function(e){e.stopPropagation(),Re();var t=e.currentTarget;if(t){var n=t.closest(".paraui-tree-node-content-wrapper");Se(n,!1)}},Se=function(e,t){e&&(t?null==e||e.classList.add("paraui-tree-node-content-wrapper--active"):null==e||e.classList.remove("paraui-tree-node-content-wrapper--active"))},Oe=function(e,t){t.stopPropagation();var n=t.currentTarget;ue.current.anchorEl=n,de.current=setTimeout((function(){clearTimeout(de.current),Ze(n,e)}),300)},Ce=function(e){e.stopPropagation(),clearTimeout(de.current);var t=e.currentTarget,n=setTimeout((function(){clearTimeout(n),le.current||Ne(t)}),300)},Ze=function(e,t){var n,r,o=document.getElementById(ue.current.uid);(e.classList.add("sector-anchor--active"),o)&&(o.querySelector(".sector-container")&&(null===(n=ue.current)||void 0===n||null===(r=n.onShowSector)||void 0===r||r.call(n,t,!0)))},Ne=function(e){var t,n;e&&(e.classList.remove("sector-anchor--active"),null===(t=ue.current)||void 0===t||null===(n=t.onShowSector)||void 0===n||n.call(t,{},!1))},Pe=function(e){if(e){var t=e.closest(".paraui-tree-node-content-wrapper");Se(t,!1),Ne(e)}},Re=function(){var e;(null===(e=fe.current)||void 0===e?void 0:e.length)&&(fe.current.forEach((function(e){var t;null==e||null===(t=e.classList)||void 0===t||t.remove("paraui-tree-node-content-wrapper--active")})),fe.current.length=0)},Te=function(e,t){var n=[],r=[];if(Z){var o=t.node,i=v.key;t.checked&&(n=[o[i]])}else T?(n=e.checked,r=e.halfChecked,ge.current=r):n=e;var a=Or(n).concat(Or(ye));ie(a),null==_||_(a,t,r)},Me=function(e,t){ce(Or(e)),null==I||I(e,t)},Ae=(i=xr(t().mark((function e(){var n,r,o,i,c,u,l=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>0&&void 0!==l[0]?l[0]:{},a){e.next=3;break}return e.abrupt("return",[]);case 3:return r=(null==Q?void 0:Q(n))||n,o=null==d?void 0:d.toUpperCase(),i=wr({url:a,ctx:s,method:o},"GET"===o?"params":"data",r||{}),e.next=8,(0,ur.Request)(i);case 8:if(c=e.sent,u=c.data,!c.err){e.next=13;break}return e.abrupt("return",[]);case 13:return e.abrupt("return",u.data||[]);case 14:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)}),Le=function(e,t,n,r){return"ROOT_KEY"===t?(e.pop(),e.concat(n)):e.map((function(e){if(e.key===t){if(r){var o=e.children||[];return o.pop(),kr({},e,{children:o.concat(n)})}return kr({},e,{children:n})}return e.children?kr({},e,{children:Le(e.children,t,n,r)}):e}))},De=function(e){var n=e.key,r=e.children,o=e.parentId,i=e.moreFlag;return new Promise(xr(t().mark((function e(a){var s,c,l,d,p,h,y,m,g,b,x;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=3;break}return a(),e.abrupt("return");case 3:return s=n,c=v.loadKey,l=kr(wr({},c,s),u),z&&(i&&(s=o,he.current[s].page+=1,l[c]=s,"ROOT_KEY"===s&&delete l[c]),l.page=he.current[s].page,l.size=he.current[s].size),e.next=9,Ae(l);case 9:return d=e.sent,e.next=12,null==f?void 0:f(d);case 12:(p=e.sent)&&(d=p),h={},z&&(y=d.list,m=void 0===y?[]:y,g=d.page,b=d.size,x=d.total,d=m,h={page:g,size:b,total:x}),(null==d?void 0:d.length)?(d=xe(d),z&&(d=Ke(d,h,s)),ne((function(e){return Le(e,s,d,i)}))):ne([]),a();case 18:case"end":return e.stop()}}),e)}))))},Ke=function(e,t,n){var o,i,a,s=Un(e);if(t.page*t.size<t.total){var c={key:String((1e6*Math.random()|0)+Date.now()),title:"加载更多",checkable:!1,disableCheckbox:!0,isLeaf:!0,selectable:!1,icon:null,moreFlag:!0};c.parentId=n||"ROOT_KEY",c.title=(o=c,r().createElement("span",{className:"paraui-treenode-more-wrapper",onClick:function(e){e.stopPropagation(),De(o)}},J||o.title)),s.push(c)}return he.current=(i=s,a=he.current,(null==i?void 0:i.length)?(i.forEach((function(e){var t=e.moreFlag?e.parentId:e.key;a[t]||(a[t]=kr({},e,me))})),a):a),s},je=function(){var e=xr(t().mark((function e(){var n,r,o,i,a,s,c,l,d;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=kr({},u),z&&(n.page=me.page,n.size=me.size),e.next=4,Ae(n);case 4:return r=e.sent,o={},e.next=8,null==f?void 0:f(r);case 8:if((i=e.sent)&&(r=i),z&&(a=r.list,s=void 0===a?[]:a,c=r.page,l=r.size,d=r.total,r=s,o={page:c,size:l,total:d},he.current={}),null==r?void 0:r.length){e.next=13;break}return e.abrupt("return",ne([]));case 13:r=xe(r),$&&(ve.current=Fn(r)),z&&(r=Ke(r,o)),ne(Or(r));case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,n.useEffect)((function(){D&&ie(Or(D)),j&&ce(Or(j))}),[D,j]),(0,n.useEffect)((function(){var e;L&&(ie(Or((e=L,Array.isArray(e)?e:e.checked))),ge.current=function(e){return Array.isArray(e)?[]:e.halfChecked}(L)),K&&ce(Or(K))}),[L,K]),(0,n.useEffect)((function(){var e,t;if(Array.isArray(y)){var n=xe(y);$&&(ve.current=Fn(n)),be.defaultExpandAll&&(e=n,t=[],K||j||(function e(n){n.forEach((function(n){var r;(null===(r=n.children)||void 0===r?void 0:r.length)&&(t.push(n.key),e(n.children))}))}(e),t.length&&ce(t))),ne(Or(n))}else je()}),[a,s,u,d,p,y]),(0,n.useEffect)((function(){function e(t){return t.reduce((function(t,n){return t.concat(n.key,e(n.children||[]))}),[])}if($){if(Y){var t=Y(ve.current);if(!t)return;return void ne(t)}!function(t){var n=t.searchKey,r=t.searchValue;if(n){if(""===r)return ne(ve.current),void ce(Or(K||j||[]));var o=Hn(ve.current),i=o.reduce((function(e,t){return String(t[n]).toLowerCase().includes(null==r?void 0:r.toLowerCase())?e.concat(t):e}),[]),a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{key:"key",parentId:"parentId"},r={},o=e.reduce((function(e,t){return e[t[n.key]]=t,e}),{}),i=t.reduce((function(e,t){return e[t[n.key]]=t,e}),{}),a=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;d[n.key]in i&&f(d)}}catch(e){s=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw c}}function f(e){r[e[n.key]]=e;var t=o[e[n.parentId]];t&&(r[t[n.key]]=t,t[n.parentId]&&f(t))}var p=Object.keys(r).reduce((function(e,t){return e.concat(r[t])}),[]);return Un(p)}(Fn(o),i);ne(a),ce(e(a))}}(V)}}),[$,V]);var _e=(0,n.useMemo)((function(){if(!(null==te?void 0:te.length))return null;var e,t,i=oe;return T&&(i={checked:oe,halfChecked:ge.current}),r().createElement(jn,Er({itemHeight:20,ref:o},be,{prefixCls:pe,className:(0,_n.Z)("paraui-tree",(wr(t={},"".concat(pe,"-icon-hide"),!b),wr(t,"".concat(pe,"-block-node"),k),wr(t,"".concat(pe,"-unselectable"),!O),wr(t,"".concat(pe,"-radioable"),Z),wr(t,"".concat(pe,"-radioable-showradio"),Z&&P),t),g),checkable:Z||S?r().createElement("span",{className:"".concat(pe,"-checkbox-inner")}):S,selectable:!Z&&O,switcherIcon:function(e){return function(e,t,o,i){var a,s=i.isLeaf,c=(i.expanded,i.loading);if(i.eventKey,c)return r().createElement(Bn(),{className:"".concat(e,"-switcher-loading-icon")});if(o&&"object"==typeof o&&(a=o.showLeafIcon),s)return o?"object"!=typeof o||a?r().createElement(Gn(),{className:"".concat(e,"-switcher-line-icon")}):r().createElement("span",{className:"".concat(e,"-switcher-leaf-line")}):null;var u="".concat(e,"-switcher-icon");return(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{className:(0,_n.Z)(t.props.className||"",u)}):t||(o?r().createElement($n(),{className:"".concat(e,"-switcher-line-icon")}):r().createElement($n(),{className:u}))}(pe,E,w,e)}},(e={},H&&(e.loadData=De),G&&(e.loadData=G),A&&(e.titleRender=we),e),{treeData:te,checkedKeys:i,expandedKeys:se,onCheck:Te,onExpand:Me,icon:function(e){return x?r().createElement("span",{className:"paraui-tree-iconEle-icon"},"function"==typeof x?x(e):x):!1===e.checkable?null:Z&&P?function(e,t,n,o){var i;if(!t)return null;var a=o.key,s=(null===(i=e.data)||void 0===i?void 0:i[a])===n;return r().createElement(Vn.default,{className:"paraui-tree-node-radio",checked:s})}(e,Z,oe[0],v):null}}))}),[te,oe,se,be.selectedKeys]);return r().createElement(r().Fragment,null,_e,A?r().createElement(vr,{opRef:ue,mouseInRef:le,actionsCallback:M,onRemove:Pe,showActions:A}):null)}));Nr.defaultProps={checkable:!1,selectable:!0,showIcon:!1,motion:kr({},Qn,{motionAppear:!1}),blockNode:!1};var Pr=Nr,Rr=(p(87622),p(74314),Pr)}(),h}()}));
|