(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8928],{61639:function($e,ge,l){"use strict";l.d(ge,{Z:function(){return g}});var ie=l(90484),F=l(44378),ye=l(86504),se=l(7085),Ne=l(18095),Ce=l(18267),te=l(94184),J=l.n(te),Y=l(67294),O=l(96159);function g(w,Q,ne,ae){var oe=ae.isLeaf,j=ae.expanded,C=ae.loading;if(C)return Y.createElement(se.Z,{className:"".concat(w,"-switcher-loading-icon")});var i;if(ne&&(0,ie.Z)(ne)==="object"&&(i=ne.showLeafIcon),oe){if(!ne)return null;if(typeof i!="boolean"&&!!i){var h=typeof i=="function"?i(ae):i,s="".concat(w,"-switcher-line-custom-icon");return(0,O.l$)(h)?(0,O.Tm)(h,{className:J()(h.props.className||"",s)}):h}return i?Y.createElement(ye.Z,{className:"".concat(w,"-switcher-line-icon")}):Y.createElement("span",{className:"".concat(w,"-switcher-leaf-line")})}var u="".concat(w,"-switcher-icon"),f=typeof Q=="function"?Q(ae):Q;return(0,O.l$)(f)?(0,O.Tm)(f,{className:J()(f.props.className||"",u)}):f||(ne?j?Y.createElement(Ne.Z,{className:"".concat(w,"-switcher-line-icon")}):Y.createElement(Ce.Z,{className:"".concat(w,"-switcher-line-icon")}):Y.createElement(F.Z,{className:u}))}},4258:function($e,ge,l){"use strict";l.d(ge,{Z:function(){return L}});var ie=l(22122),F=l(96156),ye=l(81253),se=l(28991),Ne=l(6610),Ce=l(5991),te=l(63349),J=l(10379),Y=l(44144),O=l(67294),g=l(94184),w=l.n(g),Q=l(64217),ne=l(27822),ae=function(S){for(var A=S.prefixCls,t=S.level,D=S.isStart,k=S.isEnd,I="".concat(A,"-indent-unit"),d=[],o=0;o0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=v.length,e=P.length;if(Math.abs(M-e)!==1)return{add:!1,key:null};function y(z,H){var n=new Map;z.forEach(function(a){n.set(a,!0)});var r=H.filter(function(a){return!n.has(a)});return r.length===1?r[0]:null}return M ").concat(P);return P}var Ee=g.forwardRef(function(v,P){var M=v.prefixCls,e=v.data,y=v.selectable,z=v.checkable,H=v.expandedKeys,n=v.selectedKeys,r=v.checkedKeys,a=v.loadedKeys,p=v.loadingKeys,m=v.halfCheckedKeys,b=v.keyEntities,E=v.disabled,T=v.dragging,R=v.dragOverNodeKey,$=v.dropPosition,c=v.motion,W=v.height,U=v.itemHeight,Z=v.virtual,_=v.focusable,X=v.activeItem,de=v.focused,ce=v.tabIndex,ee=v.onKeyDown,he=v.onFocus,ue=v.onBlur,ve=v.onActiveChange,me=v.onListChangeStart,Oe=v.onListChangeEnd,Te=(0,u.Z)(v,d),Le=g.useRef(null),be=g.useRef(null);g.useImperativeHandle(P,function(){return{scrollTo:function(Me){Le.current.scrollTo(Me)},getIndentWidth:function(){return be.current.offsetWidth}}});var Ue=g.useState(H),_e=(0,s.Z)(Ue,2),Xe=_e[0],Ve=_e[1],Je=g.useState(e),Ge=(0,s.Z)(Je,2),Ze=Ge[0],je=Ge[1],Qe=g.useState(e),ze=(0,s.Z)(Qe,2),qe=ze[0],Fe=ze[1],et=g.useState([]),Re=(0,s.Z)(et,2),it=Re[0],tt=Re[1],st=g.useState(null),rt=(0,s.Z)(st,2),lt=rt[0],nt=rt[1],ot=g.useRef(e);ot.current=e;function at(){var le=ot.current;je(le),Fe(le),tt([]),nt(null),Oe()}g.useEffect(function(){Ve(H);var le=k(Xe,H);if(le.key!==null)if(le.add){var Me=Ze.findIndex(function(We){var He=We.key;return He===le.key}),Ae=G(I(Ze,e,le.key),Z,W,U),Be=Ze.slice();Be.splice(Me+1,0,V),Fe(Be),tt(Ae),nt("show")}else{var Ie=e.findIndex(function(We){var He=We.key;return He===le.key}),we=G(I(e,Ze,le.key),Z,W,U),Ye=e.slice();Ye.splice(Ie+1,0,V),Fe(Ye),tt(we),nt("hide")}else Ze!==e&&(je(e),Fe(e))},[H,e]),g.useEffect(function(){T||at()},[T]);var ct=c?qe:e,dt={expandedKeys:H,selectedKeys:n,loadedKeys:a,loadingKeys:p,checkedKeys:r,halfCheckedKeys:m,dragOverNodeKey:R,dropPosition:$,keyEntities:b};return g.createElement(g.Fragment,null,de&&X&&g.createElement("span",{style:o,"aria-live":"assertive"},fe(X)),g.createElement("div",null,g.createElement("input",{style:o,disabled:_===!1||E,tabIndex:_!==!1?ce:null,onKeyDown:ee,onFocus:he,onBlur:ue,value:"",onChange:N,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(M,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(M,"-indent")},g.createElement("div",{ref:be,className:"".concat(M,"-indent-unit")}))),g.createElement(f.Z,(0,ie.Z)({},Te,{data:ct,itemKey:q,height:W,fullHeight:!1,virtual:Z,itemHeight:U,prefixCls:"".concat(M,"-list"),ref:Le,onVisibleChange:function(Me,Ae){var Be=new Set(Me),Ie=Ae.filter(function(we){return!Be.has(we)});Ie.some(function(we){return q(we)===K})&&at()}}),function(le){var Me=le.pos,Ae=(0,ie.Z)({},(h(le.data),le.data)),Be=le.title,Ie=le.key,we=le.isStart,Ye=le.isEnd,We=(0,i.km)(Ie,Me);delete Ae.key,delete Ae.children;var He=(0,i.H8)(We,dt);return g.createElement(D,(0,ie.Z)({},Ae,He,{title:Be,active:!!X&&Ie===X.key,pos:Me,data:le.data,isStart:we,isEnd:Ye,motion:c,motionNodes:Ie===K?it:null,motionType:lt,onMotionStart:me,onMotionEnd:at,treeNodeRequiredProps:dt,onMouseMove:function(){ve(null)}}))}))});Ee.displayName="NodeList";var xe=Ee,De=l(17341);function ke(v){var P=v.dropPosition,M=v.dropLevelOffset,e=v.indent,y={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(P){case-1:y.top=0,y.left=-M*e;break;case 1:y.bottom=0,y.left=-M*e;break;case 0:y.bottom=0,y.left=e;break}return g.createElement("div",{style:y})}var Ke=10,Pe=function(v){(0,Y.Z)(M,v);var P=(0,O.Z)(M);function M(){var e;(0,Ce.Z)(this,M);for(var y=arguments.length,z=new Array(y),H=0;H2&&arguments[2]!==void 0?arguments[2]:!1,m=e.state,b=m.dragChildrenKeys,E=m.dropPosition,T=m.dropTargetKey,R=m.dropTargetPos,$=m.dropAllowed;if(!!$){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),T!==null){var W=(0,se.Z)((0,se.Z)({},(0,i.H8)(T,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===T,data:e.state.keyEntities[T].node}),U=b.indexOf(T)!==-1;(0,Q.ZP)(!U,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Z=(0,C.yx)(R),_={event:n,node:(0,i.F)(W),dragNode:e.dragNode?(0,i.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(b),dropToGap:E!==0,dropPosition:E+Number(Z[Z.length-1])};p||c==null||c(_),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,r){var a=e.state,p=a.expandedKeys,m=a.flattenNodes,b=r.expanded,E=r.key,T=r.isLeaf;if(!(T||n.shiftKey||n.metaKey||n.ctrlKey)){var R=m.filter(function(c){return c.key===E})[0],$=(0,i.F)((0,se.Z)((0,se.Z)({},(0,i.H8)(E,e.getTreeNodeRequiredProps())),{},{data:R.data}));e.setExpandedKeys(b?(0,C._5)(p,E):(0,C.L0)(p,E)),e.onNodeExpand(n,$)}},e.onNodeClick=function(n,r){var a=e.props,p=a.onClick,m=a.expandAction;m==="click"&&e.triggerExpandActionExpand(n,r),p==null||p(n,r)},e.onNodeDoubleClick=function(n,r){var a=e.props,p=a.onDoubleClick,m=a.expandAction;m==="doubleClick"&&e.triggerExpandActionExpand(n,r),p==null||p(n,r)},e.onNodeSelect=function(n,r){var a=e.state.selectedKeys,p=e.state,m=p.keyEntities,b=p.fieldNames,E=e.props,T=E.onSelect,R=E.multiple,$=r.selected,c=r[b.key],W=!$;W?R?a=(0,C.L0)(a,c):a=[c]:a=(0,C._5)(a,c);var U=a.map(function(Z){var _=m[Z];return _?_.node:null}).filter(function(Z){return Z});e.setUncontrolledState({selectedKeys:a}),T==null||T(a,{event:"select",selected:W,node:r,selectedNodes:U,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,r,a){var p=e.state,m=p.keyEntities,b=p.checkedKeys,E=p.halfCheckedKeys,T=e.props,R=T.checkStrictly,$=T.onCheck,c=r.key,W,U={event:"check",node:r,checked:a,nativeEvent:n.nativeEvent};if(R){var Z=a?(0,C.L0)(b,c):(0,C._5)(b,c),_=(0,C._5)(E,c);W={checked:Z,halfChecked:_},U.checkedNodes=Z.map(function(ue){return m[ue]}).filter(function(ue){return ue}).map(function(ue){return ue.node}),e.setUncontrolledState({checkedKeys:Z})}else{var X=(0,De.S)([].concat((0,Ne.Z)(b),[c]),!0,m),de=X.checkedKeys,ce=X.halfCheckedKeys;if(!a){var ee=new Set(de);ee.delete(c);var he=(0,De.S)(Array.from(ee),{checked:!1,halfCheckedKeys:ce},m);de=he.checkedKeys,ce=he.halfCheckedKeys}W=de,U.checkedNodes=[],U.checkedNodesPositions=[],U.halfCheckedKeys=ce,de.forEach(function(ue){var ve=m[ue];if(!!ve){var me=ve.node,Oe=ve.pos;U.checkedNodes.push(me),U.checkedNodesPositions.push({node:me,pos:Oe})}}),e.setUncontrolledState({checkedKeys:de},!1,{halfCheckedKeys:ce})}$==null||$(W,U)},e.onNodeLoad=function(n){var r=n.key,a=new Promise(function(p,m){e.setState(function(b){var E=b.loadedKeys,T=E===void 0?[]:E,R=b.loadingKeys,$=R===void 0?[]:R,c=e.props,W=c.loadData,U=c.onLoad;if(!W||T.indexOf(r)!==-1||$.indexOf(r)!==-1)return null;var Z=W(n);return Z.then(function(){var _=e.state.loadedKeys,X=(0,C.L0)(_,r);U==null||U(X,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:X}),e.setState(function(de){return{loadingKeys:(0,C._5)(de.loadingKeys,r)}}),p()}).catch(function(_){if(e.setState(function(de){return{loadingKeys:(0,C._5)(de.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=Ke){var X=e.state.loadedKeys;(0,Q.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,C.L0)(X,r)}),p()}m(_)}),{loadingKeys:(0,C.L0)($,r)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(n,r){var a=e.props.onMouseEnter;a==null||a({event:n,node:r})},e.onNodeMouseLeave=function(n,r){var a=e.props.onMouseLeave;a==null||a({event:n,node:r})},e.onNodeContextMenu=function(n,r){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:r}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var r=arguments.length,a=new Array(r),p=0;p1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var p=!1,m=!0,b={};Object.keys(n).forEach(function(E){if(E in e.props){m=!1;return}p=!0,b[E]=n[E]}),p&&(!r||m)&&e.setState((0,se.Z)((0,se.Z)({},b),a))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,te.Z)(M,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var y=this.props.activeKey;y!==void 0&&y!==this.state.activeKey&&(this.setState({activeKey:y}),y!==null&&this.scrollTo({key:y}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var y,z=this.state,H=z.focused,n=z.flattenNodes,r=z.keyEntities,a=z.draggingNodeKey,p=z.activeKey,m=z.dropLevelOffset,b=z.dropContainerKey,E=z.dropTargetKey,T=z.dropPosition,R=z.dragOverNodeKey,$=z.indent,c=this.props,W=c.prefixCls,U=c.className,Z=c.style,_=c.showLine,X=c.focusable,de=c.tabIndex,ce=de===void 0?0:de,ee=c.selectable,he=c.showIcon,ue=c.icon,ve=c.switcherIcon,me=c.draggable,Oe=c.checkable,Te=c.checkStrictly,Le=c.disabled,be=c.motion,Ue=c.loadData,_e=c.filterTreeNode,Xe=c.height,Ve=c.itemHeight,Je=c.virtual,Ge=c.titleRender,Ze=c.dropIndicatorRender,je=c.onContextMenu,Qe=c.onScroll,ze=c.direction,qe=c.rootClassName,Fe=c.rootStyle,et=(0,ne.Z)(this.props,{aria:!0,data:!0}),Re;return me&&((0,ye.Z)(me)==="object"?Re=me:typeof me=="function"?Re={nodeDraggable:me}:Re={}),g.createElement(j.k.Provider,{value:{prefixCls:W,selectable:ee,showIcon:he,icon:ue,switcherIcon:ve,draggable:Re,draggingNodeKey:a,checkable:Oe,checkStrictly:Te,disabled:Le,keyEntities:r,dropLevelOffset:m,dropContainerKey:b,dropTargetKey:E,dropPosition:T,dragOverNodeKey:R,indent:$,direction:ze,dropIndicatorRender:Ze,loadData:Ue,filterTreeNode:_e,titleRender:Ge,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}},g.createElement("div",{role:"tree",className:oe()(W,U,qe,(y={},(0,F.Z)(y,"".concat(W,"-show-line"),_),(0,F.Z)(y,"".concat(W,"-focused"),H),(0,F.Z)(y,"".concat(W,"-active-focused"),p!==null),y)),style:Fe},g.createElement(xe,(0,ie.Z)({ref:this.listRef,prefixCls:W,style:Z,data:n,disabled:Le,selectable:ee,checkable:!!Oe,motion:be,dragging:a!==null,height:Xe,itemHeight:Ve,virtual:Je,focusable:X,focused:H,tabIndex:ce,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:je,onScroll:Qe},this.getTreeNodeRequiredProps(),et))))}}],[{key:"getDerivedStateFromProps",value:function(y,z){var H=z.prevProps,n={prevProps:y};function r(X){return!H&&X in y||H&&H[X]!==y[X]}var a,p=z.fieldNames;if(r("fieldNames")&&(p=(0,i.w$)(y.fieldNames),n.fieldNames=p),r("treeData")?a=y.treeData:r("children")&&((0,Q.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,i.zn)(y.children)),a){n.treeData=a;var m=(0,i.I8)(a,{fieldNames:p});n.keyEntities=(0,se.Z)((0,F.Z)({},K,re),m.keyEntities)}var b=n.keyEntities||z.keyEntities;if(r("expandedKeys")||H&&r("autoExpandParent"))n.expandedKeys=y.autoExpandParent||!H&&y.defaultExpandParent?(0,C.r7)(y.expandedKeys,b):y.expandedKeys;else if(!H&&y.defaultExpandAll){var E=(0,se.Z)({},b);delete E[K],n.expandedKeys=Object.keys(E).map(function(X){return E[X].key})}else!H&&y.defaultExpandedKeys&&(n.expandedKeys=y.autoExpandParent||y.defaultExpandParent?(0,C.r7)(y.defaultExpandedKeys,b):y.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var T=(0,i.oH)(a||z.treeData,n.expandedKeys||z.expandedKeys,p);n.flattenNodes=T}if(y.selectable&&(r("selectedKeys")?n.selectedKeys=(0,C.BT)(y.selectedKeys,y):!H&&y.defaultSelectedKeys&&(n.selectedKeys=(0,C.BT)(y.defaultSelectedKeys,y))),y.checkable){var R;if(r("checkedKeys")?R=(0,C.E6)(y.checkedKeys)||{}:!H&&y.defaultCheckedKeys?R=(0,C.E6)(y.defaultCheckedKeys)||{}:a&&(R=(0,C.E6)(y.checkedKeys)||{checkedKeys:z.checkedKeys,halfCheckedKeys:z.halfCheckedKeys}),R){var $=R,c=$.checkedKeys,W=c===void 0?[]:c,U=$.halfCheckedKeys,Z=U===void 0?[]:U;if(!y.checkStrictly){var _=(0,De.S)(W,!0,b);W=_.checkedKeys,Z=_.halfCheckedKeys}n.checkedKeys=W,n.halfCheckedKeys=Z}}return r("loadedKeys")&&(n.loadedKeys=y.loadedKeys),n}}]),M}(g.Component);Pe.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:ke,allowDrop:function(){return!0},expandAction:!1},Pe.TreeNode=x.Z;var Se=Pe,pe=Se},10225:function($e,ge,l){"use strict";l.d(ge,{_5:function(){return te},L0:function(){return J},yx:function(){return Y},bt:function(){return O},Ds:function(){return g},wA:function(){return w},OM:function(){return ae},BT:function(){return oe},E6:function(){return i},r7:function(){return h}});var ie=l(85061),F=l(90484),ye=l(67294),se=l(80334),Ne=l(4258),Ce=null;function te(s,u){if(!s)return[];var f=s.slice(),L=f.indexOf(u);return L>=0&&f.splice(L,1),f}function J(s,u){var f=(s||[]).slice();return f.indexOf(u)===-1&&f.push(u),f}function Y(s){return s.split("-")}function O(s,u){return"".concat(s,"-").concat(u)}function g(s){return s&&s.type&&s.type.isTreeNode}function w(s,u){var f=[],L=u[s];function x(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];S.forEach(function(A){var t=A.key,D=A.children;f.push(t),x(D)})}return x(L.children),f}function Q(s){if(s.parent){var u=Y(s.pos);return Number(u[u.length-1])===s.parent.children.length-1}return!1}function ne(s){var u=Y(s.pos);return Number(u[u.length-1])===0}function ae(s,u,f,L,x,S,A,t,D,k){var I,d=s.clientX,o=s.clientY,N=s.target.getBoundingClientRect(),K=N.top,B=N.height,re=(k==="rtl"?-1:1)*(((x==null?void 0:x.x)||0)-d),V=(re-12)/L,G=t[f.props.eventKey];if(o-1.5?S({dragNode:pe,dropNode:v,dropPosition:1})?Ke=1:P=!1:S({dragNode:pe,dropNode:v,dropPosition:0})?Ke=0:S({dragNode:pe,dropNode:v,dropPosition:1})?Ke=1:P=!1:S({dragNode:pe,dropNode:v,dropPosition:1})?Ke=1:P=!1,{dropPosition:Ke,dropLevelOffset:Pe,dropTargetKey:G.key,dropTargetPos:G.pos,dragOverNodeKey:ke,dropContainerKey:Ke===0?null:((I=G.parent)===null||I===void 0?void 0:I.key)||null,dropAllowed:P}}function oe(s,u){if(!!s){var f=u.multiple;return f?s.slice():s.length?[s[0]]:s}}var j=function(u){return u};function C(s,u){if(!s)return[];var f=u||{},L=f.processProps,x=L===void 0?j:L,S=Array.isArray(s)?s:[s];return S.map(function(A){var t=A.children,D=_objectWithoutProperties(A,Ce),k=C(t,u);return React.createElement(TreeNode,_extends({key:D.key},x(D)),k)})}function i(s){if(!s)return null;var u;if(Array.isArray(s))u={checkedKeys:s,halfCheckedKeys:void 0};else if((0,F.Z)(s)==="object")u={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return u}function h(s,u){var f=new Set;function L(x){if(!f.has(x)){var S=u[x];if(!!S){f.add(x);var A=S.parent,t=S.node;t.disabled||A&&L(A.key)}}}return(s||[]).forEach(function(x){L(x)}),(0,ie.Z)(f)}},17341:function($e,ge,l){"use strict";l.d(ge,{S:function(){return Ce}});var ie=l(80334);function F(te,J){var Y=new Set;return te.forEach(function(O){J.has(O)||Y.add(O)}),Y}function ye(te){var J=te||{},Y=J.disabled,O=J.disableCheckbox,g=J.checkable;return!!(Y||O)||g===!1}function se(te,J,Y,O){for(var g=new Set(te),w=new Set,Q=0;Q<=Y;Q+=1){var ne=J.get(Q)||new Set;ne.forEach(function(C){var i=C.key,h=C.node,s=C.children,u=s===void 0?[]:s;g.has(i)&&!O(h)&&u.filter(function(f){return!O(f.node)}).forEach(function(f){g.add(f.key)})})}for(var ae=new Set,oe=Y;oe>=0;oe-=1){var j=J.get(oe)||new Set;j.forEach(function(C){var i=C.parent,h=C.node;if(!(O(h)||!C.parent||ae.has(C.parent.key))){if(O(C.parent.node)){ae.add(i.key);return}var s=!0,u=!1;(i.children||[]).filter(function(f){return!O(f.node)}).forEach(function(f){var L=f.key,x=g.has(L);s&&!x&&(s=!1),!u&&(x||w.has(L))&&(u=!0)}),s&&g.add(i.key),u&&w.add(i.key),ae.add(i.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(F(w,g))}}function Ne(te,J,Y,O,g){for(var w=new Set(te),Q=new Set(J),ne=0;ne<=O;ne+=1){var ae=Y.get(ne)||new Set;ae.forEach(function(i){var h=i.key,s=i.node,u=i.children,f=u===void 0?[]:u;!w.has(h)&&!Q.has(h)&&!g(s)&&f.filter(function(L){return!g(L.node)}).forEach(function(L){w.delete(L.key)})})}Q=new Set;for(var oe=new Set,j=O;j>=0;j-=1){var C=Y.get(j)||new Set;C.forEach(function(i){var h=i.parent,s=i.node;if(!(g(s)||!i.parent||oe.has(i.parent.key))){if(g(i.parent.node)){oe.add(h.key);return}var u=!0,f=!1;(h.children||[]).filter(function(L){return!g(L.node)}).forEach(function(L){var x=L.key,S=w.has(x);u&&!S&&(u=!1),!f&&(S||Q.has(x))&&(f=!0)}),u||w.delete(h.key),f&&Q.add(h.key),oe.add(h.key)}})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(F(Q,w))}}function Ce(te,J,Y,O){var g=[],w;O?w=O:w=ye;var Q=new Set(te.filter(function(j){var C=!!Y[j];return C||g.push(j),C})),ne=new Map,ae=0;Object.keys(Y).forEach(function(j){var C=Y[j],i=C.level,h=ne.get(i);h||(h=new Set,ne.set(i,h)),h.add(C),ae=Math.max(ae,i)}),(0,ie.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(j){return"'".concat(j,"'")}).join(", ")));var oe;return J===!0?oe=se(Q,ne,ae,w):oe=Ne(Q,J.halfCheckedKeys,ne,ae,w),oe}},1089:function($e,ge,l){"use strict";l.d(ge,{km:function(){return O},w$:function(){return g},zn:function(){return Q},oH:function(){return ne},I8:function(){return oe},H8:function(){return j},F:function(){return C}});var ie=l(90484),F=l(85061),ye=l(28991),se=l(81253),Ne=l(98423),Ce=l(50344),te=l(80334),J=l(10225),Y=["children"];function O(i,h){return i!=null?i:h}function g(i){var h=i||{},s=h.title,u=h._title,f=h.key,L=h.children,x=s||"title";return{title:x,_title:u||[x],key:f||"key",children:L||"children"}}function w(i,h){var s=new Map;function u(f){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(f||[]).forEach(function(x){var S=x[h.key],A=x[h.children];warning(S!=null,"Tree node must have a certain key: [".concat(L).concat(S,"]"));var t=String(S);warning(!s.has(t)||S===null||S===void 0,"Same 'key' exist in the Tree: ".concat(t)),s.set(t,!0),u(A,"".concat(L).concat(t," > "))})}u(i)}function Q(i){function h(s){var u=(0,Ce.Z)(s);return u.map(function(f){if(!(0,J.Ds)(f))return(0,te.ZP)(!f,"Tree/TreeNode can only accept TreeNode as children."),null;var L=f.key,x=f.props,S=x.children,A=(0,se.Z)(x,Y),t=(0,ye.Z)({key:L},A),D=h(S);return D.length&&(t.children=D),t}).filter(function(f){return f})}return h(i)}function ne(i,h,s){var u=g(s),f=u._title,L=u.key,x=u.children,S=new Set(h===!0?[]:h),A=[];function t(D){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(I,d){for(var o=(0,J.bt)(k?k.pos:"0",d),N=O(I[L],o),K,B=0;B1&&arguments[1]!==void 0?arguments[1]:{},s=h.initWrapper,u=h.processEntity,f=h.onProcessFinished,L=h.externalGetKey,x=h.childrenPropName,S=h.fieldNames,A=arguments.length>2?arguments[2]:void 0,t=L||A,D={},k={},I={posEntities:D,keyEntities:k};return s&&(I=s(I)||I),ae(i,function(d){var o=d.node,N=d.index,K=d.pos,B=d.key,re=d.parentPos,V=d.level,G=d.nodes,q={node:o,nodes:G,index:N,key:B,pos:K,level:V},fe=O(B,K);D[K]=q,k[fe]=q,q.parent=D[re],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),u&&u(q,I)},{externalGetKey:t,childrenPropName:x,fieldNames:S}),f&&f(I),I}function j(i,h){var s=h.expandedKeys,u=h.selectedKeys,f=h.loadedKeys,L=h.loadingKeys,x=h.checkedKeys,S=h.halfCheckedKeys,A=h.dragOverNodeKey,t=h.dropPosition,D=h.keyEntities,k=D[i],I={eventKey:i,expanded:s.indexOf(i)!==-1,selected:u.indexOf(i)!==-1,loaded:f.indexOf(i)!==-1,loading:L.indexOf(i)!==-1,checked:x.indexOf(i)!==-1,halfChecked:S.indexOf(i)!==-1,pos:String(k?k.pos:""),dragOver:A===i&&t===0,dragOverGapTop:A===i&&t===-1,dragOverGapBottom:A===i&&t===1};return I}function C(i){var h=i.data,s=i.expanded,u=i.selected,f=i.checked,L=i.loaded,x=i.loading,S=i.halfChecked,A=i.dragOver,t=i.dragOverGapTop,D=i.dragOverGapBottom,k=i.pos,I=i.active,d=i.eventKey,o=(0,ye.Z)((0,ye.Z)({},h),{},{expanded:s,selected:u,checked:f,loaded:L,loading:x,halfChecked:S,dragOver:A,dragOverGapTop:t,dragOverGapBottom:D,pos:k,active:I,key:d});return"props"in o||Object.defineProperty(o,"props",{get:function(){return(0,te.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),o}}}]);