You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Progr...

1280 lines
2.5 MiB

!(function(){var lw=Object.defineProperty,uw=Object.defineProperties;var cw=Object.getOwnPropertyDescriptors;var r0=Object.getOwnPropertySymbols;var wx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable;var Qy=Math.pow,xx=(Rn,ti,be)=>ti in Rn?lw(Rn,ti,{enumerable:!0,configurable:!0,writable:!0,value:be}):Rn[ti]=be,ys=(Rn,ti)=>{for(var be in ti||(ti={}))wx.call(ti,be)&&xx(Rn,be,ti[be]);if(r0)for(var be of r0(ti))Px.call(ti,be)&&xx(Rn,be,ti[be]);return Rn},ql=(Rn,ti)=>uw(Rn,cw(ti));var o0=(Rn,ti)=>{var be={};for(var ve in Rn)wx.call(Rn,ve)&&ti.indexOf(ve)<0&&(be[ve]=Rn[ve]);if(Rn!=null&&r0)for(var ve of r0(Rn))ti.indexOf(ve)<0&&Px.call(Rn,ve)&&(be[ve]=Rn[ve]);return be};var Cx=(Rn,ti,be)=>new Promise((ve,tt)=>{var Pt=Re=>{try{Bt(be.next(Re))}catch(Je){tt(Je)}},Ut=Re=>{try{Bt(be.throw(Re))}catch(Je){tt(Je)}},Bt=Re=>Re.done?ve(Re.value):Promise.resolve(Re.value).then(Pt,Ut);Bt((be=be.apply(Rn,ti)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{50881:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return Je}});var ve=be(87462),tt=be(67294),Pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ut=Pt,Bt=be(17207),Re=function(wt,ht){return tt.createElement(Bt.Z,(0,ve.Z)({},wt,{ref:ht,icon:Ut}))},Je=tt.forwardRef(Re)},60887:function(Rn,ti,be){"use strict";be.d(ti,{LB:function(){return Yo},g4:function(){return ki},VK:function(){return Ne},Cj:function(){return $a},O1:function(){return Ba},Zj:function(){return So}});var ve=be(67294),tt=be(73935),Pt=be(24285);const Ut={display:"none"};function Bt(St){let{id:zt,value:gn}=St;return ve.createElement("div",{id:zt,style:Ut},gn)}function Re(St){let{id:zt,announcement:gn,ariaLiveType:Kn="assertive"}=St;const Ii={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ve.createElement("div",{id:zt,style:Ii,role:"status","aria-live":Kn,"aria-atomic":!0},gn)}function Je(){const[St,zt]=(0,ve.useState)("");return{announce:(0,ve.useCallback)(Kn=>{Kn!=null&&zt(Kn)},[]),announcement:St}}const pt=(0,ve.createContext)(null);function wt(St){const zt=(0,ve.useContext)(pt);(0,ve.useEffect)(()=>{if(!zt)throw new Error("useDndMonitor must be used within a children of <DndContext>");return zt(St)},[St,zt])}function ht(){const[St]=(0,ve.useState)(()=>new Set),zt=(0,ve.useCallback)(Kn=>(St.add(Kn),()=>St.delete(Kn)),[St]);return[(0,ve.useCallback)(Kn=>{let{type:Ii,event:Jt}=Kn;St.forEach(Qn=>{var Qi;return(Qi=Qn[Ii])==null?void 0:Qi.call(Qn,Jt)})},[St]),zt]}const Vt={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},ct={onDragStart(St){let{active:zt}=St;return"Picked up draggable item "+zt.id+"."},onDragOver(St){let{active:zt,over:gn}=St;return gn?"Draggable item "+zt.id+" was moved over droppable area "+gn.id+".":"Draggable item "+zt.id+" is no longer over a droppable area."},onDragEnd(St){let{active:zt,over:gn}=St;return gn?"Draggable item "+zt.id+" was dropped over droppable area "+gn.id:"Draggable item "+zt.id+" was dropped."},onDragCancel(St){let{active:zt}=St;return"Dragging was cancelled. Draggable item "+zt.id+" was dropped."}};function He(St){let{announcements:zt=ct,container:gn,hiddenTextDescribedById:Kn,screenReaderInstructions:Ii=Vt}=St;const{announce:Jt,announcement:Qn}=Je(),Qi=(0,Pt.Ld)("DndLiveRegion"),[wi,nr]=(0,ve.useState)(!1);if((0,ve.useEffect)(()=>{nr(!0)},[]),wt((0,ve.useMemo)(()=>({onDragStart(Si){let{active:pr}=Si;Jt(zt.onDragStart({active:pr}))},onDragMove(Si){let{active:pr,over:fn}=Si;zt.onDragMove&&Jt(zt.onDragMove({active:pr,over:fn}))},onDragOver(Si){let{active:pr,over:fn}=Si;Jt(zt.onDragOver({active:pr,over:fn}))},onDragEnd(Si){let{active:pr,over:fn}=Si;Jt(zt.onDragEnd({active:pr,over:fn}))},onDragCancel(Si){let{active:pr,over:fn}=Si;Jt(zt.onDragCancel({active:pr,over:fn}))}}),[Jt,zt])),!wi)return null;const Xi=ve.createElement(ve.Fragment,null,ve.createElement(Bt,{id:Kn,value:Ii.draggable}),ve.createElement(Re,{id:Qi,announcement:Qn}));return gn?(0,tt.createPortal)(Xi,gn):Xi}var Te;(function(St){St.DragStart="dragStart",St.DragMove="dragMove",St.DragEnd="dragEnd",St.DragCancel="dragCancel",St.DragOver="dragOver",St.RegisterDroppable="registerDroppable",St.SetDroppableDisabled="setDroppableDisabled",St.UnregisterDroppable="unregisterDroppable"})(Te||(Te={}));function ne(){}function te(St,zt){return useMemo(()=>({sensor:St,options:zt!=null?zt:{}}),[St,zt])}function ue(){for(var St=arguments.length,zt=new Array(St),gn=0;gn<St;gn++)zt[gn]=arguments[gn];return useMemo(()=>[...zt].filter(Kn=>Kn!=null),[...zt])}const se=Object.freeze({x:0,y:0});function ge(St,zt){return Math.sqrt(Math.pow(St.x-zt.x,2)+Math.pow(St.y-zt.y,2))}function me(St,zt){const gn=getEventCoordinates(St);if(!gn)return"0 0";const Kn={x:(gn.x-zt.left)/zt.width*100,y:(gn.y-zt.top)/zt.height*100};return Kn.x+"% "+Kn.y+"%"}function xe(St,zt){let{data:{value:gn}}=St,{data:{value:Kn}}=zt;return gn-Kn}function Pe(St,zt){let{data:{value:gn}}=St,{data:{value:Kn}}=zt;return Kn-gn}function Ke(St){let{left:zt,top:gn,height:Kn,width:Ii}=St;return[{x:zt,y:gn},{x:zt+Ii,y:gn},{x:zt,y:gn+Kn},{x:zt+Ii,y:gn+Kn}]}function qe(St,zt){if(!St||St.length===0)return null;const[gn]=St;return zt?gn[zt]:gn}function ft(St,zt,gn){return zt===void 0&&(zt=St.left),gn===void 0&&(gn=St.top),{x:zt+St.width*.5,y:gn+St.height*.5}}const st=St=>{let{collisionRect:zt,droppableRects:gn,droppableContainers:Kn}=St;const Ii=ft(zt,zt.left,zt.top),Jt=[];for(const Qn of Kn){const{id:Qi}=Qn,wi=gn.get(Qi);if(wi){const nr=ge(ft(wi),Ii);Jt.push({id:Qi,data:{droppableContainer:Qn,value:nr}})}}return Jt.sort(xe)},rt=St=>{let{collisionRect:zt,droppableRects:gn,droppableContainers:Kn}=St;const Ii=Ke(zt),Jt=[];for(const Qn of Kn){const{id:Qi}=Qn,wi=gn.get(Qi);if(wi){const nr=Ke(wi),Xi=Ii.reduce((pr,fn,eo)=>pr+ge(nr[eo],fn),0),Si=Number((Xi/4).toFixed(4));Jt.push({id:Qi,data:{droppableContainer:Qn,value:Si}})}}return Jt.sort(xe)};function Tt(St,zt){const gn=Math.max(zt.top,St.top),Kn=Math.max(zt.left,St.left),Ii=Math.min(zt.left+zt.width,St.left+St.width),Jt=Math.min(zt.top+zt.height,St.top+St.height),Qn=Ii-Kn,Qi=Jt-gn;if(Kn<Ii&&gn<Jt){const wi=zt.width*zt.height,nr=St.width*St.height,Xi=Qn*Qi,Si=Xi/(wi+nr-Xi);return Number(Si.toFixed(4))}return 0}const Mt=St=>{let{collisionRect:zt,droppableRects:gn,droppableContainers:Kn}=St;const Ii=[];for(const Jt of Kn){const{id:Qn}=Jt,Qi=gn.get(Qn);if(Qi){const wi=Tt(Qi,zt);wi>0&&Ii.push({id:Qn,data:{droppableContainer:Jt,value:wi}})}}return Ii.sort(Pe)};function yt(St,zt){const{top:gn,left:Kn,bottom:Ii,right:Jt}=zt;return gn<=St.y&&St.y<=Ii&&Kn<=St.x&&St.x<=Jt}const Dt=St=>{let{droppableContainers:zt,droppableRects:gn,pointerCoordinates:Kn}=St;if(!Kn)return[];const Ii=[];for(const Jt of zt){const{id:Qn}=Jt,Qi=gn.get(Qn);if(Qi&&yt(Kn,Qi)){const nr=Ke(Qi).reduce((Si,pr)=>Si+ge(Kn,pr),0),Xi=Number((nr/4).toFixed(4));Ii.push({id:Qn,data:{droppableContainer:Jt,value:Xi}})}}return Ii.sort(xe)};function Nt(St,zt,gn){return ql(ys({},St),{scaleX:zt&&gn?zt.width/gn.width:1,scaleY:zt&&gn?zt.height/gn.height:1})}function Bn(St,zt){return St&&zt?{x:St.left-zt.left,y:St.top-zt.top}:se}function On(St){return function(gn){for(var Kn=arguments.length,Ii=new Array(Kn>1?Kn-1:0),Jt=1;Jt<Kn;Jt++)Ii[Jt-1]=arguments[Jt];return Ii.reduce((Qn,Qi)=>ql(ys({},Qn),{top:Qn.top+St*Qi.y,bottom:Qn.bottom+St*Qi.y,left:Qn.left+St*Qi.x,right:Qn.right+St*Qi.x}),ys({},gn))}}const Qt=On(1);function vn(St){if(St.startsWith("matrix3d(")){const zt=St.slice(9,-1).split(/, /);return{x:+zt[12],y:+zt[13],scaleX:+zt[0],scaleY:+zt[5]}}else if(St.startsWith("matrix(")){const zt=St.slice(7,-1).split(/, /);return{x:+zt[4],y:+zt[5],scaleX:+zt[0],scaleY:+zt[3]}}return null}function lt(St,zt,gn){const Kn=vn(zt);if(!Kn)return St;const{scaleX:Ii,scaleY:Jt,x:Qn,y:Qi}=Kn,wi=St.left-Qn-(1-Ii)*parseFloat(gn),nr=St.top-Qi-(1-Jt)*parseFloat(gn.slice(gn.indexOf(" ")+1)),Xi=Ii?St.width/Ii:St.width,Si=Jt?St.height/Jt:St.height;return{width:Xi,height:Si,top:nr,right:wi+Xi,bottom:nr+Si,left:wi}}const Ge={ignoreTransform:!1};function Ne(St,zt){zt===void 0&&(zt=Ge);let gn=St.getBoundingClientRect();if(zt.ignoreTransform){const{transform:nr,transformOrigin:Xi}=(0,Pt.Jj)(St).getComputedStyle(St);nr&&(gn=lt(gn,nr,Xi))}const{top:Kn,left:Ii,width:Jt,height:Qn,bottom:Qi,right:wi}=gn;return{top:Kn,left:Ii,width:Jt,height:Qn,bottom:Qi,right:wi}}function Nn(St){return Ne(St,{ignoreTransform:!0})}function Xn(St){const zt=St.innerWidth,gn=St.innerHeight;return{top:0,left:0,right:zt,bottom:gn,width:zt,height:gn}}function Xt(St,zt){return zt===void 0&&(zt=(0,Pt.Jj)(St).getComputedStyle(St)),zt.position==="fixed"}function ai(St,zt){zt===void 0&&(zt=(0,Pt.Jj)(St).getComputedStyle(St));const gn=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(Ii=>{const Jt=zt[Ii];return typeof Jt=="string"?gn.test(Jt):!1})}function xn(St,zt){const gn=[];function Kn(Ii){if(zt!=null&&gn.length>=zt||!Ii)return gn;if((0,Pt.qk)(Ii)&&Ii.scrollingElement!=null&&!gn.includes(Ii.scrollingElement))return gn.push(Ii.scrollingElement),gn;if(!(0,Pt.Re)(Ii)||(0,Pt.vZ)(Ii)||gn.includes(Ii))return gn;const Jt=(0,Pt.Jj)(St).getComputedStyle(Ii);return Ii!==St&&ai(Ii,Jt)&&gn.push(Ii),Xt(Ii,Jt)?gn:Kn(Ii.parentNode)}return St?Kn(St):gn}function gi(St){const[zt]=xn(St,1);return zt!=null?zt:null}function Zt(St){return!Pt.Nq||!St?null:(0,Pt.FJ)(St)?St:(0,Pt.UG)(St)?(0,Pt.qk)(St)||St===(0,Pt.r3)(St).scrollingElement?window:(0,Pt.Re)(St)?St:null:null}function Ct(St){return(0,Pt.FJ)(St)?St.scrollX:St.scrollLeft}function qt(St){return(0,Pt.FJ)(St)?St.scrollY:St.scrollTop}function hi(St){return{x:Ct(St),y:qt(St)}}var Kt;(function(St){St[St.Forward=1]="Forward",St[St.Backward=-1]="Backward"})(Kt||(Kt={}));function Xe(St){return!Pt.Nq||!St?!1:St===document.scrollingElement}function Le(St){const zt={x:0,y:0},gn=Xe(St)?{height:window.innerHeight,width:window.innerWidth}:{height:St.clientHeight,width:St.clientWidth},Kn={x:St.scrollWidth-gn.width,y:St.scrollHeight-gn.height},Ii=St.scrollTop<=zt.y,Jt=St.scrollLeft<=zt.x,Qn=St.scrollTop>=Kn.y,Qi=St.scrollLeft>=Kn.x;return{isTop:Ii,isLeft:Jt,isBottom:Qn,isRight:Qi,maxScroll:Kn,minScroll:zt}}const Me={x:.2,y:.2};function We(St,zt,gn,Kn,Ii){let{top:Jt,left:Qn,right:Qi,bottom:wi}=gn;Kn===void 0&&(Kn=10),Ii===void 0&&(Ii=Me);const{isTop:nr,isBottom:Xi,isLeft:Si,isRight:pr}=Le(St),fn={x:0,y:0},eo={x:0,y:0},so={height:zt.height*Ii.y,width:zt.width*Ii.x};return!nr&&Jt<=zt.top+so.height?(fn.y=Kt.Backward,eo.y=Kn*Math.abs((zt.top+so.height-Jt)/so.height)):!Xi&&wi>=zt.bottom-so.height&&(fn.y=Kt.Forward,eo.y=Kn*Math.abs((zt.bottom-so.height-wi)/so.height)),!pr&&Qi>=zt.right-so.width?(fn.x=Kt.Forward,eo.x=Kn*Math.abs((zt.right-so.width-Qi)/so.width)):!Si&&Qn<=zt.left+so.width&&(fn.x=Kt.Backward,eo.x=Kn*Math.abs((zt.left+so.width-Qn)/so.width)),{direction:fn,speed:eo}}function $e(St){if(St===document.scrollingElement){const{innerWidth:Jt,innerHeight:Qn}=window;return{top:0,left:0,right:Jt,bottom:Qn,width:Jt,height:Qn}}const{top:zt,left:gn,right:Kn,bottom:Ii}=St.getBoundingClientRect();return{top:zt,left:gn,right:Kn,bottom:Ii,width:St.clientWidth,height:St.clientHeight}}function Be(St){return St.reduce((zt,gn)=>(0,Pt.IH)(zt,hi(gn)),se)}function ut(St){return St.reduce((zt,gn)=>zt+Ct(gn),0)}function Vn(St){return St.reduce((zt,gn)=>zt+qt(gn),0)}function In(St,zt){if(zt===void 0&&(zt=Ne),!St)return;const{top:gn,left:Kn,bottom:Ii,right:Jt}=zt(St);gi(St)&&(Ii<=0||Jt<=0||gn>=window.innerHeight||Kn>=window.innerWidth)&&St.scrollIntoView({block:"center",inline:"center"})}const Cn=[["x",["left","right"],ut],["y",["top","bottom"],Vn]];class Pn{constructor(zt,gn){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const Kn=xn(gn),Ii=Be(Kn);this.rect=ys({},zt),this.width=zt.width,this.height=zt.height;for(const[Jt,Qn,Qi]of Cn)for(const wi of Qn)Object.defineProperty(this,wi,{get:()=>{const nr=Qi(Kn),Xi=Ii[Jt]-nr;return this.rect[wi]+Xi},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class oi{constructor(zt){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(gn=>{var Kn;return(Kn=this.target)==null?void 0:Kn.removeEventListener(...gn)})},this.target=zt}add(zt,gn,Kn){var Ii;(Ii=this.target)==null||Ii.addEventListener(zt,gn,Kn),this.listeners.push([zt,gn,Kn])}}function mn(St){const{EventTarget:zt}=(0,Pt.Jj)(St);return St instanceof zt?St:(0,Pt.r3)(St)}function bi(St,zt){const gn=Math.abs(St.x),Kn=Math.abs(St.y);return typeof zt=="number"?Math.sqrt(Qy(gn,2)+Qy(Kn,2))>zt:"x"in zt&&"y"in zt?gn>zt.x&&Kn>zt.y:"x"in zt?gn>zt.x:"y"in zt?Kn>zt.y:!1}var _i;(function(St){St.Click="click",St.DragStart="dragstart",St.Keydown="keydown",St.ContextMenu="contextmenu",St.Resize="resize",St.SelectionChange="selectionchange",St.VisibilityChange="visibilitychange"})(_i||(_i={}));function Br(St){St.preventDefault()}function Yi(St){St.stopPropagation()}var ki;(function(St){St.Space="Space",St.Down="ArrowDown",St.Right="ArrowRight",St.Left="ArrowLeft",St.Up="ArrowUp",St.Esc="Escape",St.Enter="Enter"})(ki||(ki={}));const Xr={start:[ki.Space,ki.Enter],cancel:[ki.Esc],end:[ki.Space,ki.Enter]},Ki=(St,zt)=>{let{currentCoordinates:gn}=zt;switch(St.code){case ki.Right:return ql(ys({},gn),{x:gn.x+25});case ki.Left:return ql(ys({},gn),{x:gn.x-25});case ki.Down:return ql(ys({},gn),{y:gn.y+25});case ki.Up:return ql(ys({},gn),{y:gn.y-25})}};class lr{constructor(zt){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=zt;const{event:{target:gn}}=zt;this.props=zt,this.listeners=new oi((0,Pt.r3)(gn)),this.windowListeners=new oi((0,Pt.Jj)(gn)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(_i.Resize,this.handleCancel),this.windowListeners.add(_i.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(_i.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:zt,onStart:gn}=this.props,Kn=zt.node.current;Kn&&In(Kn),gn(se)}handleKeyDown(zt){if((0,Pt.vd)(zt)){const{active:gn,context:Kn,options:Ii}=this.props,{keyboardCodes:Jt=Xr,coordinateGetter:Qn=Ki,scrollBehavior:Qi="smooth"}=Ii,{code:wi}=zt;if(Jt.end.includes(wi)){this.handleEnd(zt);return}if(Jt.cancel.includes(wi)){this.handleCancel(zt);return}const{collisionRect:nr}=Kn.current,Xi=nr?{x:nr.left,y:nr.top}:se;this.referenceCoordinates||(this.referenceCoordinates=Xi);const Si=Qn(zt,{active:gn,context:Kn.current,currentCoordinates:Xi});if(Si){const pr=(0,Pt.$X)(Si,Xi),fn={x:0,y:0},{scrollableAncestors:eo}=Kn.current;for(const so of eo){const ya=zt.code,{isTop:fa,isRight:Ia,isLeft:ns,isBottom:Us,maxScroll:Ds,minScroll:fl}=Le(so),Hs=$e(so),cn={x:Math.min(ya===ki.Right?Hs.right-Hs.width/2:Hs.right,Math.max(ya===ki.Right?Hs.left:Hs.left+Hs.width/2,Si.x)),y:Math.min(ya===ki.Down?Hs.bottom-Hs.height/2:Hs.bottom,Math.max(ya===ki.Down?Hs.top:Hs.top+Hs.height/2,Si.y))},nl=ya===ki.Right&&!Ia||ya===ki.Left&&!ns,dl=ya===ki.Down&&!Us||ya===ki.Up&&!fa;if(nl&&cn.x!==Si.x){const gl=so.scrollLeft+pr.x,Ys=ya===ki.Right&&gl<=Ds.x||ya===ki.Left&&gl>=fl.x;if(Ys&&!pr.y){so.scrollTo({left:gl,behavior:Qi});return}Ys?fn.x=so.scrollLeft-gl:fn.x=ya===ki.Right?so.scrollLeft-Ds.x:so.scrollLeft-fl.x,fn.x&&so.scrollBy({left:-fn.x,behavior:Qi});break}else if(dl&&cn.y!==Si.y){const gl=so.scrollTop+pr.y,Ys=ya===ki.Down&&gl<=Ds.y||ya===ki.Up&&gl>=fl.y;if(Ys&&!pr.x){so.scrollTo({top:gl,behavior:Qi});return}Ys?fn.y=so.scrollTop-gl:fn.y=ya===ki.Down?so.scrollTop-Ds.y:so.scrollTop-fl.y,fn.y&&so.scrollBy({top:-fn.y,behavior:Qi});break}}this.handleMove(zt,(0,Pt.IH)((0,Pt.$X)(Si,this.referenceCoordinates),fn))}}}handleMove(zt,gn){const{onMove:Kn}=this.props;zt.preventDefault(),Kn(gn)}handleEnd(zt){const{onEnd:gn}=this.props;zt.preventDefault(),this.detach(),gn()}handleCancel(zt){const{onCancel:gn}=this.props;zt.preventDefault(),this.detach(),gn()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}lr.activators=[{eventName:"onKeyDown",handler:(St,zt,gn)=>{let{keyboardCodes:Kn=Xr,onActivation:Ii}=zt,{active:Jt}=gn;const{code:Qn}=St.nativeEvent;if(Kn.start.includes(Qn)){const Qi=Jt.activatorNode.current;return Qi&&St.target!==Qi?!1:(St.preventDefault(),Ii==null||Ii({event:St.nativeEvent}),!0)}return!1}}];function ar(St){return!!(St&&"distance"in St)}function kn(St){return!!(St&&"delay"in St)}class Bi{constructor(zt,gn,Kn){var Ii;Kn===void 0&&(Kn=mn(zt.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=zt,this.events=gn;const{event:Jt}=zt,{target:Qn}=Jt;this.props=zt,this.events=gn,this.document=(0,Pt.r3)(Qn),this.documentListeners=new oi(this.document),this.listeners=new oi(Kn),this.windowListeners=new oi((0,Pt.Jj)(Qn)),this.initialCoordinates=(Ii=(0,Pt.DC)(Jt))!=null?Ii:se,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:zt,props:{options:{activationConstraint:gn,bypassActivationConstraint:Kn}}}=this;if(this.listeners.add(zt.move.name,this.handleMove,{passive:!1}),this.listeners.add(zt.end.name,this.handleEnd),this.windowListeners.add(_i.Resize,this.handleCancel),this.windowListeners.add(_i.DragStart,Br),this.windowListeners.add(_i.VisibilityChange,this.handleCancel),this.windowListeners.add(_i.ContextMenu,Br),this.documentListeners.add(_i.Keydown,this.handleKeydown),gn){if(Kn!=null&&Kn({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(kn(gn)){this.timeoutId=setTimeout(this.handleStart,gn.delay);return}if(ar(gn))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:zt}=this,{onStart:gn}=this.props;zt&&(this.activated=!0,this.documentListeners.add(_i.Click,Yi,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(_i.SelectionChange,this.removeTextSelection),gn(zt))}handleMove(zt){var gn;const{activated:Kn,initialCoordinates:Ii,props:Jt}=this,{onMove:Qn,options:{activationConstraint:Qi}}=Jt;if(!Ii)return;const wi=(gn=(0,Pt.DC)(zt))!=null?gn:se,nr=(0,Pt.$X)(Ii,wi);if(!Kn&&Qi){if(ar(Qi)){if(Qi.tolerance!=null&&bi(nr,Qi.tolerance))return this.handleCancel();if(bi(nr,Qi.distance))return this.handleStart()}return kn(Qi)&&bi(nr,Qi.tolerance)?this.handleCancel():void 0}zt.cancelable&&zt.preventDefault(),Qn(wi)}handleEnd(){const{onEnd:zt}=this.props;this.detach(),zt()}handleCancel(){const{onCancel:zt}=this.props;this.detach(),zt()}handleKeydown(zt){zt.code===ki.Esc&&this.handleCancel()}removeTextSelection(){var zt;(zt=this.document.getSelection())==null||zt.removeAllRanges()}}const ea={move:{name:"pointermove"},end:{name:"pointerup"}};class Zn extends Bi{constructor(zt){const{event:gn}=zt,Kn=(0,Pt.r3)(gn.target);super(zt,ea,Kn)}}Zn.activators=[{eventName:"onPointerDown",handler:(St,zt)=>{let{nativeEvent:gn}=St,{onActivation:Kn}=zt;return!gn.isPrimary||gn.button!==0?!1:(Kn==null||Kn({event:gn}),!0)}}];const Wr={move:{name:"mousemove"},end:{name:"mouseup"}};var ra;(function(St){St[St.RightClick=2]="RightClick"})(ra||(ra={}));class sa extends Bi{constructor(zt){super(zt,Wr,(0,Pt.r3)(zt.event.target))}}sa.activators=[{eventName:"onMouseDown",handler:(St,zt)=>{let{nativeEvent:gn}=St,{onActivation:Kn}=zt;return gn.button===ra.RightClick?!1:(Kn==null||Kn({event:gn}),!0)}}];const Wa={move:{name:"touchmove"},end:{name:"touchend"}};class ma extends Bi{constructor(zt){super(zt,Wa)}static setup(){return window.addEventListener(Wa.move.name,zt,{capture:!1,passive:!1}),function(){window.removeEventListener(Wa.move.name,zt)};function zt(){}}}ma.activators=[{eventName:"onTouchStart",handler:(St,zt)=>{let{nativeEvent:gn}=St,{onActivation:Kn}=zt;const{touches:Ii}=gn;return Ii.length>1?!1:(Kn==null||Kn({event:gn}),!0)}}];var Ha;(function(St){St[St.Pointer=0]="Pointer",St[St.DraggableRect=1]="DraggableRect"})(Ha||(Ha={}));var da;(function(St){St[St.TreeOrder=0]="TreeOrder",St[St.ReversedTreeOrder=1]="ReversedTreeOrder"})(da||(da={}));function la(St){let{acceleration:zt,activator:gn=Ha.Pointer,canScroll:Kn,draggingRect:Ii,enabled:Jt,interval:Qn=5,order:Qi=da.TreeOrder,pointerCoordinates:wi,scrollableAncestors:nr,scrollableAncestorRects:Xi,delta:Si,threshold:pr}=St;const fn=ni({delta:Si,disabled:!Jt}),[eo,so]=(0,Pt.Yz)(),ya=(0,ve.useRef)({x:0,y:0}),fa=(0,ve.useRef)({x:0,y:0}),Ia=(0,ve.useMemo)(()=>{switch(gn){case Ha.Pointer:return wi?{top:wi.y,bottom:wi.y,left:wi.x,right:wi.x}:null;case Ha.DraggableRect:return Ii}},[gn,Ii,wi]),ns=(0,ve.useRef)(null),Us=(0,ve.useCallback)(()=>{const fl=ns.current;if(!fl)return;const Hs=ya.current.x*fa.current.x,cn=ya.current.y*fa.current.y;fl.scrollBy(Hs,cn)},[]),Ds=(0,ve.useMemo)(()=>Qi===da.TreeOrder?[...nr].reverse():nr,[Qi,nr]);(0,ve.useEffect)(()=>{if(!Jt||!nr.length||!Ia){so();return}for(const fl of Ds){if((Kn==null?void 0:Kn(fl))===!1)continue;const Hs=nr.indexOf(fl),cn=Xi[Hs];if(!cn)continue;const{direction:nl,speed:dl}=We(fl,cn,Ia,zt,pr);for(const gl of["x","y"])fn[gl][nl[gl]]||(dl[gl]=0,nl[gl]=0);if(dl.x>0||dl.y>0){so(),ns.current=fl,eo(Us,Qn),ya.current=dl,fa.current=nl;return}}ya.current={x:0,y:0},fa.current={x:0,y:0},so()},[zt,Us,Kn,so,Jt,Qn,JSON.stringify(Ia),JSON.stringify(fn),eo,nr,Ds,Xi,JSON.stringify(pr)])}const No={x:{[Kt.Backward]:!1,[Kt.Forward]:!1},y:{[Kt.Backward]:!1,[Kt.Forward]:!1}};function ni(St){let{delta:zt,disabled:gn}=St;const Kn=(0,Pt.D9)(zt);return(0,Pt.Gj)(Ii=>{if(gn||!Kn||!Ii)return No;const Jt={x:Math.sign(zt.x-Kn.x),y:Math.sign(zt.y-Kn.y)};return{x:{[Kt.Backward]:Ii.x[Kt.Backward]||Jt.x===-1,[Kt.Forward]:Ii.x[Kt.Forward]||Jt.x===1},y:{[Kt.Backward]:Ii.y[Kt.Backward]||Jt.y===-1,[Kt.Forward]:Ii.y[Kt.Forward]||Jt.y===1}}},[gn,zt,Kn])}function Ee(St,zt){const gn=zt!==null?St.get(zt):void 0,Kn=gn?gn.node.current:null;return(0,Pt.Gj)(Ii=>{var Jt;return zt===null?null:(Jt=Kn!=null?Kn:Ii)!=null?Jt:null},[Kn,zt])}function pn(St,zt){return(0,ve.useMemo)(()=>St.reduce((gn,Kn)=>{const{sensor:Ii}=Kn,Jt=Ii.activators.map(Qn=>({eventName:Qn.eventName,handler:zt(Qn.handler,Kn)}));return[...gn,...Jt]},[]),[St,zt])}var hn;(function(St){St[St.Always=0]="Always",St[St.BeforeDragging=1]="BeforeDragging",St[St.WhileDragging=2]="WhileDragging"})(hn||(hn={}));var ri;(function(St){St.Optimized="optimized"})(ri||(ri={}));const Jn=new Map;function Wn(St,zt){let{dragging:gn,dependencies:Kn,config:Ii}=zt;const[Jt,Qn]=(0,ve.useState)(null),{frequency:Qi,measure:wi,strategy:nr}=Ii,Xi=(0,ve.useRef)(St),Si=ya(),pr=(0,Pt.Ey)(Si),fn=(0,ve.useCallback)(function(fa){fa===void 0&&(fa=[]),!pr.current&&Qn(Ia=>Ia===null?fa:Ia.concat(fa.filter(ns=>!Ia.includes(ns))))},[pr]),eo=(0,ve.useRef)(null),so=(0,Pt.Gj)(fa=>{if(Si&&!gn)return Jn;if(!fa||fa===Jn||Xi.current!==St||Jt!=null){const Ia=new Map;for(let ns of St){if(!ns)continue;if(Jt&&Jt.length>0&&!Jt.includes(ns.id)&&ns.rect.current){Ia.set(ns.id,ns.rect.current);continue}const Us=ns.node.current,Ds=Us?new Pn(wi(Us),Us):null;ns.rect.current=Ds,Ds&&Ia.set(ns.id,Ds)}return Ia}return fa},[St,Jt,gn,Si,wi]);return(0,ve.useEffect)(()=>{Xi.current=St},[St]),(0,ve.useEffect)(()=>{Si||fn()},[gn,Si]),(0,ve.useEffect)(()=>{Jt&&Jt.length>0&&Qn(null)},[JSON.stringify(Jt)]),(0,ve.useEffect)(()=>{Si||typeof Qi!="number"||eo.current!==null||(eo.current=setTimeout(()=>{fn(),eo.current=null},Qi))},[Qi,Si,fn,...Kn]),{droppableRects:so,measureDroppableContainers:fn,measuringScheduled:Jt!=null};function ya(){switch(nr){case hn.Always:return!1;case hn.BeforeDragging:return gn;default:return!gn}}}function nn(St,zt){return(0,Pt.Gj)(gn=>St?gn||(typeof zt=="function"?zt(St):St):null,[zt,St])}function ii(St,zt){return nn(St,zt)}function Wt(St){let{callback:zt,disabled:gn}=St;const Kn=(0,Pt.zX)(zt),Ii=(0,ve.useMemo)(()=>{if(gn||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:Jt}=window;return new Jt(Kn)},[Kn,gn]);return(0,ve.useEffect)(()=>()=>Ii==null?void 0:Ii.disconnect(),[Ii]),Ii}function Gt(St){let{callback:zt,disabled:gn}=St;const Kn=(0,Pt.zX)(zt),Ii=(0,ve.useMemo)(()=>{if(gn||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:Jt}=window;return new Jt(Kn)},[gn]);return(0,ve.useEffect)(()=>()=>Ii==null?void 0:Ii.disconnect(),[Ii]),Ii}function Ft(St){return new Pn(Ne(St),St)}function un(St,zt,gn){zt===void 0&&(zt=Ft);const[Kn,Ii]=(0,ve.useReducer)(Qi,null),Jt=Wt({callback(wi){if(St)for(const nr of wi){const{type:Xi,target:Si}=nr;if(Xi==="childList"&&Si instanceof HTMLElement&&Si.contains(St)){Ii();break}}}}),Qn=Gt({callback:Ii});return(0,Pt.LI)(()=>{Ii(),St?(Qn==null||Qn.observe(St),Jt==null||Jt.observe(document.body,{childList:!0,subtree:!0})):(Qn==null||Qn.disconnect(),Jt==null||Jt.disconnect())},[St]),Kn;function Qi(wi){if(!St)return null;if(St.isConnected===!1){var nr;return(nr=wi!=null?wi:gn)!=null?nr:null}const Xi=zt(St);return JSON.stringify(wi)===JSON.stringify(Xi)?wi:Xi}}function Ti(St){const zt=nn(St);return Bn(St,zt)}const Ri=[];function di(St){const zt=(0,ve.useRef)(St),gn=(0,Pt.Gj)(Kn=>St?Kn&&Kn!==Ri&&St&&zt.current&&St.parentNode===zt.current.parentNode?Kn:xn(St):Ri,[St]);return(0,ve.useEffect)(()=>{zt.current=St},[St]),gn}function Yt(St){const[zt,gn]=(0,ve.useState)(null),Kn=(0,ve.useRef)(St),Ii=(0,ve.useCallback)(Jt=>{const Qn=Zt(Jt.target);Qn&&gn(Qi=>Qi?(Qi.set(Qn,hi(Qn)),new Map(Qi)):null)},[]);return(0,ve.useEffect)(()=>{const Jt=Kn.current;if(St!==Jt){Qn(Jt);const Qi=St.map(wi=>{const nr=Zt(wi);return nr?(nr.addEventListener("scroll",Ii,{passive:!0}),[nr,hi(nr)]):null}).filter(wi=>wi!=null);gn(Qi.length?new Map(Qi):null),Kn.current=St}return()=>{Qn(St),Qn(Jt)};function Qn(Qi){Qi.forEach(wi=>{const nr=Zt(wi);nr==null||nr.removeEventListener("scroll",Ii)})}},[Ii,St]),(0,ve.useMemo)(()=>St.length?zt?Array.from(zt.values()).reduce((Jt,Qn)=>(0,Pt.IH)(Jt,Qn),se):Be(St):se,[St,zt])}function Hn(St,zt){zt===void 0&&(zt=[]);const gn=(0,ve.useRef)(null);return(0,ve.useEffect)(()=>{gn.current=null},zt),(0,ve.useEffect)(()=>{const Kn=St!==se;Kn&&!gn.current&&(gn.current=St),!Kn&&gn.current&&(gn.current=null)},[St]),gn.current?(0,Pt.$X)(St,gn.current):se}function En(St){(0,ve.useEffect)(()=>{if(!Pt.Nq)return;const zt=St.map(gn=>{let{sensor:Kn}=gn;return Kn.setup==null?void 0:Kn.setup()});return()=>{for(const gn of zt)gn==null||gn()}},St.map(zt=>{let{sensor:gn}=zt;return gn}))}function Fr(St,zt){return(0,ve.useMemo)(()=>St.reduce((gn,Kn)=>{let{eventName:Ii,handler:Jt}=Kn;return gn[Ii]=Qn=>{Jt(Qn,zt)},gn},{}),[St,zt])}function si(St){return(0,ve.useMemo)(()=>St?Xn(St):null,[St])}const tn=[];function Vi(St,zt){zt===void 0&&(zt=Ne);const[gn]=St,Kn=si(gn?(0,Pt.Jj)(gn):null),[Ii,Jt]=(0,ve.useReducer)(Qi,tn),Qn=Gt({callback:Jt});return St.length>0&&Ii===tn&&Jt(),(0,Pt.LI)(()=>{St.length?St.forEach(wi=>Qn==null?void 0:Qn.observe(wi)):(Qn==null||Qn.disconnect(),Jt())},[St]),Ii;function Qi(){return St.length?St.map(wi=>Xe(wi)?Kn:new Pn(zt(wi),wi)):tn}}function Hr(St){if(!St)return null;if(St.children.length>1)return St;const zt=St.children[0];return(0,Pt.Re)(zt)?zt:St}function Or(St){let{measure:zt}=St;const[gn,Kn]=(0,ve.useState)(null),Ii=(0,ve.useCallback)(nr=>{for(const{target:Xi}of nr)if((0,Pt.Re)(Xi)){Kn(Si=>{const pr=zt(Xi);return Si?ql(ys({},Si),{width:pr.width,height:pr.height}):pr});break}},[zt]),Jt=Gt({callback:Ii}),Qn=(0,ve.useCallback)(nr=>{const Xi=Hr(nr);Jt==null||Jt.disconnect(),Xi&&(Jt==null||Jt.observe(Xi)),Kn(Xi?zt(Xi):null)},[zt,Jt]),[Qi,wi]=(0,Pt.wm)(Qn);return(0,ve.useMemo)(()=>({nodeRef:Qi,rect:gn,setRef:wi}),[gn,Qi,wi])}const wn=[{sensor:Zn,options:{}},{sensor:lr,options:{}}],or={current:{}},Xo={draggable:{measure:Nn},droppable:{measure:Nn,strategy:hn.WhileDragging,frequency:ri.Optimized},dragOverlay:{measure:Ne}};class Na extends Map{get(zt){var gn;return zt!=null&&(gn=super.get(zt))!=null?gn:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(zt=>{let{disabled:gn}=zt;return!gn})}getNodeFor(zt){var gn,Kn;return(gn=(Kn=this.get(zt))==null?void 0:Kn.node.current)!=null?gn:void 0}}const aa={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Na,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ne},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Xo,measureDroppableContainers:ne,windowRect:null,measuringScheduled:!1},hr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ne,draggableNodes:new Map,over:null,measureDroppableContainers:ne},Nr=(0,ve.createContext)(hr),io=(0,ve.createContext)(aa);function va(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Na}}}function Ho(St,zt){switch(zt.type){case Te.DragStart:return ql(ys({},St),{draggable:ql(ys({},St.draggable),{initialCoordinates:zt.initialCoordinates,active:zt.active})});case Te.DragMove:return St.draggable.active?ql(ys({},St),{draggable:ql(ys({},St.draggable),{translate:{x:zt.coordinates.x-St.draggable.initialCoordinates.x,y:zt.coordinates.y-St.draggable.initialCoordinates.y}})}):St;case Te.DragEnd:case Te.DragCancel:return ql(ys({},St),{draggable:ql(ys({},St.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Te.RegisterDroppable:{const{element:gn}=zt,{id:Kn}=gn,Ii=new Na(St.droppable.containers);return Ii.set(Kn,gn),ql(ys({},St),{droppable:ql(ys({},St.droppable),{containers:Ii})})}case Te.SetDroppableDisabled:{const{id:gn,key:Kn,disabled:Ii}=zt,Jt=St.droppable.containers.get(gn);if(!Jt||Kn!==Jt.key)return St;const Qn=new Na(St.droppable.containers);return Qn.set(gn,ql(ys({},Jt),{disabled:Ii})),ql(ys({},St),{droppable:ql(ys({},St.droppable),{containers:Qn})})}case Te.UnregisterDroppable:{const{id:gn,key:Kn}=zt,Ii=St.droppable.containers.get(gn);if(!Ii||Kn!==Ii.key)return St;const Jt=new Na(St.droppable.containers);return Jt.delete(gn),ql(ys({},St),{droppable:ql(ys({},St.droppable),{containers:Jt})})}default:return St}}function vi(St){let{disabled:zt}=St;const{active:gn,activatorEvent:Kn,draggableNodes:Ii}=(0,ve.useContext)(Nr),Jt=(0,Pt.D9)(Kn),Qn=(0,Pt.D9)(gn==null?void 0:gn.id);return(0,ve.useEffect)(()=>{if(!zt&&!Kn&&Jt&&Qn!=null){if(!(0,Pt.vd)(Jt)||document.activeElement===Jt.target)return;const Qi=Ii.get(Qn);if(!Qi)return;const{activatorNode:wi,node:nr}=Qi;if(!wi.current&&!nr.current)return;requestAnimationFrame(()=>{for(const Xi of[wi.current,nr.current]){if(!Xi)continue;const Si=(0,Pt.so)(Xi);if(Si){Si.focus();break}}})}},[Kn,zt,Ii,Qn,Jt]),null}function lo(St,zt){let Ii=zt,{transform:gn}=Ii,Kn=o0(Ii,["transform"]);return St!=null&&St.length?St.reduce((Jt,Qn)=>Qn(ys({transform:Jt},Kn)),gn):gn}function al(St){return(0,ve.useMemo)(()=>({draggable:ys(ys({},Xo.draggable),St==null?void 0:St.draggable),droppable:ys(ys({},Xo.droppable),St==null?void 0:St.droppable),dragOverlay:ys(ys({},Xo.dragOverlay),St==null?void 0:St.dragOverlay)}),[St==null?void 0:St.draggable,St==null?void 0:St.droppable,St==null?void 0:St.dragOverlay])}function el(St){let{activeNode:zt,measure:gn,initialRect:Kn,config:Ii=!0}=St;const Jt=(0,ve.useRef)(!1),{x:Qn,y:Qi}=typeof Ii=="boolean"?{x:Ii,y:Ii}:Ii;(0,Pt.LI)(()=>{if(!Qn&&!Qi||!zt){Jt.current=!1;return}if(Jt.current||!Kn)return;const nr=zt==null?void 0:zt.node.current;if(!nr||nr.isConnected===!1)return;const Xi=gn(nr),Si=Bn(Xi,Kn);if(Qn||(Si.x=0),Qi||(Si.y=0),Jt.current=!0,Math.abs(Si.x)>0||Math.abs(Si.y)>0){const pr=gi(nr);pr&&pr.scrollBy({top:Si.y,left:Si.x})}},[zt,Qn,Qi,Kn,gn])}const Ns=(0,ve.createContext)(ql(ys({},se),{scaleX:1,scaleY:1}));var ln;(function(St){St[St.Uninitialized=0]="Uninitialized",St[St.Initializing=1]="Initializing",St[St.Initialized=2]="Initialized"})(ln||(ln={}));const Yo=(0,ve.memo)(function(zt){var gn,Kn,Ii,Jt;let xl=zt,{id:Qn,accessibility:Qi,autoScroll:wi=!0,children:nr,sensors:Xi=wn,collisionDetection:Si=Mt,measuring:pr,modifiers:fn}=xl,eo=o0(xl,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const so=(0,ve.useReducer)(Ho,void 0,va),[ya,fa]=so,[Ia,ns]=ht(),[Us,Ds]=(0,ve.useState)(ln.Uninitialized),fl=Us===ln.Initialized,{draggable:{active:Hs,nodes:cn,translate:nl},droppable:{containers:dl}}=ya,gl=Hs?cn.get(Hs):null,Ys=(0,ve.useRef)({initial:null,translated:null}),Ul=(0,ve.useMemo)(()=>{var Ts;return Hs!=null?{id:Hs,data:(Ts=gl==null?void 0:gl.data)!=null?Ts:or,rect:Ys}:null},[Hs,gl]),hu=(0,ve.useRef)(null),[fc,_s]=(0,ve.useState)(null),[il,Ra]=(0,ve.useState)(null),Xa=(0,Pt.Ey)(eo,Object.values(eo)),Is=(0,Pt.Ld)("DndDescribedBy",Qn),pl=(0,ve.useMemo)(()=>dl.getEnabled(),[dl]),Mo=al(pr),{droppableRects:$u,measureDroppableContainers:Pu,measuringScheduled:$l}=Wn(pl,{dragging:fl,dependencies:[nl.x,nl.y],config:Mo.droppable}),ou=Ee(cn,Hs),gc=(0,ve.useMemo)(()=>il?(0,Pt.DC)(il):null,[il]),kr=Vl(),hl=ii(ou,Mo.draggable.measure);el({activeNode:Hs?cn.get(Hs):null,config:kr.layoutShiftCompensation,initialRect:hl,measure:Mo.draggable.measure});const Rs=un(ou,Mo.draggable.measure,hl),Bu=un(ou?ou.parentElement:null),zu=(0,ve.useRef)({activatorEvent:null,active:null,activeNode:ou,collisionRect:null,collisions:null,droppableRects:$u,draggableNodes:cn,draggingNode:null,draggingNodeRect:null,droppableContainers:dl,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ou=dl.getNodeFor((gn=zu.current.over)==null?void 0:gn.id),Sa=Or({measure:Mo.dragOverlay.measure}),Lu=(Kn=Sa.nodeRef.current)!=null?Kn:ou,Fl=fl?(Ii=Sa.rect)!=null?Ii:Rs:null,Il=!!(Sa.nodeRef.current&&Sa.rect),eu=Ti(Il?null:Rs),Cc=si(Lu?(0,Pt.Jj)(Lu):null),du=di(fl?Ou!=null?Ou:ou:null),Ol=Vi(du),Cu=lo(fn,{transform:{x:nl.x-eu.x,y:nl.y-eu.y,scaleX:1,scaleY:1},activatorEvent:il,active:Ul,activeNodeRect:Rs,containerNodeRect:Bu,draggingNodeRect:Fl,over:zu.current.over,overlayNodeRect:Sa.rect,scrollableAncestors:du,scrollableAncestorRects:Ol,windowRect:Cc}),Wc=gc?(0,Pt.IH)(gc,nl):null,ah=Yt(du),Hc=Hn(ah),Yh=Hn(ah,[Rs]),Wu=(0,Pt.IH)(Cu,Hc),El=Fl?Qt(Fl,Cu):null,Hu=Ul&&El?Si({active:Ul,collisionRect:El,droppableRects:$u,droppableContainers:pl,pointerCoordinates:Wc}):null,Iu=qe(Hu,"id"),[ku,Jc]=(0,ve.useState)(null),Sh=Il?Cu:(0,Pt.IH)(Cu,Yh),ml=Nt(Sh,(Jt=ku==null?void 0:ku.rect)!=null?Jt:null,Rs),sh=(0,ve.useCallback)((Ts,nu)=>{let{sensor:ol,options:Vs}=nu;if(hu.current==null)return;const Wl=cn.get(hu.current);if(!Wl)return;const fu=Ts.nativeEvent,Ru=new ol({active:hu.current,activeNode:Wl,event:fu,options:Vs,context:zu,onStart(gu){const Rt=hu.current;if(Rt==null)return;const fi=cn.get(Rt);if(!fi)return;const{onDragStart:Kl}=Xa.current,Yu={active:{id:Rt,data:fi.data,rect:Ys}};(0,tt.unstable_batchedUpdates)(()=>{Kl==null||Kl(Yu),Ds(ln.Initializing),fa({type:Te.DragStart,initialCoordinates:gu,active:Rt}),Ia({type:"onDragStart",event:Yu})})},onMove(gu){fa({type:Te.DragMove,coordinates:gu})},onEnd:Fo(Te.DragEnd),onCancel:Fo(Te.DragCancel)});(0,tt.unstable_batchedUpdates)(()=>{_s(Ru),Ra(Ts.nativeEvent)});function Fo(gu){return function(){return Cx(this,null,function*(){const{active:fi,collisions:Kl,over:Yu,scrollAdjustedTranslate:ec}=zu.current;let pu=null;if(fi&&ec){const{cancelDrop:Eu}=Xa.current;pu={activatorEvent:fu,active:fi,collisions:Kl,delta:ec,over:Yu},gu===Te.DragEnd&&typeof Eu=="function"&&(yield Promise.resolve(Eu(pu)))&&(gu=Te.DragCancel)}hu.current=null,(0,tt.unstable_batchedUpdates)(()=>{fa({type:gu}),Ds(ln.Uninitialized),Jc(null),_s(null),Ra(null);const Eu=gu===Te.DragEnd?"onDragEnd":"onDragCancel";if(pu){const pc=Xa.current[Eu];pc==null||pc(pu),Ia({type:Eu,event:pu})}})})}}},[cn]),lh=(0,ve.useCallback)((Ts,nu)=>(ol,Vs)=>{const Wl=ol.nativeEvent,fu=cn.get(Vs);if(hu.current!==null||!fu||Wl.dndKit||Wl.defaultPrevented)return;const Ru={active:fu};Ts(ol,nu.options,Ru)===!0&&(Wl.dndKit={capturedBy:nu.sensor},hu.current=Vs,sh(ol,nu))},[cn,sh]),Nc=pn(Xi,lh);En(Xi),(0,Pt.LI)(()=>{Rs&&Us===ln.Initializing&&Ds(ln.Initialized)},[Rs,Us]),(0,ve.useEffect)(()=>{const{onDragMove:Ts}=Xa.current,{active:nu,activatorEvent:ol,collisions:Vs,over:Wl}=zu.current;if(!nu||!ol)return;const fu={active:nu,activatorEvent:ol,collisions:Vs,delta:{x:Wu.x,y:Wu.y},over:Wl};(0,tt.unstable_batchedUpdates)(()=>{Ts==null||Ts(fu),Ia({type:"onDragMove",event:fu})})},[Wu.x,Wu.y]),(0,ve.useEffect)(()=>{const{active:Ts,activatorEvent:nu,collisions:ol,droppableContainers:Vs,scrollAdjustedTranslate:Wl}=zu.current;if(!Ts||hu.current==null||!nu||!Wl)return;const{onDragOver:fu}=Xa.current,Ru=Vs.get(Iu),Fo=Ru&&Ru.rect.current?{id:Ru.id,rect:Ru.rect.current,data:Ru.data,disabled:Ru.disabled}:null,gu={active:Ts,activatorEvent:nu,collisions:ol,delta:{x:Wl.x,y:Wl.y},over:Fo};(0,tt.unstable_batchedUpdates)(()=>{Jc(Fo),fu==null||fu(gu),Ia({type:"onDragOver",event:gu})})},[Iu]),(0,Pt.LI)(()=>{zu.current={activatorEvent:il,active:Ul,activeNode:ou,collisionRect:El,collisions:Hu,droppableRects:$u,draggableNodes:cn,draggingNode:Lu,draggingNodeRect:Fl,droppableContainers:dl,over:ku,scrollableAncestors:du,scrollAdjustedTranslate:Wu},Ys.current={initial:Fl,translated:El}},[Ul,ou,Hu,El,cn,Lu,Fl,$u,dl,ku,du,Wu]),la(ql(ys({},kr),{delta:nl,draggingRect:El,pointerCoordinates:Wc,scrollableAncestors:du,scrollableAncestorRects:Ol}));const Ec=(0,ve.useMemo)(()=>({active:Ul,activeNode:ou,activeNodeRect:Rs,activatorEvent:il,collisions:Hu,containerNodeRect:Bu,dragOverlay:Sa,draggableNodes:cn,droppableContainers:dl,droppableRects:$u,over:ku,measureDroppableContainers:Pu,scrollableAncestors:du,scrollableAncestorRects:Ol,measuringConfiguration:Mo,measuringScheduled:$l,windowRect:Cc}),[Ul,ou,Rs,il,Hu,Bu,Sa,cn,dl,$u,ku,Pu,du,Ol,Mo,$l,Cc]),tu=(0,ve.useMemo)(()=>({activatorEvent:il,activators:Nc,active:Ul,activeNodeRect:Rs,ariaDescribedById:{draggable:Is},dispatch:fa,draggableNodes:cn,over:ku,measureDroppableContainers:Pu}),[il,Nc,Ul,Rs,fa,Is,cn,ku,Pu]);return ve.createElement(pt.Provider,{value:ns},ve.createElement(Nr.Provider,{value:tu},ve.createElement(io.Provider,{value:Ec},ve.createElement(Ns.Provider,{value:ml},nr)),ve.createElement(vi,{disabled:(Qi==null?void 0:Qi.restoreFocus)===!1})),ve.createElement(He,ql(ys({},Qi),{hiddenTextDescribedById:Is})));function Vl(){const Ts=(fc==null?void 0:fc.autoScrollEnabled)===!1,nu=typeof wi=="object"?wi.enabled===!1:wi===!1,ol=fl&&!Ts&&!nu;return typeof wi=="object"?ql(ys({},wi),{enabled:ol}):{enabled:ol}}}),Va=(0,ve.createContext)(null),Ao="button",ms="Droppable";function Ba(St){let{id:zt,data:gn,disabled:Kn=!1,attributes:Ii}=St;const Jt=(0,Pt.Ld)(ms),{activators:Qn,activatorEvent:Qi,active:wi,activeNodeRect:nr,ariaDescribedById:Xi,draggableNodes:Si,over:pr}=(0,ve.useContext)(Nr),{role:fn=Ao,roleDescription:eo="draggable",tabIndex:so=0}=Ii!=null?Ii:{},ya=(wi==null?void 0:wi.id)===zt,fa=(0,ve.useContext)(ya?Ns:Va),[Ia,ns]=(0,Pt.wm)(),[Us,Ds]=(0,Pt.wm)(),fl=Fr(Qn,zt),Hs=(0,Pt.Ey)(gn);(0,Pt.LI)(()=>(Si.set(zt,{id:zt,key:Jt,node:Ia,activatorNode:Us,data:Hs}),()=>{const nl=Si.get(zt);nl&&nl.key===Jt&&Si.delete(zt)}),[Si,zt]);const cn=(0,ve.useMemo)(()=>({role:fn,tabIndex:so,"aria-disabled":Kn,"aria-pressed":ya&&fn===Ao?!0:void 0,"aria-roledescription":eo,"aria-describedby":Xi.draggable}),[Kn,fn,so,ya,eo,Xi.draggable]);return{active:wi,activatorEvent:Qi,activeNodeRect:nr,attributes:cn,isDragging:ya,listeners:Kn?void 0:fl,node:Ia,over:pr,setNodeRef:ns,setActivatorNodeRef:Ds,transform:fa}}function $a(){return(0,ve.useContext)(io)}const Er="Droppable",uo={timeout:25};function So(St){let{data:zt,disabled:gn=!1,id:Kn,resizeObserverConfig:Ii}=St;const Jt=(0,Pt.Ld)(Er),{active:Qn,dispatch:Qi,over:wi,measureDroppableContainers:nr}=(0,ve.useContext)(Nr),Xi=(0,ve.useRef)({disabled:gn}),Si=(0,ve.useRef)(!1),pr=(0,ve.useRef)(null),fn=(0,ve.useRef)(null),{disabled:eo,updateMeasurementsFor:so,timeout:ya}=ys(ys({},uo),Ii),fa=(0,Pt.Ey)(so!=null?so:Kn),Ia=(0,ve.useCallback)(()=>{if(!Si.current){Si.current=!0;return}fn.current!=null&&clearTimeout(fn.current),fn.current=setTimeout(()=>{nr(Array.isArray(fa.current)?fa.current:[fa.current]),fn.current=null},ya)},[ya]),ns=Gt({callback:Ia,disabled:eo||!Qn}),Us=(0,ve.useCallback)((cn,nl)=>{ns&&(nl&&(ns.unobserve(nl),Si.current=!1),cn&&ns.observe(cn))},[ns]),[Ds,fl]=(0,Pt.wm)(Us),Hs=(0,Pt.Ey)(zt);return(0,ve.useEffect)(()=>{!ns||!Ds.current||(ns.disconnect(),Si.current=!1,ns.observe(Ds.current))},[Ds,ns]),(0,Pt.LI)(()=>(Qi({type:Te.RegisterDroppable,element:{id:Kn,key:Jt,disabled:gn,node:Ds,rect:pr,data:Hs}}),()=>Qi({type:Te.UnregisterDroppable,key:Jt,id:Kn})),[Kn]),(0,ve.useEffect)(()=>{gn!==Xi.current.disabled&&(Qi({type:Te.SetDroppableDisabled,id:Kn,key:Jt,disabled:gn}),Xi.current.disabled=gn)},[Kn,Jt,gn,Qi]),{active:Qn,rect:pr,isOver:(wi==null?void 0:wi.id)===Kn,node:Ds,over:wi,setNodeRef:fl}}function _n(St){let{animation:zt,children:gn}=St;const[Kn,Ii]=useState(null),[Jt,Qn]=useState(null),Qi=usePrevious(gn);return!gn&&!Kn&&Qi&&Ii(Qi),useIsomorphicLayoutEffect(()=>{if(!Jt)return;const wi=Kn==null?void 0:Kn.key,nr=Kn==null?void 0:Kn.props.id;if(wi==null||nr==null){Ii(null);return}Promise.resolve(zt(nr,Jt)).then(()=>{Ii(null)})},[zt,Kn,Jt]),React.createElement(React.Fragment,null,gn,Kn?cloneElement(Kn,{ref:Qn}):null)}const ka={x:0,y:0,scaleX:1,scaleY:1};function An(St){let{children:zt}=St;return React.createElement(Nr.Provider,{value:hr},React.createElement(Ns.Provider,{value:ka},zt))}const Po={position:"fixed",touchAction:"none"},Ws=St=>isKeyboardEvent(St)?"transform 250ms ease":void 0,ds=null,Ua={duration:250,easing:"ease",keyframes:St=>{let{transform:{initial:zt,final:gn}}=St;return[{transform:Pt.ux.Transform.toString(zt)},{transform:Pt.ux.Transform.toString(gn)}]},sideEffects:(St=>zt=>{let{active:gn,dragOverlay:Kn}=zt;const Ii={},{styles:Jt,className:Qn}=St;if(Jt!=null&&Jt.active)for(const[Qi,wi]of Object.entries(Jt.active))wi!==void 0&&(Ii[Qi]=gn.node.style.getPropertyValue(Qi),gn.node.style.setProperty(Qi,wi));if(Jt!=null&&Jt.dragOverlay)for(const[Qi,wi]of Object.entries(Jt.dragOverlay))wi!==void 0&&Kn.node.style.setProperty(Qi,wi);return Qn!=null&&Qn.active&&gn.node.classList.add(Qn.active),Qn!=null&&Qn.dragOverlay&&Kn.node.classList.add(Qn.dragOverlay),function(){for(const[wi,nr]of Object.entries(Ii))gn.node.style.setProperty(wi,nr);Qn!=null&&Qn.active&&gn.node.classList.remove(Qn.active)}})({styles:{active:{opacity:"0"}}})};function us(St){let{config:zt,draggableNodes:gn,droppableContainers:Kn,measuringConfiguration:Ii}=St;return useEvent((Jt,Qn)=>{if(zt===null)return;const Qi=gn.get(Jt);if(!Qi)return;const wi=Qi.node.current;if(!wi)return;const nr=Hr(Qn);if(!nr)return;const{transform:Xi}=getWindow(Qn).getComputedStyle(Qn),Si=vn(Xi);if(!Si)return;const pr=typeof zt=="function"?zt:tl(zt);return In(wi,Ii.draggable.measure),pr({active:{id:Jt,data:Qi.data,node:wi,rect:Ii.draggable.measure(wi)},draggableNodes:gn,dragOverlay:{node:Qn,rect:Ii.dragOverlay.measure(nr)},droppableContainers:Kn,measuringConfiguration:Ii,transform:Si})})}function tl(St){const{duration:zt,easing:gn,sideEffects:Kn,keyframes:Ii}=ys(ys({},Ua),St);return Jt=>{let Ia=Jt,{active:Qn,dragOverlay:Qi,transform:wi}=Ia,nr=o0(Ia,["active","dragOverlay","transform"]);if(!zt)return;const Xi={x:Qi.rect.left-Qn.rect.left,y:Qi.rect.top-Qn.rect.top},Si={scaleX:wi.scaleX!==1?Qn.rect.width*wi.scaleX/Qi.rect.width:1,scaleY:wi.scaleY!==1?Qn.rect.height*wi.scaleY/Qi.rect.height:1},pr=ys({x:wi.x-Xi.x,y:wi.y-Xi.y},Si),fn=Ii(ql(ys({},nr),{active:Qn,dragOverlay:Qi,transform:{initial:wi,final:pr}})),[eo]=fn,so=fn[fn.length-1];if(JSON.stringify(eo)===JSON.stringify(so))return;const ya=Kn==null?void 0:Kn(ys({active:Qn,dragOverlay:Qi},nr)),fa=Qi.node.animate(fn,{duration:zt,easing:gn,fill:"forwards"});return new Promise(ns=>{fa.onfinish=()=>{ya==null||ya(),ns()}})}}let ts=0;function wr(St){return useMemo(()=>{if(St!=null)return ts++,ts},[St])}const at=null},32339:function(Rn,ti,be){"use strict";be.d(ti,{DL:function(){return Je}});var ve=be(24285);function tt(ht){return Vt=>{let{transform:ct}=Vt;return ql(ys({},ct),{x:Math.ceil(ct.x/ht)*ht,y:Math.ceil(ct.y/ht)*ht})}}const Pt=ht=>{let{transform:Vt}=ht;return ql(ys({},Vt),{y:0})};function Ut(ht,Vt,ct){const He=ys({},ht);return Vt.top+ht.y<=ct.top?He.y=ct.top-Vt.top:Vt.bottom+ht.y>=ct.top+ct.height&&(He.y=ct.top+ct.height-Vt.bottom),Vt.left+ht.x<=ct.left?He.x=ct.left-Vt.left:Vt.right+ht.x>=ct.left+ct.width&&(He.x=ct.left+ct.width-Vt.right),He}const Bt=ht=>{let{containerNodeRect:Vt,draggingNodeRect:ct,transform:He}=ht;return!ct||!Vt?He:Ut(He,ct,Vt)},Re=ht=>{let{draggingNodeRect:Vt,transform:ct,scrollableAncestorRects:He}=ht;const Te=He[0];return!Vt||!Te?ct:Ut(ct,Vt,Te)},Je=ht=>{let{transform:Vt}=ht;return ql(ys({},Vt),{x:0})},pt=ht=>{let{transform:Vt,draggingNodeRect:ct,windowRect:He}=ht;return!ct||!He?Vt:Ut(Vt,ct,He)},wt=ht=>{let{activatorEvent:Vt,draggingNodeRect:ct,transform:He}=ht;if(ct&&Vt){const Te=getEventCoordinates(Vt);if(!Te)return He;const ne=Te.x-ct.left,te=Te.y-ct.top;return ql(ys({},He),{x:He.x+ne-ct.width/2,y:He.y+te-ct.height/2})}return He}},45587:function(Rn,ti,be){"use strict";be.d(ti,{Fo:function(){return me},Rp:function(){return Ut},nB:function(){return Tt},qw:function(){return te}});var ve=be(67294),tt=be(60887),Pt=be(24285);function Ut(Qt,vn,lt){const Ge=Qt.slice();return Ge.splice(lt<0?Ge.length+lt:lt,0,Ge.splice(vn,1)[0]),Ge}function Bt(Qt,vn,lt){const Ge=Qt.slice();return Ge[vn]=Qt[lt],Ge[lt]=Qt[vn],Ge}function Re(Qt,vn){return Qt.reduce((lt,Ge,Ne)=>{const Nn=vn.get(Ge);return Nn&&(lt[Ne]=Nn),lt},Array(Qt.length))}function Je(Qt){return Qt!==null&&Qt>=0}function pt(Qt,vn){if(Qt===vn)return!0;if(Qt.length!==vn.length)return!1;for(let lt=0;lt<Qt.length;lt++)if(Qt[lt]!==vn[lt])return!1;return!0}function wt(Qt){return typeof Qt=="boolean"?{draggable:Qt,droppable:Qt}:Qt}const ht={scaleX:1,scaleY:1},Vt=Qt=>{var vn;let{rects:lt,activeNodeRect:Ge,activeIndex:Ne,overIndex:Nn,index:Xn}=Qt;const Xt=(vn=lt[Ne])!=null?vn:Ge;if(!Xt)return null;const ai=ct(lt,Xn,Ne);if(Xn===Ne){const xn=lt[Nn];return xn?ys({x:Ne<Nn?xn.left+xn.width-(Xt.left+Xt.width):xn.left-Xt.left,y:0},ht):null}return Xn>Ne&&Xn<=Nn?ys({x:-Xt.width-ai,y:0},ht):Xn<Ne&&Xn>=Nn?ys({x:Xt.width+ai,y:0},ht):ys({x:0,y:0},ht)};function ct(Qt,vn,lt){const Ge=Qt[vn],Ne=Qt[vn-1],Nn=Qt[vn+1];return!Ge||!Ne&&!Nn?0:lt<vn?Ne?Ge.left-(Ne.left+Ne.width):Nn.left-(Ge.left+Ge.width):Nn?Nn.left-(Ge.left+Ge.width):Ge.left-(Ne.left+Ne.width)}const He=Qt=>{let{rects:vn,activeIndex:lt,overIndex:Ge,index:Ne}=Qt;const Nn=Ut(vn,Ge,lt),Xn=vn[Ne],Xt=Nn[Ne];return!Xt||!Xn?null:{x:Xt.left-Xn.left,y:Xt.top-Xn.top,scaleX:Xt.width/Xn.width,scaleY:Xt.height/Xn.height}},Te=Qt=>{let{activeIndex:vn,index:lt,rects:Ge,overIndex:Ne}=Qt,Nn,Xn;return lt===vn&&(Nn=Ge[lt],Xn=Ge[Ne]),lt===Ne&&(Nn=Ge[lt],Xn=Ge[vn]),!Xn||!Nn?null:{x:Xn.left-Nn.left,y:Xn.top-Nn.top,scaleX:Xn.width/Nn.width,scaleY:Xn.height/Nn.height}},ne={scaleX:1,scaleY:1},te=Qt=>{var vn;let{activeIndex:lt,activeNodeRect:Ge,index:Ne,rects:Nn,overIndex:Xn}=Qt;const Xt=(vn=Nn[lt])!=null?vn:Ge;if(!Xt)return null;if(Ne===lt){const xn=Nn[Xn];return xn?ys({x:0,y:lt<Xn?xn.top+xn.height-(Xt.top+Xt.height):xn.top-Xt.top},ne):null}const ai=ue(Nn,Ne,lt);return Ne>lt&&Ne<=Xn?ys({x:0,y:-Xt.height-ai},ne):Ne<lt&&Ne>=Xn?ys({x:0,y:Xt.height+ai},ne):ys({x:0,y:0},ne)};function ue(Qt,vn,lt){const Ge=Qt[vn],Ne=Qt[vn-1],Nn=Qt[vn+1];return Ge?lt<vn?Ne?Ge.top-(Ne.top+Ne.height):Nn?Nn.top-(Ge.top+Ge.height):0:Nn?Nn.top-(Ge.top+Ge.height):Ne?Ge.top-(Ne.top+Ne.height):0:0}const se="Sortable",ge=ve.createContext({activeIndex:-1,containerId:se,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:He,disabled:{draggable:!1,droppable:!1}});function me(Qt){let{children:vn,id:lt,items:Ge,strategy:Ne=He,disabled:Nn=!1}=Qt;const{active:Xn,dragOverlay:Xt,droppableRects:ai,over:xn,measureDroppableContainers:gi}=(0,tt.Cj)(),Zt=(0,Pt.Ld)(se,lt),Ct=Xt.rect!==null,qt=(0,ve.useMemo)(()=>Ge.map(ut=>typeof ut=="object"&&"id"in ut?ut.id:ut),[Ge]),hi=Xn!=null,Kt=Xn?qt.indexOf(Xn.id):-1,Xe=xn?qt.indexOf(xn.id):-1,Le=(0,ve.useRef)(qt),Me=!pt(qt,Le.current),We=Xe!==-1&&Kt===-1||Me,$e=wt(Nn);(0,Pt.LI)(()=>{Me&&hi&&gi(qt)},[Me,qt,hi,gi]),(0,ve.useEffect)(()=>{Le.current=qt},[qt]);const Be=(0,ve.useMemo)(()=>({activeIndex:Kt,containerId:Zt,disabled:$e,disableTransforms:We,items:qt,overIndex:Xe,useDragOverlay:Ct,sortedRects:Re(qt,ai),strategy:Ne}),[Kt,Zt,$e.draggable,$e.droppable,We,qt,Xe,ai,Ct,Ne]);return ve.createElement(ge.Provider,{value:Be},vn)}const xe=Qt=>{let{id:vn,items:lt,activeIndex:Ge,overIndex:Ne}=Qt;return Ut(lt,Ge,Ne).indexOf(vn)},Pe=Qt=>{let{containerId:vn,isSorting:lt,wasDragging:Ge,index:Ne,items:Nn,newIndex:Xn,previousItems:Xt,previousContainerId:ai,transition:xn}=Qt;return!xn||!Ge||Xt!==Nn&&Ne===Xn?!1:lt?!0:Xn!==Ne&&vn===ai},Ke={duration:200,easing:"ease"},qe="transform",ft=Pt.ux.Transition.toString({property:qe,duration:0,easing:"linear"}),st={roleDescription:"sortable"};function rt(Qt){let{disabled:vn,index:lt,node:Ge,rect:Ne}=Qt;const[Nn,Xn]=(0,ve.useState)(null),Xt=(0,ve.useRef)(lt);return(0,Pt.LI)(()=>{if(!vn&&lt!==Xt.current&&Ge.current){const ai=Ne.current;if(ai){const xn=(0,tt.VK)(Ge.current,{ignoreTransform:!0}),gi={x:ai.left-xn.left,y:ai.top-xn.top,scaleX:ai.width/xn.width,scaleY:ai.height/xn.height};(gi.x||gi.y)&&Xn(gi)}}lt!==Xt.current&&(Xt.current=lt)},[vn,lt,Ge,Ne]),(0,ve.useEffect)(()=>{Nn&&Xn(null)},[Nn]),Nn}function Tt(Qt){let{animateLayoutChanges:vn=Pe,attributes:lt,disabled:Ge,data:Ne,getNewIndex:Nn=xe,id:Xn,strategy:Xt,resizeObserverConfig:ai,transition:xn=Ke}=Qt;const{items:gi,containerId:Zt,activeIndex:Ct,disabled:qt,disableTransforms:hi,sortedRects:Kt,overIndex:Xe,useDragOverlay:Le,strategy:Me}=(0,ve.useContext)(ge),We=Mt(Ge,qt),$e=gi.indexOf(Xn),Be=(0,ve.useMemo)(()=>ys({sortable:{containerId:Zt,index:$e,items:gi}},Ne),[Zt,Ne,$e,gi]),ut=(0,ve.useMemo)(()=>gi.slice(gi.indexOf(Xn)),[gi,Xn]),{rect:Vn,node:In,isOver:Cn,setNodeRef:Pn}=(0,tt.Zj)({id:Xn,data:Be,disabled:We.droppable,resizeObserverConfig:ys({updateMeasurementsFor:ut},ai)}),{active:oi,activatorEvent:mn,activeNodeRect:bi,attributes:_i,setNodeRef:Br,listeners:Yi,isDragging:ki,over:Xr,setActivatorNodeRef:Ki,transform:lr}=(0,tt.O1)({id:Xn,data:Be,attributes:ys(ys({},st),lt),disabled:We.draggable}),ar=(0,Pt.HB)(Pn,Br),kn=!!oi,Bi=kn&&!hi&&Je(Ct)&&Je(Xe),ea=!Le&&ki,Zn=ea&&Bi?lr:null,Wr=Xt!=null?Xt:Me,ra=Bi?Zn!=null?Zn:Wr({rects:Kt,activeNodeRect:bi,activeIndex:Ct,overIndex:Xe,index:$e}):null,sa=Je(Ct)&&Je(Xe)?Nn({id:Xn,items:gi,activeIndex:Ct,overIndex:Xe}):$e,Wa=oi==null?void 0:oi.id,ma=(0,ve.useRef)({activeId:Wa,items:gi,newIndex:sa,containerId:Zt}),Ha=gi!==ma.current.items,da=vn({active:oi,containerId:Zt,isDragging:ki,isSorting:kn,id:Xn,index:$e,items:gi,newIndex:ma.current.newIndex,previousItems:ma.current.items,previousContainerId:ma.current.containerId,transition:xn,wasDragging:ma.current.activeId!=null}),la=rt({disabled:!da,index:$e,node:In,rect:Vn});return(0,ve.useEffect)(()=>{kn&&ma.current.newIndex!==sa&&(ma.current.newIndex=sa),Zt!==ma.current.containerId&&(ma.current.containerId=Zt),gi!==ma.current.items&&(ma.current.items=gi)},[kn,sa,Zt,gi]),(0,ve.useEffect)(()=>{if(Wa===ma.current.activeId)return;if(Wa&&!ma.current.activeId){ma.current.activeId=Wa;return}const ni=setTimeout(()=>{ma.current.activeId=Wa},50);return()=>clearTimeout(ni)},[Wa]),{active:oi,activeIndex:Ct,attributes:_i,data:Be,rect:Vn,index:$e,newIndex:sa,items:gi,isOver:Cn,isSorting:kn,isDragging:ki,listeners:Yi,node:In,overIndex:Xe,over:Xr,setNodeRef:ar,setActivatorNodeRef:Ki,setDroppableNodeRef:Pn,setDraggableNodeRef:Br,transform:la!=null?la:ra,transition:No()};function No(){if(la||Ha&&ma.current.newIndex===$e)return ft;if(!(ea&&!(0,Pt.vd)(mn)||!xn)&&(kn||da))return Pt.ux.Transition.toString(ql(ys({},xn),{property:qe}))}}function Mt(Qt,vn){var lt,Ge;return typeof Qt=="boolean"?{draggable:Qt,droppable:!1}:{draggable:(lt=Qt==null?void 0:Qt.draggable)!=null?lt:vn.draggable,droppable:(Ge=Qt==null?void 0:Qt.droppable)!=null?Ge:vn.droppable}}function yt(Qt){if(!Qt)return!1;const vn=Qt.data.current;return!!(vn&&"sortable"in vn&&typeof vn.sortable=="object"&&"containerId"in vn.sortable&&"items"in vn.sortable&&"index"in vn.sortable)}const Dt=[tt.g4.Down,tt.g4.Right,tt.g4.Up,tt.g4.Left],Nt=(Qt,vn)=>{let{context:{active:lt,collisionRect:Ge,droppableRects:Ne,droppableContainers:Nn,over:Xn,scrollableAncestors:Xt}}=vn;if(Dt.includes(Qt.code)){if(Qt.preventDefault(),!lt||!Ge)return;const ai=[];Nn.getEnabled().forEach(Zt=>{if(!Zt||Zt!=null&&Zt.disabled)return;const Ct=Ne.get(Zt.id);if(Ct)switch(Qt.code){case KeyboardCode.Down:Ge.top<Ct.top&&ai.push(Zt);break;case KeyboardCode.Up:Ge.top>Ct.top&&ai.push(Zt);break;case KeyboardCode.Left:Ge.left>Ct.left&&ai.push(Zt);break;case KeyboardCode.Right:Ge.left<Ct.left&&ai.push(Zt);break}});const xn=closestCorners({active:lt,collisionRect:Ge,droppableRects:Ne,droppableContainers:ai,pointerCoordinates:null});let gi=getFirstCollision(xn,"id");if(gi===(Xn==null?void 0:Xn.id)&&xn.length>1&&(gi=xn[1].id),gi!=null){const Zt=Nn.get(lt.id),Ct=Nn.get(gi),qt=Ct?Ne.get(Ct.id):null,hi=Ct==null?void 0:Ct.node.current;if(hi&&qt&&Zt&&Ct){const Xe=getScrollableAncestors(hi).some((ut,Vn)=>Xt[Vn]!==ut),Le=Bn(Zt,Ct),Me=On(Zt,Ct),We=Xe||!Le?{x:0,y:0}:{x:Me?Ge.width-qt.width:0,y:Me?Ge.height-qt.height:0},$e={x:qt.left,y:qt.top};return We.x&&We.y?$e:subtract($e,We)}}}};function Bn(Qt,vn){return!yt(Qt)||!yt(vn)?!1:Qt.data.current.sortable.containerId===vn.data.current.sortable.containerId}function On(Qt,vn){return!yt(Qt)||!yt(vn)||!Bn(Qt,vn)?!1:Qt.data.current.sortable.index<vn.data.current.sortable.index}},24285:function(Rn,ti,be){"use strict";be.d(ti,{$X:function(){return Pe},D9:function(){return ue},DC:function(){return st},Ey:function(){return Te},FJ:function(){return Ut},Gj:function(){return ne},HB:function(){return tt},IH:function(){return xe},Jj:function(){return Re},LI:function(){return Vt},Ld:function(){return ge},Nq:function(){return Pt},Re:function(){return pt},UG:function(){return Bt},Yz:function(){return He},qk:function(){return Je},r3:function(){return ht},so:function(){return Mt},ux:function(){return rt},vZ:function(){return wt},vd:function(){return qe},wm:function(){return te},zX:function(){return ct}});var ve=be(67294);function tt(){for(var yt=arguments.length,Dt=new Array(yt),Nt=0;Nt<yt;Nt++)Dt[Nt]=arguments[Nt];return(0,ve.useMemo)(()=>Bn=>{Dt.forEach(On=>On(Bn))},Dt)}const Pt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Ut(yt){const Dt=Object.prototype.toString.call(yt);return Dt==="[object Window]"||Dt==="[object global]"}function Bt(yt){return"nodeType"in yt}function Re(yt){var Dt,Nt;return yt?Ut(yt)?yt:Bt(yt)&&(Dt=(Nt=yt.ownerDocument)==null?void 0:Nt.defaultView)!=null?Dt:window:window}function Je(yt){const{Document:Dt}=Re(yt);return yt instanceof Dt}function pt(yt){return Ut(yt)?!1:yt instanceof Re(yt).HTMLElement}function wt(yt){return yt instanceof Re(yt).SVGElement}function ht(yt){return yt?Ut(yt)?yt.document:Bt(yt)?Je(yt)?yt:pt(yt)||wt(yt)?yt.ownerDocument:document:document:document}const Vt=Pt?ve.useLayoutEffect:ve.useEffect;function ct(yt){const Dt=(0,ve.useRef)(yt);return Vt(()=>{Dt.current=yt}),(0,ve.useCallback)(function(){for(var Nt=arguments.length,Bn=new Array(Nt),On=0;On<Nt;On++)Bn[On]=arguments[On];return Dt.current==null?void 0:Dt.current(...Bn)},[])}function He(){const yt=(0,ve.useRef)(null),Dt=(0,ve.useCallback)((Bn,On)=>{yt.current=setInterval(Bn,On)},[]),Nt=(0,ve.useCallback)(()=>{yt.current!==null&&(clearInterval(yt.current),yt.current=null)},[]);return[Dt,Nt]}function Te(yt,Dt){Dt===void 0&&(Dt=[yt]);const Nt=(0,ve.useRef)(yt);return Vt(()=>{Nt.current!==yt&&(Nt.current=yt)},Dt),Nt}function ne(yt,Dt){const Nt=(0,ve.useRef)();return(0,ve.useMemo)(()=>{const Bn=yt(Nt.current);return Nt.current=Bn,Bn},[...Dt])}function te(yt){const Dt=ct(yt),Nt=(0,ve.useRef)(null),Bn=(0,ve.useCallback)(On=>{On!==Nt.current&&(Dt==null||Dt(On,Nt.current)),Nt.current=On},[]);return[Nt,Bn]}function ue(yt){const Dt=(0,ve.useRef)();return(0,ve.useEffect)(()=>{Dt.current=yt},[yt]),Dt.current}let se={};function ge(yt,Dt){return(0,ve.useMemo)(()=>{if(Dt)return Dt;const Nt=se[yt]==null?0:se[yt]+1;return se[yt]=Nt,yt+"-"+Nt},[yt,Dt])}function me(yt){return function(Dt){for(var Nt=arguments.length,Bn=new Array(Nt>1?Nt-1:0),On=1;On<Nt;On++)Bn[On-1]=arguments[On];return Bn.reduce((Qt,vn)=>{const lt=Object.entries(vn);for(const[Ge,Ne]of lt){const Nn=Qt[Ge];Nn!=null&&(Qt[Ge]=Nn+yt*Ne)}return Qt},ys({},Dt))}}const xe=me(1),Pe=me(-1);function Ke(yt){return"clientX"in yt&&"clientY"in yt}function qe(yt){if(!yt)return!1;const{KeyboardEvent:Dt}=Re(yt.target);return Dt&&yt instanceof Dt}function ft(yt){if(!yt)return!1;const{TouchEvent:Dt}=Re(yt.target);return Dt&&yt instanceof Dt}function st(yt){if(ft(yt)){if(yt.touches&&yt.touches.length){const{clientX:Dt,clientY:Nt}=yt.touches[0];return{x:Dt,y:Nt}}else if(yt.changedTouches&&yt.changedTouches.length){const{clientX:Dt,clientY:Nt}=yt.changedTouches[0];return{x:Dt,y:Nt}}}return Ke(yt)?{x:yt.clientX,y:yt.clientY}:null}const rt=Object.freeze({Translate:{toString(yt){if(!yt)return;const{x:Dt,y:Nt}=yt;return"translate3d("+(Dt?Math.round(Dt):0)+"px, "+(Nt?Math.round(Nt):0)+"px, 0)"}},Scale:{toString(yt){if(!yt)return;const{scaleX:Dt,scaleY:Nt}=yt;return"scaleX("+Dt+") scaleY("+Nt+")"}},Transform:{toString(yt){if(yt)return[rt.Translate.toString(yt),rt.Scale.toString(yt)].join(" ")}},Transition:{toString(yt){let{property:Dt,duration:Nt,easing:Bn}=yt;return Dt+" "+Nt+"ms "+Bn}}}),Tt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Mt(yt){return yt.matches(Tt)?yt:yt.querySelector(Tt)}},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(Rn,ti){"use strict";ti.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39886:function(Rn,ti){"use strict";ti.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},57971:function(Rn,ti,be){"use strict";var ve=be(67294),tt=Object.defineProperty,Pt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Re=(wt,ht,Vt)=>ht in wt?tt(wt,ht,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):wt[ht]=Vt,Je=(wt,ht)=>{for(var Vt in ht||(ht={}))Ut.call(ht,Vt)&&Re(wt,Vt,ht[Vt]);if(Pt)for(var Vt of Pt(ht))Bt.call(ht,Vt)&&Re(wt,Vt,ht[Vt]);return wt};const pt=wt=>React.createElement("svg",Je({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},wt),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));ti.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},36913:function(Rn,ti,be){"use strict";var ve=be(67294),tt=Object.defineProperty,Pt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Re=(wt,ht,Vt)=>ht in wt?tt(wt,ht,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):wt[ht]=Vt,Je=(wt,ht)=>{for(var Vt in ht||(ht={}))Ut.call(ht,Vt)&&Re(wt,Vt,ht[Vt]);if(Pt)for(var Vt of Pt(ht))Bt.call(ht,Vt)&&Re(wt,Vt,ht[Vt]);return wt};const pt=wt=>React.createElement("svg",Je({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},wt),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));ti.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},18023:function(){"use strict";function Rn(Te,ne,te,ue){te===void 0&&(te=0),ue===void 0&&(ue=1/0),this._name=Te,this._defaultValue=ne,this._minimum=te,this._maximum=ue}Object.defineProperty(Rn.prototype,"name",{get:function(){return this._name},set:function(Te){if(typeof Te!="string"||Te==="")throw new Error("Shape name must be a valid string.");this._name=Te}}),Object.defineProperty(Rn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("The default value must be a real number, not: "+Te);this._defaultValue=Te}}),Object.defineProperty(Rn.prototype,"minimum",{get:function(){return this._minimum},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("Minimum must be a real number, not: "+Te);this._minimum=Te}}),Object.defineProperty(Rn.prototype,"maximum",{get:function(){return this._maximum},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("Maximum must be a real number, not: "+Te);this._maximum=Te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Te,ne){var te=go.Shape._FigureParameters[Te];return te?te[ne]:null},go.Shape.setFigureParameter=function(Te,ne,te){if(!(te instanceof Rn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+te);if(te.defaultValue<te.minimum||te.defaultValue>te.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+te.defaultValue);var ue=go.Shape._FigureParameters[Te];ue||(ue=[],go.Shape._FigureParameters[Te]=ue),ue[ne]=te};var ti=[];function be(Te,ne){var te=ti.pop();return te===void 0?new go.Point(Te,ne):(te.x=Te,te.y=ne,te)}function ve(){var Te=ti.pop();return Te===void 0?new go.Point:Te}function tt(Te){ti.push(Te)}function Pt(Te,ne,te,ue,se,ge,me,xe,Pe){Pe||(Pe=new go.Point);var Ke=Te-te,qe=se-me,ft=NaN,st=NaN;if(Ke===0)if(qe===0)Te===te&&(ft=Te,st=ne);else{var rt=(ge-xe)/qe,Tt=ge-rt*se;ft=Te,st=rt*ft+Tt}else if(qe===0){var Mt=(ne-ue)/Ke,yt=ne-Mt*Te;ft=se,st=Mt*ft+yt}else{var Mt=(ne-ue)/Ke,rt=(ge-xe)/qe,yt=ne-Mt*Te,Tt=ge-rt*se;ft=(Tt-yt)/(Mt-rt),st=Mt*ft+yt}return Pe.x=ft,Pe.y=st,Pe}function Ut(Te,ne,te,ue,se,ge,me,xe,Pe,Ke,qe,ft,st,rt){var Tt=1-Pe,Mt=Pe,yt=Te*Tt+te*Mt,Dt=ne*Tt+ue*Mt,Nt=te*Tt+se*Mt,Bn=ue*Tt+ge*Mt,On=se*Tt+me*Mt,Qt=ge*Tt+xe*Mt,vn=yt*Tt+Nt*Mt,lt=Dt*Tt+Bn*Mt,Ge=Nt*Tt+On*Mt,Ne=Bn*Tt+Qt*Mt,Nn=vn*Tt+Ge*Mt,Xn=lt*Tt+Ne*Mt;Ke.x=yt,Ke.y=Dt,qe.x=vn,qe.y=lt,ft.x=Nn,ft.y=Xn,st.x=Ge,st.y=Ne,rt.x=On,rt.y=Qt}var Bt=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),Je=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Rn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=5),ue=Math.min(ue,ne/3),ue=Math.min(ue,te/3);var se=ue*Je,ge=new go.Geometry().add(new go.PathFigure(ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,ne-se,0,ne,se)).add(new go.PathSegment(go.PathSegment.Line,ne,te-ue)).add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,te,ne,te-se,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,ue,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,se,te,0,te-se)).add(new go.PathSegment(go.PathSegment.Line,0,ue)).add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,se,se,0).close()));return se>1&&(ge.spot1=new go.Spot(0,0,se,se),ge.spot2=new go.Spot(1,1,-se,-se)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Te,ne,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=te/2,ue.endX=ne,ue.endY=te/2,ue}),go.Shape.defineFigureGenerator("LineV",function(Te,ne,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=ne/2,ue.startY=0,ue.endX=ne/2,ue.endY=te,ue}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,te/2,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("XLine",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LineRight",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(.25*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)))}),go.Shape.defineFigureGenerator("LineDown",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,.25*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)))}),go.Shape.defineFigureGenerator("LineLeft",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(.75*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)))}),go.Shape.defineFigureGenerator("LineUp",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,.75*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Te,ne,te){var ue=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ue*ne,(1-ue)*te,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Move,ue*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Move,0,te/2)).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("CircleLine",function(Te,ne,te){var ue=ne/2,se=new go.Geometry().add(new go.PathFigure(ne,ne/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close()));return se.spot1=Bt,se.spot2=Re,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Te,ne,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=0,ue.endX=ne,ue.endY=te,ue}),go.Shape.defineFigureGenerator("Line2",function(Te,ne,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=ne,ue.startY=0,ue.endX=0,ue.endY=te,ue}),go.Shape.defineFigureGenerator("Curve1",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Je*ne,0,ne,(1-Je)*te)))}),go.Shape.defineFigureGenerator("Curve2",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,0,Je*te,(1-Je)*ne,te)))}),go.Shape.defineFigureGenerator("Curve3",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,Je*te,Je*ne,te)))}),go.Shape.defineFigureGenerator("Curve4",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,(1-Je)*ne,0,0,(1-Je)*te)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Rn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)?ue=.1:ue<-1?ue=-1:ue>1&&(ue=1);var se=Math.abs(ue)*ne;if(ue===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return ue>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Rn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)?ue=10:ue<-ne?ue=-ne:ue>ne&&(ue=ne);var se=Math.abs(ue);if(ue===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return ue>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new Rn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)?ue=.2:ue<.5?ue=-.5:ue>.5&&(ue=.5);var se=Math.abs(ue)*ne;if(ue===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return ue>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Rn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)?ue=20:ue<-ne?ue=-ne/2:ue>ne&&(ue=ne/2);var se=Math.abs(ue);if(ue===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return ue>0?ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new Rn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)?ue=10:ue<-ne?ue=-ne/2:ue>ne&&(ue=ne/2);var se=Math.abs(ue);if(ue===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return ue>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())):ge.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())),se<ne/2&&ge.setSpots(se/ne,0,(ne-se)/ne,1),ge}});var pt=[];function wt(){var Te=pt.pop();return Te===void 0?[]:Te}function ht(Te){Te.length=0,pt.push(Te)}function Vt(Te){for(var ne=wt(),te=.5,ue=.5,se=Math.PI*1.5,ge=0,me=0;me<Te;me++)ge=2*Math.PI/Te*me+se,ne[me]=new go.Point(ue+te*Math.cos(ge),ue+te*Math.sin(ge));return ne.push(ne[0]),ne}function ct(Te){var ne=He(Te),te=wt();te[0]=ne[0];for(var ue=1,se=1;ue<ne.length;ue+=2,se+=3)te[se]=ne[ue],te[se+1]=ne[ue],te[se+2]=ne[ue+1];return ht(ne),te}function He(Te){for(var ne=Vt(Te),te=wt(),ue=Math.floor(ne.length/2),se=ne.length-1,ge=Te%2===0?2:1,me=0;me<se;me++){var xe=ne[me],Pe=ne[me+1],Ke=ne[(ue+me-1)%se],qe=ne[(ue+me+ge)%se];te[me*2]=xe,te[me*2+1]=Pt(xe.x,xe.y,Ke.x,Ke.y,Pe.x,Pe.y,qe.x,qe.y,new go.Point)}return te[te.length]=te[0],ht(ne),te}go.Shape.defineFigureGenerator("Pentagon",function(Te,ne,te){var ue=Vt(5),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<5;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Te,ne,te){var ue=Vt(6),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<6;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Te,ne,te){var ue=Vt(7),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<7;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Te,ne,te){var ue=Vt(8),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<8;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Te,ne,te){var ue=Vt(9),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<9;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Te,ne,te){var ue=Vt(10),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Te,ne,te){var ue=Vt(12),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Te,ne,te){var ue=He(5),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Te,ne,te){var ue=He(6),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Te,ne,te){var ue=He(7),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<14;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Te,ne,te){var ue=He(8),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<16;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Te,ne,te){var ue=He(9),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<18;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Te,ne,te){var ue=He(10),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<20;me++)ge.add(new go.PathSegment(go.PathSegment.Line,ue[me].x*ne,ue[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),ht(ue),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Te,ne,te){var ue=ct(5),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<ue.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ue[me+2].x*ne,ue[me+2].y*te,ue[me].x*ne,ue[me].y*te,ue[me+1].x*ne,ue[me+1].y*te));return ge.segments.last().close(),ht(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Te,ne,te){var ue=ct(6),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<ue.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ue[me+2].x*ne,ue[me+2].y*te,ue[me].x*ne,ue[me].y*te,ue[me+1].x*ne,ue[me+1].y*te));return ge.segments.last().close(),ht(ue),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Te,ne,te){var ue=ct(7),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<ue.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ue[me+2].x*ne,ue[me+2].y*te,ue[me].x*ne,ue[me].y*te,ue[me+1].x*ne,ue[me+1].y*te));return ge.segments.last().close(),ht(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Te,ne,te){var ue=ct(8),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<ue.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ue[me+2].x*ne,ue[me+2].y*te,ue[me].x*ne,ue[me].y*te,ue[me+1].x*ne,ue[me+1].y*te));return ge.segments.last().close(),ht(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Te,ne,te){var ue=ct(9),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<ue.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ue[me+2].x*ne,ue[me+2].y*te,ue[me].x*ne,ue[me].y*te,ue[me+1].x*ne,ue[me+1].y*te));return ge.segments.last().close(),ht(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Te,ne,te){var ue=ct(10),se=new go.Geometry,ge=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(ge);for(var me=1;me<ue.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ue[me+2].x*ne,ue[me+2].y*te,ue[me].x*ne,ue[me].y*te,ue[me+1].x*ne,ue[me+1].y*te));return ge.segments.last().close(),ht(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new Rn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Rn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Te,ne,te){var ue=Te?Te.parameter1:NaN,se=Te?Te.parameter2:NaN;isNaN(ue)&&(ue=8),isNaN(se)&&(se=8);var ge=new go.Geometry,me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue<ne/2&&se<te/2&&(me.add(new go.PathSegment(go.PathSegment.Move,ue,se)),me.add(new go.PathSegment(go.PathSegment.Line,ue,te-se)),me.add(new go.PathSegment(go.PathSegment.Line,ne-ue,te-se)),me.add(new go.PathSegment(go.PathSegment.Line,ne-ue,se).close())),ge.setSpots(0,0,1,1,ue,se,-ue,-se),ge}),go.Shape.setFigureParameter("Ring",0,new Rn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=8);var se=ne/2,ge=new go.Geometry,me=new go.PathFigure(ne,ne/2,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var xe=Math.max(se-ue,0);return xe>0&&(me.add(new go.PathSegment(go.PathSegment.Move,ne/2+xe,ne/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,xe,xe).close())),ge.spot1=Bt,ge.spot2=Re,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(.08034461*ne,.1944299*te,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ne,.05349299*te,-.09239631*ne,.07836421*te,.1406031*ne,-.0542823*te)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ne,.074219*te,.2450511*ne,-.00697547*te,.3776197*ne,-.01112067*te)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ne,.07004196*te,.4539471*ne,0,.6066018*ne,-.02526587*te)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ne,.08370865*te,.6914277*ne,-.01904177*te,.8921095*ne,-.01220843*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ne,.3194596*te,1.036446*ne,.04105738*te,1.020377*ne,.3022052*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ne,.562044*te,1.04448*ne,.360238*te,.992256*ne,.5219009*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ne,.8217117*te,1.032337*ne,.5771781*te,1.018411*ne,.8120651*te)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ne,.9156953*te,1.028411*ne,.9571472*te,.8556702*ne,1.052487*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ne,.9310455*te,.7431877*ne,1.009325*te,.5624123*ne,1.021761*te)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ne,.9344623*te,.4820677*ne,1.031761*te,.3030112*ne,1.002796*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.870098*te,.2329994*ne,1.01518*te,.03213784*ne,1.01518*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ne,.6545475*te,-.02812061*ne,.9032597*te,-.01205169*ne,.6835638*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ne,.4265613*te,-.01812061*ne,.6089503*te,-.00606892*ne,.4555777*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.1944299*te,-.01606892*ne,.3892545*te,-.01205169*ne,.1944299*te))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Te,ne,te){var ue=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ue*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ue*te)).add(new go.PathSegment(go.PathSegment.Line,ne,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Line,0,ue*te).close())).setSpots(ue/2,ue/2,1-ue/2,1-ue/2)}),go.Shape.setFigureParameter("Pie",0,new Rn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Rn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Te,ne,te){var ue=Te?Te.parameter1:NaN,se=Te?Te.parameter2:NaN;isNaN(ue)&&(ue=0),isNaN(se)&&(se=315);var ge=ue%360;ge<0&&(ge+=360);var me=se%360,xe=Math.min(ne,te)/2;return new go.Geometry().add(new go.PathFigure(xe,xe).add(new go.PathSegment(go.PathSegment.Arc,ge,me,xe,xe,xe,xe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Te,ne,te){var ue=Je/Math.SQRT2*.5,se=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*ne,ge*te,ne,(1-ue)*te,(se+ue)*ne,(ge+ue)*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30);var se=Math.min(ue,ne)/2,ge=ne/2,me=te/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,ne,me-se)).add(new go.PathSegment(go.PathSegment.Line,ne,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Rn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var se=Math.min(ue,ne)/2,ge=ne/2,me=te/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,ne,me-se)).add(new go.PathSegment(go.PathSegment.Line,ne,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,te)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;if((isNaN(ue)||ue<0)&&(ue=30),ne===0||te===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=ne,se.endY=te,se}else{var ge=ne/2,me=te/2,xe=Math.atan2(te,ne),Pe=ue-Math.min(Math.cos(xe)*ue/2,ge),Ke=ue-Math.min(Math.sin(xe)*ue/2,me),se=new go.Geometry,qe=new go.PathFigure(Pe,0,!0);return se.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,ge,.2*te)),qe.add(new go.PathSegment(go.PathSegment.Line,ne-Pe,0)),qe.add(new go.PathSegment(go.PathSegment.Line,ne,Ke)),qe.add(new go.PathSegment(go.PathSegment.Line,.8*ne,me)),qe.add(new go.PathSegment(go.PathSegment.Line,ne,te-Ke)),qe.add(new go.PathSegment(go.PathSegment.Line,ne-Pe,te)),qe.add(new go.PathSegment(go.PathSegment.Line,ge,.8*te)),qe.add(new go.PathSegment(go.PathSegment.Line,Pe,te)),qe.add(new go.PathSegment(go.PathSegment.Line,0,te-Ke)),qe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,me)),qe.add(new go.PathSegment(go.PathSegment.Line,0,Ke).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new Rn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var se=new go.Geometry,ge=new go.PathFigure(.1*ne,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*te).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new Rn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.2);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,ue*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*ne,ue*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*ne,(1-ue)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,(1-ue)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*ne,(1-ue)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*ne,ue*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ue*te).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new Rn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.5);var se=new go.Geometry,ge=new go.PathFigure(0,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Math.abs(1-ue)*ne,.25*te,Math.abs(1-ue)*ne,.75*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*ne,.75*te,ue*ne,.25*te).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,Je*ne,0,ne,(.5-Je/2)*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,(.5+Je/2)*te,Je*ne,te).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,0,ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ne,.75*te,.5*ne,.25*te).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,.1*ne,.8*te,0,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,0,0,.45*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.55*ne,0,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.5*te,.9*ne,.8*te).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ne,.01*te)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.6*ne,.2*te,ne,.25*te)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.7*te,ne,.8*te,.6*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,.5*ne,.75*te,.55*ne,.95*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.7*te,.45*ne,.95*te,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.4*ne,.8*te,0,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ne,.01*te,0,.25*te,.4*ne,.2*te).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.4*ne,.6*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*ne,te,.5*ne,.75*te,.45*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.6*te,.55*ne,.95*te,.5*ne,.75*te));var ge=.2,me=.3,xe=0,Pe=ge*Je;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5+ge+xe)*te,(.5-ge+me)*ne,(.5+Pe+xe)*te,(.5-Pe+me)*ne,(.5+ge+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*ne,(.5+xe)*te,(.5+Pe+me)*ne,(.5+ge+xe)*te,(.5+ge+me)*ne,(.5+Pe+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+xe)*te,(1-.5+ge+me)*ne,(.5-Pe+xe)*te,(.5+Pe+me)*ne,(.5-ge+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*ne,.36771243*te,(.5-Pe+me)*ne,(.5-ge+xe)*te,(.5-ge+me+.05)*ne,(.5-Pe+xe-.02)*te)),ge=.2,me=0,xe=-.3,Pe=ge*Je,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*ne,(.5+xe)*te,(.5+Pe+me)*ne,(.5+ge+xe)*te,(.5+ge+me)*ne,(.5+Pe+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+xe)*te,(1-.5+ge+me)*ne,(.5-Pe+xe)*te,(.5+Pe+me)*ne,(.5-ge+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*ne,(.5+xe)*te,(.5-Pe+me)*ne,(.5-ge+xe)*te,(.5-ge+me)*ne,(.5-Pe+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Pe+me)*ne,(.5+ge+xe)*te,(.5-ge+me)*ne,(.5+Pe+xe)*te,(.5-Pe+me)*ne,(.5+ge+xe)*te)),ge=.2,me=-.3,xe=0,Pe=ge*Je,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+xe)*te,(1-.5+ge+me-.05)*ne,(.5-Pe+xe-.02)*te,(.5+Pe+me)*ne,(.5-ge+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*ne,(.5+xe)*te,(.5-Pe+me)*ne,(.5-ge+xe)*te,(.5-ge+me)*ne,(.5-Pe+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5+ge+xe)*te,(.5-ge+me)*ne,(.5+Pe+xe)*te,(.5-Pe+me)*ne,(.5+ge+xe)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.6*te,(.5+Pe+me)*ne,(.5+ge+xe)*te,(.5+ge+me)*ne,(.5+Pe+xe)*te).close()),ue.setSpots(.06,.33,.93,.68),ue}),go.Shape.defineFigureGenerator("YinYang",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*.5,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*.5,ne*.5,ne*.5,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ne*.5,ne*.75,ne*.25,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,ne*.5,ne*.25,ne*.25,ne*.25));var ge=.1,me=.5,xe=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(me+ge)*ne,xe*te)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ne*me,te*xe,ge*ne,ge*ne).close()),se=new go.PathFigure(ne*.5,0,!1),ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*.5,ne*.5,ne*.5,ne*.5)),xe=.75,se=new go.PathFigure((me+ge)*ne,xe*te,!0),ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,ne*me,te*xe,ge*ne,ge*ne).close()),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Peace",function(Te,ne,te){var ue=.8535533905932737,se=.5*ne,ge=.5*te;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,ge,se,ge)).add(new go.PathSegment(go.PathSegment.Line,se,te)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,ue*te)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=.5,me=.5,xe=.5,Pe=new go.PathFigure(me*ne,(xe-ge)*te);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-ge)*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te)),ge=.4,se=Je*.4;var Ke=ve(),qe=ve(),ft=ve(),st=ve();Ut(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.42,Ke,qe,ft,st,st);var rt=ve(),Tt=ve(),Mt=ve();Ut(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.58,st,st,Mt,rt,Tt);var yt=ve(),Dt=ve(),Nt=ve();Ut(me,xe+ge,me-se,xe+ge,me-ge,xe+se,me-ge,xe,.42,yt,Dt,Nt,st,st);var Bn=ve(),On=ve(),Qt=ve();return Ut(me,xe+ge,me-se,xe+ge,me-ge,xe+se,me-ge,xe,.58,st,st,Qt,Bn,On),Pe.add(new go.PathSegment(go.PathSegment.Move,Qt.x*ne,Qt.y*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,Bn.x*ne,Bn.y*te,On.x*ne,On.y*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ft.x*ne,ft.y*te,Ke.x*ne,Ke.y*te,qe.x*ne,qe.y*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,Qt.x*ne,Qt.y*te).close()),Pe.add(new go.PathSegment(go.PathSegment.Move,Nt.x*ne,Nt.y*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,Mt.x*ne,Mt.y*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,rt.x*ne,rt.y*te,Tt.x*ne,Tt.y*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Nt.x*ne,Nt.y*te,yt.x*ne,yt.y*te,Dt.x*ne,Dt.y*te).close()),tt(Ke),tt(qe),tt(ft),tt(st),tt(rt),tt(Tt),tt(Mt),tt(yt),tt(Dt),tt(Nt),tt(Bn),tt(On),tt(Qt),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Fragile",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.29*ne,.33*te)).add(new go.PathSegment(go.PathSegment.Line,.35*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.5*te,ne,.25*te,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.5*te,0,.25*te).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Rn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30),ue>ne&&(ue=ne);var se=(ne-ue)/2,ge=se+ue;return new go.Geometry().add(new go.PathFigure(ge,.5*te).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,se,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,.55*te).add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.55*te).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Te,ne,te){var ue=new go.Geometry,se=Je*.4,ge=.4,me=.5,xe=.5,Pe=ve(),Ke=ve(),qe=ve(),ft=ve(),st=new go.PathFigure((me-ge)*ne,xe*te,!1);ue.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te)),Ut(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.44,qe,ft,Ke,Pe,Pe),st.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*ne,Ke.y*te,qe.x*ne,qe.y*te,ft.x*ne,ft.y*te));var rt=be(Ke.x,Ke.y);Ut(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.56,Pe,Pe,Ke,qe,ft);var Tt=be(Ke.x,Ke.y);st.add(new go.PathSegment(go.PathSegment.Line,(rt.x*.1+.95*.9)*ne,rt.y*.1*te)),st.add(new go.PathSegment(go.PathSegment.Line,.85*ne,rt.y*.1*te)),st.add(new go.PathSegment(go.PathSegment.Line,.85*ne,0)),st.add(new go.PathSegment(go.PathSegment.Line,ne,0)),st.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),st.add(new go.PathSegment(go.PathSegment.Line,(Tt.x*.1+.9)*ne,.15*te)),st.add(new go.PathSegment(go.PathSegment.Line,(Tt.x*.1+.9)*ne,(Tt.y*.1+.05*.9)*te)),st.add(new go.PathSegment(go.PathSegment.Line,Tt.x*ne,Tt.y*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,qe.x*ne,qe.y*te,ft.x*ne,ft.y*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,(me-se)*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te)),ge=.35,se=Je*.35;var Mt=new go.PathFigure(me*ne,(xe-ge)*te,!1);ue.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-ge)*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te));var yt=new go.PathFigure((me-ge)*ne,xe*te,!1);return ue.add(yt),tt(Pe),tt(Ke),tt(qe),tt(ft),tt(rt),tt(Tt),ue.spot1=new go.Spot(.202,.257),ue.spot2=new go.Spot(.792,.739),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("GenderFemale",function(Te,ne,te){var ue=new go.Geometry,se=.375,ge=0,me=-.125,xe=se*Je,Pe=new go.PathFigure((.525+ge)*ne,(.5+se+me)*te,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*ne,(.5+me)*te,(.5+xe+ge)*ne,(.5+se+me)*te,(.5+se+ge)*ne,(.5+xe+me)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-se+me)*te,(1-.5+se+ge)*ne,(.5-xe+me)*te,(.5+xe+ge)*ne,(.5-se+me)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+me)*te,(.5-xe+ge)*ne,(.5-se+me)*te,(.5-se+ge)*ne,(.5-xe+me)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*ne,(.5+se+me)*te,(.5-se+ge)*ne,(.5+xe+me)*te,(.5-xe+ge)*ne,(.5+se+me)*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.85*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.85*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.9*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.9*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*ne,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*ne,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.9*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.9*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.85*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te).close()),se=.325,ge=0,me=-.125,xe=se*Je;var Pe=new go.PathFigure((1-.5+se+ge)*ne,(.5+me)*te,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5+se+me)*te,(.5+se+ge)*ne,(.5+xe+me)*te,(.5+xe+ge)*ne,(.5+se+me)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+me)*te,(.5-xe+ge)*ne,(.5+se+me)*te,(.5-se+ge)*ne,(.5+xe+me)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-se+me)*te,(.5-se+ge)*ne,(.5-xe+me)*te,(.5-xe+ge)*ne,(.5-se+me)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*ne,(.5+me)*te,(.5+xe+ge)*ne,(.5-se+me)*te,(1-.5+se+ge)*ne,(.5-xe+me)*te));var Pe=new go.PathFigure((.525+ge)*ne,(.5+se+me)*te,!1);return ue.add(Pe),ue.spot1=new go.Spot(.232,.136),ue.spot2=new go.Spot(.682,.611),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicImplies",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ue*ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,te))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Te,ne,te){var ue=new go.Geometry().add(new go.PathFigure(.5*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ne,.5*te,.5*ne,.5*te)));return ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicTruth",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,0,te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Te,ne,te){var ue=.5;return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,0,ue*te)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ue*ne,ue*te,ue*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Te,ne,te){var ue=.5;return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,ue*te)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ue*ne,ue*te,ue*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Rn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Rn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=Te?Te.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-ue)*ne,me=(.5-se/2)*te,xe=(.5+se/2)*te,Pe=new go.Geometry,Ke=new go.PathFigure(0,me,!0);Pe.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Ke.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,xe)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,xe).close()),Pe.spot1=new go.Spot(0,me/te);var qe=Pt(0,xe/te,1,xe/te,ge/ne,1,1,.5,ve());return Pe.spot2=new go.Spot(qe.x,qe.y),tt(qe),Pe}),go.Shape.setFigureParameter("Arrow2",0,new Rn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Rn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=30),ue>ne&&(ue=ne);var se=Te?Te.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,te/2);var ge=ne-ue,me=(te-se)/2,xe=me+se,Pe=new go.Geometry,Ke=new go.PathFigure(0,me,!0);Pe.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Ke.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Ke.add(new go.PathSegment(go.PathSegment.Line,ge,xe)),Ke.add(new go.PathSegment(go.PathSegment.Line,0,xe).close()),Pe.spot1=new go.Spot(0,me/te);var qe=Pt(0,xe/te,1,xe/te,ge/ne,1,1,.5,ve());return Pe.spot2=new go.Spot(qe.x,qe.y),tt(qe),Pe}),go.Shape.defineFigureGenerator("Chevron",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),ue}),go.Shape.defineFigureGenerator("DoubleArrow",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.214*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.786*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*te).close()),ue}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Rn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=(.5-ue/2)*te,ge=(.5+ue/2)*te,me=new go.Geometry,xe=new go.PathFigure(ne,.5*te,!0);me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,se)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close());var Pe=Pt(0,.5,.3,0,0,se/te,.1,se/te,ve());return me.spot1=new go.Spot(Pe.x,Pe.y),Pe=Pt(.7,1,1,.5,0,ge/te,1,ge/te,Pe),me.spot2=new go.Spot(Pe.x,Pe.y),tt(Pe),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Rn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Rn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=40);var se=Te?Te.parameter2:NaN;isNaN(se)&&(se=100);var ge=(te-ue)/2,me=ge+ue,xe=(te-se)/2,Pe=xe+se;(ue>te||se>te)&&(se>ue?(ue=ue*te/se,ge=(te-ue)/2,me=ge+ue,xe=0,Pe=te):(ge=0,me=te,xe=0,Pe=te));var Ke=new go.Geometry,qe=new go.PathFigure(ne,.5*te,!0);Ke.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Pe)),qe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,me)),qe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,me)),qe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Pe)),qe.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),qe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,xe)),qe.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),qe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),qe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,xe).close());var ft=Pt(0,.5,.3,xe/te,0,ge/te,1,ge/te,ve());return Ke.spot1=new go.Spot(ft.x,ft.y),ft=Pt(.7,Pe/te,1,.5,0,me/te,1,me/te,ft),Ke.spot2=new go.Spot(ft.x,ft.y),tt(ft),Ke}),go.Shape.setFigureParameter("IBeamArrow",0,new Rn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=(.5-ue/2)*te,ge=(.5+ue/2)*te,me=new go.Geometry,xe=new go.PathFigure(ne,.5*te,!0);me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,se)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(0,se/te);var Pe=Pt(.7,1,1,.5,0,ge/te,1,ge/te,ve());return me.spot2=new go.Spot(Pe.x,Pe.y),tt(Pe),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Rn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Rn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=40);var se=Te?Te.parameter2:NaN;isNaN(se)&&(se=100);var ge=(te-ue)/2,me=ge+ue,xe=(te-se)/2,Pe=xe+se;(ue>te||se>te)&&(se>ue?(ue=ue*te/se,ge=(te-ue)/2,me=ge+ue,xe=0,Pe=te):(ge=0,me=te,xe=0,Pe=te));var Ke=new go.Geometry,qe=new go.PathFigure(ne,.5*te,!0);Ke.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Pe)),qe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,me)),qe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,me)),qe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Pe)),qe.add(new go.PathSegment(go.PathSegment.Line,0,Pe)),qe.add(new go.PathSegment(go.PathSegment.Line,0,xe)),qe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,xe)),qe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),qe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),qe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,xe).close()),Ke.spot1=new go.Spot(0,ge/te);var ft=Pt(.7,Pe/te,1,.5,0,me/te,1,me/te,ve());return Ke.spot2=new go.Spot(ft.x,ft.y),tt(ft),Ke}),go.Shape.setFigureParameter("Pointer",0,new Rn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.1);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,ue*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(ue,.35);var me=Pt(.2,.65,1,.65,0,1,1,.5,ve());return se.spot2=new go.Spot(me.x,me.y),tt(me),se}),go.Shape.setFigureParameter("RoundedPointer",0,new Rn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*ne,.75*te,ue*ne,.25*te).close()),se.spot1=new go.Spot(ue,.35);var me=Pt(0,.65,1,.65,0,1,1,.5,ve());return se.spot2=new go.Spot(me.x,me.y),tt(me),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new Rn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.4);var se=(.5-ue/2)*te,ge=(.5+ue/2)*te,me=new go.Geometry,xe=new go.PathFigure(ne,.5*te,!0);me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,se)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(.2,.3);var Pe=Pt(.7,1,1,.5,0,ge/te,1,ge/te,ve());return me.spot2=new go.Spot(Pe.x,Pe.y),tt(Pe),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Rn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=50);var se=(te-ue)/2,ge=se+ue;ue>te&&(se=0,ge=te);var me=new go.Geometry,xe=new go.PathFigure(ne,.5*te,!0);me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,se)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(.2,se/te);var Pe=Pt(.7,1,1,.5,0,ge/te,1,ge/te,ve());return me.spot2=new go.Spot(Pe.x,Pe.y),tt(Pe),me}),go.Shape.setFigureParameter("SquareArrow",0,new Rn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.7);var se=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ue*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ue*ne,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(ue,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=Je*.1,me=new go.PathFigure(0,.9*te,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te).close()),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.97),ue}),go.Shape.defineFigureGenerator("Cone2",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.9*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,te,.85/.9*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*te).close());var ge=new go.PathFigure(0,.9*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,.8*te,.85/.9*ne,.8*te)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.82),ue}),go.Shape.defineFigureGenerator("Cube1",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.5,.85),ue}),go.Shape.defineFigureGenerator("Cube2",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.3*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0).close());var ge=new go.PathFigure(0,.3*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.7,1),ue}),go.Shape.defineFigureGenerator("Cylinder1",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,te/3);var se=new go.Geometry,ge=Je*.5,me=new go.PathFigure(0,ue,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Je*ue,(.5-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*ne,ue,(.5+ge)*ne,0,1*ne,Je*ue)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,1*te,1*ne,te-Je*ue,(.5+ge)*ne,1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,(.5-ge)*ne,1*te,0,te-Je*ue)),me.add(new go.PathSegment(go.PathSegment.Line,0,ue));var xe=new go.PathFigure(ne,ue,!1);return se.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,2*ue,1*ne,2*ue-Je*ue,(.5+ge)*ne,2*ue)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,ue,(.5-ge)*ne,2*ue,0,2*ue-Je*ue)),se.spot1=new go.Spot(0,0,0,2*ue),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,te/3);var se=new go.Geometry,ge=Je*.5,me=new go.PathFigure(0,te-ue,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Je*ue,(.5-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,(.5+ge)*ne,0,ne,Je*ue)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,te-Je*ue,(.5+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,(.5-ge)*ne,te,0,te-Je*ue));var xe=new go.PathFigure(0,te-ue,!1);return se.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te-2*ue,0,te-ue-Je*ue,(.5-ge)*ne,te-2*ue)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne,te-ue,(.5+ge)*ne,te-2*ue,ne,te-ue-Je*ue)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*ue),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ne/3);var se=new go.Geometry,ge=Je*.5,me=new go.PathFigure(ue,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-Je*ue,0,ne,(.5-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,te,ne,(.5+ge)*te,ne-Je*ue,te)),me.add(new go.PathSegment(go.PathSegment.Line,ue,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,Je*ue,te,0,(.5+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-ge)*te,Je*ue,0));var xe=new go.PathFigure(ue,0,!1);return se.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,2*ue,.5*te,ue+Je*ue,0,2*ue,(.5-ge)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ue,te,2*ue,(.5+ge)*te,ue+Je*ue,te)),se.spot1=new go.Spot(0,0,2*ue,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ne/3);var se=new go.Geometry,ge=Je*.5,me=new go.PathFigure(ne-ue,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-Je*ue,0,ne,(.5-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,te,ne,(.5+ge)*te,ne-Je*ue,te)),me.add(new go.PathSegment(go.PathSegment.Line,ue,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,Je*ue,te,0,(.5+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-ge)*te,Je*ue,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0));var xe=new go.PathFigure(ne-ue,0,!1);return se.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne-2*ue,.5*te,ne-ue-Je*ue,0,ne-2*ue,(.5-ge)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,te,ne-2*ue,(.5+ge)*te,ne-ue-Je*ue,te)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*ue,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,.25*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.25*ne,.25*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),ue.spot1=new go.Spot(.408,.172),ue.spot2=new go.Spot(.833,.662),ue}),go.Shape.defineFigureGenerator("Prism2",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.25*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("Pyramid1",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Pyramid2",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Actor",function(Te,ne,te){var ue=new go.Geometry,se=.2,ge=.1,me=Je*se,xe=Je*ge,Pe=.5,Ke=.1,qe=new go.PathFigure(Pe*ne,(Ke+ge)*te,!0);ue.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-se)*ne,Ke*te,(Pe-me)*ne,(Ke+ge)*te,(Pe-se)*ne,(Ke+xe)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ge)*te,(Pe-se)*ne,(Ke-xe)*te,(Pe-me)*ne,(Ke-ge)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+se)*ne,Ke*te,(Pe+me)*ne,(Ke-ge)*te,(Pe+se)*ne,(Ke-xe)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke+ge)*te,(Pe+se)*ne,(Ke+xe)*te,(Pe+me)*ne,(Ke+ge)*te));var ft=.05,st=Je*ft;Pe=.05,Ke=.25;var rt=new go.PathFigure(.5*ne,.2*te,!0);return ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.2*te)),Pe=.95,Ke=.25,rt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ft)*ne,Ke*te,(Pe+st)*ne,(Ke-ft)*te,(Pe+ft)*ne,(Ke-st)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.35*te)),ft=.025,st=Je*ft,Pe=.825,Ke=.35,rt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ft)*te,(Pe+ft)*ne,(Ke-st)*te,(Pe+st)*ne,(Ke-ft)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ft)*ne,Ke*te,(Pe-st)*ne,(Ke-ft)*te,(Pe-ft)*ne,(Ke-st)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te)),ft=.05,st=Je*ft,Pe=.5,Ke=.7,rt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ft)*te,(Pe+ft)*ne,(Ke-st)*te,(Pe+st)*ne,(Ke-ft)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ft)*ne,Ke*te,(Pe-st)*ne,(Ke-ft)*te,(Pe-ft)*ne,(Ke-st)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*ne,te)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.35*te)),ft=.025,st=Je*ft,Pe=.175,Ke=.35,rt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ft)*te,(Pe+ft)*ne,(Ke-st)*te,(Pe+st)*ne,(Ke-ft)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ft)*ne,Ke*te,(Pe-st)*ne,(Ke-ft)*te,(Pe-ft)*ne,(Ke-st)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),ft=.05,st=Je*ft,Pe=.05,Ke=.25,rt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ft)*te,(Pe-ft)*ne,(Ke-st)*te,(Pe-st)*ne,(Ke-ft)*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),ue.spot1=new go.Spot(.2,.2),ue.spot2=new go.Spot(.8,.65),ue}),go.Shape.setFigureParameter("Card",0,new Rn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;isNaN(ue)&&(ue=.2);var se=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ue*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ue*ne,0).close()),se.spot1=new go.Spot(0,ue),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,.5*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te));var ge=new go.PathFigure(.5*ne,.5*te,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,.25),ue}),go.Shape.defineFigureGenerator("CreateRequest",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(0,se*te,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*te)),ue}),go.Shape.defineFigureGenerator("Database",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=Je*.1,me=new go.PathFigure(ne,.1*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-se)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+se)*ne,0,ne,(.1-ge)*te));var xe=new go.PathFigure(ne,.1*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+se)*ne,.2*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-se)*ne,.2*te,0,(.1+ge)*te)),xe.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+se)*ne,.3*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-se)*ne,.3*te,0,(.2+ge)*te)),xe.add(new go.PathSegment(go.PathSegment.Move,ne,.3*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.4*te,ne,(.3+ge)*te,(.5+se)*ne,.4*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,(.5-se)*ne,.4*te,0,(.3+ge)*te)),ue.spot1=new go.Spot(0,.4),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("DataStorage",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.9*te,.25*ne,.1*te).close()),ue.spot1=new go.Spot(.226,0),ue.spot2=new go.Spot(.81,1),ue}),go.Shape.defineFigureGenerator("DiskStorage",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=Je*.1,me=new go.PathFigure(ne,.1*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+se)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-se)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+se)*ne,0,ne,(.1-ge)*te));var xe=new go.PathFigure(ne,.1*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+se)*ne,.2*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-se)*ne,.2*te,0,(.1+ge)*te)),xe.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+se)*ne,.3*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-se)*ne,.3*te,0,(.2+ge)*te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("Display",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close()),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("DividedEvent",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=Je*.2,me=new go.PathFigure(0,.2*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,0,(.2-ge)*te,(.2-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.2*te,(.8+ge)*ne,0,ne,(.2-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,te,ne,(.8+ge)*te,(.8+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*te,(.2-ge)*ne,te,0,(.8+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*te));var xe=new go.PathFigure(0,se*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),ue}),go.Shape.defineFigureGenerator("DividedProcess",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(0,se*te,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),ue}),go.Shape.defineFigureGenerator("Document",function(Te,ne,te){var ue=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(se*ne,0,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,se*te)),me.add(new go.PathSegment(go.PathSegment.Move,ne,se*te)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*te)),me.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*te)),ue}),go.Shape.defineFigureGenerator("ExternalProcess",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(.1*ne,.4*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.9*te)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("File",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.75*ne,0,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Interrupt",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,.5*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te));var ge=new go.PathFigure(ne,.5*te,!1);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te));var me=new go.PathFigure(ne,.5*te,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("InternalStorage",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN,ge=Te?Te.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var me=new go.PathFigure(0,0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var xe=new go.PathFigure(se*ne,0,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Move,0,ge*te)),xe.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te)),ue}),go.Shape.defineFigureGenerator("Junction",function(Te,ne,te){var ue=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,me=Je*.5,xe=.5,Pe=new go.PathFigure(ne,xe*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,xe*ne,te,ne,(xe+me)*te,(xe+me)*ne,te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,xe*te,(xe-me)*ne,te,0,(xe+me)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,xe*ne,0,0,(xe-me)*te,(xe-me)*ne,0)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,xe*te,(xe+me)*ne,0,ne,(xe-me)*te));var Ke=new go.PathFigure((ge+se)*ne,(ge+se)*te,!1);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,ge*ne,ge*te)),Ke.add(new go.PathSegment(go.PathSegment.Move,ge*ne,(ge+se)*te)),Ke.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*ne,ge*te)),ue}),go.Shape.defineFigureGenerator("LinedDocument",function(Te,ne,te){var ue=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close());var ge=new go.PathFigure(.1*ne,0,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.75*te)),ue.spot1=new go.Spot(.1,0),ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("LoopLimit",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MagneticTape",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=.5,me=new go.PathFigure(.5*ne,te,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*ne,.9*te,ne,(ge+se)*te,(ge+se)*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.8),ue}),go.Shape.defineFigureGenerator("ManualInput",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MessageFromUser",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,se*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,se*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,(1-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("MicroformRecording",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("MultiDocument",function(Te,ne,te){var ue=new go.Geometry;te=te/.8;var se=new go.PathFigure(ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.44*te,.96*ne,.47*te,.93*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.54*te,.86*ne,.57*te,.83*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.4*ne,.4*te,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0).close());var ge=new go.PathFigure(.1*ne,.2*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.44*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.8,.77),ue}),go.Shape.defineFigureGenerator("MultiProcess",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,.1*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close());var ge=new go.PathFigure(.2*ne,.1*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),ue.spot1=new go.Spot(0,.2),ue.spot2=new go.Spot(.8,1),ue}),go.Shape.defineFigureGenerator("OfflineStorage",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,me=new go.PathFigure(0,0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close());var xe=new go.PathFigure(.5*se*ne,se*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*ne,se*te)),ue}),go.Shape.defineFigureGenerator("OffPageConnector",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("Or",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=.5,me=new go.PathFigure(ne,ge*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+se)*te,(ge+se)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te));var xe=new go.PathFigure(ne,.5*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ue}),go.Shape.defineFigureGenerator("PaperTape",function(Te,ne,te){var ue=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.5*ne,.6*te,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),ue.spot1=new go.Spot(0,.49),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN,ge=Te?Te.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN,ge=Te?Te.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("Procedure",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure((1-se)*ne,0,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,se*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),ue}),go.Shape.defineFigureGenerator("Process",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(se*ne,0,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Sort",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(0,.5*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.5),ue}),go.Shape.defineFigureGenerator("Start",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*ne,0,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te));var me=new go.PathFigure(se*ne,0,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,te)),ue.spot1=new go.Spot(se,0),ue.spot2=new go.Spot(1-se,1),ue}),go.Shape.defineFigureGenerator("Terminator",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te)),ue.spot1=new go.Spot(.23,0),ue.spot2=new go.Spot(.77,1),ue}),go.Shape.defineFigureGenerator("TransmittalTape",function(Te,ne,te){var ue=new go.Geometry,se=Te?Te.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,(1-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*te).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("AndGate",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=new go.PathFigure(0,0,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(.5+se)*ne,0,ne,(.5-se)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.5+se)*te,(.5+se)*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.55,1),ue}),go.Shape.defineFigureGenerator("Buffer",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Clock",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=.5,me=new go.PathFigure(ne,ge*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+se)*te,(ge+se)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-se)*ne,te,0,(ge+se)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-se)*te,(ge-se)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+se)*ne,0,ne,(ge-se)*te));var xe=new go.PathFigure(ne,ge*te,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te));var Pe=new go.PathFigure(.8*ne,.75*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.25*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.25*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.75*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.75*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.25*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.25*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.75*te)),ue}),go.Shape.defineFigureGenerator("Ground",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Move,.3*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),ue}),go.Shape.defineFigureGenerator("Inverter",function(Te,ne,te){var ue=new go.Geometry,se=Je*.1,ge=.1,me=.9,xe=.5,Pe=new go.PathFigure(.8*ne,.5*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,0,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te));var Ke=new go.PathFigure((me+ge)*ne,xe*te,!0);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,(me-se)*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,(me+se)*ne,(xe-ge)*te,(me+ge)*ne,(xe-se)*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.4,.75),ue}),go.Shape.defineFigureGenerator("NandGate",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=Je*.4,me=Je*.1,xe=.1,Pe=.9,Ke=.5,qe=new go.PathFigure(.8*ne,.5*te,!0);ue.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,.8*ne,(.5+ge)*te,(.4+se)*ne,te)),qe.add(new go.PathSegment(go.PathSegment.Line,0,te)),qe.add(new go.PathSegment(go.PathSegment.Line,0,0)),qe.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),qe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(.4+se)*ne,0,.8*ne,(.5-ge)*te));var ft=new go.PathFigure((Pe+xe)*ne,Ke*te,!0);return ue.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke+xe)*te,(Pe+xe)*ne,(Ke+me)*te,(Pe+me)*ne,(Ke+xe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe)*ne,Ke*te,(Pe-me)*ne,(Ke+xe)*te,(Pe-xe)*ne,(Ke+me)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-xe)*te,(Pe-xe)*ne,(Ke-me)*te,(Pe-me)*ne,(Ke-xe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe)*ne,Ke*te,(Pe+me)*ne,(Ke-xe)*te,(Pe+xe)*ne,(Ke-me)*te)),ue.spot1=new go.Spot(0,.05),ue.spot2=new go.Spot(.55,.95),ue}),go.Shape.defineFigureGenerator("NorGate",function(Te,ne,te){var ue=new go.Geometry,se=.5,ge=Je*se,me=0,xe=.5,Pe=new go.PathFigure(.8*ne,.5*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.7*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(me+ge)*ne,(xe-se)*te,.7*ne,(xe-ge)*te)),se=.1,ge=Je*.1,me=.9,xe=.5;var Ke=new go.PathFigure((me-se)*ne,xe*te,!0);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*ne,xe*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*ne,xe*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te)),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.6,.75),ue}),go.Shape.defineFigureGenerator("OrGate",function(Te,ne,te){var ue=new go.Geometry,se=.5,ge=Je*se,me=0,xe=.5,Pe=new go.PathFigure(0,0,!0);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(me+ge+ge)*ne,(xe-se)*te,.8*ne,(xe-ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.8*ne,(xe+ge)*te,(me+ge+ge)*ne,(xe+se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te).close()),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("XnorGate",function(Te,ne,te){var ue=new go.Geometry,se=.5,ge=Je*se,me=.2,xe=.5,Pe=new go.PathFigure(.1*ne,0,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Ke=new go.PathFigure(.8*ne,.5*te,!0);ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.7*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(me+ge)*ne,(xe-se)*te,.7*ne,(xe-ge)*te)),se=.1,ge=Je*.1,me=.9,xe=.5;var qe=new go.PathFigure((me-se)*ne,xe*te,!0);return ue.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*ne,xe*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*ne,xe*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te)),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.65,.75),ue}),go.Shape.defineFigureGenerator("XorGate",function(Te,ne,te){var ue=new go.Geometry,se=.5,ge=Je*se,me=.2,xe=.5,Pe=new go.PathFigure(.1*ne,0,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Ke=new go.PathFigure(.2*ne,0,!0);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(me+ge)*ne,(xe-se)*te,.9*ne,(xe-ge)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.9*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te).close()),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.8,.75),ue}),go.Shape.defineFigureGenerator("Capacitor",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue}),go.Shape.defineFigureGenerator("Resistor",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),ue}),go.Shape.defineFigureGenerator("Inductor",function(Te,ne,te){var ue=new go.Geometry,se=Je*.1,ge=.1,me=.1,xe=.5,Pe=new go.PathFigure((me-se*.5)*ne,te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-se)*ne,te,(me-ge)*ne,0)),me=.3,Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+se)*ne,te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-se)*ne,te,(me-ge)*ne,0)),me=.5,Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+se)*ne,te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-se)*ne,te,(me-ge)*ne,0)),me=.7,Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+se)*ne,te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-se)*ne,te,(me-ge)*ne,0)),me=.9,Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se*.5)*ne,te,(me+ge)*ne,0,(me+se)*ne,te)),ue}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Te,ne,te){var ue=new go.Geometry,se=Je*.5,ge=.5,me=.5,xe=.5,Pe=new go.PathFigure((me-ge)*ne,xe*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,(me+se)*ne,(xe-ge)*te,(me+ge)*ne,(xe-se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,(me-se)*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,(me-ge+.1)*ne,xe*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge-.1)*ne,xe*te,me*ne,(xe-ge)*te,me*ne,(xe+ge)*te)),ue}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.75*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue}),go.Shape.defineFigureGenerator("Diode",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Wifi",function(Te,ne,te){var ue=new go.Geometry,se=ne,ge=te;ne=ne*.38,te=te*.6;var me=Je*.8,xe=.8,Pe=0,Ke=.5,qe=(se-ne)/2,ft=(ge-te)/2,st=new go.PathFigure(Pe*ne+qe,(Ke+xe)*te+ft,!0);ue.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe)*ne+qe,Ke*te+ft,(Pe-me)*ne+qe,(Ke+xe)*te+ft,(Pe-xe)*ne+qe,(Ke+me)*te+ft)),st.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke-xe)*te+ft,(Pe-xe)*ne+qe,(Ke-me)*te+ft,(Pe-me)*ne+qe,(Ke-xe)*te+ft)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe+me*.5)*ne+qe,Ke*te+ft,Pe*ne+qe,(Ke-xe)*te+ft,(Pe-xe+me*.5)*ne+qe,(Ke-me)*te+ft)),st.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke+xe)*te+ft,(Pe-xe+me*.5)*ne+qe,(Ke+me)*te+ft,Pe*ne+qe,(Ke+xe)*te+ft).close()),me=Je*.4,xe=.4,Pe=.2,Ke=.5;var rt=new go.PathFigure(Pe*ne+qe,(Ke+xe)*te+ft,!0);ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe)*ne+qe,Ke*te+ft,(Pe-me)*ne+qe,(Ke+xe)*te+ft,(Pe-xe)*ne+qe,(Ke+me)*te+ft)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke-xe)*te+ft,(Pe-xe)*ne+qe,(Ke-me)*te+ft,(Pe-me)*ne+qe,(Ke-xe)*te+ft)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe+me*.5)*ne+qe,Ke*te+ft,Pe*ne+qe,(Ke-xe)*te+ft,(Pe-xe+me*.5)*ne+qe,(Ke-me)*te+ft)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke+xe)*te+ft,(Pe-xe+me*.5)*ne+qe,(Ke+me)*te+ft,Pe*ne+qe,(Ke+xe)*te+ft).close()),me=Je*.2,xe=.2,Pe=.5,Ke=.5;var Tt=new go.PathFigure((Pe-xe)*ne+qe,Ke*te+ft,!0);ue.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke-xe)*te+ft,(Pe-xe)*ne+qe,(Ke-me)*te+ft,(Pe-me)*ne+qe,(Ke-xe)*te+ft)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe)*ne+qe,Ke*te+ft,(Pe+me)*ne+qe,(Ke-xe)*te+ft,(Pe+xe)*ne+qe,(Ke-me)*te+ft)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke+xe)*te+ft,(Pe+xe)*ne+qe,(Ke+me)*te+ft,(Pe+me)*ne+qe,(Ke+xe)*te+ft)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe)*ne+qe,Ke*te+ft,(Pe-me)*ne+qe,(Ke+xe)*te+ft,(Pe-xe)*ne+qe,(Ke+me)*te+ft)),me=Je*.4,xe=.4,Pe=.8,Ke=.5;var Mt=new go.PathFigure(Pe*ne+qe,(Ke-xe)*te+ft,!0);ue.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe)*ne+qe,Ke*te+ft,(Pe+me)*ne+qe,(Ke-xe)*te+ft,(Pe+xe)*ne+qe,(Ke-me)*te+ft)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke+xe)*te+ft,(Pe+xe)*ne+qe,(Ke+me)*te+ft,(Pe+me)*ne+qe,(Ke+xe)*te+ft)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe-me*.5)*ne+qe,Ke*te+ft,Pe*ne+qe,(Ke+xe)*te+ft,(Pe+xe-me*.5)*ne+qe,(Ke+me)*te+ft)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke-xe)*te+ft,(Pe+xe-me*.5)*ne+qe,(Ke-me)*te+ft,Pe*ne+qe,(Ke-xe)*te+ft).close()),me=Je*.8,xe=.8,Pe=1,Ke=.5;var yt=new go.PathFigure(Pe*ne+qe,(Ke-xe)*te+ft,!0);return ue.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe)*ne+qe,Ke*te+ft,(Pe+me)*ne+qe,(Ke-xe)*te+ft,(Pe+xe)*ne+qe,(Ke-me)*te+ft)),yt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke+xe)*te+ft,(Pe+xe)*ne+qe,(Ke+me)*te+ft,(Pe+me)*ne+qe,(Ke+xe)*te+ft)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe-me*.5)*ne+qe,Ke*te+ft,Pe*ne+qe,(Ke+xe)*te+ft,(Pe+xe-me*.5)*ne+qe,(Ke+me)*te+ft)),yt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+qe,(Ke-xe)*te+ft,(Pe+xe-me*.5)*ne+qe,(Ke-me)*te+ft,Pe*ne+qe,(Ke-xe)*te+ft).close()),ue}),go.Shape.defineFigureGenerator("Email",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.54*te)),ue}),go.Shape.defineFigureGenerator("Ethernet",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.35*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,0).close());var ge=new go.PathFigure(.1*ne,te,!0,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var me=new go.PathFigure(.6*ne,te,!0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te).close());var xe=new go.PathFigure(0,.5*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),xe.add(new go.PathSegment(go.PathSegment.Move,.75*ne,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.6*te)),xe.add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.6*te)),ue}),go.Shape.defineFigureGenerator("Power",function(Te,ne,te){var ue=new go.Geometry,se=Je*.4,ge=.4,me=.5,xe=.5,Pe=ve(),Ke=ve(),qe=ve(),ft=ve();Ut(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.5,Pe,Pe,Ke,qe,ft);var st=be(Ke.x,Ke.y),rt=new go.PathFigure(Ke.x*ne,Ke.y*te,!0);ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,qe.x*ne,qe.y*te,ft.x*ne,ft.y*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,(me-se)*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te)),Ut(me-ge,xe,me-ge,xe-se,me-se,xe-ge,me,xe-ge,.5,qe,ft,Ke,Pe,Pe),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*ne,Ke.y*te,qe.x*ne,qe.y*te,ft.x*ne,ft.y*te)),se=Je*.3,ge=.3,Ut(me-ge,xe,me-ge,xe-se,me-se,xe-ge,me,xe-ge,.5,qe,ft,Ke,Pe,Pe),rt.add(new go.PathSegment(go.PathSegment.Line,Ke.x*ne,Ke.y*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,ft.x*ne,ft.y*te,qe.x*ne,qe.y*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Ut(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.5,Pe,Pe,Ke,qe,ft),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*ne,Ke.y*te,ft.x*ne,ft.y*te,qe.x*ne,qe.y*te).close());var rt=new go.PathFigure(.45*ne,0,!0);return ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.5*te)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*ne,0).close()),tt(Pe),tt(Ke),tt(qe),tt(ft),tt(st),ue.spot1=new go.Spot(.25,.45),ue.spot2=new go.Spot(.75,.8),ue}),go.Shape.defineFigureGenerator("Fallout",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te/2,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,ne/2,te/2,ne/2,te/2));function ge(me,xe,Pe){me.add(new go.PathSegment(go.PathSegment.Move,(.3+xe)*ne,(.8+Pe)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+xe)*ne,(.5+Pe)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+xe)*ne,(.5+Pe)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+xe)*ne,(.8+Pe)*te).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),ue}),go.Shape.defineFigureGenerator("IrritationHazard",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.2*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close()),ue.spot1=new go.Spot(.3,.3),ue.spot2=new go.Spot(.7,.7),ue}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.37*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.11*te)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.04*te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.49*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.37*te)),se.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.86*te)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.91*te)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,.78*te)),se.add(new go.PathSegment(go.PathSegment.Line,.44*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.56*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*te).close()),ue}),go.Shape.defineFigureGenerator("FireHazard",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*ne,0,-.25*ne,.63*te,.45*ne,.44*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*ne,.42*te,.48*ne,.17*te,.54*ne,.35*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*ne,.18*te,.59*ne,.29*te,.58*ne,.28*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,.6*te,.8*ne,.34*te,.88*ne,.43*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*ne,.31*te,.87*ne,.48*te,.88*ne,.43*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,1.17*ne,.76*te,.82*ne,.8*te).close()),ue.spot1=new go.Spot(.07,.445),ue.spot2=new go.Spot(.884,.958),ue}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Te,ne,te){var ue=new go.Geometry,se=.5,ge=0,me=0,xe=se*Je,Pe=.4*Math.SQRT2/2+.5,Ke=.5-.5*Math.SQRT2/2,qe=1,ft=.5,st=.5,rt=0,Tt=new go.PathFigure(Pe*ne,(1-Ke)*te,!1);return ue.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,ft*te,qe*ne,.7*te,qe*ne,ft*te)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(st+ge)*ne,(rt+ge)*te,(.5+se+ge)*ne,(.5-xe+ge)*te,(.5+xe+ge)*ne,(.5-se+ge)*te)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*ne,(.5+me)*te,(.5-xe+ge)*ne,(.5-se+me)*te,(.5-se+ge)*ne,(.5-xe+me)*te)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*ne,.9*te,(.5-se+ge)*ne,(.5+xe+me)*te,(.5-xe+ge)*ne,.9*te)),Tt.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*ne,.8*te)),Tt.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*ne,.9*te)),Tt.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*ne,.95*te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Move,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var ge=new go.PathFigure(ne,te,!1);ue.add(ge);var me=new go.PathFigure(0,.5*te,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.2*ne,.35*te,.3*ne,.35*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.7*ne,.65*te,.8*ne,.65*te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close()),ue}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.2*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te).close());var se=new go.PathFigure(0,.2*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),ue}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.7*ne,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,0,.6*ne,.5*te,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,te,.4*ne,.5*te,ne,.5*te).close());var ge=new go.PathFigure(.45*ne,.73*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.73*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*ne,.27*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*ne,.27*te)),ue}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var ge=new go.PathFigure(.335*ne,(1-.555)*te,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.68*te,(1-.12)*ne,.46*te,(1-.02)*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*ne,(1-.555)*te,.02*ne,.54*te,.12*ne,.46*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*ne,(1-.595)*te));var me=.5-.285,xe=.5,Pe=me,Ke=Math.PI/4,qe=4*(1-Math.cos(Ke))/(3*Math.sin(Ke)),ft=qe*.5,st=me,rt=me,Tt=qe*st,Mt=qe*rt;ge.add(new go.PathSegment(go.PathSegment.Bezier,(xe-st)*ne,Pe*te,(xe-(Tt+st)/2)*ne,(Pe+(rt+Mt)/2)*te,(xe-st)*ne,(Pe+Mt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,xe*ne,(Pe-rt)*te,(xe-st)*ne,(Pe-Mt)*te,(xe-Tt)*ne,(Pe-rt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(xe+st)*ne,Pe*te,(xe+Tt)*ne,(Pe-rt)*te,(xe+st)*ne,(Pe-Mt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ne,(1-.595)*te,(xe+st)*ne,(Pe+Mt)*te,(xe+(Tt+st)/2)*ne,(Pe+(rt+Mt)/2)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ne,(1-.595)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te));var yt=new go.PathFigure(.2*ne,te,!1);ue.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.8*te));var Dt=new go.PathFigure(.8*ne,te,!1);return ue.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var ge=new go.PathFigure(.2*ne,.2*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventError",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.5*te).close()),ue}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var ge=new go.PathFigure(ne,te,!1);ue.add(ge);var me=new go.PathFigure(.1*ne,te,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),ue}),go.Shape.defineFigureGenerator("Caution",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.05*ne,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.8*te,0,te,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.1*te,.5*ne,0,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,ne,te,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,te));var ge=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*ne,.875*te)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ne,.875*te,ge*ne,ge*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.325*te,.575*ne,.725*te,.625*ne,.375*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.75*te,.375*ne,.375*te,.425*ne,.725*te)),ue}),go.Shape.defineFigureGenerator("Recycle",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.45*ne,.95*te,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*ne,.85*te,.17*ne,.95*te,.15*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.235*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.625*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.575*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ne,.95*te,0,.675*te,0,.7*te)),se.add(new go.PathSegment(go.PathSegment.Move,.45*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.775*te)),se.add(new go.PathSegment(go.PathSegment.Line,.22*ne,.775*te));var ge=new go.PathFigure(.475*ne,.2*te,!1);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.175*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.05*te,.35*ne,0,.375*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.375*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.475*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.315*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.32*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,0,.65*ne,.05*te,.625*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*ne,.0105*te));var me=new go.PathFigure(.675*ne,.575*te,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*ne,.525*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*ne,.95*te,ne,.8*te,ne,.85*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.95*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.85*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.725*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Move,.675*ne,.575*te)),me.add(new go.PathSegment(go.PathSegment.Line,.775*ne,.775*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Te,ne,te){var ue=new go.Geometry,se=.5,ge=Je*.5,me=new go.PathFigure(ne,se*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,te,ne,(se+ge)*te,(se+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,se*te,(se-ge)*ne,te,0,(se+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,0,0,(se-ge)*te,(se-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,se*te,(se+ge)*ne,0,ne,(se-ge)*te));var xe=new go.PathFigure(se*ne,0,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,se*ne,.15*te)),xe.add(new go.PathSegment(go.PathSegment.Move,se*ne,te)),xe.add(new go.PathSegment(go.PathSegment.Line,se*ne,.85*te)),xe.add(new go.PathSegment(go.PathSegment.Move,0,se*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.15*ne,se*te)),xe.add(new go.PathSegment(go.PathSegment.Move,ne,se*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,se*te)),xe.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.58*ne,.1*te)),xe.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.78*ne,.54*te)),ue}),go.Shape.defineFigureGenerator("Package",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.15*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,.15*te,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.15*te).close()),ue.spot1=new go.Spot(0,.1),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Class",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var me=new go.PathFigure(0,.5*te,!1);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close()),ue}),go.Shape.defineFigureGenerator("Component",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close());var ge=new go.PathFigure(0,.2*te,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close());var me=new go.PathFigure(0,.6*te,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*te).close()),ue}),go.Shape.defineFigureGenerator("Boat Shipment",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.15*ne,.6*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te));var ge=new go.PathFigure(.15*ne,.6*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),ue}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),ue}),go.Shape.defineFigureGenerator("Workcell",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("Supermarket",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.66*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.66*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),ue}),go.Shape.defineFigureGenerator("TruckShipment",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(ne,.8*te,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te).close());var me=.1,xe=Je*.1,Pe=.2,Ke=.9,qe=new go.PathFigure((Pe-me)*ne,Ke*te,!0);ue.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-me)*te,(Pe-me)*ne,(Ke-xe)*te,(Pe-xe)*ne,(Ke-me)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+me)*ne,Ke*te,(Pe+xe)*ne,(Ke-me)*te,(Pe+me)*ne,(Ke-xe)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke+me)*te,(Pe+me)*ne,(Ke+xe)*te,(Pe+xe)*ne,(Ke+me)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-me)*ne,Ke*te,(Pe-xe)*ne,(Ke+me)*te,(Pe-me)*ne,(Ke+xe)*te).close()),me=.1,xe=Je*.1,Pe=.8,Ke=.9;var ft=new go.PathFigure((Pe-me)*ne,Ke*te,!0);return ue.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-me)*te,(Pe-me)*ne,(Ke-xe)*te,(Pe-xe)*ne,(Ke-me)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+me)*ne,Ke*te,(Pe+xe)*ne,(Ke-me)*te,(Pe+me)*ne,(Ke-xe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke+me)*te,(Pe+me)*ne,(Ke+xe)*te,(Pe+xe)*ne,(Ke+me)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-me)*ne,Ke*te,(Pe-xe)*ne,(Ke+me)*te,(Pe-me)*ne,(Ke+xe)*te).close()),ue}),go.Shape.defineFigureGenerator("KanbanPost",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.2*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),ue}),go.Shape.defineFigureGenerator("Forklift",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*te,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var me=new go.PathFigure(.5*ne,.8*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.1*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.1*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te));var xe=new go.PathFigure(.5*ne,.7*te,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te));var Pe=.1,Ke=Je*.1,qe=.1,ft=.9,st=new go.PathFigure((qe-Pe)*ne,ft*te,!0);ue.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(ft-Pe)*te,(qe-Pe)*ne,(ft-Ke)*te,(qe-Ke)*ne,(ft-Pe)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(qe+Pe)*ne,ft*te,(qe+Ke)*ne,(ft-Pe)*te,(qe+Pe)*ne,(ft-Ke)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(ft+Pe)*te,(qe+Pe)*ne,(ft+Ke)*te,(qe+Ke)*ne,(ft+Pe)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(qe-Pe)*ne,ft*te,(qe-Ke)*ne,(ft+Pe)*te,(qe-Pe)*ne,(ft+Ke)*te)),Pe=.1,Ke=Je*.1,qe=.4,ft=.9;var rt=new go.PathFigure((qe-Pe)*ne,ft*te,!0);return ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(ft-Pe)*te,(qe-Pe)*ne,(ft-Ke)*te,(qe-Ke)*ne,(ft-Pe)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(qe+Pe)*ne,ft*te,(qe+Ke)*ne,(ft-Pe)*te,(qe+Pe)*ne,(ft-Ke)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(ft+Pe)*te,(qe+Pe)*ne,(ft+Ke)*te,(qe+Ke)*ne,(ft+Pe)*te)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(qe-Pe)*ne,ft*te,(qe-Ke)*ne,(ft+Pe)*te,(qe-Pe)*ne,(ft+Ke)*te)),ue}),go.Shape.defineFigureGenerator("RailShipment",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,.4*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.4*te).close());var ge=new go.PathFigure(.45*ne,.7*te,!1);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te));var me=new go.PathFigure(.55*ne,.4*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.4*te).close());var qe=.05,ft=Je*.05,st=.175,rt=.95,xe=new go.PathFigure((st-qe)*ne,rt*te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,st*ne,(rt-qe)*te,(st-qe)*ne,(rt-ft)*te,(st-ft)*ne,(rt-qe)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(st+qe)*ne,rt*te,(st+ft)*ne,(rt-qe)*te,(st+qe)*ne,(rt-ft)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,st*ne,(rt+qe)*te,(st+qe)*ne,(rt+ft)*te,(st+ft)*ne,(rt+qe)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(st-qe)*ne,rt*te,(st-ft)*ne,(rt+qe)*te,(st-qe)*ne,(rt+ft)*te));var qe=.05,ft=Je*.05,st=.375,rt=.95,Pe=new go.PathFigure((st-qe)*ne,rt*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,st*ne,(rt-qe)*te,(st-qe)*ne,(rt-ft)*te,(st-ft)*ne,(rt-qe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(st+qe)*ne,rt*te,(st+ft)*ne,(rt-qe)*te,(st+qe)*ne,(rt-ft)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,st*ne,(rt+qe)*te,(st+qe)*ne,(rt+ft)*te,(st+ft)*ne,(rt+qe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(st-qe)*ne,rt*te,(st-ft)*ne,(rt+qe)*te,(st-qe)*ne,(rt+ft)*te));var qe=.05,ft=Je*.05,st=.625,rt=.95,Ke=new go.PathFigure((st-qe)*ne,rt*te,!0);ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,st*ne,(rt-qe)*te,(st-qe)*ne,(rt-ft)*te,(st-ft)*ne,(rt-qe)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(st+qe)*ne,rt*te,(st+ft)*ne,(rt-qe)*te,(st+qe)*ne,(rt-ft)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,st*ne,(rt+qe)*te,(st+qe)*ne,(rt+ft)*te,(st+ft)*ne,(rt+qe)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(st-qe)*ne,rt*te,(st-ft)*ne,(rt+qe)*te,(st-qe)*ne,(rt+ft)*te));var qe=.05,ft=Je*.05,st=.825,rt=.95,Tt=new go.PathFigure((st-qe)*ne,rt*te,!0);ue.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,st*ne,(rt-qe)*te,(st-qe)*ne,(rt-ft)*te,(st-ft)*ne,(rt-qe)*te)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(st+qe)*ne,rt*te,(st+ft)*ne,(rt-qe)*te,(st+qe)*ne,(rt-ft)*te)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,st*ne,(rt+qe)*te,(st+qe)*ne,(rt+ft)*te,(st+ft)*ne,(rt+qe)*te)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(st-qe)*ne,rt*te,(st-ft)*ne,(rt+qe)*te,(st-qe)*ne,(rt+ft)*te).close());var Mt=new go.PathFigure(0,te,!1);return ue.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),ue}),go.Shape.defineFigureGenerator("Warehouse",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var me=new go.PathFigure(.15*ne,te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te).close());var xe=.05,Pe=Je*.05,Ke=.35,qe=.775,ft=new go.PathFigure((Ke-xe)*ne,qe*te,!0);return ue.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ne,(qe-xe)*te,(Ke-xe)*ne,(qe-Pe)*te,(Ke-Pe)*ne,(qe-xe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+xe)*ne,qe*te,(Ke+Pe)*ne,(qe-xe)*te,(Ke+xe)*ne,(qe-Pe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ne,(qe+xe)*te,(Ke+xe)*ne,(qe+Pe)*te,(Ke+Pe)*ne,(qe+xe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-xe)*ne,qe*te,(Ke-Pe)*ne,(qe+xe)*te,(Ke-xe)*ne,(qe+Pe)*te).close()),ue}),go.Shape.defineFigureGenerator("ControlCenter",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te).close()),ue}),go.Shape.defineFigureGenerator("Bluetooth",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.75*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ue}),go.Shape.defineFigureGenerator("Globe",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.75*ne,0,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.75*te,.75*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.25*ne,te,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,.25*te,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,.15*ne,.25*te,.15*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.85*ne,.75*te,.85*ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.15*te,.35*ne,.3*te,.65*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.85*te,.35*ne,.7*te,.65*ne,.7*te)),ue}),go.Shape.defineFigureGenerator("Wave",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.25*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.25*te,.1*ne,0,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.25*te,.425*ne,.5*te,.575*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.25*te,.8*ne,0,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.75*te,.1*ne,.5*te,.2*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.75*te,.425*ne,te,.575*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.75*te,.8*ne,.5*te,.9*ne,.5*te)),ue}),go.Shape.defineFigureGenerator("Operator",function(Te,ne,te){var ue=new go.Geometry,se=.3,ge=Je*.3,me=.5,xe=.7,Pe=new go.PathFigure((me-se)*ne,xe*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*ne,xe*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*ne,xe*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te));var Ke=new go.PathFigure(0,.7*te,!1);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ne,.7*te,0,0,ne,0)),ue}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.65*ne,.3*te,.65*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.35*ne,.5*te,.35*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.3*ne,.6*te,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.2*ne,te,.35*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,.7*ne,.6*te,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.8*ne,te,.65*ne,.95*te)),ue}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,0,.075*te,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,0,te,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.4*te,.8*ne,te,.85*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ue}),go.Shape.defineFigureGenerator("Battery",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.1*te));var ge=new go.PathFigure(0,.6*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),ue}),go.Shape.defineFigureGenerator("Delete",function(Te,ne,te){var ue=new go.Geometry,se=.5,ge=Je*.5,me=.5,xe=.5,Pe=new go.PathFigure((me-se)*ne,xe*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*ne,xe*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*ne,xe*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te));var Ke=new go.PathFigure(.15*ne,.5*te,!1);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.5*te)),ue}),go.Shape.defineFigureGenerator("Flag",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.1*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.1*te,.15*ne,0,.35*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,.65*ne,.2*te,.85*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.85*ne,.6*te,.65*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.35*ne,.4*te,.15*ne,.4*te).close()),ue}),go.Shape.defineFigureGenerator("Help",function(Te,ne,te){var ue=new go.Geometry,se=.5,ge=Je*.5,me=.5,xe=.5,Pe=new go.PathFigure((me-se)*ne,xe*te,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*ne,xe*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*ne,xe*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te).close()),se=.05,ge=Je*.05,me=.5,xe=.8;var Ke=new go.PathFigure((me-se)*ne,xe*te,!1);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*ne,xe*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*ne,xe*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te).close()),Ke.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),Ke.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,.75*ne,.475*te,.75*ne,.225*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.35*te,.4*ne,.2*te,.3*ne,.25*te)),ue}),go.Shape.defineFigureGenerator("Location",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.975*ne,.025*te,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ne,.5*te,.5*ne,0,.025*ne,.025*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ne,.3*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Lock",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.3*te)),ue}),go.Shape.defineFigureGenerator("Unlocked",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.35*te)),ue}),go.Shape.defineFigureGenerator("Gear",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(.9375*ne,.56246875*te,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ne,.3316875*te,.79840625*ne,.39915625*te,.7834375*ne,.3635*te)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ne,.23796875*te)).add(new go.PathSegment(go.PathSegment.Line,.76825*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ne,.24184375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ne,.19378125*te,.64228125*ne,.2188125*te,.603875*ne,.2021875*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.19378125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ne,.239375*te,.39759375*ne,.20190625*te,.36053125*ne,.2176875*te)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ne,.2379375*te)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ne,.3278125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ne,.4375*te,.21765625*ne,.36059375*te,.201875*ne,.397625*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ne,.67596875*te,.20221875*ne,.603875*te,.21884375*ne,.64228125*te)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.238*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ne,.76296875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ne,.80621875*te,.36353125*ne,.78340625*te,.3991875*ne,.79840625*te)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.80621875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ne,.760625*te,.602375*ne,.79809375*te,.63946875*ne,.78234375*te)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ne,.67221875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ne,.56246875*te,.78234375*ne,.63940625*te,.798125*ne,.602375*te)).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.56246875*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ne,.5*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Hand",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.3*te,0,.375*te,.05*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.075*te,.3*ne,.225*te,.4*ne,.175*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*ne,.075*te,.46*ne,.05*te,.525*ne,.05*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.4*te,.525*ne,.275*te,.475*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.55*te,ne,.4*te,ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.7*te,.675*ne,.55*te,.675*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,.85*te,.65*ne,.7*te,.65*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*ne,te,.61*ne,.85*te,.61*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,.435*ne,te,0,te).close()),ue}),go.Shape.defineFigureGenerator("Map",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.2*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),ue}),go.Shape.defineFigureGenerator("Eject",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.7).close());var ge=new go.PathFigure(0,te*.6,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close()),ue}),go.Shape.defineFigureGenerator("Pencil",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close()))}),go.Shape.defineFigureGenerator("Building",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*1,te*1,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.85).close());var ge=new go.PathFigure(.126*ne,.85*te,!1);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.85*te).close());var me=new go.PathFigure(.402*ne,.85*te,!1);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*ne,.45*te)),me.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.45*te)),me.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.85*te).close());var xe=new go.PathFigure(.678*ne,.85*te,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.678*ne,.45*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.45*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.85*te).close());var Pe=new go.PathFigure(.5*ne,.1*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ne,.3*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ne,.3*te).close()),ue}),go.Shape.defineFigureGenerator("Staircase",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te*1,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.95).close()),ue}),go.Shape.defineFigureGenerator("5Bars",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te*1,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*(1-.184)).close());var ge=new go.PathFigure(ne*.204,te,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.204,te*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*1).close());var me=new go.PathFigure(ne*.408,te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.408,te*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*1).close());var xe=new go.PathFigure(ne*.612,te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.612,te*(1-.184*3))),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*(1-.184*4))),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*1).close());var Pe=new go.PathFigure(ne*.816,te,!0);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*.816,te*(1-.184*4))),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-.184*5))),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1).close()),ue}),go.Shape.defineFigureGenerator("PC",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,0).close());var ge=new go.PathFigure(ne*.055,.07*te,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.1).close());var me=new go.PathFigure(ne*.055,.13*te,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.13)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.16)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.16).close());var xe=new go.PathFigure(ne*.055,.18*te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.18)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.21)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.21).close());var Pe=new go.PathFigure(ne*1,0,!0);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*.4,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.65)),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.65).close()),ue}),go.Shape.defineFigureGenerator("Plane",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.55*ne,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.475*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*ne,.525*te,0,.4*te,.225*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.475*te)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.2*te,.975*ne,0,ne,.08*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te).close()),ue}),go.Shape.defineFigureGenerator("Key",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*1,te*.5,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,.575*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.6*te).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*ne,.425*te)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ne,.5*te,.075*ne,.075*te).close()),ue}),go.Shape.defineFigureGenerator("FilmTape",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*0,ne*.3,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var ge=new go.PathFigure(0,0,!1);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*1,ne*.3,ne*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var me=new go.PathFigure(ne*.11,te*.1,!1);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.1)),me.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.8)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.11,te*.8).close());var xe=new go.PathFigure(ne*(.11+.24133333*1+.028*1),te*.1,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.1)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.8)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*1),te*.8).close());var Pe=new go.PathFigure(ne*(.11+.24133333*2+.028*2),te*.1,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.1)),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.8)),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*2),te*.8).close()),ue}),go.Shape.defineFigureGenerator("FloppyDisk",function(Te,ne,te){var ue=new go.Geometry,se=8,ge=se*Je,me=new go.PathFigure(se,0,!1);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.14)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,te,ne,te-ge,ne-ge,te)),me.add(new go.PathSegment(go.PathSegment.Line,se,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-se,ge,te,0,te-ge)),me.add(new go.PathSegment(go.PathSegment.Line,0,se)),me.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var xe=new go.PathFigure(ne*.83,0,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.3)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.3)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*0).close());var Pe=new go.PathFigure(ne*.83,te*1,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.5)),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.5)),Pe.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*1).close());var Ke=new go.PathFigure(ne*.78,te*.05,!1);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.05)),Ke.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.25)),Ke.add(new go.PathSegment(go.PathSegment.Line,ne*.78,te*.25).close()),ue}),go.Shape.defineFigureGenerator("SpeechBubble",function(Te,ne,te){var ue=Te?Te.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=15),ue=Math.min(ue,ne/3),ue=Math.min(ue,te/3);var se=ue*Je,ge=te*.8,me=new go.Geometry,xe=new go.PathFigure(ue,0,!0);return me.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,ne-se,0,ne,se)),xe.add(new go.PathSegment(go.PathSegment.Line,ne,ge-ue)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,ge,ne,ge-se,ne-se,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te)),xe.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ge)),xe.add(new go.PathSegment(go.PathSegment.Line,ue,ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-ue,se,ge,0,ge-se)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ue)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,se,se,0).close()),se>1?(me.spot1=new go.Spot(0,0,se,se),me.spot2=new go.Spot(1,.8,-se,-se)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*.45,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.45).close());var ge=new go.PathFigure(ne*1,te*.55,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.55).close()),ue}),go.Shape.defineFigureGenerator("Windows",function(Te,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ne,.4*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.1*te).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*.1,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.9).close());var ge=new go.PathFigure(ne*.1,te*.2,!0);ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.22,te*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.25).close());var me=new go.PathFigure(ne*.28,te*.37,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.37)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.41)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.28,te*.41).close()),ue}),go.Shape.defineFigureGenerator("Beaker",function(Te,ne,te){var ue=new go.Geometry,se=15,ge=se*Je,me=new go.PathFigure(ne*.62,te*.475,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,te,ne,te-ge,ne-ge,te)),me.add(new go.PathSegment(go.PathSegment.Line,se,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-se,ge,te,0,te-ge)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.475)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.03)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.62,te*.03).close()),ge>1?(ue.spot1=new go.Spot(0,0,ge,ge),ue.spot2=new go.Spot(1,1,-ge,-ge)):(ue.spot1=go.Spot.TopLeft,ue.spot2=go.Spot.BottomRight),ue}),go.Shape.defineFigureGenerator("Download",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);ue.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var me=new go.PathFigure(ne*.4,te*0,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.66)),me.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.26),te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*0).close()),ue}),go.Shape.defineFigureGenerator("Bin",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);ue.add(se);var ge=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close()),ue}),go.Shape.defineFigureGenerator("Upload",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);ue.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var me=new go.PathFigure(ne*.5,te*0,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.63)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.63)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.74,te*.25).close()),ue}),go.Shape.defineFigureGenerator("EmptyDrink",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*.15,te*0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close()),ue}),go.Shape.defineFigureGenerator("Drink",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*.15,te*0,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close());var ge=new go.PathFigure(ne*.235,te*.28,!0);return ue.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.765,te*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.655,te*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.345,te*.97).close()),ue}),go.Shape.defineFigureGenerator("4Arrows",function(Te,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*.5,te*0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.25).close()),ue}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Rn={},ti="5.0",be={},ve=null,tt=!1,Pt=!1,Ut=null,Bt=!1,Re=null,Je=null,pt=0;pt<arguments.length;pt++){var wt=arguments[pt];if(wt!==null)switch(typeof wt){case"number":ti=wt.toFixed(1);break;case"string":wt.match(new RegExp("^[0-9]\\.[0-9]+$"))?ti=wt:Ut=wt;break;case"object":typeof wt.is3D!="undefined"?ve=wt:be=wt;break;case"boolean":tt=wt,Pt=!0;break}}ve===null&&(ve={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},be.material_id!==void 0&&!Pt&&(tt=!0)),Ut!==null&&be.id===void 0&&(be.id=Ut);var ht="",Vt="",ct=!1,He=null,Te=null,ne=null,te=!1,ue=null,se=null,ge=null,me=null,xe=null;be.height!==void 0&&(be.height=Math.round(be.height)),be.width!==void 0&&(be.width=Math.round(be.width));var Pe=function(Xt){return parseFloat(Xt)>4?parseFloat(Xt):5};Rn.setHTML5Codebase=function(Xt,ai){Je=Xt,Ne(Xt,ai)},Rn.setJavaCodebase=Rn.setJavaCodebaseVersion=Rn.isCompiledInstalled=Rn.setPreCompiledScriptPath=Rn.setPreCompiledResourcePath=function(){},Rn.setHTML5CodebaseVersion=function(Xt,ai){var xn=parseFloat(Xt);if(xn!==NaN&&xn<5){console.log("The GeoGebra HTML5 codebase version "+xn+" is deprecated. Using version latest instead.");return}Re=Xt,Ge(Xt,ai)},Rn.getHTML5CodebaseVersion=function(){return Te},Rn.getParameters=function(){return be},Rn.setFontsCSSURL=function(Xt){me=Xt},Rn.setGiacJSURL=function(Xt){},Rn.setJNLPFile=function(Xt){ht=Xt},Rn.setJNLPBaseDir=function(Xt){},Rn.inject=function(){function Xt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ai="auto",xn=be.id,gi,Zt=!1,Ct=0;Ct<arguments.length;Ct++){var qt=arguments[Ct];typeof qt=="string"?(qt=qt.toLowerCase(),qt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ai=qt:xn=arguments[Ct]):typeof qt=="boolean"?Zt=qt:qt instanceof HTMLElement&&(gi=qt)}hi();function hi(){if(!Bt){setTimeout(hi,200);return}ai=vn(ai);var Kt=gi||document.getElementById(xn);if(!Kt){console.log("possibly bug on ajax loading? ");return}if(Rn.removeExistingApplet(Kt,!1),be.width===void 0&&Kt.clientWidth&&(be.width=Kt.clientWidth),be.height===void 0&&Kt.clientHeight&&(be.height=Kt.clientHeight),!(be.width&&be.height)&&ai==="html5"&&(delete be.width,delete be.height),He=ai,ai==="screenshot")Dt(Kt,be);else{var Xe=!1;be.hasOwnProperty("playButton")&&be.playButton||be.hasOwnProperty("clickToLoad")&&be.clickToLoad?Xe=!0:be.hasOwnProperty("playButtonAutoDecide")&&be.playButtonAutoDecide&&(Xe=(!Ke()||Xt())&&qe()),Xe?(He="screenshot",Bn(Kt,be,Zt,ai)):yt(Kt,be,Zt)}}};function Ke(){try{return window.self!==window.top}catch(Xt){return!0}}function qe(){return be.hasOwnProperty("screenshotGenerator")&&be.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Rn.getViews=function(){return ve},Rn.isJavaInstalled=function(){return!1};var ft=function(Xt){var ai=function(Ct){var qt=JSON.parse(Ct),hi=function(Le){return Le.type=="G"||Le.type=="E"},Kt=qt.elements?qt.elements.filter(hi)[0]:qt;if(!Kt||!Kt.url){xn();return}be.fileName=Kt.url,st(Kt.settings||{}),ve.is3D=!0;var Xe="https://www.geogebra.org/images/";Rn.setPreviewImage(ue||Kt.previewUrl,Xe+"GeoGebra_loading.png",Xe+"applet_play.png"),Xt()},xn=function(){be.onError&&be.onError(),Nn("Error: Fetching material (id "+be.material_id+") failed.",be)},gi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Zt="/materials/"+be.material_id+"?scope=basic";rt("https://"+gi+"/api/proxy.php?path="+encodeURIComponent(Zt),ai,xn)};function st(Xt){var ai=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(xn){Xt[xn]=!!Xt[xn]}),ai.forEach(function(xn){be[xn]===void 0&&Xt[xn]!==void 0&&(be[xn]=Xt[xn])}),be.showToolBarHelp===void 0&&(be.showToolBarHelp=be.showToolBar)}function rt(Xt,ai,xn){var gi=new XMLHttpRequest;gi.open("GET",Xt),gi.onload=function(){ai(gi.responseText)},gi.onerror=xn,gi.send()}Rn.isHTML5Installed=function(){return!0},Rn.getLoadedAppletType=function(){return He},Rn.setPreviewImage=function(Xt,ai,xn){ue=Xt,se=ai,ge=xn},Rn.removeExistingApplet=function(Xt,ai){var xn;typeof Xt=="string"&&(Xt=document.getElementById(Xt)),He=null;var gi=null;for(xn=0;xn<Xt.childNodes.length;xn++){var Zt=Xt.childNodes[xn],Ct=Zt.className;Ct==="applet_screenshot"?ai?(Zt.style.display="block",He="screenshot"):Zt.style.display="none":Ct!=="applet_scaler prerender"&&(Xt.removeChild(Zt),gi=Ct&&Ct.indexOf("appletParameters")!=-1?Zt.id:null,xn--)}var qt=be.id!==void 0?be.id:gi,hi=window[qt];hi&&typeof hi.getBase64=="function"&&(hi.remove(),window[qt]=null)},Rn.refreshHitPoints=function(){if(Pe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Xt=Rn.getAppletObject();return Xt&&typeof Xt.recalculateEnvironments=="function"?(Xt.recalculateEnvironments(),!0):!1},Rn.startAnimation=function(){var Xt=Rn.getAppletObject();return Xt&&typeof Xt.startAnimation=="function"?(Xt.startAnimation(),!0):!1},Rn.stopAnimation=function(){var Xt=Rn.getAppletObject();return Xt&&typeof Xt.stopAnimation=="function"?(Xt.stopAnimation(),!0):!1},Rn.getAppletObject=function(){var Xt=be.id!==void 0?be.id:"ggbApplet";return window[Xt]},Rn.resize=function(){};var Tt=function(Xt,ai,xn){var gi=document.createElement("param");gi.setAttribute("name",ai),gi.setAttribute("value",xn),Xt.appendChild(gi)},Mt=function(Xt){return Xt&&Xt!=="false"},yt=function(Xt,ai,xn){Pe(Te)<=4.2&&(xn=!0);var gi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Te||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(gi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Zt=document.createElement("div");Zt.classList.add("appletParameters","notranslate");var Ct=ai.width,qt=ai.height;if(ai.disableAutoScale=ai.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ai.disableAutoScale,ai.width!==void 0)if(Pe(Te)<=4.4)Mt(ai.showToolBar)&&(ai.height-=7),Mt(ai.showAlgebraInput)&&(ai.height-=37),ai.width<605&&Mt(ai.showToolBar)&&(ai.width=605,Ct=605);else{var hi=100;(Mt(ai.showToolBar)||Mt(ai.showMenuBar))&&(ai.hasOwnProperty("customToolBar")&&(ai.customToolbar=ai.customToolBar),hi=Mt(ai.showMenuBar)?245:155),Ct<hi&&(ai.width=hi,Ct=hi)}Zt.style.border="none",Zt.style.display="inline-block";for(var Kt in ai)ai.hasOwnProperty(Kt)&&Kt!=="appletOnLoad"&&Zt.setAttribute("data-param-"+Kt,ai[Kt]);me&&Zt.setAttribute("data-param-fontscssurl",me),Rn.resize=function(){GGBAppletUtils.responsiveResize(Xt,ai)},window.addEventListener("resize",function(mn){Rn.resize()});var Xe=typeof ai.appletOnLoad=="function"?ai.appletOnLoad:function(){};if(!xn&&ai.width!==void 0){ai.hasOwnProperty("showSplash")||Zt.setAttribute("data-param-showSplash","false");var Le=Xt.querySelector(".applet_scaler.prerender"),Me=Le!==null;if(Me)var We=Le.querySelector(".ggb_preview");else{var We=Qt(Ct,qt,ai.borderColor,!1);Le=document.createElement("div"),Le.className="applet_scaler",Le.style.position="relative",Le.style.display="block",Le.style.width=Ct+"px",Le.style.height=qt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Le,"66%"),Pe(Te)>=5?(ai.appletOnLoad=function(mn){var bi=Xt.querySelector(".ggb_preview");bi&&bi.parentNode.removeChild(bi),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Le),window.GGBT_wsf_view&&$(window).trigger("resize"),Xe(mn)},Me||Le.appendChild(We)):Zt.appendChild(We),Le.appendChild(Zt),Me||Xt.appendChild(Le),setTimeout(function(){Rn.resize()},1)}else{var $e=document.createElement("div");$e.className="applet_scaler",$e.style.position="relative",$e.style.display="block",$e.appendChild(Zt),Xt.appendChild($e),ai.appletOnLoad=function(mn){Rn.resize(),Xe(mn)}}function Be(mn,bi){bi&&typeof bi.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mn,bi.appletOnLoad):renderGGBElement(mn),Nn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",bi)}function ut(mn,bi){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mn,params:bi}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(_i){Be(_i.article,_i.params)}),html5AppletsToProcess=null)},Pe(Te)<5&&(mn.className+=" geogebraweb")):Be(mn,bi)}if(gi){scriptLoadStarted=!0;for(var Vn=0;Vn<Zt.childNodes.length;Vn++){var In=Zt.childNodes[Vn].tagName;In==="TABLE"&&(Zt.removeChild(Zt.childNodes[Vn]),Vn--)}if(ggbHTML5LoadedScript!==null){var Cn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Cn!=null&&Cn.parentNode.removeChild(Cn)}var Pn=document.createElement("script"),oi=function(){ut(Zt,ai)};Pn.src=Vt+ne,ggbHTML5LoadedCodebaseIsWebSimple=te,ggbHTML5LoadedCodebaseVersion=Te,ggbHTML5LoadedScript=Pn.src,Nn("GeoGebra HTML5 codebase loaded: '"+Vt+"'.",ai),!Je&&(!Re||Re=="5.0")?(te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),oi()):Vt.requirejs?__webpack_require__.e(12).then(function(){var mn=[__webpack_require__(12)];oi.apply(null,mn)}.bind(this)).catch(__webpack_require__.oe):(Pn.onload=oi,Xt.appendChild(Pn))}else ut(Zt,ai);ai.height=qt,ai.width=Ct},Dt=function(Xt,ai,xn){var gi=Qt(ai.width,ai.height,ai.borderColor,xn),Zt=document.createElement("div");Zt.style.position="relative",Zt.style.display="block",Zt.style.width=ai.width+"px",Zt.style.height=ai.height+"px",Zt.className="applet_screenshot applet_scaler"+(xn?" applet_screenshot_play":""),Zt.appendChild(gi);var Ct=GGBAppletUtils.getScale(ai,Xt,xn);xn?(Xt.appendChild(On()),window.GGBT_wsf_view||(Xt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Zt,"66%"),Xt.appendChild(Zt),Ct!==1&&!isNaN(Ct)&&(GGBAppletUtils.scaleElement(Zt,Ct),Zt.style.width=ai.width+"px",Zt.style.height=ai.height+"px",Zt.parentNode.style.width=ai.width*Ct+"px",Zt.parentNode.style.height=ai.height*Ct+"px"),Rn.resize=function(){Nt(Xt,gi,Zt,xn)},window.addEventListener("resize",function(qt){Rn.resize()}),Rn.resize()};function Nt(Xt,ai,xn,gi){if(Xt.contains(ai)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Xt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Xt)}var Zt=GGBAppletUtils.getScale(be,Xt,gi);xn.parentNode!==null&&(!isNaN(Zt)&&Zt!==1?(GGBAppletUtils.scaleElement(xn,Zt),xn.parentNode.style.width=be.width*Zt+"px",xn.parentNode.style.height=be.height*Zt+"px"):(GGBAppletUtils.scaleElement(xn,1),xn.parentNode.style.width=be.width+"px",xn.parentNode.style.height=be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Xt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Rn.onExitFullscreen=function(Xt,ai){ai.appendChild(Xt)};var Bn=function(Xt,ai,xn,gi){Dt(Xt,ai,!0);for(var Zt=function(){var hi=[];for(qt=0;qt<Xt.childNodes.length;qt++)hi.push(Xt.childNodes[qt]);if(window.GGBT_wsf_view){var Kt=window.GGBT_wsf_view.renderFullScreen(Xt,ai.id),Xe=document.getElementById("fullscreencontainer"),Le=jQuery(Xt).find(".fullscreencontent");Le.length>0?(Kt.remove(),Le.attr("id","fullscreencontent").show(),jQuery(Xe).append(Le),window.dispatchEvent(new Event("resize"))):yt(Kt,ai,!1),window.GGBT_wsf_view.launchFullScreen(Xe)}else He=gi,yt(Xt,ai,!1);if(!window.GGBT_wsf_view)for(qt=0;qt<hi.length;qt++)Xt.removeChild(hi[qt])},Ct=Xt.getElementsByClassName("ggb_preview_play"),qt=0;qt<Ct.length;qt++)Ct[qt].addEventListener("click",Zt,!1),Ct[qt].addEventListener("ontouchstart",Zt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Xt),qe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},On=function(){var Xt=document.createElement("div");if(Xt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ai='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',xn=document.createElement("style");xn.styleSheet?xn.styleSheet.cssText=ai:xn.appendChild(document.createTextNode(ai)),document.getElementsByTagName("head")[0].appendChild(xn)}return Xt},Qt=function(Xt,ai,xn,gi){var Zt=document.createElement("div");Zt.className="ggb_preview",Zt.style.position="absolute",Zt.style.zIndex="90",Zt.style.width=Xt-2+"px",Zt.style.height=ai-2+"px",Zt.style.top="0px",Zt.style.left="0px",Zt.style.overflow="hidden",Zt.style.backgroundColor="white";var Ct="lightgrey";xn!==void 0&&(xn==="none"?Ct="transparent":Ct=xn),Zt.style.border="1px solid "+Ct;var qt=document.createElement("img");if(qt.style.position="relative",qt.style.zIndex="1000",qt.style.top="-1px",qt.style.left="-1px",ue!==null&&qt.setAttribute("src",ue),qt.style.opacity=.7,se!==null){var hi,Kt,Xe;if(!gi){hi=document.createElement("img"),hi.style.position="absolute",hi.style.zIndex="1001",hi.style.opacity=1,qt.style.opacity=.3,Kt=360,Kt>Xt/4*3&&(Kt=Xt/4*3),Xe=Kt/5.8,hi.setAttribute("src",se),hi.setAttribute("width",Kt),hi.setAttribute("height",Xe);var Le=(Xt-Kt)/2,Me=(ai-Xe)/2;hi.style.left=Le+"px",hi.style.top=Me+"px",Zt.appendChild(hi)}}return Zt.appendChild(qt),Zt},vn=function(Xt){return Xt=Xt.toLowerCase(),Xt==="html5"||Xt==="screenshot"?Xt:"html5"},lt=["web","webSimple","web3d","tablet","tablet3d","phone"],Ge=function(Xt,ai){if(Te=Xt,ai){Ne(Te,!0);return}var xn=!tt;if(xn){var gi=Pe(Te);!isNaN(gi)&&gi<4.4&&(xn=!1)}var Zt,Ct;window.location.protocol.substr(0,4)==="http"?Zt=window.location.protocol:Zt="http:";var qt=Te.indexOf("//");qt>0?Ct=Te:qt===0?Ct=Zt+Te:Ct="https://www.geogebra.org/apps/5.2.814.0/";for(var hi in lt)if(Te.slice(lt[hi].length*-1)===lt[hi]||Te.slice((lt[hi].length+1)*-1)===lt[hi]+"/"){Ne(Ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&xn&&!ve.is3D&&!ve.AV&&!ve.SV&&!ve.CV&&!ve.EV2&&!ve.CP&&!ve.PC&&!ve.DA&&!ve.FI&&!ve.PV&&!Mt(be.showToolBar)&&!Mt(be.showMenuBar)&&!Mt(be.showAlgebraInput)&&!Mt(be.enableRightClick)&&(!be.appName||be.appName=="classic")?Ct+="webSimple/":Ct+="web3d/",Ne(Ct,!1)},Ne=function(Xt,ai){if(Xt.requirejs){Vt=Xt;return}Xt.slice(-1)!=="/"&&(Xt+="/"),Vt=Xt,ai===null&&(ai=Xt.indexOf("http")===-1),ct=ai,ne="web.nocache.js",te=!1;var xn=Vt.split("/");xn.length>1&&(!ai&&xn[xn.length-2]==="webSimple"?(ne="webSimple.nocache.js",te=!0):lt.indexOf(xn[xn.length-2])>=0&&(ne=xn[xn.length-2]+".nocache.js")),xn=Xt.split("/"),Te=xn[xn.length-3],Te.substr(0,4)==="test"?Te=Te.substr(4,1)+"."+Te.substr(5,1):(Te.substr(0,3)==="war"||Te.substr(0,4)==="beta")&&(Te="5.0");var gi=parseFloat(Te);gi!==NaN&&gi<5&&Xt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+gi+" is deprecated. Using version latest instead."),Ge("5.0",ai))},Nn=function(Xt,ai){window.console&&window.console.log&&(!ai||typeof ai.showLogging=="undefined"||ai.showLogging&&ai.showLogging!=="false")&&console.log(Xt)};be.material_id!==void 0?ft(Xn):Xn();function Xn(){var Xt=ti;Re!==null?Xt=Re:parseFloat(Xt)<5&&(Xt="5.0"),Ge(Xt,!1),Je!==null&&Ne(Je,ct),Bt=!0}return Rn},GGBAppletUtils=function(){"use strict";function Rn(){return window.GGBT_wsf_edit!==void 0}function ti(Bt,Re){Re!=1?(Bt.style.transformOrigin="0% 0% 0px",Bt.style.webkitTransformOrigin="0% 0% 0px",Bt.style.transform="scale("+Re+","+Re+")",Bt.style.webkitTransform="scale("+Re+","+Re+")",Bt.style.maxWidth="initial",Bt.querySelector(".ggb_preview")!==null&&(Bt.querySelector(".ggb_preview").style.maxWidth="initial"),Bt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Bt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Bt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Bt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Bt.style.transform="none",Bt.style.webkitTransform="none")}function be(Bt,Re,Je,pt,wt,ht){var Vt=null;if(ht!=null&&ht!="")for(var ct=Bt.parentNode;ct!=null;)if((" "+ct.className+" ").indexOf(" "+ht+" ")>-1){Vt=ct;break}else ct=ct.parentNode;var He=0,Te=0,ne=0,te=0,ue=0,se=0,ge=0;if(Vt)He=Vt.offsetWidth,Te=Math.max(pt?Vt.offsetWidth:0,Vt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(He=Math.min(window.innerWidth,document.documentElement.clientWidth),Te=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=He):(He=window.innerWidth,Te=window.innerHeight,ne=window.innerWidth),Bt){var me=Bt.getBoundingClientRect();me.left>0&&me.left<=He&&(wt===void 0||!wt)&&(document.dir==="rtl"?(ue=He-me.width-me.left,se=ne<=480?10:30):(se=me.left,ue=ne<=480?10:30),te=se+ue)}if(Bt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xe=Bt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,ge=40)}}return Bt&&((Je===void 0||!Je)&&Re>0&&Re+te<He?He=Re:He-=te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Je===void 0||!Je)&&(Te-=ge)),{width:He,height:Te}}function ve(Bt,Re,Je,pt,wt){if(Bt.isScreenshoGenerator)return 1;var ht=pt!==void 0&&pt,Vt=Bt.noScaleMargin!=null&&Bt.noScaleMargin,ct=function(xe){return xe&&xe!=="false"},He=ct(Bt.autoHeight),Te=be(Re,Bt.width,Je,He,ht&&window.GGBT_wsf_view||Vt,wt),ne=parseInt(Te.width),te=Bt.width,ue=Bt.height;if(te===void 0){var se=Re.querySelector(".appletParameters");se&&(te=se.offsetWidth,ue=se.offsetHeight)}var ge=ne/te,me=ht?1:Te.height/ue;return Je!==void 0&&!Je&&(ge=Math.min(1,ge),me=Math.min(1,me)),Math.min(ge,me)}function tt(Bt,Re,Je){var pt=1,wt,ht=!1;if(Bt.hasOwnProperty("allowUpscale")&&(ht=Bt.allowUpscale),Bt.hasOwnProperty("scale")&&(pt=parseFloat(Bt.scale),(isNaN(pt)||pt===null||pt===0)&&(pt=1),pt>1&&(ht=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ht=!0),!(Bt.hasOwnProperty("disableAutoScale")&&Bt.disableAutoScale))wt=ve(Bt,Re,ht,Je,Bt.scaleContainerClass);else return pt;return ht&&(!Bt.hasOwnProperty("scale")||pt===1)?wt:Math.min(pt,wt)}function Pt(Bt){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),Je=Math.min(window.innerHeight,document.documentElement.clientHeight),pt=Bt.getBoundingClientRect(),wt=(Re-pt.width)/2,ht=(Je-pt.height)/2;ht<0&&(ht=0),Bt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(wt<40?Bt.style.left="40px":Bt.style.left=wt+"px",Bt.style.top=ht+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ht<40?Bt.style.top="40px":Bt.style.top=ht+"px",Bt.style.left=wt+"px")}function Ut(Bt,Re){var Je=Bt.querySelector(".appletParameters");if(Je){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==Je.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Bt)}if(Je.parentElement&&/fullscreen/.test(Je.parentElement.className))return;var pt=tt(Re,Bt);Rn()&&Je.setAttribute("data-param-scale",pt);for(var wt=null,ht=0;ht<Bt.childNodes.length;ht++)if(Bt.childNodes[ht].className!==void 0&&Bt.childNodes[ht].className.match(/^applet_scaler/)){wt=Bt.childNodes[ht];break}if(wt!==null&&wt.querySelector(".noscale")!==null)return;var Vt=Re.id!==void 0?Re.id:"ggbApplet",ct=window[Vt];(ct==null||!ct.recalculateEnvironments)&&wt!==null&&!wt.className.match(/fullscreen/)&&(wt.parentNode.style.transform="",!isNaN(pt)&&pt!==1?(wt.parentNode.style.width=Re.width*pt+"px",wt.parentNode.style.height=Re.height*pt+"px",ti(wt,pt)):(ti(wt,1),wt.parentNode.style.width=Re.width+"px",wt.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Pt(Bt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Je).parents(".content-added-content"))}}return{responsiveResize:Ut,isFlexibleWorksheetEditor:Rn,positionCenter:Pt,getScale:tt,scaleElement:ti}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Rn=n.location.search;return Rn.indexOf(J)!=-1||Rn.indexOf(K)!=-1}function q(Rn,ti){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Rn){var ti=s[L].bindings;s[L].bindings=function(){for(var be=ti?ti():{},ve=Rn[webModule.__softPermutationId],tt=O;tt<ve.length;tt++){var Pt=ve[tt];be[Pt[O]]=Pt[P]}return be}};var t;function u(){return v(),t}function v(){if(!t){var Rn=o.createElement(Q);if(Rn.id=L,Rn.style.cssText=R+S,Rn.tabIndex=-1,o.body.appendChild(Rn),t=Rn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ti=document.compatMode==U?V:W;t.write(ti+X),t.close()}}}function w(Rn){function ti(ve){function tt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Pt=tt();if(Pt){ve();return}function Ut(){if(!Pt){if(!tt())return;Pt=!0,ve(),o.removeEventListener&&o.removeEventListener(Z,Ut,!1),Bt&&clearInterval(Bt)}}o.addEventListener&&o.addEventListener(Z,Ut,!1);var Bt=setInterval(function(){Ut()},$)}function be(ve){var tt=u(),Pt=tt.body,Ut=tt.createElement(_);Ut.language=ab,Ut.crossOrigin=W,Ut.src=ve,webModule.__errFn&&(Ut.onerror=function(){webModule.__errFn(L,new Error(bb+ve))}),Pt.appendChild(Ut)}ti(function(){be(Rn)})}webModule.__startLoadingFragment=function(Rn){return C(Rn)},webModule.__installRunAsyncCode=function(Rn){var ti=u(),be=ti.body,ve=ti.createElement(_);ve.language=ab,ve.text=Rn,be.appendChild(ve),be.removeChild(ve)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Rn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Rn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Rn){var ti=c[Rn];return ti==null?null:ti},r=d,webModule.__errFn=e}function B(){function Rn(Bt){var Re=Bt.lastIndexOf(rb);Re==-1&&(Re=Bt.length);var Je=Bt.indexOf(sb);Je==-1&&(Je=Bt.length);var pt=Bt.lastIndexOf(tb,Math.min(Je,Re));return pt>=O?Bt.substring(O,pt+P):W}function ti(Bt){if(!Bt.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=Bt+vb,Bt=Rn(Re.src)}return Bt}function be(){var Bt=__gwt_getMetaProperty(wb);return Bt!=null?Bt:W}function ve(){for(var Bt=o.getElementsByTagName(_),Re=O;Re<Bt.length;++Re)if(Bt[Re].src.indexOf(xb)!=-1)return Rn(Bt[Re].src);return W}function tt(){var Bt=o.getElementsByTagName(yb);return Bt.length>O?Bt[Bt.length-P].href:W}function Pt(){var Bt=o.location;return Bt.href==Bt.protocol+zb+Bt.host+Bt.pathname+Bt.search+Bt.hash}var Ut=be();return Ut==W&&(Ut=ve()),Ut==W&&(Ut=tt()),Ut==W&&Pt()&&(Ut=Rn(o.location.href)),Ut=ti(Ut),Ut}function C(Rn){return Rn.match(/^\//)||Rn.match(/^[a-zA-Z]+:\/\//)?Rn:webModule.__moduleBase+Rn}function D(){var Rn=[],ti=O,be=[],ve=[];function tt(Bt){var Re=ve[Bt](),Je=be[Bt];if(Re in Je)return Re;var pt=[];for(var wt in Je)pt[Je[wt]]=wt;throw r&&r(Bt,pt,Re),null}if(__gwt_isKnownPropertyValue=function(Bt,Re){return Re in be[Bt]},webModule.__getPropMap=function(){var Bt={};for(var Re in be)be.hasOwnProperty(Re)&&(Bt[Re]=tt(Re));return Bt},webModule.__computePropValue=tt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Pt;try{Pt=Cb;var Ut=Pt.indexOf(Db);Ut!=-1&&(ti=parseInt(Pt.substring(Ut+P),$),Pt=Pt.substring(O,Ut))}catch(Bt){}return webModule.__softPermutationId=ti,C(Pt+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Rn,ti,be){"use strict";be.d(ti,{Ax:function(){return Ut},Ds:function(){return Bt},KI:function(){return Je},SI:function(){return Pt},f1:function(){return tt}});var ve=be(11320);function tt(pt){let wt=!0;if(pt.length>0){for(let ht=0;ht<pt.length;ht++)if(pt[ht].compile_success==0||!pt[ht].compile_success){wt=!1;break}}else wt=!1;return wt}function Pt(pt,wt=""){let ht=[];for(let Vt=0;Vt<pt.length;Vt++){let ct=pt[Vt],He=wt?`${wt}/${ct.name}`:`${ct.name}`;ht.push({title:ct.name,type:ct.type,isLeaf:ct.type!=="tree",key:He})}return ht}function Ut(pt,wt,ht){for(let Vt=0;Vt<pt.length;Vt++){let ct=pt[Vt];if(ct.key===wt){ct.children=ht;break}ct.children&&Ut(ct.children,wt,ht)}return pt}function Bt(pt,wt,ht){let Vt;return function(){let ct=this,He=arguments,Te=function(){Vt=null,ht||pt.apply(ct,He)},ne=ht&&!Vt;clearTimeout(Vt),Vt=setTimeout(Te,wt),ne&&pt.apply(ct,He)}}const Re=!0,Je=ve.Z.API_SERVER},63205:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return Vt}});var ve=be(67294),tt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Pt=be(94184),Ut=be.n(Pt),Bt=be(74330),Re=be(15979),Je=be(33170),pt=be(28706),wt=(ct,He,Te)=>new Promise((ne,te)=>{var ue=me=>{try{ge(Te.next(me))}catch(xe){te(xe)}},se=me=>{try{ge(Te.throw(me))}catch(xe){te(xe)}},ge=me=>me.done?ne(me.value):Promise.resolve(me.value).then(ue,se);ge((Te=Te.apply(ct,He)).next())}),Vt=({data:ct,className:He,fullWidth:Te,style:ne={},onClose:te,onOk:ue,showFullTools:se,noAssociationId:ge})=>{const me=(0,ve.useRef)(null),xe=(0,ve.useRef)(null),Pe=(0,ve.useRef)(null),Ke=(0,ve.useRef)(null),[qe,ft]=(0,ve.useState)(!1),[st,rt]=(0,ve.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ve.useEffect)(()=>(Pe.current||(Pe.current=document.createElement("style"),document.head.appendChild(Pe.current)),ct!=null&&ct.visible?(document.body.setAttribute("data-custom","y-hidden"),Pe.current.innerHTML=" html { overflow-y: hidden; }",ct!=null&&ct.src&&Tt()):(document.body.removeAttribute("data-custom"),Pe.current&&(document.head.removeChild(Pe.current),Pe.current=null)),()=>{document.body.removeAttribute("data-custom"),Pe.current&&(document.head.removeChild(Pe.current),Pe.current=null)}),[ct==null?void 0:ct.visible]);const Tt=()=>wt(void 0,null,function*(){ft(!0),rt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Nt=yield(0,pt.ZJ)(ct==null?void 0:ct.src);me.current.src="",me.current.src=Nt,me.current.onload=function(){Dt()},ft(!1),rt("")}),Mt=Nt=>wt(void 0,null,function*(){ft(!0),rt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Bn=yield(0,Je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ct.title,file:Nt.dataUrl}});Bn!=null&&Bn.id&&!ge?(yield(0,Je.ZP)(`/api/attachments/${ct.id}/add_subitem.json`,{method:"post",body:{subitem_id:Bn==null?void 0:Bn.id,settings:JSON.stringify(Nt.state)}})).status===0&&ue():Bn!=null&&Bn.id&&ue(Bn),ft(!1),rt("")}),yt=()=>{const Nt=document.querySelector('a[href="https://markerjs.com/"]');Nt&&Nt.parentNode&&(Nt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(On=>{const Qt=document.querySelector(On.name);Qt&&Qt.setAttribute("title",On.title)})},Dt=()=>{xe.current=new Re.hP(me.current),xe.current.targetRoot=Ke.current,xe.current.addEventListener("render",Mt),xe.current.addEventListener("beforeclose",te),se&&(xe.current.availableMarkerTypes=xe.current.ALL_MARKER_TYPES,xe.current.uiStyleSettings.redoButtonVisible=!0,xe.current.uiStyleSettings.notesButtonVisible=!0,xe.current.uiStyleSettings.zoomButtonVisible=!0,xe.current.uiStyleSettings.zoomOutButtonVisible=!0,xe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=xe.current.uiStyleSettings,xe.current.show(),ct!=null&&ct.snapshotData&&xe.current.restoreState(ct.snapshotData),setTimeout(()=>{window.scrollTo(0,0),yt()},300)};return ve.createElement(ve.Fragment,null,(ct==null?void 0:ct.visible)&&ve.createElement(Bt.Z,{spinning:qe,tip:st,style:{position:"absolute",width:"100vw"}},ve.createElement("div",{ref:Ke,className:Ut()(tt.imageDimensions,He,Te?tt.fullWidth:""),style:ne},ve.createElement("img",{className:tt.img,ref:me}))))}},36527:function(Rn,ti,be){"use strict";var ve=be(67294),tt=be(71230),Pt=be(15746),Ut=be(55238),Bt=be(85804),Re=be(65226),Je=be(71736),pt=be(84279),wt=be(67294);const ht=(0,ve.forwardRef)(({callback:Vt,showSaveButton:ct,value:He=""},Te)=>{const ne=(0,ve.useRef)(),te=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ue=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],se=xe=>{ne.current.setValue(ne.current.getValue()+" "+xe.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:wt.createElement(tt.Z,{className:Je.Z.lists,gutter:[10,10]},te.map((xe,Pe)=>wt.createElement(Pt.Z,{flex:"110px",className:Je.Z.item},wt.createElement("div",null,wt.createElement(Re.Z,{value:`$$${xe.value}$$`}),xe.name),wt.createElement("div",{className:Je.Z.children},xe.children.map((Ke,qe)=>wt.createElement("div",{key:qe},wt.createElement("h1",null,Ke.name),wt.createElement(tt.Z,{gutter:[10,10]},Ke.data.map((ft,st)=>wt.createElement(Pt.Z,{key:st,onClick:()=>se(ft),className:Je.Z.diamond},wt.createElement(Re.Z,{value:"`$$"+ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:wt.createElement(tt.Z,{className:Je.Z.lists,gutter:[10,10]},ue.map((xe,Pe)=>wt.createElement(Pt.Z,{flex:"110px",className:Je.Z.item},wt.createElement("div",null,wt.createElement(Re.Z,{value:"`$$"+xe.value+"$$`"}),xe.name),wt.createElement("div",{className:Je.Z.children},xe.children.map((Ke,qe)=>wt.createElement("div",{key:qe},Ke.name&&wt.createElement("h1",null,Ke.name),wt.createElement(tt.Z,{gutter:[10,10]},Ke.data.map((ft,st)=>wt.createElement(Pt.Z,{key:st,onClick:()=>se(ft),className:Je.Z.diamond},wt.createElement(Re.Z,{value:"`$$"+ft.value+"$$`"}))))))))))}],me=()=>{var xe=document.createElement("div");xe.innerHTML=ne.current.getValue();var Pe=xe.innerText;return Vt&&Vt(Pe),Pe};return(0,ve.useImperativeHandle)(Te,()=>({getData:me})),wt.createElement("div",{className:Je.Z.mathWrap},wt.createElement(Ut.default,{defaultActiveKey:"1",items:ge}),wt.createElement("math-field",{locale:"zh_cn",className:Je.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ne,style:{width:800,marginTop:30,fontSize:18}},He||""),ct&&wt.createElement("div",{className:Je.Z.button},wt.createElement(Bt.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ti.Z=ht},26194:function(Rn,ti,be){"use strict";var ve=be(67294),tt=be(4977),Pt=be(85804),Ut=Object.defineProperty,Bt=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ht=(Te,ne,te)=>ne in Te?Ut(Te,ne,{enumerable:!0,configurable:!0,writable:!0,value:te}):Te[ne]=te,Vt=(Te,ne)=>{for(var te in ne||(ne={}))pt.call(ne,te)&&ht(Te,te,ne[te]);if(Je)for(var te of Je(ne))wt.call(ne,te)&&ht(Te,te,ne[te]);return Te},ct=(Te,ne)=>Bt(Te,Re(ne));const He=({img:Te,buttonProps:ne={},styles:te={},customText:ue,ButtonText:se,ButtonClick:ge,Buttonclass:me,ButtonTwo:xe,imgStyles:Pe,loading:Ke=!1,className:qe=""})=>ve.createElement("section",{className:`tc animated fadeIn ${qe}`,style:Vt({color:"#999",margin:"100px auto",visibility:Ke?"hidden":"visible"},te)},ve.createElement("img",{src:Te||tt,style:ct(Vt({},Pe),{pointerEvents:"none",userSelect:"none"})}),ve.createElement("p",{className:"mt20 font14"},ue||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&ve.createElement(Pt.ZP,Vt({className:me,onClick:ge},ne),se),xe&&xe);ti.Z=He},39717:function(Rn,ti,be){"use strict";be.d(ti,{Q:function(){return Re}});var ve=be(67294),tt=be(88044),Pt=be(98813),Ut=be(37720),Bt=be(67294),Re=(pt=>(pt[pt.Number=1]="Number",pt[pt.Percent=2]="Percent",pt))(Re||{});const Je=({value:pt,onChange:wt,disabled:ht,hidePercentOption:Vt=!1,percentType:ct="select"})=>{const He=(0,ve.useMemo)(()=>Vt?1:2,[Vt]),[Te,ne]=(0,ve.useState)(He);console.log(Te);const te=se=>pt.type===1?`${se}\u5206`:`${se}%`,ue=(0,ve.useCallback)(se=>{if(Te===1){const ge=se.replace("\u5206","");return isNaN(parseInt(ge,10))?0:ge}else return se.replace("%","")},[Te]);return(0,ve.useEffect)(()=>{ne(pt.type)},[pt]),Bt.createElement("div",{style:{display:"flex",alignItems:"center"}},ct=="select"&&Bt.createElement(tt.default,{size:"large",onChange:se=>{ne(se),wt({type:se,inputValue:se===1?5:20})},value:Te||He,style:{width:100},options:Vt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:ht}),ct=="radio"&&Bt.createElement(Pt.ZP.Group,{size:"large",onChange:se=>{const ge=se.target.value;ne(ge),wt({type:ge,inputValue:ge===1?5:20})},value:Te||He,disabled:ht},!Vt&&Bt.createElement(Pt.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Bt.createElement(Pt.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),ct=="radio"&&Bt.createElement("div",{style:{marginRight:"10px",color:"#000000"}},pt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Bt.createElement(Ut.Z,{size:"large",disabled:ht,value:pt.inputValue,style:{width:"120px"},parser:ue,addonAfter:pt.type===1?"\u5206":"%",max:Te===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:se=>{wt({type:Te,inputValue:se})}}),ct=="radio"&&pt.type==2&&Bt.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};ti.Z=Je},20819:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return me}});var ve=be(67294),tt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Pt=be(85804),Ut=be(30153),Bt=be(36295),Re=be(83062),Je=be(28706),pt=be(15835),wt=be(26194),ht=be(11320),Vt=be(66540),ct=be(67294),He=Object.defineProperty,Te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(xe,Pe,Ke)=>Pe in xe?He(xe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):xe[Pe]=Ke,se=(xe,Pe)=>{for(var Ke in Pe||(Pe={}))ne.call(Pe,Ke)&&ue(xe,Ke,Pe[Ke]);if(Te)for(var Ke of Te(Pe))te.call(Pe,Ke)&&ue(xe,Ke,Pe[Ke]);return xe},ge=(xe,Pe,Ke)=>new Promise((qe,ft)=>{var st=Mt=>{try{Tt(Ke.next(Mt))}catch(yt){ft(yt)}},rt=Mt=>{try{Tt(Ke.throw(Mt))}catch(yt){ft(yt)}},Tt=Mt=>Mt.done?qe(Mt.value):Promise.resolve(Mt.value).then(st,rt);Tt((Ke=Ke.apply(xe,Pe)).next())}),me=({editOffice:xe="view",data:Pe,issaver:Ke,onSaver:qe,theme:ft,type:st,filename:rt,monacoEditor:Tt,className:Mt,style:yt,close:Dt,onClose:Nt,hasMask:Bn,disabledDownload:On,onImgDimensions:Qt,showNodata:vn,recordInfo:lt})=>{const[Ge,Ne]=(0,ve.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Nn,Xn]=(0,ve.useState)(""),[Xt,ai]=(0,ve.useState)(),xn=window.ENV==="build"?"/react/build":"",gi=location.host.startsWith("localhost")?ht.Z.PROXY_SERVER:ht.Z.API_SERVER,Ct=10*(1024*1024),qt=(0,ve.useRef)();Pe!=null&&Pe.startsWith("/api")&&st!=="txt"&&(Pe=ht.Z.API_SERVER+Pe);const hi=We=>We.substring(We.lastIndexOf("/")+1).split(".").pop();rt&&Tt&&(Tt.filename=rt),(0,ve.useEffect)(()=>{var We,$e;const Be=($e=(We=document.cookie)==null?void 0:We.replace(/\s/g,""))==null?void 0:$e.split(";");Be==null||Be.map(ut=>{let Vn=ut.split("=");Vn[0]==="_educoder_session"&&Xn(Vn[1])})},[]),(0,ve.useEffect)(()=>{st==="office"&&(Pe.indexOf("bigfilescdn.")>-1||Pe.indexOf("bigfiles1")>-1?ai({url:Pe,fileType:hi(Pe),model:Pe.indexOf("model=edit")?"edit":"view"}):Xe())},[st,Pe]);function Kt(We){return ge(this,null,function*(){We.data.type==="pdfdata"&&(qe(We.data.data),window.removeEventListener("message",Kt,!1)),console.log("mess---:",We.data)})}const Xe=()=>ge(void 0,null,function*(){console.log("data:",Pe);let We=Pe;Pe.startsWith("http")||(We=location.origin+We);let $e=new URL(We).pathname.split("/").pop();const Be=yield(0,pt.gJ)({attachment_id:$e});Be.url=gi+Be.url,ai(Be)}),Le=()=>{if(Pe.startsWith("http")||Pe.startsWith("blob:")){Me();return}(0,Je.Sv)(rt||"educoder",Pe,rt)},Me=()=>{lt&&(0,Vt.fc)({id:lt==null?void 0:lt.id,watch_type:1,course_id:lt==null?void 0:lt.course_id}),(0,Je.Nd)(rt||"educoder",decodeURIComponent(Pe))};return ct.createElement("div",{style:se({},yt||{}),className:`${Bn&&tt.bgBlack} ${st?tt.wrp:"hide"}`},Dt&&ct.createElement("div",{className:tt.close,ref:qt},!!Qt&&ct.createElement(Re.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>qt.current},ct.createElement("span",{onClick:()=>{Nt(),Qt()}},ct.createElement("i",{className:"icon-yulanpizhu"}))),!On&&ct.createElement(Re.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>qt.current},ct.createElement("span",{onClick:Me},ct.createElement("i",{className:"icon-quxiaozhiding"}))),Ke&&ct.createElement(Re.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>qt.current},ct.createElement("span",{className:"",onClick:()=>{const We=document.getElementById("pdfiframe");window.addEventListener("message",Kt,!1),setTimeout(()=>{We.contentWindow.postMessage("getData","*")},300)}},ct.createElement("i",{className:"icon-baocun"}))),ct.createElement(Re.Z,{title:"\u5173\u95ED",getPopupContainer:()=>qt.current},ct.createElement("span",{className:"",onClick:()=>{Nt()}},ct.createElement("i",{className:"icon-guanbi1"})))),ct.createElement("div",{className:`${tt[Mt]} ${Mt} ${tt.monaco} ${st==="txt"?"show":"hide"}`},st==="txt"&&ct.createElement(ct.Fragment,null,ct.createElement(Bt.ZP,se({},Tt)))),st==="audio"&&ct.createElement("audio",{src:`${(Pe==null?void 0:Pe.indexOf("http://"))>-1||(Pe==null?void 0:Pe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Pe}`,autoPlay:!0}),st==="video"&&ct.createElement(ct.Fragment,null,(Pe==null?void 0:Pe.indexOf("http"))>-1?ct.createElement("video",{controls:!0,src:`${Pe}`,autoPlay:!0}):ct.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Pe}`,autoPlay:!0})),st==="office"&&Xt&&ct.createElement("iframe",{src:`${xn}/office.html?key=${Xt.key}&url=${btoa(Xt.url)}&callbackUrl=${gi+(Xt.callbackUrl||"")}&fileType=${Xt.fileType}&title=${Xt.title||""}&model=${xe}&officeServer=${ht.Z.ONLYOFFICE}&disabledDownload=${!!On}`}),st==="html"&&ct.createElement("iframe",{src:Pe+"&disposition=inline"}),st==="pdf"&&ct.createElement("iframe",{id:"pdfiframe",src:`${xn}/js/pdfview/index.html?filename=${rt||"educoder.pdf"}&url=${encodeURIComponent(Pe)}&disabledDownload=${!!On}&model=${xe}`}),st==="image"&&ct.createElement("img",{src:`${(Pe==null?void 0:Pe.indexOf("http://"))>-1||(Pe==null?void 0:Pe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Pe}`}),(st==="other"||st==="download")&&ct.createElement(ct.Fragment,null,vn?ct.createElement(wt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ct.createElement(Pt.ZP,{icon:ct.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Le,disabled:On},"\u4E0B\u8F7D")}):ct.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:Le,disabled:On},ct.createElement(Ut.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},65226:function(Rn,ti,be){"use strict";be.d(ti,{z:function(){return st},Z:function(){return rt}});var ve=be(67294),tt=be(81897),Pt=be(51161),Ut=be(11771),Bt=be(67631),Re=be.n(Bt),Je=be(11320),pt=be(28706),wt=be(20527),ht=be(25934),Vt=be(20819),ct=be(67294),Te=({html:Tt})=>{const Mt=(0,ve.useRef)(null),yt=(0,ve.useRef)(null),Dt=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,ve.useEffect)(()=>{const Nt=Mt.current.attachShadow({mode:"open"});yt.current=document.createElement("div"),yt.current.className="markdown-body",yt.current.innerHTML=Tt,Nt.appendChild(yt.current);const Bn=document.createElement("style");return Bn.textContent=Dt,Nt.appendChild(Bn),()=>{Nt.innerHTML=""}},[]),(0,ve.useEffect)(()=>{yt.current&&(yt.current.innerHTML=Tt)},[Tt]),ct.createElement("div",{ref:Mt})};function ne(Tt){const Mt=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],yt=new RegExp(`\\b(${Mt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Tt.replace(yt,"").trim()}var te=Object.defineProperty,ue=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(Tt,Mt,yt)=>Mt in Tt?te(Tt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Tt[Mt]=yt,xe=(Tt,Mt)=>{for(var yt in Mt||(Mt={}))se.call(Mt,yt)&&me(Tt,yt,Mt[yt]);if(ue)for(var yt of ue(Mt))ge.call(Mt,yt)&&me(Tt,yt,Mt[yt]);return Tt};const Pe="@\u2581\u2581@",Ke="@\u2581@",qe=/<pre[^>]*>/g;function ft(Tt){let Mt=document.createElement("div");return Mt.innerHTML=Tt,Mt.childNodes.length===0?"":Mt.childNodes[0].nodeValue}const st=(Tt,Mt)=>{Tt=Tt||"";const yt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Dt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Bn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Mt?Tt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(yt,(On,Qt,vn,lt,Ge,Ne,Nn)=>{const Xn=Qt||lt||Ne,Xt=vn||Ge||Nn||"?";return Je.Z.API_SERVER+"/api/attachments/"+Xn+Xt+"&t="+(0,pt.Jn)(Xn,Date.now())+(On.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Tt=Tt.replace(Bn,(On,Qt,vn,lt,Ge,Ne,Nn)=>{const Xn=Qt||lt||Ne,Xt=vn||Ge||Nn||"?";return Je.Z.API_SERVER+"/attachments/download/"+Xn+Xt+"&t="+(0,pt.Jn)(Xn,Date.now())+(On.indexOf(")")>-1?")":"&")}).replace(yt,(On,Qt,vn,lt,Ge,Ne,Nn)=>{const Xn=Qt||lt||Ne,Xt=vn||Ge||Nn||"?";return Je.Z.API_SERVER+"/api/attachments/"+Xn+Xt+"&t="+(0,pt.Jn)(Xn,Date.now())+(On.indexOf(")")>-1?")":"&")}).replace(Dt,(On,Qt,vn,lt,Ge)=>{const Ne=Qt||lt,Nn=vn||Ge||"";return'"'+Je.Z.API_SERVER+"/api/attachments/"+Ne+Nn+Ne+Nn+"&t="+(0,pt.Jn)(Ne,Date.now())}).replace(Nt,(On,Qt,vn,lt,Ge)=>{const Ne=Qt||lt,Nn=vn||Ge||"";return"("+Je.Z.API_SERVER+"/files/uploads/"+Ne+Nn+Ne+Nn+"&t="+(0,pt.Jn)(Ne,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Tt)};var rt=({value:Tt="",className:Mt,showTextOnly:yt,showLines:Dt,style:Nt={},stylesPrev:Bn={},highlightKeywords:On,showProgramFill:Qt,isProgramFill:vn,disabledFill:lt=!1,programFillValue:Ge,onFillChange:Ne=Xt=>{},onFillBlur:Nn=()=>{},onFillFocus:Xn=()=>{}})=>{let Xt=ne(String(Tt||""));const[ai,xn]=(0,ve.useState)(""),[gi,Zt]=(0,ve.useState)("office"),[Ct,qt]=(0,ve.useState)([]),hi=(0,ve.useRef)("a"+(0,ht.Z)()),Kt={},Xe=mn=>/<style[\s\S]*?>/i.test(mn||""),Le=(mn,bi,_i)=>{const Br=document.createElement(mn===Ke?"input":"textarea");Br.style.width="100%",Br.style.height=mn===Ke?"40px":"151px",Br.rows=5,Br.spellcheck=!1,Br.name="edu-program-fill",Br.placeholder="\u8BF7\u8F93\u5165",Br.dataset.id=bi;const Yi=Object.keys(Kt).length;return Kt[Yi]=Br,`<span class="edu-program-fill-wrap ${mn===Ke?"":"show"}" style="width:${mn===Ke?"600px":"100%"}" title=${_i||""}><span>${Br.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Me(mn){return mn=mn.replace(/!\[.*?\]\(.*?\)/g,""),mn=mn.replace(/\[.*?\]\(.*?\)/g,""),mn=mn.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),mn=mn.replace(/<embed.*?>/g,""),mn=mn.replace(/<img.*?>/g,""),mn=mn.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),mn=mn.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),mn=mn.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),mn=mn.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),mn}const We=mn=>!yt&&Xe(Xt)?mn:mn.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(bi,_i){let Br=_i.replace(/(\n|\r)/g,"").split("}"),Yi=[];return Br.map(ki=>{ki!=""&&Yi.push(`.${hi.current} ${ki}`)}),`<style>${Yi.join("}")}</style>`}),$e=(0,ve.useMemo)(()=>{try{const Br=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Yi=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ki=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Xr=/\(\/attachments\/download\//g;Xt=Xt.replace(Xr,"("+Je.Z.API_SERVER+"/attachments/download/").replace(Br,"("+Je.Z.API_SERVER+"/api/attachments/").replace(Yi,'"'+Je.Z.API_SERVER+"/api/attachments/").replace(ki,'"'+Je.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Br){}if(Qt){let Br=-1;return Xt=Xt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Yi,ki,Xr){var Ki;return++Br,Le(Yi,Br,(Ki=Ge==null?void 0:Ge[Br])==null?void 0:Ki.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${We(Xt||"")}</pre>`}let mn=We(Xt);mn=(0,Pt.ZP)(mn);const bi=(0,Pt.ez)();Xt.match(/\[TOC\]/)&&(mn=mn.replace("<p>[TOC]</p>",(0,Pt.Qv)()),(0,Pt.Iy)()),mn=mn.replace(/(__special_katext_id_\d+__)/g,(Br,Yi)=>{const{type:ki,expression:Xr}=bi[Yi];return(0,wt.renderToString)(ft(Xr)||"",{displayMode:ki==="block",throwOnError:!1,output:"html"})}),mn=mn.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Pt.AL)();const _i=document.createElement("div");if(_i.innerHTML=mn,yt)return _i.innerText;if(On){const Br=On.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return In(_i,Br),_i.innerHTML}return setTimeout(()=>oi(),500),_i.innerHTML},[Xt,On]);(0,ve.useEffect)(()=>{Cn.current&&Cn.current.querySelectorAll(["input","textarea"]).forEach(bi=>{bi.oninput=Be,bi.onblur=ut,bi.onfocus=Vn})},[Ct]),(0,ve.useEffect)(()=>{var mn,bi,_i,Br,Yi;if(Ge!=null&&Ge.length)try{const ki=Cn.current.querySelectorAll(".edu-program-fill-score"),Xr=Cn.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ki,lr]of Xr.entries())lr.value=((mn=Ge==null?void 0:Ge[Ki])==null?void 0:mn.value)||"",((bi=Ge==null?void 0:Ge[Ki])==null?void 0:bi.type)==="warning"?lr.className="program-fill-warning":((_i=Ge==null?void 0:Ge[Ki])==null?void 0:_i.type)==="success"?lr.className="program-fill-success":lr.className="";for(const[Ki,lr]of ki.entries())lr.innerHTML=(Br=Ge==null?void 0:Ge[Ki])!=null&&Br.score?`${(Yi=Ge==null?void 0:Ge[Ki])==null?void 0:Yi.score}\u5206`:"";qt(Ge)}catch(ki){console.log(ki,"error")}},[Ge]);const Be=mn=>{Ct[mn.target.dataset.id]=Ct[mn.target.dataset.id]||{},Ct[mn.target.dataset.id].value=mn.target.value,qt([...Ct]),Ne(Ct,mn.target.dataset.id)},ut=mn=>{Ct[mn.target.dataset.id]=Ct[mn.target.dataset.id]||{},Ct[mn.target.dataset.id].value=mn.target.value,qt([...Ct]),Nn(Ct,mn.target.dataset.id)},Vn=mn=>{Ct[mn.target.dataset.id]=Ct[mn.target.dataset.id]||{},Ct[mn.target.dataset.id].value=mn.target.value,qt([...Ct]),Xn(Ct,mn.target.dataset.id)};function In(mn,bi){return mn.childNodes.forEach(_i=>{var Br;if(_i.childNodes.length>0)In(_i,bi);else if(_i.nodeName!=="IMG")if(_i.innerHTML)_i.innerHTML=(Br=_i.innerHTML)==null?void 0:Br.replace(new RegExp(bi,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Yi=document.createElement("span");Yi.innerHTML=_i.textContent.replace(new RegExp(bi,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),_i.replaceWith(Yi)}})}const Cn=(0,ve.useRef)();Pt.jb.WebkitLineClamp=Dt,Dt&&(Nt=xe(xe({},Nt),Pt.jb));function Pn(mn){let bi=mn.target;if(bi.tagName.toUpperCase()==="A"){let _i=bi.getAttribute("href");if(_i.indexOf("office")>-1)mn.preventDefault(),xn(_i),Zt("office");else if(_i.indexOf("application/pdf")>-1)mn.preventDefault(),xn(_i),Zt("pdf");else if(_i.indexOf("text/html")>-1)mn.preventDefault(),xn(_i),Zt("html");else if(_i.startsWith("#")){mn.preventDefault();let Br=document.getElementById(_i.replace("#",""));Br&&Br.scrollIntoView(!0)}}}const oi=()=>{var mn;const bi=(mn=Cn.current)==null?void 0:mn.querySelectorAll("video");bi==null||bi.forEach(_i=>{if(_i.oncontextmenu=()=>!1,_i.src.indexOf(".m3u8")>-1&&!_i.canPlayType("application/vnd.apple.mpegurl")){if(Re().isSupported()){var Br=new(Re());Br.loadSource(_i.src),Br.attachMedia(_i)}}})};return(0,ve.useEffect)(()=>{if(Cn.current&&$e&&$e.match(qe)&&window.PR.prettyPrint(),Cn.current)return Cn.current.addEventListener("click",Pn),()=>{var mn;(mn=Cn.current)==null||mn.removeEventListener("click",Pn),(0,Pt.AL)(),(0,Pt.Iy)()}},[$e,Cn.current,Pn]),(0,ve.useEffect)(()=>{var mn;const bi=_i=>{_i.preventDefault(),_i.clipboardData.setData("text",window.getSelection().toString())};return(mn=Cn.current)==null||mn.addEventListener("copy",bi),()=>{var _i;(_i=Cn.current)==null||_i.removeEventListener("copy",bi)}},[Cn.current]),ve.createElement(ve.Fragment,null,yt&&ve.createElement("div",{ref:Cn},$e),!yt&&!Xe($e)&&ve.createElement("div",{ref:Cn,style:xe({},Nt),className:`${Mt||""} ${lt?"disabled-fill":""} markdown-body ${hi.current}`,dangerouslySetInnerHTML:{__html:$e}}),!yt&&Xe($e)&&ve.createElement(Te,{html:$e}),ve.createElement(Vt.Z,{close:!0,data:ai,type:ai!=null&&ai.length?gi:"",style:xe({},Bn),onClose:()=>xn("")}))}},96332:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return pt}});var ve=be(67294),tt={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Pt=be(62844),Ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAA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promise((ct,He)=>{var Te=ue=>{try{te(Vt.next(ue))}catch(se){He(se)}},ne=ue=>{try{te(Vt.throw(ue))}catch(se){He(se)}},te=ue=>ue.done?ct(ue.value):Promise.resolve(ue.value).then(Te,ne);te((Vt=Vt.apply(wt,ht)).next())}),pt=({type:wt,resdata:ht,onok:Vt,oktext:ct,okloading:He})=>{const[Te,ne]=(0,ve.useState)(!1),{can_copy_list:te,can_copy_num:ue,challenge_type:se,course_data_list:ge,no_copy_list:me,no_copy_num:xe,no_use_list:Pe,no_use_num:Ke,repeat_shixun_num:qe,student_count:ft,total_num:st,use_num:rt}=ht;let Tt=ue>0||wt==="exercise";(0,ve.useEffect)(()=>{(ht==null?void 0:ht.student_count)>0&&ne(!0)},[ht]),console.log("---11",He),(0,ve.useEffect)(()=>{He||ne(!1)},[He]);const Mt=()=>{if(wt==="exercise"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:tt.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:tt.orangeColor},rt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(wt==="exercise"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:tt.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:tt.orangeColor},rt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="shixun"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:tt.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="shixun"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:tt.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="subject"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:tt.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:tt.orangeColor},rt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="subject"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ve.createElement("span",{className:tt.orangeColor},ft)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ve.createElement("span",{className:tt.orangeColor},rt)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="exercisepush")return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:tt.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ve.createElement("span",{className:tt.orangeColor},rt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(wt==="shixunpush"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:tt.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:tt.orangeColor},rt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(wt==="shixunpush"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:tt.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ve.createElement("span",{className:tt.orangeColor},rt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},yt=()=>{if(wt==="exercise"||wt==="subject"||wt==="exercisepush"||wt==="shixunpush")return ve.createElement("div",{style:{marginTop:20}},xe>0&&ve.createElement("div",null,ve.createElement("span",{className:tt.flex},ve.createElement("img",{src:Bt,style:{width:14}}),ve.createElement("span",{className:tt.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:tt.statusbody},wt==="exercise"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:tt.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(wt==="subject"||wt==="exercisepush")&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Tt&&ve.createElement("span",{className:tt.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),wt==="shixunpush"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Tt&&ve.createElement("span",{className:tt.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ve.createElement("div",null,me==null?void 0:me.map((Dt,Nt)=>ve.createElement("a",{href:`/shixuns/${Dt.identifier}/challenges`,target:"_blank"},"\u300A",Dt==null?void 0:Dt.name,"\u300B",Nt+1!==xe&&"\u3001"))))),ue>0&&ve.createElement("div",{style:{marginTop:20}},ve.createElement("span",{className:tt.flex},ve.createElement("img",{src:Ut,style:{width:14}}),ve.createElement("span",{className:tt.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:tt.statusbody},wt==="exercise"&&ve.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(wt==="subject"||wt==="exercisepush")&&ve.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),wt==="shixunpush"&&ve.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ve.createElement("div",null,te==null?void 0:te.map((Dt,Nt)=>ve.createElement("a",{href:`/shixuns/${Dt.identifier}/challenges`,target:"_blank"},"\u300A",Dt==null?void 0:Dt.name,"\u300B",Nt+1!==ue&&"\u3001"))))));if(wt==="shixun")return ve.createElement("div",{style:{marginTop:20}},ue>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ve.createElement(Pt.default,{open:Te,onCancel:()=>{ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Tt&&"none"}},zIndex:1003,confirmLoading:He,okText:Tt?ct:"\u6211\u77E5\u9053\u4E86",onOk:()=>Re(void 0,null,function*(){Tt?yield Vt([...te,...Pe]):ne(!1)})},ve.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Mt(),yt()))}},57444:function(Rn,ti,be){"use strict";be.d(ti,{h:function(){return xe}});var ve=be(67294),tt=be(88044),Pt=be(91773),Ut=be(85804),Bt=be(4631),Re=be.n(Bt),Je=be(71749),pt=be(30483),wt=Object.defineProperty,ht=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,ne=(Pe,Ke,qe)=>Ke in Pe?wt(Pe,Ke,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Pe[Ke]=qe,te=(Pe,Ke)=>{for(var qe in Ke||(Ke={}))He.call(Ke,qe)&&ne(Pe,qe,Ke[qe]);if(ct)for(var qe of ct(Ke))Te.call(Ke,qe)&&ne(Pe,qe,Ke[qe]);return Pe},ue=(Pe,Ke)=>ht(Pe,Vt(Ke));const se=tt.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},me={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};ti.Z=({callback:Pe,onCancel:Ke})=>{const[qe,ft]=(0,ve.useState)("python");function st(Tt){ft(me[Tt][1])}function rt(Tt){Pe(Tt)}return ve.createElement(Pt.default,ue(te({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:rt,style:{width:500}}),ve.createElement(Pt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ve.createElement(tt.default,{getPopupContainer:Tt=>Tt.parentNode,onChange:st},Object.keys(me).map(Tt=>ve.createElement(se,{key:Tt,value:Tt},me[Tt][0])))),ve.createElement(Pt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ve.createElement(xe,{mode:qe})),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(Ut.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))};function xe({value:Pe,onChange:Ke,mode:qe,options:ft={}}){const st=(0,ve.useRef)(),[rt,Tt]=(0,ve.useState)();return(0,ve.useEffect)(()=>{if(rt){let Mt=function(yt){const Dt=yt.getValue();Ke&&Ke(Dt)};return rt.on("change",Mt),()=>{rt.off("change",Mt)}}},[rt,Ke]),(0,ve.useEffect)(()=>{rt&&rt.setOption("mode",qe)},[rt,qe]),(0,ve.useEffect)(()=>{rt&&(Pe!==rt.getValue()||Pe==="")&&setTimeout(()=>{rt.setValue(Pe||"")},300)},[rt,Pe]),(0,ve.useEffect)(()=>{if(st.current&&!rt){const Mt=Re().fromTextArea(st.current,te({mode:qe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ft));Tt(Mt)}},[st.current,rt]),ve.createElement("div",{className:"my-codemirror-container"},ve.createElement("textarea",{ref:st}))}},35567:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return ii}});var ve=be(67294),tt=be(4631),Pt=be.n(tt),Ut=be(91033),Bt=be(71749),Re=be(57341),Je=be(82801),pt=be(88386),wt=be(49047),ht=be(80785),Vt=be(65226),ct=({value:Wt="",className:Gt,showTextOnly:Ft,showLines:un,style:Ti={}})=>{const Ri=(0,ve.useMemo)(()=>"",[Wt]);return ve.createElement(ve.Fragment,null,ve.createElement("div",{dangerouslySetInnerHTML:{__html:Ri}}))},He=Object.defineProperty,Te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(Wt,Gt,Ft)=>Gt in Wt?He(Wt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Wt[Gt]=Ft,me=(Wt,Gt)=>{for(var Ft in Gt||(Gt={}))ue.call(Gt,Ft)&&ge(Wt,Ft,Gt[Ft]);if(te)for(var Ft of te(Gt))se.call(Gt,Ft)&&ge(Wt,Ft,Gt[Ft]);return Wt},xe=(Wt,Gt)=>Te(Wt,ne(Gt));let Pe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ke({onActionCallback:Wt,title:Gt,icon:Ft,actionName:un,className:Ti="",children:Ri}){function di(){Wt(un)}return ve.createElement("a",{title:Gt,className:Ti,onClick:di},ve.createElement("i",{className:`${Ft}`}),Ri)}var qe=({watch:Wt,showNullButton:Gt,showNullProgramButton:Ft,onActionCallback:un,fullScreen:Ti,insertTemp:Ri,hidetoolBar:di,extraUse:Yt})=>{const Hn=[...Pe,{title:`${Wt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Wt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ve.createElement("ul",{className:"markdown-toolbar-container"},!di&&Hn.map((En,Fr)=>ve.createElement("li",{key:Fr},En.actionName?ve.createElement(Ke,xe(me({},En),{onActionCallback:un})):ve.createElement("span",{className:"v-line"}))),Gt?ve.createElement("li",null,ve.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:un},ve.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ft?ve.createElement(ve.Fragment,null,ve.createElement("li",null,ve.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:un},ve.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ve.createElement("li",null,ve.createElement(Ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:un},ve.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Ri&&ve.createElement("li",null,ve.createElement(Ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ri}`,onActionCallback:un},ve.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Yt&&ve.createElement("li",null,Yt),ve.createElement("li",{className:"btn-full-screen"},ve.createElement(Ke,{icon:`${Ti?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ti?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:un})))},ft=be(76621),st=be(91773),rt=be(28802),Tt=be(85804),Mt=Object.defineProperty,yt=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Qt=(Wt,Gt,Ft)=>Gt in Wt?Mt(Wt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Wt[Gt]=Ft,vn=(Wt,Gt)=>{for(var Ft in Gt||(Gt={}))Bn.call(Gt,Ft)&&Qt(Wt,Ft,Gt[Ft]);if(Nt)for(var Ft of Nt(Gt))On.call(Gt,Ft)&&Qt(Wt,Ft,Gt[Ft]);return Wt},lt=(Wt,Gt)=>yt(Wt,Dt(Gt));const Ge={labelCol:{span:4},wrapperCol:{span:20}};var Ne=({callback:Wt,onCancel:Gt})=>{function Ft(un){Wt(un)}return ve.createElement(st.default,lt(vn({},Ge),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ft,style:{width:500}}),ve.createElement(st.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ve.createElement(rt.default,null)),ve.createElement(st.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ve.createElement(rt.default,null)),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(Tt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(Tt.ZP,{type:"ghost",onClick:Gt},"\u53D6\u6D88")))},Nn=be(57444),Xn=be(70859),Xt=be(62844),ai=be(71230),xn=be(63205),gi=be(67294),Zt=({callback:Wt,onCancel:Gt})=>{const Ft=document.createElement("canvas"),un=Ft.getContext("2d");Ft.width=1e3,Ft.height=800,un.fillStyle="#ffffff",un.fillRect(0,0,Ft.width,Ft.height);const Ti=Ft.toDataURL("image/png");return gi.createElement(Xt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},gi.createElement(ai.Z,{style:{height:"100vh"}},gi.createElement(xn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ti,visible:!0,title:String(Date.now())},onOk:Ri=>{Wt({src:Ri.url})},onClose:Gt})))},Ct=be(23495);function qt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(qt,go.CommandHandler),qt.prototype.canAlignSelection=function(){var Wt=this.diagram;return!(Wt===null||Wt.isReadOnly||Wt.isModelReadOnly||Wt.selection.count<2)},qt.prototype.alignLeft=function(){var Wt=this.diagram;Wt.startTransaction("aligning left");var Gt=1/0;Wt.selection.each(function(Ft){Ft instanceof go.Link||(Gt=Math.min(Ft.position.x,Gt))}),Wt.selection.each(function(Ft){Ft instanceof go.Link||Ft.move(new go.Point(Gt,Ft.position.y))}),Wt.commitTransaction("aligning left")},qt.prototype.alignRight=function(){var Wt=this.diagram;Wt.startTransaction("aligning right");var Gt=-1/0;Wt.selection.each(function(Ft){if(!(Ft instanceof go.Link)){var un=Ft.actualBounds.x+Ft.actualBounds.width;Gt=Math.max(un,Gt)}}),Wt.selection.each(function(Ft){Ft instanceof go.Link||Ft.move(new go.Point(Gt-Ft.actualBounds.width,Ft.position.y))}),Wt.commitTransaction("aligning right")},qt.prototype.alignTop=function(){var Wt=this.diagram;Wt.startTransaction("alignTop");var Gt=1/0;Wt.selection.each(function(Ft){Ft instanceof go.Link||(Gt=Math.min(Ft.position.y,Gt))}),Wt.selection.each(function(Ft){Ft instanceof go.Link||Ft.move(new go.Point(Ft.position.x,Gt))}),Wt.commitTransaction("alignTop")},qt.prototype.alignBottom=function(){var Wt=this.diagram;Wt.startTransaction("aligning bottom");var Gt=-1/0;Wt.selection.each(function(Ft){if(!(Ft instanceof go.Link)){var un=Ft.actualBounds.y+Ft.actualBounds.height;Gt=Math.max(un,Gt)}}),Wt.selection.each(function(Ft){Ft instanceof go.Link||Ft.move(new go.Point(Ft.actualBounds.x,Gt-Ft.actualBounds.height))}),Wt.commitTransaction("aligning bottom")},qt.prototype.alignCenterX=function(){var Wt=this.diagram,Gt=Wt.selection.first();if(Gt){Wt.startTransaction("aligning Center X");var Ft=Gt.actualBounds.x+Gt.actualBounds.width/2;Wt.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(Ft-un.actualBounds.width/2,un.actualBounds.y))}),Wt.commitTransaction("aligning Center X")}},qt.prototype.alignCenterY=function(){var Wt=this.diagram,Gt=Wt.selection.first();if(Gt){Wt.startTransaction("aligning Center Y");var Ft=Gt.actualBounds.y+Gt.actualBounds.height/2;Wt.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(un.actualBounds.x,Ft-un.actualBounds.height/2))}),Wt.commitTransaction("aligning Center Y")}},qt.prototype.alignColumn=function(Wt){var Gt=this.diagram;Gt.startTransaction("align Column"),Wt===void 0&&(Wt=0),Wt=parseFloat(Wt);var Ft=new Array;Gt.selection.each(function(Yt){Yt instanceof go.Link||Ft.push(Yt)});for(var un=0;un<Ft.length-1;un++){var Ti=Ft[un],Ri=Ti.actualBounds.y+Ti.actualBounds.height+Wt,di=Ft[un+1];di.move(new go.Point(Ti.actualBounds.x,Ri))}Gt.commitTransaction("align Column")},qt.prototype.alignRow=function(Wt){Wt===void 0&&(Wt=0),Wt=parseFloat(Wt);var Gt=this.diagram;Gt.startTransaction("align Row");var Ft=new Array;Gt.selection.each(function(Yt){Yt instanceof go.Link||Ft.push(Yt)});for(var un=0;un<Ft.length-1;un++){var Ti=Ft[un],Ri=Ti.actualBounds.x+Ti.actualBounds.width+Wt,di=Ft[un+1];di.move(new go.Point(Ri,Ti.actualBounds.y))}Gt.commitTransaction("align Row")},qt.prototype.canRotate=function(Wt){var Gt=this.diagram;return!(Gt===null||Gt.isReadOnly||Gt.isModelReadOnly||Gt.selection.count<1)},qt.prototype.rotate=function(Wt){Wt===void 0&&(Wt=90);var Gt=this.diagram;Gt.startTransaction("rotate "+Wt.toString());var Gt=this.diagram;Gt.selection.each(function(Ft){Ft instanceof go.Link||Ft instanceof go.Group||(Ft.angle+=Wt)}),Gt.commitTransaction("rotate "+Wt.toString())},qt.prototype.pullToFront=function(){var Wt=this.diagram;Wt.startTransaction("pullToFront");var Gt=new go.Map;Wt.selection.each(function(Ft){Gt.set(Ft.layer,0)}),Gt.iteratorKeys.each(function(Ft){var un=0;Ft.parts.each(function(Ti){if(!Ti.isSelected){var Ri=Ti.zOrder;isNaN(Ri)?Ti.zOrder=0:un=Math.max(un,Ri)}}),Gt.set(Ft,un)}),Wt.selection.each(function(Ft){qt._assignZOrder(Ft,Gt.get(Ft.layer)+1)}),Wt.commitTransaction("pullToFront")},qt.prototype.pushToBack=function(){var Wt=this.diagram;Wt.startTransaction("pushToBack");var Gt=new go.Map;Wt.selection.each(function(Ft){Gt.set(Ft.layer,0)}),Gt.iteratorKeys.each(function(Ft){var un=0;Ft.parts.each(function(Ti){if(!Ti.isSelected){var Ri=Ti.zOrder;isNaN(Ri)?Ti.zOrder=0:un=Math.min(un,Ri)}}),Gt.set(Ft,un)}),Wt.selection.each(function(Ft){qt._assignZOrder(Ft,Gt.get(Ft.layer)-1-qt._findGroupDepth(Ft))}),Wt.commitTransaction("pushToBack")},qt._assignZOrder=function(Wt,Gt,Ft){Ft===void 0&&(Ft=Wt),Wt.layer===Ft.layer&&(Wt.zOrder=Gt),Wt instanceof go.Group&&Wt.memberParts.each(function(un){qt._assignZOrder(un,Gt+1,Ft)})},qt._findGroupDepth=function(Wt){if(Wt instanceof go.Group){var Gt=0;return Wt.memberParts.each(function(Ft){Gt=Math.max(Gt,qt._findGroupDepth(Ft))}),Gt+1}else return 0},qt.prototype.doKeyDown=function(){var Wt=this.diagram;if(Wt!==null){var Gt=Wt.lastInput;if(Gt.key==="Up"||Gt.key==="Down"||Gt.key==="Left"||Gt.key==="Right"){var Ft=this.arrowKeyBehavior;if(Ft==="none")return;if(Ft==="select"){this._arrowKeySelect();return}else if(Ft==="move"){this._arrowKeyMove();return}else if(Ft==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},qt.prototype._getAllParts=function(){var Wt=new Array;return this.diagram.nodes.each(function(Gt){Wt.push(Gt)}),this.diagram.parts.each(function(Gt){Wt.push(Gt)}),Wt},qt.prototype._arrowKeyMove=function(){var Wt=this.diagram,Gt=Wt.lastInput,Ft=0,un=0;if(Gt.control||Gt.meta)Ft=1,un=1;else if(Wt.grid!==null){var Ti=Wt.grid.gridCellSize;un=Ti.width,Ft=Ti.height}Wt.startTransaction("arrowKeyMove"),Wt.selection.each(function(Ri){Gt.key==="Up"?Ri.move(new go.Point(Ri.actualBounds.x,Ri.actualBounds.y-Ft)):Gt.key==="Down"?Ri.move(new go.Point(Ri.actualBounds.x,Ri.actualBounds.y+Ft)):Gt.key==="Left"?Ri.move(new go.Point(Ri.actualBounds.x-un,Ri.actualBounds.y)):Gt.key==="Right"&&Ri.move(new go.Point(Ri.actualBounds.x+un,Ri.actualBounds.y))}),Wt.commitTransaction("arrowKeyMove")},qt.prototype._arrowKeySelect=function(){var Wt=this.diagram,Gt=Wt.lastInput,Ft=null;Gt.key==="Up"?Ft=this._findNearestPartTowards(270):Gt.key==="Down"?Ft=this._findNearestPartTowards(90):Gt.key==="Left"?Ft=this._findNearestPartTowards(180):Gt.key==="Right"&&(Ft=this._findNearestPartTowards(0)),Ft!==null&&(Gt.shift?Ft.isSelected=!0:Gt.control||Gt.meta?Ft.isSelected=!Ft.isSelected:Wt.select(Ft))},qt.prototype._findNearestPartTowards=function(Wt){var Gt=this.diagram.selection.first();if(Gt===null)return null;for(var Ft=Gt.actualBounds.center,un=this._getAllParts(),Ti=1/0,Ri=Gt,di=0;di<un.length;di++){var Yt=un[di];if(Yt!==Gt&&Yt.canSelect()){var Hn=Yt.actualBounds.center,En=Ft.directionPoint(Hn),Fr=this._angleCloseness(En,Wt);if(Fr<=45){var si=Ft.distanceSquaredPoint(Hn);si*=1+Math.sin(Fr*Math.PI/180),si<Ti&&(Ti=si,Ri=Yt)}}}return Ri},qt.prototype._angleCloseness=function(Wt,Gt){return Math.min(Math.abs(Gt-Wt),Math.min(Math.abs(Gt+360-Wt),Math.abs(Gt-360-Wt)))},qt.prototype._arrowKeyTree=function(){var Wt=this.diagram,Gt=Wt.selection.first();if(Gt instanceof go.Node){var Ft=Wt.lastInput;if(Ft.key==="Right"){if(!Gt.isTreeLeaf)if(!Gt.isTreeExpanded)Wt.commandHandler.canExpandTree(Gt)&&Wt.commandHandler.expandTree(Gt);else{var un=this._sortTreeChildrenByY(Gt).first();un!==null&&Wt.select(un)}}else if(Ft.key==="Left")if(!Gt.isTreeLeaf&&Gt.isTreeExpanded)Wt.commandHandler.canCollapseTree(Gt)&&Wt.commandHandler.collapseTree(Gt);else{var Ti=Gt.findTreeParentNode();Ti!==null&&Wt.select(Ti)}else if(Ft.key==="Up"){var Ti=Gt.findTreeParentNode();if(Ti!==null){var Ri=this._sortTreeChildrenByY(Ti),di=Ri.indexOf(Gt);if(di>0){for(var Yt=Ri.elt(di-1);Yt!==null&&Yt.isTreeExpanded&&!Yt.isTreeLeaf;){var Hn=this._sortTreeChildrenByY(Yt);Yt=Hn.last()}Yt!==null&&Wt.select(Yt)}else Wt.select(Ti)}}else if(Ft.key==="Down")if(Gt.isTreeExpanded&&!Gt.isTreeLeaf){var un=this._sortTreeChildrenByY(Gt).first();un!==null&&Wt.select(un)}else for(;Gt!==null;){var Ti=Gt.findTreeParentNode();if(Ti===null)break;var Ri=this._sortTreeChildrenByY(Ti),di=Ri.indexOf(Gt);if(di<Ri.length-1){Wt.select(Ri.elt(di+1));break}else Gt=Ti}var En=Wt.selection.first();En!==null&&Wt.scrollToRect(En.actualBounds)}},qt.prototype._sortTreeChildrenByY=function(Wt){var Gt=new go.List().addAll(Wt.findTreeChildrenNodes());return Gt.sort(function(Ft,un){var Ti=Ft.location,Ri=un.location;return Ti.y<Ri.y?-1:Ti.y>Ri.y?1:Ti.x<Ri.x?-1:Ti.x>Ri.x?1:0}),Gt},qt.prototype.copyToClipboard=function(Wt){go.CommandHandler.prototype.copyToClipboard.call(this,Wt),this._lastPasteOffset.set(this.pasteOffset)},qt.prototype.pasteFromClipboard=function(){var Wt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Wt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Wt},Object.defineProperty(qt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Wt){if(Wt!=="move"&&Wt!=="select"&&Wt!=="scroll"&&Wt!=="tree"&&Wt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Wt);this._arrowKeyBehavior=Wt}}),Object.defineProperty(qt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Wt){if(!(Wt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Wt);this._pasteOffset.set(Wt)}});var hi=qt,Kt=be(18023),Xe=be(15746),Le=be(33170),Me={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},We=be(52262),$e=be(67294),Be=(Wt,Gt,Ft)=>new Promise((un,Ti)=>{var Ri=Hn=>{try{Yt(Ft.next(Hn))}catch(En){Ti(En)}},di=Hn=>{try{Yt(Ft.throw(Hn))}catch(En){Ti(En)}},Yt=Hn=>Hn.done?un(Hn.value):Promise.resolve(Hn.value).then(Ri,di);Yt((Ft=Ft.apply(Wt,Gt)).next())});function ut({onCancel:Wt,callback:Gt}){let Ft=(0,ve.useRef)(),un=(0,ve.useRef)(),Ti=(0,ve.useRef)(),Ri=(0,ve.useRef)(!1);const di=(0,ve.useRef)(!1),[Yt,Hn]=(0,ve.useState)(0);function En(){const si=Ct.bx.make,tn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Ft.current=new Ct.S0(un.current,{padding:20,grid:si(Ct.s_,"Grid",si(Ct.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),si(Ct.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ln=>{var Yo=ln.diagram.commandHandler.addTopLevelParts(ln.diagram.selection,!0);Yo||ln.diagram.currentTool.doCancel()},commandHandler:si(hi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ln=>{var Yo=ln.subject;Yo.location=Yo.location.copy().snapToGridPoint(ln.diagram.grid.gridOrigin,ln.diagram.grid.gridCellSize),setTimeout(()=>{ln.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ln=>{var Yo=ln.subject;setTimeout(()=>{ln.diagram.commandHandler.editTextBlock()})},LinkRelinked:ln=>{var Yo=ln.parameter.part;Yo.invalidateConnectedLinks();var Va=ln.subject;ln.diagram.toolManager.linkingTool.isForwards?Va.toNode.invalidateConnectedLinks():Va.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ft.current.nodeTemplate=si(Ct.NB,"Auto",{locationSpot:Ct.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ct.$u(120,60),minSize:new Ct.$u(40,40),resizable:!0,resizeCellSize:new Ct.$u(10,10),rotatable:!0},new Ct.KX("location","loc",Ct.E9.parse).makeTwoWay(Ct.E9.stringify),new Ct.KX("desiredSize","size",Ct.$u.parse).makeTwoWay(Ct.$u.stringify),si(Ct.bn,{name:"SHAPE",fill:tn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ct.z6.AllSides,toSpot:Ct.z6.AllSides},new Ct.KX("figure"),new Ct.KX("fill"),new Ct.KX("stroke","borderColor"),new Ct.KX("strokeWidth","thickness"),new Ct.KX("strokeDashArray","dash")),si(Ct.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),si(Ct.al,{margin:1,textAlign:"center",overflow:Ct.al.OverflowEllipsis,editable:!0},new Ct.KX("text").makeTwoWay(),new Ct.KX("stroke","color"))),Ft.current.nodeTemplate.toolTip=si("ToolTip",si(Ct.s_,"Vertical",{maxSize:new Ct.$u(200,NaN)},si(Ct.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ct.KX("text")),si(Ct.al,{font:"10pt sans-serif",textAlign:"center"},new Ct.KX("text","details"))));function Vi(ln,Yo){var Va=(Ao,ms)=>{Ao.handled=!0,Ao.diagram.model.commit(Ba=>{var $a=ms.part.adornedPart,Er=new Ct.E9().setRectSpot($a.actualBounds,ln);Er.subtract($a.location),Er.scale(2,2),Er.x+=Math.sign(Er.x)*130,Er.y+=Math.sign(Er.y)*130,Er.add($a.location),Er.snapToGridPoint(Ao.diagram.grid.gridOrigin,Ao.diagram.grid.gridCellSize);var uo=Ba.copyNodeData($a.data);Ba.setGroupKeyForNodeData(uo,Ba.getGroupKeyForNodeData($a.data)),Ba.addNodeData(uo);var So={from:$a.key,to:Ba.getKeyForNodeData(uo)};Ba.addLinkData(So);var _n=Ao.diagram.findNodeForData(uo);_n.location=Er,Ao.diagram.select(_n),setTimeout(()=>{Ao.diagram.commandHandler.editTextBlock()},20)})};return si(Ct.bn,{figure:Yo,alignment:ln,alignmentFocus:ln.opposite(),width:ln.equals(Ct.z6.Top)||ln.equals(Ct.z6.Bottom)?25:18,height:ln.equals(Ct.z6.Top)||ln.equals(Ct.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:(Ao,ms)=>ms.fill="dodgerblue",mouseLeave:(Ao,ms)=>ms.fill="orange",isActionable:!0,click:Va,contextClick:Va})}function Hr(ln){return si(Ct.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Yo,Va)=>Va.fill="dodgerblue",mouseLeave:(Yo,Va)=>Va.fill="orange",click:(Yo,Va)=>{Yo.diagram.commandHandler.showContextMenu(Va.part.adornedPart)}},ln||{})}Ft.current.nodeTemplate.selectionAdornmentTemplate=si(Ct.uz,"Spot",si(Ct.Vm,{padding:10}),Vi(Ct.z6.Top,"TriangleUp"),Vi(Ct.z6.Left,"TriangleLeft"),Vi(Ct.z6.Right,"TriangleRight"),Vi(Ct.z6.Bottom,"TriangleDown"),Hr({alignment:new Ct.z6(.75,0)}));function Or(ln,Yo){return(Va,Ao)=>{Va.handled=!0,Va.diagram.model.commit(ms=>{ms.set(Ao.part.adornedPart.data,ln,Yo)})}}function wn(ln,Yo){return Yo||(Yo="color"),si(Ct.bn,{width:16,height:16,stroke:"lightgray",fill:ln,margin:1,background:"transparent",mouseEnter:(Va,Ao)=>Ao.stroke="dodgerblue",mouseLeave:(Va,Ao)=>Ao.stroke="lightgray",click:Or(Yo,ln),contextClick:Or(Yo,ln)})}function or(){return[si("ContextMenuButton",si(Ct.s_,"Horizontal",wn(tn.white,"fill"),wn(tn.beige,"fill"),wn(tn.extralightblue,"fill"),wn(tn.extralightred,"fill"))),si("ContextMenuButton",si(Ct.s_,"Horizontal",wn(tn.lightgray,"fill"),wn(tn.lightgreen,"fill"),wn(tn.lightblue,"fill"),wn(tn.lightred,"fill")))]}function Xo(){return[si("ContextMenuButton",si(Ct.s_,"Horizontal",wn(tn.black),wn(tn.green),wn(tn.blue),wn(tn.red))),si("ContextMenuButton",si(Ct.s_,"Horizontal",wn(tn.white),wn(tn.magenta),wn(tn.purple),wn(tn.orange)))]}function Na(ln,Yo){return Yo||(Yo="thickness"),si(Ct.bn,"LineH",{width:16,height:16,strokeWidth:ln,margin:1,background:"transparent",mouseEnter:(Va,Ao)=>Ao.background="dodgerblue",mouseLeave:(Va,Ao)=>Ao.background="transparent",click:Or(Yo,ln),contextClick:Or(Yo,ln)})}function aa(ln,Yo){return Yo||(Yo="dash"),si(Ct.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ln,margin:1,background:"transparent",mouseEnter:(Va,Ao)=>Ao.background="dodgerblue",mouseLeave:(Va,Ao)=>Ao.background="transparent",click:Or(Yo,ln),contextClick:Or(Yo,ln)})}function hr(){return[si("ContextMenuButton",si(Ct.s_,"Horizontal",Na(1),Na(2),Na(3),Na(4))),si("ContextMenuButton",si(Ct.s_,"Horizontal",aa(null),aa([2,4]),aa([4,4])))]}function Nr(ln,Yo){return Yo||(Yo="figure"),si(Ct.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ln,margin:1,background:"transparent",mouseEnter:(Va,Ao)=>Ao.fill="dodgerblue",mouseLeave:(Va,Ao)=>Ao.fill="lightgray",click:Or(Yo,ln),contextClick:Or(Yo,ln)})}Ft.current.nodeTemplate.contextMenu=si("ContextMenu",si("ContextMenuButton",si(Ct.s_,"Horizontal",Nr("Rectangle"),Nr("RoundedRectangle"),Nr("Ellipse"),Nr("Diamond"))),si("ContextMenuButton",si(Ct.s_,"Horizontal",Nr("Parallelogram2"),Nr("ManualOperation"),Nr("Procedure"),Nr("Cylinder1"))),si("ContextMenuButton",si(Ct.s_,"Horizontal",Nr("Terminator"),Nr("CreateRequest"),Nr("Document"),Nr("TriangleDown"))),or(),Xo(),hr()),Ft.current.groupTemplate=si(Ct.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ct.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ln,Yo)=>{var Va=Yo.addMembers(Yo.diagram.selection,!0);Va||Yo.diagram.currentTool.doCancel()},avoidable:!1},new Ct.KX("location","loc",Ct.E9.parse).makeTwoWay(Ct.E9.stringify),si(Ct.s_,"Auto",{name:"BODY"},si(Ct.bn,{parameter1:10,fill:tn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ct.z6.AllSides,toSpot:Ct.z6.AllSides},new Ct.KX("fill"),new Ct.KX("stroke","color"),new Ct.KX("strokeWidth","thickness"),new Ct.KX("strokeDashArray","dash")),si(Ct.Vm,{background:"transparent",margin:20})),si(Ct.al,{alignment:Ct.z6.Top,alignmentFocus:Ct.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ct.KX("text"),new Ct.KX("stroke","color"))),Ft.current.groupTemplate.selectionAdornmentTemplate=si(Ct.uz,"Spot",si(Ct.s_,"Auto",si(Ct.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),si(Ct.Vm,{margin:1.5})),Hr({alignment:Ct.z6.TopRight,alignmentFocus:Ct.z6.BottomRight})),Ft.current.groupTemplate.contextMenu=si("ContextMenu",or(),Xo(),hr()),Ft.current.linkTemplate=si(Ct.rU,{layerName:"Foreground",routing:Ct.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ct.KX("fromSpot","fromSpot",Ct.z6.parse),new Ct.KX("toSpot","toSpot",Ct.z6.parse),new Ct.KX("fromShortLength","dir",ln=>ln>=1?10:0),new Ct.KX("toShortLength","dir",ln=>ln>=1?10:0),new Ct.KX("points").makeTwoWay(),si(Ct.bn,{strokeWidth:2},new Ct.KX("stroke","color"),new Ct.KX("strokeWidth","thickness"),new Ct.KX("strokeDashArray","dash")),si(Ct.bn,{segmentIndex:0,segmentOffset:new Ct.E9(15,0),segmentOrientation:Ct.rU.OrientAlong,alignmentFocus:Ct.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ct.KX("fill","color"),new Ct.KX("visible","dir",ln=>ln===1)),si(Ct.bn,{segmentIndex:-1,segmentOffset:new Ct.E9(-10,6),segmentOrientation:Ct.rU.OrientPlus90,alignmentFocus:Ct.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ct.KX("fill","color"),new Ct.KX("visible","dir",ln=>ln>=1),new Ct.KX("width","thickness",ln=>7+3*ln),new Ct.KX("height","thickness",ln=>7+3*ln),new Ct.KX("segmentOffset","thickness",ln=>new Ct.E9(-15,4+1.5*ln))),si(Ct.bn,{segmentIndex:0,segmentOffset:new Ct.E9(15,-6),segmentOrientation:Ct.rU.OrientMinus90,alignmentFocus:Ct.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ct.KX("fill","color"),new Ct.KX("visible","dir",ln=>ln===2),new Ct.KX("width","thickness",ln=>7+3*ln),new Ct.KX("height","thickness",ln=>7+3*ln),new Ct.KX("segmentOffset","thickness",ln=>new Ct.E9(-15,4+1.5*ln))),si(Ct.al,{alignmentFocus:new Ct.z6(0,1,-4,0),editable:!0},new Ct.KX("text").makeTwoWay(),new Ct.KX("stroke","color"))),Ft.current.linkTemplate.selectionAdornmentTemplate=si(Ct.uz,si(Ct.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:io(2)},new Ct.KX("pathPattern","thickness",io)),Hr({alignmentFocus:new Ct.z6(0,0,-6,-4)}));function io(ln){return si(Ct.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ln+4).toString()+" H3"})}function va(ln){var Yo="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ln===0?Yo="M0 0 M16 16 M0 8 L16 8":ln===2&&(Yo="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),si(Ct.bn,{geometryString:Yo,margin:2,background:"transparent",mouseEnter:(Va,Ao)=>Ao.background="dodgerblue",mouseLeave:(Va,Ao)=>Ao.background="transparent",click:Or("dir",ln),contextClick:Or("dir",ln)})}function Ho(ln){var Yo=(Va,Ao)=>{Va.handled=!0,Va.diagram.model.commit(ms=>{var Ba=Ao.part.adornedPart;ms.set(Ba.data,ln?"toSpot":"fromSpot",Ct.z6.stringify(Ct.z6.AllSides)),(ln?Ba.toNode:Ba.fromNode).invalidateConnectedLinks()})};return si(Ct.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Va,Ao)=>Ao.background="dodgerblue",mouseLeave:(Va,Ao)=>Ao.background="transparent",click:Yo,contextClick:Yo})}function vi(ln,Yo){var Va=0,Ao=Ct.z6.RightSide;ln.equals(Ct.z6.Top)?(Va=270,Ao=Ct.z6.TopSide):ln.equals(Ct.z6.Left)?(Va=180,Ao=Ct.z6.LeftSide):ln.equals(Ct.z6.Bottom)&&(Va=90,Ao=Ct.z6.BottomSide),Yo||(Va-=180);var ms=(Ba,$a)=>{Ba.handled=!0,Ba.diagram.model.commit(Er=>{var uo=$a.part.adornedPart;Er.set(uo.data,Yo?"toSpot":"fromSpot",Ct.z6.stringify(Ao)),(Yo?uo.toNode:uo.fromNode).invalidateConnectedLinks()})};return si(Ct.bn,{alignment:ln,alignmentFocus:ln.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Va,background:"transparent",mouseEnter:(Ba,$a)=>$a.background="dodgerblue",mouseLeave:(Ba,$a)=>$a.background="transparent",click:ms,contextClick:ms})}Ft.current.linkTemplate.contextMenu=si("ContextMenu",Xo(),hr(),si("ContextMenuButton",si(Ct.s_,"Horizontal",va(0),va(1),va(2))),si("ContextMenuButton",si(Ct.s_,"Horizontal",si(Ct.s_,"Spot",Ho(!1),vi(Ct.z6.Top,!1),vi(Ct.z6.Left,!1),vi(Ct.z6.Right,!1),vi(Ct.z6.Bottom,!1)),si(Ct.s_,"Spot",{margin:new Ct.Zt(0,0,0,2)},Ho(!0),vi(Ct.z6.Top,!0),vi(Ct.z6.Left,!0),vi(Ct.z6.Right,!0),vi(Ct.z6.Bottom,!0)))));const lo=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var al=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function el(ln){return console.log("shapeName:",ln),al.indexOf(ln)>=0}var Ns=new Ct.YI(Ti.current,{maxSelectionCount:1,linkTemplate:si(Ct.rU,{locationSpot:Ct.z6.Center,selectionAdornmentTemplate:si(Ct.uz,"Link",{locationSpot:Ct.z6.Center},si(Ct.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),si(Ct.bn,{toArrow:"Standard",stroke:null}))},{routing:Ct.rU.AvoidsNodes,curve:Ct.rU.JumpOver,corner:5,toShortLength:4},new Ct.KX("points"),si(Ct.bn,{isPanelMain:!0,strokeWidth:2}),si(Ct.bn,{toArrow:"Standard",stroke:null})),model:new Ct.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ct.bn.getFigureGenerators().toArray().map(ln=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ln.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ft.current.addDiagramListener("TextEdited",function(ln){var Yo;const Va=ln.subject.part;var Ao=(Yo=document.activeElement)==null?void 0:Yo.value;typeof Ao=="string"&&Ao.trim()===""&&Ft.current.model.commit(function(ms){ms.set(Va.data,"text","\u672A\u547D\u540D"),Ft.current.commandHandler.stopCommand()},"increment")}),Ns.nodeTemplate=si(Ct.NB,"Auto",{locationSpot:Ct.z6.Center},new Ct.KX("location","location",Ct.E9.parse).makeTwoWay(Ct.E9.stringify),si(Ct.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ct.KX("stroke").makeTwoWay(),new Ct.KX("fill").makeTwoWay(),new Ct.KX("figure")),si(Ct.al,{margin:new Ct.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ct.$u(16,16),maxSize:new Ct.$u(10,NaN),textAlign:"center",editable:!0},new Ct.KX("key").makeTwoWay())),setTimeout(()=>{Ft.current.grid=si(Ct.s_,"Grid",si(Ct.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),si(Ct.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ft.current.grid.visible=!0,Ft.current.grid.gridCellStroke="darkgray",Ft.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ft.current,Ft.current}const Fr=()=>Be(this,null,function*(){var si,tn=Ft.current.makeImage();const Vi=yield(0,Le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:tn.src,file_data:JSON.stringify({login:(si=(0,We.eY)())==null?void 0:si.login,data:JSON.parse(Ft.current.model.toJson())})}});Gt({src:Vi.url})});return(0,ve.useEffect)(()=>(setTimeout(()=>{En()},500),Hn(Yt+1),()=>{Ft.current=null}),[]),$e.createElement("div",{ref:di,className:"body-overflow-initial"},$e.createElement(Xt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Yt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:$e.createElement(ai.Z,null,$e.createElement(Xe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),$e.createElement(Xe.Z,{onClick:()=>{var si,tn,Vi=Ft.current.selection.first();if(Ri.current=!Ri.current,document.activeElement&&Vi){let Hr=(tn=(si=document.activeElement)==null?void 0:si.value)==null?void 0:tn.trim();typeof Hr=="string"&&Ft.current.model.commit(function(Or){Or.set(Vi.data,"text",Hr||"\u672A\u547D\u540D"),Ft.current.commandHandler.stopCommand()},"increment")}Hn(Yt+1)}},$e.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Wt},$e.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Ri.current?"none":"block"},className:Me.flowChartWrp},$e.createElement("div",{style:{display:"flex",height:"100%"}},$e.createElement("div",{style:{width:"300px",height:"100%"}},$e.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),$e.createElement("div",{style:{height:"calc(100% - 50px)"},className:Me.myPaletteDiv,ref:Ti})),$e.createElement("div",{style:{flex:1,position:"relative"}},$e.createElement("div",{ref:un,style:{height:"80vh"}}))),$e.createElement("div",{className:"tr"},$e.createElement(Tt.ZP,{size:"large",onClick:Fr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Vn=ut,In=be(98813),Cn=be(37720);const Pn=In.ZP.Group,oi={margin:"0 8px"};var mn=({callback:Wt,onCancel:Gt})=>{function Ft(un){Wt(un)}return ve.createElement(st.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ft},ve.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ve.createElement("span",{style:oi},"\u5355\u5143\u683C\u6570\uFF1A"),ve.createElement("span",{style:oi},"\u884C\u6570"),ve.createElement(st.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ve.createElement(Cn.Z,null)),ve.createElement("span",{style:oi},"\u5217\u6570"),ve.createElement(st.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ve.createElement(Cn.Z,null))),ve.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ve.createElement("span",{style:oi},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ve.createElement(st.default.Item,{name:"align"},ve.createElement(Pn,null,ve.createElement(In.ZP,{value:"default"},ve.createElement("i",{className:"fa fa-align-justify"})),ve.createElement(In.ZP,{value:"left"},ve.createElement("i",{className:"fa fa-align-left"})),ve.createElement(In.ZP,{value:"center"},ve.createElement("i",{className:"fa fa-align-center"})),ve.createElement(In.ZP,{value:"right"},ve.createElement("i",{className:"fa fa-align-right"}))))),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(Tt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(Tt.ZP,{type:"ghost",onClick:Gt},"\u53D6\u6D88")))},bi=be(59637),_i=be(61016),Br=be.n(_i),ki=(0,ve.forwardRef)(({use3d:Wt,width:Gt,height:Ft,callback:un,showSaveButton:Ti},Ri)=>{const di=(0,ve.useRef)(),Yt=(0,ve.useRef)(),[Hn,En]=(0,ve.useState)(!1),Fr=(0,ve.useRef)({id:di,appName:"graphing",width:Gt||1e3,height:Ft||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ve.useEffect)(()=>{Yt.current=new(Br())(Fr.current,!0),window.onload=function(){Yt.current.inject("applet_container")}},[]);const si=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return un&&un(tn),tn};return(0,ve.useEffect)(()=>{Fr.current.appName=Hn?"3D":"graphing",Yt.current.inject("applet_container")},[Hn]),(0,ve.useEffect)(()=>{En(Wt)},[Wt]),(0,ve.useImperativeHandle)(Ri,()=>({getImgData:si})),ve.createElement(ve.Fragment,null,ve.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:di}),ve.createElement(ai.Z,{align:"middle"},ve.createElement(Xe.Z,{flex:1},ve.createElement(bi.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Hn,onChange:tn=>En(tn)})),ve.createElement(Xe.Z,null,ve.createElement(Tt.ZP,{size:"large",onClick:si,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Xr=be(36527),Ki=be(2453);const lr="link",ar="upload-image",kn="add-flowchart",Bi="draw-image",ea="add-flowchart",Zn="code-block",Wr="add-table",ra="------------",sa={default:ra,left:`:${ra}`,center:`:${ra}:`,right:`${ra}:`};var Wa=be(99914);function ma(){}let Ha=0;const da=1e4,la="\u2581",No="@\u2581\u2581@",ni="@\u2581@",Ee=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,pn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function hn(Wt){return/^\d+$/.test(Wt)?`${Wt}px`:Wt}const Jn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[Jn+"-B"]:"bold",[Jn+"-I"]:"italic"},nn={[lr]:"\u6DFB\u52A0\u94FE\u63A5",[Zn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ar]:"\u6DFB\u52A0\u56FE\u7247",[Bi]:"\u6DFB\u52A0\u753B\u56FE",[kn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ii=({defaultValue:Wt="",onChange:Gt,width:Ft="100%",height:un=400,miniToolbar:Ti=!1,isFocus:Ri=!1,watch:di,insertTemp:Yt,mode:Hn="markdown",id:En="markdown-editor-id",showResizeBar:Fr=!1,noStorage:si=!1,showNullButton:tn=!1,showNullProgramButton:Vi=!1,hidetoolBar:Hr=!1,fullScreen:Or=!1,onBlur:wn,onCMBeforeChange:or,onFullScreen:Xo,className:Na="",disablePaste:aa=!1,disabled:hr=!1,disabledFill:Nr=!1,placeholder:io="",values:va="",extraUse:Ho})=>{const[vi,lo]=(0,ve.useState)(null),[al,el]=(0,ve.useState)(Wt),[Ns,ln]=(0,ve.useState)(di),[Yo,Va]=(0,ve.useState)(Or),[Ao,ms]=(0,ve.useState)(""),[Ba,$a]=(0,ve.useState)(0),[Er,uo]=(0,ve.useState)(un),[So,_n]=(0,ve.useState)(!1),[ka,An]=(0,ve.useState)(0),[Po,Ws]=(0,ve.useState)(0),ds=(0,ve.useRef)(),kl=(0,ve.useRef)(),Ss=(0,ve.useRef)(),Ua=(0,ve.useRef)();(0,ve.useEffect)(()=>{const Xi=window.scrollY||window.pageYOffset;el(va),vi==null||vi.setValue(va),window.scrollTo(0,Xi)},[va]),(0,ve.useEffect)(()=>{Xo==null||Xo(Yo)},[Yo]),(0,ve.useEffect)(()=>{if(ds.current){let Xi=function(pr,fn){var eo;if(aa){fn.preventDefault();return}const so=fn.clipboardData;if(so){const ya=so.types.toString(),fa=so.items;if(ya==="Files"||so.types.indexOf("Files")>-1){if(fn.preventDefault(),Hn=="stex")return;try{let Ia=fa[1];((eo=fa[0])==null?void 0:eo.kind)==="file"&&(Ia=fa[0]);const ns=Ia.getAsFile(),Us=ns.name.split(".").pop();(0,Xn.I)(ns,Ds=>{var fl,Hs,cn;Ds.id?((fl=ns==null?void 0:ns.type)==null?void 0:fl.indexOf("image"))>-1?Si.replaceSelection(`<img width="100%" src="/api/attachments/${Ds.id}?type=${Ds.content_type})" alt="" />`):((Hs=ns==null?void 0:ns.type)==null?void 0:Hs.indexOf("video"))>-1?Si.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ds.id}"></video>`):((cn=ns==null?void 0:ns.type)==null?void 0:cn.indexOf("pdf"))>-1?Si.replaceSelection(`<a href="/api/attachments/${Ds.id}?type=${ns.type}&disposition=inline" target="_blank">${ns.name}</a>`):pn.includes(Us)?Si.replaceSelection(`<a href="/api/attachments/${Ds.id}?type=office&disposition=inline" target="_blank">${ns.name}</a>`):Si.replaceSelection(`[${ns.name}](/api/attachments/${Ds.id}?type=${Ds.content_type})`):(Ds==null?void 0:Ds.status)===401&&(document.location.href="/user/login")})}catch(Ia){Ki.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Si=Pt().fromTextArea(ds.current,{mode:Hn,lineNumbers:!Ti,lineWrapping:!0,value:Wt,autoCloseTags:!0,autoCloseBrackets:!0});return Si.on("keyup",function(pr,fn){fn.keyCode===8&&(pr.getValue()==""?Si.setOption("placeholder",io):Si.setOption("placeholder",null))}),Si.on("keydown",function(pr,fn){if(fn.keyCode===8){var eo=tl(pr);eo&&fn.preventDefault()}}),Ri&&Si.focus(),Si.on("paste",Xi),hr&&Si.on("beforeChange",function(pr,fn){(fn.origin==="paste"||fn.origin==="+input")&&fn.cancel()}),lo(Si),()=>{Si.off("paste",Xi)}}},[]);const us=(0,ve.useCallback)(()=>{if(kl.current)try{}catch(Xi){console.log(Xi,"---- to set md editor body height")}},[Er,kl,Yo]);(0,ve.useEffect)(()=>{function Xi(){let Si=new Ut.Z(pr=>{for(let fn of pr)(fn.target.offsetHeight>0||fn.target.offsetWidth>0)&&(us(),vi.setSize("100%","100%"),vi.refresh())});return Si.observe(ds.current.parentElement),Si}if(vi){const Si=Xi();return()=>{var pr,fn;(pr=ds.current)!=null&&pr.parentElement&&Si.unobserve((fn=ds.current)==null?void 0:fn.parentElement)}}},[vi,us]),(0,ve.useEffect)(()=>{if(vi){let Xi=[];for(const[Si,pr]of Object.entries(Wn)){let fn={[Si]:()=>{ts(pr)}};Xi.push(fn),vi.addKeyMap(fn)}return()=>{for(let Si of Xi)vi.removeKeyMap(Si)}}},[vi]),(0,ve.useEffect)(()=>{Or!==Yo&&Va(Or)},[Or]),(0,Wa.Z)(()=>{if(!si&&Ba>0){let Xi=new Date().getTime(),Si=window.sessionStorage.getItem(En);Xi>=Ba+da&&(!Si||Si!==al)&&(window.sessionStorage.setItem(En,al),_n(!0))}},da),(0,ve.useEffect)(()=>{ln(di)},[vi,di]),(0,ve.useEffect)(()=>{vi&&Ri&&vi.focus()},[vi,Ri]),(0,ve.useEffect)(()=>{if(Ns&&vi){let Xi=function(pr){let fn=pr.target;if(Ua.current){let eo=fn.scrollTop/fn.scrollHeight;Ua.current.scrollTop=Ua.current.scrollHeight*eo}};const Si=vi.getScrollerElement();return Si.addEventListener("scroll",Xi),()=>{Si.removeEventListener("scroll",Xi)}}},[vi,Ns]),(0,ve.useEffect)(()=>{if(vi&&or){let Xi=function(Si,pr){or(Si,pr)};return vi.on("beforeChange",Xi),()=>{vi.off("beforeChange",Xi)}}},[vi,or]),(0,ve.useEffect)(()=>{if(vi&&wn){let Xi=function(){wn(vi.getValue())};return vi.on("blur",Xi),()=>{vi.off("blur",Xi)}}},[vi,wn]);function tl(Xi,Si){var pr=Xi.getDoc(),fn=pr.getCursor(),eo=pr.getLine(fn.line),so=eo.charAt(fn.ch-1),ya=eo.lastIndexOf("@\u2581@",fn.ch),fa=eo.lastIndexOf("@\u2581\u2581@",fn.ch),Ia=ya>fa?ya:fa,ns=ya>fa?3:4;if(No.indexOf(so)===-1)return null;if(console.log("change1:",Si,Xi,eo,fn,Ia,ya,fa,so),Ia>=0&&fn.ch-Ia<5){var Us=Ia+ns;return pr.replaceRange("",{line:fn.line,ch:Ia},{line:fn.line,ch:Us}),{line:fn.line,ch:Us}}return null}(0,ve.useEffect)(()=>{if(vi){let Xi=function(Si,pr){const fn=Si.getValue();el(fn),$a(new Date().getTime()),Si.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Gt&&(Vi?Gt(fn,Jt(fn)):Gt(fn))};return vi.on("change",Xi),()=>{vi.off("change",Xi)}}},[vi,Gt]),(0,ve.useEffect)(()=>{if(vi)if(Wt==null)vi.setValue(""),el("");else{const Xi=window.scrollY||window.pageYOffset;Wt!==vi.getValue()&&(vi.setValue(Wt),el(Wt),vi.setCursor(hr?1:vi.lineCount(),0),window.scrollTo(0,Xi))}},[vi,Wt]);const ts=(0,ve.useCallback)(Xi=>{const Si=vi.getCursor(),pr=vi.getSelection();let fn=pr.split(`
`);switch(Xi){case"bold":return vi.replaceSelection("**"+pr+"**"),pr===""&&vi.setCursor(Si.line,Si.ch+2),vi.focus();case"italic":return vi.replaceSelection("*"+pr+"*"),pr===""&&vi.setCursor(Si.line,Si.ch+1),vi.focus();case"code":return vi.replaceSelection("`"+pr+"`"),pr===""&&vi.setCursor(Si.line,Si.ch+1),vi.focus();case"inline-latex":return ms("inline-latex"),vi.focus();case"latex":return vi.replaceSelection("```latex\n"+pr+"\n```"),vi.setCursor(Si.line+1,pr.length+1),vi.focus();case"line-break":return vi.replaceSelection(`<br/>
`),vi.focus();case"list-ul":return pr===""?vi.replaceSelection("- "+pr):vi.replaceSelection(fn.map(eo=>eo===""?"":`- ${eo}`).join(`
`)),vi.focus();case"list-ol":return pr===""?vi.replaceSelection("1. "+pr):vi.replaceSelection(fn.map((eo,so)=>eo===""?"":`${so+1}. ${eo}`).join(`
`)),vi.focus();case"add-null-ch":return pr===""&&vi.setCursor(Si.line,Si.ch),vi.replaceSelection(la),vi.focus();case"add-signal":return pr===""&&vi.setCursor(Si.line,Si.ch),vi.replaceSelection(ni),vi.focus();case"add-multiple":return pr===""&&vi.setCursor(Si.line,Si.ch),vi.replaceSelection(No),vi.focus();case"inster-template-1":return pr===""&&vi.setCursor(Si.line,Si.ch),vi.replaceSelection(Ee),vi.focus();case"eraser":return vi.setValue(""),vi.focus();case"trigger-watch":return ln(!Ns),vi.focus();case"trigger-full-screen":return Va(!Yo),vi.focus();case lr:ms(lr);return;case Zn:ms(Zn);return;case ar:ms(ar);return;case Bi:ms(Bi);return;case"maths-latex":ms("maths-latex");return;case kn:ms(kn);return;case Wr:ms(Wr);return;default:throw new Error}},[vi,Ns,Yo]),wr=(0,ve.useCallback)((Xi,Si)=>{var pr,fn,eo,so,ya,fa;switch(ms(""),Ao){case lr:const{title:fl,link:Hs}=Xi;return vi.replaceSelection(`[${fl}](${Hs})`),vi.focus();case Zn:const{language:cn,content:nl}=Xi;return vi.replaceSelection(["```"+cn,nl,"```"].join(`
`)),vi.focus();case"maths-latex":for(var Ia=atob(Xi),ns=new Uint8Array(Ia.length),Us=0;Us<Ia.length;Us++)ns[Us]=Ia.charCodeAt(Us);var Ds=new Blob([ns],{type:"image/png"});(0,Xn.I)(Ds,Ra=>{Ra.id?vi.replaceSelection(`![,](/api/attachments/${Ra.id}?type=${Ra.content_type})`):(Ra==null?void 0:Ra.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":vi.replaceSelection("`$$"+Xi+"$$`");break;case ar:case Bi:case ea:const{src:dl,alt:gl}=Xi,Ys=Si,Ul=(eo=(fn=(pr=Ys==null?void 0:Ys.name)==null?void 0:pr.split("."))==null?void 0:fn.pop)==null?void 0:eo.call(fn);return((so=Ys==null?void 0:Ys.type)==null?void 0:so.indexOf("image"))>-1||!(Ys!=null&&Ys.type)?Ys!=null&&Ys.align||Ys!=null&&Ys.width?vi.replaceSelection(`<p style="text-align:${Ys.align||"initial"}"><img width="${Ys.width?Ys.width+"%":"initial"}" src="${dl}" alt="${gl||""}" /></p>`):vi.replaceSelection(`<img width="100%" src="${dl}" alt="${gl||""}" />`):((ya=Ys==null?void 0:Ys.type)==null?void 0:ya.indexOf("video"))>-1?vi.replaceSelection(`<video width="100%" controls src="${dl}"></video>`):((fa=Ys==null?void 0:Ys.type)==null?void 0:fa.indexOf("pdf"))>-1?vi.replaceSelection(`<a href="${dl}?type=${Ys.type}&disposition=inline" target="_blank">${Ys.name}</a>`):pn.includes(Ul)?vi.replaceSelection(`<a href="${dl}?type=office&disposition=inline" target="_blank">${Ys.name}</a>`):vi.replaceSelection(`[${Ys.name}](${dl})`),vi.focus();case Wr:const{row:hu,col:fc,align:_s}=Xi;let il=`
`;for(let Ra=0;Ra<hu;Ra++){let Xa=[],Is=[];for(let pl=0;pl<fc;pl++)Ra===1&&Is.push(sa[_s]),Xa.push(" ");Ra===1&&(il+=`| ${Is.join(" | ")} |
`),il+=`| ${Xa.join(fc===1?"":" | ")} |
`}return vi.replaceSelection(il+`
`),vi.focus();default:throw new Error}},[vi,Ao]),at=(0,ve.useMemo)(()=>{switch(Ao){case lr:return ve.createElement(Ne,{callback:wr,onCancel:St});case Zn:return ve.createElement(Nn.Z,{callback:wr,onCancel:St});case ar:return ve.createElement(Xn.Z,{callback:wr,onCancel:St});case kn:return ve.createElement(Vn,{callback:wr,onCancel:St});case Wr:return ve.createElement(mn,{callback:wr,onCancel:St});case"maths-latex":return ve.createElement(ki,{showSaveButton:!0,callback:wr});case"inline-latex":return ve.createElement(Xr.Z,{showSaveButton:!0,callback:wr});default:return null}},[Ao]);function St(){ms("")}(0,ve.useEffect)(()=>{if(Ss.current){let Xi=function(ya){eo=!0,so=ya.pageY},Si=function(){eo=!1},pr=function(ya){if(eo){let fa=ya.pageY-so;fa<0&&(fa=0),fa>300&&(fa=300);let Ia=un+fa+"px";uo(Ia)}},fn=Ss.current,eo=!1,so=0;return fn.addEventListener("mousedown",Xi),document.addEventListener("mousemove",pr),document.addEventListener("mouseup",Si),()=>{fn.removeEventListener("mousedown",Xi),document.removeEventListener("mousemove",pr),document.removeEventListener("mouseup",Si)}}},[vi,Ss]),(0,ve.useEffect)(()=>{uo(un)},[un]);const zt=hn(Ft),gn=hn(Er),Kn={width:zt,height:gn},Ii=(0,ve.useMemo)(()=>{if(Ba){let Xi=new Date(Ba),Si=Xi.getHours(),pr=Xi.getMinutes(),fn=Xi.getSeconds();return Si=Si<10?"0"+Si:Si,pr=pr<10?"0"+pr:pr,fn=fn<10?"0"+fn:fn,`${Si}:${pr}:${fn}`}return 0},[Ba]),Jt=Xi=>{const Si=[];if(Vi){let pr=-1;Xi=Xi.replace(/(@▁▁@|@▁@)/g,function(fn,eo,so){Si.push({multiLine:fn!==ni})})}return Si};function Qn(){window.sessionStorage.removeItem(En),_n(!1),$a(0)}function Qi(){_n(!1),$a(0),vi.setValue(window.sessionStorage.getItem(En))}(0,ve.useEffect)(()=>{nn[Ao]&&Ao!==Bi&&Ao!==kn&&setTimeout(()=>{const Xi=document.getElementsByClassName("markdown-popup-form")[0],Si=window.innerWidth/2-Xi.offsetWidth/2,pr=window.innerHeight/2-Xi.offsetHeight/2;An(Si),Ws(pr)},0)},[Ao]);const wi=Xi=>{Xi.preventDefault();const Si=Xi.clientX-ka,pr=Xi.clientY-Po;document.body.onmousemove=fn=>{let eo=fn.clientX-Si,so=fn.clientY-pr;const ya=document.getElementsByClassName("markdown-popup-form")[0],fa=window.innerWidth-ya.offsetWidth,Ia=window.innerHeight-ya.offsetHeight;eo=Math.max(0,Math.min(eo,fa)),so=Math.max(0,Math.min(so,Ia)),nr(fn.clientX,fn.clientY,Si,pr)&&(An(eo),Ws(so))},document.body.onmouseup=function(){document.body.onmousemove=null}},nr=(Xi,Si,pr,fn)=>{const eo=document.body.clientHeight,so=document.body.clientWidth;return Xi<20&&pr>Xi||Xi>so-20&&pr<Xi||Si<20&&fn>Si||Si>eo-20&&fn<Si?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"markdown-editor-wrapper",ref:kl},ve.createElement("div",{className:`markdown-editor-container ${Na} ${Ns?"on-preview":""} ${Ti?"mini":""} ${Yo?"full-screen":""}`,style:Kn},ve.createElement(qe,{insertTemp:Yt,watch:Ns,fullScreen:Yo,showNullButton:tn,showNullProgramButton:Vi,onActionCallback:ts,hidetoolBar:Hr,extraUse:Ho}),ve.createElement("div",{className:"markdown-editor-body"},ve.createElement("div",{className:"codemirror-container"},ve.createElement("textarea",{ref:ds,placeholder:io})),Ns?ve.createElement("div",{ref:Ua,className:"preview-container"},Hn==="stex"&&ve.createElement(ct,{value:al}),Hn!=="stex"&&ve.createElement(Vt.Z,{disabledFill:Nr,showProgramFill:Vi,value:al})):null))),Fr?ve.createElement("a",{ref:Ss,className:"editor-resize"}):null,Ao===Bi&&ve.createElement(Zt,{callback:wr,onCancel:St}),Ao===kn&&ve.createElement(Vn,{callback:wr,onCancel:St}),ve.createElement(ft.Z,null,nn[Ao]&&Ao!==Bi&&Ao!==kn?ve.createElement(Xt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ka,top:Po},title:ve.createElement("div",{style:{cursor:"move"},onMouseDown:wi},nn[Ao]),open:!0,onCancel:St,footer:null,destroyOnClose:!0,width:Ao===kn?"1200px":null,height:Ao===kn?"80vh":null,className:"markdown-popup-form"},at):null))}},70859:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return Ke},I:function(){return ft}});var ve=be(91773),tt=be(2453),Pt=be(28802),Ut=be(78957),Bt=be(37720),Re=be(98813),Je=be(85804),pt=be(15476),wt=be(67294),ht=be(67294),Vt=Object.defineProperty,ct=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(st,rt,Tt)=>rt in st?Vt(st,rt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):st[rt]=Tt,se=(st,rt)=>{for(var Tt in rt||(rt={}))ne.call(rt,Tt)&&ue(st,Tt,rt[Tt]);if(Te)for(var Tt of Te(rt))te.call(rt,Tt)&&ue(st,Tt,rt[Tt]);return st},ge=(st,rt)=>ct(st,He(rt));const{useForm:me}=ve.default,xe={width:280,marginRight:10},Pe={labelCol:{span:5},wrapperCol:{span:19}};var Ke=({callback:st,onCancel:rt})=>{const[Tt]=me();let Mt=(0,wt.useRef)();function yt(Bn){Mt.current.width=Tt.getFieldValue("width"),Mt.current.align=Tt.getFieldValue("align"),st(Bn,Mt.current)}function Dt(Bn,On){if(Bn.status===-1){tt.ZP.error(Bn.message);return}Tt.setFieldsValue({src:`/api/attachments/${Bn.id}`,type:On.type})}function Nt(Bn){let On=Bn.target.files[0];Mt.current=On,ft(On,Dt)}return ht.createElement(ve.default,ge(se({form:Tt},Pe),{className:"upload-image-panel",onFinish:yt,style:{width:470,overflow:"hidden"}}),ht.createElement(ve.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ht.createElement("div",{className:"flex-container"},ht.createElement(ve.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ht.createElement(Pt.default,{style:xe})),ht.createElement(qe,{onFileChange:Nt}))),ht.createElement(ve.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ht.createElement(Pt.default,{style:{width:264}})),ht.createElement(ve.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ht.createElement(Ut.Z,null,ht.createElement(ve.default.Item,{name:"width",style:{margin:0}},ht.createElement(Bt.Z,{style:{width:264}})),ht.createElement("span",{className:"ml8"},"%"))),ht.createElement(ve.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ht.createElement(Re.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ht.createElement("aside",null,ht.createElement(ve.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ht.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ht.createElement(Je.ZP,{type:"default",onClick:rt},"\u53D6\u6D88"))))};function qe({onFileChange:st}){return ht.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ht.createElement("input",{type:"file",onChange:st}))}function ft(st,rt){if(!st)throw new String("\u6CA1\u6709\u6587\u4EF6");let Tt=new FormData;Tt.append("editormd-image-file",st),Tt.append("file_param_name","editormd-image-file"),Tt.append("byxhr","true");var Mt=new window.XMLHttpRequest;Mt.withCredentials=!0,Mt.addEventListener("load",function(yt){rt(JSON.parse(yt.target.responseText),st)},!1),Mt.addEventListener("error",function(yt){console.error(yt)},!1),Mt.open("POST",`${pt.KI}/api/attachments.json`),Mt.send(Tt)}},76621:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return Pt}});var ve=be(67294),tt=be(73935);class Pt extends ve.Component{constructor(Bt){super(Bt);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:Bt}=this.props;return(0,tt.createPortal)(Bt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36295:function(Rn,ti,be){"use strict";be.d(ti,{SV:function(){return Ct},ZP:function(){return Zt}});var ve=be(67294),tt=be(91033);const Pt={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ut={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Bt={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Re={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Je={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var pt=be(84204),wt=be.n(pt),ht=(qt,hi,Kt)=>new Promise((Xe,Le)=>{var Me=Be=>{try{$e(Kt.next(Be))}catch(ut){Le(ut)}},We=Be=>{try{$e(Kt.throw(Be))}catch(ut){Le(ut)}},$e=Be=>Be.done?Xe(Be.value):Promise.resolve(Be.value).then(Me,We);$e((Kt=Kt.apply(qt,hi)).next())});const Vt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ct=(qt,hi,Kt,Xe)=>{const Le=hi.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Kt.lineNumber,endColumn:Kt.column});return Array.from(new Set(Le.match(/\b\w{2,}\b/g)||[])).map(We=>({label:We,kind:qt.languages.CompletionItemKind.Text,insertText:We,range:Xe}))},He=(qt,hi,Kt,Xe)=>{qt.languages.registerCompletionItemProvider(hi,{provideCompletionItems(Le,Me){const We=Le.getWordUntilPosition(Me),$e={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},Be=Le.getLineContent(Me.lineNumber).substring(We.startColumn-2,We.endColumn);return{suggestions:[...ct(qt,Le,Me,$e),...Kt.map(Vn=>({label:Vn,kind:qt.languages.CompletionItemKind.Keyword,documentation:Vn,insertText:Vn,insertTextRules:qt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e})),...Xe.map(Vn=>({label:Vn.label,kind:qt.languages.CompletionItemKind.Snippet,documentation:Vn.content,insertText:Be.startsWith("#")?Vn.content.replace(/#/,""):Vn.content,insertTextRules:qt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e}))]}}})};var Te=qt=>{Vt.languages.forEach(hi=>{qt.languages.registerDocumentFormattingEditProvider(hi,{provideDocumentFormattingEdits(Kt){return ht(this,null,function*(){const Xe=wt()(Kt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Kt.getFullModelRange(),text:Xe}]})}})}),He(qt,"java",Ut.keywords,Ut.quickKey),He(qt,"cpp",Bt.keywords,Bt.quickKey),He(qt,"c",Pt.keywords,[]),He(qt,"python",Re.keywords,Re.quickKey),He(qt,"scala",Je.keywords,Je.quickKey)};const ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var te=Object.defineProperty,ue=(qt,hi,Kt)=>hi in qt?te(qt,hi,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):qt[hi]=Kt,se=(qt,hi,Kt)=>ue(qt,typeof hi!="symbol"?hi+"":hi,Kt);const ge=class Ex{constructor(hi,Kt,Xe){this.placeholder=hi,this.editor=Kt,this.monaco=Xe,Kt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ex.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};se(ge,"ID","editor.widget.placeholderHint");var xe=ge,Pe=be(84144),Ke=be(2453),qe=be(83062),ft=be(96486),st=be(33054),rt=be(74855),Tt=Object.defineProperty,Mt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,On=(qt,hi,Kt)=>hi in qt?Tt(qt,hi,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):qt[hi]=Kt,Qt=(qt,hi)=>{for(var Kt in hi||(hi={}))Nt.call(hi,Kt)&&On(qt,Kt,hi[Kt]);if(Dt)for(var Kt of Dt(hi))Bn.call(hi,Kt)&&On(qt,Kt,hi[Kt]);return qt},vn=(qt,hi)=>Mt(qt,yt(hi)),lt=(qt,hi)=>{var Kt={};for(var Xe in qt)Nt.call(qt,Xe)&&hi.indexOf(Xe)<0&&(Kt[Xe]=qt[Xe]);if(qt!=null&&Dt)for(var Xe of Dt(qt))hi.indexOf(Xe)<0&&Bn.call(qt,Xe)&&(Kt[Xe]=qt[Xe]);return Kt},Ge=(qt,hi,Kt)=>new Promise((Xe,Le)=>{var Me=Be=>{try{$e(Kt.next(Be))}catch(ut){Le(ut)}},We=Be=>{try{$e(Kt.throw(Be))}catch(ut){Le(ut)}},$e=Be=>Be.done?Xe(Be.value):Promise.resolve(Be.value).then(Me,We);$e((Kt=Kt.apply(qt,hi)).next())});function Ne(qt){return/^\d+$/.test(qt)?`${qt}px`:qt}function Nn(){}let Xn=!1;const Xt={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function ai(qt=[]){let hi=qt;if(Array.isArray(qt)){for(let Kt=0;Kt<qt.length;Kt++){let Xe=Xt[qt[Kt]];if(Xe)return Xe}return hi[0]}return Xt[hi]||hi}let xn=null;const gi=()=>Ge(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(qt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",qt)}});var Zt=qt=>{var hi=qt,{width:Kt="100%",height:Xe="100%",value:Le,language:Me="javascript",style:We={},options:$e={},overrideServices:Be={},theme:ut="vs-dark",onEditBlur:Vn,isCopy:In=!1,onSave:Cn,autoHeight:Pn=!1,forbidCopy:oi=!1,onChange:mn=Nn,editorDidMount:bi=Nn,onFocus:_i=Nn,onBreakPoint:Br=Nn,breakPointValue:Yi=[],filename:ki="educoder.txt",errorLine:Xr,errorContent:Ki="",highlightLine:lr,openBreakPoint:ar=!1,placeholder:kn="",showMiniMap:Bi=!0}=hi,ea=lt(hi,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Zn=(0,ve.useRef)(),Wr=(0,ve.useRef)({}),ra=(0,ve.useRef)(),sa=(0,ve.useRef)(),Wa=(0,ve.useRef)([]),ma=(0,ve.useRef)(!1),Ha=(0,ve.useRef)(),da=(0,ve.useRef)(),la=(0,ve.useRef)(!1),[No,ni]=(0,ve.useState)(!1);function Ee(){let Yt;return Zn.current&&(Yt=new tt.Z(Hn=>{for(let En of Hn)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&Wr.current.instance.layout()}),Yt.observe(Zn.current)),Yt}function pn(){Ke.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const hn=()=>{let Yt=Wr.current.instance;if(Le!=null&&Yt&&No){const Hn=Yt.getModel();Hn&&Le!==Hn.getValue()&&(Xn=!0,Hn.setValue(Le),Yt.layout(),Xn=!1)}};(0,ve.useEffect)(()=>{const Yt=st.Z.subscribe("formatDocument",Hn=>{var En;let Fr=Wr.current.instance;(En=Fr==null?void 0:Fr.getAction)==null||En.call(Fr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Hn=>{mn(Hn)},Yt},[]),(0,ve.useEffect)(()=>{var Yt;let Hn=Wr.current.instance;sa.current&&clearTimeout(sa.current),sa.current=setTimeout(()=>{hn()},500),Le&&(Le!=null&&Le.length)&&((Yt=Hn==null?void 0:Hn.updateOptions)==null||Yt.call(Hn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Le.split(/\r\n|\r|\n/g).length))+3,5)}))},[Le,No,Wr.current]),(0,ve.useEffect)(()=>{if(Xr&&Wr.current&&Wr.current.instance){let Hn=Wr.current.instance;Hn.changeViewZones(function(En){var Fr=document.createElement("div");Fr.style.padding="10px 20px",Fr.style.width="calc(100% - 20px)",Fr.className="my-error-line-wrp",Fr.innerHTML=Ki,En.addZone({afterLineNumber:Xr||11,heightInLines:3,domNode:Fr})});var Yt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Hn.addOverlayWidget(Yt),Hn.revealPositionInCenter({lineNumber:20,column:1})}},[Xr,Wr.current,No]);const ri=(Yt="",Hn)=>{if(!Yt||Yt.trim()==="")return!0;const Fr=Wr.current.instance.getModel().getLineTokens(Hn);let si=!1;for(let tn=0;tn<2;tn++)Fr.getStandardTokenType(tn)===1&&(si=!0);return si};(0,ve.useEffect)(()=>{var Yt;const Hn=(Yt=Wr.current)==null?void 0:Yt.instance;if(Hn&&No&&oi){const En=Hn.onDidBlurEditorWidget(()=>{la.current=!1}),Fr=Hn.onDidFocusEditorText(()=>{la.current=!0});return()=>{En.dispose(),Fr.dispose()}}},[Wr.current,No,oi]),(0,ve.useEffect)(()=>{var Yt;if((Yt=Wr.current)!=null&&Yt.instance&&No&&ar){let Hn=Wr.current.instance,En=Hn.getModel();if(!En)return;(()=>{var hr;let Nr=[],io=[];const va=En.getAllDecorations();for(let vi of va)vi.options.className==="highlighted-line"&&(Nr.push((hr=vi==null?void 0:vi.range)==null?void 0:hr.startLineNumber),io.push(vi==null?void 0:vi.id));if(lr===Nr[0])return;En.deltaDecorations(io,[]);const Ho=En.getLineCount();lr&&lr<=Ho&&(Hn.deltaDecorations([],[{range:new xn.Range(lr,1,lr,En.getLineMaxColumn(lr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Hn.revealLineInCenter(lr))})();const si=(hr=!1)=>{var Nr;let io=[],va=[];const Ho=En.getAllDecorations();for(let vi of Ho)vi.options.linesDecorationsClassName==="breakpoints-select"&&(io.push((Nr=vi==null?void 0:vi.range)==null?void 0:Nr.startLineNumber),va.push(vi==null?void 0:vi.id));if(hr)return{lines:io,ids:va};Br(io)},tn=hr=>Ge(void 0,null,function*(){let Nr={range:new xn.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield En.deltaDecorations([],[Nr]),si()}),Vi=hr=>Ge(void 0,null,function*(){let Nr=[];const io=Hn.getLineDecorations(hr);for(let va of io)va.options.linesDecorationsClassName==="breakpoints-select"&&Nr.push(va.id);yield En.deltaDecorations(Nr,[]),si()}),Hr=hr=>{let Nr=Hn.getLineDecorations(hr);for(let io of Nr)if(io.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ft.isEqual)(Yi,si(!0).lines)){En.deltaDecorations(si(!0).ids,[]);const hr=Yi.map(Nr=>({range:new xn.Range(Nr,1,Nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));En.deltaDecorations([],hr)}const Or=Hn.onDidChangeModelContent(hr=>{let Nr=Hn.getPosition();if(Nr){let io=Nr.lineNumber;clearTimeout(da.current),da.current=setTimeout(()=>{ri(En.getLineContent(io),io)?Vi(io):Hr(io)?(Vi(io),tn(io)):si()},100)}}),wn=Hn.onMouseDown(hr=>{var Nr,io,va;if(hr.target.detail&&((va=(io=(Nr=hr.target)==null?void 0:Nr.element)==null?void 0:io.className)!=null&&va.includes("line-numbers"))){let Ho=hr.target.position.lineNumber;if(ri(En.getLineContent(Ho),Ho))return;Hr(Ho)?Vi(Ho):tn(Ho)}}),or=hr=>{let Nr={range:new xn.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Wa.current=Hn.deltaDecorations(Wa.current,[Nr])},Xo=()=>{Wa.current=Hn.deltaDecorations(Wa.current,[])},Na=Hn.onMouseMove(hr=>{var Nr,io,va;if(Xo(),hr.target.detail&&((va=(io=(Nr=hr.target)==null?void 0:Nr.element)==null?void 0:io.className)!=null&&va.includes("line-numbers"))){let Ho=hr.target.position.lineNumber;if(ri(En.getLineContent(Ho),Ho))return;or(Ho)}}),aa=Hn.onMouseLeave(()=>{Xo()});return()=>{Or.dispose(),wn.dispose(),Na.dispose(),aa.dispose()}}},[Wr.current,No,Yi,lr,ar,Me]),(0,ve.useEffect)(()=>{var Yt;(Yt=Wr.current)!=null&&Yt.instance&&ar&&Wr.current.instance.setPosition({lineNumber:0,column:0})},[lr]);function Jn(){let Yt=Wr.current.instance;if(Yt){const Hn=Yt.getSelection(),En=Wr.current.pastePos||{},Fr=new xn.Range(En.startLineNumber||Hn.endLineNumber,En.startColumn||Hn.endColumn,En.endLineNumber||Hn.endLineNumber,En.endColumn||Hn.endColumn);setTimeout(()=>{Yt.executeEdits("",[{range:Fr,text:""}])},300)}}function Wn(Yt){(window.navigator.platform.match("Mac")?Yt.metaKey:Yt.ctrlKey)&&Yt.keyCode==83&&(Yt.preventDefault(),Cn())}const nn=()=>{if(Pn&&Wr.current.instance){const Yt=Wr.current.instance.getContentHeight();Ri(Yt<Xe?Xe:Yt)}else Ri(Xe)};function ii(Yt){var Hn=document.createEvent("MouseEvents");Hn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Yt.dispatchEvent(Hn)}const Wt=Yt=>{if(!la.current)return;const{keyCode:Hn,ctrlKey:En,metaKey:Fr,target:si,type:tn}=Yt;return(tn==="paste"||(Hn===67||Hn===86)&&(Fr||En))&&si.nodeName==="TEXTAREA"&&(pn(),Yt.preventDefault()),!1};function Gt(Yt,Hn){var En=window.URL||window.webkitURL||window,Fr=new Blob([Hn]),si=document.createElementNS("http://www.w3.org/1999/xhtml","a");si.href=En.createObjectURL(Fr),si.download=Yt,ii(si)}(0,ve.useEffect)(()=>{nn()},[nn]),(0,ve.useEffect)(()=>{Zn.current&&!No&&Promise.all([be.e(5552),be.e(9651)]).then(be.bind(be,55826)).then(Yt=>{try{xn=Yt,Wr.current.instance=xn.editor.create(Zn.current,{value:Le,language:ai(Me),theme:ut,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Bi||!1}},Be);const Hn=Wr.current.instance;let si=[...Pe.BH._menuItems].find(Or=>Or[0]._debugName=="EditorContext")[1],tn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Vi=(Or,wn)=>{var or,Xo;let Na=Or._first;do wn.includes((Xo=(or=Na.element)==null?void 0:or.command)==null?void 0:Xo.id)&&Or._remove(Na);while(Na=Na.next)};if(bi(Hn,xn),setTimeout(()=>{nn(),Wr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Gt(ki||"educoder.txt",Hn.getValue())}})},500),Wr.current.subscription=Hn.onDidChangeModelContent(Or=>{ma.current?clearTimeout(Ha.current):(nn(),mn(Hn.getValue(),Or)),Ha.current=setTimeout(()=>{ma.current=!1},500)}),window.Monaco||Te(xn,ai(Me)),oi&&(Vi(si,tn),Zn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Wt),window.removeEventListener("paste",Wt),window.addEventListener("keydown",Wt),window.addEventListener("paste",Wt)),window.Monaco=xn,Vn&&Hn.onDidBlurEditorWidget(()=>{Vn(Hn.getValue())}),_i&&Hn.onDidFocusEditorText(()=>{oi&&gi(),_i(Hn.getValue())}),oi){gi();try{Hn.onDidPaste(Or=>{const wn=Hn.getSelection(),or=Wr.current.pastePos||{},Xo=new xn.Range(or.startLineNumber||wn.endLineNumber,or.startColumn||wn.endColumn,or.endLineNumber||wn.endLineNumber,or.endColumn||wn.endColumn);Hn.executeEdits("",[{range:Or.range,text:""}])})}catch(Or){}}let Hr=Ee();return kn&&typeof kn=="string"&&new xe(kn,Hn,xn),ni(!0),()=>{const Or=Wr.current.instance;Or.dispose();const wn=Or.getModel();wn&&wn.dispose(),Wr.current.subscription&&Wr.current.subscription.dispose(),Hr.unobserve(Zn.current)}}catch(Hn){}})},[]),(0,ve.useEffect)(()=>{if(Wr.current.instance&&No)return document.addEventListener("keydown",Wn,!1),()=>{document.removeEventListener("keydown",Wn)}},[Cn,No]),(0,ve.useEffect)(()=>{let Yt=Wr.current.instance;if(Yt&&No){let Hn=ai(Me);xn.editor.setModelLanguage(Yt.getModel(),Hn)}},[Me,No]),(0,ve.useEffect)(()=>{Wr.current.instance&&No&&xn.editor.setTheme(ut)},[ut,No]),(0,ve.useEffect)(()=>{let Yt=Wr.current.instance;ra.current=$e,Yt&&No&&(Yt.updateOptions(Qt({},$e)),setTimeout(()=>{Yt.getModel().updateOptions(Qt({},$e))},200))},[JSON.stringify($e),No]),(0,ve.useEffect)(()=>{let Yt=Wr.current.instance;Yt&&No&&Yt.layout()},[Kt,Xe,No]);const[Ft,un]=(0,ve.useState)(Ne(Kt)),[Ti,Ri]=(0,ve.useState)(Ne(Xe)),di=vn(Qt({},We),{width:Ft,height:Ti,position:"relative"});return ve.createElement("div",{className:"my-monaco-editor",ref:Zn,style:di},In&&ve.createElement(rt.CopyToClipboard,{text:Le,onCopy:()=>Ke.ZP.success("\u590D\u5236\u6210\u529F")},ve.createElement(qe.Z,{title:"\u590D\u5236\u4EE3\u7801"},ve.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ve.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ct({width:qt="100%",height:hi="100%",original:Kt,modified:Xe,language:Le,options:Me={}}){const We=(0,ve.useRef)(),[$e,Be]=(0,ve.useState)(null);function ut(Pn){let oi;return We.current&&(oi=new tt.Z(mn=>{for(let bi of mn)(bi.target.offsetHeight>0||bi.target.offsetWidth>0)&&Pn.layout()}),oi.observe(We.current)),oi}(0,ve.useEffect)(()=>(We.current&&Promise.all([be.e(5552),be.e(9404)]).then(be.bind(be,50048)).then(Pn=>{xn=Pn;const oi=xn.editor.createDiffEditor(We.current,vn(Qt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Me),{wordWrap:!0}));Be(oi);let mn=ut(oi);return()=>{oi.dispose();const bi=oi.getModel();bi&&bi.dispose(),mn.unobserve(We.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ve.useEffect)(()=>{$e&&$e.setModel({original:xn.editor.createModel(Kt,Le),modified:xn.editor.createModel(Xe,Le)})},[Kt,Xe,Le,$e]);const Vn=Ne(qt),In=Ne(hi),Cn={width:Vn,height:In};return ve.createElement("div",{className:"my-diff-editor",ref:We,style:Cn})}},5476:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return ct}});var ve={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},tt=be(74330),Pt=be(83062),Ut=be(26410),Bt=be(94184),Re=be.n(Bt),Je=be(28706),pt=be(26194),wt=be(52262),ht=be(67294),ct=({className:He,dataSource:Te=[],col:ne=4,right:te,bottom:ue=23,precision:se=0,wrapWidth:ge=1200,trackEventItems:me,loading:xe,onRemove:Pe=()=>{},isCurrent:Ke=!0,showProgress:qe=!1,showAlias:ft=!1})=>{const st=Math.floor((ge-(ne-1)*te)/ne),rt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return ht.createElement(tt.Z,{spinning:xe},ht.createElement("div",{className:Re()(ve.list,He)},!!(Te!=null&&Te.length)&&(Te==null?void 0:Te.map((Tt,Mt)=>{var yt,Dt,Nt,Bn,On,Qt;const{name:vn,id:lt,identifier:Ge,featured:Ne,school_name:Nn,image_url:Xn,excellent:Xt,is_plan:ai}=Tt;return ht.createElement("div",{key:lt,className:Ke&&qe?ve.wrapisCurrent:ve.wrap,style:{width:st,marginRight:(1+Mt)%ne===0?0:te+se,marginBottom:ue}},ht.createElement("a",{className:ve.li,onClick:xn=>{xn.preventDefault(),xn.stopPropagation(),me&&(0,Je.L9)([me]),(0,Je.xg)(`/paths/${Ge}`)}},ht.createElement("div",{className:ve.img},ht.createElement("img",{className:ve.cover,src:`${Xn}`}),Ke&&(0,wt.bg)()&&(Tt==null?void 0:Tt.studying)&&ht.createElement("div",{className:`${ve.movebq} user-path-items`,onClick:xn=>{xn.stopPropagation(),Pe(Tt)}},ht.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ht.createElement("span",{className:"c-red"},"\u79FB\u9664")),(yt=Tt==null?void 0:Tt.subject_tags)==null?void 0:yt.map((xn,gi)=>{var Zt,Ct;if(gi===0){const hi=(Zt=rt.find(Kt=>Kt.name==xn))==null?void 0:Zt.swimg;return ht.createElement("img",{className:ve.sign,src:hi,style:{left:"-4px"}})}const qt=(Ct=rt.find(hi=>hi.name==xn))==null?void 0:Ct.ptimg;return ht.createElement("img",{className:ve.sign,src:qt,style:{left:`${48+52*(gi-1)+2*gi}px`}})}),ht.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Tt==null?void 0:Tt.excellent)&&ht.createElement("div",{className:ve.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ht.createElement("div",{className:ve.name},ht.createElement(Pt.Z,{title:ft&&(Tt!=null&&Tt.excellent_alias_name)?ht.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${vn}`,ht.createElement("br",null),ht.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Tt==null?void 0:Tt.excellent_alias_name}`)):vn},ht.createElement("span",{className:ve.e},ft&&(Tt==null?void 0:Tt.excellent_alias_name)||vn))),Ke&&qe&&((Dt=Tt==null?void 0:Tt.progress)==null?void 0:Dt.all_score)!=0&&ht.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ht.createElement(Ut.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Nt=Tt==null?void 0:Tt.progress)==null?void 0:Nt.my_score)/((Bn=Tt==null?void 0:Tt.progress)==null?void 0:Bn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(On=Tt==null?void 0:Tt.progress)==null?void 0:On.my_score,"/",(Qt=Tt==null?void 0:Tt.progress)==null?void 0:Qt.all_score),(!Ke||!qe)&&ht.createElement(Pt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Nn}`},ht.createElement("div",{className:ve.unit},ht.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Nn)),(!Ke||!qe)&&ht.createElement("div",{className:ve.tags},ht.createElement("div",null,ht.createElement(Pt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ht.createElement("span",null,Tt.stages_count))),ht.createElement(Pt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ht.createElement("span",null,Tt.members_count)))))))})),!Te.length&&ht.createElement(pt.Z,null)))}},30001:function(Rn,ti,be){"use strict";be.d(ti,{jL:function(){return Bt},w9:function(){return Ne},QD:function(){return Xr},cQ:function(){return On.Z},op:function(){return mn},O5:function(){return hn},_b:function(){return ea},t7:function(){return se},Gi:function(){return gi},YG:function(){return ai},qp:function(){return Vt},vr:function(){return ar},qE:function(){return Br},Je:function(){return xe},wb:function(){return Bn},cq:function(){return Xe},tp:function(){return Te}});var ve=be(67294),tt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNV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21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Bt=({dataSource:ri=[],img:Jn,imgWidth:Wn=346,title:nn,sunTitle:ii,bannerExtraContent:Wt})=>ve.createElement("div",{className:tt.banner},ve.createElement("div",{className:tt.content},ve.createElement("aside",null,ve.createElement("p",null,ve.createElement("b",null,nn),ve.createElement("span",null,ii)),ri.length>0&&ve.createElement("div",{className:tt.btns},ri.map((Gt,Ft)=>ve.createElement("div",{key:Ft,onClick:Gt.click},Gt.name,Gt.sign?ve.createElement("img",{src:Pt,width:39}):null))),Wt),Jn&&ve.createElement("img",{style:{marginTop:33,marginRight:38},src:Jn,width:Wn}))),Re={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Je=be(94184),pt=be.n(Je),wt=be(96486),Vt=({dataSource:ri=[],value:Jn,onChange:Wn,onTitleChange:nn,className:ii,title:Wt,titleWidth:Gt=41,style:Ft={},fontColor:un="#6A7283",showCount:Ti})=>{const[Ri,di]=(0,ve.useState)(0),[Yt,Hn]=(0,ve.useState)(!1),En=(0,ve.useRef)(null),Fr=(0,ve.useRef)(null);return(0,ve.useEffect)(()=>{var si;ri.length!==0&&(((si=En==null?void 0:En.current)==null?void 0:si.clientHeight)>97?di(1):di(0)),ri.length===0&&di(0),Hn(!1)},[ri]),ve.createElement("div",{className:pt()(Re.row,ii),style:Ft},ve.createElement("div",{onClick:(0,wt.throttle)(()=>nn==null?void 0:nn(),2e3),style:{width:Gt,marginTop:Yt?12:4},className:`${Re.title} ${nn?"current":""}`},Wt),ve.createElement("div",{className:Yt?`${Re.tagsWrap} ${Re.tagsBorderWrap}`:Re.tagsWrap},ve.createElement("div",{className:Re.bar,ref:Fr,style:Ri>0?{height:Ri===1?97:"auto",overflow:Ri===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ve.createElement("div",{className:Re.tag,ref:En},ri==null?void 0:ri.map(si=>ve.createElement("span",{onClick:()=>Wn(si.id),key:si.id,style:{color:un},className:Jn===si.id?Re.active:""},ve.createElement("span",{title:si.name,className:Re.name},si.name),!!Ti&&ve.createElement("span",{className:Re.num},si.count))))),!!Ri&&ve.createElement(ve.Fragment,null,Ri===1?ve.createElement("div",{onClick:()=>{var si;di(2),((si=En==null?void 0:En.current)==null?void 0:si.clientHeight)>245?Hn(!0):Hn(!1)},className:Re.action},"\u5C55\u5F00",ve.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ve.createElement("div",{onClick:()=>{Fr.current.scrollTop=0,di(1),Hn(!1)},className:Re.action},"\u6536\u8D77",ve.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ct={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Te=({dataSource:ri=[],value:Jn,onChange:Wn,className:nn,style:ii={}})=>ve.createElement("div",{style:ii,className:pt()(ct.tabs,nn)},ri.map(Wt=>ve.createElement("span",{onClick:()=>Wn(Wt.id),className:Jn===Wt.id?ct.active:"",key:Wt.id},Wt.name))),ne={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},te=be(28802),se=({dataSource:ri=[],value:Jn="",onChange:Wn,onInputChange:nn=()=>{},className:ii,style:Wt={},placeholder:Gt,allowClear:Ft=!1})=>{var un;const[Ti,Ri]=(0,ve.useState)(""),[di,Yt]=(0,ve.useState)("");(0,ve.useEffect)(()=>{var Fr;let si=Jn;(Fr=JSON.stringify(Jn))!=null&&Fr.includes("{")&&(Ri(Jn.id),si=Jn.value||"");try{Yt(decodeURIComponent(si||""))}catch(tn){Yt(decodeURIComponent(si||""))}},[Jn]);const Hn=()=>{Wn(encodeURIComponent(di),Ti||null)},En=Fr=>{Fr!==Ti&&(Ri(Fr),Wn(encodeURIComponent(di),Fr))};return ve.createElement("div",{className:pt()(ne.input,ii),style:Wt},!!ri.length&&ve.createElement("div",{className:ne.dropdown},ve.createElement("div",{className:ne.text},(un=ri.find(Fr=>Fr.id===Ti))==null?void 0:un.name,ve.createElement("i",{className:"iconfont icon-zhankai4"}),ve.createElement("b",{className:ne.b1}),ve.createElement("b",{className:ne.b2})),ve.createElement("div",{className:ne.menu},ri.map((Fr,si)=>ve.createElement("div",{key:si,onClick:()=>En(Fr.id)},Fr.name)))),ve.createElement(te.default,{onPressEnter:Hn,value:di,onChange:Fr=>{Yt(Fr.target.value),nn(encodeURIComponent(Fr.target.value),Ti||null)},bordered:!1,placeholder:Gt}),ve.createElement("i",{onClick:Hn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},xe=({value:ri,onChange:Jn,className:Wn,total:nn,pageSize:ii,style:Wt={}})=>{const Gt=ri<2,Ft=ri>=Math.ceil(nn/ii);return nn<=ii?ve.createElement(ve.Fragment,null):ve.createElement("div",{className:pt()(ge.quickPager,Wn),style:Wt},ve.createElement("div",{onClick:()=>{Gt||Jn(ri-1,"prev")},className:Gt?ge.disabled:""},"\u4E0A\u4E00\u9875"),ve.createElement("div",{onClick:()=>{Ft||Jn(ri+1,"next")},className:Ft?ge.disabled:""},"\u4E0B\u4E00\u9875"))},Pe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ke=be(74330),qe=be(83062),ft=be(57097),st=be(11320),rt=be(28706),Tt=be(96908),Mt=be(57177),yt=be(81378),Dt=be(26194),Bn=({className:ri,dataSource:Jn=[],col:Wn=4,right:nn,bottom:ii=23,precision:Wt=0,wrapWidth:Gt=1200,trackEventItems:Ft,loading:un})=>{const Ti=Math.floor((Gt-(Wn-1)*nn)/Wn);return ve.createElement(Ke.Z,{spinning:un},ve.createElement("div",{className:pt()(Pe.list,ri)},!!Jn.length&&Jn.map((Ri,di)=>{const{name:Yt,id:Hn,identifier:En,power:Fr,cover_image_id:si,pic:tn}=Ri;return ve.createElement("div",{className:Pe.wrap,key:Hn,style:{width:Ti,marginRight:(1+di)%Wn===0?0:nn+Wt,marginBottom:ii}},ve.createElement("a",{target:"_blank",href:`/shixuns/${En}/challenges`,className:Pe.li,onClick:Vi=>{Vi.preventDefault(),Ft&&(0,rt.L9)([Ft]),Fr&&(0,rt.xg)(`/shixuns/${En}/challenges`)}},ve.createElement("div",{className:Pe.img},ve.createElement("img",{className:Pe.cover,src:`${tn}`}),Ri.is_jupyter&&ve.createElement("img",{className:Pe.sign,src:Tt}),Ri.is_jupyter_lab&&ve.createElement("img",{className:Pe.sign,src:Mt}),Ri.is_unity_3d&&ve.createElement("img",{className:Pe.sign,src:yt})),ve.createElement("div",{className:Pe.name},ve.createElement(qe.Z,{title:Yt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ve.createElement("span",{className:Pe.e},Yt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ve.createElement("div",{className:Pe.tags},ve.createElement(qe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ve.createElement("span",null,Ri.challenges_count))),!!Ri.myshixuns_count&&ve.createElement(qe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ve.createElement("span",null,Ri.myshixuns_count))),ve.createElement(qe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ve.createElement("span",null,ve.createElement("span",null,Ri.level))),ve.createElement("div",{className:Pe.rate},ve.createElement(ft.Z,{allowHalf:!0,disabled:!0,defaultValue:Ri.score_info}),ve.createElement("span",null,"\xA0",Ri.score_info?`${Ri.score_info}\u5206`:"5\u5206")))),!Fr&&ve.createElement("div",{className:Pe.lockWrap},ve.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ve.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Jn.length&&ve.createElement(Dt.Z,null)))},On=be(5476),Qt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxi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4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",lt=be(67294),Ne=({className:ri,dataSource:Jn=[],col:Wn=4,right:nn,bottom:ii=23,precision:Wt=0,wrapWidth:Gt=1200,trackEventItems:Ft,loading:un,handleVery:Ti=()=>!0})=>{const Ri=Math.floor((Gt-(Wn-1)*nn)/Wn);return lt.createElement(Ke.Z,{spinning:un},lt.createElement("div",{className:pt()(Qt.list,ri)},!!Jn.length&&Jn.map((di,Yt)=>{const{subject_identifier:Hn,id:En,identifier:Fr,power:si}=di,tn=di.is_public!=0&&di.is_public;return lt.createElement("div",{className:Qt.wrap,key:En,style:{width:Ri,marginRight:(1+Yt)%Wn===0?0:nn+Wt,marginBottom:ii}},lt.createElement("a",{className:Qt.li,onClick:Vi=>{Vi.preventDefault(),Ti(di==null?void 0:di.first_category_url)&&(Ft&&(0,rt.L9)([Ft]),(0,rt.xg)(di.first_category_url))}},lt.createElement("div",{className:Qt.top},lt.createElement(qe.Z,{title:di.name},lt.createElement("div",{className:Qt.name},di.name)),lt.createElement("img",{className:Qt.img,src:st.Z.IMG_SERVER+"/images/"+di.avatar_url}),lt.createElement("div",{className:Qt.text,title:di.creator},di.creator),Hn&&lt.createElement("div",{className:Qt.btns},lt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),lt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),tn&&lt.createElement("div",{className:Qt.sign},"\u516C\u5F00")),lt.createElement("div",{className:Qt.bottom},di.visits>0&&lt.createElement(qe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-liulanyan"}),lt.createElement("span",null,di.visits))),di.course_members_count>0&&lt.createElement(qe.Z,{title:"\u6210\u5458",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-chengyuan"}),di.course_members_count)),di.tasks_count>0&&lt.createElement(qe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-zuoye"}),di.tasks_count)),di.is_end?lt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):lt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!di.is_accessible&&lt.createElement("div",{className:Qt.lockWrap},lt.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),lt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Jn.length&&lt.createElement(Dt.Z,null)))},Nn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Xn=be(35973),ai=({dataSource:ri=[],value:Jn,onChange:Wn,className:nn,style:ii={},tabBarExtraContent:Wt})=>ve.createElement("div",{className:pt()(Nn.tabs,nn),style:ii},ve.createElement("div",{className:Nn.tabsWrap},ri.map((Gt,Ft)=>!(Gt!=null&&Gt.hide)&&ve.createElement("aside",{className:Nn.tab,onClick:()=>{Wn(Gt.id),Gt.link&&Xn.history.push(Gt.link)},key:Ft},ve.createElement("div",{className:Jn===Gt.id?Nn.active:""},Gt.name),(Gt==null?void 0:Gt.resetCount)==null&&(Gt==null?void 0:Gt.total)!==void 0&&ve.createElement("span",null,"\uFF08",Gt==null?void 0:Gt.total,"\uFF09"),(Gt==null?void 0:Gt.resetCount)!==void 0&&(Gt==null?void 0:Gt.total)!==void 0&&ve.createElement(qe.Z,{title:(Gt==null?void 0:Gt.tip)!=null?Gt==null?void 0:Gt.tip:""},ve.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ve.createElement("span",{style:{color:"#000"}},Gt==null?void 0:Gt.resetCount),"/",ve.createElement("span",null,Gt==null?void 0:Gt.total),"\uFF09"))))),ve.createElement("div",{className:Nn.tabBar},Wt)),gi=({className:ri,style:Jn={},children:Wn})=>ve.createElement("div",{className:pt()(ri),style:Jn},Wn),Zt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ct=be(85418),qt=be(50136);const hi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Xe=({sortValue:ri,dropValue:Jn,className:Wn,onSort:nn,onDrop:ii,dataSource:Wt=hi})=>{var Gt;return ve.createElement("div",{className:pt()(Zt.orderWrap,Wn)},ve.createElement(Ct.Z,{dropdownRender:()=>ve.createElement(qt.default,null,Wt.map((Ft,un)=>ve.createElement(qt.default.Item,{key:un,onClick:()=>ii(Ft.id)},Ft.name)))},ve.createElement("span",{className:Zt.orderTextWrap},(Gt=Wt.find(Ft=>Jn===Ft.id))==null?void 0:Gt.name)),ve.createElement("span",{className:Zt.orderIconWrap},ve.createElement("span",{className:Zt.orderAsc},ve.createElement("i",{className:ri==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Zt.cursorPointer} ${Zt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Zt.cursorPointer}`,onClick:()=>nn(ri==="asc"?"desc":"asc")})),ve.createElement("span",{className:Zt.orderDesc},ve.createElement("i",{className:ri==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Zt.cursorPointer} ${Zt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Zt.cursorPointer}`,onClick:()=>nn(ri==="asc"?"desc":"asc")}))))},Le={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Me=be(85804),We=Object.defineProperty,$e=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Vn=(ri,Jn,Wn)=>Jn in ri?We(ri,Jn,{enumerable:!0,configurable:!0,writable:!0,value:Wn}):ri[Jn]=Wn,In=(ri,Jn)=>{for(var Wn in Jn||(Jn={}))Be.call(Jn,Wn)&&Vn(ri,Wn,Jn[Wn]);if($e)for(var Wn of $e(Jn))ut.call(Jn,Wn)&&Vn(ri,Wn,Jn[Wn]);return ri},Cn=(ri,Jn)=>{var Wn={};for(var nn in ri)Be.call(ri,nn)&&Jn.indexOf(nn)<0&&(Wn[nn]=ri[nn]);if(ri!=null&&$e)for(var nn of $e(ri))Jn.indexOf(nn)<0&&ut.call(ri,nn)&&(Wn[nn]=ri[nn]);return Wn},Pn=(ri,Jn,Wn)=>new Promise((nn,ii)=>{var Wt=un=>{try{Ft(Wn.next(un))}catch(Ti){ii(Ti)}},Gt=un=>{try{Ft(Wn.throw(un))}catch(Ti){ii(Ti)}},Ft=un=>un.done?nn(un.value):Promise.resolve(un.value).then(Wt,Gt);Ft((Wn=Wn.apply(ri,Jn)).next())}),mn=ri=>{var Jn=ri,{className:Wn,style:nn,children:ii,loading:Wt=!1,openLoading:Gt,onClick:Ft=()=>{},size:un="middle",shape:Ti="round"}=Jn,Ri=Cn(Jn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[di,Yt]=(0,ve.useState)(!1);return ve.createElement(Me.ZP,In({onClick:(0,wt.throttle)(Hn=>Pn(void 0,null,function*(){Gt&&Yt(!0);try{yield Ft(Hn)}catch(En){console.log("error",En)}Gt&&Yt(!1)}),2e3,{leading:!0,trailing:!1}),className:pt()(Le.btn,Le[`${un}-${Ti}`],Wn),style:nn,size:un,shape:Ti,loading:di||Wt},Ri),ii)},bi={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Br=({className:ri,style:Jn,children:Wn=null,onClick:nn,title:ii})=>ve.createElement("div",{className:pt()(bi.head,ri),style:Jn},ve.createElement("span",{className:"primary-hover",onClick:nn},ve.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ve.createElement("b",{title:ii},ii),ve.createElement("div",{className:bi.node},Wn)),Yi={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Xr=({confirmShow:ri=!0,confirmTitle:Jn,confirmClick:Wn,cancelShow:nn=!0,cancelTitle:ii,cancelClick:Wt,className:Gt,style:Ft,confirmLoading:un=!1})=>ve.createElement("div",{className:pt()(Yi.btns,Gt),style:Ft},ri&&ve.createElement(Me.ZP,{loading:un,onClick:Wn,type:"primary",className:Yi.confirm},Jn),nn&&ve.createElement(Me.ZP,{onClick:Wt,className:Yi.cancel},ii)),Ki={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},ar=({className:ri,style:Jn={},LeftContent:Wn,children:nn,RightContent:ii})=>ve.createElement("div",{className:pt()(Ki.fixedBottom,ri),style:Jn},ve.createElement("div",{className:Ki.wrap},ve.createElement("div",{className:Ki.left},Wn),ve.createElement("div",{className:Ki.center},nn),ve.createElement("div",{className:Ki.right},ii))),kn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},ea=({className:ri,style:Jn={},dataSource:Wn=[]})=>ve.createElement("div",{className:pt()(kn.crumbs,ri),style:Jn},Wn.map((nn,ii)=>ii<Wn.length-1?ve.createElement(ve.Fragment,{key:ii},nn.path||nn.onClick?ve.createElement("span",{className:kn.hover,onClick:nn!=null&&nn.onClick?nn.onClick:()=>Xn.history.push(nn.path)},nn.name):ve.createElement("span",null,nn.name),ve.createElement("span",null,"\xA0",">","\xA0")):ve.createElement("span",{key:ii,style:{color:"#5F6368"}},nn.name))),Zn=be(55054),Wr=Object.defineProperty,ra=Object.defineProperties,sa=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertySymbols,ma=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable,da=(ri,Jn,Wn)=>Jn in ri?Wr(ri,Jn,{enumerable:!0,configurable:!0,writable:!0,value:Wn}):ri[Jn]=Wn,la=(ri,Jn)=>{for(var Wn in Jn||(Jn={}))ma.call(Jn,Wn)&&da(ri,Wn,Jn[Wn]);if(Wa)for(var Wn of Wa(Jn))Ha.call(Jn,Wn)&&da(ri,Wn,Jn[Wn]);return ri},No=(ri,Jn)=>ra(ri,sa(Jn)),ni=(ri,Jn)=>{var Wn={};for(var nn in ri)ma.call(ri,nn)&&Jn.indexOf(nn)<0&&(Wn[nn]=ri[nn]);if(ri!=null&&Wa)for(var nn of Wa(ri))Jn.indexOf(nn)<0&&Ha.call(ri,nn)&&(Wn[nn]=ri[nn]);return Wn};const{Countdown:Ee}=Zn.default;var hn=ri=>{var Jn=ri,{onChange:Wn}=Jn,nn=ni(Jn,["onChange"]);const[ii,Wt]=(0,ve.useState)(null);(0,ve.useEffect)(()=>{typeof ii=="number"&&ii>=0&&Wn(ii)},[ii]);const Gt=Ft=>{const un=Math.floor(Ft/1e3);Wt(un)};return ve.createElement(Ee,No(la({},nn),{onChange:Gt}))}},99914:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return tt}});var ve=be(67294);function tt(Pt,Ut){const Bt=(0,ve.useRef)();(0,ve.useEffect)(()=>{Bt.current=Pt}),(0,ve.useEffect)(()=>{function Re(){Bt.current()}if(Ut!==null){let Je=setInterval(Re,Ut);return()=>clearInterval(Je)}},[Ut])}},81119:function(Rn,ti,be){"use strict";be.r(ti),be.d(ti,{default:function(){return Wn}});var ve=be(67294),tt={card:"card___c4ypw",head:"head___d2Dfo",element:"element___PyfcV",collaborator:"collaborator___o6MF4",btn:"btn___CF6mw",delSty:"delSty___Wm5pj",delBorder:"delBorder___IVg2Z",copHover:"copHover___rNmmw",wrap:"wrap___feope",center:"center___uU09V",tip:"tip___yCX57",title:"title___OpV1r",content:"content___XU4yH",fixedBtns:"fixedBtns___ItSdd"},Pt=be(94184),Ut=be.n(Pt),Bt=be(30001),Re=be(35567),Je=be(71230),pt=be(85804),wt=be(62844),ht=be(28802),Vt=be(57399),ct=be(91773),He=be(83062),Te=be(37720),ne=be(2453),te=be(74330),ue=be(84567),se=be(98813),ge=be(18046),me=be(28706),xe=be(35973),Pe=be(50881),Ke=be(60887),qe=be(32339),ft=be(45587),st=be(24285),rt=be(26194),Tt=Object.defineProperty,Mt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,On=(nn,ii,Wt)=>ii in nn?Tt(nn,ii,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):nn[ii]=Wt,Qt=(nn,ii)=>{for(var Wt in ii||(ii={}))Nt.call(ii,Wt)&&On(nn,Wt,ii[Wt]);if(Dt)for(var Wt of Dt(ii))Bn.call(ii,Wt)&&On(nn,Wt,ii[Wt]);return nn},vn=(nn,ii)=>Mt(nn,yt(ii));const lt=ve.createContext({}),Ge=()=>{const{setActivatorNodeRef:nn,listeners:ii}=(0,ve.useContext)(lt);return ve.createElement(pt.ZP,Qt({type:"text",size:"small",icon:ve.createElement(He.Z,{title:"\u53EF\u9F20\u6807\u62D6\u62FD\u8FDB\u884C\u8BD5\u9898\u6392\u5E8F\uFF0C\u5B66\u751F\u7AEF\u5C06\u6309\u7167\u6B64\u6392\u5E8F\u5C55\u793A"},ve.createElement(Pe.Z,null)),style:{cursor:"move"},ref:nn},ii))},Ne=nn=>{const{attributes:ii,listeners:Wt,setNodeRef:Gt,setActivatorNodeRef:Ft,transform:un,transition:Ti,isDragging:Ri}=(0,ft.nB)({id:nn["data-row-key"]}),di=Qt(vn(Qt({},nn.style),{transform:st.ux.Translate.toString(un),transition:Ti}),Ri?{position:"relative",zIndex:99}:{}),Yt=(0,ve.useMemo)(()=>({setActivatorNodeRef:Ft,listeners:Wt}),[Ft,Wt]);return ve.createElement(lt.Provider,{value:Yt},ve.createElement("tr",Qt(vn(Qt({},nn),{ref:Gt,style:di}),ii)))};var Xn=({columns:nn,dataSource:ii,setDataSource:Wt,loading:Gt})=>{const Ft=({active:un,over:Ti})=>{un.id!==(Ti==null?void 0:Ti.id)&&Wt(Ri=>{const di=Ri.findIndex(Hn=>Hn.id===(un==null?void 0:un.id)),Yt=Ri.findIndex(Hn=>Hn.id===(Ti==null?void 0:Ti.id));return(0,ft.Rp)(Ri,di,Yt)})};return ve.createElement(Ke.LB,{modifiers:[qe.DL],onDragEnd:Ft},ve.createElement(ft.Fo,{items:ii.map(un=>un.id),strategy:ft.qw},ve.createElement(Vt.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:Gt,locale:{emptyText:ve.createElement(rt.Z,{styles:{margin:"80px auto"},customText:ve.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",ve.createElement("span",{style:{color:"#CA7720"}},"\u53F3\u4E0A\u89D2\u64CD\u4F5C\u6309\u94AE"),"\u8FDB\u884C\u6DFB\u52A0\uFF5E")})},dataSource:ii,components:{body:{row:Ne}},columns:[{key:"sort",align:"center",width:80,render:()=>ve.createElement(Ge,null)},...nn],size:"middle"})))},Xt=be(55238),ai=be(38089),xn=be(88044),gi=be(60024),Zt=be(14845),Ct=be(33170),qt={flex_box_center:"flex_box_center___Iqqr9",flex_space_between:"flex_space_between___y0uZc",flex_box_vertical_center:"flex_box_vertical_center___akeKA",flex_box_center_end:"flex_box_center_end___DEJG9",flex_box_column:"flex_box_column___pgYr1",scoremodal:"scoremodal___PYXCN",selectWrapper:"selectWrapper___RNoPX",selectWrappers:"selectWrappers___fUTXA",allqingchu:"allqingchu___k6Qgb",title:"title___AAfdA",score:"score___oYtrM",close:"close___i8V3V",content:"content___JpTOI",items:"items___je5K0",bottom:"bottom___jjylc",yes:"yes___Wh4La",no:"no___fIya2",titlecount:"titlecount___pZQaF",add:"add___hT0xx",search:"search___WBmWG",searchIcon:"searchIcon___LgZF_",tabWrap:"tabWrap___lGZ3A",previewModal:"previewModal___jPoO2"},hi=be(53430),Kt={flex_box_center:"flex_box_center____Tkex",flex_space_between:"flex_space_between___EZnYm",flex_box_vertical_center:"flex_box_vertical_center___e6Uyw",flex_box_center_end:"flex_box_center_end___FubGu",flex_box_column:"flex_box_column___ibm4g",warp:"warp___IgClr",shixunbutton:"shixunbutton___DTP9s",redio:"redio___wfYmJ",redioitem:"redioitem___Lx8l8",redioitemyes:"redioitemyes___KKsIv",title:"title___GXJmE",titleyes:"titleyes___yYOlS",yestag:"yestag___WQlWV",qcount:"qcount___QpuQ9",score:"score___WkTL9",qtitle:"qtitle___TQM3w",checkbox:"checkbox___XWcyb",checkboxitem:"checkboxitem___eUzWD",checkboxitemyes:"checkboxitemyes___LOyRE",bottom:"bottom___IKM1j",bottomitem:"bottomitem___TaUK6",left:"left___szEjt",right:"right___XEuVG",completion:"completion___bVp0S",content:"content___R3KZ7",items:"items___DCx2v",simple:"simple___GPeTT",shixun:"shixun___hhixj",combination:"combination___toZnZ",program:"program___alaBk"},Xe=be(65226),Le=be(19575);const Me=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var $e=({qitem:nn})=>{var ii,Wt,Gt,Ft,un,Ti,Ri,di,Yt,Hn;return ve.createElement("div",{className:Kt.warp},ve.createElement("div",{className:Kt.mainPart},ve.createElement("div",{className:Kt.qcount},(nn==null?void 0:nn.question_type)===8&&ve.createElement(Xe.Z,{className:Kt.content,showProgramFill:!0,value:(ii=nn==null?void 0:nn.program_attr)==null?void 0:ii.description}),(nn==null?void 0:nn.question_type)!=8&&ve.createElement(Xe.Z,{className:Kt.qtitle,value:(nn==null?void 0:nn.name)||(nn==null?void 0:nn.title)})),((nn==null?void 0:nn.question_type)===0||(nn==null?void 0:nn.question_type)===2)&&ve.createElement("div",null,(Wt=nn==null?void 0:nn.choices)==null?void 0:Wt.map((En,Fr)=>ve.createElement("div",{className:Kt.redio},!(En!=null&&En.is_answer)&&ve.createElement("span",{className:Kt.redioitem}),(En==null?void 0:En.is_answer)&&ve.createElement("i",{className:`${Kt.redioitemyes} icon-duigou1`}),ve.createElement(Xe.Z,{className:En!=null&&En.is_answer?Kt.titleyes:Kt.title,value:Me[Fr]+(En==null?void 0:En.choice_text)}),(En==null?void 0:En.is_answer)&&ve.createElement("div",{className:Kt.yestag},"\u6B63\u786E\u7B54\u6848")))),(nn==null?void 0:nn.question_type)===1&&ve.createElement("div",null,(Gt=nn==null?void 0:nn.choices)==null?void 0:Gt.map((En,Fr)=>ve.createElement("div",{className:Kt.checkbox},!(En!=null&&En.is_answer)&&ve.createElement("span",{className:Kt.checkboxitem}),(En==null?void 0:En.is_answer)&&ve.createElement("i",{className:`${Kt.checkboxitemyes} icon-duigou1`}),ve.createElement(Xe.Z,{className:En!=null&&En.is_answer?Kt.titleyes:Kt.title,value:Me[Fr]+(En==null?void 0:En.choice_text)}),(En==null?void 0:En.is_answer)&&ve.createElement("div",{className:Kt.yestag},"\u6B63\u786E\u7B54\u6848")))),(nn==null?void 0:nn.question_type)===3&&ve.createElement("div",{className:Kt.completion},(Ft=nn==null?void 0:nn.standard_answer)==null?void 0:Ft.map((En,Fr)=>{var si;return ve.createElement("div",{style:{display:"flex"}},ve.createElement("span",{className:Kt.title},"\u586B\u7A7A\u9879",Fr+1),ve.createElement("div",{className:Kt.content},(si=En==null?void 0:En.answer_text)==null?void 0:si.map((tn,Vi)=>ve.createElement("div",{className:Kt.items},tn))))})),(nn==null?void 0:nn.question_type)===4&&ve.createElement("div",{className:Kt.simple},ve.createElement("div",{className:Kt.title},"\u53C2\u8003\u7B54\u6848"),ve.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(un=nn==null?void 0:nn.answer_texts)!=null&&un[0]?ve.createElement(Xe.Z,{className:Kt.content,value:(Ti=nn==null?void 0:nn.answer_texts)==null?void 0:Ti[0]}):ve.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(nn==null?void 0:nn.question_type)===5&&((Ri=nn==null?void 0:nn.challenge_names)==null?void 0:Ri.map((En,Fr)=>ve.createElement("div",{className:Kt.shixun},ve.createElement("span",{className:Kt.qtitle},ve.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,me.EM)(Fr+1),"\u9898"),En)))),(nn==null?void 0:nn.question_type)===6&&ve.createElement("div",{className:Kt.program},ve.createElement(Xe.Z,{className:Kt.content,value:((di=nn==null?void 0:nn.program_attr)==null?void 0:di.description)||"- -"})),(nn==null?void 0:nn.question_type)===7&&((Yt=nn==null?void 0:nn.sub_item_banks)==null?void 0:Yt.map((En,Fr)=>{var si,tn,Vi,Hr,Or;return ve.createElement("div",null,ve.createElement("div",{className:Kt.combination},ve.createElement("span",{className:Kt.qtitle},En==null?void 0:En.name)),ve.createElement("div",{className:Kt.warp,style:{padding:"0px",paddingTop:20}},ve.createElement("div",null,((En==null?void 0:En.item_type)=="SINGLE"||(En==null?void 0:En.item_type)=="JUDGMENT")&&((si=En==null?void 0:En.choices)==null?void 0:si.map((wn,or)=>ve.createElement("div",{className:Kt.redio},!(wn!=null&&wn.is_answer)&&ve.createElement("span",{className:Kt.redioitem}),(wn==null?void 0:wn.is_answer)&&ve.createElement("i",{className:`${Kt.redioitemyes} icon-duigou1`}),ve.createElement(Xe.Z,{className:wn!=null&&wn.is_answer?Kt.titleyes:Kt.title,value:Me[or]+(wn==null?void 0:wn.choice_text)}),(wn==null?void 0:wn.is_answer)&&ve.createElement("div",{className:Kt.yestag},"\u6B63\u786E\u7B54\u6848")))),(En==null?void 0:En.item_type)=="MULTIPLE"&&((tn=En==null?void 0:En.choices)==null?void 0:tn.map((wn,or)=>ve.createElement("div",{className:Kt.checkbox},!(wn!=null&&wn.is_answer)&&ve.createElement("span",{className:Kt.checkboxitem}),(wn==null?void 0:wn.is_answer)&&ve.createElement("i",{className:`${Kt.checkboxitemyes} icon-duigou1`}),ve.createElement(Xe.Z,{className:wn!=null&&wn.is_answer?Kt.titleyes:Kt.title,value:Me[or]+(wn==null?void 0:wn.choice_text)}),(wn==null?void 0:wn.is_answer)&&ve.createElement("div",{className:Kt.yestag},"\u6B63\u786E\u7B54\u6848")))),(En==null?void 0:En.item_type)=="COMPLETION"&&ve.createElement("div",{className:Kt.completion},(Vi=En==null?void 0:En.standard_answer)==null?void 0:Vi.map((wn,or)=>{var Xo;return ve.createElement("div",{style:{display:"flex"}},ve.createElement("span",{className:Kt.title},"\u586B\u7A7A\u9879",or+1),ve.createElement("div",{className:Kt.content},(Xo=wn==null?void 0:wn.answer_text)==null?void 0:Xo.map((Na,aa)=>ve.createElement("div",{className:Kt.items},Na))))})),(En==null?void 0:En.item_type)=="SUBJECTIVE"&&ve.createElement("div",{className:Kt.simple},ve.createElement("div",{className:Kt.title},"\u53C2\u8003\u7B54\u6848"),ve.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Hr=En==null?void 0:En.answer_texts)!=null&&Hr[0]?ve.createElement(Xe.Z,{className:Kt.content,value:(Or=En==null?void 0:En.answer_texts)==null?void 0:Or[0]}):ve.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(nn==null?void 0:nn.question_type)===8&&ve.createElement("div",null,ve.createElement(Xe.Z,{disabledFill:!0,className:Kt.content,showProgramFill:!0,value:Le.Base64.decode(((Hn=nn==null?void 0:nn.program_attr)==null?void 0:Hn.code)||"")})),(nn==null?void 0:nn.question_type)===5&&ve.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},ve.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},ve.createElement("div",{style:{marginRight:30}},ve.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),ve.createElement("span",{style:{color:"#000000"}},(nn==null?void 0:nn.author_name)||"- -")),ve.createElement("div",{style:{marginRight:30}},ve.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),ve.createElement("span",{style:{color:"#000000"}},(nn==null?void 0:nn.author_school_name)||"- -")),ve.createElement("div",{style:{marginRight:30}},ve.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),ve.createElement("span",{style:{color:"#000000"}},(nn==null?void 0:nn.study_count)||"0"))),ve.createElement("a",{className:Kt.shixunbutton,href:`/shixuns/${nn==null?void 0:nn.identifier}/challenges?exercise=true`,target:"_blank"},ve.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((nn==null?void 0:nn.question_type)<=4||[6,8].includes(nn==null?void 0:nn.question_type))&&ve.createElement("div",{className:Kt.bottom},ve.createElement("div",{className:Kt.bottomitem},ve.createElement("span",{className:Kt.left},"\u89E3\u6790"),ve.createElement("span",{className:Kt.right},nn!=null&&nn.analysis?ve.createElement(Xe.Z,{value:nn==null?void 0:nn.analysis}):ve.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ve.createElement("div",{className:Kt.bottomitem},ve.createElement("span",{className:Kt.left},"\u96BE\u5EA6"),ve.createElement("span",{className:Kt.right},(nn==null?void 0:nn.difficulty)===1?"\u7B80\u5355":(nn==null?void 0:nn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ve.createElement("div",{className:Kt.bottomitem},ve.createElement("span",{className:Kt.left},"\u77E5\u8BC6\u70B9"),ve.createElement("span",{className:Kt.right},nn!=null&&nn.tag_discipline?nn==null?void 0:nn.tag_discipline:ve.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Be=be(36913),ut=be(57971),Vn=be(38244),In=be(17663),Cn=be(67294),Pn=Object.defineProperty,oi=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,bi=Object.getOwnPropertySymbols,_i=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,Yi=(nn,ii,Wt)=>ii in nn?Pn(nn,ii,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):nn[ii]=Wt,ki=(nn,ii)=>{for(var Wt in ii||(ii={}))_i.call(ii,Wt)&&Yi(nn,Wt,ii[Wt]);if(bi)for(var Wt of bi(ii))Br.call(ii,Wt)&&Yi(nn,Wt,ii[Wt]);return nn},Xr=(nn,ii)=>oi(nn,mn(ii)),Ki=(nn,ii,Wt)=>new Promise((Gt,Ft)=>{var un=di=>{try{Ri(Wt.next(di))}catch(Yt){Ft(Yt)}},Ti=di=>{try{Ri(Wt.throw(di))}catch(Yt){Ft(Yt)}},Ri=di=>di.done?Gt(di.value):Promise.resolve(di.value).then(un,Ti);Ri((Wt=Wt.apply(nn,ii)).next())});const lr=({setScoreShow:nn,ScoreShow:ii,onOk:Wt,isshixuns:Gt,isloadings:Ft,dispatch:un,selectedIds:Ti,user:Ri,virtualId:di,shixunsDetail:Yt})=>{var Hn;let[En,Fr]=(0,ve.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[si,tn]=(0,ve.useState)([]),[Vi,Hr]=(0,ve.useState)([]),[Or,wn]=(0,ve.useState)([]),[or,Xo]=(0,ve.useState)([]);const[Na,aa]=(0,ve.useState)(!1),[hr]=ct.default.useForm(),[Nr,io]=(0,ve.useState)(),[va,Ho]=(0,ve.useState)(!1);let[vi,lo]=(0,ve.useState)(Gt);const[al,el]=(0,ve.useState)([]),[Ns,ln]=(0,ve.useState)(0),[Yo,Va]=(0,ve.useState)(!0),[Ao,ms]=(0,ve.useState)([]),[Ba,$a]=(0,ve.useState)([]),Er=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[uo,So]=(0,ve.useState)([]),_n=(0,ve.useRef)(new Set),ka=(0,ve.useRef)(new Set),An=(0,ve.useRef)(1),Po=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Ws=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],ds=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[kl,Ss]=(0,ve.useState)(!1),Ua=()=>{hr.resetFields(),vi=!1,lo(!1),Ss(!1),hr.submit()};(0,ve.useEffect)(()=>{ii&&(hr.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),Yo&&vi&&(hr.setFieldsValue({item_type:"SHIXUN"}),En.item_type="SHIXUN",Fr(ki({},En)),Va(!1)),En.type="0",Hr(Ti),wn(Ti),ka.current=new Set(Ti),us(En),tl(),ts({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),wr())},[ii]),console.log(Vi,Or,"listitems"),(0,ve.useEffect)(()=>{Ns>0&&setTimeout(()=>{ln(0)},2e3)},[Ns]);function us(Jt){return Ki(this,null,function*(){var Qn,Qi,wi;if(aa(!0),Fr(ki({},Jt)),(Or==null?void 0:Or.length)<=0&&Jt.type==="5"){Xo([]),aa(!1);return}let nr=Jt.type==="5"?Or==null?void 0:Or.filter(fn=>!al.includes(fn)):null,Xi=Jt.type==="5"?Or==null?void 0:Or.filter(fn=>al.includes(fn)):null;An.current=An.current+1;const Si=An.current;let pr=yield(0,Ct.ZP)("/api/item_banks.json",{method:"get",params:Xr(ki({},Jt),{discipline_id:((Qn=Jt==null?void 0:Jt.courseid)==null?void 0:Qn[0])||null,sub_discipline_id:((Qi=Jt==null?void 0:Jt.courseid)==null?void 0:Qi[1])||null,ids:nr,shixun_ids:Xi,include_shixuns:!0,group_id:((wi=Jt.group_id)==null?void 0:wi.map(fn=>fn==null?void 0:fn.value))||null,keyword:Jt.keyword?encodeURIComponent(Jt.keyword):Jt.keyword,type:Jt.type==="5"?null:Jt.type,clazz:Jt.type==="3"?"ItemBanksGroup":null})});An.current===Si&&(Xo(pr),aa(!1))})}function tl(){return Ki(this,null,function*(){let Jt=yield(0,Ct.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:En.type==="5"?null:En.type,clazz:"ItemBanksGroup"}});tn((0,hi.L)(Jt==null?void 0:Jt.disciplines))})}function ts(Jt){return Ki(this,null,function*(){var Qn;let Qi=yield(0,Ct.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Jt}),wi=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Qn=Qi==null?void 0:Qi.data)==null?void 0:Qn.map(nr=>({title:nr.name,id:nr.id,pid:nr.id,value:nr.id,key:nr.id,isLeaf:!nr.have_child}))}];ms(wi)})}function wr(){return Ki(this,null,function*(){let Jt=yield(0,Vn.Dm)({});(Jt==null?void 0:Jt.status)===0&&$a(Jt==null?void 0:Jt.groups)})}function at(Jt){return Ki(this,null,function*(){var Qn,Qi,wi,nr;aa(!0);let Xi=(Qn=Jt.list)==null?void 0:Qn.filter(fn=>!al.includes(fn)),Si=(Qi=Jt.list)==null?void 0:Qi.filter(fn=>al.includes(fn));if(Xi.length===0&&Si.length===0){aa(!1),Xo([]);return}let pr=yield(0,Ct.ZP)("/api/item_banks.json",{method:"get",params:Xr(ki({},Jt),{discipline_id:((wi=Jt==null?void 0:Jt.courseid)==null?void 0:wi[0])||null,sub_discipline_id:((nr=Jt==null?void 0:Jt.courseid)==null?void 0:nr[1])||null,ids:Xi,shixun_ids:Si,type:Jt.type==="5"?null:Jt.type,clazz:Jt.type==="3"?"ItemBanksGroup":null})});aa(!1),Xo(pr)})}const St=Jt=>Ki(void 0,null,function*(){const Qn=yield un({type:"shixunsDetail/release",payload:{id:Jt}});let Qi=Qn==null?void 0:Qn.tag_position,wi=(Qn==null?void 0:Qn.evaluation_set_position)||[],nr=Qn.status;return nr===0?(ne.ZP.success("\u53D1\u5E03\u6210\u529F"),us(En),!0):(nr===2?ne.ZP.error(`\u7B2C${wi.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):nr===3?ne.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Qi.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):ne.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),zt=Jt=>(Jt==null?void 0:Jt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",gn=()=>Na?"\u6682\u65E0\u6570\u636E":En.type==="3"&&!(Ba!=null&&Ba.length)?Cn.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",Cn.createElement("span",{onClick:()=>{var Jt;return(0,me.xg)(`/users/${(Jt=Ri==null?void 0:Ri.userInfo)==null?void 0:Jt.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):En.type==="0"&&(or==null?void 0:or.items_count)===0&&!(En!=null&&En.tag_discipline_id)&&!(En!=null&&En.difficulty)&&!(En!=null&&En.keyword)&&!(En!=null&&En.group_id)&&!(En!=null&&En.difficulty)?Cn.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",Cn.createElement("span",{onClick:()=>{(0,me.xg)(`/problems/newcreate?&pageId=${di}`),nn(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",Kn=(Jt,Qn,Qi)=>Jt.map(wi=>wi.key===Qn?ki(ki({},wi),Qi):wi.children?Xr(ki({},wi),{children:Kn(wi.children,Qn,Qi)}):wi),Ii=Jt=>Ki(void 0,null,function*(){const{key:Qn}=Jt;let Qi=En.type;const wi=yield(0,Vn.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Qn),type:Qi}),{data:nr,total_count:Xi}=wi||{};Xi>0&&ms(Si=>Kn(Si,Qn,{children:nr.map(pr=>({title:pr.name,id:pr.id,pid:pr.id,value:pr.id,key:pr.id,isLeaf:!pr.have_child}))}))});return Cn.createElement("div",null,Cn.createElement(wt.default,{title:!1,footer:!1,open:ii,width:1200,centered:!0,className:qt.scoremodal,onCancel:()=>{nn(!1)}},Cn.createElement("div",{style:{display:"flex",alignItems:"center"}},Cn.createElement("div",{className:qt.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),Cn.createElement(Xt.default,{className:qt.tabWrap,activeKey:En.type,onChange:Jt=>{Jt==="3"?(En.show_all_share=!0,ts({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):En.show_all_share=null,Jt==="0"&&ts({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),En.type=Jt,En.page=1,En.updated_at="",En.quotes="",En.courseid="",En.tag_discipline_id=null,En.difficulty=null,En.keyword=null,En.group_id=null,En.teach_group_id=null,hr.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(En==null?void 0:En.item_type)==="SHIXUN"&&En.type!=="5"&&(vi=!0,lo(!0)),Ss(!1),En.type==="5"&&(vi=!1,lo(!1)),Fr(ki({},En)),us(ki({},En)),tl()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:Cn.createElement("div",null,"\u5DF2\u9009",Or.length>0&&Cn.createElement("span",{className:qt.titlecount},Or.length),Ns>0&&Cn.createElement("span",{className:qt.add},"+",Ns)),key:"5"}]}),Cn.createElement(ct.default,{layout:"inline",form:hr,onValuesChange:(Jt,Qn)=>{const Qi=Object.values(Qn).some(nr=>nr!==null&&nr!==""&&nr!==void 0),wi=Qn.keyword==="";if(Ss(Qi||!wi),En.page=1,(Qn==null?void 0:Qn.item_type)==="SHIXUN"){if(En.type==="5"?lo(!1):lo(!0),Jt.keyword||Jt.keyword==="")return;hr.submit()}else{if(Jt!=null&&Jt.courseid&&hr.setFieldsValue({tag_discipline_id:""}),lo(!1),Jt.keyword||Jt.keyword==="")return;hr.submit()}},onFinish:Jt=>{var Qn;En.type==="3"&&(!Jt.group_id||((Qn=Jt==null?void 0:Jt.group_id)==null?void 0:Qn.length)===0)?En.show_all_share=!0:En.show_all_share=null,Fr(ki(ki({},En),Jt)),us(ki(ki({},En),Jt))}},Cn.createElement(ct.default.Item,{name:"courseid"},Cn.createElement(ai.Z,{className:qt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:si})),!vi&&Cn.createElement(ct.default.Item,{name:"tag_discipline_id"},Cn.createElement(xn.default,{className:qt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Hn=or==null?void 0:or.tag_disciplines)==null?void 0:Hn.map(Jt=>Cn.createElement(xn.default.Option,{key:Jt.id},Jt.name)))),Cn.createElement(ct.default.Item,{name:vi?"diff":"difficulty"},Cn.createElement(xn.default,{className:qt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!vi&&Po.map(Jt=>Cn.createElement(xn.default.Option,{key:Jt.value},Jt.name)),vi&&Ws.map(Jt=>Cn.createElement(xn.default.Option,{key:Jt.value},Jt.name)))),vi&&Cn.createElement(ct.default.Item,{name:"shixun_publish_status"},Cn.createElement(xn.default,{className:qt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},ds.map(Jt=>Cn.createElement(xn.default.Option,{key:Jt.value},Jt.name)))),En.type==="3"&&!vi&&Cn.createElement(ct.default.Item,{name:"teach_group_id"},Cn.createElement(xn.default,{className:qt.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(Jt,Qn)=>(console.log("---",Jt,Qn),Qn.children.toUpperCase().indexOf(Jt.toUpperCase())!==-1)},Ba==null?void 0:Ba.map(Jt=>Cn.createElement(xn.default.Option,{key:Jt.group_id},Jt.name)))),(En.type==="3"||En.type==="0")&&!vi&&Cn.createElement(ct.default.Item,{name:"group_id"},Cn.createElement(gi.default,{treeDataSimpleMode:!0,style:{width:118},className:qt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Jt,Qn)=>Qn.title.toUpperCase().indexOf(Jt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Ii,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ao})),kl&&Cn.createElement("span",{className:qt.allqingchu,onClick:Ua},Cn.createElement("i",{className:"iconfont icon-guanbi4"}),Cn.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Cn.createElement(ct.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Cn.createElement(ht.default.Search,{className:qt.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Cn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${qt.searchIcon}`,onClick:()=>hr.submit()}),onSearch:Jt=>{hr.submit()}}))),Cn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Cn.createElement("div",{onClick:()=>{En.updated_at==="asc"?En.updated_at="desc":En.updated_at="asc",Fr(Xr(ki({},En),{page:1})),us(Xr(ki({},En),{page:1}))}}," ",En.updated_at?Cn.createElement("img",{src:En.updated_at==="asc"?Be.Z:ut.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Cn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Cn.createElement("div",{onClick:()=>{En.quotes==="asc"?En.quotes="desc":En.quotes="asc",Fr(Xr(ki({},En),{page:1})),us(Xr(ki({},En),{page:1}))},style:{marginLeft:20}}," ",En.quotes?Cn.createElement("img",{src:En.quotes==="asc"?Be.Z:ut.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Cn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Cn.createElement(Vt.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(or==null?void 0:or.items)||(or==null?void 0:or.shixun_list),pagination:!1,locale:{emptyText:Cn.createElement(rt.Z,{styles:{margin:"18px auto"},customText:gn()})},loading:Na,rowKey:Jt=>Jt.id,rowSelection:{type:"checkbox",selectedRowKeys:Vi,getCheckboxProps:Jt=>({disabled:Jt.shixun_tag_num===1}),onSelect(Jt,Qn,Qi){if(Qn)vi&&el([...al,Jt.id]),Hr([...Vi,Jt.id]),So([...uo,Jt]),Jt.identifier?_n.current.add(Jt.id):ka.current.add(Jt.id),ln(1),wn([...Or,Jt.id]);else{const wi=uo.filter(Si=>Si.id!==Jt.id);So(wi);const nr=wi.map(Si=>Si.id);Hr([...nr]),Jt.identifier?_n.current.delete(Jt.id):ka.current.delete(Jt.id);let Xi=Or.filter(Si=>Si!==Jt.id);if(wn(Xi),vi){let Si=al.filter(pr=>pr!==Jt.id);el([...Si])}if(En.type==="5"){at(Xr(ki({},En),{list:[...Xi]}));return}}},onSelectAll(Jt,Qn,Qi){if(Jt){const wi=Qi.map(nr=>nr.id);vi&&el([...al,...wi]),So([...uo,...Qi]),Hr([...Vi,...wi]),wn([...Or,...wi]);for(const nr of Qi)nr.identifier?_n.current.add(nr.id):ka.current.add(nr.id)}else{const wi=Qi.map(Si=>Si.id),nr=Vi.filter(Si=>!wi.some(pr=>pr===Si)),Xi=uo.filter(Si=>!wi.some(pr=>pr===Si.id));if(So(Xi),Hr([...nr]),wn([...nr]),vi){let Si=al.filter(pr=>!wi.some(fn=>fn===pr.id));el([...Si])}En.type==="5"&&at(Xr(ki({},En),{list:[...nr]}));for(const Si of wi)Si.identifier?_n.current.delete(Si):ka.current.delete(Si)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(Jt,Qn,Qi)=>{const wi=`No.${Jt}`;return Cn.createElement(He.Z,{title:wi},Cn.createElement("span",null,wi))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:vi?"30%":"60%",key:"name",render:(Jt,Qn,Qi)=>{var wi;return Cn.createElement(He.Z,{title:zt(Qn)},Cn.createElement("span",null,Cn.createElement(Xe.Z,{key:1,showLines:1,showTextOnly:!0,value:vi||Qn!=null&&Qn.challenge_names?Qn!=null&&Qn.title||Jt===null?"--":Jt:(Qn==null?void 0:Qn.item_type)=="BPROGRAM"?(wi=Qn==null?void 0:Qn.program_attr)==null?void 0:wi.description:Jt})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(Jt,Qn,Qi)=>Cn.createElement(He.Z,{title:Jt},Cn.createElement("span",null,Jt||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!vi,render:(Jt,Qn,Qi)=>{var wi;return Cn.createElement(He.Z,{title:zt(Qn)},Cn.createElement("span",null,Jt?(wi=Jt==null?void 0:Jt.split("\u3001"))==null?void 0:wi[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!vi,render:(Jt,Qn,Qi)=>Cn.createElement(He.Z,{title:zt(Qn)},Cn.createElement("span",null,Jt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(Jt,Qn,Qi)=>{var wi,nr,Xi,Si;return Cn.createElement(He.Z,{title:zt(Qn)},Cn.createElement("div",null,vi||Qn!=null&&Qn.challenge_names?(Qn==null?void 0:Qn.level)||((nr=(wi=Po==null?void 0:Po.filter(pr=>pr.value===Jt))==null?void 0:wi[0])==null?void 0:nr.name):(Si=(Xi=Po==null?void 0:Po.filter(pr=>pr.value===Jt))==null?void 0:Xi[0])==null?void 0:Si.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!vi,render:(Jt,Qn,Qi)=>Cn.createElement(He.Z,{title:zt(Qn)},Cn.createElement("div",null,Jt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(Jt,Qn,Qi)=>Cn.createElement(He.Z,{title:zt(Qn)},Cn.createElement("div",null,vi||Qn!=null&&Qn.challenge_names?(Qn==null?void 0:Qn.study_count)||(Qn==null?void 0:Qn.stu_num):Jt))},{title:Cn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Cn.createElement(He.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Cn.createElement(In.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!vi,render:(Jt,Qn,Qi)=>Cn.createElement(He.Z,{title:zt(Qn)},Cn.createElement("div",null,Jt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(Jt,Qn,Qi)=>Cn.createElement(He.Z,{title:zt(Qn)},Cn.createElement("div",{style:{flex:1,textAlign:"start"}},Cn.createElement("a",{onClick:()=>{var wi,nr;io(Xr(ki({},Qn),{question_type:vi||Qn!=null&&Qn.challenge_names?5:(nr=(wi=Er==null?void 0:Er.filter(Xi=>Xi.value===(Qn==null?void 0:Qn.item_type)))==null?void 0:wi[0])==null?void 0:nr.question_type})),Ho(!0)}},"\u67E5\u770B"),(Qn==null?void 0:Qn.shixun_tag_num)===1&&Cn.createElement("a",{style:{marginLeft:10},onClick:()=>{wt.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Cn.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Cn.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Qn==null?void 0:Qn.identifier}/challenges`)}},(Qn==null?void 0:Qn.shixun_name)||"--"),"\uFF1F"),onOk:()=>Ki(void 0,null,function*(){if(!St(Qn==null?void 0:Qn.identifier))return new Promise((wi,nr)=>{nr()})})})}},"\u53D1\u5E03")))}].filter(Jt=>!Jt.hidden)}),Cn.createElement(Zt.Z,{current:En.page,total:(or==null?void 0:or.items_count)||(or==null?void 0:or.shixuns_count),style:{marginBottom:20},defaultPageSize:En.per_page,hideOnSinglePage:!(or!=null&&or.items_count),showTotal:Jt=>Cn.createElement("span",null,"\u5171\xA0",Cn.createElement("span",{style:{color:"#165DFF"}},Jt),"\xA0\u6761\u6570\u636E"),pageSize:En.per_page,onChange:(Jt,Qn)=>{En.page=Jt,En.per_page=Qn,Fr(ki({},En)),us(ki({},En))}}),Cn.createElement("div",{className:qt.bottom},Cn.createElement(pt.ZP,{className:qt.no,onClick:()=>{nn(!1)}},"\u53D6\u6D88"),Cn.createElement(pt.ZP,{loading:Ft,style:{width:Ft&&75},className:qt.yes,onClick:()=>Ki(void 0,null,function*(){if((Or==null?void 0:Or.length)<=0){ne.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Wt([...ka.current],[..._n.current],!0,Or==null?void 0:Or.length)})},"\u786E\u8BA4"))),Cn.createElement(wt.default,{open:va,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:qt.previewModal,width:1e3,centered:!0,onCancel:()=>{Ho(!1)},onOk:()=>{Ho(!1)}},Cn.createElement($e,{qitem:Nr})))};var ar=(0,xe.connect)(({shixunsDetail:nn,user:ii})=>({shixunsDetail:nn,user:ii}))(lr),kn=be(12082),Bi=be(94699),ea=be.n(Bi),Zn=be(67294),Wr=Object.defineProperty,ra=Object.defineProperties,sa=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertySymbols,ma=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable,da=(nn,ii,Wt)=>ii in nn?Wr(nn,ii,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):nn[ii]=Wt,la=(nn,ii)=>{for(var Wt in ii||(ii={}))ma.call(ii,Wt)&&da(nn,Wt,ii[Wt]);if(Wa)for(var Wt of Wa(ii))Ha.call(ii,Wt)&&da(nn,Wt,ii[Wt]);return nn},No=(nn,ii)=>ra(nn,sa(ii)),ni=(nn,ii)=>{var Wt={};for(var Gt in nn)ma.call(nn,Gt)&&ii.indexOf(Gt)<0&&(Wt[Gt]=nn[Gt]);if(nn!=null&&Wa)for(var Gt of Wa(nn))ii.indexOf(Gt)<0&&Ha.call(nn,Gt)&&(Wt[Gt]=nn[Gt]);return Wt},Ee=(nn,ii,Wt)=>new Promise((Gt,Ft)=>{var un=di=>{try{Ri(Wt.next(di))}catch(Yt){Ft(Yt)}},Ti=di=>{try{Ri(Wt.throw(di))}catch(Yt){Ft(Yt)}},Ri=di=>di.done?Gt(di.value):Promise.resolve(di.value).then(un,Ti);Ri((Wt=Wt.apply(nn,ii)).next())});const pn=({title:nn,icon:ii,className:Wt,style:Gt,children:Ft})=>Zn.createElement("div",{className:Ut()(tt.card,Wt),style:Gt},Zn.createElement("div",{className:tt.head},Zn.createElement("i",{className:ii}),Zn.createElement("b",null,nn)),Zn.createElement("div",{className:tt.element},Ft)),hn=nn=>{var ii=nn,{value:Wt,onChange:Gt}=ii,Ft=ni(ii,["value","onChange"]);return Zn.createElement(Re.Z,No(la({},Ft),{defaultValue:Wt,onChange:Gt}))},ri=({value:nn=[],onChange:ii,params:Wt,className:Gt})=>{const[Ft,un]=(0,ve.useState)(!1),[Ti,Ri]=(0,ve.useState)([]),[di,Yt]=(0,ve.useState)(""),[Hn,En]=(0,ve.useState)([]),[Fr,si]=(0,ve.useState)("");(0,ve.useEffect)(()=>{tn()},[]);function tn(){return Ee(this,null,function*(){let Vi=yield(0,Ct.ZP)(`/api/courses/${Wt==null?void 0:Wt.coursesId}/teachers`,{method:"get",params:{homework_id:Wt.categoryId,limit:1e3}});En((Vi==null?void 0:Vi.teacher_list)||[])})}return Zn.createElement(ve.Fragment,null,Zn.createElement("div",{className:Ut()(tt.collaborator,Gt)},nn==null?void 0:nn.map(Vi=>Zn.createElement(Je.Z,{align:"middle",className:`${tt.btn} ${Fr==(Vi==null?void 0:Vi.user_id)?tt.delBorder:""}`,key:Vi.user_id},Zn.createElement("span",{className:"c-grey-333"},Vi==null?void 0:Vi.name),Zn.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${tt.delSty}`,onMouseEnter:()=>{si(Vi==null?void 0:Vi.user_id)},onMouseLeave:()=>{si("")},onClick:()=>{const Hr=nn.filter(Or=>Or.user_id!==Vi.user_id);Ri(Hr.map(Or=>Or.user_id)),ii(Hr)}}))),Zn.createElement(pt.ZP,{className:tt.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>un(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),Zn.createElement(wt.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:Ft,onCancel:()=>un(!1),onOk:()=>{const Vi=Hn.filter(Hr=>Ti.includes(Hr.user_id));ii(Vi),un(!1)},afterClose:()=>{Yt("")}},Zn.createElement(Je.Z,{align:"middle"},Zn.createElement("label",null,"\u59D3\u540D\uFF1A"),Zn.createElement(ht.default.Search,{value:di,size:"middle",style:{flex:1},onChange:Vi=>Yt(Vi.target.value)})),Zn.createElement(Vt.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:Vi=>{Ri(Vi)},selectedRowKeys:Ti,getCheckboxProps:Vi=>({disabled:Vi.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:Hn.filter(Vi=>Vi.name.includes(di)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var Wn=()=>{var nn;const ii=(0,xe.useParams)(),Wt=(0,xe.useDispatch)(),[Gt]=ct.default.useForm(),Ft=ct.default.useWatch("hack_score_settings",Gt),un=ct.default.useWatch("open_code",Gt),Ti=ct.default.useWatch("rank_forbidden",Gt),Ri=ct.default.useWatch("hack_analysis",Gt),di=ct.default.useWatch("hack_answer",Gt),[Yt,Hn]=(0,ve.useState)([]),[En,Fr]=(0,ve.useState)({}),[si,tn]=(0,ve.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[Vi,Hr]=(0,ve.useState)(!0),[Or,wn]=(0,ve.useState)(!1),[or,Xo]=(0,ve.useState)(!1),[Na,aa]=(0,ve.useState)({}),[hr,Nr]=(0,ve.useState)(!1),[io,va]=(0,ve.useState)(!1),Ho=(0,ve.useRef)(!1),vi=(0,ve.useRef)(String(Math.random()).slice(-6)),lo=(nn=window.location.pathname)==null?void 0:nn.includes("add");(0,ve.useEffect)(()=>(window.addEventListener("visibilitychange",al),()=>{window.removeEventListener("visibilitychange",al)}),[Yt,Na]),(0,ve.useEffect)(()=>(Wt({type:"globalSetting/footerToggle",payload:!1}),()=>{Wt({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ve.useEffect)(()=>{Yt.length&&Ft!==void 0&&Ao()},[Ft,JSON.stringify(Yt==null?void 0:Yt.map(Er=>Er.id+Er.hack_score))]),(0,ve.useEffect)(()=>{el(),lo?Hr(!1):Ns()},[]);const al=()=>Ee(void 0,null,function*(){var Er;if(document.visibilityState==="visible"){va(!0);let uo=Yt.map(ka=>ka.id),So=localStorage.getItem(vi.current);So&&(So=JSON.parse(So),So=Array.isArray(So)?So:[],uo=[...uo,...So],localStorage.removeItem(vi.current));const _n=yield(0,Ct.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:uo.length?uo:-1,homework_common_id:lo?null:Na==null?void 0:Na.homework_id}});if(_n!=null&&_n.items){const ka=(Er=_n==null?void 0:_n.items)==null?void 0:Er.map(An=>{const Po=Yt.find(Ws=>Ws.id===An.id);return Po?No(la({},An),{hack_score:Po.hack_score}):An});Hn(ka)}va(!1)}}),el=()=>Ee(void 0,null,function*(){const Er=yield(0,Ct.ZP)(`/api/courses/${ii.coursesId}/homework_commons/new.json`,{method:"get",params:{category:ii==null?void 0:ii.categoryId,type:5}});Er!=null&&Er.course_name&&Fr(Er)}),Ns=()=>Ee(void 0,null,function*(){var Er,uo;const So=yield(0,Ct.ZP)(`/api/homework_commons/${ii==null?void 0:ii.categoryId}/edit_hack.json`,{method:"get"});if((So==null?void 0:So.status)===0){const _n=(Er=So==null?void 0:So.collaborators_data)==null?void 0:Er.map(An=>({user_id:An.id,name:An.real_name}));Gt.setFieldsValue(No(la({},So),{user_ids:_n,rank_forbidden_start:So!=null&&So.rank_forbidden_start?ea()(So==null?void 0:So.rank_forbidden_start):"",rank_forbidden_end:So!=null&&So.rank_forbidden_end?ea()(So==null?void 0:So.rank_forbidden_end):""}));const ka=(uo=So==null?void 0:So.items)==null?void 0:uo.map((An,Po)=>{var Ws,ds;return No(la({},An),{hack_score:(ds=(Ws=So==null?void 0:So.hack_settings)==null?void 0:Ws[Po])==null?void 0:ds.hack_score})});Hn(ka||[]),aa(la({},So))}Hr(!1)}),ln=()=>{let Er=`/classrooms/${ii==null?void 0:ii.coursesId}/program_homework`;return lo||(Er=`/classrooms/${ii==null?void 0:ii.coursesId}/program_homework/${ii==null?void 0:ii.categoryId}/detail`),Er},Yo=[{name:(En==null?void 0:En.course_name)||"",path:`/classrooms/${En==null?void 0:En.course_id}/program_homework`},{name:lo?"\u7F16\u7A0B\u4F5C\u4E1A":Na==null?void 0:Na.name,path:ln()},{name:(lo?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],Va=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(Er,uo,So)=>So+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:Er=>Zn.createElement(He.Z,{placement:"topLeft",title:Er},Zn.createElement("span",null,Er||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(Er,uo,So)=>Zn.createElement(Te.Z,{disabled:Ft!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:Er,onChange:_n=>{Yt[So].hack_score=_n;const ka=Yt.reduce((An,Po)=>An+Number(Po.hack_score||0),0);Gt.setFieldsValue({total_score:ka.toFixed(2)}),Hn([...Yt])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:Er=>Zn.createElement("span",null,Er===1?"\u7B80\u5355":Er===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:Er=>Zn.createElement(He.Z,{placement:"topLeft",title:Er},Zn.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},Er||"--"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes"},{title:"\u64CD\u4F5C",dataIndex:"action",width:146,render:(Er,uo)=>Zn.createElement("span",null,Zn.createElement("span",{onClick:()=>Ee(void 0,null,function*(){var So;Wt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let _n=yield(0,Ct.ZP)(`/api/problems/${(So=uo==null?void 0:uo.program_attr)==null?void 0:So.identifier}/start.json`,{method:"get"});(_n==null?void 0:_n.status)===0&&(0,me.xg)(`/myproblems/${_n==null?void 0:_n.identifier}?type=1&pageId=edit&backUrl=${ln()}`),Wt({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),Zn.createElement("span",{onClick:()=>{var So;return(0,me.xg)(`/problems/newedit/${(So=uo==null?void 0:uo.program_attr)==null?void 0:So.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),Zn.createElement("span",{onClick:()=>{const So=Yt.filter(_n=>_n.id!==uo.id);Hn(So),ne.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],Ao=()=>{const Er=[...Yt],uo=Gt.getFieldValue("total_score"),So=Er==null?void 0:Er.length;let _n=0,ka;switch(Ft){case 0:const An=(uo/So).toFixed(2);Er.map((tl,ts)=>{_n=ts,tl.hack_score=An>0?An:0}),ka=(uo-An*(So-1)).toFixed(2),Er[_n].hack_score=ka>0?ka:0;break;case 1:const Po=[0,1,3,6];let Ws=0;const ds=Er.filter(tl=>tl.difficulty===1).length*Po[1],kl=Er.filter(tl=>tl.difficulty===2).length*Po[2],Ss=Er.filter(tl=>tl.difficulty===3).length*Po[3],Ua=uo/(ds+kl+Ss);Er.map((tl,ts)=>{_n=ts,tl.hack_score=(Po[tl.difficulty]*Ua).toFixed(2),Ws=Ws+Number(tl.hack_score)});let us=Er[_n].hack_score;ka=(uo-Ws+Number(us)).toFixed(2),Er[_n].hack_score=ka>0?ka:0;break}Hn(Er)},ms=Er=>{Ho.current=Er,Gt.submit()},Ba=Er=>Ee(void 0,null,function*(){var uo;if(!Yt.length){ne.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),Gt.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}Nr(!0);const So=[],_n=Yt.map(Po=>(So.push(Po.hack_id),{hack_id:Po.hack_id,hack_name:Po.name,hack_score:Po.hack_score,difficult:Po.difficulty})),ka=(uo=Er==null?void 0:Er.user_ids)==null?void 0:uo.map(Po=>Po.user_id),An=yield(0,Ct.ZP)(`/api/courses/${ii.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:No(la({},Er),{category:lo?Number(ii==null?void 0:ii.categoryId):null,homework_id:lo?null:Na==null?void 0:Na.homework_id,hack_settings:_n,user_ids:ka,hack_ids:So})});if((An==null?void 0:An.status)===0)if(ne.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ho.current){const Po=la({},An);tn(Po),Wt({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[An==null?void 0:An.id],selectArrsAll:[Po],params:ii,detail:!0,type:2,manage_all_group:Po==null?void 0:Po.manage_all_group}})}else xe.history.push(`/classrooms/${ii.coursesId}/program_homework/${An==null?void 0:An.id}/detail`);Nr(!1)}),$a=Er=>Ee(void 0,null,function*(){if(!Er.length){ne.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(Er.length>200){ne.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const uo=[],So=Yt.map(An=>{var Po;return(Po=An.program_attr)==null?void 0:Po.origin_item_bank_id}),_n=[];Er.forEach(An=>{if(So.includes(An)){const Po=Yt.find(Ws=>{var ds;return((ds=Ws.program_attr)==null?void 0:ds.origin_item_bank_id)===An});_n.push(Po)}else uo.push(An)}),Xo(!0);const ka=yield(0,Ct.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:uo}});if(ka!=null&&ka.items){const An=[..._n,...ka==null?void 0:ka.items];if(Ft===2){const Po=An.reduce((Ws,ds)=>Ws+Number(ds.hack_score||0),0);Gt.setFieldsValue({total_score:Po.toFixed(2)})}Hn(An),wn(!1)}Xo(!1)});return Zn.createElement("div",{className:tt.wrap},Zn.createElement(te.Z,{spinning:Vi},Zn.createElement("div",{className:tt.center},Zn.createElement(Bt._b,{dataSource:Yo,className:"mb20"}),Zn.createElement(ct.default,{form:Gt,preserve:!1,onValuesChange:Er=>{"total_score"in Er&&Ao()},onFinishFailed:Er=>Ee(void 0,null,function*(){var uo,So;ne.ZP.error(Er.errorFields[0].errors[0]),Gt.scrollToField((So=(uo=Er==null?void 0:Er.errorFields)==null?void 0:uo[0])==null?void 0:So.name,{behavior:"smooth",block:"center"})}),onFinish:Ba,colon:!1,size:"large"},Zn.createElement(pn,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},Zn.createElement(ct.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"},{whitespace:!0,message:"\u4F5C\u4E1A\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},Zn.createElement(ht.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),Zn.createElement(ct.default.Item,{labelCol:{flex:"81px"},label:"\u4F5C\u4E1A\u8BF4\u660E",name:"description",initialValue:"",rules:[{max:5e4,message:"\u4F5C\u4E1A\u8BF4\u660E\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26"}]},Zn.createElement(hn,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),Zn.createElement(pn,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},Zn.createElement(ct.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},Zn.createElement(ue.default.Group,null,Zn.createElement(ue.default,{value:"c"},"C\u8BED\u8A00"),Zn.createElement(ue.default,{value:"c++"},"C++\u8BED\u8A00"),Zn.createElement(ue.default,{value:"java"},"Java\u8BED\u8A00"),Zn.createElement(ue.default,{value:"python"},"Python\u8BED\u8A00"))),Zn.createElement(Je.Z,{align:"middle"},Zn.createElement(ct.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},Zn.createElement(Te.Z,{precision:1,disabled:Ft===2,min:0,style:{width:223},addonAfter:"\u5206"})),Zn.createElement(ct.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},Zn.createElement(Te.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),Zn.createElement(ct.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},Zn.createElement(se.ZP.Group,null,Zn.createElement(se.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),Zn.createElement(se.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),Zn.createElement(se.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),Zn.createElement(Je.Z,{align:"middle"},Zn.createElement("span",null,"\u9898\u76EE\u5217\u8868"),Zn.createElement(pt.ZP,{onClick:()=>wn(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),Zn.createElement(pt.ZP,{onClick:()=>(0,me.xg)(`/problems/newcreate?pageId=${vi.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),Zn.createElement("div",{className:tt.tip},Zn.createElement("i",{className:"iconfont icon-tishi12 mr5 font14"}),"\u63D0\u793A\uFF1A\u53EF\u4EE5\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u5BF9\u8BE5\u8BD5\u9898\u7684\u6D4B\u8BD5\u7528\u4F8B/\u521D\u59CB\u4EE3\u7801\u8FDB\u884C\u4FEE\u6539\uFF0C\u4FEE\u6539\u7684\u5185\u5BB9\u5E76\u4E0D\u4F1A\u540C\u6B65\u5230\u8BD5\u9898\u5E93"),Zn.createElement(ct.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},Zn.createElement(Xn,{dataSource:Yt,setDataSource:Hn,columns:Va,loading:io}))),Zn.createElement(pn,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},Zn.createElement("div",{className:tt.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),Zn.createElement("div",{className:`${tt.content} mb30`},Zn.createElement(ct.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},Zn.createElement(se.ZP.Group,null,Zn.createElement(se.ZP,{value:0},Zn.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),Zn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),Zn.createElement(se.ZP,{style:{marginLeft:40},value:1},Zn.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),Zn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),Zn.createElement("div",{className:`${tt.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),Zn.createElement("div",{className:tt.content},Zn.createElement(ct.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},Zn.createElement(ue.default,null,Zn.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),Zn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\uFF0C\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801\uFF0C\u5426\u5219\u53EA\u5C55\u793A\u5728\u4F5C\u4E1A\u65F6\u95F4\u8303\u56F4\u5185\u63D0\u4EA4\u7684\u4EE3\u7801\uFF09")))),Zn.createElement("div",{className:`${tt.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),Zn.createElement("div",{className:tt.content},Zn.createElement(ct.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},Zn.createElement(ue.default,null,Zn.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),Zn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\u5B66\u751F\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u53EF\u67E5\u770B\u5176\u4ED6\u5B66\u751F\u7684\u6210\u7EE9\uFF09"))),Zn.createElement(ct.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},Zn.createElement(ue.default,null,Zn.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),Zn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u53EF\u5728\u6392\u884C\u699C\u4E2D\u67E5\u770B\u4ED6\u4EBA\u8BD5\u9898\u901A\u8FC7\u4EE3\u7801\u8BE6\u60C5\uFF09"))),!!un&&Zn.createElement(ct.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},Zn.createElement(se.ZP.Group,null,Zn.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Zn.createElement(se.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),Zn.createElement(ct.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},Zn.createElement(ue.default,null,Zn.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),Zn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u4E0D\u53EF\u67E5\u770B\u6392\u884C\u699C\u4FE1\u606F\u7684\u65F6\u95F4\u6BB5\uFF09"))),!!Ti&&Zn.createElement(Je.Z,{align:"middle",className:"ml25"},Zn.createElement(ct.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"rank_forbidden_start",initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},Zn.createElement(ge.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:me.Q8,disabledTime:me.d0})),Zn.createElement(ct.default.Item,{label:"\u622A\u6B62\u65F6\u95F4",name:"rank_forbidden_end",style:{marginLeft:40},initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},Zn.createElement(ge.default,{style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",disabledDate:me.Q8,disabledTime:me.d0}))),Zn.createElement(ct.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},Zn.createElement(ue.default,null,Zn.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),Zn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u89E3\u6790\uFF09"))),!!Ri&&Zn.createElement(ct.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},Zn.createElement(se.ZP.Group,null,Zn.createElement(se.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Zn.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),Zn.createElement(se.ZP,{style:{marginLeft:60},value:1},"\u5B66\u751F\u901A\u8FC7\u7B54\u9898\u540E/\u672A\u901A\u8FC7\u7684\u5B66\u751F\u4F5C\u4E1A\u622A\u6B62\u540E"))),Zn.createElement(ct.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},Zn.createElement(ue.default,null,Zn.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),Zn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!di&&Zn.createElement(ct.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},Zn.createElement(se.ZP.Group,null,Zn.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Zn.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),Zn.createElement("div",{className:`${tt.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),Zn.createElement(ct.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},Zn.createElement(ri,{params:ii}))))),Zn.createElement("div",{className:tt.fixedBtns},Zn.createElement(Je.Z,{align:"middle",className:tt.center},Zn.createElement(pt.ZP,{onClick:()=>xe.history.push(ln()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),Zn.createElement(pt.ZP,{loading:hr&&!Ho.current,disabled:hr&&Ho.current,onClick:()=>ms(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),Zn.createElement(pt.ZP,{loading:hr&&Ho.current,disabled:hr&&!Ho.current,onClick:()=>ms(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),Zn.createElement(ar,{setScoreShow:wn,isshixuns:!1,ScoreShow:Or,virtualId:vi.current,isloadings:or,onOk:$a,selectedIds:Yt.map(Er=>{var uo;return(uo=Er.program_attr)==null?void 0:uo.origin_item_bank_id})||[]}),Zn.createElement(kn.Z,{courseEndTime:si==null?void 0:si.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${ii==null?void 0:ii.coursesId}/program_homework/${si==null?void 0:si.id}/detail`}}))}},12082:function(Rn,ti,be){"use strict";var ve=be(67294),tt=be(91773),Pt=be(2453),Ut=be(62844),Bt=be(71230),Re=be(98813),Je=be(37720),pt=be(15746),wt=be(18046),ht=be(84567),Vt=be(94699),ct=be.n(Vt),He=be(33170),Te=be(52262),ne=be(28706),te=be(35973),ue=be(12317),se=be(89779),ge=be(17998),me=be(67294),xe=Object.defineProperty,Pe=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Bn,On,Qt)=>On in Bn?xe(Bn,On,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Bn[On]=Qt,Tt=(Bn,On)=>{for(var Qt in On||(On={}))ft.call(On,Qt)&&rt(Bn,Qt,On[Qt]);if(qe)for(var Qt of qe(On))st.call(On,Qt)&&rt(Bn,Qt,On[Qt]);return Bn},Mt=(Bn,On)=>Pe(Bn,Ke(On)),yt=(Bn,On)=>{var Qt={};for(var vn in Bn)ft.call(Bn,vn)&&On.indexOf(vn)<0&&(Qt[vn]=Bn[vn]);if(Bn!=null&&qe)for(var vn of qe(Bn))On.indexOf(vn)<0&&st.call(Bn,vn)&&(Qt[vn]=Bn[vn]);return Qt},Dt=(Bn,On,Qt)=>new Promise((vn,lt)=>{var Ge=Xn=>{try{Nn(Qt.next(Xn))}catch(Xt){lt(Xt)}},Ne=Xn=>{try{Nn(Qt.throw(Xn))}catch(Xt){lt(Xt)}},Nn=Xn=>Xn.done?vn(Xn.value):Promise.resolve(Xn.value).then(Ge,Ne);Nn((Qt=Qt.apply(Bn,On)).next())});const Nt=Bn=>{var On=Bn,{classroomList:Qt,dispatch:vn,courseEndTime:lt,onWindowBack:Ge}=On,Ne=yt(On,["classroomList","dispatch","courseEndTime","onWindowBack"]),Nn,Xn,Xt,ai,xn,gi,Zt,Ct,qt,hi,Kt,Xe,Le,Me,We,$e,Be,ut,Vn,In,Cn,Pn,oi,mn,bi,_i,Br,Yi,ki,Xr,Ki,lr,ar,kn,Bi,ea,Zn,Wr,ra;const sa=(0,te.useParams)(),[Wa]=tt.default.useForm(),[ma,Ha]=(0,ve.useState)(1),[da,la]=(0,ve.useState)([]),[No,ni]=(0,ve.useState)(0),[Ee,pn]=(0,ve.useState)(2e3),[hn,ri]=(0,ve.useState)(!0),[Jn,Wn]=(0,ve.useState)(!1),[nn,ii]=(0,ve.useState)(!1),[Wt,Gt]=(0,ve.useState)([]),[Ft,un]=(0,ve.useState)(!0),[Ti,Ri]=(0,ve.useState)(!((Xt=(Xn=(Nn=Qt.actionTabs)==null?void 0:Nn.selectArrsAll)==null?void 0:Xn[0])!=null&&Xt.send_type));let[di,Yt]=(0,ve.useState)([0,0,0]);(0,ve.useEffect)(()=>{var Or,wn,or,Xo,Na,aa,hr,Nr,io,va,Ho,vi,lo;if(Qt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(si(),(or=(wn=(Or=Qt.actionTabs)==null?void 0:Or.selectArrsAll)==null?void 0:wn[0])!=null&&or.can_publish?Yt([...(io=(Nr=(hr=Qt.actionTabs)==null?void 0:hr.selectArrsAll)==null?void 0:Nr[0])==null?void 0:io.difficult_count]):Yt([...(aa=(Na=(Xo=Qt.actionTabs)==null?void 0:Xo.selectArrsAll)==null?void 0:Na[0])==null?void 0:aa.difficult_settings]),Ri(!((vi=(Ho=(va=Qt.actionTabs)==null?void 0:va.selectArrsAll)==null?void 0:Ho[0])!=null&&vi.send_type)),Hn(),Qt.actionTabs.type===2){const al=(lo=Qt.actionTabs.selectArrsAll)==null?void 0:lo[0];un(al.unified_setting)}else un(!1)},[Qt.actionTabs]),(0,ve.useEffect)(()=>{if(Jn){if(nn)return;vn({type:"classroomList/setActionTabs",payload:{}}),(0,Te.GJ)()?(vn({type:"classroomList/getClassroomTeacherCommonList",payload:Mt(Tt({},Qt.actionTabs.params),{type:1})}),vn({type:"shixunHomeworks/getWorkList",payload:Tt({},sa)})):vn({type:"classroomList/getClassroomCommonList",payload:Tt({},Qt.actionTabs.params)})}},[Jn]);const Hn=Or=>Dt(void 0,null,function*(){ri(!0);const wn=yield(0,se.c_)(Mt(Tt({},sa),{page:Or||ma,limit:2e4,homework_id:Qt.actionTabs.type===1?"":Qt.actionTabs.selectArrs[0]}));wn==null||wn.course_groups.map((or,Xo)=>{or.key=or.id,or.title=or.name,or.disabled=or.is_published}),wn&&(la([...wn==null?void 0:wn.course_groups]),ni(wn==null?void 0:wn.course_groups_count),ri(!1),Or||Wa.setFieldsValue({publish_time:ct()(ct()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:ct()(ct()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),En=()=>{(0,Te.GJ)()?Qt.actionTabs.detail?(vn({type:"shixunHomeworks/setActionTabs",payload:{}}),vn({type:"shixunHomeworks/getWorkList",payload:Tt({},sa)}),vn({type:"shixunHomeworks/getWorkSetting",payload:Tt({},sa)})):vn({type:"classroomList/getClassroomTeacherCommonList",payload:Mt(Tt({},Qt.actionTabs.params),{type:5,category:Qt.actionTabs.params.categoryId})}):vn({type:"classroomList/getClassroomCommonList",payload:Tt({},Qt.actionTabs.params)})},Fr=()=>Dt(void 0,null,function*(){var Or,wn;if((0,Te.Rm)()&&!((Or=Qt.AssistantObject.hack)!=null&&Or.can_publish)){Pt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),Hr(!1);return}const or=Tt({},Wa.getFieldsValue());if(or.end_time<=or.publish_time){Pt.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Hr(!1);return}if((Wt==null?void 0:Wt.length)<=0&&!Ft&&da.length>0){Pt.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Hr(!1);return}if(di.reduce((aa,hr)=>aa+hr)===0&&!Ti){Pt.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Hr(!1);return}let Xo={homework_ids:[...Qt.actionTabs.selectArrs],group_ids:Wt.length>0?Wt.map(aa=>aa.id):(wn=Qt.detailCommonHomeworksList)==null?void 0:wn.course_groups,end_time:ct()(or.end_time).format("YYYY-MM-DD HH:mm"),publish_time:ct()(or.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:di==null?void 0:di.map(aa=>aa),send_type:Ti?"0":"1",unified_setting:!Wt.length};if(Hr(!0),(yield(0,He.ZP)(`/api/courses/${sa.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:Tt({},Xo)})).status===0){if(Hr(!1),(0,ne.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),Pt.ZP.success("\u53D1\u5E03\u6210\u529F"),vn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Ge){Ge();return}Ne.onCallback&&Ne.onCallback(),En(),localStorage.getItem("Noviceguide")==="0"||vn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:me.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}})}else Hr(!1)}),si=()=>{Ha(1),la([]),Gt([])},tn=No>ma*Ee,[Vi,Hr]=(0,ve.useState)(!1);return me.createElement(Ut.default,{width:600,confirmLoading:Vi,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:Qt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Fr,onCancel:()=>{if(si(),vn({type:"classroomList/setActionTabs",payload:{}}),Ge){Ge();return}En()}},me.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",me.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),da&&me.createElement(tt.default,{form:Wa},me.createElement("div",{style:{paddingLeft:0}},Qt.actionTabs.type===2&&me.createElement(Bt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),me.createElement(Re.ZP.Group,{value:Ti,disabled:!((gi=(xn=(ai=Qt.actionTabs)==null?void 0:ai.selectArrsAll)==null?void 0:xn[0])!=null&&gi.can_publish),onChange:Or=>{Ri(Or.target.value)}},me.createElement(Re.ZP,{value:!0},"\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"),me.createElement(Re.ZP,{className:"ml20",value:!1},"\u968F\u673A\u62BD\u53D6"))),!Ti&&me.createElement(Bt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{style:{marginRight:65}}),me.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",me.createElement(Je.Z,{value:di[0],onChange:Or=>{di[0]=Or,Yt([...di])},min:0,disabled:!((qt=(Ct=(Zt=Qt.actionTabs)==null?void 0:Zt.selectArrsAll)==null?void 0:Ct[0])!=null&&qt.can_publish),placeholder:`\u6700\u5927${(Le=(Xe=(Kt=(hi=Qt.actionTabs)==null?void 0:hi.selectArrsAll)==null?void 0:Kt[0])==null?void 0:Xe.difficult_count)==null?void 0:Le[0]}`,max:(Be=($e=(We=(Me=Qt.actionTabs)==null?void 0:Me.selectArrsAll)==null?void 0:We[0])==null?void 0:$e.difficult_count)==null?void 0:Be[0],style:{width:60}})),me.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",me.createElement(Je.Z,{value:di[1],onChange:Or=>{di[1]=Or,Yt([...di])},min:0,disabled:!((In=(Vn=(ut=Qt.actionTabs)==null?void 0:ut.selectArrsAll)==null?void 0:Vn[0])!=null&&In.can_publish),max:(mn=(oi=(Pn=(Cn=Qt.actionTabs)==null?void 0:Cn.selectArrsAll)==null?void 0:Pn[0])==null?void 0:oi.difficult_count)==null?void 0:mn[1],placeholder:`\u6700\u5927${(Yi=(Br=(_i=(bi=Qt.actionTabs)==null?void 0:bi.selectArrsAll)==null?void 0:_i[0])==null?void 0:Br.difficult_count)==null?void 0:Yi[1]}`,style:{width:60}})),me.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",me.createElement(Je.Z,{value:di[2],onChange:Or=>{di[2]=Or,Yt([...di])},min:0,disabled:!((Ki=(Xr=(ki=Qt.actionTabs)==null?void 0:ki.selectArrsAll)==null?void 0:Xr[0])!=null&&Ki.can_publish),placeholder:`\u6700\u5927${(Bi=(kn=(ar=(lr=Qt.actionTabs)==null?void 0:lr.selectArrsAll)==null?void 0:ar[0])==null?void 0:kn.difficult_count)==null?void 0:Bi[2]}`,max:(ra=(Wr=(Zn=(ea=Qt.actionTabs)==null?void 0:ea.selectArrsAll)==null?void 0:Zn[0])==null?void 0:Wr.difficult_count)==null?void 0:ra[2],style:{width:60}}))),me.createElement(Bt.Z,{className:"mt30",align:"middle"},me.createElement(pt.Z,null,me.createElement(tt.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},me.createElement(wt.default,{style:{width:170,marginRight:"25px"},disabledDate:Or=>(0,ge.Q8)(Or,lt),disabledTime:Or=>(0,ge.d0)(Or),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ct()((0,ne.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),me.createElement(pt.Z,{className:"ml20"},me.createElement(tt.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},me.createElement(wt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ct()((0,ne.U6)(),"HH:mm")},disabledDate:Or=>(0,ge.Q8)(Or,lt,Wa.getFieldValue("publish_time")),disabledTime:Or=>(0,ge.d0)(Or,Wa.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),Qt.actionTabs.type===2&&me.createElement(Bt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),me.createElement(Re.ZP.Group,{value:Ft,onChange:Or=>{un(Or.target.value),Gt([])}},me.createElement(Re.ZP,{value:!0,disabled:!Qt.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),me.createElement(Re.ZP,{className:"ml20",disabled:da.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),da.length<=0&&Qt.actionTabs.type===2&&me.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(Qt.actionTabs.type===1||!Ft)&&da.length>0&&me.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},me.createElement("span",{style:{flex:1}},me.createElement(ht.default,{checked:Wt.length===da.length,onChange:Or=>{Wt.length===da.length?Gt([]):Gt(da.filter(wn=>!wn.is_published))}},"\u5168\u9009")," "),me.createElement("span",{style:{width:16}}),me.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Wt.length||0,"\u4E2A\u5206\u73ED")),(Qt.actionTabs.type===1||!Ft)&&da.length>0&&me.createElement(ue.Z,{data:da,selectedRowKeys:Wt,setSelectedRowKeys:Gt})))};ti.Z=(0,te.connect)(({classroomList:Bn})=>({classroomList:Bn}))(Nt)},17998:function(Rn,ti,be){"use strict";be.d(ti,{Q8:function(){return Ge},d0:function(){return Ne},w6:function(){return lt}});var ve=be(67294),tt=be(18046),Pt=be(88044),Ut=be(2453),Bt=be(62844),Re=be(98813),Je=be(71230),pt=be(15746),wt=be(83062),ht=be(84567),Vt=be(85804),ct=be(94699),He=be.n(ct),Te=be(52262),ne=be(33170),te=be(96486),ue=be.n(te),se=be(28706),ge=be(39886),me=be(35973),xe=be(39717),Pe=be(78207),Ke=be(92882),qe=be(96332),ft=be(93686),st=be(67294),rt=Object.defineProperty,Tt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Bn=(xn,gi,Zt)=>gi in xn?rt(xn,gi,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):xn[gi]=Zt,On=(xn,gi)=>{for(var Zt in gi||(gi={}))Dt.call(gi,Zt)&&Bn(xn,Zt,gi[Zt]);if(yt)for(var Zt of yt(gi))Nt.call(gi,Zt)&&Bn(xn,Zt,gi[Zt]);return xn},Qt=(xn,gi)=>Tt(xn,Mt(gi)),vn=(xn,gi,Zt)=>new Promise((Ct,qt)=>{var hi=Le=>{try{Xe(Zt.next(Le))}catch(Me){qt(Me)}},Kt=Le=>{try{Xe(Zt.throw(Le))}catch(Me){qt(Me)}},Xe=Le=>Le.done?Ct(Le.value):Promise.resolve(Le.value).then(hi,Kt);Xe((Zt=Zt.apply(xn,gi)).next())});function lt(xn,gi){const Zt=[];for(let Ct=xn;Ct<gi;Ct++)Zt.push(Ct);return Zt}const Ge=(xn,gi,Zt)=>{const Ct=xn<He()().startOf("day"),qt=xn>He()(gi).endOf("day"),hi=xn<He()(Zt).startOf("day");return gi?Zt?He()()<=He()(Zt)?hi||qt:Ct||qt:xn&&Ct||qt:Zt&&He()()<=He()(Zt)?hi:Ct},Ne=(xn,gi)=>{const Zt=parseInt(He()(xn).format("HH")),Ct=parseInt(He()().format("HH")),qt=parseInt(He()().format("mm"));if(!xn)return{disabledHours:()=>lt(0,Ct),disabledMinutes:()=>lt(0,qt)};if(gi){const hi=parseInt(He()(gi).format("HH")),Kt=parseInt(He()(gi).format("mm"));return He()(xn).isSame(He()(gi),"day")?{disabledHours:()=>lt(0,hi),disabledMinutes:()=>Zt<=hi?lt(0,Kt):[]}:void 0}if(He()(xn).isSame(He()(),"day"))return{disabledHours:()=>lt(0,Ct),disabledMinutes:()=>He()(xn).isSame(He()(),"hour")&&Zt<=Ct?lt(0,qt):[]}},Nn=(xn,gi)=>xn==null?void 0:xn.map(Zt=>{var Ct;return(Ct=gi==null?void 0:gi.find(qt=>qt.value===Zt))==null?void 0:Ct.id}),{RangePicker:Xn}=tt.default,{Option:Xt}=Pt.default,ai=({shixunHomeworks:xn,loading:gi,dispatch:Zt,classroomList:Ct,user:qt})=>{var hi,Kt,Xe,Le,Me,We,$e,Be,ut;const Vn=(0,me.useParams)(),{workSetting:In,workList:Cn,shixunWorkList:Pn,headerInfo:oi,changeData:mn}=xn,[bi,_i]=(0,ve.useState)(!1),[Br,Yi]=(0,ve.useState)(!1);let[ki,Xr]=(0,ve.useState)([]),[Ki,lr]=(0,ve.useState)([]),[ar,kn]=(0,ve.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:xe.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Bi,ea]=(0,ve.useState)({}),[Zn,Wr]=(0,ve.useState)({});(0,ve.useEffect)(()=>()=>{Xr([])},[]),(0,ve.useEffect)(()=>{_i(!(0,Te.GJ)())},[(0,Te.GJ)()]);const ra=()=>{Zt({type:"shixunHomeworks/getWorkSetting",payload:On({},Vn)})};(0,ve.useEffect)(()=>{if(!(In!=null&&In.course_id))return;Object.keys(ar).map(function(hn){ar[hn]=In[hn]}),(!ar.allow_late||!ar.unified_late)&&(ar.late_penalty=20,ar.penalty_type=xe.Q.Percent),ar.unified_setting||(ar.unified_late=!1,ar.unified_anonymous_comment=!1,ar.unified_anonymous_appeal=!1),ki=JSON.parse(JSON.stringify(In.group_settings.map(hn=>Qt(On({},hn),{group_name:[hn.group_name]})).filter(hn=>hn.publish_time!==null))),Ki=JSON.parse(JSON.stringify(In.allow_late_settings.map(hn=>Qt(On({},hn),{group_name:[hn.group_name]})).filter(hn=>hn.late_time!==null))),kn(On({},ar));const pn=(0,se.QE)((ki==null?void 0:ki.length)>0?ki:[]);Xr([...pn]),(Ki==null?void 0:Ki.length)<=0?lr([{penalty_type:xe.Q.Percent,late_penalty:20}]):lr([...Ki])},[In]);const sa=()=>vn(void 0,null,function*(){var pn,hn;if(((pn=qt==null?void 0:qt.userInfo)==null?void 0:pn.user_status)===2){(0,Pe.Rd)();return}const ri=JSON.parse(JSON.stringify(ar));if(ri.challenge_settings.filter(Wn=>!Wn.hide),ri.categoryId=Vn.categoryId,(hn=ri.challenge_settings)!=null&&hn.every(Wn=>!Wn.checked)){Ut.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(ki),!ar.unified_setting)ki=ki==null?void 0:ki.map(Wn=>{var nn;if(!Wn.publish_time||!Wn.end_time)throw Ut.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Wn.group_name)throw Ut.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Wn.group_name=typeof(Wn==null?void 0:Wn.group_name)=="string"?[Wn==null?void 0:Wn.group_name]:Wn==null?void 0:Wn.group_name,Wn.group_id=(nn=In.group_settings)==null?void 0:nn.filter(ii=>{var Wt;return(Wt=Wn==null?void 0:Wn.group_name)==null?void 0:Wt.includes(ii.group_name)}).map(ii=>ii.group_id||ii.id).toString().split(","),Wn});else if(!ar.publish_time||!ar.end_time)throw Ut.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(ri.group_settings=ki,ar.allow_late)if(ar.unified_late){if(ar.late_penalty===null||ar.late_penalty===void 0||ar.late_penalty<0||ar.late_penalty>100)throw Ut.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ar.late_time)throw Ut.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else Ki=Ki==null?void 0:Ki.map(Wn=>{var nn,ii;if(Wn.late_penalty===null||Wn.late_penalty===void 0||Wn.late_penalty<0||Wn.late_penalty>100)throw Ut.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Wn.late_time)throw Ut.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Wn.group_name)throw Ut.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Wn.group_name=typeof(Wn==null?void 0:Wn.group_name)=="string"?[Wn==null?void 0:Wn.group_name]:Wn==null?void 0:Wn.group_name,Wn.group_id=(ii=(nn=Wn==null?void 0:Wn.group_name)==null?void 0:nn.map(Wt=>{var Gt,Ft;let un=(Ft=(Gt=In.group_settings)==null?void 0:Gt.filter(Ti=>(Ti==null?void 0:Ti.group_name)===Wt))==null?void 0:Ft[0];return un==null?void 0:un.group_id}))==null?void 0:ii.toString().split(","),Wn}),ri.allow_late_settings=Ki;let Jn=yield(0,ft.Tr)({homework_common_ids:[parseInt(Vn.categoryId)],course_id:Vn.coursesId,type:"homework_common"});(Jn==null?void 0:Jn.student_count)===0?Wa(ri):(Wr(ri),ea(Jn))}),Wa=pn=>{var hn;if(pn.total_score===null){Ut.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(pn!=null&&pn.work_efficiency&&pn.eff_score===null){Ut.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const ri=pn.challenge_settings.reduce((nn,ii)=>nn+Number(ii.challenge_score),0);if((ri==null?void 0:ri.toFixed(10))!==((hn=pn.total_score-pn.eff_score)==null?void 0:hn.toFixed(10))){Ut.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${pn.total_score}\u5206`);return}const Jn={shixun_evaluation:pn.shixun_evaluation,challenge_settings:pn.challenge_settings};let Wn=()=>{var nn;const ii=()=>vn(void 0,null,function*(){Yi(!0),(yield(0,ne.ZP)(`/api/homework_commons/${Vn.categoryId}/publish_setting.json`,{method:"post",body:On({},pn)})).status===0&&(Ut.ZP.success("\u66F4\u65B0\u6210\u529F"),ra(),Zt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:On({},Vn)})),Yi(!1)});!(0,te.isEqual)(mn,Jn)&&!((nn=oi==null?void 0:oi.homework_status)!=null&&nn.includes("\u672A\u53D1\u5E03"))?Bt.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:ii}):ii()};In!=null&&In.high_resources_consume&&!(In!=null&&In.high_resources_consume_permission)?Zt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Vn.coursesId,type:"shixun",type_id:Vn.categoryId,name:In.homework_name,fn:()=>{Wn()}}}):Wn()},ma=(pn,hn,ri="group_id")=>{var Jn;return hn?hn.find(Wn=>Wn[ri]===pn):(Jn=In==null?void 0:In.group_settings)==null?void 0:Jn.find(Wn=>Wn.group_id[0]===pn)},Ha=(In==null?void 0:In.allow_late)||(In==null?void 0:In.anonymous_comment),da=pn=>{var hn,ri;const Jn=ma(pn,In==null?void 0:In.allow_late_settings,"id"),Wn=ma(pn,In==null?void 0:In.anonymous_comment_settings),nn=ma(pn);return(In==null?void 0:In.allow_late)&&Jn&&He()(Jn==null?void 0:Jn.late_time)<=He()()||(In==null?void 0:In.anonymous_comment)&&Wn&&(Wn==null?void 0:Wn.evaluation_start)!==null||((ri=(He()(nn==null?void 0:nn.end_time)<=He()()&&((hn=In==null?void 0:In.allow_late_settings)==null?void 0:hn.filter(ii=>ii.group_id.includes(pn))))[0])==null?void 0:ri.late_time)!=null},la=(0,ve.useMemo)(()=>(In==null?void 0:In.allow_late)||(In==null?void 0:In.all_group_late),[In,oi]),No=In==null?void 0:In.anonymous_comment,ni=pn=>{if(!pn)return!1;const hn=ma(pn,In==null?void 0:In.anonymous_comment_settings);return(In==null?void 0:In.anonymous_comment)&&hn&&(hn==null?void 0:hn.evaluation_start)!==null},Ee=(pn,hn)=>{var ri,Jn,Wn,nn,ii;pn!=null&&pn.group_id||(pn.group_id=Nn(pn==null?void 0:pn.group_name,In==null?void 0:In.group_settings)),Zt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:pn,index:hn,rangePickerDisabled:(Jn=(ri=pn==null?void 0:pn.group_id)==null?void 0:ri[0])!=null&&Jn.publish_time?bi||(He()()<=He()((nn=ma((Wn=pn==null?void 0:pn.group_id)==null?void 0:Wn[0]))==null?void 0:nn.publish_time)?!1:[!0,da((ii=pn==null?void 0:pn.group_id)==null?void 0:ii[0])]):!1,disabledDate:In==null?void 0:In.course_end_date}})};return st.createElement("section",{className:ge.Z.form},st.createElement("div",{className:ge.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",st.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),st.createElement("div",null,st.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},st.createElement(Re.ZP.Group,{disabled:bi||!((hi=oi==null?void 0:oi.homework_status)!=null&&hi.includes("\u672A\u53D1\u5E03"))||(0,Te.Rm)()&&!((Kt=Ct.AssistantObject.practice)!=null&&Kt.can_publish),value:ar.unified_setting,onChange:pn=>{var hn;if(!((hn=oi==null?void 0:oi.homework_status)!=null&&hn.includes("\u672A\u53D1\u5E03"))){Ut.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(ar.unified_setting=!ar.unified_setting,ar.unified_setting||(ar.unified_late=!1,lr([{late_penalty:5}])),kn(Object.assign({},ar)),ar.unified_setting===!1&&ki==""){Xr(ki.concat({}));return}ar.unified_setting&&(Xr([]),lr([{late_penalty:5}]))}},st.createElement(Re.ZP,{value:!0,disabled:bi||!(In!=null&&In.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),st.createElement(Re.ZP,{disabled:bi||!((Xe=In==null?void 0:In.group_settings)!=null&&Xe.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Le=In==null?void 0:In.group_settings)==null?void 0:Le.length)===0&&st.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),ar.unified_setting&&st.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},st.createElement(Je.Z,{align:"middle"},st.createElement(pt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),st.createElement(pt.Z,{className:"ml10"},st.createElement(tt.default,{size:"large",disabled:bi||!((Me=oi==null?void 0:oi.homework_status)!=null&&Me.includes("\u672A\u53D1\u5E03")||(We=oi==null?void 0:oi.homework_status)!=null&&We.includes("\u672A\u5F00\u59CB"))||(0,Te.Rm)()&&!(($e=Ct.AssistantObject.practice)!=null&&$e.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:pn=>Ge(pn,In==null?void 0:In.course_end_date),disabledTime:pn=>Ne(pn),value:ar.publish_time?He()(ar.publish_time):"",onChange:(pn,hn)=>{ar.publish_time=hn,(ar.end_time==""||!ar.end_time)&&ar.unified_setting&&(ar.end_time=He()(pn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),kn(Object.assign({},ar))}}))),st.createElement(Je.Z,{align:"middle",className:"pl30"},st.createElement(pt.Z,null,"\u622A\u6B62\u65F6\u95F4"),st.createElement(pt.Z,{className:"ml10"},st.createElement(tt.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:He()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(In==null?void 0:In.allow_late)&&(In==null?void 0:In.homework_status.includes("\u5DF2\u622A\u6B62"))||bi||(In==null?void 0:In.allow_late)&&He()()>=He()(In==null?void 0:In.end_time)||(0,Te.Rm)()&&!((Be=Ct.AssistantObject.practice)!=null&&Be.can_publish),disabledDate:pn=>Ge(pn,In==null?void 0:In.course_end_date,ar.publish_time),disabledTime:pn=>Ne(pn,ar.publish_time),value:ar.end_time?He()(ar.end_time):"",onChange:(pn,hn)=>{ar.end_time=hn,kn(Object.assign({},ar))}})))),!ar.unified_setting&&(ki==null?void 0:ki.length)>0&&st.createElement(Je.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},ki&&ki.map(function(pn,hn){var ri,Jn,Wn,nn,ii,Wt,Gt;return st.createElement(pt.Z,{span:24,key:hn},st.createElement(Je.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:hn==(ki==null?void 0:ki.length)-1?"0px":"10px"}},st.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",hn+1),st.createElement(Pt.default,{disabled:bi||((ri=oi==null?void 0:oi.homework_status)!=null&&ri.includes("\u672A\u53D1\u5E03")&&pn.id||He()()<He()(pn==null?void 0:pn.publish_time)?!1:!!(pn!=null&&pn.publish_time))||(0,Te.Rm)()&&!((Jn=Ct.AssistantObject.practice)!=null&&Jn.can_publish),mode:"multiple",className:ge.Z.multiple_select,style:{width:"250px"},value:pn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Ft=>{var un;if((0,Te.Rm)()&&!((un=Ct.AssistantObject.practice)!=null&&un.can_publish)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ki[hn].group_name=Ft,ki[hn].group_id=pn.group_id;const Ti=(0,te.flattenDeep)(ki.map(di=>di.group_name)),Ri=Ki.map(di=>{let Yt=(di==null?void 0:di.group_name)||[];return Qt(On({},di),{group_name:(0,te.remove)(Yt,Hn=>Ti.includes(Hn))})});lr(Ri),Xr(ki.slice())},maxTagCount:4,maxTagPlaceholder:Ft=>st.createElement("div",{style:{cursor:"pointer"},onClick:()=>Ee(pn,hn)},"+",Ft==null?void 0:Ft.length)},In.group_settings&&In.group_settings.map(function(Ft){if(!ki.map(Ti=>Ti.group_name).flat().includes(Ft.group_name))return st.createElement(Xt,{value:Ft.group_name,key:Ft.id},Ft.group_name)})),st.createElement("div",{className:"ml20"},st.createElement(Xn,{size:"large",ranges:{\u6B64\u523B:[pn.publish_time?He()(pn.publish_time):He()(),He()()]},allowClear:!1,disabled:bi||(He()()<=He()((nn=ma((Wn=pn==null?void 0:pn.group_id)==null?void 0:Wn[0]))==null?void 0:nn.publish_time)?!1:[!0,da((ii=pn==null?void 0:pn.group_id)==null?void 0:ii[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Ft=>Ge(Ft,In==null?void 0:In.course_end_date),disabledTime:Ft=>Ne(Ft),showTime:{showNow:!0,format:"HH:mm",defaultValue:[He()((0,se.U6)(),"HH:mm"),He()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[pn.publish_time?He()(pn.publish_time):void 0,pn.end_time?He()(pn.end_time):void 0],onChange:(Ft,un)=>{var Ti;if((0,Te.Rm)()&&!((Ti=Ct.AssistantObject.practice)!=null&&Ti.can_publish)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ki[hn].publish_time=un[0],!pn.end_time&&un[0]?ki[hn].end_time=He()(un[0]).add(7,"days"):ki[hn].end_time=un[1],Xr([...ki])},onCalendarChange:(Ft,un,Ti)=>{if(un!=null&&un[0]&&!un[1]){const Ri=He()(un[0]).add(7,"days");ki[hn].publish_time=un[0],ki[hn].end_time=Ri,Xr([...ki])}}})),!bi&&st.createElement("div",{style:{display:"flex",width:"50px"}},((Wt=pn==null?void 0:pn.group_id)==null?void 0:Wt.length)>1&&st.createElement(wt.Z,{title:"\u89C4\u5219\u62C6\u5206"},st.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Ee(pn,hn)})),ki.length<((Gt=In==null?void 0:In.group_settings)==null?void 0:Gt.length)&&st.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Ft;if((0,Te.Rm)()&&!((Ft=Ct.AssistantObject.practice)!=null&&Ft.can_publish)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Xr(ki.concat({}))}}),((pn==null?void 0:pn.publish_time)&&He()()<He()(pn==null?void 0:pn.publish_time)||!(pn!=null&&pn.publish_time))&&hn!=0&&st.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Ft=(0,te.cloneDeep)(Ki);Ft.forEach((un,Ti)=>{un.group_name&&(un.group_name=un.group_name.filter(Ri=>{var di;return!((di=ki[hn].group_name)!=null&&di.includes(Ri))}))}),ki=ki.filter((un,Ti)=>hn!==Ti),lr(Ft),Xr(ki.slice()),setTimeout(()=>Xr(ki.slice()),10)}}))))}))),st.createElement(Je.Z,null,st.createElement(pt.Z,null,st.createElement("div",{className:ge.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",st.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),st.createElement(pt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},st.createElement(ht.default,{checked:ar.allow_late,disabled:bi||la,onChange:pn=>{var hn;if((0,Te.Rm)()&&!((hn=Ct.AssistantObject.practice)!=null&&hn.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pn.target.checked&&Bt.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:st.createElement("div",{style:{padding:10,background:"#f5f6f9"}},st.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),st.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),st.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),ar.allow_late=!ar.allow_late,Ki==""&&lr([{late_penalty:5}]),kn(Object.assign({},ar))}},st.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(ar==null?void 0:ar.allow_late)&&st.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},st.createElement("div",{style:{display:"flex"}},st.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),st.createElement(Re.ZP.Group,{style:{marginLeft:"20px"},disabled:bi||(In==null?void 0:In.anonymous_comment)||(In==null?void 0:In.allow_late),value:ar.unified_late,onChange:pn=>{var hn;if((0,Te.Rm)()&&!((hn=Ct.AssistantObject.practice)!=null&&hn.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ar.unified_late=pn.target.value,Ki==""&&!pn.target.value&&lr([{penalty_type:xe.Q.Percent,late_penalty:20}]),kn(On({},ar))}},(ar==null?void 0:ar.unified_setting)&&st.createElement(Re.ZP,{value:!0,disabled:!(In!=null&&In.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((ut=In==null?void 0:In.group_settings)==null?void 0:ut.length)>0&&st.createElement(Re.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),ar!=null&&ar.unified_late?st.createElement(st.Fragment,null,st.createElement(Je.Z,{align:"middle",style:{marginTop:"10px"}},st.createElement(pt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),st.createElement(pt.Z,{className:"ml20"},st.createElement(xe.Z,{disabled:bi||No,value:{type:ar.penalty_type,inputValue:ar.late_penalty},onChange:pn=>{var hn;if((0,Te.Rm)()&&!((hn=Ct.AssistantObject.practice)!=null&&hn.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}kn(Qt(On({},ar),{late_penalty:pn.inputValue,penalty_type:pn.type}))}})),st.createElement(pt.Z,{flex:"1",className:"ml5"},st.createElement("span",{className:"c-grey-c ml10"},ar.penalty_type===xe.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),st.createElement(Je.Z,{align:"middle",style:{marginTop:"15px"}},st.createElement(pt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),st.createElement(pt.Z,{className:"ml20"},st.createElement(tt.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:He()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:bi||No,value:ar.late_time?He()(ar.late_time):"",disabledDate:pn=>Ge(pn,In==null?void 0:In.course_end_date),onChange:(pn,hn)=>{var ri;if((0,Te.Rm)()&&!((ri=Ct.AssistantObject.practice)!=null&&ri.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ar.late_time=hn,kn(Object.assign({},ar))}})))):Ki.map(function(pn,hn){var ri;return st.createElement(pt.Z,{span:24,key:hn},st.createElement(Je.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},st.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",hn+1),st.createElement(Pt.default,{disabled:bi||!((ri=oi==null?void 0:oi.homework_status)!=null&&ri.includes("\u672A\u53D1\u5E03"))&&pn.id||(In==null?void 0:In.anonymous_comment),mode:"multiple",className:ge.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof pn.group_name=="string"?[pn.group_name]:pn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Jn=>{var Wn;if((0,Te.Rm)()&&!((Wn=Ct.AssistantObject.practice)!=null&&Wn.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ki[hn].group_name=Jn,Ki[hn].group_id=pn.group_id,lr(Ki.slice())}},In.group_settings&&In.group_settings.map(function(Jn){const Wn=Ki.map(ii=>ii.group_name).flat(),nn=ki.map(ii=>ii.group_name).flat();if(ar!=null&&ar.unified_setting){if(!Wn.includes(Jn.group_name))return st.createElement(Xt,{value:Jn.group_name,key:Jn.id},Jn.group_name)}else if(nn.includes(Jn.group_name)&&!Wn.includes(Jn.group_name))return st.createElement(Xt,{value:Jn.group_name,key:Jn.id},Jn.group_name)})),st.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),st.createElement(xe.Z,{disabled:bi||ni(pn.id),value:{type:pn.penalty_type,inputValue:pn.late_penalty},onChange:Jn=>{var Wn;if((0,Te.Rm)()&&!((Wn=Ct.AssistantObject.practice)!=null&&Wn.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ki[hn].late_penalty=Jn.inputValue,Ki[hn].penalty_type=Jn.type,lr([...Ki])}}),st.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),st.createElement(tt.default,{size:"large",disabled:bi||ni(pn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:He()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Jn=>Ge(Jn,In==null?void 0:In.course_end_date),format:"YYYY-MM-DD HH:mm",value:pn!=null&&pn.late_time?He()(pn.late_time):void 0,onChange:(Jn,Wn)=>{var nn;if((0,Te.Rm)()&&!((nn=Ct.AssistantObject.practice)!=null&&nn.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ki[hn].late_time=Wn,lr([...Ki])}}),!bi&&st.createElement("div",{style:{display:"flex",width:"50px"}},st.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Jn;if((0,Te.Rm)()&&!((Jn=Ct.AssistantObject.practice)!=null&&Jn.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}lr(Ki.concat({penalty_type:xe.Q.Percent,late_penalty:20}))}}),hn>0&&!pn.id&&st.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var Jn;if((0,Te.Rm)()&&!((Jn=Ct.AssistantObject.practice)!=null&&Jn.can_late)){Ut.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ki=Ki.filter((Wn,nn)=>hn!==nn),lr(Ki.slice()),setTimeout(()=>lr(Ki.slice()),10)}}))))})),!bi&&st.createElement(st.Fragment,null,st.createElement(Vt.ZP,{type:"primary",size:"large",loading:Br,style:{width:"138px",marginTop:"30px"},onClick:()=>sa()},"\u4FDD\u5B58")),st.createElement(Ke.Z,{onConfirm:(pn,hn)=>{ki.splice(pn,0,...hn),ki.splice(pn+hn.length,1);const ri=(0,se.QE)([...ki]);Xr([...ri])}}),st.createElement(qe.Z,{resdata:Bi,type:"shixun",okloading:Br,oktext:(Bi==null?void 0:Bi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:pn=>vn(void 0,null,function*(){Yi(!0);let hn=yield(0,ne.ZP)(`/api/courses/${Vn.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Vn.categoryId)]}});Yi(!1),(hn==null?void 0:hn.status)===0&&Wa(Zn)})}))};ti.ZP=(0,me.connect)(({shixunHomeworks:xn,classroomList:gi,loading:Zt,user:Ct})=>({shixunHomeworks:xn,classroomList:gi,loading:Zt.effects,user:Ct}))(ai)},12317:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return ht}});var ve=be(67294),tt=be(28802),Pt=be(84567),Ut=be(71230),Bt={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",Je=be(26194),pt=(Vt,ct,He)=>new Promise((Te,ne)=>{var te=ge=>{try{se(He.next(ge))}catch(me){ne(me)}},ue=ge=>{try{se(He.throw(ge))}catch(me){ne(me)}},se=ge=>ge.done?Te(ge.value):Promise.resolve(ge.value).then(te,ue);se((He=He.apply(Vt,ct)).next())}),ht=({data:Vt,value:ct=[],handleChangePage:He,className:Te="",setSelectedRowKeys:ne,selectedRowKeys:te,onChange:ue=()=>{}})=>{const[se,ge]=(0,ve.useState)([]),[me,xe]=(0,ve.useState)([]),[Pe,Ke]=(0,ve.useState)([]);let[qe,ft]=(0,ve.useState)(1),[st,rt]=(0,ve.useState)();return(0,ve.useEffect)(()=>{ge(Vt),xe([]),Ke([])},[Vt]),(0,ve.useEffect)(()=>{ne&&(xe(te),Ke(te))},[te]),ve.createElement("div",{className:`flex justify-between w-full ${Te}`},ve.createElement("div",{className:Bt.leftdiv},ve.createElement(tt.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:Tt=>pt(void 0,null,function*(){ge(Vt.filter(Mt=>{var yt;return(yt=Mt==null?void 0:Mt.name)==null?void 0:yt.includes(Tt.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),se.length===0&&ve.createElement(Je.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),ve.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},ve.createElement(Pt.default.Group,{value:me.map(Tt=>`${Tt.id}`),onChange:Tt=>{ne(se.filter(Mt=>Tt.includes(`${Mt.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},se.map((Tt,Mt)=>ve.createElement(Ut.Z,{key:Tt.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},ve.createElement(Pt.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Tt.is_published,value:`${Tt.id}`},ve.createElement("div",{className:Bt.listClass},ve.createElement("span",{className:Bt.spantitle,style:{width:Tt.is_published?"108px":"170px"}},Tt.name),Tt.is_published&&ve.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),ve.createElement("div",{className:Bt.rightdiv},ve.createElement(tt.default.Search,{onChange:Tt=>{Ke(me.filter(Mt=>Mt.name.includes(Tt.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Pe.length===0&&ve.createElement(Je.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Pe.length>0&&ve.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},ve.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Pe.map((Tt,Mt)=>ve.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:Tt.id},ve.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},Tt.name),ve.createElement("img",{src:Re,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{ne(me.filter(yt=>`${yt.id}`!=`${Tt.id}`))}})))))))}},92882:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return ue}});var ve=be(67294),tt=be(35973),Pt=be(18046),Ut=be(62844),Bt=be(28802),Re=be(2453),Je=be(71230),pt=be(15746),wt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},ht=be(94699),Vt=be.n(ht),ct=be(28706),He=be(26194),Te=be(67294);const{RangePicker:ne}=Pt.default,te=({dispatch:se,classroomList:ge,onConfirm:me})=>{const[xe,Pe]=(0,ve.useState)([]),[Ke,qe]=(0,ve.useState)([]),[ft,st]=(0,ve.useState)(""),[rt,Tt]=(0,ve.useState)([!1,!1]);(0,ve.useEffect)(()=>{var Dt,Nt,Bn,On;if(ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Dt=ge.actionTabs)==null?void 0:Dt.rangePickerDisabled),(Nt=ge.actionTabs)!=null&&Nt.rangePickerDisabled?Tt((Bn=ge.actionTabs)==null?void 0:Bn.rangePickerDisabled):Tt([!1,!1]);let Qt=ge.actionTabs.data,vn=(On=Qt==null?void 0:Qt.group_name)==null?void 0:On.map((lt,Ge)=>{var Ne;return{group_id:Qt==null?void 0:Qt.group_id[Ge],group_name:Qt==null?void 0:Qt.group_name[Ge],is_admin:Qt==null?void 0:Qt.is_admin,end_time:Qt==null?void 0:Qt.end_time,publish_time:Array.isArray(Qt==null?void 0:Qt.publish_time)?(Ne=Qt==null?void 0:Qt.publish_time)==null?void 0:Ne[0]:Qt==null?void 0:Qt.publish_time}});vn&&(Pe([...vn]),qe([...vn]))}},[ge.actionTabs]);const Mt=()=>{se({type:"classroomList/setActionTabs",payload:{}}),st("")},yt=Dt=>{if(Dt){const Nt=Ke==null?void 0:Ke.filter(Bn=>{var On,Qt;return(Qt=(On=Bn==null?void 0:Bn.group_name)==null?void 0:On.toLowerCase())==null?void 0:Qt.includes(Dt==null?void 0:Dt.toLowerCase())});Pe(Nt)}else Pe(Ke)};return Te.createElement(Ut.default,{width:980,title:Te.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Te.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Te.createElement("span",{className:wt.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Te.createElement(Bt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:ft,onChange:Dt=>{st(Dt.target.value.trim()),yt(Dt.target.value.trim())}})),centered:!0,maskClosable:!1,open:ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>Mt(),onOk:()=>{var Dt;if(Ke.some(Bn=>!Bn.end_time||!Bn.publish_time)){Re.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}me((Dt=ge.actionTabs)==null?void 0:Dt.index,Ke),Mt()}},Te.createElement("div",{className:wt.modal_con},Te.createElement(Je.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(xe==null?void 0:xe.length)>0?xe.map(function(Dt,Nt){return Te.createElement(pt.Z,{span:24,key:Nt},Te.createElement(Je.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Nt==(xe==null?void 0:xe.length)-1?"0px":"10px"}},Te.createElement("div",{className:wt.multiple_select,title:Dt==null?void 0:Dt.group_name},Dt==null?void 0:Dt.group_name),Te.createElement("div",{className:"ml20"},Te.createElement(ne,{size:"large",allowClear:!1,disabled:rt,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Bn=>{var On;return(0,ct.Q8)(Bn,(On=ge.actionTabs)==null?void 0:On.disabledDate)},disabledTime:Bn=>(0,ct.d0)(Bn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Vt()((0,ct.U6)(),"HH:mm"),Vt()((0,ct.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(Dt==null?void 0:Dt.publish_time)&&[Vt()(Dt==null?void 0:Dt.publish_time),Dt!=null&&Dt.end_time?Vt()(Dt==null?void 0:Dt.end_time):void 0],onChange:(Bn,On)=>{xe[Nt].publish_time=On[0],xe[Nt].end_time=On[1],Pe([...xe]),Ke.forEach(Qt=>{Qt.group_id===(Dt==null?void 0:Dt.group_id)&&(Qt.publish_time=On[0],Qt.end_time=On[1])}),qe([...Ke])},onCalendarChange:(Bn,On,Qt)=>{if(On!=null&&On[0]&&!On[1]){const vn=Vt()(On[0]).add(7,"days");xe[Nt].publish_time=On[0],xe[Nt].end_time=vn,Pe([...xe]),Ke.forEach(lt=>{lt.group_id===(Dt==null?void 0:Dt.group_id)&&(lt.publish_time=On[0],lt.end_time=vn)}),qe([...Ke])}}})),rt[0]?Te.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Te.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{xe.splice(Nt,1),Pe([...xe]),Ke.forEach((Bn,On)=>{Bn.group_id===(Dt==null?void 0:Dt.group_id)&&Ke.splice(On,1)}),qe([...Ke])}})))}):Te.createElement(He.Z,null))))};var ue=(0,tt.connect)(({classroomList:se})=>({classroomList:se}))(te)},51161:function(Rn,ti,be){"use strict";be.d(ti,{AL:function(){return xe},Iy:function(){return Vt},Qv:function(){return Te},ez:function(){return me},jb:function(){return ct}});var ve=be(47084),tt=be.n(ve),Pt=be(90621),Ut=be.n(Pt);let Bt=1;function Re(st,rt){const Tt=st.match(/^(\s+)(?:```)/);if(Tt===null)return rt;const Mt=Tt[1];return rt.split(`
`).map(yt=>{const Dt=yt.match(/^\s+/);if(Dt===null)return yt;const[Nt]=Dt;return Nt.length>=Mt.length?yt.slice(Mt.length):yt}).join(`
`)}let Je=[],pt=["<ul>"];const wt=new(tt()).Renderer,ht=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Vt(){Je.length=0,pt=["<ul>"]}const ct={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function He(st,rt,Tt,Mt){if(rt>=st.length||st[rt].level<=Tt)return rt;var yt=st[rt];Mt.push("<li><a href='#"+Bt+yt.anchor+"'>"+yt.text+"</a>"),rt++;var Dt=[];return rt=He(st,rt,yt.level,Dt),Dt.length>0&&(Mt.push("<ul>"),Dt.forEach(function(Nt){Mt.push(Nt)}),Mt.push("</ul>")),Mt.push("</li>"),rt=He(st,rt,Tt,Mt),rt}function Te(){return He(Je,0,0,pt),pt.push("</ul>"),pt.join("")}const ne={heading(st){const rt=ht.exec(st);if(Bt+=1,rt)return{type:"heading",raw:rt[0],depth:rt[1].length,text:rt[2]}},fences(st){const rt=this.rules.block.fences.exec(st);if(rt){const Tt=rt[0];let Mt=Re(Tt,rt[3]||"");const yt=rt[2]?rt[2].trim():rt[2];if(["latex","katex","math"].indexOf(yt)>=0){const Dt=se(),Nt=Mt;Mt=Dt,ge[Dt]={type:"block",expression:Nt}}return{type:"code",raw:Tt,lang:yt,text:Mt}}}},te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ue=0;const se=()=>`__special_katext_id_${ue++}__`;let ge={};function me(){return ge}function xe(){ue=0,ge={}}function Pe(st){return st=st.replace(te,(rt,Tt)=>{const Mt=se();return ge[Mt]={type:"inline",expression:Tt},Mt}),st}const Ke=wt.listitem;wt.listitem=function(st){return Ke(Pe(st))};const qe=wt.paragraph;wt.paragraph=function(st){return qe(Pe(st))};const ft=wt.tablecell;wt.tablecell=function(st,rt){return ft(Pe(st),rt)},wt.code=function(st,rt,Tt){const Mt=(rt||"").match(/\S*/)[0];return Mt?["latex","katex","math"].indexOf(Mt)>=0?`<p class='editormd-tex'>${st}</p>`:`<pre class="prettyprint linenums"><code class="language-${rt}">${Tt?st:(0,Pt.escape)(st,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Tt?st:(0,Pt.escape)(st,!0))+"</code></pre>"},wt.heading=function(st,rt,Tt){let Mt=this.options.headerPrefix+Tt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Je.push({anchor:Mt,level:rt,text:st}),"<h"+rt+' id="'+Bt+Mt+'">'+st+"</h"+rt+">"},tt().setOptions({silent:!0,gfm:!0,pedantic:!1}),tt().use({tokenizer:ne,renderer:wt}),ti.ZP=tt()},78207:function(Rn,ti,be){"use strict";be.d(ti,{rX:function(){return Pe},pW:function(){return Ke},gy:function(){return qe},xY:function(){return xe},O5:function(){return me},hs:function(){return te},tJ:function(){return Te},o1:function(){return ne},Rd:function(){return ge}});var ve=be(35973),tt=be(62844),Pt=be(96074),Ut=be(2453),Bt=be(52262),Re=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ft,st,rt)=>new Promise((Tt,Mt)=>{var yt=Bn=>{try{Nt(rt.next(Bn))}catch(On){Mt(On)}},Dt=Bn=>{try{Nt(rt.throw(Bn))}catch(On){Mt(On)}},Nt=Bn=>Bn.done?Tt(Bn.value):Promise.resolve(Bn.value).then(yt,Dt);Nt((rt=rt.apply(ft,st)).next())});const Te=(ft,st=!1,rt=!1,Tt="",Mt=!1)=>!!(ne(ft)&&ue(ft,st,rt,Tt,Mt)),ne=ft=>(0,Bt.bg)()?!0:(ft({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),te=ft=>{var st,rt,Tt;const{user:Mt}=(0,ve.getDvaApp)()._store.getState();(0,Bt.bg)()&&!((rt=(st=Mt==null?void 0:Mt.userInfo)==null?void 0:st.course)!=null&&rt.course_public)&&!((Tt=Mt==null?void 0:Mt.userInfo)!=null&&Tt.profile_completed)&&ft({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ue=(ft,st=!1,rt=!0,Tt="",Mt=!1)=>{var yt;const{user:Dt}=(0,ve.getDvaApp)()._store.getState();return(yt=Dt.userInfo)!=null&&yt.profile_completed?!0:(rt?ft({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Tt,isCurrentPage:Mt}}):tt.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Re.xg)("/account/profile/edit"),se()}}),!1)},se=()=>{tt.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},ge=()=>{tt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:ct.createElement("div",{style:{textAlign:"center"}},ct.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),ct.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Vt}),ct.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},me=()=>{var ft;const{user:st}=(0,ve.getDvaApp)()._store.getState();return(ft=st.userInfo)!=null&&ft.professional_certification?!0:(tt.default.confirm({title:"\u63D0\u793A",centered:!0,content:ct.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Re.xg)("/account/certification")}}),!1)},xe=()=>(0,Bt.V9)()?!0:(tt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:ct.createElement("div",{className:"tc",style:{marginLeft:-38}},ct.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),ct.createElement("img",{src:ht,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Pe=(ft,st)=>ft?!0:(tt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ct.createElement("div",null,ct.createElement("p",null,st||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),ct.createElement("div",{style:{marginLeft:"110px"}},ct.createElement("img",{src:wt,width:200}),ct.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Re.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Ke=ft=>{tt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:ct.createElement("div",null,ct.createElement("div",null,ct.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),ct.createElement(Pt.Z,null),ct.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ct.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",ct.createElement("a",null,ft),"\u5929\u3002"),ct.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ct.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),ct.createElement("div",{style:{textAlign:"center",marginTop:30}},ct.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:pt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},qe=(ft,st="")=>{const{shixunsDetail:{detail:rt}}=(0,ve.getDvaApp)()._store.getState();if((rt==null?void 0:rt.public)===2||(rt==null?void 0:rt.public)===1||(rt==null?void 0:rt.shixun_status)===3){let Tt="";return(rt==null?void 0:rt.public)===2&&(Tt="\u5DF2\u516C\u5F00"),(rt==null?void 0:rt.public)===1&&(Tt="\u5F85\u5BA1\u6838"),(rt==null?void 0:rt.shixun_status)===3&&(Tt="\u5DF2\u5173\u95ED"),tt.default.info({centered:!0,icon:ct.createElement(Je.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:ct.createElement("div",{className:"tc",style:{marginLeft:-38}},ct.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},ct.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Tt,"\uFF0C",st,"\u3002"),ct.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),ct.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:pt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(rt==null?void 0:rt.shixun_status)===2?(tt.default.confirm({centered:!0,icon:ct.createElement(Je.Z,null),title:"\u63D0\u793A",content:ct.createElement("div",null,ct.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",st,"\u3002"),ct.createElement("br",null),ct.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{tt.default.confirm({width:440,centered:!0,icon:ct.createElement(Je.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>He(void 0,null,function*(){(yield ft({type:"shixunsDetail/cancelRelease",payload:{id:rt==null?void 0:rt.identifier}})).status!==401&&(Ut.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),ft({type:"shixunsDetail/getShixunsDetail",payload:{id:rt==null?void 0:rt.identifier}}),ft({type:"practiceSetting/getCommonData",payload:{id:rt==null?void 0:rt.identifier}}))})})}}),!0):!1}},88386:function(Rn,ti,be){(function(ve){ve(be(4631))})(function(ve){ve.defineOption("placeholder","",function(pt,wt,ht){var Vt=ht&&ht!=ve.Init;if(wt&&!Vt)pt.on("blur",Bt),pt.on("change",Re),pt.on("swapDoc",Re),ve.on(pt.getInputField(),"compositionupdate",pt.state.placeholderCompose=function(){Ut(pt)}),Re(pt);else if(!wt&&Vt){pt.off("blur",Bt),pt.off("change",Re),pt.off("swapDoc",Re),ve.off(pt.getInputField(),"compositionupdate",pt.state.placeholderCompose),tt(pt);var ct=pt.getWrapperElement();ct.className=ct.className.replace(" CodeMirror-empty","")}wt&&!pt.hasFocus()&&Bt(pt)});function tt(pt){pt.state.placeholder&&(pt.state.placeholder.parentNode.removeChild(pt.state.placeholder),pt.state.placeholder=null)}function Pt(pt){tt(pt);var wt=pt.state.placeholder=document.createElement("pre");wt.style.cssText="height: 0; overflow: visible",wt.style.direction=pt.getOption("direction"),wt.className="CodeMirror-placeholder CodeMirror-line-like";var ht=pt.getOption("placeholder");typeof ht=="string"&&(ht=document.createTextNode(ht)),wt.appendChild(ht),pt.display.lineSpace.insertBefore(wt,pt.display.lineSpace.firstChild)}function Ut(pt){setTimeout(function(){var wt=!1,ht=pt.getInputField();ht.nodeName=="TEXTAREA"?wt=!ht.value:pt.lineCount()==1&&(wt=!/[^\u200b]/.test(ht.querySelector(".CodeMirror-line").textContent)),wt?Pt(pt):tt(pt)},20)}function Bt(pt){Je(pt)&&Pt(pt)}function Re(pt){var wt=pt.getWrapperElement(),ht=Je(pt);wt.className=wt.className.replace(" CodeMirror-empty","")+(ht?" CodeMirror-empty":""),ht?Pt(pt):tt(pt)}function Je(pt){return pt.lineCount()===1&&pt.getLine(0)===""}})},82801:function(Rn,ti,be){(function(ve){ve(be(4631))})(function(ve){var tt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Pt=ve.Pos;ve.defineOption("autoCloseBrackets",!1,function(ne,te,ue){ue&&ue!=ve.Init&&(ne.removeKeyMap(Bt),ne.state.closeBrackets=null),te&&(Re(Ut(te,"pairs")),ne.state.closeBrackets=te,ne.addKeyMap(Bt))});function Ut(ne,te){return te=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[te]!=null?ne[te]:tt[te]}var Bt={Backspace:wt,Enter:ht};function Re(ne){for(var te=0;te<ne.length;te++){var ue=ne.charAt(te),se="'"+ue+"'";Bt[se]||(Bt[se]=Je(ue))}}Re(tt.pairs+"`");function Je(ne){return function(te){return ct(te,ne)}}function pt(ne){var te=ne.state.closeBrackets;if(!te||te.override)return te;var ue=ne.getModeAt(ne.getCursor());return ue.closeBrackets||te}function wt(ne){var te=pt(ne);if(!te||ne.getOption("disableInput"))return ve.Pass;for(var ue=Ut(te,"pairs"),se=ne.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ve.Pass;var me=He(ne,se[ge].head);if(!me||ue.indexOf(me)%2!=0)return ve.Pass}for(var ge=se.length-1;ge>=0;ge--){var xe=se[ge].head;ne.replaceRange("",Pt(xe.line,xe.ch-1),Pt(xe.line,xe.ch+1),"+delete")}}function ht(ne){var te=pt(ne),ue=te&&Ut(te,"explode");if(!ue||ne.getOption("disableInput"))return ve.Pass;for(var se=ne.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ve.Pass;var me=He(ne,se[ge].head);if(!me||ue.indexOf(me)%2!=0)return ve.Pass}ne.operation(function(){var xe=ne.lineSeparator()||`
`;ne.replaceSelection(xe+xe,null),ne.execCommand("goCharLeft"),se=ne.listSelections();for(var Pe=0;Pe<se.length;Pe++){var Ke=se[Pe].head.line;ne.indentLine(Ke,null,!0),ne.indentLine(Ke+1,null,!0)}})}function Vt(ne){var te=ve.cmpPos(ne.anchor,ne.head)>0;return{anchor:new Pt(ne.anchor.line,ne.anchor.ch+(te?-1:1)),head:new Pt(ne.head.line,ne.head.ch+(te?1:-1))}}function ct(ne,te){var ue=pt(ne);if(!ue||ne.getOption("disableInput"))return ve.Pass;var se=Ut(ue,"pairs"),ge=se.indexOf(te);if(ge==-1)return ve.Pass;for(var me=Ut(ue,"closeBefore"),xe=Ut(ue,"triples"),Pe=se.charAt(ge+1)==te,Ke=ne.listSelections(),qe=ge%2==0,ft,st=0;st<Ke.length;st++){var rt=Ke[st],Tt=rt.head,Mt,yt=ne.getRange(Tt,Pt(Tt.line,Tt.ch+1));if(qe&&!rt.empty())Mt="surround";else if((Pe||!qe)&&yt==te)Pe&&Te(ne,Tt)?Mt="both":xe.indexOf(te)>=0&&ne.getRange(Tt,Pt(Tt.line,Tt.ch+3))==te+te+te?Mt="skipThree":Mt="skip";else if(Pe&&Tt.ch>1&&xe.indexOf(te)>=0&&ne.getRange(Pt(Tt.line,Tt.ch-2),Tt)==te+te){if(Tt.ch>2&&/\bstring/.test(ne.getTokenTypeAt(Pt(Tt.line,Tt.ch-2))))return ve.Pass;Mt="addFour"}else if(Pe){var Dt=Tt.ch==0?" ":ne.getRange(Pt(Tt.line,Tt.ch-1),Tt);if(!ve.isWordChar(yt)&&Dt!=te&&!ve.isWordChar(Dt))Mt="both";else return ve.Pass}else if(qe&&(yt.length===0||/\s/.test(yt)||me.indexOf(yt)>-1))Mt="both";else return ve.Pass;if(!ft)ft=Mt;else if(ft!=Mt)return ve.Pass}var Nt=ge%2?se.charAt(ge-1):te,Bn=ge%2?te:se.charAt(ge+1);ne.operation(function(){if(ft=="skip")ne.execCommand("goCharRight");else if(ft=="skipThree")for(var On=0;On<3;On++)ne.execCommand("goCharRight");else if(ft=="surround"){for(var Qt=ne.getSelections(),On=0;On<Qt.length;On++)Qt[On]=Nt+Qt[On]+Bn;ne.replaceSelections(Qt,"around"),Qt=ne.listSelections().slice();for(var On=0;On<Qt.length;On++)Qt[On]=Vt(Qt[On]);ne.setSelections(Qt)}else ft=="both"?(ne.replaceSelection(Nt+Bn,null),ne.triggerElectric(Nt+Bn),ne.execCommand("goCharLeft")):ft=="addFour"&&(ne.replaceSelection(Nt+Nt+Nt+Nt,"before"),ne.execCommand("goCharRight"))})}function He(ne,te){var ue=ne.getRange(Pt(te.line,te.ch-1),Pt(te.line,te.ch+1));return ue.length==2?ue:null}function Te(ne,te){var ue=ne.getTokenAt(Pt(te.line,te.ch+1));return/\bstring/.test(ue.type)&&ue.start==te.ch&&(te.ch==0||!/\bstring/.test(ne.getTokenTypeAt(te)))}})},57341:function(Rn,ti,be){(function(ve){ve(be(4631),be(4786))})(function(ve){ve.defineOption("autoCloseTags",!1,function(wt,ht,Vt){if(Vt!=ve.Init&&Vt&&wt.removeKeyMap("autoCloseTags"),!!ht){var ct={name:"autoCloseTags"};(typeof ht!="object"||ht.whenClosing!==!1)&&(ct["'/'"]=function(He){return Re(He)}),(typeof ht!="object"||ht.whenOpening!==!1)&&(ct["'>'"]=function(He){return Ut(He)}),wt.addKeyMap(ct)}});var tt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Pt=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ut(wt){if(wt.getOption("disableInput"))return ve.Pass;for(var ht=wt.listSelections(),Vt=[],ct=wt.getOption("autoCloseTags"),He=0;He<ht.length;He++){if(!ht[He].empty())return ve.Pass;var Te=ht[He].head,ne=wt.getTokenAt(Te),te=ve.innerMode(wt.getMode(),ne.state),ue=te.state,se=te.mode.xmlCurrentTag&&te.mode.xmlCurrentTag(ue),ge=se&&se.name;if(!ge)return ve.Pass;var me=te.mode.configuration=="html",xe=typeof ct=="object"&&ct.dontCloseTags||me&&tt,Pe=typeof ct=="object"&&ct.indentTags||me&&Pt;ne.end>Te.ch&&(ge=ge.slice(0,ge.length-ne.end+Te.ch));var Ke=ge.toLowerCase();if(!ge||ne.type=="string"&&(ne.end!=Te.ch||!/[\"\']/.test(ne.string.charAt(ne.string.length-1))||ne.string.length==1)||ne.type=="tag"&&se.close||ne.string.indexOf("/")==Te.ch-ne.start-1||xe&&Je(xe,Ke)>-1||pt(wt,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(ue)||[],ge,Te,!0))return ve.Pass;var qe=typeof ct=="object"&&ct.emptyTags;if(qe&&Je(qe,ge)>-1){Vt[He]={text:"/>",newPos:ve.Pos(Te.line,Te.ch+2)};continue}var ft=Pe&&Je(Pe,Ke)>-1;Vt[He]={indent:ft,text:">"+(ft?`
`:"")+"</"+ge+">",newPos:ft?ve.Pos(Te.line+1,0):ve.Pos(Te.line,Te.ch+1)}}for(var st=typeof ct=="object"&&ct.dontIndentOnAutoClose,He=ht.length-1;He>=0;He--){var rt=Vt[He];wt.replaceRange(rt.text,ht[He].head,ht[He].anchor,"+insert");var Tt=wt.listSelections().slice(0);Tt[He]={head:rt.newPos,anchor:rt.newPos},wt.setSelections(Tt),!st&&rt.indent&&(wt.indentLine(rt.newPos.line,null,!0),wt.indentLine(rt.newPos.line+1,null,!0))}}function Bt(wt,ht){for(var Vt=wt.listSelections(),ct=[],He=ht?"/":"</",Te=wt.getOption("autoCloseTags"),ne=typeof Te=="object"&&Te.dontIndentOnSlash,te=0;te<Vt.length;te++){if(!Vt[te].empty())return ve.Pass;var ue=Vt[te].head,se=wt.getTokenAt(ue),ge=ve.innerMode(wt.getMode(),se.state),me=ge.state;if(ht&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=ue.ch-1))return ve.Pass;var xe,Pe=ge.mode.name!="xml"&&wt.getMode().name=="htmlmixed";if(Pe&&ge.mode.name=="javascript")xe=He+"script";else if(Pe&&ge.mode.name=="css")xe=He+"style";else{var Ke=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(me);if(!Ke||Ke.length&&pt(wt,Ke,Ke[Ke.length-1],ue))return ve.Pass;xe=He+Ke[Ke.length-1]}wt.getLine(ue.line).charAt(se.end)!=">"&&(xe+=">"),ct[te]=xe}if(wt.replaceSelections(ct),Vt=wt.listSelections(),!ne)for(var te=0;te<Vt.length;te++)(te==Vt.length-1||Vt[te].head.line<Vt[te+1].head.line)&&wt.indentLine(Vt[te].head.line)}function Re(wt){return wt.getOption("disableInput")?ve.Pass:Bt(wt,!0)}ve.commands.closeTag=function(wt){return Bt(wt)};function Je(wt,ht){if(wt.indexOf)return wt.indexOf(ht);for(var Vt=0,ct=wt.length;Vt<ct;++Vt)if(wt[Vt]==ht)return Vt;return-1}function pt(wt,ht,Vt,ct,He){if(!ve.scanForClosingTag)return!1;var Te=Math.min(wt.lastLine()+1,ct.line+500),ne=ve.scanForClosingTag(wt,ct,null,Te);if(!ne||ne.tag!=Vt)return!1;for(var te=He?1:0,ue=ht.length-1;ue>=0&&ht[ue]==Vt;ue--)++te;ct=ne.to;for(var ue=1;ue<te;ue++){var se=ve.scanForClosingTag(wt,ct,null,Te);if(!se||se.tag!=Vt)return!1;ct=se.to}return!0}})},4786:function(Rn,ti,be){(function(ve){ve(be(4631))})(function(ve){"use strict";var tt=ve.Pos;function Pt(ue,se){return ue.line-se.line||ue.ch-se.ch}var Ut="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Bt=Ut+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Re=new RegExp("<(/?)(["+Ut+"]["+Bt+"]*)","g");function Je(ue,se,ge,me){this.line=se,this.ch=ge,this.cm=ue,this.text=ue.getLine(se),this.min=me?Math.max(me.from,ue.firstLine()):ue.firstLine(),this.max=me?Math.min(me.to-1,ue.lastLine()):ue.lastLine()}function pt(ue,se){var ge=ue.cm.getTokenTypeAt(tt(ue.line,se));return ge&&/\btag\b/.test(ge)}function wt(ue){if(!(ue.line>=ue.max))return ue.ch=0,ue.text=ue.cm.getLine(++ue.line),!0}function ht(ue){if(!(ue.line<=ue.min))return ue.text=ue.cm.getLine(--ue.line),ue.ch=ue.text.length,!0}function Vt(ue){for(;;){var se=ue.text.indexOf(">",ue.ch);if(se==-1){if(wt(ue))continue;return}if(!pt(ue,se+1)){ue.ch=se+1;continue}var ge=ue.text.lastIndexOf("/",se),me=ge>-1&&!/\S/.test(ue.text.slice(ge+1,se));return ue.ch=se+1,me?"selfClose":"regular"}}function ct(ue){for(;;){var se=ue.ch?ue.text.lastIndexOf("<",ue.ch-1):-1;if(se==-1){if(ht(ue))continue;return}if(!pt(ue,se+1)){ue.ch=se;continue}Re.lastIndex=se,ue.ch=se;var ge=Re.exec(ue.text);if(ge&&ge.index==se)return ge}}function He(ue){for(;;){Re.lastIndex=ue.ch;var se=Re.exec(ue.text);if(!se){if(wt(ue))continue;return}if(!pt(ue,se.index+1)){ue.ch=se.index+1;continue}return ue.ch=se.index+se[0].length,se}}function Te(ue){for(;;){var se=ue.ch?ue.text.lastIndexOf(">",ue.ch-1):-1;if(se==-1){if(ht(ue))continue;return}if(!pt(ue,se+1)){ue.ch=se;continue}var ge=ue.text.lastIndexOf("/",se),me=ge>-1&&!/\S/.test(ue.text.slice(ge+1,se));return ue.ch=se+1,me?"selfClose":"regular"}}function ne(ue,se){for(var ge=[];;){var me=He(ue),xe,Pe=ue.line,Ke=ue.ch-(me?me[0].length:0);if(!me||!(xe=Vt(ue)))return;if(xe!="selfClose")if(me[1]){for(var qe=ge.length-1;qe>=0;--qe)if(ge[qe]==me[2]){ge.length=qe;break}if(qe<0&&(!se||se==me[2]))return{tag:me[2],from:tt(Pe,Ke),to:tt(ue.line,ue.ch)}}else ge.push(me[2])}}function te(ue,se){for(var ge=[];;){var me=Te(ue);if(!me)return;if(me=="selfClose"){ct(ue);continue}var xe=ue.line,Pe=ue.ch,Ke=ct(ue);if(!Ke)return;if(Ke[1])ge.push(Ke[2]);else{for(var qe=ge.length-1;qe>=0;--qe)if(ge[qe]==Ke[2]){ge.length=qe;break}if(qe<0&&(!se||se==Ke[2]))return{tag:Ke[2],from:tt(ue.line,ue.ch),to:tt(xe,Pe)}}}}ve.registerHelper("fold","xml",function(ue,se){for(var ge=new Je(ue,se.line,0);;){var me=He(ge);if(!me||ge.line!=se.line)return;var xe=Vt(ge);if(!xe)return;if(!me[1]&&xe!="selfClose"){var Pe=tt(ge.line,ge.ch),Ke=ne(ge,me[2]);return Ke&&Pt(Ke.from,Pe)>0?{from:Pe,to:Ke.from}:null}}}),ve.findMatchingTag=function(ue,se,ge){var me=new Je(ue,se.line,se.ch,ge);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var xe=Vt(me),Pe=xe&&tt(me.line,me.ch),Ke=xe&&ct(me);if(!(!xe||!Ke||Pt(me,se)>0)){var qe={from:tt(me.line,me.ch),to:Pe,tag:Ke[2]};return xe=="selfClose"?{open:qe,close:null,at:"open"}:Ke[1]?{open:te(me,Ke[2]),close:qe,at:"close"}:(me=new Je(ue,Pe.line,Pe.ch,ge),{open:qe,close:ne(me,Ke[2]),at:"open"})}}},ve.findEnclosingTag=function(ue,se,ge,me){for(var xe=new Je(ue,se.line,se.ch,ge);;){var Pe=te(xe,me);if(!Pe)break;var Ke=new Je(ue,se.line,se.ch,ge),qe=ne(Ke,Pe.tag);if(qe)return{open:Pe,close:qe}}},ve.scanForClosingTag=function(ue,se,ge,me){var xe=new Je(ue,se.line,se.ch,me?{from:0,to:me}:null);return ne(xe,ge)}})},4631:function(Rn){(function(ti,be){Rn.exports=be()})(this,function(){"use strict";var ti=navigator.userAgent,be=navigator.platform,ve=/gecko\/\d/i.test(ti),tt=/MSIE \d/.test(ti),Pt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ti),Ut=/Edge\/(\d+)/.exec(ti),Bt=tt||Pt||Ut,Re=Bt&&(tt?document.documentMode||6:+(Ut||Pt)[1]),Je=!Ut&&/WebKit\//.test(ti),pt=Je&&/Qt\/\d+\.\d+/.test(ti),wt=!Ut&&/Chrome\//.test(ti),ht=/Opera\//.test(ti),Vt=/Apple Computer/.test(navigator.vendor),ct=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ti),He=/PhantomJS/.test(ti),Te=!Ut&&/AppleWebKit/.test(ti)&&/Mobile\/\w+/.test(ti),ne=/Android/.test(ti),te=Te||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ti),ue=Te||/Mac/.test(be),se=/\bCrOS\b/.test(ti),ge=/win/i.test(be),me=ht&&ti.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(ht=!1,Je=!0);var xe=ue&&(pt||ht&&(me==null||me<12.11)),Pe=ve||Bt&&Re>=9;function Ke(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var qe=function(ie,oe){var he=ie.className,de=Ke(oe).exec(he);if(de){var pe=he.slice(de.index+de[0].length);ie.className=he.slice(0,de.index)+(pe?de[1]+pe:"")}};function ft(ie){for(var oe=ie.childNodes.length;oe>0;--oe)ie.removeChild(ie.firstChild);return ie}function st(ie,oe){return ft(ie).appendChild(oe)}function rt(ie,oe,he,de){var pe=document.createElement(ie);if(he&&(pe.className=he),de&&(pe.style.cssText=de),typeof oe=="string")pe.appendChild(document.createTextNode(oe));else if(oe)for(var Fe=0;Fe<oe.length;++Fe)pe.appendChild(oe[Fe]);return pe}function Tt(ie,oe,he,de){var pe=rt(ie,oe,he,de);return pe.setAttribute("role","presentation"),pe}var Mt;document.createRange?Mt=function(ie,oe,he,de){var pe=document.createRange();return pe.setEnd(de||ie,he),pe.setStart(ie,oe),pe}:Mt=function(ie,oe,he){var de=document.body.createTextRange();try{de.moveToElementText(ie.parentNode)}catch(pe){return de}return de.collapse(!0),de.moveEnd("character",he),de.moveStart("character",oe),de};function yt(ie,oe){if(oe.nodeType==3&&(oe=oe.parentNode),ie.contains)return ie.contains(oe);do if(oe.nodeType==11&&(oe=oe.host),oe==ie)return!0;while(oe=oe.parentNode)}function Dt(){var ie;try{ie=document.activeElement}catch(oe){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Nt(ie,oe){var he=ie.className;Ke(oe).test(he)||(ie.className+=(he?" ":"")+oe)}function Bn(ie,oe){for(var he=ie.split(" "),de=0;de<he.length;de++)he[de]&&!Ke(he[de]).test(oe)&&(oe+=" "+he[de]);return oe}var On=function(ie){ie.select()};Te?On=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Bt&&(On=function(ie){try{ie.select()}catch(oe){}});function Qt(ie){var oe=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,oe)}}function vn(ie,oe,he){oe||(oe={});for(var de in ie)ie.hasOwnProperty(de)&&(he!==!1||!oe.hasOwnProperty(de))&&(oe[de]=ie[de]);return oe}function lt(ie,oe,he,de,pe){oe==null&&(oe=ie.search(/[^\s\u00a0]/),oe==-1&&(oe=ie.length));for(var Fe=de||0,Ve=pe||0;;){var ot=ie.indexOf(" ",Fe);if(ot<0||ot>=oe)return Ve+(oe-Fe);Ve+=ot-Fe,Ve+=he-Ve%he,Fe=ot+1}}var Ge=function(){this.id=null,this.f=null,this.time=0,this.handler=Qt(this.onTimeout,this)};Ge.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},Ge.prototype.set=function(ie,oe){this.f=oe;var he=+new Date+ie;(!this.id||he<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=he)};function Ne(ie,oe){for(var he=0;he<ie.length;++he)if(ie[he]==oe)return he;return-1}var Nn=50,Xn={toString:function(){return"CodeMirror.Pass"}},Xt={scroll:!1},ai={origin:"*mouse"},xn={origin:"+move"};function gi(ie,oe,he){for(var de=0,pe=0;;){var Fe=ie.indexOf(" ",de);Fe==-1&&(Fe=ie.length);var Ve=Fe-de;if(Fe==ie.length||pe+Ve>=oe)return de+Math.min(Ve,oe-pe);if(pe+=Fe-de,pe+=he-pe%he,de=Fe+1,pe>=oe)return de}}var Zt=[""];function Ct(ie){for(;Zt.length<=ie;)Zt.push(qt(Zt)+" ");return Zt[ie]}function qt(ie){return ie[ie.length-1]}function hi(ie,oe){for(var he=[],de=0;de<ie.length;de++)he[de]=oe(ie[de],de);return he}function Kt(ie,oe,he){for(var de=0,pe=he(oe);de<ie.length&&he(ie[de])<=pe;)de++;ie.splice(de,0,oe)}function Xe(){}function Le(ie,oe){var he;return Object.create?he=Object.create(ie):(Xe.prototype=ie,he=new Xe),oe&&vn(oe,he),he}var Me=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function We(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Me.test(ie))}function $e(ie,oe){return oe?oe.source.indexOf("\\w")>-1&&We(ie)?!0:oe.test(ie):We(ie)}function Be(ie){for(var oe in ie)if(ie.hasOwnProperty(oe)&&ie[oe])return!1;return!0}var ut=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Vn(ie){return ie.charCodeAt(0)>=768&&ut.test(ie)}function In(ie,oe,he){for(;(he<0?oe>0:oe<ie.length)&&Vn(ie.charAt(oe));)oe+=he;return oe}function Cn(ie,oe,he){for(var de=oe>he?-1:1;;){if(oe==he)return oe;var pe=(oe+he)/2,Fe=de<0?Math.ceil(pe):Math.floor(pe);if(Fe==oe)return ie(Fe)?oe:he;ie(Fe)?he=Fe:oe=Fe+de}}function Pn(ie,oe,he,de){if(!ie)return de(oe,he,"ltr",0);for(var pe=!1,Fe=0;Fe<ie.length;++Fe){var Ve=ie[Fe];(Ve.from<he&&Ve.to>oe||oe==he&&Ve.to==oe)&&(de(Math.max(Ve.from,oe),Math.min(Ve.to,he),Ve.level==1?"rtl":"ltr",Fe),pe=!0)}pe||de(oe,he,"ltr")}var oi=null;function mn(ie,oe,he){var de;oi=null;for(var pe=0;pe<ie.length;++pe){var Fe=ie[pe];if(Fe.from<oe&&Fe.to>oe)return pe;Fe.to==oe&&(Fe.from!=Fe.to&&he=="before"?de=pe:oi=pe),Fe.from==oe&&(Fe.from!=Fe.to&&he!="before"?de=pe:oi=pe)}return de!=null?de:oi}var bi=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",oe="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function he(Et){return Et<=247?ie.charAt(Et):1424<=Et&&Et<=1524?"R":1536<=Et&&Et<=1785?oe.charAt(Et-1536):1774<=Et&&Et<=2220?"r":8192<=Et&&Et<=8203?"w":Et==8204?"b":"L"}var de=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Fe=/[LRr]/,Ve=/[Lb1n]/,ot=/[1n]/;function et(Et,rn,bt){this.level=Et,this.from=rn,this.to=bt}return function(Et,rn){var bt=rn=="ltr"?"L":"R";if(Et.length==0||rn=="ltr"&&!de.test(Et))return!1;for(var Ln=Et.length,Dn=[],er=0;er<Ln;++er)Dn.push(he(Et.charCodeAt(er)));for(var Cr=0,$r=bt;Cr<Ln;++Cr){var jo=Dn[Cr];jo=="m"?Dn[Cr]=$r:$r=jo}for(var La=0,na=bt;La<Ln;++La){var za=Dn[La];za=="1"&&na=="r"?Dn[La]="n":Fe.test(za)&&(na=za,za=="r"&&(Dn[La]="R"))}for(var ps=1,$o=Dn[0];ps<Ln-1;++ps){var Gs=Dn[ps];Gs=="+"&&$o=="1"&&Dn[ps+1]=="1"?Dn[ps]="1":Gs==","&&$o==Dn[ps+1]&&($o=="1"||$o=="n")&&(Dn[ps]=$o),$o=Gs}for(var Xl=0;Xl<Ln;++Xl){var Xu=Dn[Xl];if(Xu==",")Dn[Xl]="N";else if(Xu=="%"){var uu=void 0;for(uu=Xl+1;uu<Ln&&Dn[uu]=="%";++uu);for(var Kc=Xl&&Dn[Xl-1]=="!"||uu<Ln&&Dn[uu]=="1"?"1":"N",bc=Xl;bc<uu;++bc)Dn[bc]=Kc;Xl=uu-1}}for(var Ku=0,Qc=bt;Ku<Ln;++Ku){var vc=Dn[Ku];Qc=="L"&&vc=="1"?Dn[Ku]="L":Fe.test(vc)&&(Qc=vc)}for(var Gu=0;Gu<Ln;++Gu)if(pe.test(Dn[Gu])){var Sl=void 0;for(Sl=Gu+1;Sl<Ln&&pe.test(Dn[Sl]);++Sl);for(var Su=(Gu?Dn[Gu-1]:bt)=="L",nc=(Sl<Ln?Dn[Sl]:bt)=="L",yc=Su==nc?Su?"L":"R":bt,Rh=Gu;Rh<Sl;++Rh)Dn[Rh]=yc;Gu=Sl-1}for(var cu=[],Eh,Mu=0;Mu<Ln;)if(Ve.test(Dn[Mu])){var ug=Mu;for(++Mu;Mu<Ln&&Ve.test(Dn[Mu]);++Mu);cu.push(new et(0,ug,Mu))}else{var hh=Mu,qc=cu.length,Gc=rn=="rtl"?1:0;for(++Mu;Mu<Ln&&Dn[Mu]!="L";++Mu);for(var Rl=hh;Rl<Mu;)if(ot.test(Dn[Rl])){hh<Rl&&(cu.splice(qc,0,new et(1,hh,Rl)),qc+=Gc);var ic=Rl;for(++Rl;Rl<Mu&&ot.test(Dn[Rl]);++Rl);cu.splice(qc,0,new et(2,ic,Rl)),qc+=Gc,hh=Rl}else++Rl;hh<Mu&&cu.splice(qc,0,new et(1,hh,Mu))}return rn=="ltr"&&(cu[0].level==1&&(Eh=Et.match(/^\s+/))&&(cu[0].from=Eh[0].length,cu.unshift(new et(0,0,Eh[0].length))),qt(cu).level==1&&(Eh=Et.match(/\s+$/))&&(qt(cu).to-=Eh[0].length,cu.push(new et(0,Ln-Eh[0].length,Ln)))),rn=="rtl"?cu.reverse():cu}}();function _i(ie,oe){var he=ie.order;return he==null&&(he=ie.order=bi(ie.text,oe)),he}var Br=[],Yi=function(ie,oe,he){if(ie.addEventListener)ie.addEventListener(oe,he,!1);else if(ie.attachEvent)ie.attachEvent("on"+oe,he);else{var de=ie._handlers||(ie._handlers={});de[oe]=(de[oe]||Br).concat(he)}};function ki(ie,oe){return ie._handlers&&ie._handlers[oe]||Br}function Xr(ie,oe,he){if(ie.removeEventListener)ie.removeEventListener(oe,he,!1);else if(ie.detachEvent)ie.detachEvent("on"+oe,he);else{var de=ie._handlers,pe=de&&de[oe];if(pe){var Fe=Ne(pe,he);Fe>-1&&(de[oe]=pe.slice(0,Fe).concat(pe.slice(Fe+1)))}}}function Ki(ie,oe){var he=ki(ie,oe);if(he.length)for(var de=Array.prototype.slice.call(arguments,2),pe=0;pe<he.length;++pe)he[pe].apply(null,de)}function lr(ie,oe,he){return typeof oe=="string"&&(oe={type:oe,preventDefault:function(){this.defaultPrevented=!0}}),Ki(ie,he||oe.type,ie,oe),Wr(oe)||oe.codemirrorIgnore}function ar(ie){var oe=ie._handlers&&ie._handlers.cursorActivity;if(oe)for(var he=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),de=0;de<oe.length;++de)Ne(he,oe[de])==-1&&he.push(oe[de])}function kn(ie,oe){return ki(ie,oe).length>0}function Bi(ie){ie.prototype.on=function(oe,he){Yi(this,oe,he)},ie.prototype.off=function(oe,he){Xr(this,oe,he)}}function ea(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Zn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Wr(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function ra(ie){ea(ie),Zn(ie)}function sa(ie){return ie.target||ie.srcElement}function Wa(ie){var oe=ie.which;return oe==null&&(ie.button&1?oe=1:ie.button&2?oe=3:ie.button&4&&(oe=2)),ue&&ie.ctrlKey&&oe==1&&(oe=3),oe}var ma=function(){if(Bt&&Re<9)return!1;var ie=rt("div");return"draggable"in ie||"dragDrop"in ie}(),Ha;function da(ie){if(Ha==null){var oe=rt("span","\u200B");st(ie,rt("span",[oe,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Ha=oe.offsetWidth<=1&&oe.offsetHeight>2&&!(Bt&&Re<8))}var he=Ha?rt("span","\u200B"):rt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return he.setAttribute("cm-text",""),he}var la;function No(ie){if(la!=null)return la;var oe=st(ie,document.createTextNode("A\u062EA")),he=Mt(oe,0,1).getBoundingClientRect(),de=Mt(oe,1,2).getBoundingClientRect();return ft(ie),!he||he.left==he.right?!1:la=de.right-he.right<3}var ni=`
b`.split(/\n/).length!=3?function(ie){for(var oe=0,he=[],de=ie.length;oe<=de;){var pe=ie.indexOf(`
`,oe);pe==-1&&(pe=ie.length);var Fe=ie.slice(oe,ie.charAt(pe-1)=="\r"?pe-1:pe),Ve=Fe.indexOf("\r");Ve!=-1?(he.push(Fe.slice(0,Ve)),oe+=Ve+1):(he.push(Fe),oe=pe+1)}return he}:function(ie){return ie.split(/\r\n?|\n/)},Ee=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(oe){return!1}}:function(ie){var oe;try{oe=ie.ownerDocument.selection.createRange()}catch(he){}return!oe||oe.parentElement()!=ie?!1:oe.compareEndPoints("StartToEnd",oe)!=0},pn=function(){var ie=rt("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),hn=null;function ri(ie){if(hn!=null)return hn;var oe=st(ie,rt("span","x")),he=oe.getBoundingClientRect(),de=Mt(oe,0,1).getBoundingClientRect();return hn=Math.abs(he.left-de.left)>1}var Jn={},Wn={};function nn(ie,oe){arguments.length>2&&(oe.dependencies=Array.prototype.slice.call(arguments,2)),Jn[ie]=oe}function ii(ie,oe){Wn[ie]=oe}function Wt(ie){if(typeof ie=="string"&&Wn.hasOwnProperty(ie))ie=Wn[ie];else if(ie&&typeof ie.name=="string"&&Wn.hasOwnProperty(ie.name)){var oe=Wn[ie.name];typeof oe=="string"&&(oe={name:oe}),ie=Le(oe,ie),ie.name=oe.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Wt("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Wt("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Gt(ie,oe){oe=Wt(oe);var he=Jn[oe.name];if(!he)return Gt(ie,"text/plain");var de=he(ie,oe);if(Ft.hasOwnProperty(oe.name)){var pe=Ft[oe.name];for(var Fe in pe)pe.hasOwnProperty(Fe)&&(de.hasOwnProperty(Fe)&&(de["_"+Fe]=de[Fe]),de[Fe]=pe[Fe])}if(de.name=oe.name,oe.helperType&&(de.helperType=oe.helperType),oe.modeProps)for(var Ve in oe.modeProps)de[Ve]=oe.modeProps[Ve];return de}var Ft={};function un(ie,oe){var he=Ft.hasOwnProperty(ie)?Ft[ie]:Ft[ie]={};vn(oe,he)}function Ti(ie,oe){if(oe===!0)return oe;if(ie.copyState)return ie.copyState(oe);var he={};for(var de in oe){var pe=oe[de];pe instanceof Array&&(pe=pe.concat([])),he[de]=pe}return he}function Ri(ie,oe){for(var he;ie.innerMode&&(he=ie.innerMode(oe),!(!he||he.mode==ie));)oe=he.state,ie=he.mode;return he||{mode:ie,state:oe}}function di(ie,oe,he){return ie.startState?ie.startState(oe,he):!0}var Yt=function(ie,oe,he){this.pos=this.start=0,this.string=ie,this.tabSize=oe||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=he};Yt.prototype.eol=function(){return this.pos>=this.string.length},Yt.prototype.sol=function(){return this.pos==this.lineStart},Yt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Yt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Yt.prototype.eat=function(ie){var oe=this.string.charAt(this.pos),he;if(typeof ie=="string"?he=oe==ie:he=oe&&(ie.test?ie.test(oe):ie(oe)),he)return++this.pos,oe},Yt.prototype.eatWhile=function(ie){for(var oe=this.pos;this.eat(ie););return this.pos>oe},Yt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Yt.prototype.skipToEnd=function(){this.pos=this.string.length},Yt.prototype.skipTo=function(ie){var oe=this.string.indexOf(ie,this.pos);if(oe>-1)return this.pos=oe,!0},Yt.prototype.backUp=function(ie){this.pos-=ie},Yt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=lt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?lt(this.string,this.lineStart,this.tabSize):0)},Yt.prototype.indentation=function(){return lt(this.string,null,this.tabSize)-(this.lineStart?lt(this.string,this.lineStart,this.tabSize):0)},Yt.prototype.match=function(ie,oe,he){if(typeof ie=="string"){var de=function(Ve){return he?Ve.toLowerCase():Ve},pe=this.string.substr(this.pos,ie.length);if(de(pe)==de(ie))return oe!==!1&&(this.pos+=ie.length),!0}else{var Fe=this.string.slice(this.pos).match(ie);return Fe&&Fe.index>0?null:(Fe&&oe!==!1&&(this.pos+=Fe[0].length),Fe)}},Yt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Yt.prototype.hideFirstChars=function(ie,oe){this.lineStart+=ie;try{return oe()}finally{this.lineStart-=ie}},Yt.prototype.lookAhead=function(ie){var oe=this.lineOracle;return oe&&oe.lookAhead(ie)},Yt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Hn(ie,oe){if(oe-=ie.first,oe<0||oe>=ie.size)throw new Error("There is no line "+(oe+ie.first)+" in the document.");for(var he=ie;!he.lines;)for(var de=0;;++de){var pe=he.children[de],Fe=pe.chunkSize();if(oe<Fe){he=pe;break}oe-=Fe}return he.lines[oe]}function En(ie,oe,he){var de=[],pe=oe.line;return ie.iter(oe.line,he.line+1,function(Fe){var Ve=Fe.text;pe==he.line&&(Ve=Ve.slice(0,he.ch)),pe==oe.line&&(Ve=Ve.slice(oe.ch)),de.push(Ve),++pe}),de}function Fr(ie,oe,he){var de=[];return ie.iter(oe,he,function(pe){de.push(pe.text)}),de}function si(ie,oe){var he=oe-ie.height;if(he)for(var de=ie;de;de=de.parent)de.height+=he}function tn(ie){if(ie.parent==null)return null;for(var oe=ie.parent,he=Ne(oe.lines,ie),de=oe.parent;de;oe=de,de=de.parent)for(var pe=0;de.children[pe]!=oe;++pe)he+=de.children[pe].chunkSize();return he+oe.first}function Vi(ie,oe){var he=ie.first;e:do{for(var de=0;de<ie.children.length;++de){var pe=ie.children[de],Fe=pe.height;if(oe<Fe){ie=pe;continue e}oe-=Fe,he+=pe.chunkSize()}return he}while(!ie.lines);for(var Ve=0;Ve<ie.lines.length;++Ve){var ot=ie.lines[Ve],et=ot.height;if(oe<et)break;oe-=et}return he+Ve}function Hr(ie,oe){return oe>=ie.first&&oe<ie.first+ie.size}function Or(ie,oe){return String(ie.lineNumberFormatter(oe+ie.firstLineNumber))}function wn(ie,oe,he){if(he===void 0&&(he=null),!(this instanceof wn))return new wn(ie,oe,he);this.line=ie,this.ch=oe,this.sticky=he}function or(ie,oe){return ie.line-oe.line||ie.ch-oe.ch}function Xo(ie,oe){return ie.sticky==oe.sticky&&or(ie,oe)==0}function Na(ie){return wn(ie.line,ie.ch)}function aa(ie,oe){return or(ie,oe)<0?oe:ie}function hr(ie,oe){return or(ie,oe)<0?ie:oe}function Nr(ie,oe){return Math.max(ie.first,Math.min(oe,ie.first+ie.size-1))}function io(ie,oe){if(oe.line<ie.first)return wn(ie.first,0);var he=ie.first+ie.size-1;return oe.line>he?wn(he,Hn(ie,he).text.length):va(oe,Hn(ie,oe.line).text.length)}function va(ie,oe){var he=ie.ch;return he==null||he>oe?wn(ie.line,oe):he<0?wn(ie.line,0):ie}function Ho(ie,oe){for(var he=[],de=0;de<oe.length;de++)he[de]=io(ie,oe[de]);return he}var vi=function(ie,oe){this.state=ie,this.lookAhead=oe},lo=function(ie,oe,he,de){this.state=oe,this.doc=ie,this.line=he,this.maxLookAhead=de||0,this.baseTokens=null,this.baseTokenPos=1};lo.prototype.lookAhead=function(ie){var oe=this.doc.getLine(this.line+ie);return oe!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),oe},lo.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var oe=this.baseTokens[this.baseTokenPos+1];return{type:oe&&oe.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},lo.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},lo.fromSaved=function(ie,oe,he){return oe instanceof vi?new lo(ie,Ti(ie.mode,oe.state),he,oe.lookAhead):new lo(ie,Ti(ie.mode,oe),he)},lo.prototype.save=function(ie){var oe=ie!==!1?Ti(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vi(oe,this.maxLookAhead):oe};function al(ie,oe,he,de){var pe=[ie.state.modeGen],Fe={};$a(ie,oe.text,ie.doc.mode,he,function(Et,rn){return pe.push(Et,rn)},Fe,de);for(var Ve=he.state,ot=function(Et){he.baseTokens=pe;var rn=ie.state.overlays[Et],bt=1,Ln=0;he.state=!0,$a(ie,oe.text,rn.mode,he,function(Dn,er){for(var Cr=bt;Ln<Dn;){var $r=pe[bt];$r>Dn&&pe.splice(bt,1,Dn,pe[bt+1],$r),bt+=2,Ln=Math.min(Dn,$r)}if(er)if(rn.opaque)pe.splice(Cr,bt-Cr,Dn,"overlay "+er),bt=Cr+2;else for(;Cr<bt;Cr+=2){var jo=pe[Cr+1];pe[Cr+1]=(jo?jo+" ":"")+"overlay "+er}},Fe),he.state=Ve,he.baseTokens=null,he.baseTokenPos=1},et=0;et<ie.state.overlays.length;++et)ot(et);return{styles:pe,classes:Fe.bgClass||Fe.textClass?Fe:null}}function el(ie,oe,he){if(!oe.styles||oe.styles[0]!=ie.state.modeGen){var de=Ns(ie,tn(oe)),pe=oe.text.length>ie.options.maxHighlightLength&&Ti(ie.doc.mode,de.state),Fe=al(ie,oe,de);pe&&(de.state=pe),oe.stateAfter=de.save(!pe),oe.styles=Fe.styles,Fe.classes?oe.styleClasses=Fe.classes:oe.styleClasses&&(oe.styleClasses=null),he===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return oe.styles}function Ns(ie,oe,he){var de=ie.doc,pe=ie.display;if(!de.mode.startState)return new lo(de,!0,oe);var Fe=Er(ie,oe,he),Ve=Fe>de.first&&Hn(de,Fe-1).stateAfter,ot=Ve?lo.fromSaved(de,Ve,Fe):new lo(de,di(de.mode),Fe);return de.iter(Fe,oe,function(et){ln(ie,et.text,ot);var Et=ot.line;et.stateAfter=Et==oe-1||Et%5==0||Et>=pe.viewFrom&&Et<pe.viewTo?ot.save():null,ot.nextLine()}),he&&(de.modeFrontier=ot.line),ot}function ln(ie,oe,he,de){var pe=ie.doc.mode,Fe=new Yt(oe,ie.options.tabSize,he);for(Fe.start=Fe.pos=de||0,oe==""&&Yo(pe,he.state);!Fe.eol();)Va(pe,Fe,he.state),Fe.start=Fe.pos}function Yo(ie,oe){if(ie.blankLine)return ie.blankLine(oe);if(ie.innerMode){var he=Ri(ie,oe);if(he.mode.blankLine)return he.mode.blankLine(he.state)}}function Va(ie,oe,he,de){for(var pe=0;pe<10;pe++){de&&(de[0]=Ri(ie,he).mode);var Fe=ie.token(oe,he);if(oe.pos>oe.start)return Fe}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Ao=function(ie,oe,he){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=oe||null,this.state=he};function ms(ie,oe,he,de){var pe=ie.doc,Fe=pe.mode,Ve;oe=io(pe,oe);var ot=Hn(pe,oe.line),et=Ns(ie,oe.line,he),Et=new Yt(ot.text,ie.options.tabSize,et),rn;for(de&&(rn=[]);(de||Et.pos<oe.ch)&&!Et.eol();)Et.start=Et.pos,Ve=Va(Fe,Et,et.state),de&&rn.push(new Ao(Et,Ve,Ti(pe.mode,et.state)));return de?rn:new Ao(Et,Ve,et.state)}function Ba(ie,oe){if(ie)for(;;){var he=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!he)break;ie=ie.slice(0,he.index)+ie.slice(he.index+he[0].length);var de=he[1]?"bgClass":"textClass";oe[de]==null?oe[de]=he[2]:new RegExp("(?:^|\\s)"+he[2]+"(?:$|\\s)").test(oe[de])||(oe[de]+=" "+he[2])}return ie}function $a(ie,oe,he,de,pe,Fe,Ve){var ot=he.flattenSpans;ot==null&&(ot=ie.options.flattenSpans);var et=0,Et=null,rn=new Yt(oe,ie.options.tabSize,de),bt,Ln=ie.options.addModeClass&&[null];for(oe==""&&Ba(Yo(he,de.state),Fe);!rn.eol();){if(rn.pos>ie.options.maxHighlightLength?(ot=!1,Ve&&ln(ie,oe,de,rn.pos),rn.pos=oe.length,bt=null):bt=Ba(Va(he,rn,de.state,Ln),Fe),Ln){var Dn=Ln[0].name;Dn&&(bt="m-"+(bt?Dn+" "+bt:Dn))}if(!ot||Et!=bt){for(;et<rn.start;)et=Math.min(rn.start,et+5e3),pe(et,Et);Et=bt}rn.start=rn.pos}for(;et<rn.pos;){var er=Math.min(rn.pos,et+5e3);pe(er,Et),et=er}}function Er(ie,oe,he){for(var de,pe,Fe=ie.doc,Ve=he?-1:oe-(ie.doc.mode.innerMode?1e3:100),ot=oe;ot>Ve;--ot){if(ot<=Fe.first)return Fe.first;var et=Hn(Fe,ot-1),Et=et.stateAfter;if(Et&&(!he||ot+(Et instanceof vi?Et.lookAhead:0)<=Fe.modeFrontier))return ot;var rn=lt(et.text,null,ie.options.tabSize);(pe==null||de>rn)&&(pe=ot-1,de=rn)}return pe}function uo(ie,oe){if(ie.modeFrontier=Math.min(ie.modeFrontier,oe),!(ie.highlightFrontier<oe-10)){for(var he=ie.first,de=oe-1;de>he;de--){var pe=Hn(ie,de).stateAfter;if(pe&&(!(pe instanceof vi)||de+pe.lookAhead<oe)){he=de+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,he)}}var So=!1,_n=!1;function ka(){So=!0}function An(){_n=!0}function Po(ie,oe,he){this.marker=ie,this.from=oe,this.to=he}function Ws(ie,oe){if(ie)for(var he=0;he<ie.length;++he){var de=ie[he];if(de.marker==oe)return de}}function ds(ie,oe){for(var he,de=0;de<ie.length;++de)ie[de]!=oe&&(he||(he=[])).push(ie[de]);return he}function kl(ie,oe){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([oe]):[oe],oe.marker.attachLine(ie)}function Ss(ie,oe,he){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Fe=ie[pe],Ve=Fe.marker,ot=Fe.from==null||(Ve.inclusiveLeft?Fe.from<=oe:Fe.from<oe);if(ot||Fe.from==oe&&Ve.type=="bookmark"&&(!he||!Fe.marker.insertLeft)){var et=Fe.to==null||(Ve.inclusiveRight?Fe.to>=oe:Fe.to>oe);(de||(de=[])).push(new Po(Ve,Fe.from,et?null:Fe.to))}}return de}function Ua(ie,oe,he){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Fe=ie[pe],Ve=Fe.marker,ot=Fe.to==null||(Ve.inclusiveRight?Fe.to>=oe:Fe.to>oe);if(ot||Fe.from==oe&&Ve.type=="bookmark"&&(!he||Fe.marker.insertLeft)){var et=Fe.from==null||(Ve.inclusiveLeft?Fe.from<=oe:Fe.from<oe);(de||(de=[])).push(new Po(Ve,et?null:Fe.from-oe,Fe.to==null?null:Fe.to-oe))}}return de}function us(ie,oe){if(oe.full)return null;var he=Hr(ie,oe.from.line)&&Hn(ie,oe.from.line).markedSpans,de=Hr(ie,oe.to.line)&&Hn(ie,oe.to.line).markedSpans;if(!he&&!de)return null;var pe=oe.from.ch,Fe=oe.to.ch,Ve=or(oe.from,oe.to)==0,ot=Ss(he,pe,Ve),et=Ua(de,Fe,Ve),Et=oe.text.length==1,rn=qt(oe.text).length+(Et?pe:0);if(ot)for(var bt=0;bt<ot.length;++bt){var Ln=ot[bt];if(Ln.to==null){var Dn=Ws(et,Ln.marker);Dn?Et&&(Ln.to=Dn.to==null?null:Dn.to+rn):Ln.to=pe}}if(et)for(var er=0;er<et.length;++er){var Cr=et[er];if(Cr.to!=null&&(Cr.to+=rn),Cr.from==null){var $r=Ws(ot,Cr.marker);$r||(Cr.from=rn,Et&&(ot||(ot=[])).push(Cr))}else Cr.from+=rn,Et&&(ot||(ot=[])).push(Cr)}ot&&(ot=tl(ot)),et&&et!=ot&&(et=tl(et));var jo=[ot];if(!Et){var La=oe.text.length-2,na;if(La>0&&ot)for(var za=0;za<ot.length;++za)ot[za].to==null&&(na||(na=[])).push(new Po(ot[za].marker,null,null));for(var ps=0;ps<La;++ps)jo.push(na);jo.push(et)}return jo}function tl(ie){for(var oe=0;oe<ie.length;++oe){var he=ie[oe];he.from!=null&&he.from==he.to&&he.marker.clearWhenEmpty!==!1&&ie.splice(oe--,1)}return ie.length?ie:null}function ts(ie,oe,he){var de=null;if(ie.iter(oe.line,he.line+1,function(Dn){if(Dn.markedSpans)for(var er=0;er<Dn.markedSpans.length;++er){var Cr=Dn.markedSpans[er].marker;Cr.readOnly&&(!de||Ne(de,Cr)==-1)&&(de||(de=[])).push(Cr)}}),!de)return null;for(var pe=[{from:oe,to:he}],Fe=0;Fe<de.length;++Fe)for(var Ve=de[Fe],ot=Ve.find(0),et=0;et<pe.length;++et){var Et=pe[et];if(!(or(Et.to,ot.from)<0||or(Et.from,ot.to)>0)){var rn=[et,1],bt=or(Et.from,ot.from),Ln=or(Et.to,ot.to);(bt<0||!Ve.inclusiveLeft&&!bt)&&rn.push({from:Et.from,to:ot.from}),(Ln>0||!Ve.inclusiveRight&&!Ln)&&rn.push({from:ot.to,to:Et.to}),pe.splice.apply(pe,rn),et+=rn.length-3}}return pe}function wr(ie){var oe=ie.markedSpans;if(oe){for(var he=0;he<oe.length;++he)oe[he].marker.detachLine(ie);ie.markedSpans=null}}function at(ie,oe){if(oe){for(var he=0;he<oe.length;++he)oe[he].marker.attachLine(ie);ie.markedSpans=oe}}function St(ie){return ie.inclusiveLeft?-1:0}function zt(ie){return ie.inclusiveRight?1:0}function gn(ie,oe){var he=ie.lines.length-oe.lines.length;if(he!=0)return he;var de=ie.find(),pe=oe.find(),Fe=or(de.from,pe.from)||St(ie)-St(oe);if(Fe)return-Fe;var Ve=or(de.to,pe.to)||zt(ie)-zt(oe);return Ve||oe.id-ie.id}function Kn(ie,oe){var he=_n&&ie.markedSpans,de;if(he)for(var pe=void 0,Fe=0;Fe<he.length;++Fe)pe=he[Fe],pe.marker.collapsed&&(oe?pe.from:pe.to)==null&&(!de||gn(de,pe.marker)<0)&&(de=pe.marker);return de}function Ii(ie){return Kn(ie,!0)}function Jt(ie){return Kn(ie,!1)}function Qn(ie,oe){var he=_n&&ie.markedSpans,de;if(he)for(var pe=0;pe<he.length;++pe){var Fe=he[pe];Fe.marker.collapsed&&(Fe.from==null||Fe.from<oe)&&(Fe.to==null||Fe.to>oe)&&(!de||gn(de,Fe.marker)<0)&&(de=Fe.marker)}return de}function Qi(ie,oe,he,de,pe){var Fe=Hn(ie,oe),Ve=_n&&Fe.markedSpans;if(Ve)for(var ot=0;ot<Ve.length;++ot){var et=Ve[ot];if(et.marker.collapsed){var Et=et.marker.find(0),rn=or(Et.from,he)||St(et.marker)-St(pe),bt=or(Et.to,de)||zt(et.marker)-zt(pe);if(!(rn>=0&&bt<=0||rn<=0&&bt>=0)&&(rn<=0&&(et.marker.inclusiveRight&&pe.inclusiveLeft?or(Et.to,he)>=0:or(Et.to,he)>0)||rn>=0&&(et.marker.inclusiveRight&&pe.inclusiveLeft?or(Et.from,de)<=0:or(Et.from,de)<0)))return!0}}}function wi(ie){for(var oe;oe=Ii(ie);)ie=oe.find(-1,!0).line;return ie}function nr(ie){for(var oe;oe=Jt(ie);)ie=oe.find(1,!0).line;return ie}function Xi(ie){for(var oe,he;oe=Jt(ie);)ie=oe.find(1,!0).line,(he||(he=[])).push(ie);return he}function Si(ie,oe){var he=Hn(ie,oe),de=wi(he);return he==de?oe:tn(de)}function pr(ie,oe){if(oe>ie.lastLine())return oe;var he=Hn(ie,oe),de;if(!fn(ie,he))return oe;for(;de=Jt(he);)he=de.find(1,!0).line;return tn(he)+1}function fn(ie,oe){var he=_n&&oe.markedSpans;if(he){for(var de=void 0,pe=0;pe<he.length;++pe)if(de=he[pe],!!de.marker.collapsed){if(de.from==null)return!0;if(!de.marker.widgetNode&&de.from==0&&de.marker.inclusiveLeft&&eo(ie,oe,de))return!0}}}function eo(ie,oe,he){if(he.to==null){var de=he.marker.find(1,!0);return eo(ie,de.line,Ws(de.line.markedSpans,he.marker))}if(he.marker.inclusiveRight&&he.to==oe.text.length)return!0;for(var pe=void 0,Fe=0;Fe<oe.markedSpans.length;++Fe)if(pe=oe.markedSpans[Fe],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==he.to&&(pe.to==null||pe.to!=he.from)&&(pe.marker.inclusiveLeft||he.marker.inclusiveRight)&&eo(ie,oe,pe))return!0}function so(ie){ie=wi(ie);for(var oe=0,he=ie.parent,de=0;de<he.lines.length;++de){var pe=he.lines[de];if(pe==ie)break;oe+=pe.height}for(var Fe=he.parent;Fe;he=Fe,Fe=he.parent)for(var Ve=0;Ve<Fe.children.length;++Ve){var ot=Fe.children[Ve];if(ot==he)break;oe+=ot.height}return oe}function ya(ie){if(ie.height==0)return 0;for(var oe=ie.text.length,he,de=ie;he=Ii(de);){var pe=he.find(0,!0);de=pe.from.line,oe+=pe.from.ch-pe.to.ch}for(de=ie;he=Jt(de);){var Fe=he.find(0,!0);oe-=de.text.length-Fe.from.ch,de=Fe.to.line,oe+=de.text.length-Fe.to.ch}return oe}function fa(ie){var oe=ie.display,he=ie.doc;oe.maxLine=Hn(he,he.first),oe.maxLineLength=ya(oe.maxLine),oe.maxLineChanged=!0,he.iter(function(de){var pe=ya(de);pe>oe.maxLineLength&&(oe.maxLineLength=pe,oe.maxLine=de)})}var Ia=function(ie,oe,he){this.text=ie,at(this,oe),this.height=he?he(this):1};Ia.prototype.lineNo=function(){return tn(this)},Bi(Ia);function ns(ie,oe,he,de){ie.text=oe,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),wr(ie),at(ie,he);var pe=de?de(ie):1;pe!=ie.height&&si(ie,pe)}function Us(ie){ie.parent=null,wr(ie)}var Ds={},fl={};function Hs(ie,oe){if(!ie||/^\s*$/.test(ie))return null;var he=oe.addModeClass?fl:Ds;return he[ie]||(he[ie]=ie.replace(/\S+/g,"cm-$&"))}function cn(ie,oe){var he=Tt("span",null,null,Je?"padding-right: .1px":null),de={pre:Tt("pre",[he],"CodeMirror-line"),content:he,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};oe.measure={};for(var pe=0;pe<=(oe.rest?oe.rest.length:0);pe++){var Fe=pe?oe.rest[pe-1]:oe.line,Ve=void 0;de.pos=0,de.addToken=dl,No(ie.display.measure)&&(Ve=_i(Fe,ie.doc.direction))&&(de.addToken=Ys(de.addToken,Ve)),de.map=[];var ot=oe!=ie.display.externalMeasured&&tn(Fe);hu(Fe,de,el(ie,Fe,ot)),Fe.styleClasses&&(Fe.styleClasses.bgClass&&(de.bgClass=Bn(Fe.styleClasses.bgClass,de.bgClass||"")),Fe.styleClasses.textClass&&(de.textClass=Bn(Fe.styleClasses.textClass,de.textClass||""))),de.map.length==0&&de.map.push(0,0,de.content.appendChild(da(ie.display.measure))),pe==0?(oe.measure.map=de.map,oe.measure.cache={}):((oe.measure.maps||(oe.measure.maps=[])).push(de.map),(oe.measure.caches||(oe.measure.caches=[])).push({}))}if(Je){var et=de.content.lastChild;(/\bcm-tab\b/.test(et.className)||et.querySelector&&et.querySelector(".cm-tab"))&&(de.content.className="cm-tab-wrap-hack")}return Ki(ie,"renderLine",ie,oe.line,de.pre),de.pre.className&&(de.textClass=Bn(de.pre.className,de.textClass||"")),de}function nl(ie){var oe=rt("span","\u2022","cm-invalidchar");return oe.title="\\u"+ie.charCodeAt(0).toString(16),oe.setAttribute("aria-label",oe.title),oe}function dl(ie,oe,he,de,pe,Fe,Ve){if(oe){var ot=ie.splitSpaces?gl(oe,ie.trailingSpace):oe,et=ie.cm.state.specialChars,Et=!1,rn;if(!et.test(oe))ie.col+=oe.length,rn=document.createTextNode(ot),ie.map.push(ie.pos,ie.pos+oe.length,rn),Bt&&Re<9&&(Et=!0),ie.pos+=oe.length;else{rn=document.createDocumentFragment();for(var bt=0;;){et.lastIndex=bt;var Ln=et.exec(oe),Dn=Ln?Ln.index-bt:oe.length-bt;if(Dn){var er=document.createTextNode(ot.slice(bt,bt+Dn));Bt&&Re<9?rn.appendChild(rt("span",[er])):rn.appendChild(er),ie.map.push(ie.pos,ie.pos+Dn,er),ie.col+=Dn,ie.pos+=Dn}if(!Ln)break;bt+=Dn+1;var Cr=void 0;if(Ln[0]==" "){var $r=ie.cm.options.tabSize,jo=$r-ie.col%$r;Cr=rn.appendChild(rt("span",Ct(jo),"cm-tab")),Cr.setAttribute("role","presentation"),Cr.setAttribute("cm-text"," "),ie.col+=jo}else Ln[0]=="\r"||Ln[0]==`
`?(Cr=rn.appendChild(rt("span",Ln[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Cr.setAttribute("cm-text",Ln[0]),ie.col+=1):(Cr=ie.cm.options.specialCharPlaceholder(Ln[0]),Cr.setAttribute("cm-text",Ln[0]),Bt&&Re<9?rn.appendChild(rt("span",[Cr])):rn.appendChild(Cr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Cr),ie.pos++}}if(ie.trailingSpace=ot.charCodeAt(oe.length-1)==32,he||de||pe||Et||Fe||Ve){var La=he||"";de&&(La+=de),pe&&(La+=pe);var na=rt("span",[rn],La,Fe);if(Ve)for(var za in Ve)Ve.hasOwnProperty(za)&&za!="style"&&za!="class"&&na.setAttribute(za,Ve[za]);return ie.content.appendChild(na)}ie.content.appendChild(rn)}}function gl(ie,oe){if(ie.length>1&&!/ /.test(ie))return ie;for(var he=oe,de="",pe=0;pe<ie.length;pe++){var Fe=ie.charAt(pe);Fe==" "&&he&&(pe==ie.length-1||ie.charCodeAt(pe+1)==32)&&(Fe="\xA0"),de+=Fe,he=Fe==" "}return de}function Ys(ie,oe){return function(he,de,pe,Fe,Ve,ot,et){pe=pe?pe+" cm-force-border":"cm-force-border";for(var Et=he.pos,rn=Et+de.length;;){for(var bt=void 0,Ln=0;Ln<oe.length&&(bt=oe[Ln],!(bt.to>Et&&bt.from<=Et));Ln++);if(bt.to>=rn)return ie(he,de,pe,Fe,Ve,ot,et);ie(he,de.slice(0,bt.to-Et),pe,Fe,null,ot,et),Fe=null,de=de.slice(bt.to-Et),Et=bt.to}}}function Ul(ie,oe,he,de){var pe=!de&&he.widgetNode;pe&&ie.map.push(ie.pos,ie.pos+oe,pe),!de&&ie.cm.display.input.needsContentAttribute&&(pe||(pe=ie.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",he.id)),pe&&(ie.cm.display.input.setUneditable(pe),ie.content.appendChild(pe)),ie.pos+=oe,ie.trailingSpace=!1}function hu(ie,oe,he){var de=ie.markedSpans,pe=ie.text,Fe=0;if(!de){for(var Ve=1;Ve<he.length;Ve+=2)oe.addToken(oe,pe.slice(Fe,Fe=he[Ve]),Hs(he[Ve+1],oe.cm.options));return}for(var ot=pe.length,et=0,Et=1,rn="",bt,Ln,Dn=0,er,Cr,$r,jo,La;;){if(Dn==et){er=Cr=$r=Ln="",La=null,jo=null,Dn=1/0;for(var na=[],za=void 0,ps=0;ps<de.length;++ps){var $o=de[ps],Gs=$o.marker;if(Gs.type=="bookmark"&&$o.from==et&&Gs.widgetNode)na.push(Gs);else if($o.from<=et&&($o.to==null||$o.to>et||Gs.collapsed&&$o.to==et&&$o.from==et)){if($o.to!=null&&$o.to!=et&&Dn>$o.to&&(Dn=$o.to,Cr=""),Gs.className&&(er+=" "+Gs.className),Gs.css&&(Ln=(Ln?Ln+";":"")+Gs.css),Gs.startStyle&&$o.from==et&&($r+=" "+Gs.startStyle),Gs.endStyle&&$o.to==Dn&&(za||(za=[])).push(Gs.endStyle,$o.to),Gs.title&&((La||(La={})).title=Gs.title),Gs.attributes)for(var Xl in Gs.attributes)(La||(La={}))[Xl]=Gs.attributes[Xl];Gs.collapsed&&(!jo||gn(jo.marker,Gs)<0)&&(jo=$o)}else $o.from>et&&Dn>$o.from&&(Dn=$o.from)}if(za)for(var Xu=0;Xu<za.length;Xu+=2)za[Xu+1]==Dn&&(Cr+=" "+za[Xu]);if(!jo||jo.from==et)for(var uu=0;uu<na.length;++uu)Ul(oe,0,na[uu]);if(jo&&(jo.from||0)==et){if(Ul(oe,(jo.to==null?ot+1:jo.to)-et,jo.marker,jo.from==null),jo.to==null)return;jo.to==et&&(jo=!1)}}if(et>=ot)break;for(var Kc=Math.min(ot,Dn);;){if(rn){var bc=et+rn.length;if(!jo){var Ku=bc>Kc?rn.slice(0,Kc-et):rn;oe.addToken(oe,Ku,bt?bt+er:er,$r,et+Ku.length==Dn?Cr:"",Ln,La)}if(bc>=Kc){rn=rn.slice(Kc-et),et=Kc;break}et=bc,$r=""}rn=pe.slice(Fe,Fe=he[Et++]),bt=Hs(he[Et++],oe.cm.options)}}}function fc(ie,oe,he){this.line=oe,this.rest=Xi(oe),this.size=this.rest?tn(qt(this.rest))-he+1:1,this.node=this.text=null,this.hidden=fn(ie,oe)}function _s(ie,oe,he){for(var de=[],pe,Fe=oe;Fe<he;Fe=pe){var Ve=new fc(ie.doc,Hn(ie.doc,Fe),Fe);pe=Fe+Ve.size,de.push(Ve)}return de}var il=null;function Ra(ie){il?il.ops.push(ie):ie.ownsGroup=il={ops:[ie],delayedCallbacks:[]}}function Xa(ie){var oe=ie.delayedCallbacks,he=0;do{for(;he<oe.length;he++)oe[he].call(null);for(var de=0;de<ie.ops.length;de++){var pe=ie.ops[de];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(he<oe.length)}function Is(ie,oe){var he=ie.ownsGroup;if(he)try{Xa(he)}finally{il=null,oe(he)}}var pl=null;function Mo(ie,oe){var he=ki(ie,oe);if(he.length){var de=Array.prototype.slice.call(arguments,2),pe;il?pe=il.delayedCallbacks:pl?pe=pl:(pe=pl=[],setTimeout($u,0));for(var Fe=function(ot){pe.push(function(){return he[ot].apply(null,de)})},Ve=0;Ve<he.length;++Ve)Fe(Ve)}}function $u(){var ie=pl;pl=null;for(var oe=0;oe<ie.length;++oe)ie[oe]()}function Pu(ie,oe,he,de){for(var pe=0;pe<oe.changes.length;pe++){var Fe=oe.changes[pe];Fe=="text"?kr(ie,oe):Fe=="gutter"?Rs(ie,oe,he,de):Fe=="class"?hl(ie,oe):Fe=="widget"&&Bu(ie,oe,de)}oe.changes=null}function $l(ie){return ie.node==ie.text&&(ie.node=rt("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Bt&&Re<8&&(ie.node.style.zIndex=2)),ie.node}function ou(ie,oe){var he=oe.bgClass?oe.bgClass+" "+(oe.line.bgClass||""):oe.line.bgClass;if(he&&(he+=" CodeMirror-linebackground"),oe.background)he?oe.background.className=he:(oe.background.parentNode.removeChild(oe.background),oe.background=null);else if(he){var de=$l(oe);oe.background=de.insertBefore(rt("div",null,he),de.firstChild),ie.display.input.setUneditable(oe.background)}}function gc(ie,oe){var he=ie.display.externalMeasured;return he&&he.line==oe.line?(ie.display.externalMeasured=null,oe.measure=he.measure,he.built):cn(ie,oe)}function kr(ie,oe){var he=oe.text.className,de=gc(ie,oe);oe.text==oe.node&&(oe.node=de.pre),oe.text.parentNode.replaceChild(de.pre,oe.text),oe.text=de.pre,de.bgClass!=oe.bgClass||de.textClass!=oe.textClass?(oe.bgClass=de.bgClass,oe.textClass=de.textClass,hl(ie,oe)):he&&(oe.text.className=he)}function hl(ie,oe){ou(ie,oe),oe.line.wrapClass?$l(oe).className=oe.line.wrapClass:oe.node!=oe.text&&(oe.node.className="");var he=oe.textClass?oe.textClass+" "+(oe.line.textClass||""):oe.line.textClass;oe.text.className=he||""}function Rs(ie,oe,he,de){if(oe.gutter&&(oe.node.removeChild(oe.gutter),oe.gutter=null),oe.gutterBackground&&(oe.node.removeChild(oe.gutterBackground),oe.gutterBackground=null),oe.line.gutterClass){var pe=$l(oe);oe.gutterBackground=rt("div",null,"CodeMirror-gutter-background "+oe.line.gutterClass,"left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px; width: "+de.gutterTotalWidth+"px"),ie.display.input.setUneditable(oe.gutterBackground),pe.insertBefore(oe.gutterBackground,oe.text)}var Fe=oe.line.gutterMarkers;if(ie.options.lineNumbers||Fe){var Ve=$l(oe),ot=oe.gutter=rt("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(ot),Ve.insertBefore(ot,oe.text),oe.line.gutterClass&&(ot.className+=" "+oe.line.gutterClass),ie.options.lineNumbers&&(!Fe||!Fe["CodeMirror-linenumbers"])&&(oe.lineNumber=ot.appendChild(rt("div",Or(ie.options,he),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+de.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Fe)for(var et=0;et<ie.display.gutterSpecs.length;++et){var Et=ie.display.gutterSpecs[et].className,rn=Fe.hasOwnProperty(Et)&&Fe[Et];rn&&ot.appendChild(rt("div",[rn],"CodeMirror-gutter-elt","left: "+de.gutterLeft[Et]+"px; width: "+de.gutterWidth[Et]+"px"))}}}function Bu(ie,oe,he){oe.alignable&&(oe.alignable=null);for(var de=Ke("CodeMirror-linewidget"),pe=oe.node.firstChild,Fe=void 0;pe;pe=Fe)Fe=pe.nextSibling,de.test(pe.className)&&oe.node.removeChild(pe);Ou(ie,oe,he)}function zu(ie,oe,he,de){var pe=gc(ie,oe);return oe.text=oe.node=pe.pre,pe.bgClass&&(oe.bgClass=pe.bgClass),pe.textClass&&(oe.textClass=pe.textClass),hl(ie,oe),Rs(ie,oe,he,de),Ou(ie,oe,de),oe.node}function Ou(ie,oe,he){if(Sa(ie,oe.line,oe,he,!0),oe.rest)for(var de=0;de<oe.rest.length;de++)Sa(ie,oe.rest[de],oe,he,!1)}function Sa(ie,oe,he,de,pe){if(oe.widgets)for(var Fe=$l(he),Ve=0,ot=oe.widgets;Ve<ot.length;++Ve){var et=ot[Ve],Et=rt("div",[et.node],"CodeMirror-linewidget"+(et.className?" "+et.className:""));et.handleMouseEvents||Et.setAttribute("cm-ignore-events","true"),Lu(et,Et,he,de),ie.display.input.setUneditable(Et),pe&&et.above?Fe.insertBefore(Et,he.gutter||he.text):Fe.appendChild(Et),Mo(et,"redraw")}}function Lu(ie,oe,he,de){if(ie.noHScroll){(he.alignable||(he.alignable=[])).push(oe);var pe=de.wrapperWidth;oe.style.left=de.fixedPos+"px",ie.coverGutter||(pe-=de.gutterTotalWidth,oe.style.paddingLeft=de.gutterTotalWidth+"px"),oe.style.width=pe+"px"}ie.coverGutter&&(oe.style.zIndex=5,oe.style.position="relative",ie.noHScroll||(oe.style.marginLeft=-de.gutterTotalWidth+"px"))}function Fl(ie){if(ie.height!=null)return ie.height;var oe=ie.doc.cm;if(!oe)return 0;if(!yt(document.body,ie.node)){var he="position: relative;";ie.coverGutter&&(he+="margin-left: -"+oe.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(he+="width: "+oe.display.wrapper.clientWidth+"px;"),st(oe.display.measure,rt("div",[ie.node],null,he))}return ie.height=ie.node.parentNode.offsetHeight}function Il(ie,oe){for(var he=sa(oe);he!=ie.wrapper;he=he.parentNode)if(!he||he.nodeType==1&&he.getAttribute("cm-ignore-events")=="true"||he.parentNode==ie.sizer&&he!=ie.mover)return!0}function eu(ie){return ie.lineSpace.offsetTop}function Cc(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function du(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var oe=st(ie.measure,rt("pre","x","CodeMirror-line-like")),he=window.getComputedStyle?window.getComputedStyle(oe):oe.currentStyle,de={left:parseInt(he.paddingLeft),right:parseInt(he.paddingRight)};return!isNaN(de.left)&&!isNaN(de.right)&&(ie.cachedPaddingH=de),de}function Ol(ie){return Nn-ie.display.nativeBarWidth}function Cu(ie){return ie.display.scroller.clientWidth-Ol(ie)-ie.display.barWidth}function Wc(ie){return ie.display.scroller.clientHeight-Ol(ie)-ie.display.barHeight}function ah(ie,oe,he){var de=ie.options.lineWrapping,pe=de&&Cu(ie);if(!oe.measure.heights||de&&oe.measure.width!=pe){var Fe=oe.measure.heights=[];if(de){oe.measure.width=pe;for(var Ve=oe.text.firstChild.getClientRects(),ot=0;ot<Ve.length-1;ot++){var et=Ve[ot],Et=Ve[ot+1];Math.abs(et.bottom-Et.bottom)>2&&Fe.push((et.bottom+Et.top)/2-he.top)}}Fe.push(he.bottom-he.top)}}function Hc(ie,oe,he){if(ie.line==oe)return{map:ie.measure.map,cache:ie.measure.cache};for(var de=0;de<ie.rest.length;de++)if(ie.rest[de]==oe)return{map:ie.measure.maps[de],cache:ie.measure.caches[de]};for(var pe=0;pe<ie.rest.length;pe++)if(tn(ie.rest[pe])>he)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function Yh(ie,oe){oe=wi(oe);var he=tn(oe),de=ie.display.externalMeasured=new fc(ie.doc,oe,he);de.lineN=he;var pe=de.built=cn(ie,de);return de.text=pe.pre,st(ie.display.lineMeasure,pe.pre),de}function Wu(ie,oe,he,de){return Iu(ie,Hu(ie,oe),he,de)}function El(ie,oe){if(oe>=ie.display.viewFrom&&oe<ie.display.viewTo)return ie.display.view[au(ie,oe)];var he=ie.display.externalMeasured;if(he&&oe>=he.lineN&&oe<he.lineN+he.size)return he}function Hu(ie,oe){var he=tn(oe),de=El(ie,he);de&&!de.text?de=null:de&&de.changes&&(Pu(ie,de,he,pc(ie)),ie.curOp.forceUpdate=!0),de||(de=Yh(ie,oe));var pe=Hc(de,oe,he);return{line:oe,view:de,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function Iu(ie,oe,he,de,pe){oe.before&&(he=-1);var Fe=he+(de||""),Ve;return oe.cache.hasOwnProperty(Fe)?Ve=oe.cache[Fe]:(oe.rect||(oe.rect=oe.view.text.getBoundingClientRect()),oe.hasHeights||(ah(ie,oe.view,oe.rect),oe.hasHeights=!0),Ve=ml(ie,oe,he,de),Ve.bogus||(oe.cache[Fe]=Ve)),{left:Ve.left,right:Ve.right,top:pe?Ve.rtop:Ve.top,bottom:pe?Ve.rbottom:Ve.bottom}}var ku={left:0,right:0,top:0,bottom:0};function Jc(ie,oe,he){for(var de,pe,Fe,Ve,ot,et,Et=0;Et<ie.length;Et+=3)if(ot=ie[Et],et=ie[Et+1],oe<ot?(pe=0,Fe=1,Ve="left"):oe<et?(pe=oe-ot,Fe=pe+1):(Et==ie.length-3||oe==et&&ie[Et+3]>oe)&&(Fe=et-ot,pe=Fe-1,oe>=et&&(Ve="right")),pe!=null){if(de=ie[Et+2],ot==et&&he==(de.insertLeft?"left":"right")&&(Ve=he),he=="left"&&pe==0)for(;Et&&ie[Et-2]==ie[Et-3]&&ie[Et-1].insertLeft;)de=ie[(Et-=3)+2],Ve="left";if(he=="right"&&pe==et-ot)for(;Et<ie.length-3&&ie[Et+3]==ie[Et+4]&&!ie[Et+5].insertLeft;)de=ie[(Et+=3)+2],Ve="right";break}return{node:de,start:pe,end:Fe,collapse:Ve,coverStart:ot,coverEnd:et}}function Sh(ie,oe){var he=ku;if(oe=="left")for(var de=0;de<ie.length&&(he=ie[de]).left==he.right;de++);else for(var pe=ie.length-1;pe>=0&&(he=ie[pe]).left==he.right;pe--);return he}function ml(ie,oe,he,de){var pe=Jc(oe.map,he,de),Fe=pe.node,Ve=pe.start,ot=pe.end,et=pe.collapse,Et;if(Fe.nodeType==3){for(var rn=0;rn<4;rn++){for(;Ve&&Vn(oe.line.text.charAt(pe.coverStart+Ve));)--Ve;for(;pe.coverStart+ot<pe.coverEnd&&Vn(oe.line.text.charAt(pe.coverStart+ot));)++ot;if(Bt&&Re<9&&Ve==0&&ot==pe.coverEnd-pe.coverStart?Et=Fe.parentNode.getBoundingClientRect():Et=Sh(Mt(Fe,Ve,ot).getClientRects(),de),Et.left||Et.right||Ve==0)break;ot=Ve,Ve=Ve-1,et="right"}Bt&&Re<11&&(Et=sh(ie.display.measure,Et))}else{Ve>0&&(et=de="right");var bt;ie.options.lineWrapping&&(bt=Fe.getClientRects()).length>1?Et=bt[de=="right"?bt.length-1:0]:Et=Fe.getBoundingClientRect()}if(Bt&&Re<9&&!Ve&&(!Et||!Et.left&&!Et.right)){var Ln=Fe.parentNode.getClientRects()[0];Ln?Et={left:Ln.left,right:Ln.left+Eu(ie.display),top:Ln.top,bottom:Ln.bottom}:Et=ku}for(var Dn=Et.top-oe.rect.top,er=Et.bottom-oe.rect.top,Cr=(Dn+er)/2,$r=oe.view.measure.heights,jo=0;jo<$r.length-1&&!(Cr<$r[jo]);jo++);var La=jo?$r[jo-1]:0,na=$r[jo],za={left:(et=="right"?Et.right:Et.left)-oe.rect.left,right:(et=="left"?Et.left:Et.right)-oe.rect.left,top:La,bottom:na};return!Et.left&&!Et.right&&(za.bogus=!0),ie.options.singleCursorHeightPerLine||(za.rtop=Dn,za.rbottom=er),za}function sh(ie,oe){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ri(ie))return oe;var he=screen.logicalXDPI/screen.deviceXDPI,de=screen.logicalYDPI/screen.deviceYDPI;return{left:oe.left*he,right:oe.right*he,top:oe.top*de,bottom:oe.bottom*de}}function lh(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var oe=0;oe<ie.rest.length;oe++)ie.measure.caches[oe]={}}function Nc(ie){ie.display.externalMeasure=null,ft(ie.display.lineMeasure);for(var oe=0;oe<ie.display.view.length;oe++)lh(ie.display.view[oe])}function Ec(ie){Nc(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function tu(){return wt&&ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vl(){return wt&&ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function xl(ie){var oe=0;if(ie.widgets)for(var he=0;he<ie.widgets.length;++he)ie.widgets[he].above&&(oe+=Fl(ie.widgets[he]));return oe}function Ts(ie,oe,he,de,pe){if(!pe){var Fe=xl(oe);he.top+=Fe,he.bottom+=Fe}if(de=="line")return he;de||(de="local");var Ve=so(oe);if(de=="local"?Ve+=eu(ie.display):Ve-=ie.display.viewOffset,de=="page"||de=="window"){var ot=ie.display.lineSpace.getBoundingClientRect();Ve+=ot.top+(de=="window"?0:Vl());var et=ot.left+(de=="window"?0:tu());he.left+=et,he.right+=et}return he.top+=Ve,he.bottom+=Ve,he}function nu(ie,oe,he){if(he=="div")return oe;var de=oe.left,pe=oe.top;if(he=="page")de-=tu(),pe-=Vl();else if(he=="local"||!he){var Fe=ie.display.sizer.getBoundingClientRect();de+=Fe.left,pe+=Fe.top}var Ve=ie.display.lineSpace.getBoundingClientRect();return{left:de-Ve.left,top:pe-Ve.top}}function ol(ie,oe,he,de,pe){return de||(de=Hn(ie.doc,oe.line)),Ts(ie,de,Wu(ie,de,oe.ch,pe),he)}function Vs(ie,oe,he,de,pe,Fe){de=de||Hn(ie.doc,oe.line),pe||(pe=Hu(ie,de));function Ve(er,Cr){var $r=Iu(ie,pe,er,Cr?"right":"left",Fe);return Cr?$r.left=$r.right:$r.right=$r.left,Ts(ie,de,$r,he)}var ot=_i(de,ie.doc.direction),et=oe.ch,Et=oe.sticky;if(et>=de.text.length?(et=de.text.length,Et="before"):et<=0&&(et=0,Et="after"),!ot)return Ve(Et=="before"?et-1:et,Et=="before");function rn(er,Cr,$r){var jo=ot[Cr],La=jo.level==1;return Ve($r?er-1:er,La!=$r)}var bt=mn(ot,et,Et),Ln=oi,Dn=rn(et,bt,Et=="before");return Ln!=null&&(Dn.other=rn(et,Ln,Et!="before")),Dn}function Wl(ie,oe){var he=0;oe=io(ie.doc,oe),ie.options.lineWrapping||(he=Eu(ie.display)*oe.ch);var de=Hn(ie.doc,oe.line),pe=so(de)+eu(ie.display);return{left:he,right:he,top:pe,bottom:pe+de.height}}function fu(ie,oe,he,de,pe){var Fe=wn(ie,oe,he);return Fe.xRel=pe,de&&(Fe.outside=de),Fe}function Ru(ie,oe,he){var de=ie.doc;if(he+=ie.display.viewOffset,he<0)return fu(de.first,0,null,-1,-1);var pe=Vi(de,he),Fe=de.first+de.size-1;if(pe>Fe)return fu(de.first+de.size-1,Hn(de,Fe).text.length,null,1,1);oe<0&&(oe=0);for(var Ve=Hn(de,pe);;){var ot=fi(ie,Ve,pe,oe,he),et=Qn(Ve,ot.ch+(ot.xRel>0||ot.outside>0?1:0));if(!et)return ot;var Et=et.find(1);if(Et.line==pe)return Et;Ve=Hn(de,pe=Et.line)}}function Fo(ie,oe,he,de){de-=xl(oe);var pe=oe.text.length,Fe=Cn(function(Ve){return Iu(ie,he,Ve-1).bottom<=de},pe,0);return pe=Cn(function(Ve){return Iu(ie,he,Ve).top>de},Fe,pe),{begin:Fe,end:pe}}function gu(ie,oe,he,de){he||(he=Hu(ie,oe));var pe=Ts(ie,oe,Iu(ie,he,de),"line").top;return Fo(ie,oe,he,pe)}function Rt(ie,oe,he,de){return ie.bottom<=he?!1:ie.top>he?!0:(de?ie.left:ie.right)>oe}function fi(ie,oe,he,de,pe){pe-=so(oe);var Fe=Hu(ie,oe),Ve=xl(oe),ot=0,et=oe.text.length,Et=!0,rn=_i(oe,ie.doc.direction);if(rn){var bt=(ie.options.lineWrapping?Yu:Kl)(ie,oe,he,Fe,rn,de,pe);Et=bt.level!=1,ot=Et?bt.from:bt.to-1,et=Et?bt.to:bt.from-1}var Ln=null,Dn=null,er=Cn(function(ps){var $o=Iu(ie,Fe,ps);return $o.top+=Ve,$o.bottom+=Ve,Rt($o,de,pe,!1)?($o.top<=pe&&$o.left<=de&&(Ln=ps,Dn=$o),!0):!1},ot,et),Cr,$r,jo=!1;if(Dn){var La=de-Dn.left<Dn.right-de,na=La==Et;er=Ln+(na?0:1),$r=na?"after":"before",Cr=La?Dn.left:Dn.right}else{!Et&&(er==et||er==ot)&&er++,$r=er==0?"after":er==oe.text.length?"before":Iu(ie,Fe,er-(Et?1:0)).bottom+Ve<=pe==Et?"after":"before";var za=Vs(ie,wn(he,er,$r),"line",oe,Fe);Cr=za.left,jo=pe<za.top?-1:pe>=za.bottom?1:0}return er=In(oe.text,er,1),fu(he,er,$r,jo,de-Cr)}function Kl(ie,oe,he,de,pe,Fe,Ve){var ot=Cn(function(bt){var Ln=pe[bt],Dn=Ln.level!=1;return Rt(Vs(ie,wn(he,Dn?Ln.to:Ln.from,Dn?"before":"after"),"line",oe,de),Fe,Ve,!0)},0,pe.length-1),et=pe[ot];if(ot>0){var Et=et.level!=1,rn=Vs(ie,wn(he,Et?et.from:et.to,Et?"after":"before"),"line",oe,de);Rt(rn,Fe,Ve,!0)&&rn.top>Ve&&(et=pe[ot-1])}return et}function Yu(ie,oe,he,de,pe,Fe,Ve){var ot=Fo(ie,oe,de,Ve),et=ot.begin,Et=ot.end;/\s/.test(oe.text.charAt(Et-1))&&Et--;for(var rn=null,bt=null,Ln=0;Ln<pe.length;Ln++){var Dn=pe[Ln];if(!(Dn.from>=Et||Dn.to<=et)){var er=Dn.level!=1,Cr=Iu(ie,de,er?Math.min(Et,Dn.to)-1:Math.max(et,Dn.from)).right,$r=Cr<Fe?Fe-Cr+1e9:Cr-Fe;(!rn||bt>$r)&&(rn=Dn,bt=$r)}}return rn||(rn=pe[pe.length-1]),rn.from<et&&(rn={from:et,to:rn.to,level:rn.level}),rn.to>Et&&(rn={from:rn.from,to:Et,level:rn.level}),rn}var ec;function pu(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(ec==null){ec=rt("pre",null,"CodeMirror-line-like");for(var oe=0;oe<49;++oe)ec.appendChild(document.createTextNode("x")),ec.appendChild(rt("br"));ec.appendChild(document.createTextNode("x"))}st(ie.measure,ec);var he=ec.offsetHeight/50;return he>3&&(ie.cachedTextHeight=he),ft(ie.measure),he||1}function Eu(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var oe=rt("span","xxxxxxxxxx"),he=rt("pre",[oe],"CodeMirror-line-like");st(ie.measure,he);var de=oe.getBoundingClientRect(),pe=(de.right-de.left)/10;return pe>2&&(ie.cachedCharWidth=pe),pe||10}function pc(ie){for(var oe=ie.display,he={},de={},pe=oe.gutters.clientLeft,Fe=oe.gutters.firstChild,Ve=0;Fe;Fe=Fe.nextSibling,++Ve){var ot=ie.display.gutterSpecs[Ve].className;he[ot]=Fe.offsetLeft+Fe.clientLeft+pe,de[ot]=Fe.clientWidth}return{fixedPos:mc(oe),gutterTotalWidth:oe.gutters.offsetWidth,gutterLeft:he,gutterWidth:de,wrapperWidth:oe.wrapper.clientWidth}}function mc(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function wl(ie){var oe=pu(ie.display),he=ie.options.lineWrapping,de=he&&Math.max(5,ie.display.scroller.clientWidth/Eu(ie.display)-3);return function(pe){if(fn(ie.doc,pe))return 0;var Fe=0;if(pe.widgets)for(var Ve=0;Ve<pe.widgets.length;Ve++)pe.widgets[Ve].height&&(Fe+=pe.widgets[Ve].height);return he?Fe+(Math.ceil(pe.text.length/de)||1)*oe:Fe+oe}}function Ca(ie){var oe=ie.doc,he=wl(ie);oe.iter(function(de){var pe=he(de);pe!=de.height&&si(de,pe)})}function mu(ie,oe,he,de){var pe=ie.display;if(!he&&sa(oe).getAttribute("cm-not-content")=="true")return null;var Fe,Ve,ot=pe.lineSpace.getBoundingClientRect();try{Fe=oe.clientX-ot.left,Ve=oe.clientY-ot.top}catch(bt){return null}var et=Ru(ie,Fe,Ve),Et;if(de&&et.xRel>0&&(Et=Hn(ie.doc,et.line).text).length==et.ch){var rn=lt(Et,Et.length,ie.options.tabSize)-Et.length;et=wn(et.line,Math.max(0,Math.round((Fe-du(ie.display).left)/Eu(ie.display))-rn))}return et}function au(ie,oe){if(oe>=ie.display.viewTo||(oe-=ie.display.viewFrom,oe<0))return null;for(var he=ie.display.view,de=0;de<he.length;de++)if(oe-=he[de].size,oe<0)return de}function ll(ie,oe,he,de){oe==null&&(oe=ie.doc.first),he==null&&(he=ie.doc.first+ie.doc.size),de||(de=0);var pe=ie.display;if(de&&he<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>oe)&&(pe.updateLineNumbers=oe),ie.curOp.viewChanged=!0,oe>=pe.viewTo)_n&&Si(ie.doc,oe)<pe.viewTo&&Ml(ie);else if(he<=pe.viewFrom)_n&&pr(ie.doc,he+de)>pe.viewFrom?Ml(ie):(pe.viewFrom+=de,pe.viewTo+=de);else if(oe<=pe.viewFrom&&he>=pe.viewTo)Ml(ie);else if(oe<=pe.viewFrom){var Fe=Fu(ie,he,he+de,1);Fe?(pe.view=pe.view.slice(Fe.index),pe.viewFrom=Fe.lineN,pe.viewTo+=de):Ml(ie)}else if(he>=pe.viewTo){var Ve=Fu(ie,oe,oe,-1);Ve?(pe.view=pe.view.slice(0,Ve.index),pe.viewTo=Ve.lineN):Ml(ie)}else{var ot=Fu(ie,oe,oe,-1),et=Fu(ie,he,he+de,1);ot&&et?(pe.view=pe.view.slice(0,ot.index).concat(_s(ie,ot.lineN,et.lineN)).concat(pe.view.slice(et.index)),pe.viewTo+=de):Ml(ie)}var Et=pe.externalMeasured;Et&&(he<Et.lineN?Et.lineN+=de:oe<Et.lineN+Et.size&&(pe.externalMeasured=null))}function fs(ie,oe,he){ie.curOp.viewChanged=!0;var de=ie.display,pe=ie.display.externalMeasured;if(pe&&oe>=pe.lineN&&oe<pe.lineN+pe.size&&(de.externalMeasured=null),!(oe<de.viewFrom||oe>=de.viewTo)){var Fe=de.view[au(ie,oe)];if(Fe.node!=null){var Ve=Fe.changes||(Fe.changes=[]);Ne(Ve,he)==-1&&Ve.push(he)}}}function Ml(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Fu(ie,oe,he,de){var pe=au(ie,oe),Fe,Ve=ie.display.view;if(!_n||he==ie.doc.first+ie.doc.size)return{index:pe,lineN:he};for(var ot=ie.display.viewFrom,et=0;et<pe;et++)ot+=Ve[et].size;if(ot!=oe){if(de>0){if(pe==Ve.length-1)return null;Fe=ot+Ve[pe].size-oe,pe++}else Fe=ot-oe;oe+=Fe,he+=Fe}for(;Si(ie.doc,he)!=he;){if(pe==(de<0?0:Ve.length-1))return null;he+=de*Ve[pe-(de<0?1:0)].size,pe+=de}return{index:pe,lineN:he}}function sl(ie,oe,he){var de=ie.display,pe=de.view;pe.length==0||oe>=de.viewTo||he<=de.viewFrom?(de.view=_s(ie,oe,he),de.viewFrom=oe):(de.viewFrom>oe?de.view=_s(ie,oe,de.viewFrom).concat(de.view):de.viewFrom<oe&&(de.view=de.view.slice(au(ie,oe))),de.viewFrom=oe,de.viewTo<he?de.view=de.view.concat(_s(ie,de.viewTo,he)):de.viewTo>he&&(de.view=de.view.slice(0,au(ie,he)))),de.viewTo=he}function su(ie){for(var oe=ie.display.view,he=0,de=0;de<oe.length;de++){var pe=oe[de];!pe.hidden&&(!pe.node||pe.changes)&&++he}return he}function Gl(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function tc(ie,oe){oe===void 0&&(oe=!0);for(var he=ie.doc,de={},pe=de.cursors=document.createDocumentFragment(),Fe=de.selection=document.createDocumentFragment(),Ve=0;Ve<he.sel.ranges.length;Ve++)if(!(!oe&&Ve==he.sel.primIndex)){var ot=he.sel.ranges[Ve];if(!(ot.from().line>=ie.display.viewTo||ot.to().line<ie.display.viewFrom)){var et=ot.empty();(et||ie.options.showCursorWhenSelecting)&&Bs(ie,ot.head,pe),et||As(ie,ot,Fe)}}return de}function Bs(ie,oe,he){var de=Vs(ie,oe,"div",null,null,!ie.options.singleCursorHeightPerLine),pe=he.appendChild(rt("div","\xA0","CodeMirror-cursor"));if(pe.style.left=de.left+"px",pe.style.top=de.top+"px",pe.style.height=Math.max(0,de.bottom-de.top)*ie.options.cursorHeight+"px",de.other){var Fe=he.appendChild(rt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Fe.style.display="",Fe.style.left=de.other.left+"px",Fe.style.top=de.other.top+"px",Fe.style.height=(de.other.bottom-de.other.top)*.85+"px"}}function vu(ie,oe){return ie.top-oe.top||ie.left-oe.left}function As(ie,oe,he){var de=ie.display,pe=ie.doc,Fe=document.createDocumentFragment(),Ve=du(ie.display),ot=Ve.left,et=Math.max(de.sizerWidth,Cu(ie)-de.sizer.offsetLeft)-Ve.right,Et=pe.direction=="ltr";function rn(na,za,ps,$o){za<0&&(za=0),za=Math.round(za),$o=Math.round($o),Fe.appendChild(rt("div",null,"CodeMirror-selected","position: absolute; left: "+na+`px;
top: `+za+"px; width: "+(ps==null?et-na:ps)+`px;
height: `+($o-za)+"px"))}function bt(na,za,ps){var $o=Hn(pe,na),Gs=$o.text.length,Xl,Xu;function uu(Ku,Qc){return ol(ie,wn(na,Ku),"div",$o,Qc)}function Kc(Ku,Qc,vc){var Gu=gu(ie,$o,null,Ku),Sl=Qc=="ltr"==(vc=="after")?"left":"right",Su=vc=="after"?Gu.begin:Gu.end-(/\s/.test($o.text.charAt(Gu.end-1))?2:1);return uu(Su,Sl)[Sl]}var bc=_i($o,pe.direction);return Pn(bc,za||0,ps==null?Gs:ps,function(Ku,Qc,vc,Gu){var Sl=vc=="ltr",Su=uu(Ku,Sl?"left":"right"),nc=uu(Qc-1,Sl?"right":"left"),yc=za==null&&Ku==0,Rh=ps==null&&Qc==Gs,cu=Gu==0,Eh=!bc||Gu==bc.length-1;if(nc.top-Su.top<=3){var Mu=(Et?yc:Rh)&&cu,ug=(Et?Rh:yc)&&Eh,hh=Mu?ot:(Sl?Su:nc).left,qc=ug?et:(Sl?nc:Su).right;rn(hh,Su.top,qc-hh,Su.bottom)}else{var Gc,Rl,ic,gd;Sl?(Gc=Et&&yc&&cu?ot:Su.left,Rl=Et?et:Kc(Ku,vc,"before"),ic=Et?ot:Kc(Qc,vc,"after"),gd=Et&&Rh&&Eh?et:nc.right):(Gc=Et?Kc(Ku,vc,"before"):ot,Rl=!Et&&yc&&cu?et:Su.right,ic=!Et&&Rh&&Eh?ot:nc.left,gd=Et?Kc(Qc,vc,"after"):et),rn(Gc,Su.top,Rl-Gc,Su.bottom),Su.bottom<nc.top&&rn(ot,Su.bottom,null,nc.top),rn(ic,nc.top,gd-ic,nc.bottom)}(!Xl||vu(Su,Xl)<0)&&(Xl=Su),vu(nc,Xl)<0&&(Xl=nc),(!Xu||vu(Su,Xu)<0)&&(Xu=Su),vu(nc,Xu)<0&&(Xu=nc)}),{start:Xl,end:Xu}}var Ln=oe.from(),Dn=oe.to();if(Ln.line==Dn.line)bt(Ln.line,Ln.ch,Dn.ch);else{var er=Hn(pe,Ln.line),Cr=Hn(pe,Dn.line),$r=wi(er)==wi(Cr),jo=bt(Ln.line,Ln.ch,$r?er.text.length+1:null).end,La=bt(Dn.line,$r?0:null,Dn.ch).start;$r&&(jo.top<La.top-2?(rn(jo.right,jo.top,null,jo.bottom),rn(ot,La.top,La.left,La.bottom)):rn(jo.right,jo.top,La.left-jo.right,jo.bottom)),jo.bottom<La.top&&rn(ot,jo.bottom,null,La.top)}he.appendChild(Fe)}function Ms(ie){if(ie.state.focused){var oe=ie.display;clearInterval(oe.blinker);var he=!0;oe.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?oe.blinker=setInterval(function(){ie.hasFocus()||_c(ie),oe.cursorDiv.style.visibility=(he=!he)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(oe.cursorDiv.style.visibility="hidden")}}function Zs(ie){ie.state.focused||(ie.display.input.focus(),js(ie))}function Pl(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,_c(ie))},100)}function js(ie,oe){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Ki(ie,"focus",ie,oe),ie.state.focused=!0,Nt(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Je&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Ms(ie))}function _c(ie,oe){ie.state.delayingBlurEvent||(ie.state.focused&&(Ki(ie,"blur",ie,oe),ie.state.focused=!1,qe(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Vr(ie){for(var oe=ie.display,he=oe.lineDiv.offsetTop,de=0;de<oe.view.length;de++){var pe=oe.view[de],Fe=ie.options.lineWrapping,Ve=void 0,ot=0;if(!pe.hidden){if(Bt&&Re<8){var et=pe.node.offsetTop+pe.node.offsetHeight;Ve=et-he,he=et}else{var Et=pe.node.getBoundingClientRect();Ve=Et.bottom-Et.top,!Fe&&pe.text.firstChild&&(ot=pe.text.firstChild.getBoundingClientRect().right-Et.left-1)}var rn=pe.line.height-Ve;if((rn>.005||rn<-.005)&&(si(pe.line,Ve),ju(pe.line),pe.rest))for(var bt=0;bt<pe.rest.length;bt++)ju(pe.rest[bt]);if(ot>ie.display.sizerWidth){var Ln=Math.ceil(ot/Eu(ie.display));Ln>ie.display.maxLineLength&&(ie.display.maxLineLength=Ln,ie.display.maxLine=pe.line,ie.display.maxLineChanged=!0)}}}}function ju(ie){if(ie.widgets)for(var oe=0;oe<ie.widgets.length;++oe){var he=ie.widgets[oe],de=he.node.parentNode;de&&(he.height=de.offsetHeight)}}function xs(ie,oe,he){var de=he&&he.top!=null?Math.max(0,he.top):ie.scroller.scrollTop;de=Math.floor(de-eu(ie));var pe=he&&he.bottom!=null?he.bottom:de+ie.wrapper.clientHeight,Fe=Vi(oe,de),Ve=Vi(oe,pe);if(he&&he.ensure){var ot=he.ensure.from.line,et=he.ensure.to.line;ot<Fe?(Fe=ot,Ve=Vi(oe,so(Hn(oe,ot))+ie.wrapper.clientHeight)):Math.min(et,oe.lastLine())>=Ve&&(Fe=Vi(oe,so(Hn(oe,et))-ie.wrapper.clientHeight),Ve=et)}return{from:Fe,to:Math.max(Ve,Fe+1)}}function sd(ie,oe){if(!lr(ie,"scrollCursorIntoView")){var he=ie.display,de=he.sizer.getBoundingClientRect(),pe=null;if(oe.top+de.top<0?pe=!0:oe.bottom+de.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!He){var Fe=rt("div","\u200B",null,`position: absolute;
top: `+(oe.top-he.viewOffset-eu(ie.display))+`px;
height: `+(oe.bottom-oe.top+Ol(ie)+he.barHeight)+`px;
left: `+oe.left+"px; width: "+Math.max(2,oe.right-oe.left)+"px;");ie.display.lineSpace.appendChild(Fe),Fe.scrollIntoView(pe),ie.display.lineSpace.removeChild(Fe)}}}function Vc(ie,oe,he,de){de==null&&(de=0);var pe;!ie.options.lineWrapping&&oe==he&&(oe=oe.ch?wn(oe.line,oe.sticky=="before"?oe.ch-1:oe.ch,"after"):oe,he=oe.sticky=="before"?wn(oe.line,oe.ch+1,"before"):oe);for(var Fe=0;Fe<5;Fe++){var Ve=!1,ot=Vs(ie,oe),et=!he||he==oe?ot:Vs(ie,he);pe={left:Math.min(ot.left,et.left),top:Math.min(ot.top,et.top)-de,right:Math.max(ot.left,et.left),bottom:Math.max(ot.bottom,et.bottom)+de};var Et=Th(ie,pe),rn=ie.doc.scrollTop,bt=ie.doc.scrollLeft;if(Et.scrollTop!=null&&(Lt(ie,Et.scrollTop),Math.abs(ie.doc.scrollTop-rn)>1&&(Ve=!0)),Et.scrollLeft!=null&&(jt(ie,Et.scrollLeft),Math.abs(ie.doc.scrollLeft-bt)>1&&(Ve=!0)),!Ve)break}return pe}function xh(ie,oe){var he=Th(ie,oe);he.scrollTop!=null&&Lt(ie,he.scrollTop),he.scrollLeft!=null&&jt(ie,he.scrollLeft)}function Th(ie,oe){var he=ie.display,de=pu(ie.display);oe.top<0&&(oe.top=0);var pe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:he.scroller.scrollTop,Fe=Wc(ie),Ve={};oe.bottom-oe.top>Fe&&(oe.bottom=oe.top+Fe);var ot=ie.doc.height+Cc(he),et=oe.top<de,Et=oe.bottom>ot-de;if(oe.top<pe)Ve.scrollTop=et?0:oe.top;else if(oe.bottom>pe+Fe){var rn=Math.min(oe.top,(Et?ot:oe.bottom)-Fe);rn!=pe&&(Ve.scrollTop=rn)}var bt=ie.options.fixedGutter?0:he.gutters.offsetWidth,Ln=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:he.scroller.scrollLeft-bt,Dn=Cu(ie)-he.gutters.offsetWidth,er=oe.right-oe.left>Dn;return er&&(oe.right=oe.left+Dn),oe.left<10?Ve.scrollLeft=0:oe.left<Ln?Ve.scrollLeft=Math.max(0,oe.left+bt-(er?0:10)):oe.right>Dn+Ln-3&&(Ve.scrollLeft=oe.right+(er?0:10)-Dn),Ve}function _u(ie,oe){oe!=null&&(lu(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+oe)}function Dc(ie){lu(ie);var oe=ie.getCursor();ie.curOp.scrollToPos={from:oe,to:oe,margin:ie.options.cursorScrollMargin}}function Zu(ie,oe,he){(oe!=null||he!=null)&&lu(ie),oe!=null&&(ie.curOp.scrollLeft=oe),he!=null&&(ie.curOp.scrollTop=he)}function Ko(ie,oe){lu(ie),ie.curOp.scrollToPos=oe}function lu(ie){var oe=ie.curOp.scrollToPos;if(oe){ie.curOp.scrollToPos=null;var he=Wl(ie,oe.from),de=Wl(ie,oe.to);Qe(ie,he,de,oe.margin)}}function Qe(ie,oe,he,de){var pe=Th(ie,{left:Math.min(oe.left,he.left),top:Math.min(oe.top,he.top)-de,right:Math.max(oe.right,he.right),bottom:Math.max(oe.bottom,he.bottom)+de});Zu(ie,pe.scrollLeft,pe.scrollTop)}function Lt(ie,oe){Math.abs(ie.doc.scrollTop-oe)<2||(ve||vt(ie,{top:oe}),It(ie,oe,!0),ve&&vt(ie),cs(ie,100))}function It(ie,oe,he){oe=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,oe)),!(ie.display.scroller.scrollTop==oe&&!he)&&(ie.doc.scrollTop=oe,ie.display.scrollbars.setScrollTop(oe),ie.display.scroller.scrollTop!=oe&&(ie.display.scroller.scrollTop=oe))}function jt(ie,oe,he,de){oe=Math.max(0,Math.min(oe,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((he?oe==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-oe)<2)&&!de)&&(ie.doc.scrollLeft=oe,_e(ie),ie.display.scroller.scrollLeft!=oe&&(ie.display.scroller.scrollLeft=oe),ie.display.scrollbars.setScrollLeft(oe))}function dn(ie){var oe=ie.display,he=oe.gutters.offsetWidth,de=Math.round(ie.doc.height+Cc(ie.display));return{clientHeight:oe.scroller.clientHeight,viewHeight:oe.wrapper.clientHeight,scrollWidth:oe.scroller.scrollWidth,clientWidth:oe.scroller.clientWidth,viewWidth:oe.wrapper.clientWidth,barLeft:ie.options.fixedGutter?he:0,docHeight:de,scrollHeight:de+Ol(ie)+oe.barHeight,nativeBarWidth:oe.nativeBarWidth,gutterWidth:he}}var Sn=function(ie,oe,he){this.cm=he;var de=this.vert=rt("div",[rt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=rt("div",[rt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=pe.tabIndex=-1,ie(de),ie(pe),Yi(de,"scroll",function(){de.clientHeight&&oe(de.scrollTop,"vertical")}),Yi(pe,"scroll",function(){pe.clientWidth&&oe(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Bt&&Re<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sn.prototype.update=function(ie){var oe=ie.scrollWidth>ie.clientWidth+1,he=ie.scrollHeight>ie.clientHeight+1,de=ie.nativeBarWidth;if(he){this.vert.style.display="block",this.vert.style.bottom=oe?de+"px":"0";var pe=ie.viewHeight-(oe?de:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(oe){this.horiz.style.display="block",this.horiz.style.right=he?de+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Fe=ie.viewWidth-ie.barLeft-(he?de:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Fe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(de==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:he?de:0,bottom:oe?de:0}},Sn.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Sn.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Sn.prototype.zeroWidthHack=function(){var ie=ue&&!ct?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ge,this.disableVert=new Ge},Sn.prototype.enableZeroWidthBar=function(ie,oe,he){ie.style.pointerEvents="auto";function de(){var pe=ie.getBoundingClientRect(),Fe=he=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Fe!=ie?ie.style.pointerEvents="none":oe.set(1e3,de)}oe.set(1e3,de)},Sn.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var jn=function(){};jn.prototype.update=function(){return{bottom:0,right:0}},jn.prototype.setScrollLeft=function(){},jn.prototype.setScrollTop=function(){},jn.prototype.clear=function(){};function ui(ie,oe){oe||(oe=dn(ie));var he=ie.display.barWidth,de=ie.display.barHeight;ji(ie,oe);for(var pe=0;pe<4&&he!=ie.display.barWidth||de!=ie.display.barHeight;pe++)he!=ie.display.barWidth&&ie.options.lineWrapping&&Vr(ie),ji(ie,dn(ie)),he=ie.display.barWidth,de=ie.display.barHeight}function ji(ie,oe){var he=ie.display,de=he.scrollbars.update(oe);he.sizer.style.paddingRight=(he.barWidth=de.right)+"px",he.sizer.style.paddingBottom=(he.barHeight=de.bottom)+"px",he.heightForcer.style.borderBottom=de.bottom+"px solid transparent",de.right&&de.bottom?(he.scrollbarFiller.style.display="block",he.scrollbarFiller.style.height=de.bottom+"px",he.scrollbarFiller.style.width=de.right+"px"):he.scrollbarFiller.style.display="",de.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(he.gutterFiller.style.display="block",he.gutterFiller.style.height=de.bottom+"px",he.gutterFiller.style.width=oe.gutterWidth+"px"):he.gutterFiller.style.display=""}var Ai={native:Sn,null:jn};function gr(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&qe(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Ai[ie.options.scrollbarStyle](function(oe){ie.display.wrapper.insertBefore(oe,ie.display.scrollbarFiller),Yi(oe,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),oe.setAttribute("cm-not-content","true")},function(oe,he){he=="horizontal"?jt(ie,oe):Lt(ie,oe)},ie),ie.display.scrollbars.addClass&&Nt(ie.display.wrapper,ie.display.scrollbars.addClass)}var Oi=0;function ir(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Oi},Ra(ie.curOp)}function Ji(ie){var oe=ie.curOp;oe&&Is(oe,function(he){for(var de=0;de<he.ops.length;de++)he.ops[de].cm.curOp=null;Tr(he)})}function Tr(ie){for(var oe=ie.ops,he=0;he<oe.length;he++)ro(oe[he]);for(var de=0;de<oe.length;de++)Ro(oe[de]);for(var pe=0;pe<oe.length;pe++)ia(oe[pe]);for(var Fe=0;Fe<oe.length;Fe++)Yr(oe[Fe]);for(var Ve=0;Ve<oe.length;Ve++)ko(oe[Ve])}function ro(ie){var oe=ie.cm,he=oe.display;qs(oe),ie.updateMaxLine&&fa(oe),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<he.viewFrom||ie.scrollToPos.to.line>=he.viewTo)||he.maxLineChanged&&oe.options.lineWrapping,ie.update=ie.mustUpdate&&new rs(oe,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Ro(ie){ie.updatedDisplay=ie.mustUpdate&&ze(ie.cm,ie.update)}function ia(ie){var oe=ie.cm,he=oe.display;ie.updatedDisplay&&Vr(oe),ie.barMeasure=dn(oe),he.maxLineChanged&&!oe.options.lineWrapping&&(ie.adjustWidthTo=Wu(oe,he.maxLine,he.maxLine.text.length).left+3,oe.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(he.scroller.clientWidth,he.sizer.offsetLeft+ie.adjustWidthTo+Ol(oe)+oe.display.barWidth),ie.maxScrollLeft=Math.max(0,he.sizer.offsetLeft+ie.adjustWidthTo-Cu(oe))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=he.input.prepareSelection())}function Yr(ie){var oe=ie.cm;ie.adjustWidthTo!=null&&(oe.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<oe.doc.scrollLeft&&jt(oe,Math.min(oe.display.scroller.scrollLeft,ie.maxScrollLeft),!0),oe.display.maxLineChanged=!1);var he=ie.focus&&ie.focus==Dt();ie.preparedSelection&&oe.display.input.showSelection(ie.preparedSelection,he),(ie.updatedDisplay||ie.startHeight!=oe.doc.height)&&ui(oe,ie.barMeasure),ie.updatedDisplay&&ke(oe,ie.barMeasure),ie.selectionChanged&&Ms(oe),oe.state.focused&&ie.updateInput&&oe.display.input.reset(ie.typing),he&&Zs(ie.cm)}function ko(ie){var oe=ie.cm,he=oe.display,de=oe.doc;if(ie.updatedDisplay&&it(oe,ie.update),he.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(he.wheelStartX=he.wheelStartY=null),ie.scrollTop!=null&&It(oe,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&jt(oe,ie.scrollLeft,!0,!0),ie.scrollToPos){var pe=Vc(oe,io(de,ie.scrollToPos.from),io(de,ie.scrollToPos.to),ie.scrollToPos.margin);sd(oe,pe)}var Fe=ie.maybeHiddenMarkers,Ve=ie.maybeUnhiddenMarkers;if(Fe)for(var ot=0;ot<Fe.length;++ot)Fe[ot].lines.length||Ki(Fe[ot],"hide");if(Ve)for(var et=0;et<Ve.length;++et)Ve[et].lines.length&&Ki(Ve[et],"unhide");he.wrapper.offsetHeight&&(de.scrollTop=oe.display.scroller.scrollTop),ie.changeObjs&&Ki(oe,"changes",oe,ie.changeObjs),ie.update&&ie.update.finish()}function oo(ie,oe){if(ie.curOp)return oe();ir(ie);try{return oe()}finally{Ji(ie)}}function oa(ie,oe){return function(){if(ie.curOp)return oe.apply(ie,arguments);ir(ie);try{return oe.apply(ie,arguments)}finally{Ji(ie)}}}function _a(ie){return function(){if(this.curOp)return ie.apply(this,arguments);ir(this);try{return ie.apply(this,arguments)}finally{Ji(this)}}}function qo(ie){return function(){var oe=this.cm;if(!oe||oe.curOp)return ie.apply(this,arguments);ir(oe);try{return ie.apply(this,arguments)}finally{Ji(oe)}}}function cs(ie,oe){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(oe,Qt(ja,ie))}function ja(ie){var oe=ie.doc;if(!(oe.highlightFrontier>=ie.display.viewTo)){var he=+new Date+ie.options.workTime,de=Ns(ie,oe.highlightFrontier),pe=[];oe.iter(de.line,Math.min(oe.first+oe.size,ie.display.viewTo+500),function(Fe){if(de.line>=ie.display.viewFrom){var Ve=Fe.styles,ot=Fe.text.length>ie.options.maxHighlightLength?Ti(oe.mode,de.state):null,et=al(ie,Fe,de,!0);ot&&(de.state=ot),Fe.styles=et.styles;var Et=Fe.styleClasses,rn=et.classes;rn?Fe.styleClasses=rn:Et&&(Fe.styleClasses=null);for(var bt=!Ve||Ve.length!=Fe.styles.length||Et!=rn&&(!Et||!rn||Et.bgClass!=rn.bgClass||Et.textClass!=rn.textClass),Ln=0;!bt&&Ln<Ve.length;++Ln)bt=Ve[Ln]!=Fe.styles[Ln];bt&&pe.push(de.line),Fe.stateAfter=de.save(),de.nextLine()}else Fe.text.length<=ie.options.maxHighlightLength&&ln(ie,Fe.text,de),Fe.stateAfter=de.line%5==0?de.save():null,de.nextLine();if(+new Date>he)return cs(ie,ie.options.workDelay),!0}),oe.highlightFrontier=de.line,oe.modeFrontier=Math.max(oe.modeFrontier,de.line),pe.length&&oo(ie,function(){for(var Fe=0;Fe<pe.length;Fe++)fs(ie,pe[Fe],"text")})}}var rs=function(ie,oe,he){var de=ie.display;this.viewport=oe,this.visible=xs(de,ie.doc,oe),this.editorIsHidden=!de.wrapper.offsetWidth,this.wrapperHeight=de.wrapper.clientHeight,this.wrapperWidth=de.wrapper.clientWidth,this.oldDisplayWidth=Cu(ie),this.force=he,this.dims=pc(ie),this.events=[]};rs.prototype.signal=function(ie,oe){kn(ie,oe)&&this.events.push(arguments)},rs.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Ki.apply(null,this.events[ie])};function qs(ie){var oe=ie.display;!oe.scrollbarsClipped&&oe.scroller.offsetWidth&&(oe.nativeBarWidth=oe.scroller.offsetWidth-oe.scroller.clientWidth,oe.heightForcer.style.height=Ol(ie)+"px",oe.sizer.style.marginBottom=-oe.nativeBarWidth+"px",oe.sizer.style.borderRightWidth=Ol(ie)+"px",oe.scrollbarsClipped=!0)}function Cs(ie){if(ie.hasFocus())return null;var oe=Dt();if(!oe||!yt(ie.display.lineDiv,oe))return null;var he={activeElt:oe};if(window.getSelection){var de=window.getSelection();de.anchorNode&&de.extend&&yt(ie.display.lineDiv,de.anchorNode)&&(he.anchorNode=de.anchorNode,he.anchorOffset=de.anchorOffset,he.focusNode=de.focusNode,he.focusOffset=de.focusOffset)}return he}function Oe(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Dt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&yt(document.body,ie.anchorNode)&&yt(document.body,ie.focusNode))){var oe=window.getSelection(),he=document.createRange();he.setEnd(ie.anchorNode,ie.anchorOffset),he.collapse(!1),oe.removeAllRanges(),oe.addRange(he),oe.extend(ie.focusNode,ie.focusOffset)}}function ze(ie,oe){var he=ie.display,de=ie.doc;if(oe.editorIsHidden)return Ml(ie),!1;if(!oe.force&&oe.visible.from>=he.viewFrom&&oe.visible.to<=he.viewTo&&(he.updateLineNumbers==null||he.updateLineNumbers>=he.viewTo)&&he.renderedView==he.view&&su(ie)==0)return!1;Ye(ie)&&(Ml(ie),oe.dims=pc(ie));var pe=de.first+de.size,Fe=Math.max(oe.visible.from-ie.options.viewportMargin,de.first),Ve=Math.min(pe,oe.visible.to+ie.options.viewportMargin);he.viewFrom<Fe&&Fe-he.viewFrom<20&&(Fe=Math.max(de.first,he.viewFrom)),he.viewTo>Ve&&he.viewTo-Ve<20&&(Ve=Math.min(pe,he.viewTo)),_n&&(Fe=Si(ie.doc,Fe),Ve=pr(ie.doc,Ve));var ot=Fe!=he.viewFrom||Ve!=he.viewTo||he.lastWrapHeight!=oe.wrapperHeight||he.lastWrapWidth!=oe.wrapperWidth;sl(ie,Fe,Ve),he.viewOffset=so(Hn(ie.doc,he.viewFrom)),ie.display.mover.style.top=he.viewOffset+"px";var et=su(ie);if(!ot&&et==0&&!oe.force&&he.renderedView==he.view&&(he.updateLineNumbers==null||he.updateLineNumbers>=he.viewTo))return!1;var Et=Cs(ie);return et>4&&(he.lineDiv.style.display="none"),sn(ie,he.updateLineNumbers,oe.dims),et>4&&(he.lineDiv.style.display=""),he.renderedView=he.view,Oe(Et),ft(he.cursorDiv),ft(he.selectionDiv),he.gutters.style.height=he.sizer.style.minHeight=0,ot&&(he.lastWrapHeight=oe.wrapperHeight,he.lastWrapWidth=oe.wrapperWidth,cs(ie,400)),he.updateLineNumbers=null,!0}function it(ie,oe){for(var he=oe.viewport,de=!0;;de=!1){if(!de||!ie.options.lineWrapping||oe.oldDisplayWidth==Cu(ie)){if(he&&he.top!=null&&(he={top:Math.min(ie.doc.height+Cc(ie.display)-Wc(ie),he.top)}),oe.visible=xs(ie.display,ie.doc,he),oe.visible.from>=ie.display.viewFrom&&oe.visible.to<=ie.display.viewTo)break}else de&&(oe.visible=xs(ie.display,ie.doc,he));if(!ze(ie,oe))break;Vr(ie);var pe=dn(ie);Gl(ie),ui(ie,pe),ke(ie,pe),oe.force=!1}oe.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(oe.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function vt(ie,oe){var he=new rs(ie,oe);if(ze(ie,he)){Vr(ie),it(ie,he);var de=dn(ie);Gl(ie),ui(ie,de),ke(ie,de),he.finish()}}function sn(ie,oe,he){var de=ie.display,pe=ie.options.lineNumbers,Fe=de.lineDiv,Ve=Fe.firstChild;function ot(er){var Cr=er.nextSibling;return Je&&ue&&ie.display.currentWheelTarget==er?er.style.display="none":er.parentNode.removeChild(er),Cr}for(var et=de.view,Et=de.viewFrom,rn=0;rn<et.length;rn++){var bt=et[rn];if(!bt.hidden)if(!bt.node||bt.node.parentNode!=Fe){var Ln=zu(ie,bt,Et,he);Fe.insertBefore(Ln,Ve)}else{for(;Ve!=bt.node;)Ve=ot(Ve);var Dn=pe&&oe!=null&&oe<=Et&&bt.lineNumber;bt.changes&&(Ne(bt.changes,"gutter")>-1&&(Dn=!1),Pu(ie,bt,Et,he)),Dn&&(ft(bt.lineNumber),bt.lineNumber.appendChild(document.createTextNode(Or(ie.options,Et)))),Ve=bt.node.nextSibling}Et+=bt.size}for(;Ve;)Ve=ot(Ve)}function Ce(ie){var oe=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=oe+"px"}function ke(ie,oe){ie.display.sizer.style.minHeight=oe.docHeight+"px",ie.display.heightForcer.style.top=oe.docHeight+"px",ie.display.gutters.style.height=oe.docHeight+ie.display.barHeight+Ol(ie)+"px"}function _e(ie){var oe=ie.display,he=oe.view;if(!(!oe.alignWidgets&&(!oe.gutters.firstChild||!ie.options.fixedGutter))){for(var de=mc(oe)-oe.scroller.scrollLeft+ie.doc.scrollLeft,pe=oe.gutters.offsetWidth,Fe=de+"px",Ve=0;Ve<he.length;Ve++)if(!he[Ve].hidden){ie.options.fixedGutter&&(he[Ve].gutter&&(he[Ve].gutter.style.left=Fe),he[Ve].gutterBackground&&(he[Ve].gutterBackground.style.left=Fe));var ot=he[Ve].alignable;if(ot)for(var et=0;et<ot.length;et++)ot[et].style.left=Fe}ie.options.fixedGutter&&(oe.gutters.style.left=de+pe+"px")}}function Ye(ie){if(!ie.options.lineNumbers)return!1;var oe=ie.doc,he=Or(ie.options,oe.first+oe.size-1),de=ie.display;if(he.length!=de.lineNumChars){var pe=de.measure.appendChild(rt("div",[rt("div",he)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Fe=pe.firstChild.offsetWidth,Ve=pe.offsetWidth-Fe;return de.lineGutter.style.width="",de.lineNumInnerWidth=Math.max(Fe,de.lineGutter.offsetWidth-Ve)+1,de.lineNumWidth=de.lineNumInnerWidth+Ve,de.lineNumChars=de.lineNumInnerWidth?he.length:-1,de.lineGutter.style.width=de.lineNumWidth+"px",Ce(ie.display),!0}return!1}function kt(ie,oe){for(var he=[],de=!1,pe=0;pe<ie.length;pe++){var Fe=ie[pe],Ve=null;if(typeof Fe!="string"&&(Ve=Fe.style,Fe=Fe.className),Fe=="CodeMirror-linenumbers")if(oe)de=!0;else continue;he.push({className:Fe,style:Ve})}return oe&&!de&&he.push({className:"CodeMirror-linenumbers",style:null}),he}function _t(ie){var oe=ie.gutters,he=ie.gutterSpecs;ft(oe),ie.lineGutter=null;for(var de=0;de<he.length;++de){var pe=he[de],Fe=pe.className,Ve=pe.style,ot=oe.appendChild(rt("div",null,"CodeMirror-gutter "+Fe));Ve&&(ot.style.cssText=Ve),Fe=="CodeMirror-linenumbers"&&(ie.lineGutter=ot,ot.style.width=(ie.lineNumWidth||1)+"px")}oe.style.display=he.length?"":"none",Ce(ie)}function on(ie){_t(ie.display),ll(ie),_e(ie)}function zn(ie,oe,he,de){var pe=this;this.input=he,pe.scrollbarFiller=rt("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=rt("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=Tt("div",null,"CodeMirror-code"),pe.selectionDiv=rt("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=rt("div",null,"CodeMirror-cursors"),pe.measure=rt("div",null,"CodeMirror-measure"),pe.lineMeasure=rt("div",null,"CodeMirror-measure"),pe.lineSpace=Tt("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Fe=Tt("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=rt("div",[Fe],null,"position: relative"),pe.sizer=rt("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=rt("div",null,null,"position: absolute; height: "+Nn+"px; width: 1px;"),pe.gutters=rt("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=rt("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=rt("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),Bt&&Re<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!Je&&!(ve&&te)&&(pe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(pe.wrapper):ie(pe.wrapper)),pe.viewFrom=pe.viewTo=oe.first,pe.reportedViewFrom=pe.reportedViewTo=oe.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=kt(de.gutters,de.lineNumbers),_t(pe),he.init(pe)}var yn=0,Fn=null;Bt?Fn=-.53:ve?Fn=15:wt?Fn=-.7:Vt&&(Fn=-1/3);function qn(ie){var oe=ie.wheelDeltaX,he=ie.wheelDeltaY;return oe==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(oe=ie.detail),he==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?he=ie.detail:he==null&&(he=ie.wheelDelta),{x:oe,y:he}}function $n(ie){var oe=qn(ie);return oe.x*=Fn,oe.y*=Fn,oe}function Wi(ie,oe){var he=qn(oe),de=he.x,pe=he.y,Fe=ie.display,Ve=Fe.scroller,ot=Ve.scrollWidth>Ve.clientWidth,et=Ve.scrollHeight>Ve.clientHeight;if(de&&ot||pe&&et){if(pe&&ue&&Je){e:for(var Et=oe.target,rn=Fe.view;Et!=Ve;Et=Et.parentNode)for(var bt=0;bt<rn.length;bt++)if(rn[bt].node==Et){ie.display.currentWheelTarget=Et;break e}}if(de&&!ve&&!ht&&Fn!=null){pe&&et&&Lt(ie,Math.max(0,Ve.scrollTop+pe*Fn)),jt(ie,Math.max(0,Ve.scrollLeft+de*Fn)),(!pe||pe&&et)&&ea(oe),Fe.wheelStartX=null;return}if(pe&&Fn!=null){var Ln=pe*Fn,Dn=ie.doc.scrollTop,er=Dn+Fe.wrapper.clientHeight;Ln<0?Dn=Math.max(0,Dn+Ln-50):er=Math.min(ie.doc.height,er+Ln+50),vt(ie,{top:Dn,bottom:er})}yn<20&&(Fe.wheelStartX==null?(Fe.wheelStartX=Ve.scrollLeft,Fe.wheelStartY=Ve.scrollTop,Fe.wheelDX=de,Fe.wheelDY=pe,setTimeout(function(){if(Fe.wheelStartX!=null){var Cr=Ve.scrollLeft-Fe.wheelStartX,$r=Ve.scrollTop-Fe.wheelStartY,jo=$r&&Fe.wheelDY&&$r/Fe.wheelDY||Cr&&Fe.wheelDX&&Cr/Fe.wheelDX;Fe.wheelStartX=Fe.wheelStartY=null,jo&&(Fn=(Fn*yn+jo)/(yn+1),++yn)}},200)):(Fe.wheelDX+=de,Fe.wheelDY+=pe))}}var xi=function(ie,oe){this.ranges=ie,this.primIndex=oe};xi.prototype.primary=function(){return this.ranges[this.primIndex]},xi.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var oe=0;oe<this.ranges.length;oe++){var he=this.ranges[oe],de=ie.ranges[oe];if(!Xo(he.anchor,de.anchor)||!Xo(he.head,de.head))return!1}return!0},xi.prototype.deepCopy=function(){for(var ie=[],oe=0;oe<this.ranges.length;oe++)ie[oe]=new li(Na(this.ranges[oe].anchor),Na(this.ranges[oe].head));return new xi(ie,this.primIndex)},xi.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},xi.prototype.contains=function(ie,oe){oe||(oe=ie);for(var he=0;he<this.ranges.length;he++){var de=this.ranges[he];if(or(oe,de.from())>=0&&or(ie,de.to())<=0)return he}return-1};var li=function(ie,oe){this.anchor=ie,this.head=oe};li.prototype.from=function(){return hr(this.anchor,this.head)},li.prototype.to=function(){return aa(this.anchor,this.head)},li.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fi(ie,oe,he){var de=ie&&ie.options.selectionsMayTouch,pe=oe[he];oe.sort(function(Ln,Dn){return or(Ln.from(),Dn.from())}),he=Ne(oe,pe);for(var Fe=1;Fe<oe.length;Fe++){var Ve=oe[Fe],ot=oe[Fe-1],et=or(ot.to(),Ve.from());if(de&&!Ve.empty()?et>0:et>=0){var Et=hr(ot.from(),Ve.from()),rn=aa(ot.to(),Ve.to()),bt=ot.empty()?Ve.from()==Ve.head:ot.from()==ot.head;Fe<=he&&--he,oe.splice(--Fe,2,new li(bt?rn:Et,bt?Et:rn))}}return new xi(oe,he)}function Zi(ie,oe){return new xi([new li(ie,oe||ie)],0)}function ur(ie){return ie.text?wn(ie.from.line+ie.text.length-1,qt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function to(ie,oe){if(or(ie,oe.from)<0)return ie;if(or(ie,oe.to)<=0)return ur(oe);var he=ie.line+oe.text.length-(oe.to.line-oe.from.line)-1,de=ie.ch;return ie.line==oe.to.line&&(de+=ur(oe).ch-oe.to.ch),wn(he,de)}function br(ie,oe){for(var he=[],de=0;de<ie.sel.ranges.length;de++){var pe=ie.sel.ranges[de];he.push(new li(to(pe.anchor,oe),to(pe.head,oe)))}return Fi(ie.cm,he,ie.sel.primIndex)}function Sr(ie,oe,he){return ie.line==oe.line?wn(he.line,ie.ch-oe.ch+he.ch):wn(he.line+(ie.line-oe.line),ie.ch)}function wo(ie,oe,he){for(var de=[],pe=wn(ie.first,0),Fe=pe,Ve=0;Ve<oe.length;Ve++){var ot=oe[Ve],et=Sr(ot.from,pe,Fe),Et=Sr(ur(ot),pe,Fe);if(pe=ot.to,Fe=Et,he=="around"){var rn=ie.sel.ranges[Ve],bt=or(rn.head,rn.anchor)<0;de[Ve]=new li(bt?Et:et,bt?et:Et)}else de[Ve]=new li(et,et)}return new xi(de,ie.sel.primIndex)}function Mi(ie){ie.doc.mode=Gt(ie.options,ie.doc.modeOption),Jr(ie)}function Jr(ie){ie.doc.iter(function(oe){oe.stateAfter&&(oe.stateAfter=null),oe.styles&&(oe.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,cs(ie,100),ie.state.modeGen++,ie.curOp&&ll(ie)}function mr(ie,oe){return oe.from.ch==0&&oe.to.ch==0&&qt(oe.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function ao(ie,oe,he,de){function pe(La){return he?he[La]:null}function Fe(La,na,za){ns(La,na,za,de),Mo(La,"change",La,oe)}function Ve(La,na){for(var za=[],ps=La;ps<na;++ps)za.push(new Ia(Et[ps],pe(ps),de));return za}var ot=oe.from,et=oe.to,Et=oe.text,rn=Hn(ie,ot.line),bt=Hn(ie,et.line),Ln=qt(Et),Dn=pe(Et.length-1),er=et.line-ot.line;if(oe.full)ie.insert(0,Ve(0,Et.length)),ie.remove(Et.length,ie.size-Et.length);else if(mr(ie,oe)){var Cr=Ve(0,Et.length-1);Fe(bt,bt.text,Dn),er&&ie.remove(ot.line,er),Cr.length&&ie.insert(ot.line,Cr)}else if(rn==bt)if(Et.length==1)Fe(rn,rn.text.slice(0,ot.ch)+Ln+rn.text.slice(et.ch),Dn);else{var $r=Ve(1,Et.length-1);$r.push(new Ia(Ln+rn.text.slice(et.ch),Dn,de)),Fe(rn,rn.text.slice(0,ot.ch)+Et[0],pe(0)),ie.insert(ot.line+1,$r)}else if(Et.length==1)Fe(rn,rn.text.slice(0,ot.ch)+Et[0]+bt.text.slice(et.ch),pe(0)),ie.remove(ot.line+1,er);else{Fe(rn,rn.text.slice(0,ot.ch)+Et[0],pe(0)),Fe(bt,Ln+bt.text.slice(et.ch),Dn);var jo=Ve(1,Et.length-1);er>1&&ie.remove(ot.line+1,er-1),ie.insert(ot.line+1,jo)}Mo(ie,"change",ie,oe)}function po(ie,oe,he){function de(pe,Fe,Ve){if(pe.linked)for(var ot=0;ot<pe.linked.length;++ot){var et=pe.linked[ot];if(et.doc!=Fe){var Et=Ve&&et.sharedHist;he&&!Et||(oe(et.doc,Et),de(et.doc,pe,Et))}}}de(ie,null,!0)}function Ar(ie,oe){if(oe.cm)throw new Error("This document is already in use.");ie.doc=oe,oe.cm=ie,Ca(ie),Mi(ie),To(ie),ie.options.lineWrapping||fa(ie),ie.options.mode=oe.modeOption,ll(ie)}function To(ie){(ie.doc.direction=="rtl"?Nt:qe)(ie.display.lineDiv,"CodeMirror-rtl")}function mo(ie){oo(ie,function(){To(ie),ll(ie)})}function zo(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function Dr(ie,oe){var he={from:Na(oe.from),to:ur(oe),text:En(ie,oe.from,oe.to)};return ua(ie,he,oe.from.line,oe.to.line+1),po(ie,function(de){return ua(de,he,oe.from.line,oe.to.line+1)},!0),he}function Co(ie){for(;ie.length;){var oe=qt(ie);if(oe.ranges)ie.pop();else break}}function ca(ie,oe){if(oe)return Co(ie.done),qt(ie.done);if(ie.done.length&&!qt(ie.done).ranges)return qt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),qt(ie.done)}function Da(ie,oe,he,de){var pe=ie.history;pe.undone.length=0;var Fe=+new Date,Ve,ot;if((pe.lastOp==de||pe.lastOrigin==oe.origin&&oe.origin&&(oe.origin.charAt(0)=="+"&&pe.lastModTime>Fe-(ie.cm?ie.cm.options.historyEventDelay:500)||oe.origin.charAt(0)=="*"))&&(Ve=ca(pe,pe.lastOp==de)))ot=qt(Ve.changes),or(oe.from,oe.to)==0&&or(oe.from,ot.to)==0?ot.to=ur(oe):Ve.changes.push(Dr(ie,oe));else{var et=qt(pe.done);for((!et||!et.ranges)&&Jo(ie.sel,pe.done),Ve={changes:[Dr(ie,oe)],generation:pe.generation},pe.done.push(Ve);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(he),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Fe,pe.lastOp=pe.lastSelOp=de,pe.lastOrigin=pe.lastSelOrigin=oe.origin,ot||Ki(ie,"historyAdded")}function ga(ie,oe,he,de){var pe=oe.charAt(0);return pe=="*"||pe=="+"&&he.ranges.length==de.ranges.length&&he.somethingSelected()==de.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Qr(ie,oe,he,de){var pe=ie.history,Fe=de&&de.origin;he==pe.lastSelOp||Fe&&pe.lastSelOrigin==Fe&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Fe||ga(ie,Fe,qt(pe.done),oe))?pe.done[pe.done.length-1]=oe:Jo(oe,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Fe,pe.lastSelOp=he,de&&de.clearRedo!==!1&&Co(pe.undone)}function Jo(ie,oe){var he=qt(oe);he&&he.ranges&&he.equals(ie)||oe.push(ie)}function ua(ie,oe,he,de){var pe=oe["spans_"+ie.id],Fe=0;ie.iter(Math.max(ie.first,he),Math.min(ie.first+ie.size,de),function(Ve){Ve.markedSpans&&((pe||(pe=oe["spans_"+ie.id]={}))[Fe]=Ve.markedSpans),++Fe})}function Ea(ie){if(!ie)return null;for(var oe,he=0;he<ie.length;++he)ie[he].marker.explicitlyCleared?oe||(oe=ie.slice(0,he)):oe&&oe.push(ie[he]);return oe?oe.length?oe:null:ie}function es(ie,oe){var he=oe["spans_"+ie.id];if(!he)return null;for(var de=[],pe=0;pe<oe.text.length;++pe)de.push(Ea(he[pe]));return de}function ba(ie,oe){var he=es(ie,oe),de=us(ie,oe);if(!he)return de;if(!de)return he;for(var pe=0;pe<he.length;++pe){var Fe=he[pe],Ve=de[pe];if(Fe&&Ve)e:for(var ot=0;ot<Ve.length;++ot){for(var et=Ve[ot],Et=0;Et<Fe.length;++Et)if(Fe[Et].marker==et.marker)continue e;Fe.push(et)}else Ve&&(he[pe]=Ve)}return he}function _o(ie,oe,he){for(var de=[],pe=0;pe<ie.length;++pe){var Fe=ie[pe];if(Fe.ranges){de.push(he?xi.prototype.deepCopy.call(Fe):Fe);continue}var Ve=Fe.changes,ot=[];de.push({changes:ot});for(var et=0;et<Ve.length;++et){var Et=Ve[et],rn=void 0;if(ot.push({from:Et.from,to:Et.to,text:Et.text}),oe)for(var bt in Et)(rn=bt.match(/^spans_(\d+)$/))&&Ne(oe,Number(rn[1]))>-1&&(qt(ot)[bt]=Et[bt],delete Et[bt])}}return de}function yo(ie,oe,he,de){if(de){var pe=ie.anchor;if(he){var Fe=or(oe,pe)<0;Fe!=or(he,pe)<0?(pe=oe,oe=he):Fe!=or(oe,he)<0&&(oe=he)}return new li(pe,oe)}else return new li(he||oe,oe)}function ta(ie,oe,he,de,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),Mr(ie,new xi([yo(ie.sel.primary(),oe,he,pe)],0),de)}function Ka(ie,oe,he){for(var de=[],pe=ie.cm&&(ie.cm.display.shift||ie.extend),Fe=0;Fe<ie.sel.ranges.length;Fe++)de[Fe]=yo(ie.sel.ranges[Fe],oe[Fe],null,pe);var Ve=Fi(ie.cm,de,ie.sel.primIndex);Mr(ie,Ve,he)}function Vo(ie,oe,he,de){var pe=ie.sel.ranges.slice(0);pe[oe]=he,Mr(ie,Fi(ie.cm,pe,ie.sel.primIndex),de)}function Zr(ie,oe,he,de){Mr(ie,Zi(oe,he),de)}function ho(ie,oe,he){var de={ranges:oe.ranges,update:function(pe){this.ranges=[];for(var Fe=0;Fe<pe.length;Fe++)this.ranges[Fe]=new li(io(ie,pe[Fe].anchor),io(ie,pe[Fe].head))},origin:he&&he.origin};return Ki(ie,"beforeSelectionChange",ie,de),ie.cm&&Ki(ie.cm,"beforeSelectionChange",ie.cm,de),de.ranges!=oe.ranges?Fi(ie.cm,de.ranges,de.ranges.length-1):oe}function fo(ie,oe,he){var de=ie.history.done,pe=qt(de);pe&&pe.ranges?(de[de.length-1]=oe,Gr(ie,oe,he)):Mr(ie,oe,he)}function Mr(ie,oe,he){Gr(ie,oe,he),Qr(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,he)}function Gr(ie,oe,he){(kn(ie,"beforeSelectionChange")||ie.cm&&kn(ie.cm,"beforeSelectionChange"))&&(oe=ho(ie,oe,he));var de=he&&he.bias||(or(oe.primary().head,ie.sel.primary().head)<0?-1:1);Do(ie,Ie(ie,oe,de,!0)),!(he&&he.scroll===!1)&&ie.cm&&Dc(ie.cm)}function Do(ie,oe){oe.equals(ie.sel)||(ie.sel=oe,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,ar(ie.cm)),Mo(ie,"cursorActivity",ie))}function ye(ie){Do(ie,Ie(ie,ie.sel,null,!1))}function Ie(ie,oe,he,de){for(var pe,Fe=0;Fe<oe.ranges.length;Fe++){var Ve=oe.ranges[Fe],ot=oe.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Fe],et=Ue(ie,Ve.anchor,ot&&ot.anchor,he,de),Et=Ue(ie,Ve.head,ot&&ot.head,he,de);(pe||et!=Ve.anchor||Et!=Ve.head)&&(pe||(pe=oe.ranges.slice(0,Fe)),pe[Fe]=new li(et,Et))}return pe?Fi(ie.cm,pe,oe.primIndex):oe}function je(ie,oe,he,de,pe){var Fe=Hn(ie,oe.line);if(Fe.markedSpans)for(var Ve=0;Ve<Fe.markedSpans.length;++Ve){var ot=Fe.markedSpans[Ve],et=ot.marker,Et="selectLeft"in et?!et.selectLeft:et.inclusiveLeft,rn="selectRight"in et?!et.selectRight:et.inclusiveRight;if((ot.from==null||(Et?ot.from<=oe.ch:ot.from<oe.ch))&&(ot.to==null||(rn?ot.to>=oe.ch:ot.to>oe.ch))){if(pe&&(Ki(et,"beforeCursorEnter"),et.explicitlyCleared))if(Fe.markedSpans){--Ve;continue}else break;if(!et.atomic)continue;if(he){var bt=et.find(de<0?1:-1),Ln=void 0;if((de<0?rn:Et)&&(bt=gt(ie,bt,-de,bt&&bt.line==oe.line?Fe:null)),bt&&bt.line==oe.line&&(Ln=or(bt,he))&&(de<0?Ln<0:Ln>0))return je(ie,bt,oe,de,pe)}var Dn=et.find(de<0?-1:1);return(de<0?Et:rn)&&(Dn=gt(ie,Dn,de,Dn.line==oe.line?Fe:null)),Dn?je(ie,Dn,oe,de,pe):null}}return oe}function Ue(ie,oe,he,de,pe){var Fe=de||1,Ve=je(ie,oe,he,Fe,pe)||!pe&&je(ie,oe,he,Fe,!0)||je(ie,oe,he,-Fe,pe)||!pe&&je(ie,oe,he,-Fe,!0);return Ve||(ie.cantEdit=!0,wn(ie.first,0))}function gt(ie,oe,he,de){return he<0&&oe.ch==0?oe.line>ie.first?io(ie,wn(oe.line-1)):null:he>0&&oe.ch==(de||Hn(ie,oe.line)).text.length?oe.line<ie.first+ie.size-1?wn(oe.line+1,0):null:new wn(oe.line,oe.ch+he)}function Ht(ie){ie.setSelection(wn(ie.firstLine(),0),wn(ie.lastLine()),Xt)}function $t(ie,oe,he){var de={canceled:!1,from:oe.from,to:oe.to,text:oe.text,origin:oe.origin,cancel:function(){return de.canceled=!0}};return he&&(de.update=function(pe,Fe,Ve,ot){pe&&(de.from=io(ie,pe)),Fe&&(de.to=io(ie,Fe)),Ve&&(de.text=Ve),ot!==void 0&&(de.origin=ot)}),Ki(ie,"beforeChange",ie,de),ie.cm&&Ki(ie.cm,"beforeChange",ie.cm,de),de.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:de.from,to:de.to,text:de.text,origin:de.origin}}function an(ie,oe,he){if(ie.cm){if(!ie.cm.curOp)return oa(ie.cm,an)(ie,oe,he);if(ie.cm.state.suppressEdits)return}if(!((kn(ie,"beforeChange")||ie.cm&&kn(ie.cm,"beforeChange"))&&(oe=$t(ie,oe,!0),!oe))){var de=So&&!he&&ts(ie,oe.from,oe.to);if(de)for(var pe=de.length-1;pe>=0;--pe)Tn(ie,{from:de[pe].from,to:de[pe].to,text:pe?[""]:oe.text,origin:oe.origin});else Tn(ie,oe)}}function Tn(ie,oe){if(!(oe.text.length==1&&oe.text[0]==""&&or(oe.from,oe.to)==0)){var he=br(ie,oe);Da(ie,oe,he,ie.cm?ie.cm.curOp.id:NaN),Ei(ie,oe,he,us(ie,oe));var de=[];po(ie,function(pe,Fe){!Fe&&Ne(de,pe.history)==-1&&(Ni(pe.history,oe),de.push(pe.history)),Ei(pe,oe,null,us(pe,oe))})}}function Un(ie,oe,he){var de=ie.cm&&ie.cm.state.suppressEdits;if(!(de&&!he)){for(var pe=ie.history,Fe,Ve=ie.sel,ot=oe=="undo"?pe.done:pe.undone,et=oe=="undo"?pe.undone:pe.done,Et=0;Et<ot.length&&(Fe=ot[Et],!(he?Fe.ranges&&!Fe.equals(ie.sel):!Fe.ranges));Et++);if(Et!=ot.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Fe=ot.pop(),Fe.ranges){if(Jo(Fe,et),he&&!Fe.equals(ie.sel)){Mr(ie,Fe,{clearRedo:!1});return}Ve=Fe}else if(de){ot.push(Fe);return}else break;var rn=[];Jo(Ve,et),et.push({changes:rn,generation:pe.generation}),pe.generation=Fe.generation||++pe.maxGeneration;for(var bt=kn(ie,"beforeChange")||ie.cm&&kn(ie.cm,"beforeChange"),Ln=function(Cr){var $r=Fe.changes[Cr];if($r.origin=oe,bt&&!$t(ie,$r,!1))return ot.length=0,{};rn.push(Dr(ie,$r));var jo=Cr?br(ie,$r):qt(ot);Ei(ie,$r,jo,ba(ie,$r)),!Cr&&ie.cm&&ie.cm.scrollIntoView({from:$r.from,to:ur($r)});var La=[];po(ie,function(na,za){!za&&Ne(La,na.history)==-1&&(Ni(na.history,$r),La.push(na.history)),Ei(na,$r,null,ba(na,$r))})},Dn=Fe.changes.length-1;Dn>=0;--Dn){var er=Ln(Dn);if(er)return er.v}}}}function Mn(ie,oe){if(oe!=0&&(ie.first+=oe,ie.sel=new xi(hi(ie.sel.ranges,function(pe){return new li(wn(pe.anchor.line+oe,pe.anchor.ch),wn(pe.head.line+oe,pe.head.ch))}),ie.sel.primIndex),ie.cm)){ll(ie.cm,ie.first,ie.first-oe,oe);for(var he=ie.cm.display,de=he.viewFrom;de<he.viewTo;de++)fs(ie.cm,de,"gutter")}}function Ei(ie,oe,he,de){if(ie.cm&&!ie.cm.curOp)return oa(ie.cm,Ei)(ie,oe,he,de);if(oe.to.line<ie.first){Mn(ie,oe.text.length-1-(oe.to.line-oe.from.line));return}if(!(oe.from.line>ie.lastLine())){if(oe.from.line<ie.first){var pe=oe.text.length-1-(ie.first-oe.from.line);Mn(ie,pe),oe={from:wn(ie.first,0),to:wn(oe.to.line+pe,oe.to.ch),text:[qt(oe.text)],origin:oe.origin}}var Fe=ie.lastLine();oe.to.line>Fe&&(oe={from:oe.from,to:wn(Fe,Hn(ie,Fe).text.length),text:[oe.text[0]],origin:oe.origin}),oe.removed=En(ie,oe.from,oe.to),he||(he=br(ie,oe)),ie.cm?Ui(ie.cm,oe,de):ao(ie,oe,de),Gr(ie,he,Xt),ie.cantEdit&&Ue(ie,wn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ui(ie,oe,he){var de=ie.doc,pe=ie.display,Fe=oe.from,Ve=oe.to,ot=!1,et=Fe.line;ie.options.lineWrapping||(et=tn(wi(Hn(de,Fe.line))),de.iter(et,Ve.line+1,function(Dn){if(Dn==pe.maxLine)return ot=!0,!0})),de.sel.contains(oe.from,oe.to)>-1&&ar(ie),ao(de,oe,he,wl(ie)),ie.options.lineWrapping||(de.iter(et,Fe.line+oe.text.length,function(Dn){var er=ya(Dn);er>pe.maxLineLength&&(pe.maxLine=Dn,pe.maxLineLength=er,pe.maxLineChanged=!0,ot=!1)}),ot&&(ie.curOp.updateMaxLine=!0)),uo(de,Fe.line),cs(ie,400);var Et=oe.text.length-(Ve.line-Fe.line)-1;oe.full?ll(ie):Fe.line==Ve.line&&oe.text.length==1&&!mr(ie.doc,oe)?fs(ie,Fe.line,"text"):ll(ie,Fe.line,Ve.line+1,Et);var rn=kn(ie,"changes"),bt=kn(ie,"change");if(bt||rn){var Ln={from:Fe,to:Ve,text:oe.text,removed:oe.removed,origin:oe.origin};bt&&Mo(ie,"change",ie,Ln),rn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Ln)}ie.display.selForContextMenu=null}function Ci(ie,oe,he,de,pe){var Fe;de||(de=he),or(de,he)<0&&(Fe=[de,he],he=Fe[0],de=Fe[1]),typeof oe=="string"&&(oe=ie.splitLines(oe)),an(ie,{from:he,to:de,text:oe,origin:pe})}function Li(ie,oe,he,de){he<ie.line?ie.line+=de:oe<ie.line&&(ie.line=oe,ie.ch=0)}function Di(ie,oe,he,de){for(var pe=0;pe<ie.length;++pe){var Fe=ie[pe],Ve=!0;if(Fe.ranges){Fe.copied||(Fe=ie[pe]=Fe.deepCopy(),Fe.copied=!0);for(var ot=0;ot<Fe.ranges.length;ot++)Li(Fe.ranges[ot].anchor,oe,he,de),Li(Fe.ranges[ot].head,oe,he,de);continue}for(var et=0;et<Fe.changes.length;++et){var Et=Fe.changes[et];if(he<Et.from.line)Et.from=wn(Et.from.line+de,Et.from.ch),Et.to=wn(Et.to.line+de,Et.to.ch);else if(oe<=Et.to.line){Ve=!1;break}}Ve||(ie.splice(0,pe+1),pe=0)}}function Ni(ie,oe){var he=oe.from.line,de=oe.to.line,pe=oe.text.length-(de-he)-1;Di(ie.done,he,de,pe),Di(ie.undone,he,de,pe)}function bn(ie,oe,he,de){var pe=oe,Fe=oe;return typeof oe=="number"?Fe=Hn(ie,Nr(ie,oe)):pe=tn(oe),pe==null?null:(de(Fe,pe)&&ie.cm&&fs(ie.cm,pe,he),Fe)}function Yn(ie){this.lines=ie,this.parent=null;for(var oe=0,he=0;he<ie.length;++he)ie[he].parent=this,oe+=ie[he].height;this.height=oe}Yn.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,oe){for(var he=ie,de=ie+oe;he<de;++he){var pe=this.lines[he];this.height-=pe.height,Us(pe),Mo(pe,"delete")}this.lines.splice(ie,oe)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,oe,he){this.height+=he,this.lines=this.lines.slice(0,ie).concat(oe).concat(this.lines.slice(ie));for(var de=0;de<oe.length;++de)oe[de].parent=this},iterN:function(ie,oe,he){for(var de=ie+oe;ie<de;++ie)if(he(this.lines[ie]))return!0}};function ei(ie){this.children=ie;for(var oe=0,he=0,de=0;de<ie.length;++de){var pe=ie[de];oe+=pe.chunkSize(),he+=pe.height,pe.parent=this}this.size=oe,this.height=he,this.parent=null}ei.prototype={chunkSize:function(){return this.size},removeInner:function(ie,oe){this.size-=oe;for(var he=0;he<this.children.length;++he){var de=this.children[he],pe=de.chunkSize();if(ie<pe){var Fe=Math.min(oe,pe-ie),Ve=de.height;if(de.removeInner(ie,Fe),this.height-=Ve-de.height,pe==Fe&&(this.children.splice(he--,1),de.parent=null),(oe-=Fe)==0)break;ie=0}else ie-=pe}if(this.size-oe<25&&(this.children.length>1||!(this.children[0]instanceof Yn))){var ot=[];this.collapse(ot),this.children=[new Yn(ot)],this.children[0].parent=this}},collapse:function(ie){for(var oe=0;oe<this.children.length;++oe)this.children[oe].collapse(ie)},insertInner:function(ie,oe,he){this.size+=oe.length,this.height+=he;for(var de=0;de<this.children.length;++de){var pe=this.children[de],Fe=pe.chunkSize();if(ie<=Fe){if(pe.insertInner(ie,oe,he),pe.lines&&pe.lines.length>50){for(var Ve=pe.lines.length%25+25,ot=Ve;ot<pe.lines.length;){var et=new Yn(pe.lines.slice(ot,ot+=25));pe.height-=et.height,this.children.splice(++de,0,et),et.parent=this}pe.lines=pe.lines.slice(0,Ve),this.maybeSpill()}break}ie-=Fe}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var oe=ie.children.splice(ie.children.length-5,5),he=new ei(oe);if(ie.parent){ie.size-=he.size,ie.height-=he.height;var pe=Ne(ie.parent.children,ie);ie.parent.children.splice(pe+1,0,he)}else{var de=new ei(ie.children);de.parent=ie,ie.children=[de,he],ie=de}he.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,oe,he){for(var de=0;de<this.children.length;++de){var pe=this.children[de],Fe=pe.chunkSize();if(ie<Fe){var Ve=Math.min(oe,Fe-ie);if(pe.iterN(ie,Ve,he))return!0;if((oe-=Ve)==0)break;ie=0}else ie-=Fe}}};var pi=function(ie,oe,he){if(he)for(var de in he)he.hasOwnProperty(de)&&(this[de]=he[de]);this.doc=ie,this.node=oe};pi.prototype.clear=function(){var ie=this.doc.cm,oe=this.line.widgets,he=this.line,de=tn(he);if(!(de==null||!oe)){for(var pe=0;pe<oe.length;++pe)oe[pe]==this&&oe.splice(pe--,1);oe.length||(he.widgets=null);var Fe=Fl(this);si(he,Math.max(0,he.height-Fe)),ie&&(oo(ie,function(){rr(ie,he,-Fe),fs(ie,de,"widget")}),Mo(ie,"lineWidgetCleared",ie,this,de))}},pi.prototype.changed=function(){var ie=this,oe=this.height,he=this.doc.cm,de=this.line;this.height=null;var pe=Fl(this)-oe;pe&&(fn(this.doc,de)||si(de,de.height+pe),he&&oo(he,function(){he.curOp.forceUpdate=!0,rr(he,de,pe),Mo(he,"lineWidgetChanged",he,ie,tn(de))}))},Bi(pi);function rr(ie,oe,he){so(oe)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&_u(ie,he)}function $i(ie,oe,he,de){var pe=new pi(ie,he,de),Fe=ie.cm;return Fe&&pe.noHScroll&&(Fe.display.alignWidgets=!0),bn(ie,oe,"widget",function(Ve){var ot=Ve.widgets||(Ve.widgets=[]);if(pe.insertAt==null?ot.push(pe):ot.splice(Math.min(ot.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=Ve,Fe&&!fn(ie,Ve)){var et=so(Ve)<ie.scrollTop;si(Ve,Ve.height+Fl(pe)),et&&_u(Fe,pe.height),Fe.curOp.forceUpdate=!0}return!0}),Fe&&Mo(Fe,"lineWidgetAdded",Fe,pe,typeof oe=="number"?oe:tn(oe)),pe}var sr=0,At=function(ie,oe){this.lines=[],this.type=oe,this.doc=ie,this.id=++sr};At.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,oe=ie&&!ie.curOp;if(oe&&ir(ie),kn(this,"clear")){var he=this.find();he&&Mo(this,"clear",he.from,he.to)}for(var de=null,pe=null,Fe=0;Fe<this.lines.length;++Fe){var Ve=this.lines[Fe],ot=Ws(Ve.markedSpans,this);ie&&!this.collapsed?fs(ie,tn(Ve),"text"):ie&&(ot.to!=null&&(pe=tn(Ve)),ot.from!=null&&(de=tn(Ve))),Ve.markedSpans=ds(Ve.markedSpans,ot),ot.from==null&&this.collapsed&&!fn(this.doc,Ve)&&ie&&si(Ve,pu(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var et=0;et<this.lines.length;++et){var Et=wi(this.lines[et]),rn=ya(Et);rn>ie.display.maxLineLength&&(ie.display.maxLine=Et,ie.display.maxLineLength=rn,ie.display.maxLineChanged=!0)}de!=null&&ie&&this.collapsed&&ll(ie,de,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&ye(ie.doc)),ie&&Mo(ie,"markerCleared",ie,this,de,pe),oe&&Ji(ie),this.parent&&this.parent.clear()}},At.prototype.find=function(ie,oe){ie==null&&this.type=="bookmark"&&(ie=1);for(var he,de,pe=0;pe<this.lines.length;++pe){var Fe=this.lines[pe],Ve=Ws(Fe.markedSpans,this);if(Ve.from!=null&&(he=wn(oe?Fe:tn(Fe),Ve.from),ie==-1))return he;if(Ve.to!=null&&(de=wn(oe?Fe:tn(Fe),Ve.to),ie==1))return de}return he&&{from:he,to:de}},At.prototype.changed=function(){var ie=this,oe=this.find(-1,!0),he=this,de=this.doc.cm;!oe||!de||oo(de,function(){var pe=oe.line,Fe=tn(oe.line),Ve=El(de,Fe);if(Ve&&(lh(Ve),de.curOp.selectionChanged=de.curOp.forceUpdate=!0),de.curOp.updateMaxLine=!0,!fn(he.doc,pe)&&he.height!=null){var ot=he.height;he.height=null;var et=Fl(he)-ot;et&&si(pe,pe.height+et)}Mo(de,"markerChanged",de,ie)})},At.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var oe=this.doc.cm.curOp;(!oe.maybeHiddenMarkers||Ne(oe.maybeHiddenMarkers,this)==-1)&&(oe.maybeUnhiddenMarkers||(oe.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},At.prototype.detachLine=function(ie){if(this.lines.splice(Ne(this.lines,ie),1),!this.lines.length&&this.doc.cm){var oe=this.doc.cm.curOp;(oe.maybeHiddenMarkers||(oe.maybeHiddenMarkers=[])).push(this)}},Bi(At);function cr(ie,oe,he,de,pe){if(de&&de.shared)return Ir(ie,oe,he,de,pe);if(ie.cm&&!ie.cm.curOp)return oa(ie.cm,cr)(ie,oe,he,de,pe);var Fe=new At(ie,pe),Ve=or(oe,he);if(de&&vn(de,Fe,!1),Ve>0||Ve==0&&Fe.clearWhenEmpty!==!1)return Fe;if(Fe.replacedWith&&(Fe.collapsed=!0,Fe.widgetNode=Tt("span",[Fe.replacedWith],"CodeMirror-widget"),de.handleMouseEvents||Fe.widgetNode.setAttribute("cm-ignore-events","true"),de.insertLeft&&(Fe.widgetNode.insertLeft=!0)),Fe.collapsed){if(Qi(ie,oe.line,oe,he,Fe)||oe.line!=he.line&&Qi(ie,he.line,oe,he,Fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");An()}Fe.addToHistory&&Da(ie,{from:oe,to:he,origin:"markText"},ie.sel,NaN);var ot=oe.line,et=ie.cm,Et;if(ie.iter(ot,he.line+1,function(bt){et&&Fe.collapsed&&!et.options.lineWrapping&&wi(bt)==et.display.maxLine&&(Et=!0),Fe.collapsed&&ot!=oe.line&&si(bt,0),kl(bt,new Po(Fe,ot==oe.line?oe.ch:null,ot==he.line?he.ch:null)),++ot}),Fe.collapsed&&ie.iter(oe.line,he.line+1,function(bt){fn(ie,bt)&&si(bt,0)}),Fe.clearOnEnter&&Yi(Fe,"beforeCursorEnter",function(){return Fe.clear()}),Fe.readOnly&&(ka(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Fe.collapsed&&(Fe.id=++sr,Fe.atomic=!0),et){if(Et&&(et.curOp.updateMaxLine=!0),Fe.collapsed)ll(et,oe.line,he.line+1);else if(Fe.className||Fe.startStyle||Fe.endStyle||Fe.css||Fe.attributes||Fe.title)for(var rn=oe.line;rn<=he.line;rn++)fs(et,rn,"text");Fe.atomic&&ye(et.doc),Mo(et,"markerAdded",et,Fe)}return Fe}var Pr=function(ie,oe){this.markers=ie,this.primary=oe;for(var he=0;he<ie.length;++he)ie[he].parent=this};Pr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Mo(this,"clear")}},Pr.prototype.find=function(ie,oe){return this.primary.find(ie,oe)},Bi(Pr);function Ir(ie,oe,he,de,pe){de=vn(de),de.shared=!1;var Fe=[cr(ie,oe,he,de,pe)],Ve=Fe[0],ot=de.widgetNode;return po(ie,function(et){ot&&(de.widgetNode=ot.cloneNode(!0)),Fe.push(cr(et,io(et,oe),io(et,he),de,pe));for(var Et=0;Et<et.linked.length;++Et)if(et.linked[Et].isParent)return;Ve=qt(Fe)}),new Pr(Fe,Ve)}function Oo(ie){return ie.findMarks(wn(ie.first,0),ie.clipPos(wn(ie.lastLine())),function(oe){return oe.parent})}function Ur(ie,oe){for(var he=0;he<oe.length;he++){var de=oe[he],pe=de.find(),Fe=ie.clipPos(pe.from),Ve=ie.clipPos(pe.to);if(or(Fe,Ve)){var ot=cr(ie,Fe,Ve,de.primary,de.primary.type);de.markers.push(ot),ot.parent=de}}}function Pi(ie){for(var oe=function(de){var pe=ie[de],Fe=[pe.primary.doc];po(pe.primary.doc,function(et){return Fe.push(et)});for(var Ve=0;Ve<pe.markers.length;Ve++){var ot=pe.markers[Ve];Ne(Fe,ot.doc)==-1&&(ot.parent=null,pe.markers.splice(Ve--,1))}},he=0;he<ie.length;he++)oe(he)}var qi=0,Hi=function(ie,oe,he,de,pe){if(!(this instanceof Hi))return new Hi(ie,oe,he,de,pe);he==null&&(he=0),ei.call(this,[new Yn([new Ia("",null)])]),this.first=he,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=he;var Fe=wn(he,0);this.sel=Zi(Fe),this.history=new zo(null),this.id=++qi,this.modeOption=oe,this.lineSep=de,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),ao(this,{from:Fe,to:Fe,text:ie}),Mr(this,Zi(Fe),Xt)};Hi.prototype=Le(ei.prototype,{constructor:Hi,iter:function(ie,oe,he){he?this.iterN(ie-this.first,oe-ie,he):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,oe){for(var he=0,de=0;de<oe.length;++de)he+=oe[de].height;this.insertInner(ie-this.first,oe,he)},remove:function(ie,oe){this.removeInner(ie-this.first,oe)},getValue:function(ie){var oe=Fr(this,this.first,this.first+this.size);return ie===!1?oe:oe.join(ie||this.lineSeparator())},setValue:qo(function(ie){var oe=wn(this.first,0),he=this.first+this.size-1;an(this,{from:oe,to:wn(he,Hn(this,he).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Zu(this.cm,0,0),Mr(this,Zi(oe),Xt)}),replaceRange:function(ie,oe,he,de){oe=io(this,oe),he=he?io(this,he):oe,Ci(this,ie,oe,he,de)},getRange:function(ie,oe,he){var de=En(this,io(this,ie),io(this,oe));return he===!1?de:de.join(he||this.lineSeparator())},getLine:function(ie){var oe=this.getLineHandle(ie);return oe&&oe.text},getLineHandle:function(ie){if(Hr(this,ie))return Hn(this,ie)},getLineNumber:function(ie){return tn(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Hn(this,ie)),wi(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return io(this,ie)},getCursor:function(ie){var oe=this.sel.primary(),he;return ie==null||ie=="head"?he=oe.head:ie=="anchor"?he=oe.anchor:ie=="end"||ie=="to"||ie===!1?he=oe.to():he=oe.from(),he},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:qo(function(ie,oe,he){Zr(this,io(this,typeof ie=="number"?wn(ie,oe||0):ie),null,he)}),setSelection:qo(function(ie,oe,he){Zr(this,io(this,ie),io(this,oe||ie),he)}),extendSelection:qo(function(ie,oe,he){ta(this,io(this,ie),oe&&io(this,oe),he)}),extendSelections:qo(function(ie,oe){Ka(this,Ho(this,ie),oe)}),extendSelectionsBy:qo(function(ie,oe){var he=hi(this.sel.ranges,ie);Ka(this,Ho(this,he),oe)}),setSelections:qo(function(ie,oe,he){if(ie.length){for(var de=[],pe=0;pe<ie.length;pe++)de[pe]=new li(io(this,ie[pe].anchor),io(this,ie[pe].head));oe==null&&(oe=Math.min(ie.length-1,this.sel.primIndex)),Mr(this,Fi(this.cm,de,oe),he)}}),addSelection:qo(function(ie,oe,he){var de=this.sel.ranges.slice(0);de.push(new li(io(this,ie),io(this,oe||ie))),Mr(this,Fi(this.cm,de,de.length-1),he)}),getSelection:function(ie){for(var oe=this.sel.ranges,he,de=0;de<oe.length;de++){var pe=En(this,oe[de].from(),oe[de].to());he=he?he.concat(pe):pe}return ie===!1?he:he.join(ie||this.lineSeparator())},getSelections:function(ie){for(var oe=[],he=this.sel.ranges,de=0;de<he.length;de++){var pe=En(this,he[de].from(),he[de].to());ie!==!1&&(pe=pe.join(ie||this.lineSeparator())),oe[de]=pe}return oe},replaceSelection:function(ie,oe,he){for(var de=[],pe=0;pe<this.sel.ranges.length;pe++)de[pe]=ie;this.replaceSelections(de,oe,he||"+input")},replaceSelections:qo(function(ie,oe,he){for(var de=[],pe=this.sel,Fe=0;Fe<pe.ranges.length;Fe++){var Ve=pe.ranges[Fe];de[Fe]={from:Ve.from(),to:Ve.to(),text:this.splitLines(ie[Fe]),origin:he}}for(var ot=oe&&oe!="end"&&wo(this,de,oe),et=de.length-1;et>=0;et--)an(this,de[et]);ot?fo(this,ot):this.cm&&Dc(this.cm)}),undo:qo(function(){Un(this,"undo")}),redo:qo(function(){Un(this,"redo")}),undoSelection:qo(function(){Un(this,"undo",!0)}),redoSelection:qo(function(){Un(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,oe=0,he=0,de=0;de<ie.done.length;de++)ie.done[de].ranges||++oe;for(var pe=0;pe<ie.undone.length;pe++)ie.undone[pe].ranges||++he;return{undo:oe,redo:he}},clearHistory:function(){var ie=this;this.history=new zo(this.history.maxGeneration),po(this,function(oe){return oe.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:_o(this.history.done),undone:_o(this.history.undone)}},setHistory:function(ie){var oe=this.history=new zo(this.history.maxGeneration);oe.done=_o(ie.done.slice(0),null,!0),oe.undone=_o(ie.undone.slice(0),null,!0)},setGutterMarker:qo(function(ie,oe,he){return bn(this,ie,"gutter",function(de){var pe=de.gutterMarkers||(de.gutterMarkers={});return pe[oe]=he,!he&&Be(pe)&&(de.gutterMarkers=null),!0})}),clearGutter:qo(function(ie){var oe=this;this.iter(function(he){he.gutterMarkers&&he.gutterMarkers[ie]&&bn(oe,he,"gutter",function(){return he.gutterMarkers[ie]=null,Be(he.gutterMarkers)&&(he.gutterMarkers=null),!0})})}),lineInfo:function(ie){var oe;if(typeof ie=="number"){if(!Hr(this,ie)||(oe=ie,ie=Hn(this,ie),!ie))return null}else if(oe=tn(ie),oe==null)return null;return{line:oe,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:qo(function(ie,oe,he){return bn(this,ie,oe=="gutter"?"gutter":"class",function(de){var pe=oe=="text"?"textClass":oe=="background"?"bgClass":oe=="gutter"?"gutterClass":"wrapClass";if(!de[pe])de[pe]=he;else{if(Ke(he).test(de[pe]))return!1;de[pe]+=" "+he}return!0})}),removeLineClass:qo(function(ie,oe,he){return bn(this,ie,oe=="gutter"?"gutter":"class",function(de){var pe=oe=="text"?"textClass":oe=="background"?"bgClass":oe=="gutter"?"gutterClass":"wrapClass",Fe=de[pe];if(Fe)if(he==null)de[pe]=null;else{var Ve=Fe.match(Ke(he));if(!Ve)return!1;var ot=Ve.index+Ve[0].length;de[pe]=Fe.slice(0,Ve.index)+(!Ve.index||ot==Fe.length?"":" ")+Fe.slice(ot)||null}else return!1;return!0})}),addLineWidget:qo(function(ie,oe,he){return $i(this,ie,oe,he)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,oe,he){return cr(this,io(this,ie),io(this,oe),he,he&&he.type||"range")},setBookmark:function(ie,oe){var he={replacedWith:oe&&(oe.nodeType==null?oe.widget:oe),insertLeft:oe&&oe.insertLeft,clearWhenEmpty:!1,shared:oe&&oe.shared,handleMouseEvents:oe&&oe.handleMouseEvents};return ie=io(this,ie),cr(this,ie,ie,he,"bookmark")},findMarksAt:function(ie){ie=io(this,ie);var oe=[],he=Hn(this,ie.line).markedSpans;if(he)for(var de=0;de<he.length;++de){var pe=he[de];(pe.from==null||pe.from<=ie.ch)&&(pe.to==null||pe.to>=ie.ch)&&oe.push(pe.marker.parent||pe.marker)}return oe},findMarks:function(ie,oe,he){ie=io(this,ie),oe=io(this,oe);var de=[],pe=ie.line;return this.iter(ie.line,oe.line+1,function(Fe){var Ve=Fe.markedSpans;if(Ve)for(var ot=0;ot<Ve.length;ot++){var et=Ve[ot];!(et.to!=null&&pe==ie.line&&ie.ch>=et.to||et.from==null&&pe!=ie.line||et.from!=null&&pe==oe.line&&et.from>=oe.ch)&&(!he||he(et.marker))&&de.push(et.marker.parent||et.marker)}++pe}),de},getAllMarks:function(){var ie=[];return this.iter(function(oe){var he=oe.markedSpans;if(he)for(var de=0;de<he.length;++de)he[de].from!=null&&ie.push(he[de].marker)}),ie},posFromIndex:function(ie){var oe,he=this.first,de=this.lineSeparator().length;return this.iter(function(pe){var Fe=pe.text.length+de;if(Fe>ie)return oe=ie,!0;ie-=Fe,++he}),io(this,wn(he,oe))},indexFromPos:function(ie){ie=io(this,ie);var oe=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var he=this.lineSeparator().length;return this.iter(this.first,ie.line,function(de){oe+=de.text.length+he}),oe},copy:function(ie){var oe=new Hi(Fr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return oe.scrollTop=this.scrollTop,oe.scrollLeft=this.scrollLeft,oe.sel=this.sel,oe.extend=!1,ie&&(oe.history.undoDepth=this.history.undoDepth,oe.setHistory(this.getHistory())),oe},linkedDoc:function(ie){ie||(ie={});var oe=this.first,he=this.first+this.size;ie.from!=null&&ie.from>oe&&(oe=ie.from),ie.to!=null&&ie.to<he&&(he=ie.to);var de=new Hi(Fr(this,oe,he),ie.mode||this.modeOption,oe,this.lineSep,this.direction);return ie.sharedHist&&(de.history=this.history),(this.linked||(this.linked=[])).push({doc:de,sharedHist:ie.sharedHist}),de.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Ur(de,Oo(this)),de},unlinkDoc:function(ie){if(ie instanceof zs&&(ie=ie.doc),this.linked)for(var oe=0;oe<this.linked.length;++oe){var he=this.linked[oe];if(he.doc==ie){this.linked.splice(oe,1),ie.unlinkDoc(this),Pi(Oo(this));break}}if(ie.history==this.history){var de=[ie.id];po(ie,function(pe){return de.push(pe.id)},!0),ie.history=new zo(null),ie.history.done=_o(this.history.done,de),ie.history.undone=_o(this.history.undone,de)}},iterLinkedDocs:function(ie){po(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):ni(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:qo(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(oe){return oe.order=null}),this.cm&&mo(this.cm))})}),Hi.prototype.eachLine=Hi.prototype.iter;var Lr=0;function Eo(ie){var oe=this;if(xr(oe),!(lr(oe,ie)||Il(oe.display,ie))){ea(ie),Bt&&(Lr=+new Date);var he=mu(oe,ie,!0),de=ie.dataTransfer.files;if(!(!he||oe.isReadOnly()))if(de&&de.length&&window.FileReader&&window.File)for(var pe=de.length,Fe=Array(pe),Ve=0,ot=function(){++Ve==pe&&oa(oe,function(){he=io(oe.doc,he);var Dn={from:he,to:he,text:oe.doc.splitLines(Fe.filter(function(er){return er!=null}).join(oe.doc.lineSeparator())),origin:"paste"};an(oe.doc,Dn),fo(oe.doc,Zi(io(oe.doc,he),io(oe.doc,ur(Dn))))})()},et=function(Dn,er){if(oe.options.allowDropFileTypes&&Ne(oe.options.allowDropFileTypes,Dn.type)==-1){ot();return}var Cr=new FileReader;Cr.onerror=function(){return ot()},Cr.onload=function(){var $r=Cr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($r)){ot();return}Fe[er]=$r,ot()},Cr.readAsText(Dn)},Et=0;Et<de.length;Et++)et(de[Et],Et);else{if(oe.state.draggingText&&oe.doc.sel.contains(he)>-1){oe.state.draggingText(ie),setTimeout(function(){return oe.display.input.focus()},20);return}try{var rn=ie.dataTransfer.getData("Text");if(rn){var bt;if(oe.state.draggingText&&!oe.state.draggingText.copy&&(bt=oe.listSelections()),Gr(oe.doc,Zi(he,he)),bt)for(var Ln=0;Ln<bt.length;++Ln)Ci(oe.doc,"",bt[Ln].anchor,bt[Ln].head,"drag");oe.replaceSelection(rn,"around","paste"),oe.display.input.focus()}}catch(Dn){}}}}function vr(ie,oe){if(Bt&&(!ie.state.draggingText||+new Date-Lr<100)){ra(oe);return}if(!(lr(ie,oe)||Il(ie.display,oe))&&(oe.dataTransfer.setData("Text",ie.getSelection()),oe.dataTransfer.effectAllowed="copyMove",oe.dataTransfer.setDragImage&&!Vt)){var he=rt("img",null,null,"position: fixed; left: 0; top: 0;");he.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ht&&(he.width=he.height=1,ie.display.wrapper.appendChild(he),he._top=he.offsetTop),oe.dataTransfer.setDragImage(he,0,0),ht&&he.parentNode.removeChild(he)}}function qr(ie,oe){var he=mu(ie,oe);if(he){var de=document.createDocumentFragment();Bs(ie,he,de),ie.display.dragCursor||(ie.display.dragCursor=rt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),st(ie.display.dragCursor,de)}}function xr(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function fr(ie){if(document.getElementsByClassName){for(var oe=document.getElementsByClassName("CodeMirror"),he=[],de=0;de<oe.length;de++){var pe=oe[de].CodeMirror;pe&&he.push(pe)}he.length&&he[0].operation(function(){for(var Fe=0;Fe<he.length;Fe++)ie(he[Fe])})}}var _r=!1;function Kr(){_r||(Aa(),_r=!0)}function Aa(){var ie;Yi(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,fr(Ya)},100))}),Yi(window,"blur",function(){return fr(_c)})}function Ya(ie){var oe=ie.display;oe.cachedCharWidth=oe.cachedTextHeight=oe.cachedPaddingH=null,oe.scrollbarsClipped=!1,ie.setSize()}for(var bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},co=0;co<10;co++)bo[co+48]=bo[co+96]=String(co);for(var vo=65;vo<=90;vo++)bo[vo]=String.fromCharCode(vo);for(var Qo=1;Qo<=12;Qo++)bo[Qo+111]=bo[Qo+63235]="F"+Qo;var xa={};xa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},xa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},xa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},xa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},xa.default=ue?xa.macDefault:xa.pcDefault;function Oa(ie){var oe=ie.split(/-(?!$)/);ie=oe[oe.length-1];for(var he,de,pe,Fe,Ve=0;Ve<oe.length-1;Ve++){var ot=oe[Ve];if(/^(cmd|meta|m)$/i.test(ot))Fe=!0;else if(/^a(lt)?$/i.test(ot))he=!0;else if(/^(c|ctrl|control)$/i.test(ot))de=!0;else if(/^s(hift)?$/i.test(ot))pe=!0;else throw new Error("Unrecognized modifier name: "+ot)}return he&&(ie="Alt-"+ie),de&&(ie="Ctrl-"+ie),Fe&&(ie="Cmd-"+ie),pe&&(ie="Shift-"+ie),ie}function no(ie){var oe={};for(var he in ie)if(ie.hasOwnProperty(he)){var de=ie[he];if(/^(name|fallthrough|(de|at)tach)$/.test(he))continue;if(de=="..."){delete ie[he];continue}for(var pe=hi(he.split(" "),Oa),Fe=0;Fe<pe.length;Fe++){var Ve=void 0,ot=void 0;Fe==pe.length-1?(ot=pe.join(" "),Ve=de):(ot=pe.slice(0,Fe+1).join(" "),Ve="...");var et=oe[ot];if(!et)oe[ot]=Ve;else if(et!=Ve)throw new Error("Inconsistent bindings for "+ot)}delete ie[he]}for(var Et in oe)ie[Et]=oe[Et];return ie}function Rr(ie,oe,he,de){oe=Fa(oe);var pe=oe.call?oe.call(ie,de):oe[ie];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&he(pe))return"handled";if(oe.fallthrough){if(Object.prototype.toString.call(oe.fallthrough)!="[object Array]")return Rr(ie,oe.fallthrough,he,de);for(var Fe=0;Fe<oe.fallthrough.length;Fe++){var Ve=Rr(ie,oe.fallthrough[Fe],he,de);if(Ve)return Ve}}}function wa(ie){var oe=typeof ie=="string"?ie:bo[ie.keyCode];return oe=="Ctrl"||oe=="Alt"||oe=="Shift"||oe=="Mod"}function Pa(ie,oe,he){var de=ie;return oe.altKey&&de!="Alt"&&(ie="Alt-"+ie),(xe?oe.metaKey:oe.ctrlKey)&&de!="Ctrl"&&(ie="Ctrl-"+ie),(xe?oe.ctrlKey:oe.metaKey)&&de!="Mod"&&(ie="Cmd-"+ie),!he&&oe.shiftKey&&de!="Shift"&&(ie="Shift-"+ie),ie}function gs(ie,oe){if(ht&&ie.keyCode==34&&ie.char)return!1;var he=bo[ie.keyCode];return he==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(he=ie.code),Pa(he,ie,oe))}function Fa(ie){return typeof ie=="string"?xa[ie]:ie}function Ja(ie,oe){for(var he=ie.doc.sel.ranges,de=[],pe=0;pe<he.length;pe++){for(var Fe=oe(he[pe]);de.length&&or(Fe.from,qt(de).to)<=0;){var Ve=de.pop();if(or(Ve.from,Fe.from)<0){Fe.from=Ve.from;break}}de.push(Fe)}oo(ie,function(){for(var ot=de.length-1;ot>=0;ot--)Ci(ie.doc,"",de[ot].from,de[ot].to,"+delete");Dc(ie)})}function Es(ie,oe,he){var de=In(ie.text,oe+he,he);return de<0||de>ie.text.length?null:de}function Ma(ie,oe,he){var de=Es(ie,oe.ch,he);return de==null?null:new wn(oe.line,de,he<0?"after":"before")}function Qa(ie,oe,he,de,pe){if(ie){oe.doc.direction=="rtl"&&(pe=-pe);var Fe=_i(he,oe.doc.direction);if(Fe){var Ve=pe<0?qt(Fe):Fe[0],ot=pe<0==(Ve.level==1),et=ot?"after":"before",Et;if(Ve.level>0||oe.doc.direction=="rtl"){var rn=Hu(oe,he);Et=pe<0?he.text.length-1:0;var bt=Iu(oe,rn,Et).top;Et=Cn(function(Ln){return Iu(oe,rn,Ln).top==bt},pe<0==(Ve.level==1)?Ve.from:Ve.to-1,Et),et=="before"&&(Et=Es(he,Et,1))}else Et=pe<0?Ve.to:Ve.from;return new wn(de,Et,et)}}return new wn(de,pe<0?he.text.length:0,pe<0?"before":"after")}function Ks(ie,oe,he,de){var pe=_i(oe,ie.doc.direction);if(!pe)return Ma(oe,he,de);he.ch>=oe.text.length?(he.ch=oe.text.length,he.sticky="before"):he.ch<=0&&(he.ch=0,he.sticky="after");var Fe=mn(pe,he.ch,he.sticky),Ve=pe[Fe];if(ie.doc.direction=="ltr"&&Ve.level%2==0&&(de>0?Ve.to>he.ch:Ve.from<he.ch))return Ma(oe,he,de);var ot=function(jo,La){return Es(oe,jo instanceof wn?jo.ch:jo,La)},et,Et=function(jo){return ie.options.lineWrapping?(et=et||Hu(ie,oe),gu(ie,oe,et,jo)):{begin:0,end:oe.text.length}},rn=Et(he.sticky=="before"?ot(he,-1):he.ch);if(ie.doc.direction=="rtl"||Ve.level==1){var bt=Ve.level==1==de<0,Ln=ot(he,bt?1:-1);if(Ln!=null&&(bt?Ln<=Ve.to&&Ln<=rn.end:Ln>=Ve.from&&Ln>=rn.begin)){var Dn=bt?"before":"after";return new wn(he.line,Ln,Dn)}}var er=function(jo,La,na){for(var za=function(Xl,Xu){return Xu?new wn(he.line,ot(Xl,1),"before"):new wn(he.line,Xl,"after")};jo>=0&&jo<pe.length;jo+=La){var ps=pe[jo],$o=La>0==(ps.level!=1),Gs=$o?na.begin:ot(na.end,-1);if(ps.from<=Gs&&Gs<ps.to||(Gs=$o?ps.from:ot(ps.to,-1),na.begin<=Gs&&Gs<na.end))return za(Gs,$o)}},Cr=er(Fe+de,de,rn);if(Cr)return Cr;var $r=de>0?rn.end:ot(rn.begin,-1);return $r!=null&&!(de>0&&$r==oe.text.length)&&(Cr=er(de>0?0:pe.length-1,de,Et($r)),Cr)?Cr:null}var Xs={selectAll:Ht,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Xt)},killLine:function(ie){return Ja(ie,function(oe){if(oe.empty()){var he=Hn(ie.doc,oe.head.line).text.length;return oe.head.ch==he&&oe.head.line<ie.lastLine()?{from:oe.head,to:wn(oe.head.line+1,0)}:{from:oe.head,to:wn(oe.head.line,he)}}else return{from:oe.from(),to:oe.to()}})},deleteLine:function(ie){return Ja(ie,function(oe){return{from:wn(oe.from().line,0),to:io(ie.doc,wn(oe.to().line+1,0))}})},delLineLeft:function(ie){return Ja(ie,function(oe){return{from:wn(oe.from().line,0),to:oe.from()}})},delWrappedLineLeft:function(ie){return Ja(ie,function(oe){var he=ie.charCoords(oe.head,"div").top+5,de=ie.coordsChar({left:0,top:he},"div");return{from:de,to:oe.from()}})},delWrappedLineRight:function(ie){return Ja(ie,function(oe){var he=ie.charCoords(oe.head,"div").top+5,de=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:he},"div");return{from:oe.from(),to:de}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(wn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(wn(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(oe){return vl(ie,oe.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(oe){return Yl(ie,oe.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(oe){return hs(ie,oe.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(oe){var he=ie.cursorCoords(oe.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:he},"div")},xn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(oe){var he=ie.cursorCoords(oe.head,"div").top+5;return ie.coordsChar({left:0,top:he},"div")},xn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(oe){var he=ie.cursorCoords(oe.head,"div").top+5,de=ie.coordsChar({left:0,top:he},"div");return de.ch<ie.getLine(de.line).search(/\S/)?Yl(ie,oe.head):de},xn)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var oe=[],he=ie.listSelections(),de=ie.options.tabSize,pe=0;pe<he.length;pe++){var Fe=he[pe].from(),Ve=lt(ie.getLine(Fe.line),Fe.ch,de);oe.push(Ct(de-Ve%de))}ie.replaceSelections(oe)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return oo(ie,function(){for(var oe=ie.listSelections(),he=[],de=0;de<oe.length;de++)if(oe[de].empty()){var pe=oe[de].head,Fe=Hn(ie.doc,pe.line).text;if(Fe){if(pe.ch==Fe.length&&(pe=new wn(pe.line,pe.ch-1)),pe.ch>0)pe=new wn(pe.line,pe.ch+1),ie.replaceRange(Fe.charAt(pe.ch-1)+Fe.charAt(pe.ch-2),wn(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var Ve=Hn(ie.doc,pe.line-1).text;Ve&&(pe=new wn(pe.line,1),ie.replaceRange(Fe.charAt(0)+ie.doc.lineSeparator()+Ve.charAt(Ve.length-1),wn(pe.line-1,Ve.length-1),pe,"+transpose"))}}he.push(new li(pe,pe))}ie.setSelections(he)})},newlineAndIndent:function(ie){return oo(ie,function(){for(var oe=ie.listSelections(),he=oe.length-1;he>=0;he--)ie.replaceRange(ie.doc.lineSeparator(),oe[he].anchor,oe[he].head,"+input");oe=ie.listSelections();for(var de=0;de<oe.length;de++)ie.indentLine(oe[de].from().line,null,!0);Dc(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function vl(ie,oe){var he=Hn(ie.doc,oe),de=wi(he);return de!=he&&(oe=tn(de)),Qa(!0,ie,de,oe,1)}function hs(ie,oe){var he=Hn(ie.doc,oe),de=nr(he);return de!=he&&(oe=tn(de)),Qa(!0,ie,he,oe,-1)}function Yl(ie,oe){var he=vl(ie,oe.line),de=Hn(ie.doc,he.line),pe=_i(de,ie.doc.direction);if(!pe||pe[0].level==0){var Fe=Math.max(he.ch,de.text.search(/\S/)),Ve=oe.line==he.line&&oe.ch<=Fe&&oe.ch;return wn(he.line,Ve?0:Fe,he.sticky)}return he}function Js(ie,oe,he){if(typeof oe=="string"&&(oe=Xs[oe],!oe))return!1;ie.display.input.ensurePolled();var de=ie.display.shift,pe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),he&&(ie.display.shift=!1),pe=oe(ie)!=Xn}finally{ie.display.shift=de,ie.state.suppressEdits=!1}return pe}function ws(ie,oe,he){for(var de=0;de<ie.state.keyMaps.length;de++){var pe=Rr(oe,ie.state.keyMaps[de],he,ie);if(pe)return pe}return ie.options.extraKeys&&Rr(oe,ie.options.extraKeys,he,ie)||Rr(oe,ie.options.keyMap,he,ie)}var bs=new Ge;function Za(ie,oe,he,de){var pe=ie.state.keySeq;if(pe){if(wa(oe))return"handled";if(/\'$/.test(oe)?ie.state.keySeq=null:bs.set(50,function(){ie.state.keySeq==pe&&(ie.state.keySeq=null,ie.display.input.reset())}),Go(ie,pe+" "+oe,he,de))return!0}return Go(ie,oe,he,de)}function Go(ie,oe,he,de){var pe=ws(ie,oe,de);return pe=="multi"&&(ie.state.keySeq=oe),pe=="handled"&&Mo(ie,"keyHandled",ie,oe,he),(pe=="handled"||pe=="multi")&&(ea(he),Ms(ie)),!!pe}function yl(ie,oe){var he=gs(oe,!0);return he?oe.shiftKey&&!ie.state.keySeq?Za(ie,"Shift-"+he,oe,function(de){return Js(ie,de,!0)})||Za(ie,he,oe,function(de){if(typeof de=="string"?/^go[A-Z]/.test(de):de.motion)return Js(ie,de)}):Za(ie,he,oe,function(de){return Js(ie,de)}):!1}function pa(ie,oe,he){return Za(ie,"'"+he+"'",oe,function(de){return Js(ie,de,!0)})}var Lo=null;function Uo(ie){var oe=this;if(!(ie.target&&ie.target!=oe.display.input.getField())&&(oe.curOp.focus=Dt(),!lr(oe,ie))){Bt&&Re<11&&ie.keyCode==27&&(ie.returnValue=!1);var he=ie.keyCode;oe.display.shift=he==16||ie.shiftKey;var de=yl(oe,ie);ht&&(Lo=de?he:null,!de&&he==88&&!pn&&(ue?ie.metaKey:ie.ctrlKey)&&oe.replaceSelection("",null,"cut")),ve&&!ue&&!de&&he==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),he==18&&!/\bCodeMirror-crosshair\b/.test(oe.display.lineDiv.className)&&jr(oe)}}function jr(ie){var oe=ie.display.lineDiv;Nt(oe,"CodeMirror-crosshair");function he(de){(de.keyCode==18||!de.altKey)&&(qe(oe,"CodeMirror-crosshair"),Xr(document,"keyup",he),Xr(document,"mouseover",he))}Yi(document,"keyup",he),Yi(document,"mouseover",he)}function Wo(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),lr(this,ie)}function os(ie){var oe=this;if(!(ie.target&&ie.target!=oe.display.input.getField())&&!(Il(oe.display,ie)||lr(oe,ie)||ie.ctrlKey&&!ie.altKey||ue&&ie.metaKey)){var he=ie.keyCode,de=ie.charCode;if(ht&&he==Lo){Lo=null,ea(ie);return}if(!(ht&&(!ie.which||ie.which<10)&&yl(oe,ie))){var pe=String.fromCharCode(de==null?he:de);pe!="\b"&&(pa(oe,ie,pe)||oe.display.input.onKeyPress(ie))}}}var vs=400,Ps=function(ie,oe,he){this.time=ie,this.pos=oe,this.button=he};Ps.prototype.compare=function(ie,oe,he){return this.time+vs>ie&&or(oe,this.pos)==0&&he==this.button};var bl,ul;function Nu(ie,oe){var he=+new Date;return ul&&ul.compare(he,ie,oe)?(bl=ul=null,"triple"):bl&&bl.compare(he,ie,oe)?(ul=new Ps(he,ie,oe),bl=null,"double"):(bl=new Ps(he,ie,oe),ul=null,"single")}function Nl(ie){var oe=this,he=oe.display;if(!(lr(oe,ie)||he.activeTouch&&he.input.supportsTouch())){if(he.input.ensurePolled(),he.shift=ie.shiftKey,Il(he,ie)){Je||(he.scroller.draggable=!1,setTimeout(function(){return he.scroller.draggable=!0},100));return}if(!Jh(oe,ie)){var de=mu(oe,ie),pe=Wa(ie),Fe=de?Nu(de,pe):"single";window.focus(),pe==1&&oe.state.selectingText&&oe.state.selectingText(ie),!(de&&bu(oe,pe,de,Fe,ie))&&(pe==1?de?rl(oe,de,Fe,ie):sa(ie)==he.scroller&&ea(ie):pe==2?(de&&ta(oe.doc,de),setTimeout(function(){return he.input.focus()},20)):pe==3&&(Pe?oe.display.input.onContextMenu(ie):Pl(oe)))}}}function bu(ie,oe,he,de,pe){var Fe="Click";return de=="double"?Fe="Double"+Fe:de=="triple"&&(Fe="Triple"+Fe),Fe=(oe==1?"Left":oe==2?"Middle":"Right")+Fe,Za(ie,Pa(Fe,pe),pe,function(Ve){if(typeof Ve=="string"&&(Ve=Xs[Ve]),!Ve)return!1;var ot=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ot=Ve(ie,he)!=Xn}finally{ie.state.suppressEdits=!1}return ot})}function is(ie,oe,he){var de=ie.getOption("configureMouse"),pe=de?de(ie,oe,he):{};if(pe.unit==null){var Fe=se?he.shiftKey&&he.metaKey:he.altKey;pe.unit=Fe?"rectangle":oe=="single"?"char":oe=="double"?"word":"line"}return(pe.extend==null||ie.doc.extend)&&(pe.extend=ie.doc.extend||he.shiftKey),pe.addNew==null&&(pe.addNew=ue?he.metaKey:he.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(ue?he.altKey:he.ctrlKey)),pe}function rl(ie,oe,he,de){Bt?setTimeout(Qt(Zs,ie),0):ie.curOp.focus=Dt();var pe=is(ie,he,de),Fe=ie.doc.sel,Ve;ie.options.dragDrop&&ma&&!ie.isReadOnly()&&he=="single"&&(Ve=Fe.contains(oe))>-1&&(or((Ve=Fe.ranges[Ve]).from(),oe)<0||oe.xRel>0)&&(or(Ve.to(),oe)>0||oe.xRel<0)?Zl(ie,de,oe,pe):uh(ie,de,oe,pe)}function Zl(ie,oe,he,de){var pe=ie.display,Fe=!1,Ve=oa(ie,function(Et){Je&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,Xr(pe.wrapper.ownerDocument,"mouseup",Ve),Xr(pe.wrapper.ownerDocument,"mousemove",ot),Xr(pe.scroller,"dragstart",et),Xr(pe.scroller,"drop",Ve),Fe||(ea(Et),de.addNew||ta(ie.doc,he,null,null,de.extend),Je&&!Vt||Bt&&Re==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),ot=function(Et){Fe=Fe||Math.abs(oe.clientX-Et.clientX)+Math.abs(oe.clientY-Et.clientY)>=10},et=function(){return Fe=!0};Je&&(pe.scroller.draggable=!0),ie.state.draggingText=Ve,Ve.copy=!de.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),Yi(pe.wrapper.ownerDocument,"mouseup",Ve),Yi(pe.wrapper.ownerDocument,"mousemove",ot),Yi(pe.scroller,"dragstart",et),Yi(pe.scroller,"drop",Ve),Pl(ie),setTimeout(function(){return pe.input.focus()},20)}function Du(ie,oe,he){if(he=="char")return new li(oe,oe);if(he=="word")return ie.findWordAt(oe);if(he=="line")return new li(wn(oe.line,0),io(ie.doc,wn(oe.line+1,0)));var de=he(ie,oe);return new li(de.from,de.to)}function uh(ie,oe,he,de){var pe=ie.display,Fe=ie.doc;ea(oe);var Ve,ot,et=Fe.sel,Et=et.ranges;if(de.addNew&&!de.extend?(ot=Fe.sel.contains(he),ot>-1?Ve=Et[ot]:Ve=new li(he,he)):(Ve=Fe.sel.primary(),ot=Fe.sel.primIndex),de.unit=="rectangle")de.addNew||(Ve=new li(he,he)),he=mu(ie,oe,!0,!0),ot=-1;else{var rn=Du(ie,he,de.unit);de.extend?Ve=yo(Ve,rn.anchor,rn.head,de.extend):Ve=rn}de.addNew?ot==-1?(ot=Et.length,Mr(Fe,Fi(ie,Et.concat([Ve]),ot),{scroll:!1,origin:"*mouse"})):Et.length>1&&Et[ot].empty()&&de.unit=="char"&&!de.extend?(Mr(Fe,Fi(ie,Et.slice(0,ot).concat(Et.slice(ot+1)),0),{scroll:!1,origin:"*mouse"}),et=Fe.sel):Vo(Fe,ot,Ve,ai):(ot=0,Mr(Fe,new xi([Ve],0),ai),et=Fe.sel);var bt=he;function Ln(na){if(or(bt,na)!=0)if(bt=na,de.unit=="rectangle"){for(var za=[],ps=ie.options.tabSize,$o=lt(Hn(Fe,he.line).text,he.ch,ps),Gs=lt(Hn(Fe,na.line).text,na.ch,ps),Xl=Math.min($o,Gs),Xu=Math.max($o,Gs),uu=Math.min(he.line,na.line),Kc=Math.min(ie.lastLine(),Math.max(he.line,na.line));uu<=Kc;uu++){var bc=Hn(Fe,uu).text,Ku=gi(bc,Xl,ps);Xl==Xu?za.push(new li(wn(uu,Ku),wn(uu,Ku))):bc.length>Ku&&za.push(new li(wn(uu,Ku),wn(uu,gi(bc,Xu,ps))))}za.length||za.push(new li(he,he)),Mr(Fe,Fi(ie,et.ranges.slice(0,ot).concat(za),ot),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(na)}else{var Qc=Ve,vc=Du(ie,na,de.unit),Gu=Qc.anchor,Sl;or(vc.anchor,Gu)>0?(Sl=vc.head,Gu=hr(Qc.from(),vc.anchor)):(Sl=vc.anchor,Gu=aa(Qc.to(),vc.head));var Su=et.ranges.slice(0);Su[ot]=Zh(ie,new li(io(Fe,Gu),Sl)),Mr(Fe,Fi(ie,Su,ot),ai)}}var Dn=pe.wrapper.getBoundingClientRect(),er=0;function Cr(na){var za=++er,ps=mu(ie,na,!0,de.unit=="rectangle");if(ps)if(or(ps,bt)!=0){ie.curOp.focus=Dt(),Ln(ps);var $o=xs(pe,Fe);(ps.line>=$o.to||ps.line<$o.from)&&setTimeout(oa(ie,function(){er==za&&Cr(na)}),150)}else{var Gs=na.clientY<Dn.top?-20:na.clientY>Dn.bottom?20:0;Gs&&setTimeout(oa(ie,function(){er==za&&(pe.scroller.scrollTop+=Gs,Cr(na))}),50)}}function $r(na){ie.state.selectingText=!1,er=1/0,na&&(ea(na),pe.input.focus()),Xr(pe.wrapper.ownerDocument,"mousemove",jo),Xr(pe.wrapper.ownerDocument,"mouseup",La),Fe.history.lastSelOrigin=null}var jo=oa(ie,function(na){na.buttons===0||!Wa(na)?$r(na):Cr(na)}),La=oa(ie,$r);ie.state.selectingText=La,Yi(pe.wrapper.ownerDocument,"mousemove",jo),Yi(pe.wrapper.ownerDocument,"mouseup",La)}function Zh(ie,oe){var he=oe.anchor,de=oe.head,pe=Hn(ie.doc,he.line);if(or(he,de)==0&&he.sticky==de.sticky)return oe;var Fe=_i(pe);if(!Fe)return oe;var Ve=mn(Fe,he.ch,he.sticky),ot=Fe[Ve];if(ot.from!=he.ch&&ot.to!=he.ch)return oe;var et=Ve+(ot.from==he.ch==(ot.level!=1)?0:1);if(et==0||et==Fe.length)return oe;var Et;if(de.line!=he.line)Et=(de.line-he.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var rn=mn(Fe,de.ch,de.sticky),bt=rn-Ve||(de.ch-he.ch)*(ot.level==1?-1:1);rn==et-1||rn==et?Et=bt<0:Et=bt>0}var Ln=Fe[et+(Et?-1:0)],Dn=Et==(Ln.level==1),er=Dn?Ln.from:Ln.to,Cr=Dn?"after":"before";return he.ch==er&&he.sticky==Cr?oe:new li(new wn(he.line,er,Cr),de)}function Xh(ie,oe,he,de){var pe,Fe;if(oe.touches)pe=oe.touches[0].clientX,Fe=oe.touches[0].clientY;else try{pe=oe.clientX,Fe=oe.clientY}catch(Ln){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;de&&ea(oe);var Ve=ie.display,ot=Ve.lineDiv.getBoundingClientRect();if(Fe>ot.bottom||!kn(ie,he))return Wr(oe);Fe-=ot.top-Ve.viewOffset;for(var et=0;et<ie.display.gutterSpecs.length;++et){var Et=Ve.gutters.childNodes[et];if(Et&&Et.getBoundingClientRect().right>=pe){var rn=Vi(ie.doc,Fe),bt=ie.display.gutterSpecs[et];return Ki(ie,he,ie,rn,bt.className,oe),Wr(oe)}}}function Jh(ie,oe){return Xh(ie,oe,"gutterClick",!0)}function Ld(ie,oe){Il(ie.display,oe)||_f(ie,oe)||lr(ie,oe,"contextmenu")||Pe||ie.display.input.onContextMenu(oe)}function _f(ie,oe){return kn(ie,"gutterContextMenu")?Xh(ie,oe,"gutterContextMenu",!1):!1}function Gd(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ec(ie)}var wh={toString:function(){return"CodeMirror.Init"}},Ud={},kd={};function yf(ie){var oe=ie.optionHandlers;function he(de,pe,Fe,Ve){ie.defaults[de]=pe,Fe&&(oe[de]=Ve?function(ot,et,Et){Et!=wh&&Fe(ot,et,Et)}:Fe)}ie.defineOption=he,ie.Init=wh,he("value","",function(de,pe){return de.setValue(pe)},!0),he("mode",null,function(de,pe){de.doc.modeOption=pe,Mi(de)},!0),he("indentUnit",2,Mi,!0),he("indentWithTabs",!1),he("smartIndent",!0),he("tabSize",4,function(de){Jr(de),Ec(de),ll(de)},!0),he("lineSeparator",null,function(de,pe){if(de.doc.lineSep=pe,!!pe){var Fe=[],Ve=de.doc.first;de.doc.iter(function(et){for(var Et=0;;){var rn=et.text.indexOf(pe,Et);if(rn==-1)break;Et=rn+pe.length,Fe.push(wn(Ve,rn))}Ve++});for(var ot=Fe.length-1;ot>=0;ot--)Ci(de.doc,pe,Fe[ot],wn(Fe[ot].line,Fe[ot].ch+pe.length))}}),he("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(de,pe,Fe){de.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Fe!=wh&&de.refresh()}),he("specialCharPlaceholder",nl,function(de){return de.refresh()},!0),he("electricChars",!0),he("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),he("spellcheck",!1,function(de,pe){return de.getInputField().spellcheck=pe},!0),he("autocorrect",!1,function(de,pe){return de.getInputField().autocorrect=pe},!0),he("autocapitalize",!1,function(de,pe){return de.getInputField().autocapitalize=pe},!0),he("rtlMoveVisually",!ge),he("wholeLineUpdateBefore",!0),he("theme","default",function(de){Gd(de),on(de)},!0),he("keyMap","default",function(de,pe,Fe){var Ve=Fa(pe),ot=Fe!=wh&&Fa(Fe);ot&&ot.detach&&ot.detach(de,Ve),Ve.attach&&Ve.attach(de,ot||null)}),he("extraKeys",null),he("configureMouse",null),he("lineWrapping",!1,Yd,!0),he("gutters",[],function(de,pe){de.display.gutterSpecs=kt(pe,de.options.lineNumbers),on(de)},!0),he("fixedGutter",!0,function(de,pe){de.display.gutters.style.left=pe?mc(de.display)+"px":"0",de.refresh()},!0),he("coverGutterNextToScrollbar",!1,function(de){return ui(de)},!0),he("scrollbarStyle","native",function(de){gr(de),ui(de),de.display.scrollbars.setScrollTop(de.doc.scrollTop),de.display.scrollbars.setScrollLeft(de.doc.scrollLeft)},!0),he("lineNumbers",!1,function(de,pe){de.display.gutterSpecs=kt(de.options.gutters,pe),on(de)},!0),he("firstLineNumber",1,on,!0),he("lineNumberFormatter",function(de){return de},on,!0),he("showCursorWhenSelecting",!1,Gl,!0),he("resetSelectionOnContextMenu",!0),he("lineWiseCopyCut",!0),he("pasteLinesPerSelection",!0),he("selectionsMayTouch",!1),he("readOnly",!1,function(de,pe){pe=="nocursor"&&(_c(de),de.display.input.blur()),de.display.input.readOnlyChanged(pe)}),he("screenReaderLabel",null,function(de,pe){pe=pe===""?null:pe,de.display.input.screenReaderLabelChanged(pe)}),he("disableInput",!1,function(de,pe){pe||de.display.input.reset()},!0),he("dragDrop",!0,ch),he("allowDropFileTypes",null),he("cursorBlinkRate",530),he("cursorScrollMargin",0),he("cursorHeight",1,Gl,!0),he("singleCursorHeightPerLine",!0,Gl,!0),he("workTime",100),he("workDelay",100),he("flattenSpans",!0,Jr,!0),he("addModeClass",!1,Jr,!0),he("pollInterval",100),he("undoDepth",200,function(de,pe){return de.doc.history.undoDepth=pe}),he("historyEventDelay",1250),he("viewportMargin",10,function(de){return de.refresh()},!0),he("maxHighlightLength",1e4,Jr,!0),he("moveInputWithCursor",!0,function(de,pe){pe||de.display.input.resetPosition()}),he("tabindex",null,function(de,pe){return de.display.input.getField().tabIndex=pe||""}),he("autofocus",null),he("direction","ltr",function(de,pe){return de.doc.setDirection(pe)},!0),he("phrases",null)}function ch(ie,oe,he){var de=he&&he!=wh;if(!oe!=!de){var pe=ie.display.dragFunctions,Fe=oe?Yi:Xr;Fe(ie.display.scroller,"dragstart",pe.start),Fe(ie.display.scroller,"dragenter",pe.enter),Fe(ie.display.scroller,"dragover",pe.over),Fe(ie.display.scroller,"dragleave",pe.leave),Fe(ie.display.scroller,"drop",pe.drop)}}function Yd(ie){ie.options.lineWrapping?(Nt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(qe(ie.display.wrapper,"CodeMirror-wrap"),fa(ie)),Ca(ie),ll(ie),Ec(ie),setTimeout(function(){return ui(ie)},100)}function zs(ie,oe){var he=this;if(!(this instanceof zs))return new zs(ie,oe);this.options=oe=oe?vn(oe):{},vn(Ud,oe,!1);var de=oe.value;typeof de=="string"?de=new Hi(de,oe.mode,null,oe.lineSeparator,oe.direction):oe.mode&&(de.modeOption=oe.mode),this.doc=de;var pe=new zs.inputStyles[oe.inputStyle](this),Fe=this.display=new zn(ie,de,pe,oe);Fe.wrapper.CodeMirror=this,Gd(this),oe.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ge,keySeq:null,specialChars:null},oe.autofocus&&!te&&Fe.input.focus(),Bt&&Re<11&&setTimeout(function(){return he.display.input.reset(!0)},20),ld(this),Kr(),ir(this),this.curOp.forceUpdate=!0,Ar(this,de),oe.autofocus&&!te||this.hasFocus()?setTimeout(function(){he.hasFocus()&&!he.state.focused&&js(he)},20):_c(this);for(var Ve in kd)kd.hasOwnProperty(Ve)&&kd[Ve](this,oe[Ve],wh);Ye(this),oe.finishInit&&oe.finishInit(this);for(var ot=0;ot<Bh.length;++ot)Bh[ot](this);Ji(this),Je&&oe.lineWrapping&&getComputedStyle(Fe.lineDiv).textRendering=="optimizelegibility"&&(Fe.lineDiv.style.textRendering="auto")}zs.defaults=Ud,zs.optionHandlers=kd;function ld(ie){var oe=ie.display;Yi(oe.scroller,"mousedown",oa(ie,Nl)),Bt&&Re<11?Yi(oe.scroller,"dblclick",oa(ie,function(et){if(!lr(ie,et)){var Et=mu(ie,et);if(!(!Et||Jh(ie,et)||Il(ie.display,et))){ea(et);var rn=ie.findWordAt(Et);ta(ie.doc,rn.anchor,rn.head)}}})):Yi(oe.scroller,"dblclick",function(et){return lr(ie,et)||ea(et)}),Yi(oe.scroller,"contextmenu",function(et){return Ld(ie,et)}),Yi(oe.input.getField(),"contextmenu",function(et){oe.scroller.contains(et.target)||Ld(ie,et)});var he,de={end:0};function pe(){oe.activeTouch&&(he=setTimeout(function(){return oe.activeTouch=null},1e3),de=oe.activeTouch,de.end=+new Date)}function Fe(et){if(et.touches.length!=1)return!1;var Et=et.touches[0];return Et.radiusX<=1&&Et.radiusY<=1}function Ve(et,Et){if(Et.left==null)return!0;var rn=Et.left-et.left,bt=Et.top-et.top;return rn*rn+bt*bt>20*20}Yi(oe.scroller,"touchstart",function(et){if(!lr(ie,et)&&!Fe(et)&&!Jh(ie,et)){oe.input.ensurePolled(),clearTimeout(he);var Et=+new Date;oe.activeTouch={start:Et,moved:!1,prev:Et-de.end<=300?de:null},et.touches.length==1&&(oe.activeTouch.left=et.touches[0].pageX,oe.activeTouch.top=et.touches[0].pageY)}}),Yi(oe.scroller,"touchmove",function(){oe.activeTouch&&(oe.activeTouch.moved=!0)}),Yi(oe.scroller,"touchend",function(et){var Et=oe.activeTouch;if(Et&&!Il(oe,et)&&Et.left!=null&&!Et.moved&&new Date-Et.start<300){var rn=ie.coordsChar(oe.activeTouch,"page"),bt;!Et.prev||Ve(Et,Et.prev)?bt=new li(rn,rn):!Et.prev.prev||Ve(Et,Et.prev.prev)?bt=ie.findWordAt(rn):bt=new li(wn(rn.line,0),io(ie.doc,wn(rn.line+1,0))),ie.setSelection(bt.anchor,bt.head),ie.focus(),ea(et)}pe()}),Yi(oe.scroller,"touchcancel",pe),Yi(oe.scroller,"scroll",function(){oe.scroller.clientHeight&&(Lt(ie,oe.scroller.scrollTop),jt(ie,oe.scroller.scrollLeft,!0),Ki(ie,"scroll",ie))}),Yi(oe.scroller,"mousewheel",function(et){return Wi(ie,et)}),Yi(oe.scroller,"DOMMouseScroll",function(et){return Wi(ie,et)}),Yi(oe.wrapper,"scroll",function(){return oe.wrapper.scrollTop=oe.wrapper.scrollLeft=0}),oe.dragFunctions={enter:function(et){lr(ie,et)||ra(et)},over:function(et){lr(ie,et)||(qr(ie,et),ra(et))},start:function(et){return vr(ie,et)},drop:oa(ie,Eo),leave:function(et){lr(ie,et)||xr(ie)}};var ot=oe.input.getField();Yi(ot,"keyup",function(et){return Wo.call(ie,et)}),Yi(ot,"keydown",oa(ie,Uo)),Yi(ot,"keypress",oa(ie,os)),Yi(ot,"focus",function(et){return js(ie,et)}),Yi(ot,"blur",function(et){return _c(ie,et)})}var Bh=[];zs.defineInitHook=function(ie){return Bh.push(ie)};function Au(ie,oe,he,de){var pe=ie.doc,Fe;he==null&&(he="add"),he=="smart"&&(pe.mode.indent?Fe=Ns(ie,oe).state:he="prev");var Ve=ie.options.tabSize,ot=Hn(pe,oe),et=lt(ot.text,null,Ve);ot.stateAfter&&(ot.stateAfter=null);var Et=ot.text.match(/^\s*/)[0],rn;if(!de&&!/\S/.test(ot.text))rn=0,he="not";else if(he=="smart"&&(rn=pe.mode.indent(Fe,ot.text.slice(Et.length),ot.text),rn==Xn||rn>150)){if(!de)return;he="prev"}he=="prev"?oe>pe.first?rn=lt(Hn(pe,oe-1).text,null,Ve):rn=0:he=="add"?rn=et+ie.options.indentUnit:he=="subtract"?rn=et-ie.options.indentUnit:typeof he=="number"&&(rn=et+he),rn=Math.max(0,rn);var bt="",Ln=0;if(ie.options.indentWithTabs)for(var Dn=Math.floor(rn/Ve);Dn;--Dn)Ln+=Ve,bt+=" ";if(Ln<rn&&(bt+=Ct(rn-Ln)),bt!=Et)return Ci(pe,bt,wn(oe,0),wn(oe,Et.length),"+input"),ot.stateAfter=null,!0;for(var er=0;er<pe.sel.ranges.length;er++){var Cr=pe.sel.ranges[er];if(Cr.head.line==oe&&Cr.head.ch<Et.length){var $r=wn(oe,Et.length);Vo(pe,er,new li($r,$r));break}}}var Vu=null;function Qh(ie){Vu=ie}function qh(ie,oe,he,de,pe){var Fe=ie.doc;ie.display.shift=!1,de||(de=Fe.sel);var Ve=+new Date-200,ot=pe=="paste"||ie.state.pasteIncoming>Ve,et=ni(oe),Et=null;if(ot&&de.ranges.length>1)if(Vu&&Vu.text.join(`
`)==oe){if(de.ranges.length%Vu.text.length==0){Et=[];for(var rn=0;rn<Vu.text.length;rn++)Et.push(Fe.splitLines(Vu.text[rn]))}}else et.length==de.ranges.length&&ie.options.pasteLinesPerSelection&&(Et=hi(et,function(jo){return[jo]}));for(var bt=ie.curOp.updateInput,Ln=de.ranges.length-1;Ln>=0;Ln--){var Dn=de.ranges[Ln],er=Dn.from(),Cr=Dn.to();Dn.empty()&&(he&&he>0?er=wn(er.line,er.ch-he):ie.state.overwrite&&!ot?Cr=wn(Cr.line,Math.min(Hn(Fe,Cr.line).text.length,Cr.ch+qt(et).length)):ot&&Vu&&Vu.lineWise&&Vu.text.join(`
`)==et.join(`
`)&&(er=Cr=wn(er.line,0)));var $r={from:er,to:Cr,text:Et?Et[Ln%Et.length]:et,origin:pe||(ot?"paste":ie.state.cutIncoming>Ve?"cut":"+input")};an(ie.doc,$r),Mo(ie,"inputRead",ie,$r)}oe&&!ot&&ud(ie,oe),Dc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=bt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Ph(ie,oe){var he=ie.clipboardData&&ie.clipboardData.getData("Text");if(he)return ie.preventDefault(),!oe.isReadOnly()&&!oe.options.disableInput&&oo(oe,function(){return qh(oe,he,0,null,"paste")}),!0}function ud(ie,oe){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var he=ie.doc.sel,de=he.ranges.length-1;de>=0;de--){var pe=he.ranges[de];if(!(pe.head.ch>100||de&&he.ranges[de-1].head.line==pe.head.line)){var Fe=ie.getModeAt(pe.head),Ve=!1;if(Fe.electricChars){for(var ot=0;ot<Fe.electricChars.length;ot++)if(oe.indexOf(Fe.electricChars.charAt(ot))>-1){Ve=Au(ie,pe.head.line,"smart");break}}else Fe.electricInput&&Fe.electricInput.test(Hn(ie.doc,pe.head.line).text.slice(0,pe.head.ch))&&(Ve=Au(ie,pe.head.line,"smart"));Ve&&Mo(ie,"electricInput",ie,pe.head.line)}}}function cd(ie){for(var oe=[],he=[],de=0;de<ie.doc.sel.ranges.length;de++){var pe=ie.doc.sel.ranges[de].head.line,Fe={anchor:wn(pe,0),head:wn(pe+1,0)};he.push(Fe),oe.push(ie.getRange(Fe.anchor,Fe.head))}return{text:oe,ranges:he}}function Fd(ie,oe,he,de){ie.setAttribute("autocorrect",he?"":"off"),ie.setAttribute("autocapitalize",de?"":"off"),ie.setAttribute("spellcheck",!!oe)}function Zd(){var ie=rt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),oe=rt("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Je?ie.style.width="1000px":ie.setAttribute("wrap","off"),Te&&(ie.style.border="1px solid black"),Fd(ie),oe}function Oh(ie){var oe=ie.optionHandlers,he=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(de,pe){var Fe=this.options,Ve=Fe[de];Fe[de]==pe&&de!="mode"||(Fe[de]=pe,oe.hasOwnProperty(de)&&oa(this,oe[de])(this,pe,Ve),Ki(this,"optionChange",this,de))},getOption:function(de){return this.options[de]},getDoc:function(){return this.doc},addKeyMap:function(de,pe){this.state.keyMaps[pe?"push":"unshift"](Fa(de))},removeKeyMap:function(de){for(var pe=this.state.keyMaps,Fe=0;Fe<pe.length;++Fe)if(pe[Fe]==de||pe[Fe].name==de)return pe.splice(Fe,1),!0},addOverlay:_a(function(de,pe){var Fe=de.token?de:ie.getMode(this.options,de);if(Fe.startState)throw new Error("Overlays may not be stateful.");Kt(this.state.overlays,{mode:Fe,modeSpec:de,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(Ve){return Ve.priority}),this.state.modeGen++,ll(this)}),removeOverlay:_a(function(de){for(var pe=this.state.overlays,Fe=0;Fe<pe.length;++Fe){var Ve=pe[Fe].modeSpec;if(Ve==de||typeof de=="string"&&Ve.name==de){pe.splice(Fe,1),this.state.modeGen++,ll(this);return}}}),indentLine:_a(function(de,pe,Fe){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),Hr(this.doc,de)&&Au(this,de,pe,Fe)}),indentSelection:_a(function(de){for(var pe=this.doc.sel.ranges,Fe=-1,Ve=0;Ve<pe.length;Ve++){var ot=pe[Ve];if(ot.empty())ot.head.line>Fe&&(Au(this,ot.head.line,de,!0),Fe=ot.head.line,Ve==this.doc.sel.primIndex&&Dc(this));else{var et=ot.from(),Et=ot.to(),rn=Math.max(Fe,et.line);Fe=Math.min(this.lastLine(),Et.line-(Et.ch?0:1))+1;for(var bt=rn;bt<Fe;++bt)Au(this,bt,de);var Ln=this.doc.sel.ranges;et.ch==0&&pe.length==Ln.length&&Ln[Ve].from().ch>0&&Vo(this.doc,Ve,new li(et,Ln[Ve].to()),Xt)}}}),getTokenAt:function(de,pe){return ms(this,de,pe)},getLineTokens:function(de,pe){return ms(this,wn(de),pe,!0)},getTokenTypeAt:function(de){de=io(this.doc,de);var pe=el(this,Hn(this.doc,de.line)),Fe=0,Ve=(pe.length-1)/2,ot=de.ch,et;if(ot==0)et=pe[2];else for(;;){var Et=Fe+Ve>>1;if((Et?pe[Et*2-1]:0)>=ot)Ve=Et;else if(pe[Et*2+1]<ot)Fe=Et+1;else{et=pe[Et*2+2];break}}var rn=et?et.indexOf("overlay "):-1;return rn<0?et:rn==0?null:et.slice(0,rn-1)},getModeAt:function(de){var pe=this.doc.mode;return pe.innerMode?ie.innerMode(pe,this.getTokenAt(de).state).mode:pe},getHelper:function(de,pe){return this.getHelpers(de,pe)[0]},getHelpers:function(de,pe){var Fe=[];if(!he.hasOwnProperty(pe))return Fe;var Ve=he[pe],ot=this.getModeAt(de);if(typeof ot[pe]=="string")Ve[ot[pe]]&&Fe.push(Ve[ot[pe]]);else if(ot[pe])for(var et=0;et<ot[pe].length;et++){var Et=Ve[ot[pe][et]];Et&&Fe.push(Et)}else ot.helperType&&Ve[ot.helperType]?Fe.push(Ve[ot.helperType]):Ve[ot.name]&&Fe.push(Ve[ot.name]);for(var rn=0;rn<Ve._global.length;rn++){var bt=Ve._global[rn];bt.pred(ot,this)&&Ne(Fe,bt.val)==-1&&Fe.push(bt.val)}return Fe},getStateAfter:function(de,pe){var Fe=this.doc;return de=Nr(Fe,de==null?Fe.first+Fe.size-1:de),Ns(this,de+1,pe).state},cursorCoords:function(de,pe){var Fe,Ve=this.doc.sel.primary();return de==null?Fe=Ve.head:typeof de=="object"?Fe=io(this.doc,de):Fe=de?Ve.from():Ve.to(),Vs(this,Fe,pe||"page")},charCoords:function(de,pe){return ol(this,io(this.doc,de),pe||"page")},coordsChar:function(de,pe){return de=nu(this,de,pe||"page"),Ru(this,de.left,de.top)},lineAtHeight:function(de,pe){return de=nu(this,{top:de,left:0},pe||"page").top,Vi(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,pe,Fe){var Ve=!1,ot;if(typeof de=="number"){var et=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>et&&(de=et,Ve=!0),ot=Hn(this.doc,de)}else ot=de;return Ts(this,ot,{top:0,left:0},pe||"page",Fe||Ve).top+(Ve?this.doc.height-so(ot):0)},defaultTextHeight:function(){return pu(this.display)},defaultCharWidth:function(){return Eu(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(de,pe,Fe,Ve,ot){var et=this.display;de=Vs(this,io(this.doc,de));var Et=de.bottom,rn=de.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),et.sizer.appendChild(pe),Ve=="over")Et=de.top;else if(Ve=="above"||Ve=="near"){var bt=Math.max(et.wrapper.clientHeight,this.doc.height),Ln=Math.max(et.sizer.clientWidth,et.lineSpace.clientWidth);(Ve=="above"||de.bottom+pe.offsetHeight>bt)&&de.top>pe.offsetHeight?Et=de.top-pe.offsetHeight:de.bottom+pe.offsetHeight<=bt&&(Et=de.bottom),rn+pe.offsetWidth>Ln&&(rn=Ln-pe.offsetWidth)}pe.style.top=Et+"px",pe.style.left=pe.style.right="",ot=="right"?(rn=et.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(ot=="left"?rn=0:ot=="middle"&&(rn=(et.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=rn+"px"),Fe&&xh(this,{left:rn,top:Et,right:rn+pe.offsetWidth,bottom:Et+pe.offsetHeight})},triggerOnKeyDown:_a(Uo),triggerOnKeyPress:_a(os),triggerOnKeyUp:Wo,triggerOnMouseDown:_a(Nl),execCommand:function(de){if(Xs.hasOwnProperty(de))return Xs[de].call(null,this)},triggerElectric:_a(function(de){ud(this,de)}),findPosH:function(de,pe,Fe,Ve){var ot=1;pe<0&&(ot=-1,pe=-pe);for(var et=io(this.doc,de),Et=0;Et<pe&&(et=$h(this.doc,et,ot,Fe,Ve),!et.hitSide);++Et);return et},moveH:_a(function(de,pe){var Fe=this;this.extendSelectionsBy(function(Ve){return Fe.display.shift||Fe.doc.extend||Ve.empty()?$h(Fe.doc,Ve.head,de,pe,Fe.options.rtlMoveVisually):de<0?Ve.from():Ve.to()},xn)}),deleteH:_a(function(de,pe){var Fe=this.doc.sel,Ve=this.doc;Fe.somethingSelected()?Ve.replaceSelection("",null,"+delete"):Ja(this,function(ot){var et=$h(Ve,ot.head,de,pe,!1);return de<0?{from:et,to:ot.head}:{from:ot.head,to:et}})}),findPosV:function(de,pe,Fe,Ve){var ot=1,et=Ve;pe<0&&(ot=-1,pe=-pe);for(var Et=io(this.doc,de),rn=0;rn<pe;++rn){var bt=Vs(this,Et,"div");if(et==null?et=bt.left:bt.left=et,Et=Ih(this,bt,ot,Fe),Et.hitSide)break}return Et},moveV:_a(function(de,pe){var Fe=this,Ve=this.doc,ot=[],et=!this.display.shift&&!Ve.extend&&Ve.sel.somethingSelected();if(Ve.extendSelectionsBy(function(rn){if(et)return de<0?rn.from():rn.to();var bt=Vs(Fe,rn.head,"div");rn.goalColumn!=null&&(bt.left=rn.goalColumn),ot.push(bt.left);var Ln=Ih(Fe,bt,de,pe);return pe=="page"&&rn==Ve.sel.primary()&&_u(Fe,ol(Fe,Ln,"div").top-bt.top),Ln},xn),ot.length)for(var Et=0;Et<Ve.sel.ranges.length;Et++)Ve.sel.ranges[Et].goalColumn=ot[Et]}),findWordAt:function(de){var pe=this.doc,Fe=Hn(pe,de.line).text,Ve=de.ch,ot=de.ch;if(Fe){var et=this.getHelper(de,"wordChars");(de.sticky=="before"||ot==Fe.length)&&Ve?--Ve:++ot;for(var Et=Fe.charAt(Ve),rn=$e(Et,et)?function(bt){return $e(bt,et)}:/\s/.test(Et)?function(bt){return/\s/.test(bt)}:function(bt){return!/\s/.test(bt)&&!$e(bt)};Ve>0&&rn(Fe.charAt(Ve-1));)--Ve;for(;ot<Fe.length&&rn(Fe.charAt(ot));)++ot}return new li(wn(de.line,Ve),wn(de.line,ot))},toggleOverwrite:function(de){de!=null&&de==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Nt(this.display.cursorDiv,"CodeMirror-overwrite"):qe(this.display.cursorDiv,"CodeMirror-overwrite"),Ki(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Dt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:_a(function(de,pe){Zu(this,de,pe)}),getScrollInfo:function(){var de=this.display.scroller;return{left:de.scrollLeft,top:de.scrollTop,height:de.scrollHeight-Ol(this)-this.display.barHeight,width:de.scrollWidth-Ol(this)-this.display.barWidth,clientHeight:Wc(this),clientWidth:Cu(this)}},scrollIntoView:_a(function(de,pe){de==null?(de={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof de=="number"?de={from:wn(de,0),to:null}:de.from==null&&(de={from:de,to:null}),de.to||(de.to=de.from),de.margin=pe||0,de.from.line!=null?Ko(this,de):Qe(this,de.from,de.to,de.margin)}),setSize:_a(function(de,pe){var Fe=this,Ve=function(et){return typeof et=="number"||/^\d+$/.test(String(et))?et+"px":et};de!=null&&(this.display.wrapper.style.width=Ve(de)),pe!=null&&(this.display.wrapper.style.height=Ve(pe)),this.options.lineWrapping&&Nc(this);var ot=this.display.viewFrom;this.doc.iter(ot,this.display.viewTo,function(et){if(et.widgets){for(var Et=0;Et<et.widgets.length;Et++)if(et.widgets[Et].noHScroll){fs(Fe,ot,"widget");break}}++ot}),this.curOp.forceUpdate=!0,Ki(this,"refresh",this)}),operation:function(de){return oo(this,de)},startOperation:function(){return ir(this)},endOperation:function(){return Ji(this)},refresh:_a(function(){var de=this.display.cachedTextHeight;ll(this),this.curOp.forceUpdate=!0,Ec(this),Zu(this,this.doc.scrollLeft,this.doc.scrollTop),Ce(this.display),(de==null||Math.abs(de-pu(this.display))>.5||this.options.lineWrapping)&&Ca(this),Ki(this,"refresh",this)}),swapDoc:_a(function(de){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),Ar(this,de),Ec(this),this.display.input.reset(),Zu(this,de.scrollLeft,de.scrollTop),this.curOp.forceScroll=!0,Mo(this,"swapDoc",this,pe),pe}),phrase:function(de){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,de)?pe[de]:de},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bi(ie),ie.registerHelper=function(de,pe,Fe){he.hasOwnProperty(de)||(he[de]=ie[de]={_global:[]}),he[de][pe]=Fe},ie.registerGlobalHelper=function(de,pe,Fe,Ve){ie.registerHelper(de,pe,Ve),he[de]._global.push({pred:Fe,val:Ve})}}function $h(ie,oe,he,de,pe){var Fe=oe,Ve=he,ot=Hn(ie,oe.line),et=pe&&ie.direction=="rtl"?-he:he;function Et(){var La=oe.line+et;return La<ie.first||La>=ie.first+ie.size?!1:(oe=new wn(La,oe.ch,oe.sticky),ot=Hn(ie,La))}function rn(La){var na;if(de=="codepoint"){var za=ot.text.charCodeAt(oe.ch+(de>0?0:-1));isNaN(za)?na=null:na=new wn(oe.line,Math.max(0,Math.min(ot.text.length,oe.ch+he*(za>=55296&&za<56320?2:1))),-he)}else pe?na=Ks(ie.cm,ot,oe,he):na=Ma(ot,oe,he);if(na==null)if(!La&&Et())oe=Qa(pe,ie.cm,ot,oe.line,et);else return!1;else oe=na;return!0}if(de=="char"||de=="codepoint")rn();else if(de=="column")rn(!0);else if(de=="word"||de=="group")for(var bt=null,Ln=de=="group",Dn=ie.cm&&ie.cm.getHelper(oe,"wordChars"),er=!0;!(he<0&&!rn(!er));er=!1){var Cr=ot.text.charAt(oe.ch)||`
`,$r=$e(Cr,Dn)?"w":Ln&&Cr==`
`?"n":!Ln||/\s/.test(Cr)?null:"p";if(Ln&&!er&&!$r&&($r="s"),bt&&bt!=$r){he<0&&(he=1,rn(),oe.sticky="after");break}if($r&&(bt=$r),he>0&&!rn(!er))break}var jo=Ue(ie,oe,Fe,Ve,!0);return Xo(Fe,jo)&&(jo.hitSide=!0),jo}function Ih(ie,oe,he,de){var pe=ie.doc,Fe=oe.left,Ve;if(de=="page"){var ot=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),et=Math.max(ot-.5*pu(ie.display),3);Ve=(he>0?oe.bottom:oe.top)+he*et}else de=="line"&&(Ve=he>0?oe.bottom+3:oe.top-3);for(var Et;Et=Ru(ie,Fe,Ve),!!Et.outside;){if(he<0?Ve<=0:Ve>=pe.height){Et.hitSide=!0;break}Ve+=he*5}return Et}var Al=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ge,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Al.prototype.init=function(ie){var oe=this,he=this,de=he.cm,pe=he.div=ie.lineDiv;Fd(pe,de.options.spellcheck,de.options.autocorrect,de.options.autocapitalize);function Fe(ot){for(var et=ot.target;et;et=et.parentNode){if(et==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(et.className))break}return!1}Yi(pe,"paste",function(ot){!Fe(ot)||lr(de,ot)||Ph(ot,de)||Re<=11&&setTimeout(oa(de,function(){return oe.updateFromDOM()}),20)}),Yi(pe,"compositionstart",function(ot){oe.composing={data:ot.data,done:!1}}),Yi(pe,"compositionupdate",function(ot){oe.composing||(oe.composing={data:ot.data,done:!1})}),Yi(pe,"compositionend",function(ot){oe.composing&&(ot.data!=oe.composing.data&&oe.readFromDOMSoon(),oe.composing.done=!0)}),Yi(pe,"touchstart",function(){return he.forceCompositionEnd()}),Yi(pe,"input",function(){oe.composing||oe.readFromDOMSoon()});function Ve(ot){if(!(!Fe(ot)||lr(de,ot))){if(de.somethingSelected())Qh({lineWise:!1,text:de.getSelections()}),ot.type=="cut"&&de.replaceSelection("",null,"cut");else if(de.options.lineWiseCopyCut){var et=cd(de);Qh({lineWise:!0,text:et.text}),ot.type=="cut"&&de.operation(function(){de.setSelections(et.ranges,0,Xt),de.replaceSelection("",null,"cut")})}else return;if(ot.clipboardData){ot.clipboardData.clearData();var Et=Vu.text.join(`
`);if(ot.clipboardData.setData("Text",Et),ot.clipboardData.getData("Text")==Et){ot.preventDefault();return}}var rn=Zd(),bt=rn.firstChild;de.display.lineSpace.insertBefore(rn,de.display.lineSpace.firstChild),bt.value=Vu.text.join(`
`);var Ln=document.activeElement;On(bt),setTimeout(function(){de.display.lineSpace.removeChild(rn),Ln.focus(),Ln==pe&&he.showPrimarySelection()},50)}}Yi(pe,"copy",Ve),Yi(pe,"cut",Ve)},Al.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Al.prototype.prepareSelection=function(){var ie=tc(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Al.prototype.showSelection=function(ie,oe){!ie||!this.cm.display.view.length||((ie.focus||oe)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Al.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Al.prototype.showPrimarySelection=function(){var ie=this.getSelection(),oe=this.cm,he=oe.doc.sel.primary(),de=he.from(),pe=he.to();if(oe.display.viewTo==oe.display.viewFrom||de.line>=oe.display.viewTo||pe.line<oe.display.viewFrom){ie.removeAllRanges();return}var Fe=Nd(oe,ie.anchorNode,ie.anchorOffset),Ve=Nd(oe,ie.focusNode,ie.focusOffset);if(!(Fe&&!Fe.bad&&Ve&&!Ve.bad&&or(hr(Fe,Ve),de)==0&&or(aa(Fe,Ve),pe)==0)){var ot=oe.display.view,et=de.line>=oe.display.viewFrom&&Xd(oe,de)||{node:ot[0].measure.map[2],offset:0},Et=pe.line<oe.display.viewTo&&Xd(oe,pe);if(!Et){var rn=ot[ot.length-1].measure,bt=rn.maps?rn.maps[rn.maps.length-1]:rn.map;Et={node:bt[bt.length-1],offset:bt[bt.length-2]-bt[bt.length-3]}}if(!et||!Et){ie.removeAllRanges();return}var Ln=ie.rangeCount&&ie.getRangeAt(0),Dn;try{Dn=Mt(et.node,et.offset,Et.offset,Et.node)}catch(er){}Dn&&(!ve&&oe.state.focused?(ie.collapse(et.node,et.offset),Dn.collapsed||(ie.removeAllRanges(),ie.addRange(Dn))):(ie.removeAllRanges(),ie.addRange(Dn)),Ln&&ie.anchorNode==null?ie.addRange(Ln):ve&&this.startGracePeriod()),this.rememberSelection()}},Al.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Al.prototype.showMultipleSelections=function(ie){st(this.cm.display.cursorDiv,ie.cursors),st(this.cm.display.selectionDiv,ie.selection)},Al.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Al.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var oe=ie.getRangeAt(0).commonAncestorContainer;return yt(this.div,oe)},Al.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Al.prototype.blur=function(){this.div.blur()},Al.prototype.getField=function(){return this.div},Al.prototype.supportsTouch=function(){return!0},Al.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():oo(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function oe(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,oe))}this.polling.set(this.cm.options.pollInterval,oe)},Al.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Al.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),oe=this.cm;if(ne&&wt&&this.cm.display.gutterSpecs.length&&Sf(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var he=Nd(oe,ie.anchorNode,ie.anchorOffset),de=Nd(oe,ie.focusNode,ie.focusOffset);he&&de&&oo(oe,function(){Mr(oe.doc,Zi(he,de),Xt),(he.bad||de.bad)&&(oe.curOp.selectionChanged=!0)})}}},Al.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,oe=ie.display,he=ie.doc.sel.primary(),de=he.from(),pe=he.to();if(de.ch==0&&de.line>ie.firstLine()&&(de=wn(de.line-1,Hn(ie.doc,de.line-1).length)),pe.ch==Hn(ie.doc,pe.line).text.length&&pe.line<ie.lastLine()&&(pe=wn(pe.line+1,0)),de.line<oe.viewFrom||pe.line>oe.viewTo-1)return!1;var Fe,Ve,ot;de.line==oe.viewFrom||(Fe=au(ie,de.line))==0?(Ve=tn(oe.view[0].line),ot=oe.view[0].node):(Ve=tn(oe.view[Fe].line),ot=oe.view[Fe-1].node.nextSibling);var et=au(ie,pe.line),Et,rn;if(et==oe.view.length-1?(Et=oe.viewTo-1,rn=oe.lineDiv.lastChild):(Et=tn(oe.view[et+1].line)-1,rn=oe.view[et+1].node.previousSibling),!ot)return!1;for(var bt=ie.doc.splitLines(dd(ie,ot,rn,Ve,Et)),Ln=En(ie.doc,wn(Ve,0),wn(Et,Hn(ie.doc,Et).text.length));bt.length>1&&Ln.length>1;)if(qt(bt)==qt(Ln))bt.pop(),Ln.pop(),Et--;else if(bt[0]==Ln[0])bt.shift(),Ln.shift(),Ve++;else break;for(var Dn=0,er=0,Cr=bt[0],$r=Ln[0],jo=Math.min(Cr.length,$r.length);Dn<jo&&Cr.charCodeAt(Dn)==$r.charCodeAt(Dn);)++Dn;for(var La=qt(bt),na=qt(Ln),za=Math.min(La.length-(bt.length==1?Dn:0),na.length-(Ln.length==1?Dn:0));er<za&&La.charCodeAt(La.length-er-1)==na.charCodeAt(na.length-er-1);)++er;if(bt.length==1&&Ln.length==1&&Ve==de.line)for(;Dn&&Dn>de.ch&&La.charCodeAt(La.length-er-1)==na.charCodeAt(na.length-er-1);)Dn--,er++;bt[bt.length-1]=La.slice(0,La.length-er).replace(/^\u200b+/,""),bt[0]=bt[0].slice(Dn).replace(/\u200b+$/,"");var ps=wn(Ve,Dn),$o=wn(Et,Ln.length?qt(Ln).length-er:0);if(bt.length>1||bt[0]||or(ps,$o))return Ci(ie.doc,bt,ps,$o,"+input"),!0},Al.prototype.ensurePolled=function(){this.forceCompositionEnd()},Al.prototype.reset=function(){this.forceCompositionEnd()},Al.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Al.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Al.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&oo(this.cm,function(){return ll(ie.cm)})},Al.prototype.setUneditable=function(ie){ie.contentEditable="false"},Al.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||oa(this.cm,qh)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Al.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Al.prototype.onContextMenu=function(){},Al.prototype.resetPosition=function(){},Al.prototype.needsContentAttribute=!0;function Xd(ie,oe){var he=El(ie,oe.line);if(!he||he.hidden)return null;var de=Hn(ie.doc,oe.line),pe=Hc(he,de,oe.line),Fe=_i(de,ie.doc.direction),Ve="left";if(Fe){var ot=mn(Fe,oe.ch);Ve=ot%2?"right":"left"}var et=Jc(pe.map,oe.ch,Ve);return et.offset=et.collapse=="right"?et.end:et.start,et}function Sf(ie){for(var oe=ie;oe;oe=oe.parentNode)if(/CodeMirror-gutter-wrapper/.test(oe.className))return!0;return!1}function hd(ie,oe){return oe&&(ie.bad=!0),ie}function dd(ie,oe,he,de,pe){var Fe="",Ve=!1,ot=ie.doc.lineSeparator(),et=!1;function Et(Dn){return function(er){return er.id==Dn}}function rn(){Ve&&(Fe+=ot,et&&(Fe+=ot),Ve=et=!1)}function bt(Dn){Dn&&(rn(),Fe+=Dn)}function Ln(Dn){if(Dn.nodeType==1){var er=Dn.getAttribute("cm-text");if(er){bt(er);return}var Cr=Dn.getAttribute("cm-marker"),$r;if(Cr){var jo=ie.findMarks(wn(de,0),wn(pe+1,0),Et(+Cr));jo.length&&($r=jo[0].find(0))&&bt(En(ie.doc,$r.from,$r.to).join(ot));return}if(Dn.getAttribute("contenteditable")=="false")return;var La=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;La&&rn();for(var na=0;na<Dn.childNodes.length;na++)Ln(Dn.childNodes[na]);/^(pre|p)$/i.test(Dn.nodeName)&&(et=!0),La&&(Ve=!0)}else Dn.nodeType==3&&bt(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ln(oe),oe!=he;)oe=oe.nextSibling,et=!1;return Fe}function Nd(ie,oe,he){var de;if(oe==ie.display.lineDiv){if(de=ie.display.lineDiv.childNodes[he],!de)return hd(ie.clipPos(wn(ie.display.viewTo-1)),!0);oe=null,he=0}else for(de=oe;;de=de.parentNode){if(!de||de==ie.display.lineDiv)return null;if(de.parentNode&&de.parentNode==ie.display.lineDiv)break}for(var pe=0;pe<ie.display.view.length;pe++){var Fe=ie.display.view[pe];if(Fe.node==de)return Vf(Fe,oe,he)}}function Vf(ie,oe,he){var de=ie.text.firstChild,pe=!1;if(!oe||!yt(de,oe))return hd(wn(tn(ie.line),0),!0);if(oe==de&&(pe=!0,oe=de.childNodes[he],he=0,!oe)){var Fe=ie.rest?qt(ie.rest):ie.line;return hd(wn(tn(Fe),Fe.text.length),pe)}var Ve=oe.nodeType==3?oe:null,ot=oe;for(!Ve&&oe.childNodes.length==1&&oe.firstChild.nodeType==3&&(Ve=oe.firstChild,he&&(he=Ve.nodeValue.length));ot.parentNode!=de;)ot=ot.parentNode;var et=ie.measure,Et=et.maps;function rn($r,jo,La){for(var na=-1;na<(Et?Et.length:0);na++)for(var za=na<0?et.map:Et[na],ps=0;ps<za.length;ps+=3){var $o=za[ps+2];if($o==$r||$o==jo){var Gs=tn(na<0?ie.line:ie.rest[na]),Xl=za[ps]+La;return(La<0||$o!=$r)&&(Xl=za[ps+(La?1:0)]),wn(Gs,Xl)}}}var bt=rn(Ve,ot,he);if(bt)return hd(bt,pe);for(var Ln=ot.nextSibling,Dn=Ve?Ve.nodeValue.length-he:0;Ln;Ln=Ln.nextSibling){if(bt=rn(Ln,Ln.firstChild,0),bt)return hd(wn(bt.line,bt.ch-Dn),pe);Dn+=Ln.textContent.length}for(var er=ot.previousSibling,Cr=he;er;er=er.previousSibling){if(bt=rn(er,er.firstChild,-1),bt)return hd(wn(bt.line,bt.ch+Cr),pe);Cr+=er.textContent.length}}var yu=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new Ge,this.hasSelection=!1,this.composing=null};yu.prototype.init=function(ie){var oe=this,he=this,de=this.cm;this.createField(ie);var pe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Te&&(pe.style.width="0px"),Yi(pe,"input",function(){Bt&&Re>=9&&oe.hasSelection&&(oe.hasSelection=null),he.poll()}),Yi(pe,"paste",function(Ve){lr(de,Ve)||Ph(Ve,de)||(de.state.pasteIncoming=+new Date,he.fastPoll())});function Fe(Ve){if(!lr(de,Ve)){if(de.somethingSelected())Qh({lineWise:!1,text:de.getSelections()});else if(de.options.lineWiseCopyCut){var ot=cd(de);Qh({lineWise:!0,text:ot.text}),Ve.type=="cut"?de.setSelections(ot.ranges,null,Xt):(he.prevInput="",pe.value=ot.text.join(`
`),On(pe))}else return;Ve.type=="cut"&&(de.state.cutIncoming=+new Date)}}Yi(pe,"cut",Fe),Yi(pe,"copy",Fe),Yi(ie.scroller,"paste",function(Ve){if(!(Il(ie,Ve)||lr(de,Ve))){if(!pe.dispatchEvent){de.state.pasteIncoming=+new Date,he.focus();return}var ot=new Event("paste");ot.clipboardData=Ve.clipboardData,pe.dispatchEvent(ot)}}),Yi(ie.lineSpace,"selectstart",function(Ve){Il(ie,Ve)||ea(Ve)}),Yi(pe,"compositionstart",function(){var Ve=de.getCursor("from");he.composing&&he.composing.range.clear(),he.composing={start:Ve,range:de.markText(Ve,de.getCursor("to"),{className:"CodeMirror-composing"})}}),Yi(pe,"compositionend",function(){he.composing&&(he.poll(),he.composing.range.clear(),he.composing=null)})},yu.prototype.createField=function(ie){this.wrapper=Zd(),this.textarea=this.wrapper.firstChild},yu.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},yu.prototype.prepareSelection=function(){var ie=this.cm,oe=ie.display,he=ie.doc,de=tc(ie);if(ie.options.moveInputWithCursor){var pe=Vs(ie,he.sel.primary().head,"div"),Fe=oe.wrapper.getBoundingClientRect(),Ve=oe.lineDiv.getBoundingClientRect();de.teTop=Math.max(0,Math.min(oe.wrapper.clientHeight-10,pe.top+Ve.top-Fe.top)),de.teLeft=Math.max(0,Math.min(oe.wrapper.clientWidth-10,pe.left+Ve.left-Fe.left))}return de},yu.prototype.showSelection=function(ie){var oe=this.cm,he=oe.display;st(he.cursorDiv,ie.cursors),st(he.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},yu.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var oe=this.cm;if(oe.somethingSelected()){this.prevInput="";var he=oe.getSelection();this.textarea.value=he,oe.state.focused&&On(this.textarea),Bt&&Re>=9&&(this.hasSelection=he)}else ie||(this.prevInput=this.textarea.value="",Bt&&Re>=9&&(this.hasSelection=null))}},yu.prototype.getField=function(){return this.textarea},yu.prototype.supportsTouch=function(){return!1},yu.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||Dt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},yu.prototype.blur=function(){this.textarea.blur()},yu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},yu.prototype.receivedFocus=function(){this.slowPoll()},yu.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},yu.prototype.fastPoll=function(){var ie=!1,oe=this;oe.pollingFast=!0;function he(){var de=oe.poll();!de&&!ie?(ie=!0,oe.polling.set(60,he)):(oe.pollingFast=!1,oe.slowPoll())}oe.polling.set(20,he)},yu.prototype.poll=function(){var ie=this,oe=this.cm,he=this.textarea,de=this.prevInput;if(this.contextMenuPending||!oe.state.focused||Ee(he)&&!de&&!this.composing||oe.isReadOnly()||oe.options.disableInput||oe.state.keySeq)return!1;var pe=he.value;if(pe==de&&!oe.somethingSelected())return!1;if(Bt&&Re>=9&&this.hasSelection===pe||ue&&/[\uf700-\uf7ff]/.test(pe))return oe.display.input.reset(),!1;if(oe.doc.sel==oe.display.selForContextMenu){var Fe=pe.charCodeAt(0);if(Fe==8203&&!de&&(de="\u200B"),Fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ve=0,ot=Math.min(de.length,pe.length);Ve<ot&&de.charCodeAt(Ve)==pe.charCodeAt(Ve);)++Ve;return oo(oe,function(){qh(oe,pe.slice(Ve),de.length-Ve,null,ie.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
`)>-1?he.value=ie.prevInput="":ie.prevInput=pe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=oe.markText(ie.composing.start,oe.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},yu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},yu.prototype.onKeyPress=function(){Bt&&Re>=9&&(this.hasSelection=null),this.fastPoll()},yu.prototype.onContextMenu=function(ie){var oe=this,he=oe.cm,de=he.display,pe=oe.textarea;oe.contextMenuPending&&oe.contextMenuPending();var Fe=mu(he,ie),Ve=de.scroller.scrollTop;if(!Fe||ht)return;var ot=he.options.resetSelectionOnContextMenu;ot&&he.doc.sel.contains(Fe)==-1&&oa(he,Mr)(he.doc,Zi(Fe),Xt);var et=pe.style.cssText,Et=oe.wrapper.style.cssText,rn=oe.wrapper.offsetParent.getBoundingClientRect();oe.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-rn.top-5)+"px; left: "+(ie.clientX-rn.left-5)+`px;
z-index: 1000; background: `+(Bt?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var bt;Je&&(bt=window.scrollY),de.input.focus(),Je&&window.scrollTo(null,bt),de.input.reset(),he.somethingSelected()||(pe.value=oe.prevInput=" "),oe.contextMenuPending=Dn,de.selForContextMenu=he.doc.sel,clearTimeout(de.detectingSelectAll);function Ln(){if(pe.selectionStart!=null){var Cr=he.somethingSelected(),$r="\u200B"+(Cr?pe.value:"");pe.value="\u21DA",pe.value=$r,oe.prevInput=Cr?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=$r.length,de.selForContextMenu=he.doc.sel}}function Dn(){if(oe.contextMenuPending==Dn&&(oe.contextMenuPending=!1,oe.wrapper.style.cssText=Et,pe.style.cssText=et,Bt&&Re<9&&de.scrollbars.setScrollTop(de.scroller.scrollTop=Ve),pe.selectionStart!=null)){(!Bt||Bt&&Re<9)&&Ln();var Cr=0,$r=function(){de.selForContextMenu==he.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&oe.prevInput=="\u200B"?oa(he,Ht)(he):Cr++<10?de.detectingSelectAll=setTimeout($r,500):(de.selForContextMenu=null,de.input.reset())};de.detectingSelectAll=setTimeout($r,200)}}if(Bt&&Re>=9&&Ln(),Pe){ra(ie);var er=function(){Xr(window,"mouseup",er),setTimeout(Dn,20)};Yi(window,"mouseup",er)}else setTimeout(Dn,50)},yu.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},yu.prototype.setUneditable=function(){},yu.prototype.needsContentAttribute=!1;function Kf(ie,oe){if(oe=oe?vn(oe):{},oe.value=ie.value,!oe.tabindex&&ie.tabIndex&&(oe.tabindex=ie.tabIndex),!oe.placeholder&&ie.placeholder&&(oe.placeholder=ie.placeholder),oe.autofocus==null){var he=Dt();oe.autofocus=he==ie||ie.getAttribute("autofocus")!=null&&he==document.body}function de(){ie.value=ot.getValue()}var pe;if(ie.form&&(Yi(ie.form,"submit",de),!oe.leaveSubmitMethodAlone)){var Fe=ie.form;pe=Fe.submit;try{var Ve=Fe.submit=function(){de(),Fe.submit=pe,Fe.submit(),Fe.submit=Ve}}catch(et){}}oe.finishInit=function(et){et.save=de,et.getTextArea=function(){return ie},et.toTextArea=function(){et.toTextArea=isNaN,de(),ie.parentNode.removeChild(et.getWrapperElement()),ie.style.display="",ie.form&&(Xr(ie.form,"submit",de),!oe.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var ot=zs(function(et){return ie.parentNode.insertBefore(et,ie.nextSibling)},oe);return ot}function fd(ie){ie.off=Xr,ie.on=Yi,ie.wheelEventPixels=$n,ie.Doc=Hi,ie.splitLines=ni,ie.countColumn=lt,ie.findColumn=gi,ie.isWordChar=We,ie.Pass=Xn,ie.signal=Ki,ie.Line=Ia,ie.changeEnd=ur,ie.scrollbarModel=Ai,ie.Pos=wn,ie.cmpPos=or,ie.modes=Jn,ie.mimeModes=Wn,ie.resolveMode=Wt,ie.getMode=Gt,ie.modeExtensions=Ft,ie.extendMode=un,ie.copyState=Ti,ie.startState=di,ie.innerMode=Ri,ie.commands=Xs,ie.keyMap=xa,ie.keyName=gs,ie.isModifierKey=wa,ie.lookupKey=Rr,ie.normalizeKeyMap=no,ie.StringStream=Yt,ie.SharedTextMarker=Pr,ie.TextMarker=At,ie.LineWidget=pi,ie.e_preventDefault=ea,ie.e_stopPropagation=Zn,ie.e_stop=ra,ie.addClass=Nt,ie.contains=yt,ie.rmClass=qe,ie.keyNames=bo}yf(zs),Oh(zs);var Ch="iter insert remove copy getEditor constructor".split(" ");for(var Dd in Hi.prototype)Hi.prototype.hasOwnProperty(Dd)&&Ne(Ch,Dd)<0&&(zs.prototype[Dd]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Hi.prototype[Dd]));return Bi(Hi),zs.inputStyles={textarea:yu,contenteditable:Al},zs.defineMode=function(ie){!zs.defaults.mode&&ie!="null"&&(zs.defaults.mode=ie),nn.apply(this,arguments)},zs.defineMIME=ii,zs.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),zs.defineMIME("text/plain","null"),zs.defineExtension=function(ie,oe){zs.prototype[ie]=oe},zs.defineDocExtension=function(ie,oe){Hi.prototype[ie]=oe},zs.fromTextArea=Kf,fd(zs),zs.version="5.58.2",zs})},49047:function(Rn,ti,be){(function(ve){ve(be(4631),be(29589),be(52539))})(function(ve){"use strict";ve.defineMode("markdown",function(tt,Pt){var Ut=ve.getMode(tt,"text/html"),Bt=Ut.name=="null";function Re(lt){if(ve.findModeByName){var Ge=ve.findModeByName(lt);Ge&&(lt=Ge.mime||Ge.mimes[0])}var Ne=ve.getMode(tt,lt);return Ne.name=="null"?null:Ne}Pt.highlightFormatting===void 0&&(Pt.highlightFormatting=!1),Pt.maxBlockquoteDepth===void 0&&(Pt.maxBlockquoteDepth=0),Pt.taskLists===void 0&&(Pt.taskLists=!1),Pt.strikethrough===void 0&&(Pt.strikethrough=!1),Pt.emoji===void 0&&(Pt.emoji=!1),Pt.fencedCodeBlockHighlighting===void 0&&(Pt.fencedCodeBlockHighlighting=!0),Pt.fencedCodeBlockDefaultMode===void 0&&(Pt.fencedCodeBlockDefaultMode="text/plain"),Pt.xml===void 0&&(Pt.xml=!0),Pt.tokenTypeOverrides===void 0&&(Pt.tokenTypeOverrides={});var Je={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var pt in Je)Je.hasOwnProperty(pt)&&Pt.tokenTypeOverrides[pt]&&(Je[pt]=Pt.tokenTypeOverrides[pt]);var wt=/^([*\-_])(?:\s*\1){2,}\s*$/,ht=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Vt=/^\[(x| )\](?=\s)/i,ct=Pt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,He=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Te=/^[^#!\[\]*_\\<>` "'(~:]+/,ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,te=/^\s*\[[^\]]+?\]:.*$/,ue=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,se=" ";function ge(lt,Ge,Ne){return Ge.f=Ge.inline=Ne,Ne(lt,Ge)}function me(lt,Ge,Ne){return Ge.f=Ge.block=Ne,Ne(lt,Ge)}function xe(lt){return!lt||!/\S/.test(lt.string)}function Pe(lt){if(lt.linkTitle=!1,lt.linkHref=!1,lt.linkText=!1,lt.em=!1,lt.strong=!1,lt.strikethrough=!1,lt.quote=0,lt.indentedCode=!1,lt.f==qe){var Ge=Bt;if(!Ge){var Ne=ve.innerMode(Ut,lt.htmlState);Ge=Ne.mode.name=="xml"&&Ne.state.tagStart===null&&!Ne.state.context&&Ne.state.tokenize.isInText}Ge&&(lt.f=Tt,lt.block=Ke,lt.htmlState=null)}return lt.trailingSpace=0,lt.trailingSpaceNewLine=!1,lt.prevLine=lt.thisLine,lt.thisLine={stream:null},null}function Ke(lt,Ge){var Ne=lt.column()===Ge.indentation,Nn=xe(Ge.prevLine.stream),Xn=Ge.indentedCode,Xt=Ge.prevLine.hr,ai=Ge.list!==!1,xn=(Ge.listStack[Ge.listStack.length-1]||0)+3;Ge.indentedCode=!1;var gi=Ge.indentation;if(Ge.indentationDiff===null&&(Ge.indentationDiff=Ge.indentation,ai)){for(Ge.list=null;gi<Ge.listStack[Ge.listStack.length-1];)Ge.listStack.pop(),Ge.listStack.length?Ge.indentation=Ge.listStack[Ge.listStack.length-1]:Ge.list=!1;Ge.list!==!1&&(Ge.indentationDiff=gi-Ge.listStack[Ge.listStack.length-1])}var Zt=!Nn&&!Xt&&!Ge.prevLine.header&&(!ai||!Xn)&&!Ge.prevLine.fencedCodeEnd,Ct=(Ge.list===!1||Xt||Nn)&&Ge.indentation<=xn&&lt.match(wt),qt=null;if(Ge.indentationDiff>=4&&(Xn||Ge.prevLine.fencedCodeEnd||Ge.prevLine.header||Nn))return lt.skipToEnd(),Ge.indentedCode=!0,Je.code;if(lt.eatSpace())return null;if(Ne&&Ge.indentation<=xn&&(qt=lt.match(ct))&&qt[1].length<=6)return Ge.quote=0,Ge.header=qt[1].length,Ge.thisLine.header=!0,Pt.highlightFormatting&&(Ge.formatting="header"),Ge.f=Ge.inline,st(Ge);if(Ge.indentation<=xn&&lt.eat(">"))return Ge.quote=Ne?1:Ge.quote+1,Pt.highlightFormatting&&(Ge.formatting="quote"),lt.eatSpace(),st(Ge);if(!Ct&&!Ge.setext&&Ne&&Ge.indentation<=xn&&(qt=lt.match(ht))){var hi=qt[1]?"ol":"ul";return Ge.indentation=gi+lt.current().length,Ge.list=!0,Ge.quote=0,Ge.listStack.push(Ge.indentation),Ge.em=!1,Ge.strong=!1,Ge.code=!1,Ge.strikethrough=!1,Pt.taskLists&&lt.match(Vt,!1)&&(Ge.taskList=!0),Ge.f=Ge.inline,Pt.highlightFormatting&&(Ge.formatting=["list","list-"+hi]),st(Ge)}else{if(Ne&&Ge.indentation<=xn&&(qt=lt.match(ne,!0)))return Ge.quote=0,Ge.fencedEndRE=new RegExp(qt[1]+"+ *$"),Ge.localMode=Pt.fencedCodeBlockHighlighting&&Re(qt[2]||Pt.fencedCodeBlockDefaultMode),Ge.localMode&&(Ge.localState=ve.startState(Ge.localMode)),Ge.f=Ge.block=ft,Pt.highlightFormatting&&(Ge.formatting="code-block"),Ge.code=-1,st(Ge);if(Ge.setext||(!Zt||!ai)&&!Ge.quote&&Ge.list===!1&&!Ge.code&&!Ct&&!te.test(lt.string)&&(qt=lt.lookAhead(1))&&(qt=qt.match(He)))return Ge.setext?(Ge.header=Ge.setext,Ge.setext=0,lt.skipToEnd(),Pt.highlightFormatting&&(Ge.formatting="header")):(Ge.header=qt[0].charAt(0)=="="?1:2,Ge.setext=Ge.header),Ge.thisLine.header=!0,Ge.f=Ge.inline,st(Ge);if(Ct)return lt.skipToEnd(),Ge.hr=!0,Ge.thisLine.hr=!0,Je.hr;if(lt.peek()==="[")return ge(lt,Ge,Bn)}return ge(lt,Ge,Ge.inline)}function qe(lt,Ge){var Ne=Ut.token(lt,Ge.htmlState);if(!Bt){var Nn=ve.innerMode(Ut,Ge.htmlState);(Nn.mode.name=="xml"&&Nn.state.tagStart===null&&!Nn.state.context&&Nn.state.tokenize.isInText||Ge.md_inside&&lt.current().indexOf(">")>-1)&&(Ge.f=Tt,Ge.block=Ke,Ge.htmlState=null)}return Ne}function ft(lt,Ge){var Ne=Ge.listStack[Ge.listStack.length-1]||0,Nn=Ge.indentation<Ne,Xn=Ne+3;if(Ge.fencedEndRE&&Ge.indentation<=Xn&&(Nn||lt.match(Ge.fencedEndRE))){Pt.highlightFormatting&&(Ge.formatting="code-block");var Xt;return Nn||(Xt=st(Ge)),Ge.localMode=Ge.localState=null,Ge.block=Ke,Ge.f=Tt,Ge.fencedEndRE=null,Ge.code=0,Ge.thisLine.fencedCodeEnd=!0,Nn?me(lt,Ge,Ge.block):Xt}else return Ge.localMode?Ge.localMode.token(lt,Ge.localState):(lt.skipToEnd(),Je.code)}function st(lt){var Ge=[];if(lt.formatting){Ge.push(Je.formatting),typeof lt.formatting=="string"&&(lt.formatting=[lt.formatting]);for(var Ne=0;Ne<lt.formatting.length;Ne++)Ge.push(Je.formatting+"-"+lt.formatting[Ne]),lt.formatting[Ne]==="header"&&Ge.push(Je.formatting+"-"+lt.formatting[Ne]+"-"+lt.header),lt.formatting[Ne]==="quote"&&(!Pt.maxBlockquoteDepth||Pt.maxBlockquoteDepth>=lt.quote?Ge.push(Je.formatting+"-"+lt.formatting[Ne]+"-"+lt.quote):Ge.push("error"))}if(lt.taskOpen)return Ge.push("meta"),Ge.length?Ge.join(" "):null;if(lt.taskClosed)return Ge.push("property"),Ge.length?Ge.join(" "):null;if(lt.linkHref?Ge.push(Je.linkHref,"url"):(lt.strong&&Ge.push(Je.strong),lt.em&&Ge.push(Je.em),lt.strikethrough&&Ge.push(Je.strikethrough),lt.emoji&&Ge.push(Je.emoji),lt.linkText&&Ge.push(Je.linkText),lt.code&&Ge.push(Je.code),lt.image&&Ge.push(Je.image),lt.imageAltText&&Ge.push(Je.imageAltText,"link"),lt.imageMarker&&Ge.push(Je.imageMarker)),lt.header&&Ge.push(Je.header,Je.header+"-"+lt.header),lt.quote&&(Ge.push(Je.quote),!Pt.maxBlockquoteDepth||Pt.maxBlockquoteDepth>=lt.quote?Ge.push(Je.quote+"-"+lt.quote):Ge.push(Je.quote+"-"+Pt.maxBlockquoteDepth)),lt.list!==!1){var Nn=(lt.listStack.length-1)%3;Nn?Nn===1?Ge.push(Je.list2):Ge.push(Je.list3):Ge.push(Je.list1)}return lt.trailingSpaceNewLine?Ge.push("trailing-space-new-line"):lt.trailingSpace&&Ge.push("trailing-space-"+(lt.trailingSpace%2?"a":"b")),Ge.length?Ge.join(" "):null}function rt(lt,Ge){if(lt.match(Te,!0))return st(Ge)}function Tt(lt,Ge){var Ne=Ge.text(lt,Ge);if(typeof Ne!="undefined")return Ne;if(Ge.list)return Ge.list=null,st(Ge);if(Ge.taskList){var Nn=lt.match(Vt,!0)[1]===" ";return Nn?Ge.taskOpen=!0:Ge.taskClosed=!0,Pt.highlightFormatting&&(Ge.formatting="task"),Ge.taskList=!1,st(Ge)}if(Ge.taskOpen=!1,Ge.taskClosed=!1,Ge.header&&lt.match(/^#+$/,!0))return Pt.highlightFormatting&&(Ge.formatting="header"),st(Ge);var Xn=lt.next();if(Ge.linkTitle){Ge.linkTitle=!1;var Xt=Xn;Xn==="("&&(Xt=")"),Xt=(Xt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ai="^\\s*(?:[^"+Xt+"\\\\]+|\\\\\\\\|\\\\.)"+Xt;if(lt.match(new RegExp(ai),!0))return Je.linkHref}if(Xn==="`"){var xn=Ge.formatting;Pt.highlightFormatting&&(Ge.formatting="code"),lt.eatWhile("`");var gi=lt.current().length;if(Ge.code==0&&(!Ge.quote||gi==1))return Ge.code=gi,st(Ge);if(gi==Ge.code){var Zt=st(Ge);return Ge.code=0,Zt}else return Ge.formatting=xn,st(Ge)}else if(Ge.code)return st(Ge);if(Xn==="\\"&&(lt.next(),Pt.highlightFormatting)){var Ct=st(Ge),qt=Je.formatting+"-escape";return Ct?Ct+" "+qt:qt}if(Xn==="!"&&lt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ge.imageMarker=!0,Ge.image=!0,Pt.highlightFormatting&&(Ge.formatting="image"),st(Ge);if(Xn==="["&&Ge.imageMarker&&lt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ge.imageMarker=!1,Ge.imageAltText=!0,Pt.highlightFormatting&&(Ge.formatting="image"),st(Ge);if(Xn==="]"&&Ge.imageAltText){Pt.highlightFormatting&&(Ge.formatting="image");var Ct=st(Ge);return Ge.imageAltText=!1,Ge.image=!1,Ge.inline=Ge.f=yt,Ct}if(Xn==="["&&!Ge.image)return Ge.linkText&&lt.match(/^.*?\]/)||(Ge.linkText=!0,Pt.highlightFormatting&&(Ge.formatting="link")),st(Ge);if(Xn==="]"&&Ge.linkText){Pt.highlightFormatting&&(Ge.formatting="link");var Ct=st(Ge);return Ge.linkText=!1,Ge.inline=Ge.f=lt.match(/\(.*?\)| ?\[.*?\]/,!1)?yt:Tt,Ct}if(Xn==="<"&&lt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=Mt,Pt.highlightFormatting&&(Ge.formatting="link");var Ct=st(Ge);return Ct?Ct+=" ":Ct="",Ct+Je.linkInline}if(Xn==="<"&&lt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=Mt,Pt.highlightFormatting&&(Ge.formatting="link");var Ct=st(Ge);return Ct?Ct+=" ":Ct="",Ct+Je.linkEmail}if(Pt.xml&&Xn==="<"&&lt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var hi=lt.string.indexOf(">",lt.pos);if(hi!=-1){var Kt=lt.string.substring(lt.start,hi);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Kt)&&(Ge.md_inside=!0)}return lt.backUp(1),Ge.htmlState=ve.startState(Ut),me(lt,Ge,qe)}if(Pt.xml&&Xn==="<"&&lt.match(/^\/\w*?>/))return Ge.md_inside=!1,"tag";if(Xn==="*"||Xn==="_"){for(var Xe=1,Le=lt.pos==1?" ":lt.string.charAt(lt.pos-2);Xe<3&&lt.eat(Xn);)Xe++;var Me=lt.peek()||" ",We=!/\s/.test(Me)&&(!ue.test(Me)||/\s/.test(Le)||ue.test(Le)),$e=!/\s/.test(Le)&&(!ue.test(Le)||/\s/.test(Me)||ue.test(Me)),Be=null,ut=null;if(Xe%2&&(!Ge.em&&We&&(Xn==="*"||!$e||ue.test(Le))?Be=!0:Ge.em==Xn&&$e&&(Xn==="*"||!We||ue.test(Me))&&(Be=!1)),Xe>1&&(!Ge.strong&&We&&(Xn==="*"||!$e||ue.test(Le))?ut=!0:Ge.strong==Xn&&$e&&(Xn==="*"||!We||ue.test(Me))&&(ut=!1)),ut!=null||Be!=null){Pt.highlightFormatting&&(Ge.formatting=Be==null?"strong":ut==null?"em":"strong em"),Be===!0&&(Ge.em=Xn),ut===!0&&(Ge.strong=Xn);var Zt=st(Ge);return Be===!1&&(Ge.em=!1),ut===!1&&(Ge.strong=!1),Zt}}else if(Xn===" "&&(lt.eat("*")||lt.eat("_"))){if(lt.peek()===" ")return st(Ge);lt.backUp(1)}if(Pt.strikethrough){if(Xn==="~"&&lt.eatWhile(Xn)){if(Ge.strikethrough){Pt.highlightFormatting&&(Ge.formatting="strikethrough");var Zt=st(Ge);return Ge.strikethrough=!1,Zt}else if(lt.match(/^[^\s]/,!1))return Ge.strikethrough=!0,Pt.highlightFormatting&&(Ge.formatting="strikethrough"),st(Ge)}else if(Xn===" "&&lt.match(/^~~/,!0)){if(lt.peek()===" ")return st(Ge);lt.backUp(2)}}if(Pt.emoji&&Xn===":"&&lt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ge.emoji=!0,Pt.highlightFormatting&&(Ge.formatting="emoji");var Vn=st(Ge);return Ge.emoji=!1,Vn}return Xn===" "&&(lt.match(/^ +$/,!1)?Ge.trailingSpace++:Ge.trailingSpace&&(Ge.trailingSpaceNewLine=!0)),st(Ge)}function Mt(lt,Ge){var Ne=lt.next();if(Ne===">"){Ge.f=Ge.inline=Tt,Pt.highlightFormatting&&(Ge.formatting="link");var Nn=st(Ge);return Nn?Nn+=" ":Nn="",Nn+Je.linkInline}return lt.match(/^[^>]+/,!0),Je.linkInline}function yt(lt,Ge){if(lt.eatSpace())return null;var Ne=lt.next();return Ne==="("||Ne==="["?(Ge.f=Ge.inline=Nt(Ne==="("?")":"]"),Pt.highlightFormatting&&(Ge.formatting="link-string"),Ge.linkHref=!0,st(Ge)):"error"}var Dt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Nt(lt){return function(Ge,Ne){var Nn=Ge.next();if(Nn===lt){Ne.f=Ne.inline=Tt,Pt.highlightFormatting&&(Ne.formatting="link-string");var Xn=st(Ne);return Ne.linkHref=!1,Xn}return Ge.match(Dt[lt]),Ne.linkHref=!0,st(Ne)}}function Bn(lt,Ge){return lt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ge.f=On,lt.next(),Pt.highlightFormatting&&(Ge.formatting="link"),Ge.linkText=!0,st(Ge)):ge(lt,Ge,Tt)}function On(lt,Ge){if(lt.match(/^\]:/,!0)){Ge.f=Ge.inline=Qt,Pt.highlightFormatting&&(Ge.formatting="link");var Ne=st(Ge);return Ge.linkText=!1,Ne}return lt.match(/^([^\]\\]|\\.)+/,!0),Je.linkText}function Qt(lt,Ge){return lt.eatSpace()?null:(lt.match(/^[^\s]+/,!0),lt.peek()===void 0?Ge.linkTitle=!0:lt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ge.f=Ge.inline=Tt,Je.linkHref+" url")}var vn={startState:function(){return{f:Ke,prevLine:{stream:null},thisLine:{stream:null},block:Ke,htmlState:null,indentation:0,inline:Tt,text:rt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(lt){return{f:lt.f,prevLine:lt.prevLine,thisLine:lt.thisLine,block:lt.block,htmlState:lt.htmlState&&ve.copyState(Ut,lt.htmlState),indentation:lt.indentation,localMode:lt.localMode,localState:lt.localMode?ve.copyState(lt.localMode,lt.localState):null,inline:lt.inline,text:lt.text,formatting:!1,linkText:lt.linkText,linkTitle:lt.linkTitle,linkHref:lt.linkHref,code:lt.code,em:lt.em,strong:lt.strong,strikethrough:lt.strikethrough,emoji:lt.emoji,header:lt.header,setext:lt.setext,hr:lt.hr,taskList:lt.taskList,list:lt.list,listStack:lt.listStack.slice(0),quote:lt.quote,indentedCode:lt.indentedCode,trailingSpace:lt.trailingSpace,trailingSpaceNewLine:lt.trailingSpaceNewLine,md_inside:lt.md_inside,fencedEndRE:lt.fencedEndRE}},token:function(lt,Ge){if(Ge.formatting=!1,lt!=Ge.thisLine.stream){if(Ge.header=0,Ge.hr=!1,lt.match(/^\s*$/,!0))return Pe(Ge),null;if(Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:lt},Ge.taskList=!1,Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,!Ge.localState&&(Ge.f=Ge.block,Ge.f!=qe)){var Ne=lt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(Ge.indentation=Ne,Ge.indentationDiff=null,Ne>0)return null}}return Ge.f(lt,Ge)},innerMode:function(lt){return lt.block==qe?{state:lt.htmlState,mode:Ut}:lt.localState?{state:lt.localState,mode:lt.localMode}:{state:lt,mode:vn}},indent:function(lt,Ge,Ne){return lt.block==qe&&Ut.indent?Ut.indent(lt.htmlState,Ge,Ne):lt.localState&&lt.localMode.indent?lt.localMode.indent(lt.localState,Ge,Ne):ve.Pass},blankLine:Pe,getType:st,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return vn},"xml"),ve.defineMIME("text/markdown","markdown"),ve.defineMIME("text/x-markdown","markdown")})},52539:function(Rn,ti,be){(function(ve){ve(be(4631))})(function(ve){"use strict";ve.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var tt=0;tt<ve.modeInfo.length;tt++){var Pt=ve.modeInfo[tt];Pt.mimes&&(Pt.mime=Pt.mimes[0])}ve.findModeByMIME=function(Ut){Ut=Ut.toLowerCase();for(var Bt=0;Bt<ve.modeInfo.length;Bt++){var Re=ve.modeInfo[Bt];if(Re.mime==Ut)return Re;if(Re.mimes){for(var Je=0;Je<Re.mimes.length;Je++)if(Re.mimes[Je]==Ut)return Re}}if(/\+xml$/.test(Ut))return ve.findModeByMIME("application/xml");if(/\+json$/.test(Ut))return ve.findModeByMIME("application/json")},ve.findModeByExtension=function(Ut){Ut=Ut.toLowerCase();for(var Bt=0;Bt<ve.modeInfo.length;Bt++){var Re=ve.modeInfo[Bt];if(Re.ext){for(var Je=0;Je<Re.ext.length;Je++)if(Re.ext[Je]==Ut)return Re}}},ve.findModeByFileName=function(Ut){for(var Bt=0;Bt<ve.modeInfo.length;Bt++){var Re=ve.modeInfo[Bt];if(Re.file&&Re.file.test(Ut))return Re}var Je=Ut.lastIndexOf("."),pt=Je>-1&&Ut.substring(Je+1,Ut.length);if(pt)return ve.findModeByExtension(pt)},ve.findModeByName=function(Ut){Ut=Ut.toLowerCase();for(var Bt=0;Bt<ve.modeInfo.length;Bt++){var Re=ve.modeInfo[Bt];if(Re.name.toLowerCase()==Ut)return Re;if(Re.alias){for(var Je=0;Je<Re.alias.length;Je++)if(Re.alias[Je].toLowerCase()==Ut)return Re}}}})},80785:function(Rn,ti,be){(function(ve){ve(be(4631))})(function(ve){"use strict";ve.defineMode("stex",function(tt,Pt){"use strict";function Ut(Te,ne){Te.cmdState.push(ne)}function Bt(Te){return Te.cmdState.length>0?Te.cmdState[Te.cmdState.length-1]:null}function Re(Te){var ne=Te.cmdState.pop();ne&&ne.closeBracket()}function Je(Te){for(var ne=Te.cmdState,te=ne.length-1;te>=0;te--){var ue=ne[te];if(ue.name!="DEFAULT")return ue}return{styleIdentifier:function(){return null}}}function pt(Te,ne,te){return function(){this.name=Te,this.bracketNo=0,this.style=ne,this.styles=te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var wt={};wt.importmodule=pt("importmodule","tag",["string","builtin"]),wt.documentclass=pt("documentclass","tag",["","atom"]),wt.usepackage=pt("usepackage","tag",["atom"]),wt.begin=pt("begin","tag",["atom"]),wt.end=pt("end","tag",["atom"]),wt.label=pt("label","tag",["atom"]),wt.ref=pt("ref","tag",["atom"]),wt.eqref=pt("eqref","tag",["atom"]),wt.cite=pt("cite","tag",["atom"]),wt.bibitem=pt("bibitem","tag",["atom"]),wt.Bibitem=pt("Bibitem","tag",["atom"]),wt.RBibitem=pt("RBibitem","tag",["atom"]),wt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ht(Te,ne){Te.f=ne}function Vt(Te,ne){var te;if(Te.match(/^\\[a-zA-Z@]+/)){var ue=Te.current().slice(1);return te=wt.hasOwnProperty(ue)?wt[ue]:wt.DEFAULT,te=new te,Ut(ne,te),ht(ne,He),te.style}if(Te.match(/^\\[$&%#{}_]/)||Te.match(/^\\[,;!\/\\]/))return"tag";if(Te.match("\\["))return ht(ne,function(ge,me){return ct(ge,me,"\\]")}),"keyword";if(Te.match("\\("))return ht(ne,function(ge,me){return ct(ge,me,"\\)")}),"keyword";if(Te.match("$$"))return ht(ne,function(ge,me){return ct(ge,me,"$$")}),"keyword";if(Te.match("$"))return ht(ne,function(ge,me){return ct(ge,me,"$")}),"keyword";var se=Te.next();if(se=="%")return Te.skipToEnd(),"comment";if(se=="}"||se=="]"){if(te=Bt(ne),te)te.closeBracket(se),ht(ne,He);else return"error";return"bracket"}else return se=="{"||se=="["?(te=wt.DEFAULT,te=new te,Ut(ne,te),"bracket"):/\d/.test(se)?(Te.eatWhile(/[\w.%]/),"atom"):(Te.eatWhile(/[\w\-_]/),te=Je(ne),te.name=="begin"&&(te.argument=Te.current()),te.styleIdentifier())}function ct(Te,ne,te){if(Te.eatSpace())return null;if(te&&Te.match(te))return ht(ne,Vt),"keyword";if(Te.match(/^\\[a-zA-Z@]+/))return"tag";if(Te.match(/^[a-zA-Z]+/))return"variable-2";if(Te.match(/^\\[$&%#{}_]/)||Te.match(/^\\[,;!\/]/)||Te.match(/^[\^_&]/))return"tag";if(Te.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Te.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ue=Te.next();return ue=="{"||ue=="}"||ue=="["||ue=="]"||ue=="("||ue==")"?"bracket":ue=="%"?(Te.skipToEnd(),"comment"):"error"}function He(Te,ne){var te=Te.peek(),ue;return te=="{"||te=="["?(ue=Bt(ne),ue.openBracket(te),Te.eat(te),ht(ne,Vt),"bracket"):/[ \t\r]/.test(te)?(Te.eat(te),null):(ht(ne,Vt),Re(ne),Vt(Te,ne))}return{startState:function(){var Te=Pt.inMathMode?function(ne,te){return ct(ne,te)}:Vt;return{cmdState:[],f:Te}},copyState:function(Te){return{cmdState:Te.cmdState.slice(),f:Te.f}},token:function(Te,ne){return ne.f(Te,ne)},blankLine:function(Te){Te.f=Vt,Te.cmdState.length=0},lineComment:"%"}}),ve.defineMIME("text/x-stex","stex"),ve.defineMIME("text/x-latex","stex")})},29589:function(Rn,ti,be){(function(ve){ve(be(4631))})(function(ve){"use strict";var tt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Pt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ve.defineMode("xml",function(Ut,Bt){var Re=Ut.indentUnit,Je={},pt=Bt.htmlMode?tt:Pt;for(var wt in pt)Je[wt]=pt[wt];for(var wt in Bt)Je[wt]=Bt[wt];var ht,Vt;function ct(Mt,yt){function Dt(On){return yt.tokenize=On,On(Mt,yt)}var Nt=Mt.next();if(Nt=="<")return Mt.eat("!")?Mt.eat("[")?Mt.match("CDATA[")?Dt(ne("atom","]]>")):null:Mt.match("--")?Dt(ne("comment","-->")):Mt.match("DOCTYPE",!0,!0)?(Mt.eatWhile(/[\w\._\-]/),Dt(te(1))):null:Mt.eat("?")?(Mt.eatWhile(/[\w\._\-]/),yt.tokenize=ne("meta","?>"),"meta"):(ht=Mt.eat("/")?"closeTag":"openTag",yt.tokenize=He,"tag bracket");if(Nt=="&"){var Bn;return Mt.eat("#")?Mt.eat("x")?Bn=Mt.eatWhile(/[a-fA-F\d]/)&&Mt.eat(";"):Bn=Mt.eatWhile(/[\d]/)&&Mt.eat(";"):Bn=Mt.eatWhile(/[\w\.\-:]/)&&Mt.eat(";"),Bn?"atom":"error"}else return Mt.eatWhile(/[^&<]/),null}ct.isInText=!0;function He(Mt,yt){var Dt=Mt.next();if(Dt==">"||Dt=="/"&&Mt.eat(">"))return yt.tokenize=ct,ht=Dt==">"?"endTag":"selfcloseTag","tag bracket";if(Dt=="=")return ht="equals",null;if(Dt=="<"){yt.tokenize=ct,yt.state=me,yt.tagName=yt.tagStart=null;var Nt=yt.tokenize(Mt,yt);return Nt?Nt+" tag error":"tag error"}else return/[\'\"]/.test(Dt)?(yt.tokenize=Te(Dt),yt.stringStartCol=Mt.column(),yt.tokenize(Mt,yt)):(Mt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Te(Mt){var yt=function(Dt,Nt){for(;!Dt.eol();)if(Dt.next()==Mt){Nt.tokenize=He;break}return"string"};return yt.isInAttribute=!0,yt}function ne(Mt,yt){return function(Dt,Nt){for(;!Dt.eol();){if(Dt.match(yt)){Nt.tokenize=ct;break}Dt.next()}return Mt}}function te(Mt){return function(yt,Dt){for(var Nt;(Nt=yt.next())!=null;){if(Nt=="<")return Dt.tokenize=te(Mt+1),Dt.tokenize(yt,Dt);if(Nt==">")if(Mt==1){Dt.tokenize=ct;break}else return Dt.tokenize=te(Mt-1),Dt.tokenize(yt,Dt)}return"meta"}}function ue(Mt,yt,Dt){this.prev=Mt.context,this.tagName=yt,this.indent=Mt.indented,this.startOfLine=Dt,(Je.doNotIndent.hasOwnProperty(yt)||Mt.context&&Mt.context.noIndent)&&(this.noIndent=!0)}function se(Mt){Mt.context&&(Mt.context=Mt.context.prev)}function ge(Mt,yt){for(var Dt;;){if(!Mt.context||(Dt=Mt.context.tagName,!Je.contextGrabbers.hasOwnProperty(Dt)||!Je.contextGrabbers[Dt].hasOwnProperty(yt)))return;se(Mt)}}function me(Mt,yt,Dt){return Mt=="openTag"?(Dt.tagStart=yt.column(),xe):Mt=="closeTag"?Pe:me}function xe(Mt,yt,Dt){return Mt=="word"?(Dt.tagName=yt.current(),Vt="tag",ft):Je.allowMissingTagName&&Mt=="endTag"?(Vt="tag bracket",ft(Mt,yt,Dt)):(Vt="error",xe)}function Pe(Mt,yt,Dt){if(Mt=="word"){var Nt=yt.current();return Dt.context&&Dt.context.tagName!=Nt&&Je.implicitlyClosed.hasOwnProperty(Dt.context.tagName)&&se(Dt),Dt.context&&Dt.context.tagName==Nt||Je.matchClosing===!1?(Vt="tag",Ke):(Vt="tag error",qe)}else return Je.allowMissingTagName&&Mt=="endTag"?(Vt="tag bracket",Ke(Mt,yt,Dt)):(Vt="error",qe)}function Ke(Mt,yt,Dt){return Mt!="endTag"?(Vt="error",Ke):(se(Dt),me)}function qe(Mt,yt,Dt){return Vt="error",Ke(Mt,yt,Dt)}function ft(Mt,yt,Dt){if(Mt=="word")return Vt="attribute",st;if(Mt=="endTag"||Mt=="selfcloseTag"){var Nt=Dt.tagName,Bn=Dt.tagStart;return Dt.tagName=Dt.tagStart=null,Mt=="selfcloseTag"||Je.autoSelfClosers.hasOwnProperty(Nt)?ge(Dt,Nt):(ge(Dt,Nt),Dt.context=new ue(Dt,Nt,Bn==Dt.indented)),me}return Vt="error",ft}function st(Mt,yt,Dt){return Mt=="equals"?rt:(Je.allowMissing||(Vt="error"),ft(Mt,yt,Dt))}function rt(Mt,yt,Dt){return Mt=="string"?Tt:Mt=="word"&&Je.allowUnquoted?(Vt="string",ft):(Vt="error",ft(Mt,yt,Dt))}function Tt(Mt,yt,Dt){return Mt=="string"?Tt:ft(Mt,yt,Dt)}return{startState:function(Mt){var yt={tokenize:ct,state:me,indented:Mt||0,tagName:null,tagStart:null,context:null};return Mt!=null&&(yt.baseIndent=Mt),yt},token:function(Mt,yt){if(!yt.tagName&&Mt.sol()&&(yt.indented=Mt.indentation()),Mt.eatSpace())return null;ht=null;var Dt=yt.tokenize(Mt,yt);return(Dt||ht)&&Dt!="comment"&&(Vt=null,yt.state=yt.state(ht||Dt,Mt,yt),Vt&&(Dt=Vt=="error"?Dt+" error":Vt)),Dt},indent:function(Mt,yt,Dt){var Nt=Mt.context;if(Mt.tokenize.isInAttribute)return Mt.tagStart==Mt.indented?Mt.stringStartCol+1:Mt.indented+Re;if(Nt&&Nt.noIndent)return ve.Pass;if(Mt.tokenize!=He&&Mt.tokenize!=ct)return Dt?Dt.match(/^(\s*)/)[0].length:0;if(Mt.tagName)return Je.multilineTagIndentPastTag!==!1?Mt.tagStart+Mt.tagName.length+2:Mt.tagStart+Re*(Je.multilineTagIndentFactor||1);if(Je.alignCDATA&&/<!\[CDATA\[/.test(yt))return 0;var Bn=yt&&/^<(\/)?([\w_:\.-]*)/.exec(yt);if(Bn&&Bn[1])for(;Nt;)if(Nt.tagName==Bn[2]){Nt=Nt.prev;break}else if(Je.implicitlyClosed.hasOwnProperty(Nt.tagName))Nt=Nt.prev;else break;else if(Bn)for(;Nt;){var On=Je.contextGrabbers[Nt.tagName];if(On&&On.hasOwnProperty(Bn[2]))Nt=Nt.prev;else break}for(;Nt&&Nt.prev&&!Nt.startOfLine;)Nt=Nt.prev;return Nt?Nt.indent+Re:Mt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Je.htmlMode?"html":"xml",helperType:Je.htmlMode?"html":"xml",skipAttribute:function(Mt){Mt.state==rt&&(Mt.state=ft)},xmlCurrentTag:function(Mt){return Mt.tagName?{name:Mt.tagName,close:Mt.type=="closeTag"}:null},xmlCurrentContext:function(Mt){for(var yt=[],Dt=Mt.context;Dt;Dt=Dt.prev)Dt.tagName&&yt.push(Dt.tagName);return yt.reverse()}}}),ve.defineMIME("text/xml","xml"),ve.defineMIME("application/xml","xml"),ve.mimeModes.hasOwnProperty("text/html")||ve.defineMIME("text/html",{name:"xml",htmlMode:!0})})},28734:function(Rn){(function(ti,be){Rn.exports=be()})(this,function(){"use strict";return function(ti,be){var ve=be.prototype,tt=ve.format;ve.format=function(Pt){var Ut=this,Bt=this.$locale();if(!this.isValid())return tt.bind(this)(Pt);var Re=this.$utils(),Je=(Pt||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(pt){switch(pt){case"Q":return Math.ceil((Ut.$M+1)/3);case"Do":return Bt.ordinal(Ut.$D);case"gggg":return Ut.weekYear();case"GGGG":return Ut.isoWeekYear();case"wo":return Bt.ordinal(Ut.week(),"W");case"w":case"ww":return Re.s(Ut.week(),pt==="w"?1:2,"0");case"W":case"WW":return Re.s(Ut.isoWeek(),pt==="W"?1:2,"0");case"k":case"kk":return Re.s(String(Ut.$H===0?24:Ut.$H),pt==="k"?1:2,"0");case"X":return Math.floor(Ut.$d.getTime()/1e3);case"x":return Ut.$d.getTime();case"z":return"["+Ut.offsetName()+"]";case"zzz":return"["+Ut.offsetName("long")+"]";default:return pt}});return tt.bind(this)(Je)}}})},96036:function(Rn){(function(ti,be){Rn.exports=be()})(this,function(){"use strict";return function(ti,be,ve){var tt=be.prototype,Pt=function(pt){return pt&&(pt.indexOf?pt:pt.s)},Ut=function(pt,wt,ht,Vt,ct){var He=pt.name?pt:pt.$locale(),Te=Pt(He[wt]),ne=Pt(He[ht]),te=Te||ne.map(function(se){return se.slice(0,Vt)});if(!ct)return te;var ue=He.weekStart;return te.map(function(se,ge){return te[(ge+(ue||0))%7]})},Bt=function(){return ve.Ls[ve.locale()]},Re=function(pt,wt){return pt.formats[wt]||function(ht){return ht.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Vt,ct,He){return ct||He.slice(1)})}(pt.formats[wt.toUpperCase()])},Je=function(){var pt=this;return{months:function(wt){return wt?wt.format("MMMM"):Ut(pt,"months")},monthsShort:function(wt){return wt?wt.format("MMM"):Ut(pt,"monthsShort","months",3)},firstDayOfWeek:function(){return pt.$locale().weekStart||0},weekdays:function(wt){return wt?wt.format("dddd"):Ut(pt,"weekdays")},weekdaysMin:function(wt){return wt?wt.format("dd"):Ut(pt,"weekdaysMin","weekdays",2)},weekdaysShort:function(wt){return wt?wt.format("ddd"):Ut(pt,"weekdaysShort","weekdays",3)},longDateFormat:function(wt){return Re(pt.$locale(),wt)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};tt.localeData=function(){return Je.bind(this)()},ve.localeData=function(){var pt=Bt();return{firstDayOfWeek:function(){return pt.weekStart||0},weekdays:function(){return ve.weekdays()},weekdaysShort:function(){return ve.weekdaysShort()},weekdaysMin:function(){return ve.weekdaysMin()},months:function(){return ve.months()},monthsShort:function(){return ve.monthsShort()},longDateFormat:function(wt){return Re(pt,wt)},meridiem:pt.meridiem,ordinal:pt.ordinal}},ve.months=function(){return Ut(Bt(),"months")},ve.monthsShort=function(){return Ut(Bt(),"monthsShort","months",3)},ve.weekdays=function(pt){return Ut(Bt(),"weekdays",null,null,pt)},ve.weekdaysShort=function(pt){return Ut(Bt(),"weekdaysShort","weekdays",3,pt)},ve.weekdaysMin=function(pt){return Ut(Bt(),"weekdaysMin","weekdays",2,pt)}}})},55183:function(Rn){(function(ti,be){Rn.exports=be()})(this,function(){"use strict";var ti="week",be="year";return function(ve,tt,Pt){var Ut=tt.prototype;Ut.week=function(Bt){if(Bt===void 0&&(Bt=null),Bt!==null)return this.add(7*(Bt-this.week()),"day");var Re=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var Je=Pt(this).startOf(be).add(1,be).date(Re),pt=Pt(this).endOf(ti);if(Je.isBefore(pt))return 1}var wt=Pt(this).startOf(be).date(Re).startOf(ti).subtract(1,"millisecond"),ht=this.diff(wt,ti,!0);return ht<0?Pt(this).startOf("week").week():Math.ceil(ht)},Ut.weeks=function(Bt){return Bt===void 0&&(Bt=null),this.week(Bt)}}})},172:function(Rn){(function(ti,be){Rn.exports=be()})(this,function(){"use strict";return function(ti,be){be.prototype.weekYear=function(){var ve=this.month(),tt=this.week(),Pt=this.year();return tt===1&&ve===11?Pt+1:ve===0&&tt>=52?Pt-1:Pt}}})},6833:function(Rn){(function(ti,be){Rn.exports=be()})(this,function(){"use strict";return function(ti,be){be.prototype.weekday=function(ve){var tt=this.$locale().weekStart||0,Pt=this.$W,Ut=(Pt<tt?Pt+7:Pt)-tt;return this.$utils().u(ve)?Ut:this.subtract(Ut,"day").add(ve,"day")}}})},23495:function(Rn,ti,be){"use strict";be.d(ti,{$u:function(){return wt},BD:function(){return Xe},E9:function(){return pt},FF:function(){return Ha},FJ:function(){return me},Hn:function(){return ge},KX:function(){return Pe},NB:function(){return Pn},S0:function(){return qt},UL:function(){return ht},Vk:function(){return se},Vm:function(){return mn},YI:function(){return hi},ZA:function(){return Pt},Zt:function(){return Vt},al:function(){return Be},bn:function(){return $e},bx:function(){return Le},g2:function(){return Kt},h1:function(){return rt},hD:function(){return Bi},l4:function(){return Re},rU:function(){return oi},s_:function(){return Me},uz:function(){return Cn},z6:function(){return ct}}),Rn=be.hmd(Rn),function(){var Ee;function pn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function hn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:pn(a)}}function ri(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Jn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Wn;if(typeof Object.setPrototypeOf=="function")Wn=Object.setPrototypeOf;else{var nn;e:{var ii={a:!0},Wt={};try{Wt.__proto__=ii,nn=Wt.a;break e}catch(a){}nn=!1}Wn=nn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Gt=Wn;function Ft(a,y){if(a.prototype=Jn(y.prototype),a.prototype.constructor=a,Gt)Gt(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var un=typeof be.g!="undefined"&&be.g!=null?be.g:self,Ti=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},Ri=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function di(a,y){if(y){var x=un;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&Ri(x,a,{writable:!0,value:y})}}di("Object.assign",function(a){return a||Ti}),di("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var Yt=typeof globalThis=="object"&&globalThis||typeof be.g=="object"&&be.g.global===be.g&&be.g||typeof self=="object"&&self.self===self&&self||{};Yt.requestAnimationFrame===void 0&&(Yt.setImmediate===void 0?Yt.requestAnimationFrame=function(a){Yt.setTimeout(a,0)}:Yt.requestAnimationFrame=Yt.setImmediate);function Hn(){}function En(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Yt.clearTimeout(x),x=Fr(function(){x=-1,a.apply(E,b)},y)}}function Fr(a,y){return Yt.setTimeout(a,y)}function si(a){return Yt.document.createElement(a)}function tn(a){throw Error(a)}function Vi(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),tn(a)}function Hr(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),tn(x+" is not in the range "+y+": "+a)}function Or(a){Yt.console&&Yt.console.log(a)}function wn(a){return typeof a=="object"&&a!==null}function or(a){return Array.isArray(a)||Yt.NodeList&&a instanceof Yt.NodeList||Yt.HTMLCollection&&a instanceof Yt.HTMLCollection}function Xo(a){return Array.prototype.slice.call(a)}function Na(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):tn("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function aa(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):tn("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function hr(){var a=Ns.pop();return a===void 0?[]:a}function Nr(a){a.length=0,Ns.push(a)}function io(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(wn(a)&&a.constructor)return io(a.constructor);return typeof a}function va(a){var y=a;return wn(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Ho(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function vi(a,y,x){Object.defineProperty(xs.prototype,a,{get:y,set:x})}function lo(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",ee=0;ee<a.length;ee++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var al=Yt.navigator!==void 0&&0<Yt.navigator.userAgent.indexOf("Trident/7"),el=Yt.navigator!==void 0&&Yt.navigator.platform!==void 0&&Yt.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Ns=[];Object.freeze([]),Hn.className="Util",Hn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Hn.adym="gojs.net",Hn.vfo="28e645fdb266",Hn.className="Util";function ln(a,y,x){Po(this),this.j=a,this.xa=y,this.o=x}ln.prototype.toString=function(){return"EnumValue."+this.xa};function Yo(a,y){return y==null||y===""?null:a[y]}un.Object.defineProperties(ln.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),ln.className="EnumValue";function Va(){this.ew=[]}Va.prototype.toString=function(){return this.ew.join("")},Va.prototype.add=function(a){a!==""&&this.ew.push(a)},Va.className="StringBuilder";function Ao(){}Ao.className="PropertyCollection";var ms={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Yt.console&&Yt.console.log(a)},HA:function(a,y,x,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function Ba(){}Ba.prototype.reset=function(){},Ba.prototype.next=function(){return!1},Ba.prototype.Ad=function(){return!1},Ba.prototype.first=function(){return null},Ba.prototype.any=function(){return!1},Ba.prototype.all=function(){return!0},Ba.prototype.each=function(){return this},Ba.prototype.map=function(){return this},Ba.prototype.filter=function(){return this},Ba.prototype.de=function(){},Ba.prototype.toString=function(){return"EmptyIterator"},un.Object.defineProperties(Ba.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Ba.prototype.first=Ba.prototype.first,Ba.prototype.hasNext=Ba.prototype.Ad,Ba.prototype.next=Ba.prototype.next,Ba.prototype.reset=Ba.prototype.reset;var $a=null;Ba.className="EmptyIterator",$a=new Ba;function Er(a){this.key=-1,this.value=a}Er.prototype.reset=function(){this.key=-1},Er.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Er.prototype.Ad=function(){return this.next()},Er.prototype.first=function(){return this.key=0,this.value},Er.prototype.any=function(a){return this.key=-1,a(this.value)},Er.prototype.all=function(a){return this.key=-1,a(this.value)},Er.prototype.each=function(a){return this.key=-1,a(this.value),this},Er.prototype.map=function(a){return new Er(a(this.value))},Er.prototype.filter=function(a){return a(this.value)?new Er(this.value):$a},Er.prototype.de=function(){this.value=null},Er.prototype.toString=function(){return"SingletonIterator("+this.value+")"},un.Object.defineProperties(Er.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Er.prototype.first=Er.prototype.first,Er.prototype.hasNext=Er.prototype.Ad,Er.prototype.next=Er.prototype.next,Er.prototype.reset=Er.prototype.reset,Er.className="SingletonIterator";function uo(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}uo.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},uo.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},uo.prototype.Ad=function(){return this.next()},uo.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},uo.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},uo.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},uo.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},uo.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ee=y[z];(b===null||b(ee))&&x.push(a(ee))}return a=new _n,a.s=x,a.xb(),a.iterator},uo.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ee=y[z];(b===null||b(ee))&&a(ee)&&x.push(ee)}return a=new _n,a.s=x,a.xb(),a.iterator},uo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},uo.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},un.Object.defineProperties(uo.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),uo.prototype.first=uo.prototype.first,uo.prototype.hasNext=uo.prototype.Ad,uo.prototype.next=uo.prototype.next,uo.prototype.reset=uo.prototype.reset,uo.className="ListIterator";function So(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}So.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},So.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},So.prototype.Ad=function(){return this.next()},So.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},So.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},So.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},So.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},So.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new _n,a.s=x,a.xb(),a.iterator},So.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new _n,a.s=x,a.xb(),a.iterator},So.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},So.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},un.Object.defineProperties(So.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),So.prototype.first=So.prototype.first,So.prototype.hasNext=So.prototype.Ad,So.prototype.next=So.prototype.next,So.prototype.reset=So.prototype.reset,So.className="ListIteratorBackwards";function _n(a){Po(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&tn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=_n.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"List()#"+ds(this)},Ee.add=function(a){return a===null?this:(this._isFrozen&&Vi(this,a),this.s.push(a),this.xb(),this)},Ee.push=function(a){this.add(a)},Ee.addAll=function(a){if(a===null)return this;this._isFrozen&&Vi(this);var y=this.s;if(or(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Ee.clear=function(){this._isFrozen&&Vi(this),this.s.length=0,this.xb()},Ee.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ee.has=function(a){return this.contains(a)},Ee.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ee.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Hr(a,"0 <= i < length",_n,"elt:i"),y[a]},Ee.get=function(a){return this.M(a)},Ee.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Hr(a,"0 <= i < length",_n,"setElt:i"),this._isFrozen&&Vi(this,a),x[a]=y},Ee.set=function(a,y){this.cd(a,y)},Ee.first=function(){var a=this.s;return a.length===0?null:a[0]},Ee.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ee.pop=function(){this._isFrozen&&Vi(this);var a=this.s;return 0<a.length?a.pop():null},_n.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},_n.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},_n.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},_n.prototype.map=function(a){for(var y=new _n,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},_n.prototype.filter=function(a){for(var y=new _n,x=[],E=this.s,b=E.length,z=0;z<b;z++){var ee=E[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Ee=_n.prototype,Ee.Gb=function(a,y){0>a&&Hr(a,">= 0",_n,"insertAt:i"),this._isFrozen&&Vi(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Vi(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ee.delete=function(a){return this.remove(a)},Ee.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Hr(a,"0 <= i < length",_n,"removeAt:i"),this._isFrozen&&Vi(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ee.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&Vi(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},_n.prototype.copy=function(){var a=new _n,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ee=_n.prototype,Ee.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Ee.Iv=function(){for(var a=new An,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Ee.sort=function(a){return this._isFrozen&&Vi(this),this.s.sort(a),this.xb(),this},Ee.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&Vi(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Hr(y,"0 <= from < length",_n,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},Ee.reverse=function(){return this._isFrozen&&Vi(this),this.s.reverse(),this.xb(),this},un.Object.defineProperties(_n.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return $a;var a=this.Sa;return a!==null?(a.reset(),a):new uo(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return $a;var a=this.Hg;return a!==null?(a.reset(),a):new So(this)}}}),_n.prototype.reverse=_n.prototype.reverse,_n.prototype.sortRange=_n.prototype.zi,_n.prototype.sort=_n.prototype.sort,_n.prototype.toSet=_n.prototype.Iv,_n.prototype.toArray=_n.prototype.Fa,_n.prototype.removeRange=_n.prototype.removeRange,_n.prototype.removeAt=_n.prototype.mb,_n.prototype.delete=_n.prototype.delete,_n.prototype.remove=_n.prototype.remove,_n.prototype.insertAt=_n.prototype.Gb,_n.prototype.pop=_n.prototype.pop,_n.prototype.last=_n.prototype.jc,_n.prototype.first=_n.prototype.first,_n.prototype.set=_n.prototype.set,_n.prototype.setElt=_n.prototype.cd,_n.prototype.get=_n.prototype.get,_n.prototype.elt=_n.prototype.M,_n.prototype.indexOf=_n.prototype.indexOf,_n.prototype.has=_n.prototype.has,_n.prototype.contains=_n.prototype.contains,_n.prototype.clear=_n.prototype.clear,_n.prototype.addAll=_n.prototype.addAll,_n.prototype.push=_n.prototype.push,_n.prototype.add=_n.prototype.add,_n.prototype.thaw=_n.prototype.ka,_n.prototype.freeze=_n.prototype.freeze,_n.className="List";function ka(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ka.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ka.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},ka.prototype.Ad=function(){return this.next()},ka.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},ka.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ka.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ka.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},ka.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new _n;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ka.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new _n;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ka.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ka.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},un.Object.defineProperties(ka.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ka.prototype.first=ka.prototype.first,ka.prototype.hasNext=ka.prototype.Ad,ka.prototype.next=ka.prototype.next,ka.prototype.reset=ka.prototype.reset,ka.className="SetIterator";function An(a){Po(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&tn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=An.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"Set()#"+ds(this)},Ee.add=function(a){if(a===null)return this;this._isFrozen&&Vi(this,a);var y=a;return wn(a)&&(y=Ws(a)),this.Tb[y]===void 0&&(this.Sb++,a=new tl(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},Ee.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Vi(this),or(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Ee.contains=function(a){if(a===null)return!1;var y=a;return wn(a)&&(y=ds(a),y===void 0)?!1:this.Tb[y]!==void 0},Ee.has=function(a){return this.contains(a)},Ee.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ee.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ee.first=function(){var a=this.ea;return a===null?null:a.value},An.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},An.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},An.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},An.prototype.map=function(a){for(var y=new An,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},An.prototype.filter=function(a){for(var y=new An,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Ee=An.prototype,Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Vi(this,a);var y=a;if(wn(a)&&(y=ds(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Ee.delete=function(a){return this.remove(a)},Ee.hp=function(a){if(a===null)return this;if(this._isFrozen&&Vi(this),or(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Ee.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Vi(this);var y=new An;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},Ee.clear=function(){this._isFrozen&&Vi(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},An.prototype.copy=function(){var a=new An,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},An.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},An.prototype.Hv=function(){var a=new _n,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Po(a){a.__gohashid=kl++}function Ws(a){var y=a.__gohashid;return y===void 0&&(y=kl++,a.__gohashid=y),y}function ds(a){return a.__gohashid}un.Object.defineProperties(An.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return $a;var a=this.Sa;return a!==null?(a.reset(),a):new ka(this)}}}),An.prototype.toList=An.prototype.Hv,An.prototype.toArray=An.prototype.Fa,An.prototype.clear=An.prototype.clear,An.prototype.retainAll=An.prototype.pA,An.prototype.removeAll=An.prototype.hp,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.first=An.prototype.first,An.prototype.containsAny=An.prototype.Ty,An.prototype.containsAll=An.prototype.Sy,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.addAll=An.prototype.addAll,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze;var kl=1;An.className="Set",An.uniqueHash=Po,An.hashIdUnique=Ws,An.hashId=ds;function Ss(a){this.ma=a,this.qa=a.Ja,this.sa=null}Ss.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Ss.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Ss.prototype.Ad=function(){return this.next()},Ss.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Ss.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ss.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ss.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Ss.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new _n;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Ss.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new _n;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Ss.prototype.de=function(){this.value=this.key=null,this.qa=-1},Ss.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},un.Object.defineProperties(Ss.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ss.prototype.first=Ss.prototype.first,Ss.prototype.hasNext=Ss.prototype.Ad,Ss.prototype.next=Ss.prototype.next,Ss.prototype.reset=Ss.prototype.reset,Ss.className="MapKeySetIterator";function Ua(a){An.call(this),Po(this),this._isFrozen=!0,this.ma=a}Ft(Ua,An),Ee=Ua.prototype,Ee.freeze=function(){return this},Ee.ka=function(){return this},Ee.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ee.add=function(){tn("This Set is read-only: "+this.toString())},Ee.contains=function(a){return this.ma.contains(a)},Ee.has=function(a){return this.contains(a)},Ee.remove=function(){tn("This Set is read-only: "+this.toString())},Ee.delete=function(a){return this.remove(a)},Ee.clear=function(){tn("This Set is read-only: "+this.toString())},Ee.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ua.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ua.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ua.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ua.prototype.map=function(a){for(var y=new An,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ua.prototype.filter=function(a){for(var y=new An,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Ua.prototype.copy=function(){return new Ua(this.ma)},Ua.prototype.Iv=function(){var a=new An,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ua.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Ua.prototype.Hv=function(){var a=new _n,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},un.Object.defineProperties(Ua.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?$a:new Ss(this.ma)}}}),Ua.prototype.toList=Ua.prototype.Hv,Ua.prototype.toArray=Ua.prototype.Fa,Ua.prototype.toSet=Ua.prototype.Iv,Ua.prototype.first=Ua.prototype.first,Ua.prototype.clear=Ua.prototype.clear,Ua.prototype.delete=Ua.prototype.delete,Ua.prototype.remove=Ua.prototype.remove,Ua.prototype.has=Ua.prototype.has,Ua.prototype.contains=Ua.prototype.contains,Ua.prototype.add=Ua.prototype.add,Ua.prototype.thaw=Ua.prototype.ka,Ua.prototype.freeze=Ua.prototype.freeze,Ua.className="MapKeySet";function us(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}us.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},us.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},us.prototype.Ad=function(){return this.next()},us.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},us.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},us.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},us.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},us.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new _n;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},us.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new _n;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},us.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},us.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},un.Object.defineProperties(us.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),us.prototype.first=us.prototype.first,us.prototype.hasNext=us.prototype.Ad,us.prototype.next=us.prototype.next,us.prototype.reset=us.prototype.reset,us.className="MapValueSetIterator";function tl(a,y){this.key=a,this.value=y,this.ll=this.va=null}tl.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},tl.className="KeyValuePair";function ts(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ts.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ts.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},ts.prototype.Ad=function(){return this.next()},ts.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},ts.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ts.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ts.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},ts.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new _n;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ts.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new _n;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ts.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ts.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},un.Object.defineProperties(ts.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ts.prototype.first=ts.prototype.first,ts.prototype.hasNext=ts.prototype.Ad,ts.prototype.next=ts.prototype.next,ts.prototype.reset=ts.prototype.reset,ts.className="MapIterator";function wr(a){Po(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&tn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=wr.prototype,Ee.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.toString=function(){return"Map()#"+ds(this)},Ee.add=function(a,y){this._isFrozen&&Vi(this,a);var x=a;wn(a)&&(x=Ws(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new tl(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):E.value=y,this},Ee.set=function(a,y){return this.add(a,y)},Ee.addAll=function(a){if(a===null)return this;if(or(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof wr)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Ee.first=function(){return this.ea},wr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},wr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},wr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},wr.prototype.map=function(a){for(var y=new wr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},wr.prototype.filter=function(a){for(var y=new wr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ee=wr.prototype,Ee.contains=function(a){var y=a;return wn(a)&&(y=ds(a),y===void 0)?!1:this.Tb[y]!==void 0},Ee.has=function(a){return this.contains(a)},Ee.I=function(a){var y=a;return wn(a)&&(y=ds(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ee.get=function(a){return this.I(a)},Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&Vi(this,a);var y=a;if(wn(a)&&(y=ds(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Ee.delete=function(a){return this.remove(a)},Ee.clear=function(){this._isFrozen&&Vi(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},wr.prototype.copy=function(){var a=new wr,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},wr.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new tl(b.key,b.value),x++}return y},wr.prototype.Lf=function(){return new Ua(this)},un.Object.defineProperties(wr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return $a;var a=this.Sa;return a!==null?(a.reset(),a):new ts(this)}},iteratorKeys:{get:function(){return 0>=this.count?$a:new Ss(this)}},iteratorValues:{get:function(){if(0>=this.count)return $a;var a=this.jf;return a!==null?(a.reset(),a):new us(this)}}}),wr.prototype.toKeySet=wr.prototype.Lf,wr.prototype.toArray=wr.prototype.Fa,wr.prototype.clear=wr.prototype.clear,wr.prototype.delete=wr.prototype.delete,wr.prototype.remove=wr.prototype.remove,wr.prototype.get=wr.prototype.get,wr.prototype.getValue=wr.prototype.I,wr.prototype.has=wr.prototype.has,wr.prototype.contains=wr.prototype.contains,wr.prototype.first=wr.prototype.first,wr.prototype.addAll=wr.prototype.addAll,wr.prototype.set=wr.prototype.set,wr.prototype.add=wr.prototype.add,wr.prototype.thaw=wr.prototype.ka,wr.prototype.freeze=wr.prototype.freeze,wr.className="Map";function at(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):tn("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var St,zt,gn,Kn,Ii;at.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},at.prototype.h=function(a,y){return this.x=a,this.y=y,this},at.prototype.sg=function(a,y){return this.x=a,this.y=y,this},at.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},at.prototype.copy=function(){var a=new at;return a.x=this.x,a.y=this.y,a},Ee=at.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Jt(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new at(x,b)}return new at}function Qn(a){return a.x.toString()+" "+a.y.toString()}Ee.toString=function(){return"Point("+this.x+","+this.y+")"},Ee.D=function(a){return a instanceof at?this.x===a.x&&this.y===a.y:!1},Ee.hi=function(a,y){return this.x===a&&this.y===y},Ee.Xa=function(a){return Rt.B(this.x,a.x)&&Rt.B(this.y,a.y)},Ee.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ee.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ee.offset=function(a,y){return this.x+=a,this.y+=y,this},at.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ee=at.prototype,Ee.scale=function(a,y){return this.x*=a,this.y*=y,this},Ee.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ee.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ee.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},Ee.ab=function(a){return Qi(a.x-this.x,a.y-this.y)},Ee.direction=function(a,y){return Qi(a-this.x,y-this.y)};function Qi(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ee.Ry=function(a,y){return Rt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ee.fA=function(a,y,x,E){return Rt.qh(a,y,x,E,this.x,this.y,this),this},Ee.gA=function(a,y){return Rt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ee.uA=function(a,y,x,E){return Rt.No(this.x,this.y,a,y,x,E,this),this},Ee.vA=function(a,y){return Rt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ee.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ee.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ee.transform=function(a){return a.Ga(this),this};function wi(a,y){return y.Cd(a),a}function nr(a,y,x,E,b,z){var ee=b-x,re=z-E,ae=ee*ee+re*re;x-=a,E-=y;var le=-x*ee-E*re;return 0>=le||le>=ae?(ee=b-a,re=z-y,Math.min(x*x+E*E,ee*ee+re*re)):(a=ee*E-re*x,a*a/ae)}function Xi(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Si(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ee.w=function(){return isFinite(this.x)&&isFinite(this.y)},at.alloc=function(){var a=pr.pop();return a===void 0?new at:a},at.allocAt=function(a,y){var x=pr.pop();return x===void 0?new at(a,y):(x.x=a,x.y=y,x)},at.free=function(a){pr.push(a)},at.prototype.isReal=at.prototype.w,at.prototype.setSpot=at.prototype.yi,at.prototype.setRectSpot=at.prototype.xi,at.prototype.snapToGridPoint=at.prototype.vA,at.prototype.snapToGrid=at.prototype.uA,at.prototype.projectOntoLineSegmentPoint=at.prototype.gA,at.prototype.projectOntoLineSegment=at.prototype.fA,at.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return Rt.Rl(a,y,x,E,b,z,ee,re)},at.prototype.compareWithLineSegmentPoint=at.prototype.Ry,at.compareWithLineSegment=function(a,y,x,E,b,z){return Rt.Fl(a,y,x,E,b,z)},at.prototype.direction=at.prototype.direction,at.prototype.directionPoint=at.prototype.ab,at.prototype.normalize=at.prototype.normalize,at.prototype.distanceSquared=at.prototype.zd,at.prototype.distanceSquaredPoint=at.prototype.Bf,at.prototype.scale=at.prototype.scale,at.prototype.rotate=at.prototype.rotate,at.prototype.offset=at.prototype.offset,at.prototype.subtract=at.prototype.re,at.prototype.add=at.prototype.add,at.prototype.equalsApprox=at.prototype.Xa,at.prototype.equalTo=at.prototype.hi,at.prototype.equals=at.prototype.D,at.prototype.set=at.prototype.set,at.prototype.setTo=at.prototype.sg;var pr=[];at.className="Point",at.parse=Jt,at.stringify=Qn,at.distanceLineSegmentSquared=nr,at.distanceSquared=Xi,at.direction=Si,at.Origin=St=new at(0,0).ja(),at.InfiniteTopLeft=zt=new at(-1/0,-1/0).ja(),at.InfiniteBottomRight=gn=new at(1/0,1/0).ja(),at.SixPoint=Kn=new at(6,6).ja(),at.NoPoint=Ii=new at(NaN,NaN).ja(),at.parse=Jt,at.stringify=Qn,at.distanceLineSegmentSquared=nr,at.distanceSquared=Xi,at.direction=Si;function fn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):tn("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var eo,so,ya,fa,Ia,ns,Us;fn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},fn.prototype.h=function(a,y){return this.width=a,this.height=y,this},fn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},fn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},fn.prototype.copy=function(){var a=new fn;return a.width=this.width,a.height=this.height,a},Ee=fn.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ds(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new fn(x,b)}return new fn}function fl(a){return a.width.toString()+" "+a.height.toString()}Ee.toString=function(){return"Size("+this.width+","+this.height+")"},Ee.D=function(a){return a instanceof fn?this.width===a.width&&this.height===a.height:!1},Ee.hi=function(a,y){return this.width===a&&this.height===y},Ee.Xa=function(a){return Rt.B(this.width,a.width)&&Rt.B(this.height,a.height)},Ee.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ee.w=function(){return isFinite(this.width)&&isFinite(this.height)},fn.alloc=function(){var a=Hs.pop();return a===void 0?new fn:a},fn.free=function(a){Hs.push(a)},fn.prototype.isReal=fn.prototype.w,fn.prototype.inflate=fn.prototype.Bc,fn.prototype.equalsApprox=fn.prototype.Xa,fn.prototype.equalTo=fn.prototype.hi,fn.prototype.equals=fn.prototype.D,fn.prototype.set=fn.prototype.set,fn.prototype.setTo=fn.prototype.sg;var Hs=[];fn.className="Size",fn.parse=Ds,fn.stringify=fl,fn.ZeroSize=eo=new fn(0,0).ja(),fn.OneSize=so=new fn(1,1).ja(),fn.SixSize=ya=new fn(6,6).ja(),fn.EightSize=fa=new fn(8,8).ja(),fn.TenSize=Ia=new fn(10,10).ja(),fn.InfiniteSize=ns=new fn(1/0,1/0).ja(),fn.NoSize=Us=new fn(NaN,NaN).ja(),fn.parse=Ds,fn.stringify=fl;function cn(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof at?(x=a.x,a=a.y,y instanceof at?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof fn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):tn("Incorrect second argument supplied to Rect constructor "+y)):tn("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ee=cn.prototype,Ee.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ee.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function nl(a,y,x){a.width=y,a.height=x}Ee.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ee.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ee.dd=function(a){return this.x=a.x,this.y=a.y,this},Ee.tA=function(a){return this.width=a.width,this.height=a.height,this},cn.prototype.copy=function(){var a=new cn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ee=cn.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function dl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ee=0;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),new cn(x,b,z,ee)}return new cn}function gl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ee.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ee.D=function(a){return a instanceof cn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ee.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ee.Xa=function(a){return Rt.B(this.x,a.x)&&Rt.B(this.y,a.y)&&Rt.B(this.width,a.width)&&Rt.B(this.height,a.height)};function Ys(a,y){return Rt.$(a.x,y.x)&&Rt.$(a.y,y.y)&&Rt.$(a.width,y.width)&&Rt.$(a.height,y.height)}Ee.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ee.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ee.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ee.offset=function(a,y){return this.x+=a,this.y+=y,this},Ee.Bc=function(a,y){return Ul(this,y,a,y,a)},Ee.Co=function(a){return Ul(this,a.top,a.right,a.bottom,a.left)},Ee.Fv=function(a){return Ul(this,-a.top,-a.right,-a.bottom,-a.left)},Ee.Hz=function(a,y,x,E){return Ul(this,a,y,x,E)};function Ul(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ee.Ex=function(a){return hu(this,a.x,a.y,a.width,a.height)},Ee.Uu=function(a,y,x,E){return hu(this,a,y,x,E)};function hu(a,y,x,E,b){var z=Math.max(a.x,y),ee=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Ee.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ee.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function fc(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ee.Ye=function(a){return _s(this,a.x,a.y,0,0)},Ee.ed=function(a){return _s(this,a.x,a.y,a.width,a.height)},Ee.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),_s(this,a,y,x,E)};function _s(a,y,x,E,b){var z=Math.min(a.x,y),ee=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=ee,a.width=y-z,a.height=x-ee,a}Ee.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function il(a,y,x,E,b,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=b&&b+ee<=a+x&&y<=z&&z+re<=y+E}function Ra(a,y,x,E,b,z,ee,re){return a>ee+b||b>x+a?!1:!(y>re+z||z>E+y)}Ee.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ee.Mz=function(){return this.width===0&&this.height===0},cn.alloc=function(){var a=pl.pop();return a===void 0?new cn:a},cn.allocAt=function(a,y,x,E){var b=pl.pop();return b===void 0?new cn(a,y,x,E):b.h(a,y,x,E)},cn.free=function(a){pl.push(a)},un.Object.defineProperties(cn.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new at(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new fn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new at(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),cn.prototype.isEmpty=cn.prototype.Mz,cn.prototype.isReal=cn.prototype.w,cn.intersectsLineSegment=function(a,y,x,E,b,z,ee,re){return Rt.Fx(a,y,x,E,b,z,ee,re)},cn.prototype.setSpot=cn.prototype.yi,cn.prototype.union=cn.prototype.Kv,cn.prototype.unionRect=cn.prototype.ed,cn.prototype.unionPoint=cn.prototype.Ye,cn.prototype.intersects=cn.prototype.Vu,cn.prototype.intersectsRect=cn.prototype.Yc,cn.prototype.intersect=cn.prototype.Uu,cn.prototype.intersectRect=cn.prototype.Ex,cn.prototype.grow=cn.prototype.Hz,cn.prototype.subtractMargin=cn.prototype.Fv,cn.prototype.addMargin=cn.prototype.Co,cn.prototype.inflate=cn.prototype.Bc,cn.prototype.offset=cn.prototype.offset,cn.prototype.contains=cn.prototype.contains,cn.prototype.containsRect=cn.prototype.Re,cn.prototype.containsPoint=cn.prototype.ca,cn.prototype.equalsApprox=cn.prototype.Xa,cn.prototype.equalTo=cn.prototype.hi,cn.prototype.equals=cn.prototype.D,cn.prototype.setSize=cn.prototype.tA,cn.prototype.setPoint=cn.prototype.dd,cn.prototype.set=cn.prototype.set,cn.prototype.setTo=cn.prototype.sg;var Xa=null,Is=null,pl=[];cn.className="Rect",cn.parse=dl,cn.stringify=gl,cn.contains=il,cn.intersects=Ra,cn.ZeroRect=Xa=new cn(0,0,0,0).ja(),cn.NoRect=Is=new cn(NaN,NaN,NaN,NaN).ja(),cn.parse=dl,cn.stringify=gl,cn.contains=il,cn.intersects=Ra;function Mo(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):tn("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Mo.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Mo.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Mo.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Mo.prototype.copy=function(){var a=new Mo;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ee=Mo.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function $u(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Mo;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Mo(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Mo(x,b);for(var ee=NaN;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),isNaN(ee)?new Mo(x,b):new Mo(x,b,z,ee)}return new Mo}function Pu(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ee.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ee.D=function(a){return a instanceof Mo?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ee.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ee.Xa=function(a){return Rt.B(this.top,a.top)&&Rt.B(this.right,a.right)&&Rt.B(this.bottom,a.bottom)&&Rt.B(this.left,a.left)},Ee.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Mo.alloc=function(){var a=gc.pop();return a===void 0?new Mo:a},Mo.free=function(a){gc.push(a)},Mo.prototype.isReal=Mo.prototype.w,Mo.prototype.equalsApprox=Mo.prototype.Xa,Mo.prototype.equalTo=Mo.prototype.hi,Mo.prototype.equals=Mo.prototype.D,Mo.prototype.set=Mo.prototype.set,Mo.prototype.setTo=Mo.prototype.sg;var $l=null,ou=null,gc=[];Mo.className="Margin",Mo.parse=$u,Mo.stringify=Pu,Mo.ZeroMargin=$l=new Mo(0,0,0,0).ja(),Mo.TwoMargin=ou=new Mo(2,2,2,2).ja(),Mo.parse=$u,Mo.stringify=Pu;function kr(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var hl,Rs,Bu,zu,Ou,Sa,Lu,Fl,Il,eu,Cc,du,Ol,Cu,Wc,ah,Hc,Yh,Wu,El,Hu,Iu,ku,Jc,Sh,ml,sh,lh,Nc,Ec,tu,Vl,xl,Ts,nu,ol;kr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},kr.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},kr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},kr.prototype.copy=function(){var a=new kr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ee=kr.prototype,Ee.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ee.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vs(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Wl(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return hl;if(a==="TopLeft")return Rs;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Bu;if(a==="TopRight")return zu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ou;if(a==="Center")return Sa;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Lu;if(a==="BottomLeft")return Fl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Il;if(a==="BottomRight")return eu;if(a==="TopSide")return Cc;if(a==="LeftSide")return du;if(a==="RightSide")return Ol;if(a==="BottomSide")return Cu;if(a==="TopBottomSides")return Wc;if(a==="LeftRightSides")return ah;if(a==="TopLeftSides")return Hc;if(a==="TopRightSides")return Yh;if(a==="BottomLeftSides")return Wu;if(a==="BottomRightSides")return El;if(a==="NotTopSide")return Hu;if(a==="NotLeftSide")return Iu;if(a==="NotRightSide")return ku;if(a==="NotBottomSide")return Jc;if(a==="AllSides")return Sh;if(a==="Default")return ml;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var ee=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ee=parseFloat(E)),new kr(x,b,z,ee)}return new kr}function fu(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ee.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(hl)?"None":this.D(Rs)?"TopLeft":this.D(Bu)?"Top":this.D(zu)?"TopRight":this.D(Ou)?"Left":this.D(Sa)?"Center":this.D(Lu)?"Right":this.D(Fl)?"BottomLeft":this.D(Il)?"Bottom":this.D(eu)?"BottomRight":this.D(Cc)?"TopSide":this.D(du)?"LeftSide":this.D(Ol)?"RightSide":this.D(Cu)?"BottomSide":this.D(Wc)?"TopBottomSides":this.D(ah)?"LeftRightSides":this.D(Hc)?"TopLeftSides":this.D(Yh)?"TopRightSides":this.D(Wu)?"BottomLeftSides":this.D(El)?"BottomRightSides":this.D(Hu)?"NotTopSide":this.D(Iu)?"NotLeftSide":this.D(ku)?"NotRightSide":this.D(Jc)?"NotBottomSide":this.D(Sh)?"AllSides":this.D(ml)?"Default":"None"},Ee.D=function(a){return a instanceof kr?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Ee.gv=function(){return new kr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ee.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(sh))a=du;else if(a.D(lh))a=Ol;else if(a.D(Nc))a=Cc;else if(a.D(Ec))a=Cu;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ee.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ee.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ee.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ee.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ee.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},kr.alloc=function(){var a=Ru.pop();return a===void 0?new kr:a},kr.free=function(a){Ru.push(a)},kr.prototype.isDefault=kr.prototype.Xb,kr.prototype.isNone=kr.prototype.ys,kr.prototype.isSide=kr.prototype.$c,kr.prototype.isNoSpot=kr.prototype.Mc,kr.prototype.isSpot=kr.prototype.sb,kr.prototype.includesSide=kr.prototype.Hf,kr.prototype.opposite=kr.prototype.gv,kr.prototype.equals=kr.prototype.D,kr.prototype.set=kr.prototype.set,kr.prototype.setTo=kr.prototype.sg;var Ru=[];kr.className="Spot",kr.parse=Wl,kr.stringify=fu,kr.None=hl=Vs(new kr(0,0,0,0),0).ja(),kr.Default=ml=Vs(new kr(0,0,-1,0),-1).ja(),kr.TopLeft=Rs=new kr(0,0,0,0).ja(),kr.TopCenter=Bu=new kr(.5,0,0,0).ja(),kr.TopRight=zu=new kr(1,0,0,0).ja(),kr.LeftCenter=Ou=new kr(0,.5,0,0).ja(),kr.Center=Sa=new kr(.5,.5,0,0).ja(),kr.RightCenter=Lu=new kr(1,.5,0,0).ja(),kr.BottomLeft=Fl=new kr(0,1,0,0).ja(),kr.BottomCenter=Il=new kr(.5,1,0,0).ja(),kr.BottomRight=eu=new kr(1,1,0,0).ja(),kr.MiddleTop=tu=Bu,kr.MiddleLeft=Vl=Ou,kr.MiddleRight=xl=Lu,kr.MiddleBottom=Ts=Il,kr.Top=Nc=Bu,kr.Left=sh=Ou,kr.Right=lh=Lu,kr.Bottom=Ec=Il,kr.TopSide=Cc=Vs(new kr(0,0,1,1),1).ja(),kr.LeftSide=du=Vs(new kr(0,0,1,2),1).ja(),kr.RightSide=Ol=Vs(new kr(0,0,1,4),1).ja(),kr.BottomSide=Cu=Vs(new kr(0,0,1,8),1).ja(),kr.TopBottomSides=Wc=Vs(new kr(0,0,1,9),1).ja(),kr.LeftRightSides=ah=Vs(new kr(0,0,1,6),1).ja(),kr.TopLeftSides=Hc=Vs(new kr(0,0,1,3),1).ja(),kr.TopRightSides=Yh=Vs(new kr(0,0,1,5),1).ja(),kr.BottomLeftSides=Wu=Vs(new kr(0,0,1,10),1).ja(),kr.BottomRightSides=El=Vs(new kr(0,0,1,12),1).ja(),kr.NotTopSide=Hu=Vs(new kr(0,0,1,14),1).ja(),kr.NotLeftSide=Iu=Vs(new kr(0,0,1,13),1).ja(),kr.NotRightSide=ku=Vs(new kr(0,0,1,11),1).ja(),kr.NotBottomSide=Jc=Vs(new kr(0,0,1,7),1).ja(),kr.AllSides=Sh=Vs(new kr(0,0,1,15),1).ja(),nu=new kr(.156,.156).ja(),ol=new kr(.844,.844).ja(),kr.parse=Wl,kr.stringify=fu;function Fo(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Fo.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},Fo.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Fo.prototype.copy=function(){var a=new Fo;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},Fo.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Fo.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},Fo.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Fo.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Fo.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},Fo.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,ee=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},Fo.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Fo.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ee=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Ee=Fo.prototype,Ee.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ee.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ee.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ee.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ee.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ee.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ee=this.m12,re=this.m21,ae=this.m22,le=this.dx,ce=this.dy,fe=y*z+x*re+le,Se=y*ee+x*ae+ce,we=E*z+x*re+le,Ae=E*ee+x*ae+ce;return x=y*z+b*re+le,y=y*ee+b*ae+ce,z=E*z+b*re+le,E=E*ee+b*ae+ce,b=Math.min(fe,we),fe=Math.max(fe,we),we=Math.min(Se,Ae),Se=Math.max(Se,Ae),b=Math.min(b,x),fe=Math.max(fe,x),we=Math.min(we,y),Se=Math.max(Se,y),b=Math.min(b,z),fe=Math.max(fe,z),we=Math.min(we,E),Se=Math.max(Se,E),a.h(b,we,fe-b,Se-we),a},Fo.alloc=function(){var a=gu.pop();return a===void 0?new Fo:a},Fo.free=function(a){gu.push(a)},Fo.prototype.transformRect=Fo.prototype.pp,Fo.prototype.transformPoint=Fo.prototype.Ga,Fo.prototype.scale=Fo.prototype.scale,Fo.prototype.translate=Fo.prototype.translate,Fo.prototype.rotate=Fo.prototype.rotate,Fo.prototype.invert=Fo.prototype.Vj,Fo.prototype.multiplyInverted=Fo.prototype.bv,Fo.prototype.multiply=Fo.prototype.multiply,Fo.prototype.reset=Fo.prototype.reset,Fo.prototype.isIdentity=Fo.prototype.ws,Fo.prototype.equals=Fo.prototype.D,Fo.prototype.setTransform=Fo.prototype.setTransform,Fo.prototype.set=Fo.prototype.set;var gu=[];Fo.className="Transform",Fo.xF="54a702f3e53909c447824c6706603faf4c";var Rt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Rt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Rt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,E,b,z,ee){if(0>=b&&(b=1e-6),a<x)var re=a,ae=x;else re=x,ae=a;if(y<E)var le=y,ce=E;else le=E,ce=y;if(a===x)return le<=ee&&ee<=ce&&a-b<=z&&z<=a+b;if(y===E)return re<=z&&z<=ae&&y-b<=ee&&ee<=y+b;if(ae+=b,re-=b,re<=z&&z<=ae&&(ce+=b,le-=b,le<=ee&&ee<=ce))if(ae-re>ce-le)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ee&&ee<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ee=(x-a)/(E-y)*(ee-y)+a,ee-b<=z&&z<=ee+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ee,re,ae,le,ce,fe){if(Rt.Yb(a,y,ee,re,fe,x,E)&&Rt.Yb(a,y,ee,re,fe,b,z))return Rt.Yb(a,y,ee,re,fe,le,ce);var Se=(a+x)/2,we=(y+E)/2,Ae=(x+b)/2,De=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Se+Ae)/2,x=(we+De)/2,Ae=(Ae+b)/2,De=(De+z)/2;var nt=(E+Ae)/2,Ze=(x+De)/2;return Rt.cs(a,y,Se,we,E,x,nt,Ze,ae,le,ce,fe)||Rt.cs(nt,Ze,Ae,De,b,z,ee,re,ae,le,ce,fe)},ax:function(a,y,x,E,b,z,ee,re,ae){var le=(x+b)/2,ce=(E+z)/2;return ae.h((((a+x)/2+le)/2+(le+(b+ee)/2)/2)/2,(((y+E)/2+ce)/2+(ce+(z+re)/2)/2)/2),ae},My:function(a,y,x,E,b,z,ee,re){var ae=(x+b)/2,le=(E+z)/2;return Si(((a+x)/2+ae)/2,((y+E)/2+le)/2,(ae+(b+ee)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ee,re,ae,le){if(Rt.Yb(a,y,ee,re,ae,x,E)&&Rt.Yb(a,y,ee,re,ae,b,z))_s(le,a,y,0,0),_s(le,ee,re,0,0);else{var ce=(a+x)/2,fe=(y+E)/2,Se=(x+b)/2,we=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ce+Se)/2,x=(fe+we)/2,Se=(Se+b)/2,we=(we+z)/2;var Ae=(E+Se)/2,De=(x+we)/2;Rt.Dl(a,y,ce,fe,E,x,Ae,De,ae,le),Rt.Dl(Ae,De,Se,we,b,z,ee,re,ae,le)}return le},Qe:function(a,y,x,E,b,z,ee,re,ae,le){if(Rt.Yb(a,y,ee,re,ae,x,E)&&Rt.Yb(a,y,ee,re,ae,b,z))le.length===0&&(le.push(a),le.push(y)),le.push(ee),le.push(re);else{var ce=(a+x)/2,fe=(y+E)/2,Se=(x+b)/2,we=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ce+Se)/2,x=(fe+we)/2,Se=(Se+b)/2,we=(we+z)/2;var Ae=(E+Se)/2,De=(x+we)/2;Rt.Qe(a,y,ce,fe,E,x,Ae,De,ae,le),Rt.Qe(Ae,De,Se,we,b,z,ee,re,ae,le)}return le},jv:function(a,y,x,E,b,z,ee,re,ae,le){if(Rt.Yb(a,y,b,z,le,x,E))return Rt.Yb(a,y,b,z,le,re,ae);var ce=(a+x)/2,fe=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var Se=(ce+x)/2,we=(fe+E)/2;return Rt.jv(a,y,ce,fe,Se,we,ee,re,ae,le)||Rt.jv(Se,we,x,E,b,z,ee,re,ae,le)},OA:function(a,y,x,E,b,z,ee){return ee.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ee},iv:function(a,y,x,E,b,z,ee,re){if(Rt.Yb(a,y,b,z,ee,x,E))_s(re,a,y,0,0),_s(re,b,z,0,0);else{var ae=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(ae+x)/2,fe=(le+E)/2;Rt.iv(a,y,ae,le,ce,fe,ee,re),Rt.iv(ce,fe,x,E,b,z,ee,re)}return re},ep:function(a,y,x,E,b,z,ee,re){if(Rt.Yb(a,y,b,z,ee,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var ae=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(ae+x)/2,fe=(le+E)/2;Rt.ep(a,y,ae,le,ce,fe,ee,re),Rt.ep(ce,fe,x,E,b,z,ee,re)}return re},Eo:function(a,y,x,E,b,z,ee,re,ae,le,ce,fe,Se,we){if(Rt.Yb(a,y,ee,re,Se,x,E)&&Rt.Yb(a,y,ee,re,Se,b,z))return!Rt.Rl(a,y,ee,re,ae,le,ce,fe)||(Se=(a-ee)*(le-fe)-(y-re)*(ae-ce),Se===0)?!1:(we.h(((a*re-y*ee)*(ae-ce)-(a-ee)*(ae*fe-le*ce))/Se,((a*re-y*ee)*(le-fe)-(y-re)*(ae*fe-le*ce))/Se),!0);var Ae=(a+x)/2,De=(y+E)/2,nt=(x+b)/2,Ze=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Ae+nt)/2,x=(De+Ze)/2,nt=(nt+b)/2,Ze=(Ze+z)/2;var dt=(E+nt)/2,mt=(x+Ze)/2,xt=1/0,Ot=!1,en=0,zi=0;return Rt.Eo(a,y,Ae,De,E,x,dt,mt,ae,le,ce,fe,Se,we)&&(a=(we.x-ae)*(we.x-ae)+(we.y-le)*(we.y-le),a<xt&&(xt=a,Ot=!0,en=we.x,zi=we.y)),Rt.Eo(dt,mt,nt,Ze,b,z,ee,re,ae,le,ce,fe,Se,we)&&(we.x-ae)*(we.x-ae)+(we.y-le)*(we.y-le)<xt&&(Ot=!0,en=we.x,zi=we.y),Ot&&(we.x=en,we.y=zi),Ot},Fo:function(a,y,x,E,b,z,ee,re,ae,le,ce,fe,Se){var we=0;if(Rt.Yb(a,y,ee,re,Se,x,E)&&Rt.Yb(a,y,ee,re,Se,b,z)){if(Se=(a-ee)*(le-fe)-(y-re)*(ae-ce),Se===0)return we;var Ae=((a*re-y*ee)*(ae-ce)-(a-ee)*(ae*fe-le*ce))/Se,De=((a*re-y*ee)*(le-fe)-(y-re)*(ae*fe-le*ce))/Se;if(Ae>=ce)return we;if((ae>ce?ae-ce:ce-ae)<(le>fe?le-fe:fe-le)){if(y<re?(ae=y,a=re):(ae=re,a=y),De<ae||De>a)return we}else if(a<ee?(ae=a,a=ee):ae=ee,Ae<ae||Ae>a)return we;0<Se?we++:0>Se&&we--}else{Ae=(a+x)/2,De=(y+E)/2;var nt=(x+b)/2,Ze=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Ae+nt)/2,x=(De+Ze)/2,nt=(nt+b)/2,Ze=(Ze+z)/2;var dt=(E+nt)/2,mt=(x+Ze)/2;we+=Rt.Fo(a,y,Ae,De,E,x,dt,mt,ae,le,ce,fe,Se),we+=Rt.Fo(dt,mt,nt,Ze,b,z,ee,re,ae,le,ce,fe,Se)}return we},qh:function(a,y,x,E,b,z,ee){return Rt.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):Rt.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(ee.h(E,y),!1):b>a?(ee.h(a,y),!1):(ee.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ee.h(a,y),!1):1.000005<b?(ee.h(x,E),!1):(ee.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,ee,re,ae){return Rt.B(a,x)&&Rt.B(y,E)?(ae.h(a,y),!1):Rt.$(b,ee)?Rt.$(a,x)?(Rt.qh(a,y,x,E,b,z,ae),!1):Rt.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,ae):(re=(re-z)/(ee-b),Rt.$(a,x)?(x=re*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(ae.h(a,b),!1):x>y?(ae.h(a,y),!1):(ae.h(a,x),!0)):(ee=(E-y)/(x-a),Rt.$(re,ee)?(Rt.qh(a,y,x,E,b,z,ae),!1):(b=(ee*a-re*b+z-y)/(ee-re),Rt.$(ee,0)?(a<x?(E=a,a=x):E=x,b<E?(ae.h(E,y),!1):b>a?(ae.h(a,y),!1):(ae.h(b,y),!0)):Rt.qh(a,y,x,E,b,ee*(b-a)+y,ae))))},MA:function(a,y,x,E,b){return Rt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,ee,re,ae,le){function ce(nt,Ze){var dt=(nt-a)*(nt-a)+(Ze-y)*(Ze-y);dt<fe&&(fe=dt,ae.h(nt,Ze))}var fe=1/0;ce(ae.x,ae.y);var Se=0,we=0,Ae=0,De=0;if(b<ee?(Se=b,we=ee):(Se=ee,we=b),z<re?(Ae=b,De=ee):(Ae=ee,De=b),Se=(we-Se)/2+le,le=(De-Ae)/2+le,b=(b+ee)/2,z=(z+re)/2,Se===0||le===0)return ae;if(.5>(x>a?x-a:a-x)){if(Se=1-(x-b)*(x-b)/(Se*Se),0>Se)return ae;Se=Math.sqrt(Se),E=-le*Se+z,ce(x,le*Se+z),ce(x,E)}else{if(x=(E-y)/(x-a),E=1/(Se*Se)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*b/(Se*Se),Se=re*re-4*E*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+b*b/(Se*Se)-1+(y-x*a)*(y-x*a)/(le*le)),0>Se)return ae;Se=Math.sqrt(Se),le=(-re+Se)/(2*E),ce(le,x*le-x*a+y),Se=(-re-Se)/(2*E),ce(Se,x*Se-x*a+y)}return ae},Ff:function(a,y,x,E,b,z,ee,re,ae){var le=1e21,ce=a,fe=y;if(Rt.Ve(a,y,a,E,b,z,ee,re,ae)){var Se=(ae.x-b)*(ae.x-b)+(ae.y-z)*(ae.y-z);Se<le&&(le=Se,ce=ae.x,fe=ae.y)}return Rt.Ve(x,y,x,E,b,z,ee,re,ae)&&(Se=(ae.x-b)*(ae.x-b)+(ae.y-z)*(ae.y-z),Se<le&&(le=Se,ce=ae.x,fe=ae.y)),Rt.Ve(a,y,x,y,b,z,ee,re,ae)&&(y=(ae.x-b)*(ae.x-b)+(ae.y-z)*(ae.y-z),y<le&&(le=y,ce=ae.x,fe=ae.y)),Rt.Ve(a,E,x,E,b,z,ee,re,ae)&&(a=(ae.x-b)*(ae.x-b)+(ae.y-z)*(ae.y-z),a<le&&(le=a,ce=ae.x,fe=ae.y)),ae.h(ce,fe),1e21>le},us:function(a,y,x){return Rt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,ee,re){var ae=a+x,le=y+E;return b===ee?(z<re?(ee=z,z=re):ee=re,a<=b&&b<=ae&&ee<=le&&z>=y):z===re?(b<ee?(re=b,b=ee):re=ee,y<=z&&z<=le&&re<=ae&&b>=a):!!(il(a,y,x,E,b,z)||il(a,y,x,E,ee,re)||Rt.Rl(a,y,ae,y,b,z,ee,re)||Rt.Rl(ae,y,ae,le,b,z,ee,re)||Rt.Rl(ae,le,a,le,b,z,ee,re)||Rt.Rl(a,le,a,y,b,z,ee,re))},Rl:function(a,y,x,E,b,z,ee,re){return a===x&&y===E&&b===ee&&z===re?a===b&&y===z:0>=Rt.Fl(a,y,x,E,b,z)*Rt.Fl(a,y,x,E,ee,re)&&0>=Rt.Fl(b,z,ee,re,a,y)*Rt.Fl(b,z,ee,re,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var ee=Math.PI;z||(E*=ee/180,b*=ee/180);var re=E>b?-1:1;z=[];var ae=ee/2,le=E;if(E=Math.min(2*ee,Math.abs(b-E)),1e-5>E)return ae=le+re*Math.min(E,ae),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(ae),y+=x*Math.sin(ae),x=(re+a)/2,ae=(le+y)/2,z.push([re,le,x,ae,x,ae,a,y]),z;for(;1e-5<E;)b=le+re*Math.min(E,ae),z.push(Rt.Vy(x,le,b,a,y)),E-=Math.abs(b-le),le=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),ae=-re,le=ee*ee+ae*ae,ce=le+ee*ee+ae*re;return le=4/3*(Math.sqrt(2*le*ce)-ce)/(ee*re-ae*ee),re=ee-le*ae,ee=ae+le*ee,ae=-ee,le=z+y,z=Math.cos(le),le=Math.sin(le),[E+a*Math.cos(y),b+a*Math.sin(y),E+re*z-ee*le,b+re*le+ee*z,E+re*z-ae*le,b+re*le+ae*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,ee){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var re=x;return x+b-a<b/2&&(re=x+b),a=E,E+z-y<z/2&&(a=E+z),ee.h(re,a),ee},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var ee=1,re=0;else ee=0,re=1;var ae=ee===0?a:y,le=ee===0?x:E;return(ee===0?b:z)&&(le=-le),ee=re,x=ee===0?x:E,(ee===0?b:z)&&(x=-x),Rt.az(ae,ee===0?a:y,le,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var ee=y*E,re=-z+ee,ae=-z+Math.sqrt(a*a+ee*ee);y=re;for(var le=0;9999999999>le&&(y=.5*(re+ae),!(y===re||y===ae));++le){var ce=a/(y+b),fe=ee/(y+z);if(ce=ce*ce+fe*fe-1,0<ce)re=y;else if(0>ce)ae=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Ao,um:new Ao,Mf:new Ao,Nf:0,vm:100};Rt.za=Rt.AA;function fi(a){Po(this),this.l=2,a===void 0&&(a=fi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===fi.o?this.ee=new _n:(fi.V===null&&(fi.V=new _n().freeze()),this.ee=fi.V),this.aq=this.ee.Ja,this.Ip=new cn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Rs,this.gg=eu,this.Rk=this.Sk=NaN,this.Uf=Ln}fi.prototype.copy=function(){var a=new fi;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===fi.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},fi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},fi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==fi.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},fi.prototype.ka=function(){if(Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==fi.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},fi.prototype.Xa=function(a){if(!(a instanceof fi))return!1;if(this.type!==a.type)return this.type===fi.j&&a.type===fi.o?Kl(this,a):a.type===fi.j&&this.type===fi.o?Kl(a,this):!1;if(this.type===fi.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return Rt.B(this.startX,a.startX)&&Rt.B(this.startY,a.startY)&&Rt.B(this.endX,a.endX)&&Rt.B(this.endY,a.endY)};function Kl(a,y){return a.type!==fi.j||y.type!==fi.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Rt.B(a.startX,y.startX)&&Rt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===fs&&Rt.B(a.endX,y.endX)&&Rt.B(a.endY,y.endY))))}fi.ia=function(a){return a.toString()},fi.prototype.qb=function(a){a.classType===fi&&(this.type=a)},fi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case fi.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case fi.u:var y=new cn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case fi.F:if(y=new cn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case fi.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},fi.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},fi.parse=function(a,y){function x(){return De>=xt-1?!0:le[De+1].match(Ot)!==null}function E(){return De++,le[De]}function b(Bo){var xo=parseFloat(E()),qa=parseFloat(E());nt===nt.toLowerCase()&&(xo=mt.x+xo,qa=mt.y+qa),Bo.h(xo,qa)}function z(){return b(mt),mt}function ee(){return b(dt),dt}function re(){var Bo=Ze.toLowerCase();return Bo!=="c"&&Bo!=="s"&&Bo!=="q"&&Bo!=="t"?mt:new at(2*mt.x-dt.x,2*mt.y-dt.y)}y===void 0&&(y=!1);var ae=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ae,"$1 $2"),a=a.replace(ae,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var le=a.split(" ");for(a=0;a<le.length;a++){var ce=le[a];if(ce.match(/(\.[0-9]*)(\.)/gm)!==null){ae=hr();for(var fe="",Se=!1,we=0;we<ce.length;we++){var Ae=ce[we];Ae!=="."||Se?Ae==="."?(ae.push(fe),fe="."):fe+=Ae:(Se=!0,fe+=Ae)}for(ae.push(fe),le.splice(a,1),ce=0;ce<ae.length;ce++)le.splice(a+ce,0,ae[ce]);a+=ae.length-1,Nr(ae)}}var De=-1,nt="",Ze="";ae=new at(0,0);var dt=new at(0,0),mt=new at(0,0),xt=le.length;a=OS(null),Se=fe=ce=!1,we=!0,Ae=null;for(var Ot=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(De>=xt-1);)if(Ze=nt,nt=E(),nt!=="")switch(nt.toUpperCase()){case"X":we=!0,fe=ce=!1;break;case"M":for(Ae=z(),a.mc===null||we===!0?(Gg(a,Ae.x,Ae.y,ce,!fe,Se),we=!1):a.moveTo(Ae.x,Ae.y),ae.assign(mt);!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"L":for(;!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"H":for(;!x();)mt=new at((nt===nt.toLowerCase()?mt.x:0)+parseFloat(E()),mt.y),a.lineTo(mt.x,mt.y);break;case"V":for(;!x();)mt=new at(mt.x,(nt===nt.toLowerCase()?mt.y:0)+parseFloat(E())),a.lineTo(mt.x,mt.y);break;case"C":for(;!x();){Ae=new at,b(Ae);var en=ee(),zi=z();$d(a,Ae.x,Ae.y,en.x,en.y,zi.x,zi.y)}break;case"S":for(;!x();)Ae=re(),en=ee(),zi=z(),$d(a,Ae.x,Ae.y,en.x,en.y,zi.x,zi.y);break;case"Q":for(;!x();)Ae=ee(),en=z(),Km(a,Ae.x,Ae.y,en.x,en.y);break;case"T":for(;!x();)dt=Ae=re(),en=z(),Km(a,Ae.x,Ae.y,en.x,en.y);break;case"B":for(;!x();){Ae=parseFloat(E()),en=parseFloat(E()),zi=parseFloat(E());var dr=parseFloat(E()),tr=parseFloat(E()),mi=tr,Gn=!1;x()||(mi=parseFloat(E()),x()||(Gn=parseFloat(E())!==0)),nt===nt.toLowerCase()&&(zi+=mt.x,dr+=mt.y),a.arcTo(Ae,en,zi,dr,tr,mi,Gn)}break;case"A":for(;!x();)Ae=Math.abs(parseFloat(E())),en=Math.abs(parseFloat(E())),zi=parseFloat(E()),tr=dr=!1,Gn=mi=0,mi=E(),mi.length===1?(dr=!!parseFloat(mi),tr=!!parseFloat(E()),mi=parseFloat(E())):mi.length===2?(dr=!!parseFloat(mi[0]),tr=!!parseFloat(mi[1]),mi=parseFloat(E())):(dr=!!parseFloat(mi[0]),tr=!!parseFloat(mi[1]),mi=parseFloat(mi.slice(2))),Gn=parseFloat(E()),nt===nt.toLowerCase()&&(mi=mt.x+mi,Gn=mt.y+Gn),mt.h(mi,Gn),Nx(a,Ae,en,zi,dr,tr,mi,Gn);break;case"Z":Fx(a),mt.assign(ae);break;case"F":for(Ae="",en=1;le[De+en];)if(le[De+en]==="0")Se=!0,en++;else if(le[De+en].match(/[Uu]/)!==null)en++;else if(le[De+en].match(Ot)===null)en++;else{Ae=le[De+en];break}Ae.match(/[Mm]/)?ce=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ae="",en=1;le[De+en];)if(le[De+en].match(/[Ff]/)!==null)en++;else if(le[De+en].match(Ot)===null)en++;else{Ae=le[De+en];break}Ae.match(/[Mm]/)?fe=!0:a.mc.isShadowed=!1}if(ae=a.os,Gm=a,y)for(y=ae.figures.iterator;y.next();)y.value.isFilled=!0;return ae},fi.Ha=function(a,y){for(var x=a.length,E=at.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}at.free(E)},fi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===fi.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},fi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===fi.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var ee=E[z];ee._isInvalidBounds=!1,ee.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),Yu(this,a,!1),_s(a,0,0,0,0),a.freeze()},fi.prototype.ix=function(){var a=new cn;return Yu(this,a,!0),a};function Yu(a,y,x){switch(a.type){case fi.j:case fi.u:case fi.F:x?y.h(a.od,a.pd,0,0):_s(y,a.od,a.pd,0,0),_s(y,a.Dc,a.Ec,0,0);break;case fi.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):_s(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,ae=z.startX,le=z.startY,ce=0;ce<re;ce++){var fe=ee[ce];switch(fe.type){case fs:case ll:ae=fe.endX,le=fe.endY,_s(y,ae,le,0,0);break;case Ml:Rt.Dl(ae,le,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,y),ae=fe.endX,le=fe.endY;break;case Fu:Rt.iv(ae,le,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,y),ae=fe.endX,le=fe.endY;break;case sl:case su:var Se=fe.type===sl?mu(fe,z):au(fe,z,ae,le),we=Se.length;if(we===0){ae=fe.type===sl?fe.centerX:fe.endX,le=fe.type===sl?fe.centerY:fe.endY,_s(y,ae,le,0,0);break}fe=null;for(var Ae=0;Ae<we;Ae++)fe=Se[Ae],Rt.Dl(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,y);fe!==null&&(ae=fe[6],le=fe[7]);break;default:tn("Unknown Segment type: "+fe.type)}}}break;default:tn("Unknown Geometry type: "+a.type)}}fi.prototype.normalize=function(){this._isFrozen&&Vi(this);var a=this.ix();return this.offset(-a.x,-a.y),new at(-a.x,-a.y)},fi.prototype.offset=function(a,y){return this._isFrozen&&Vi(this),this.transform(1,0,0,1,a,y),this},fi.prototype.scale=function(a,y){return this._isFrozen&&Vi(this),this.transform(a,0,0,y,0,0),this},fi.prototype.rotate=function(a,y,x){this._isFrozen&&Vi(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=Fo.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Fo.free(E),this},Ee=fi.prototype,Ee.transform=function(a,y,x,E,b,z){switch(this.type){case fi.j:case fi.u:case fi.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+b,this.pd=ee*y+re*E+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+b,this.Ec=ee*y+re*E+z;break;case fi.o:for(var ae=this.figures.s,le=ae.length,ce=0;ce<le;ce++){var fe=ae[ce];ee=fe.startX,re=fe.startY,fe.startX=ee*a+re*x+b,fe.startY=ee*y+re*E+z,fe=fe.segments.s;for(var Se=fe.length,we=0;we<Se;we++){var Ae=fe[we];switch(Ae.type){case fs:case ll:ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z;break;case Ml:ee=Ae.point1X,re=Ae.point1Y,Ae.point1X=ee*a+re*x+b,Ae.point1Y=ee*y+re*E+z,ee=Ae.point2X,re=Ae.point2Y,Ae.point2X=ee*a+re*x+b,Ae.point2Y=ee*y+re*E+z,ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z;break;case Fu:ee=Ae.point1X,re=Ae.point1Y,Ae.point1X=ee*a+re*x+b,Ae.point1Y=ee*y+re*E+z,ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z;break;case sl:ee=Ae.centerX,re=Ae.centerY,Ae.centerX=ee*a+re*x+b,Ae.centerY=ee*y+re*E+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ae.startAngle+=ee),0>a&&(Ae.startAngle=180-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),0>E&&(Ae.startAngle=-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY!==void 0&&(Ae.radiusY*=Math.sqrt(y*y+E*E));break;case su:if(ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z,Ae.radiusX===0||Ae.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ae.xAxisRotation+=ee),0>a&&(Ae.xAxisRotation=180-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),0>E&&(Ae.xAxisRotation=-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY*=Math.sqrt(y*y+E*E);break;default:tn("Unknown Segment type: "+Ae.type)}}}}return this._isInvalidBounds=!0,this},Ee.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case fi.j:return Rt.Yb(x,E,b,z,y,a.x,a.y);case fi.u:var ee=cn.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=ee.ca(a),cn.free(ee),a;case fi.F:ee=Math.min(x,b)-y;var re=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case fi.o:return ec(this,a,y,!0,!1);default:return!1}};function ec(a,y,x,E,b){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,ae,le,ce,fe,Se=a.figures.s,we=Se.length,Ae=0;Ae<we;Ae++){var De=Se[Ae],nt=!De.isEvenOdd;if(De.isFilled){if(E&&De.ca(z,y,x))return!0;var Ze=De.segments;ae=De.startX,le=De.startY;for(var dt=ae,mt=le,xt=Ze.s,Ot=0;Ot<=Ze.length;Ot++){var en=void 0;if(Ot!==Ze.length){en=xt[Ot];var zi=en.type;a=en.endX,fe=en.endY}else zi=fs,a=dt,fe=mt;switch(zi){case ll:if(dt=pu(z,y,ee,y,ae,le,dt,mt),isNaN(dt))return!0;re+=dt,dt=a,mt=fe;break;case fs:if(ae=pu(z,y,ee,y,ae,le,a,fe),isNaN(ae))return!0;re+=ae;break;case Ml:ce=Rt.Fo(ae,le,en.point1X,en.point1Y,en.point2X,en.point2Y,a,fe,ee,y,z,y,.5),re+=ce;break;case Fu:ce=Rt.Fo(ae,le,(ae+2*en.point1X)/3,(le+2*en.point1Y)/3,(2*en.point1X+a)/3,(2*en.point1Y+fe)/3,a,fe,ee,y,z,y,.5),re+=ce;break;case sl:case su:zi=en.type===sl?mu(en,De):au(en,De,ae,le);var dr=zi.length;if(dr===0){if(ae=pu(z,y,ee,y,ae,le,en.type===sl?en.centerX:en.endX,en.type===sl?en.centerY:en.endY),isNaN(ae))return!0;re+=ae;break}en=null;for(var tr=0;tr<dr;tr++){if(en=zi[tr],tr===0){if(ce=pu(z,y,ee,y,ae,le,en[0],en[1]),isNaN(ce))return!0;re+=ce}ce=Rt.Fo(en[0],en[1],en[2],en[3],en[4],en[5],en[6],en[7],ee,y,z,y,.5),re+=ce}en!==null&&(a=en[6],fe=en[7]);break;default:tn("Unknown Segment type: "+en.type)}ae=a,le=fe}if(nt){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(De.ca(z,y,b?x:x+2))return!0}return!1}function pu(a,y,x,E,b,z,ee,re){if(Rt.Yb(b,z,ee,re,.05,a,y))return NaN;var ae=(a-x)*(z-re);if(ae===0)return 0;var le=((a*E-y*x)*(b-ee)-(a-x)*(b*re-z*ee))/ae;if(y=(a*E-y*x)*(z-re)/ae,le>=a)return 0;if((b>ee?b-ee:ee-b)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(b<ee){if(le<b||le>ee)return 0}else if(le<ee||le>b)return 0;return 0<ae?1:-1}function Eu(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}Ee.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new at),this.type===fi.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var ae=E[re],le=ae.length;for(a=0;a<le;a++){var ce=ae[a];if(ee+ce>=z)return E=z-ee,E=ce===0?0:E/ce,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ee+=ce}}return y},Ee.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===fi.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,ee=0;ee<E;ee++){var re=x[ee],ae=re.length;for(a=0;a<ae;a++){var le=re[a];if(z+le>=b)return b=y[ee],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=le}}return NaN},Ee.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===fi.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var ae=E[re],le=ae.length;for(a=0;a<le;a++){var ce=ae[a];if(ee+ce>=z)return E=z-ee,E=ce===0?0:E/ce,ce=x[re],x=ce[2*a],re=ce[2*a+1],b=ce[2*a+2],a=ce[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ee+=ce}}return y},Ee.xx=function(a){if(this.type===fi.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var ee=x;E=b}else ee=b,E=x;return a<=ee?ee===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-ee)}if(x===b)return y<E?ee=y:(ee=E,E=y),z<=ee?ee===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ee);ee=(E-y)*(E-y)+(b-x)*(b-x);var re=at.alloc();return Rt.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,at.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===fi.u){ee=this.startX,re=this.startY;var ae=this.endX;if(b=this.endY,ee!==ae||re!==b){y=ae-ee,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ee),ae),a=Math.min(Math.max(a,re),b),ee=Math.abs(E-ee),ae=Math.abs(E-ae),re=Math.abs(a-re),b=Math.abs(a-b);var le=Math.min(ee,ae,re,b);if(le===re)return E/z;if(le===ae)return(y+a)/z;if(le===b)return(2*y+x-E)/z;if(le===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=at.alloc(),b=1/0,re=ee=0,ae=y.length;for(var ce=le=0,fe=0;fe<ae;fe++)for(var Se=y[fe],we=x[fe],Ae=Se.length,De=0;De<Ae;De+=2){var nt=Se[De],Ze=Se[De+1];if(De!==0){Rt.qh(le,ce,nt,Ze,a.x,a.y,E);var dt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);dt<b&&(b=dt,ee=re,ee+=Math.sqrt((E.x-le)*(E.x-le)+(E.y-ce)*(E.y-ce))),re+=we[(De-2)/2]}le=nt,ce=Ze}return at.free(E),a=ee/z,0>a?0:1<a?1:a}return 0};function pc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===fi.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===fi.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===fi.F){var z=new wl;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new Ca(sl);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=mu(ee,z),b=a.length,b===0)E.push(ee.centerX),E.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<b;re++){var ae=a[re];Rt.Qe(ee,z,ae[2],ae[3],ae[4],ae[5],ae[6],ae[7],.5,E),ee=ae[6],z=ae[7]}}y.push(E),x.push(mc(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),ee=b.startX,z=b.startY,re=ee,ae=z;for(var le=b.segments.s,ce=le.length,fe=0;fe<ce;fe++){var Se=le[fe];switch(Se.type){case ll:4<=E.length&&(y.push(E),x.push(mc(E))),E=[],E.push(Se.endX),E.push(Se.endY),ee=Se.endX,z=Se.endY,re=ee,ae=z;break;case fs:E.push(Se.endX),E.push(Se.endY),ee=Se.endX,z=Se.endY;break;case Ml:Rt.Qe(ee,z,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,E),ee=Se.endX,z=Se.endY;break;case Fu:Rt.ep(ee,z,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,E),ee=Se.endX,z=Se.endY;break;case sl:var we=mu(Se,b),Ae=we.length;if(Ae===0){E.push(Se.centerX),E.push(Se.centerY),ee=Se.centerX,z=Se.centerY;break}for(var De=0;De<Ae;De++){var nt=we[De];Rt.Qe(ee,z,nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],.5,E),ee=nt[6],z=nt[7]}break;case su:if(we=au(Se,b,ee,z),Ae=we.length,De=Se.endX,nt=Se.endY,Ae===0){E.push(De),E.push(nt),ee=De,z=nt;break}for(De=0;De<Ae;De++)nt=we[De],Rt.Qe(ee,z,nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],.5,E),ee=nt[6],z=nt[7];break;default:tn("Segment not of valid type: "+Se.type)}Se.isClosed&&(E.push(re),E.push(ae))}4<=E.length&&(y.push(E),x.push(mc(E)))}}}function mc(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(Xi(x,E,ee,re))),x=ee,E=re}return y}Ee.add=function(a){return this.ee.add(a),this},Ee.pm=function(a,y,x,E,b,z,ee,re){return this._isFrozen&&Vi(this),this.fg=new kr(a,y,b,z).freeze(),this.gg=new kr(x,E,ee,re).freeze(),this},un.Object.defineProperties(fi.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return pc(this),this.tk}},flattenedLengths:{get:function(){return pc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===fi.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===fi.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,E=a=0;E<x;E++)for(var b=y[E],z=b.length,ee=0;ee<z;ee++)a+=b[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Vi(this,a),this.na=a,a===fi.o?this.ee=new _n:(fi.V===null&&(fi.V=new _n().freeze()),this.ee=fi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Vi(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Vi(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Vi(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Vi(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Vi(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Vi(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Vi(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Vi(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),fi.prototype.setSpots=fi.prototype.pm,fi.prototype.add=fi.prototype.add,fi.prototype.getFractionForPoint=fi.prototype.xx,fi.prototype.getPointAndAngleAlongPath=fi.prototype.Qu,fi.prototype.getAngleAlongPath=fi.prototype.wx,fi.prototype.getPointAlongPath=fi.prototype.Pu,fi.prototype.containsPoint=fi.prototype.ca,fi.prototype.transform=fi.prototype.transform,fi.prototype.rotate=fi.prototype.rotate,fi.prototype.scale=fi.prototype.scale,fi.prototype.offset=fi.prototype.offset,fi.prototype.normalize=fi.prototype.normalize,fi.prototype.computeBoundsWithoutOrigin=fi.prototype.ix,fi.prototype.equalsApprox=fi.prototype.Xa,fi.className="Geometry",fi.j=new ln(fi,"Line",0),fi.u=new ln(fi,"Rectangle",1),fi.F=new ln(fi,"Ellipse",2),fi.o=new ln(fi,"Path",3),fi.V=null,fi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",fi.className="Geometry",fi.stringify=fi.ia,fi.fillPath=fi.nb,fi.parse=fi.parse,fi.Line=fi.j,fi.Rectangle=fi.u,fi.Ellipse=fi.F,fi.Path=fi.o;function wl(a,y,x,E,b){Po(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new _n,this.sr=this.pl.Ja,this.fw=null}wl.prototype.copy=function(){var a=new wl;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ee=wl.prototype,Ee.Xa=function(a){if(!(a instanceof wl&&Rt.B(this.startX,a.startX)&&Rt.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},Ee.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},Ee.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},Ee.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Ee.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},Ee.add=function(a){return this.pl.add(a),this},Ee.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,ee=b,re=this.segments.s,ae=re.length,le=0;le<ae;le++){var ce=re[le];switch(ce.type){case ll:z=ce.endX,ee=ce.endY,E=ce.endX,b=ce.endY;break;case fs:if(Rt.Yb(E,b,ce.endX,ce.endY,x,a,y))return!0;E=ce.endX,b=ce.endY;break;case Ml:if(Rt.cs(E,b,ce.point1X,ce.point1Y,ce.point2X,ce.point2Y,ce.endX,ce.endY,.5,a,y,x))return!0;E=ce.endX,b=ce.endY;break;case Fu:if(Rt.jv(E,b,ce.point1X,ce.point1Y,ce.endX,ce.endY,.5,a,y,x))return!0;E=ce.endX,b=ce.endY;break;case sl:case su:var fe=ce.type===sl?mu(ce,this):au(ce,this,E,b),Se=fe.length,we=ce.type===sl?ce.centerX:ce.endX,Ae=ce.type===sl?ce.centerY:ce.endY;if(Se===0){if(Rt.Yb(E,b,we,Ae,x,a,y))return!0;E=we,b=Ae;break}for(we=null,Ae=0;Ae<Se;Ae++)if(we=fe[Ae],Ae===0&&Rt.Yb(E,b,we[0],we[1],x,a,y)||Rt.cs(we[0],we[1],we[2],we[3],we[4],we[5],we[6],we[7],.5,a,y,x))return!0;we!==null&&(E=we[6],b=we[7]);break;default:tn("Unknown Segment type: "+ce.type)}if(ce.isClosed&&(E!==z||b!==ee)&&Rt.Yb(E,b,z,ee,x,a,y))return!0}return!1},un.Object.defineProperties(wl.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Vi(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Vi(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Vi(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Vi(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Vi(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Vi(this,a),this.pl=a,this._isInvalidBounds=!0}}}),wl.prototype.add=wl.prototype.add,wl.prototype.equalsApprox=wl.prototype.Xa,wl.className="PathFigure";function Ca(a,y,x,E,b,z,ee,re){Po(this),a===void 0&&(a=fs),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===su?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===sl&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===sl&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}Ca.prototype.copy=function(){var a=new Ca;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ee=Ca.prototype,Ee.Xa=function(a){if(!(a instanceof Ca)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ll:case fs:return Rt.B(this.endX,a.endX)&&Rt.B(this.endY,a.endY);case Ml:return Rt.B(this.endX,a.endX)&&Rt.B(this.endY,a.endY)&&Rt.B(this.point1X,a.point1X)&&Rt.B(this.point1Y,a.point1Y)&&Rt.B(this.point2X,a.point2X)&&Rt.B(this.point2Y,a.point2Y);case Fu:return Rt.B(this.endX,a.endX)&&Rt.B(this.endY,a.endY)&&Rt.B(this.point1X,a.point1X)&&Rt.B(this.point1Y,a.point1Y);case sl:return Rt.B(this.startAngle,a.startAngle)&&Rt.B(this.sweepAngle,a.sweepAngle)&&Rt.B(this.centerX,a.centerX)&&Rt.B(this.centerY,a.centerY)&&Rt.B(this.radiusX,a.radiusX)&&Rt.B(this.radiusY,a.radiusY);case su:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Rt.B(this.xAxisRotation,a.xAxisRotation)&&Rt.B(this.endX,a.endX)&&Rt.B(this.endY,a.endY)&&Rt.B(this.radiusX,a.radiusX)&&Rt.B(this.radiusY,a.radiusY);default:return!1}},Ee.qb=function(a){a.classType===Ca&&(this.type=a)},Ee.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ll:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case fs:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ml:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Fu:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case sl:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case su:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.close=function(){return this.isClosed=!0,this};function mu(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Rt.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var ee=Fo.alloc();ee.reset(),x<E?ee.scale(1,E/x):ee.scale(x/E,1),fi.Ha(z,ee),Fo.free(ee)}for(x=z.length,E=0;E<x;E++)ee=z[E],ee[0]+=y,ee[1]+=b,ee[2]+=y,ee[3]+=b,ee[4]+=y,ee[5]+=b,ee[6]+=y,ee[7]+=b;return a.ae=z,a.ae}function au(a,y,x,E){function b(De,nt,Ze,dt){return(De*dt<nt*Ze?-1:1)*Math.acos((De*Ze+nt*dt)/(Math.sqrt(De*De+nt*nt)*Math.sqrt(Ze*Ze+dt*dt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ee=Math.PI/180*a.Ne,re=a.isLargeArc,ae=a.isClockwiseArc,le=a.Dc,ce=a.Ec,fe=Math.cos(ee),Se=Math.sin(ee),we=fe*(x-le)/2+Se*(E-ce)/2;ee=-Se*(x-le)/2+fe*(E-ce)/2;var Ae=we*we/(y*y)+ee*ee/(z*z);return 1<Ae&&(y*=Math.sqrt(Ae),z*=Math.sqrt(Ae)),Ae=(re===ae?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*we*we)/(y*y*ee*ee+z*z*we*we)),isNaN(Ae)&&(Ae=0),re=Ae*y*ee/z,Ae=Ae*-z*we/y,isNaN(re)&&(re=0),isNaN(Ae)&&(Ae=0),x=(x+le)/2+fe*re-Se*Ae,E=(E+ce)/2+Se*re+fe*Ae,ce=b(1,0,(we-re)/y,(ee-Ae)/z),fe=(we-re)/y,le=(ee-Ae)/z,we=(-we-re)/y,re=(-ee-Ae)/z,ee=b(fe,le,we,re),we=(fe*we+le*re)/(Math.sqrt(fe*fe+le*le)*Math.sqrt(we*we+re*re)),-1>=we?ee=Math.PI:1<=we&&(ee=0),!ae&&0<ee&&(ee-=2*Math.PI),ae&&0>ee&&(ee+=2*Math.PI),ae=y>z?1:y/z,we=y>z?z/y:1,y=Rt.jx(0,0,y>z?y:z,ce,ce+ee,!0),z=Fo.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(ae,we),fi.Ha(y,z),Fo.free(z),a.ae=y,a.ae}un.Object.defineProperties(Ca.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Vi(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Vi(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Vi(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Vi(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Vi(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Vi(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Vi(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Vi(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Vi(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Hr(a,">= zero",Ca,"radiusX"),this._isFrozen&&Vi(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Hr(a,">= zero",Ca,"radiusY"),this._isFrozen&&Vi(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Vi(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Vi(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Vi(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Vi(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Vi(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Ca.prototype.equalsApprox=Ca.prototype.Xa;var ll=new ln(Ca,"Move",0),fs=new ln(Ca,"Line",1),Ml=new ln(Ca,"Bezier",2),Fu=new ln(Ca,"QuadraticBezier",3),sl=new ln(Ca,"Arc",4),su=new ln(Ca,"SvgArc",4);Ca.className="PathSegment",Ca.Move=ll,Ca.Line=fs,Ca.Bezier=Ml,Ca.QuadraticBezier=Fu,Ca.Arc=sl,Ca.SvgArc=su;function Gl(){this.H=null,this.xu=new at(0,0).freeze(),this.mt=new at(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Gl.prototype.copy=function(){var a=new Gl;return this.clone(a)},Gl.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Gl.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Gl.prototype.So=function(a,y){var x=this.diagram;return x===null||Pa(x,a,y),y},Gl.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Pa(x,a,y),y.assign(x.Ps(y))),y},un.Object.defineProperties(Gl.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Gl.prototype.getMultiTouchDocumentPoint=Gl.prototype.Bz,Gl.prototype.getMultiTouchViewPoint=Gl.prototype.So,Gl.className="InputEvent";function tc(){this.H=null,this.xa="",this.ar=this.Lr=null}tc.prototype.copy=function(){var a=new tc;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},tc.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},un.Object.defineProperties(tc.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),tc.className="DiagramEvent";function Bs(){this.Fm=As,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Bs.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Bs.prototype.copy=function(){var a=new Bs;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=wn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=wn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=wn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=wn(y)&&typeof y.J=="function"?y.J():y,a},Bs.prototype.qb=function(a){a.classType===Bs&&(this.change=a)},Bs.prototype.toString=function(){var a="";return a=this.change===vu?a+"* ":this.change===As?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===vu?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=va(this.object)),this.oldValue!==null&&(a+=" old: "+va(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+va(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Bs.prototype.I=function(a){return a?this.oldValue:this.newValue},Bs.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Bs.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Bs.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Bs.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Bs.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},un.Object.defineProperties(Bs.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===vu&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Bs.prototype.redo=Bs.prototype.redo,Bs.prototype.canRedo=Bs.prototype.canRedo,Bs.prototype.undo=Bs.prototype.undo,Bs.prototype.canUndo=Bs.prototype.canUndo,Bs.prototype.getParam=Bs.prototype.Dz,Bs.prototype.getValue=Bs.prototype.I,Bs.prototype.clear=Bs.prototype.clear;var vu=new ln(Bs,"Transaction",-1),As=new ln(Bs,"Property",0),Ms=new ln(Bs,"Insert",1),Zs=new ln(Bs,"Remove",2);Bs.className="ChangedEvent",Bs.Transaction=vu,Bs.Property=As,Bs.Insert=Ms,Bs.Remove=Zs;function Pl(){this.o=new _n().freeze(),this.xa="",this.j=!1}Pl.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var E=this.changes.M(x);E!==null&&(y+=`
`+E.toString())}}return y},Pl.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},Pl.prototype.canUndo=function(){return this.isComplete},Pl.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Pl.prototype.canRedo=function(){return this.isComplete},Pl.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Pl.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new wr,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===As&&E.object){var b=y.get(E.object);b||(b=new wr,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},un.Object.defineProperties(Pl.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Pl.prototype.optimize=Pl.prototype.ak,Pl.prototype.redo=Pl.prototype.redo,Pl.prototype.canRedo=Pl.prototype.canRedo,Pl.prototype.undo=Pl.prototype.undo,Pl.prototype.canUndo=Pl.prototype.canUndo,Pl.prototype.clear=Pl.prototype.clear,Pl.className="Transaction";function js(){this.Pt=new An,this.Jd=!1,this.u=new _n().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new _n().freeze(),this.hl=new _n,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}js.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
`+this.history.M(E).toString(a-1);return y},js.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},js.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ee=js.prototype,Ee.Xw=function(a){this.Pt.add(a)},Ee.Rx=function(a){this.Pt.remove(a)},Ee.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},Ee.eb=function(a){return a===void 0&&(a=""),_c(this,!0,a)},Ee.Kf=function(){return _c(this,!1,"")};function _c(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Or("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ee.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},js.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},js.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){Or("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},js.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},js.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){Or("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},js.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Bs;for(E.change=vu,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},js.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Pl);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Or("Change not within a transaction: "+x.toString()))}},js.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},un.Object.defineProperties(js.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),js.prototype.handleChanged=js.prototype.Tu,js.prototype.redo=js.prototype.redo,js.prototype.undo=js.prototype.undo,js.prototype.canUndo=js.prototype.canUndo,js.prototype.discardHistoryAfterIndex=js.prototype.lx,js.prototype.rollbackTransaction=js.prototype.Kf,js.prototype.commitTransaction=js.prototype.eb,js.prototype.startTransaction=js.prototype.Ea,js.prototype.removeModel=js.prototype.Rx,js.prototype.addModel=js.prototype.Xw,js.prototype.clear=js.prototype.clear,js.className="UndoManager";function Vr(){Po(this),this.H=Pr,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Gl,this.Zr=-1}Vr.prototype.toString=function(){return this.name!==""?this.name+" Tool":io(this.constructor)},Vr.prototype.updateAdornments=function(){},Vr.prototype.canStart=function(){return this.isEnabled},Vr.prototype.doStart=function(){},Vr.prototype.doActivate=function(){this.isActive=!0},Vr.prototype.doDeactivate=function(){this.isActive=!1},Vr.prototype.doStop=function(){},Vr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Vr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Vr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Vr.prototype.doMouseMove=function(){},Vr.prototype.doMouseUp=function(){this.stopTool()},Vr.prototype.doMouseWheel=function(){},Vr.prototype.canStartMultiTouch=function(){return!0},Vr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,at.allocAt(NaN,NaN)),E=y.So(1,at.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}at.free(x),at.free(E)},Vr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,at.allocAt(NaN,NaN)),E=y.So(1,at.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new at((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}at.free(x),at.free(E)},Vr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Vr.prototype.doKeyUp=function(){},Vr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Vr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Vr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(el?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(el?y.meta:y.control)||y.shift||a.clearSelection()}},Vr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,ju(a,E,x),E.handled};function ju(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}Vr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,ee=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(E===z||E!==null&&E.rg(z)||(re(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;E!==null&&(ee=E.mouseEnter,!(ee!==null&&(z===E||z!==null&&z.rg(E)||(ee(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},Vr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Vr.prototype.doCurrentObjectChanged=function(){},Vr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===xh&&!y.shift||b===Vc&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===xh&&y.shift||b===Vc&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},Vr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Vr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Fr(function(){x.doWaitAfter(E)},a)},Vr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Yt.clearTimeout(this.Zr),this.Zr=-1},Vr.prototype.doWaitAfter=function(){},Vr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ga);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Vr.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},un.Object.defineProperties(Vr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof At&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),Vr.prototype.startTransaction=Vr.prototype.Ea,Vr.className="Tool";function xs(){Vr.call(this),this.name="ToolManager",this.hb=new _n,this.ob=new _n,this.Hb=new _n,this.F=this.V=850,this.o=new fn(2,2).ja(),this.Ha=5e3,this.ia=Vc,this.u=_u,this.Mp=this.j=null,this.zj=-1}Ft(xs,Vr),xs.prototype.initializeStandardTools=function(){},xs.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ga&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},xs.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Dc&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Zu){y.bubbles=!0;return}if(this.gestureBehavior===Dc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Vc?this.mouseWheelBehavior=xh:this.mouseWheelBehavior===xh&&(this.mouseWheelBehavior=Vc)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},xs.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Zu){y.bubbles=!0;return}if(this.gestureBehavior===Dc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}sd(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function sd(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}xs.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ga&&(y===a||y.rg(a))||this.hideToolTip()},xs.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},xs.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},xs.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Ga)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},xs.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ga){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof qn&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Yt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Fr(function(){b.hideToolTip()},a)}},xs.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},xs.prototype.hideToolTip=function(){this.zj!==-1&&(Yt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ga?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof qn&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},xs.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},xs.prototype.doMouseWheel=function(){this.standardMouseWheel()},xs.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},xs.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},xs.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},xs.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},xs.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},un.Object.defineProperties(xs.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Ga?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),xs.prototype.replaceStandardTool=xs.prototype.gb;var Vc=new ln(xs,"WheelScroll",0),xh=new ln(xs,"WheelZoom",1),Th=new ln(xs,"WheelNone",2),_u=new ln(xs,"GestureZoom",3),Dc=new ln(xs,"GestureCancel",4),Zu=new ln(xs,"GestureNone",5);xs.className="ToolManager",xs.WheelScroll=Vc,xs.WheelZoom=xh,xs.WheelNone=Th,xs.GestureZoom=_u,xs.GestureCancel=Dc,xs.GestureNone=Zu;function Ko(){Vr.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new at(NaN,NaN),this.Fr=new at,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new An().freeze(),this.ia=new oe,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var lu;Ft(Ko,Vr),Ko.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Ko.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Ko.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(el?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ko.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Yr=null,this.isActive=!0,this.tl.set(a.position),Qe(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Hi(a),pa(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Yr=this,ko=this.diagram,this.doSimulatedDragOut()))};function Qe(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof yi?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new Oe,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ko.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ko.prototype.Pd=function(a){return a===void 0?new Ch(St):this.isGridSnapEnabled?new Ch(new at(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Ch(a.copy())},Ko.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Lt(this),Lo(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<lu.count){for(var y=lu,x=y.length,E=0;E<x;E++){var b=y.M(E);Sn(b),dn(b),Lt(b),b.diagram.ug()}y.clear()}Sn(this),this.tl.h(NaN,NaN),ko!==null&&(ko.currentCursor=""),Yr=ko=null,dn(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Lr(a,!0)},Ko.prototype.stopTransaction=function(){var a=this.diagram,y=Vr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Lt(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Ai(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function It(){var a=Yr;dn(a),ui(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ko.prototype.doCancel=function(){dn(this),ui(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ko.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ko.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function jt(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):ui(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new wr,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof yi&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,Qe(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,nf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function dn(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof yi&&(x.value.point=new at(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Sn(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function jn(a,y,x){var E=a.diagram,b=a.startPoint,z=at.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),at.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Hi(E),E.hk())}Ko.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&Za(E,a,y,this.dragOptions,x)};function ui(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof yi&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),nf(E,-b.x,-b.y)}y.bd()}}function ji(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),ir(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=Ai(a,b,E),!a.isActive&&Yr===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Io)){var ae=x.mouseDragOver;ae!==null&&(ae(b),ee=!0)}if(!a.isActive&&Yr===null||(a.doDragOver(y,E),!a.isActive&&Yr===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}Ko.prototype.findDragOverObject=function(a){var y=this;return bo(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ga||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Ko.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function Ai(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ee=0;ee<b;ee++){var re=a.Cg[ee],ae=re.mouseDragLeave;if(ae!==null&&(ae(y,re,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Yr===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=gr(b);for(b=a.Cg.length,x=0;x<b&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),E=!0,!y.handled));x++);return E}function gr(a){var y=a.panel;return y!==null?y:a instanceof zr&&!(a instanceof Io)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Oi(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(le){return E.findValidLinkablePort(le,x)});a=at.alloc();var z=1/0,ee=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var ae=re.ga(Sa,a);ae=y.Bf(ae),ae<z&&(ee=re,z=ae)}}return at.free(a),ee}function ir(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ee=null;x.fromNode===null&&(z=Oi(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,ae=null;x.toNode===null&&(re=Oi(a,x.i(x.pointsCount-1),!0),re!==null&&(ae=re.part)),b.isValidLink(ee,z,ae,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=ae,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):ze(b,ee,z,ae,re):ze(b,null,null,null,null)}}}}Ko.prototype.doDragOver=function(){};function Ji(a,y){var x=a.diagram;a.dragsLink&&ir(a,!0),Lt(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(b,z),b.handled))break;Tr(a,b,z),z=gr(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Yr!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Gi&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Yr!==null){for(a=cn.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Gi&&ro(x,E,a);cn.free(a)}}}function Tr(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Io||(x=a.mouseDrop,x!==null&&x(y))}function ro(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof yi},!0,function(b){return b instanceof yi},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Ko.prototype.doDropOnto=function(){},Ko.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(jt(this,!1),pa(a,this.copiedParts),jn(this,this.copiedParts,!1),Lo(a,this.copiedParts)):this.mayMove()?(dn(this),jn(this,this.draggedParts,!0)):this.mayDragOut()?(jt(this,!1),jn(this,this.copiedParts,!1)):dn(this),ji(this,a.lastInput.documentPoint))}},Ko.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(dn(this),jt(this,!0),pa(a,this.copiedParts),jn(this,this.copiedParts,!1),Lo(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,dn(this),this.mayMove()&&(jn(this,this.draggedParts,!0),ji(this,a.lastInput.documentPoint))),this.Ym=!0,Ji(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Ro(this),a.Ya(),Lo(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Ko.prototype.simulatedMouseMove=function(a,y,x){if(Yr===null)return!1;var E=Yr.diagram;x instanceof At||(x=null);var b=ko;return x!==b&&(b!==null&&b!==E&&(b.ug(),Yr.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),ko=x,x!==null&&x!==E&&(It(),b=x.toolManager.findTool("Dragging"),b!==null&&(lu.contains(b)||lu.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,E.doSimulatedDragOver()),!0)},Ko.prototype.simulatedMouseUp=function(a,y,x){if(Yr===null)return!1;var E=ko,b=Yr.diagram;if(x===null)return Yr.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Yr.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;ko=x,E=x.toolManager.findTool("Dragging"),E!==null&&(It(),lu.contains(E)||lu.add(E),E.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new at),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Yr,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Ro(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Gi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Ko.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(el?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Ko.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Ko.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Ko.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Ko.prototype.Az=function(){return Yr},Ko.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Yr;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ko.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Ja(a),a.animationManager.Cc(),a=Yr,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ko.prototype.doSimulatedDragLeave=function(){var a=Yr;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ko.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Yr;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;ia(this,y.draggedParts.Lf(),!1,a.firstInput),jn(this,this.copiedParts,!1),ji(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ko.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Yr;if(y!==null){var x=y.diagram;if(y.Ym=!0,dn(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),ia(this,y.draggedParts.Lf(),!0,a.lastInput),jn(this,this.copiedParts,!1);var E=new An;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Ji(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function ia(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=cn.alloc();b=E=1/0;for(var ee=-1/0,re=-1/0,ae=y.iterator;ae.next();){var le=ae.value;if(le.isVisible()){var ce=le.location;le=ce.x,ce=ce.y,isNaN(le)||isNaN(ce)||(le<E&&(E=le),ce<b&&(b=ce),le>ee&&(ee=le),ce>re&&(re=ce))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ee-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,cn.free(z),z=a.Fr,ee=new wr,re=at.alloc(),ae=y.iterator;ae.next();)le=ae.value,le instanceof yi&&le.canCopy()&&(ce=x.I(le),ce!==null&&(ce.points=le.points,nf(ce,z.x-E,z.y-b),ce.suspendsRouting=!0,ee.add(ce,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(ae=x.I(le),ae!==null&&(le=le.location,re.h(z.x-(E-le.x),z.y-(b-le.y)),ae.location=re,ae.Va(),ee.add(ae,a.Pd(re))));at.free(re),a.copiedParts=ee,Qe(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,nf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Ko.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ko.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new at},un.Object.defineProperties(Ko.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Ko.prototype.getDraggingSource=Ko.prototype.Az;var Yr=null,ko=null;Ko.className="DraggingTool",lu=new _n,vi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),xs.prototype.doCancel=function(){Yr!==null&&Yr.doCancel(),Vr.prototype.doCancel.call(this)};function oo(){Vr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new yi,y=new Zo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Zo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Gi,y=new Zo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=so,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Gi,y=new Zo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=so,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new wr,this.Of=this.gj=this.Pf=null}Ft(oo,Vr),oo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},oo.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ee=fn.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,E.desiredSize=ee,fn.free(ee),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Sa,z=at.alloc(),x.location=y.ga(Sa,z),at.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},oo.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=so,y.fromSpot=hl,y.toSpot=hl),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},oo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},oo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Gi){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},oo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Gi))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Gi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},oo.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(fe){return b.findValidLinkablePort(fe,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof Gi){var ae=ee.ga(Sa,at.alloc()),le=x.x-ae.x,ce=x.y-ae.y;at.free(ae),ae=le*le+ce*ce,ae<E&&(le=this.validPortsCache.I(ee),le!==null?le&&(y=ee,E=ae):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,E=ae):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof Gi&&(x.layer===null||x.layer.allowLink))?y:null},oo.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},oo.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},oo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},oo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Gi))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Gi))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},oo.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},oo.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new An;return E.add(a),oa(this,x,y,E)};function oa(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),oa(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),oa(a,y.labeledLink,x,E))))}oo.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==qh){if(E===Fd){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!_a(this,a,y,x,!0)}if(E===Zd){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!_a(this,a,y,x,!0)}if(E===Ph)return a===y?a=!0:(E=new An,E.add(y),a=qo(this,E,a,y,x)),!a;if(E===ud)return!_a(this,a,y,x,!1);if(E===cd)return a===y?a=!0:(E=new An,E.add(y),a=cs(this,E,a,y,x)),!a}return!0};function _a(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==E&&(!b||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&_a(a,ee,x,E,b)))return!0}return!1}function qo(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==b&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&qo(a,y,ee,E,b)))return!0}return!1}function cs(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==b){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&cs(a,y,re,E,b))return!0}}return!1}un.Object.defineProperties(oo.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),oo.className="LinkingBaseTool";function ja(){oo.call(this),this.name="Linking",this.V={},this.F=null,this.K=rs,this.Xd=null}Ft(ja,oo),ja.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},ja.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Gi)))return null;var x=this.direction;if(x===rs||x===qs){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===rs||x===Cs)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ja.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Gi&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Gi&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},ja.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ja.prototype.doStop=function(){oo.prototype.doStop.call(this),this.startObject=null},ja.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof Gi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ee):(y=re,x=ee,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(ee===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ja.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof yi)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},ja.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},ja.prototype.doNoLink=function(){},un.Object.defineProperties(ja.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var rs=new ln(ja,"Either",0),qs=new ln(ja,"ForwardsOnly",0),Cs=new ln(ja,"BackwardsOnly",0);ja.className="LinkingTool",ja.Either=rs,ja.ForwardsOnly=qs,ja.BackwardsOnly=Cs;function Oe(){oo.call(this),this.name="Relinking";var a=new Zo;a.figure="Diamond",a.desiredSize=fa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Zo,a.figure="Diamond",a.desiredSize=fa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new cn}Ft(Oe,oo),Oe.prototype.updateAdornments=function(a){if(a!==null&&a instanceof yi){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Oe.prototype.makeAdornment=function(a,y){var x=new Ga;return x.type=ci.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Oe.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Oe.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Ga&&x.adornedPart instanceof yi))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=eo),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=eo),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},Oe.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Zg||x===rf)&&(x=ac),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},Oe.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Oe.prototype.doStop=function(){oo.prototype.doStop.call(this),this.handle=null},Oe.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof Gi&&(this.isForwards?(E=ee,b=this.targetPort):(y=ee,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Oe.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},Oe.prototype.doNoRelink=function(){};function ze(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}un.Object.defineProperties(Oe.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Ga))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Oe.className="RelinkingTool",vi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),vi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function it(){Vr.call(this),this.name="LinkReshaping";var a=new Zo;a.figure="Rectangle",a.desiredSize=ya,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Zo,a.figure="Diamond",a.desiredSize=fa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new at,this.Yq=new _n}Ft(it,Vr),it.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:sn},it.prototype.om=function(a,y){a.reshapingBehavior=y},it.prototype.updateAdornments=function(a){if(a!==null&&a instanceof yi){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},it.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new Ga,b.type=ci.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=E?1:0;if(y.resegmentable&&y.computeCurve()!==Yc)for(var re=x+ee;re<z-ee;re++){var ae=this.makeResegmentHandle(a,re);ae!==null&&(ae.segmentIndex=re,ae.segmentFraction=.5,ae.fromMaxLinks=999,b.add(ae))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&E){ae=y.i(x);var le=y.i(x+1);Rt.B(ae.x,le.x)&&Rt.B(ae.y,le.y)&&(le=y.i(x-1)),Rt.B(ae.x,le.x)?(this.om(re,ke),re.cursor="n-resize"):Rt.B(ae.y,le.y)&&(this.om(re,Ce),re.cursor="w-resize")}else ee===z-1&&E?(ae=y.i(z-1),le=y.i(z),Rt.B(ae.x,le.x)&&Rt.B(ae.y,le.y)&&(ae=y.i(z+1)),Rt.B(ae.x,le.x)?(this.om(re,ke),re.cursor="n-resize"):Rt.B(ae.y,le.y)&&(this.om(re,Ce),re.cursor="w-resize")):ee!==z&&(this.om(re,_e),re.cursor="move");b.add(re)}b.adornedObject=a}return b},it.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},it.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},it.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},it.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof yi){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},it.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},it.prototype.stopTransaction=function(){var a=this.diagram,y=Vr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},it.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},it.prototype.getResegmentingPoint=function(){return this.handle.ga(Sa)},it.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},it.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ee=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(vt(this,ee,E,b,z,!0)||vt(this,ee,E,b,z,!1))){var re=y.points.copy();vt(this,ee,E,b,z,!0)?(re.cd(x-2,new at(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new at(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new at((z.x+ee.x)/2,ee.y)),re.cd(x+1,new at((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(vt(this,E,b,z,ee,!0)||vt(this,E,b,z,ee,!1))&&(re=y.points.copy(),vt(this,E,b,z,ee,!0)?(re.cd(x-1,new at(E.x,(E.y+ee.y)/2)),re.cd(x+2,new at(ee.x,(E.y+ee.y)/2))):(re.cd(x-1,new at((E.x+ee.x)/2,E.y)),re.cd(x+2,new at((E.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=at.alloc(),Rt.qh(E.x,E.y,z.x,z.y,b.x,b.y,ee)&&ee.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),at.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function vt(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}it.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===ke?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===Ce&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)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1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(Sa,at.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,at.alloc()),y.L(0,E.x,E.y),at.free(z),at.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(Sa,at.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,at.alloc()),y.L(y.pointsCount-1,a.x,a.y),at.free(x),at.free(a));y.zf()},it.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case _e:return a;case ke:return new at(y.i(x).x,a.y);case Ce:return new at(a.x,y.i(x).y);default:case sn:return y.i(x)}},un.Object.defineProperties(it.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ga))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),it.prototype.setReshapingBehavior=it.prototype.om,it.prototype.getReshapingBehavior=it.prototype.Ru;var sn=new ln(it,"None",0),Ce=new ln(it,"Horizontal",1),ke=new ln(it,"Vertical",2),_e=new ln(it,"All",3);it.className="LinkReshapingTool",it.None=sn,it.Horizontal=Ce,it.Vertical=ke,it.All=_e,vi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ye(){Vr.call(this),this.name="Resizing",this.o=new fn(1,1).freeze(),this.j=new fn(9999,9999).freeze(),this.yg=new fn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Zo;a.alignmentFocus=Sa,a.figure="Rectangle",a.desiredSize=ya,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new at,this.Dw=new fn,this.Tn=new at,this.rt=new fn(0,0),this.qt=new fn(1/0,1/0),this.pt=new fn(1,1)}Ft(Ye,Vr),Ye.prototype.updateAdornments=function(a){if(!(a===null||a instanceof yi)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),Pf(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Ye.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ga,y.type=ci.Spot,y.locationSpot=Sa;var x=new oc;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Rs)),y.add(this.makeHandle(a,zu)),y.add(this.makeHandle(a,eu)),y.add(this.makeHandle(a,Fl)),y.add(this.makeHandle(a,tu)),y.add(this.makeHandle(a,xl)),y.add(this.makeHandle(a,Ts)),y.add(this.makeHandle(a,Vl))}else if(fh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ye.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Ye.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=Sa),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof ci)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ye.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Ye.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Ye.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ye.prototype.stopTransaction=function(){var a=this.diagram,y=Vr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ye.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ye.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,at.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),at.free(b)}},Ye.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,at.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),at.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ye.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Io){var E=new _n;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new oe;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Ye.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Sa);var ee=this.adornedObject.naturalBounds,re=ee.x,ae=ee.y,le=ee.x+ee.width,ce=ee.y+ee.height,fe=1;if(!z){fe=ee.width;var Se=ee.height;0>=fe&&(fe=1),0>=Se&&(Se=1),fe=Se/fe}return Se=at.alloc(),Rt.No(a.x,a.y,re,ae,b.width,b.height,Se),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(Se.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.x=le-a.width,a.y=ce-a.height)):1<=y.y?(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(Se.y-ae,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.x=le-a.width)):(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe,a.y=ae+.5*(ce-ae-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),a.y=Math.max(Se.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.y=ce-a.height)):1<=y.y?(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),a.height=Math.max(Math.min(Se.y-ae,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width))):(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe,a.y=ae+.5*(ce-ae-a.height))):0>=y.y?(a.y=Math.max(Se.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=ce-a.y,z||(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Se.y-ae,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width,a.x=re+.5*(le-re-a.width))),at.free(Se),a},Ye.prototype.computeReshape=function(){var a=Dn;return this.adornedObject instanceof Zo&&(a=L0(this.adornedObject)),!(a===er||this.diagram.lastInput.shift)},Ye.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Ye.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},Ye.prototype.computeCellSize=function(){var a=new fn(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},un.Object.defineProperties(Ye.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Ga))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ga)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Ye.className="ResizingTool",vi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function kt(){Vr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new at,this.ue=null;var a=new Zo;a.figure="Ellipse",a.desiredSize=fa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new at(NaN,NaN),this.u=0,this.F=50}Ft(kt,Vr),kt.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},kt.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ga,y.type=ci.Position,y.locationSpot=Sa;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(fh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},kt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},kt.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},kt.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(Sa)},kt.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},kt.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new at(NaN,NaN),this.isActive=a.isMouseCaptured=!1},kt.prototype.stopTransaction=function(){var a=this.diagram,y=Vr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},kt.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},kt.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},kt.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},kt.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},kt.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},un.Object.defineProperties(kt.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ga))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ga)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),kt.className="RotatingTool",vi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function _t(){Vr.call(this),this.name="ClickSelecting"}Ft(_t,Vr),_t.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},_t.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},_t.className="ClickSelectingTool";function on(){Vr.call(this),this.name="Action",this.pk=null}Ft(on,Vr),on.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},on.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},on.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},on.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},on.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},on.prototype.doStop=function(){this.pk=null},on.className="ActionTool";function zn(){Vr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new at(0,0)}Ft(zn,Vr),zn.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},zn.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},zn.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof zr)x.Zc()&&(fh(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);wn(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=at.allocAt(a.x,a.y);this.isGridSnapEnabled&&yl(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),at.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},un.Object.defineProperties(zn.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),zn.className="ClickCreatingTool";function yn(){Vr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new zr;a.layerName="Tool",a.selectable=!1;var y=new Zo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Ft(yn,Vr),yn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},yn.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},yn.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},yn.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var E=fn.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),fn.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},yn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},yn.prototype.computeBoxBounds=function(){var a=this.diagram;return new cn(a.firstInput.documentPoint,a.lastInput.documentPoint)},yn.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),el?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new _n,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},un.Object.defineProperties(yn.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),yn.className="DragSelectingTool";function Fn(){Vr.call(this),this.name="Panning",this.Xt=new at,this.xy=new at,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Yt.document,"scroll",a.Kw,!1),a.stopTool()}}Ft(Fn,Vr),Fn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},Fn.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Yt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Fn.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Fn.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Fn.prototype.doMouseMove=function(){this.move()},Fn.prototype.doMouseUp=function(){this.move(),this.stopTool()},Fn.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},un.Object.defineProperties(Fn.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Fn.className="PanningTool",vi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),vi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),vi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),vi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),vi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function qn(){this.F=this.u=this.j=this.o=null}un.Object.defineProperties(qn.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),qn.className="HTMLInfo";function $n(a,y,x){this.text=a,this.hx=y,this.visible=x}$n.className="ContextMenuButtonInfo";function Wi(){Vr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new at,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Ft(Wi,Vr);function xi(a){var y=new qn;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},to=y,a.tu=function(){a.stopTool()},y=si("div");var x=si("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=si("style");Yt.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",li,!1),E.addEventListener(y,"selectstart",li,!1),E.addEventListener(x,"contextmenu",li,!1)),y.className="goCXforeground",x.className="goCXbackground",Yt.document.body&&(Yt.document.body.appendChild(y),Yt.document.body.appendChild(x)),wo=y,Sr=x,br=!0}function li(a){return a.preventDefault(),!1}Wi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Wi.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Wi.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Wi.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof At||(a instanceof bt?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},Wi.prototype.doActivate=function(){},Wi.prototype.doMouseDown=function(){if(Vr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ga){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Fi(this)},Wi.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ga){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Fi(this)};function Fi(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof qn||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Zi(a,!0),a.isActive||a.stopTool())}Wi.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Zi(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=to,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof bt?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ga&&!a.currentContextMenu.visible&&a.stopTool()}}Wi.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Wi.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ga){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof qn&&a.show(y,x,this);this.currentContextMenu=a},Wi.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},Wi.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ga?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof qn&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function ur(a){var y=new _n;return y.add(new $n("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new $n("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new $n("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new $n("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new $n("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new $n("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new $n("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new $n("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new $n("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new $n("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new $n("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new $n("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new $n("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Wi.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=ur(this)),wo.innerHTML="",Sr.addEventListener("pointerdown",this.tu,!1);var y=this,x=si("ul");x.className="goCXul",wo.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=si("li"),z.className="goCXli";var ee=si("a");ee.className="goCXa",ee.href="#",ee.ky=b.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=b.text,z.appendChild(ee),x.appendChild(z)}}wo.style.display="block",Sr.style.display="block"},Wi.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===to){wo.style.display="none",Sr.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Sr,"pointerdown",this.tu,!1),this.currentContextMenu=null}},un.Object.defineProperties(Wi.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ga?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return br===!1&&to===null&&zs&&xi(this),to},set:function(a){a===null&&(br=!0),to=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var to=null,br=!1,Sr=null,wo=null;Wi.className="ContextMenuTool",vi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Mi(){Vr.call(this),this.name="TextEditing",this.Zh=new ks,this.ia=null,this.V=zo,this.vj=null,this.qa=Co,this.u=1,this.F=!0,this.o=null,this.j=new qn,this.kt=null,Jr(this,this.j)}Ft(Mi,Vr);function Jr(a,y){if(zs){var x=si("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(To)):b==="Tab"?(a.acceptText(Ar),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Co){var E=a.kt;a.qa===ca&&(a.qa=Da),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Co){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof ks&&z instanceof Mi)if(z.state===Qr)x.style.border="3px solid red",x.focus();else{var ee=E.ga(Sa),re=b.position,ae=b.scale,le=E.Df()*ae;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var ce=E.naturalBounds.width*le+6,fe=E.naturalBounds.height*le+2,Se=(ee.x-re.x)*ae;ee=(ee.y-re.y)*ae,re=E.verticalAlignment,ae=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*le,fe=re.y*fe-re.y*ae+re.offsetY-(.5*fe-.5*ae)-ae/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*le+"%",x.style.lineHeight="normal",x.style.width=ce+"px",x.style.left=(Se-ce/2|0)-1+"px",x.style.top=(ee+fe|0)-1+"px",x.style.textAlign=E.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=E.lineCount,x.wA=le,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}Mi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||ua&&ua!==this&&(ua.acceptText(po),ua&&ua!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ks&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===zo&&!y.isSelected||this.starting===Dr&&2>a.lastInput.clickCount)):!1},Mi.prototype.doStart=function(){ua=this,this.textBlock!==null&&this.doActivate()},Mi.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof ks&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=ca;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new cn(this.textBlock.ga(Rs),this.textBlock.ga(eu));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Mi.prototype.doCancel=function(){this.stopTool()},Mi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Mi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(po)},Mi.prototype.acceptText=function(a){switch(a){case po:this.qa===Jo?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===ca||this.qa===Qr||this.qa===Da)&&(this.qa=ga,mr(this));break;case ao:case To:case Ar:(To!==a||this.textBlock.isMultiline!==!0)&&(this.qa===ca||this.qa===Qr||this.qa===Da)&&(this.qa=ga,mr(this))}};function mr(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Jo,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Qr,a.doError(b,z))}}Mi.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Mi.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Mi.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Co,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Mi.prototype.doStop=function(){ua=null},Mi.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Mi.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},un.Object.defineProperties(Mi.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Mi.prototype.measureTemporaryTextBlock=Mi.prototype.Lx;var ao=new ln(Mi,"LostFocus",0),po=new ln(Mi,"MouseDown",1),Ar=new ln(Mi,"Tab",2),To=new ln(Mi,"Enter",3),mo=new ln(Mi,"SingleClick",0),zo=new ln(Mi,"SingleClickSelected",1),Dr=new ln(Mi,"DoubleClick",2),Co=new ln(Mi,"StateNone",0),ca=new ln(Mi,"StateActive",1),Da=new ln(Mi,"StateEditing",2),ga=new ln(Mi,"StateValidating",3),Qr=new ln(Mi,"StateInvalid",4),Jo=new ln(Mi,"StateValidated",5),ua=null;Mi.className="TextEditingTool",Mi.LostFocus=ao,Mi.MouseDown=po,Mi.Tab=Ar,Mi.Enter=To,Mi.SingleClick=mo,Mi.SingleClickSelected=zo,Mi.DoubleClick=Dr,Mi.StateNone=Co,Mi.StateActive=ca,Mi.StateEditing=Da,Mi.StateValidating=ga,Mi.StateInvalid=Qr,Mi.StateValidated=Jo,vi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Ea(a){Ie||(Do(),Ie=!0),this.H=Pr,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=je,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new An,this.ce=new Ht,this.ce.Yd=this,this.Ei=new An,this.pu=new An,this.Sr=new An,this.pr=new An,a&&Object.assign(this,a)}Ea.prototype.Xe=function(a){this.H=a},Ea.prototype.canStart=function(){return!0};function es(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ma(a.H),a.zb=!0)}function ba(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===je?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===gt&&y.vc.clear(),a.Qw=!!(a.Pk===Ue&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),$t(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Au&&E!==null&&(delete E.start.scale,delete E.end.scale),Yt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Hi(x),Eo(x),a.zb=!1,y.start(),y.bc&&(Vo(a),x.Ya(),Mn(y,0),Ja(x,!0),Zr(a),x.R("AnimationStarting",a)))}))}}function _o(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function yo(a,y,x,E){a.isTicking||_o(a)||y instanceof yi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ee=Ea.prototype,Ee.fv=function(a){return this.ce.fv(a)},Ee.Xu=function(a){return this.ce.Xu(a)};function ta(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var ae=re.key;if(ae instanceof bt&&ae.diagram!==null||ae instanceof At){re=!0;break e}}re=!1}re?Un(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(Vo(b),Ja(b.H),Zr(b)),Yt.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Yt.requestAnimationFrame(function(){x()}))}function Ka(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Vo(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Zr(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ee.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),$t(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),$t(y,this.H)},Ee.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},Ee.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Mr(this,a))},Ee.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),an(this.ce,y,"position",y.position,y.position),Mr(this,a))};function ho(a,y,x){!a.zb||y.D(x)||_o(a)||(a.H.pi||(y=x.copy()),an(a.ce,a.H,"position",y,x))}function fo(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Mr(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Gr(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var ae=y[0],le=y[1],ce=y[2];return y=y[3],re===0||re===100?(z=ae,ee=le):(ce===0||ce===100)&&(ae=z,le=ee),180<Math.abs(ae-z)&&(ae>z?z+=360:ae+=360),z=b(x,z,ae-z,E)%360,ee=b(x,ee,le-ee,E),re=b(x,re,ce-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function Do(){function a(x,E,b,z,ee,re){x.position=new at(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}var y=new wr;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new at(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("location",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!0):x.location=new at(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:placeholder",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new at(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:nodeCollapse",function(x,E,b,z,ee,re){var ae=x.actualBounds,le=b.actualBounds;b=le.x+le.width/2-ae.width/2,ae=le.y+le.height/2-ae.height/2,ee<re?x.mm(z(ee,E.x,b-E.x,re),z(ee,E.y,ae-E.y,re),!1):x.position=new at(z(ee,E.x,b-E.x,re),z(ee,E.y,ae-E.y,re))}),y.add("desiredSize",function(x,E,b,z,ee,re){x.desiredSize=new cn(z(ee,E.width,b.width-E.width,re),z(ee,E.height,b.height-E.height,re))}),y.add("width",function(x,E,b,z,ee,re){x.width=z(ee,E,b-E,re)}),y.add("height",function(x,E,b,z,ee,re){x.height=z(ee,E,b-E,re)}),y.add("fill",function(x,E,b,z,ee,re){x.fill=Gr(E,b,ee,re,z)}),y.add("stroke",function(x,E,b,z,ee,re){x.stroke=Gr(E,b,ee,re,z)}),y.add("strokeWidth",function(x,E,b,z,ee,re){x.strokeWidth=z(ee,E,b-E,re)}),y.add("strokeDashOffset",function(x,E,b,z,ee,re){x.strokeDashOffset=z(ee,E,b-E,re)}),y.add("background",function(x,E,b,z,ee,re){x.background=Gr(E,b,ee,re,z)}),y.add("areaBackground",function(x,E,b,z,ee,re){x.areaBackground=Gr(E,b,ee,re,z)}),y.add("opacity",function(x,E,b,z,ee,re){x.opacity=z(ee,E,b-E,re)}),y.add("scale",function(x,E,b,z,ee,re){x.scale=z(ee,E,b-E,re)}),y.add("angle",function(x,E,b,z,ee,re){x.angle=z(ee,E,b-E,re)}),ye=y}un.Object.defineProperties(Ea.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Hr(a,">= 1",Ea,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Ea.prototype.stopAnimation=Ea.prototype.Cc;var ye=null,Ie=!1,je=new ln(Ea,"Default",1),Ue=new ln(Ea,"AnimateLocations",2),gt=new ln(Ea,"None",3);Ea.className="AnimationManager",Ea.defineAnimationEffect=function(a,y){Ie||(Do(),Ie=!0),ye.add(a,y)},Ea.Default=je,Ea.AnimateLocations=Ue,Ea.None=gt;function Ht(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Ei,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=St,this.vc=new wr,this.Tt=new wr,this.yl=new An,this.Ut=new An,this.dw=Oh,a&&Object.assign(this,a)}Ht.prototype.suspend=function(){this.Xk=!0},Ht.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Un(this,!0),Vo(this.Yd),Ja(this.H),Zr(this.Yd),this.H.redraw()};function $t(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Ee=Ht.prototype,Ee.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof At?a=x:x instanceof bt&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===je&&this===y.defaultAnimation&&(this.Lp=Ui,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=$h),Vo(y),this.yl.each(function(E){E.data=null,a.add(E)}),Zr(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ta(y,this),this)},Ee.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ee.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof At?this.H=a:a instanceof bt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof zr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return an(this,a,y,x,E,b),this};function an(a,y,x,E,b,z){var ee=a.vc;if(y instanceof At&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Bd(E),c0(),E=[Uc.j,Uc.u,Uc.o,Uc.F],Bd(b),c0(),b=[Uc.j,Uc.u,Uc.o,Uc.F]),ee.contains(y)){var re=ee.I(y),ae=re.start,le=re.end;ae[x]===void 0&&(ae[x]=Tn(E)),le[x]=Tn(b)}else ae={},le={},ae[x]=Tn(E),le[x]=Tn(b),re=ae.position,y instanceof bt&&re instanceof at&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new Ci(ae,le,z),ee.add(y,re);ee=ae[x],ee instanceof at&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof zr?re.Ku.location=Tn(y.location):z&&(re.Ku[x]=Tn(E))}function Tn(a){return a instanceof at||a instanceof fn?a.copy():a}Ee.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ee.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Un(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),Vo(x),Mn(a,b),Ja(a.H,!0),Zr(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Mn(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof bt&&z.diagram===null)){var ee=E.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var ae=ye,le;for(le in ee)le==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||ae.get(le)===null||ae.get(le)(z,re[le],ee[le],a.Lp,y,x,a)}}}Ee.stop=function(){return this.bc?(this.Ml(!0),this):this},Ee.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Vo(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=ye;E.next();){var ee=E.key,re=E.value,ae=b?re.end:re.start,le=b?re.start:re.end,ce=re.Ku,fe;for(fe in le)if(z.get(fe)!==null){var Se=fe;!re.Hu||Se!=="position:nodeCollapse"&&Se!=="position:placeholder"||(Se="position"),z.get(Se)(ee,ae[fe],ce[fe]!==void 0?ce[fe]:re.Hu?ae[fe]:le[fe],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ce.location!==void 0&&ee instanceof zr&&(ee.location=ce.location),re.nv&&ee instanceof zr&&ee.Zb(!1)}if(y.As.clear(),Lr(y,!1),y.Ya(),y.N(),Ja(y,!0),x.defaultAnimation===this){for(fe=x.pr.iterator;fe.next();)b=fe.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Ja(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Zr(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),$t(this,null),x.Ml(this),y.$b())}},Ee.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Io&&(E=y.placeholder),E!==null?(x=E.ga(Rs),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new at(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Io)for(a=a.memberParts;a.next();)E=a.value,E instanceof Gi&&this.Cj(E,y)},Ee.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Io&&(x=y.placeholder),x!==null){var E=x.ga(Rs);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Io)for(a=a.memberParts;a.next();)E=a.value,E instanceof Gi&&this.Aj(E,y)}},Ee.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},un.Object.defineProperties(Ht.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Hr(a,">= 1",Ht,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:tn("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),Ht.prototype.getTemporaryState=Ht.prototype.Ez,Ht.prototype.stop=Ht.prototype.stop,Ht.prototype.add=Ht.prototype.add,Ht.prototype.addTemporaryPart=Ht.prototype.Iy;function Ei(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Ui(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Ht.className="Animation",Ht.EaseLinear=function(a,y,x,E){return x*a/E+y},Ht.EaseInOutQuad=Ei,Ht.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Ht.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Ht.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Ht.EaseOutExpo=Ui;function Ci(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ci.className="AnimationState";function Li(a,y,x){this.xd=null,this.rf=a,this.so=x||Ni,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=bn))}Li.prototype.copy=function(){var a=new Li(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Di(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}un.Object.defineProperties(Li.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Ni=new ln(Li,"Default",1),bn=new ln(Li,"Immediate",2),Yn=new ln(Li,"Bundled",3);Li.className="AnimationTrigger",Li.Default=Ni,Li.Immediate=bn,Li.Bundled=Yn;function ei(a){Po(this),this.H=null,this.Pa=new _n,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ee=ei.prototype,Ee.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Gu(x)}a.clear(),this.Zq.length=0},Ee.Xe=function(a){this.H=a},Ee.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,ee=0,re=this.Pa.iterator;re.next();){var ae=re.value;ae instanceof Io?b++:ae instanceof Gi?E++:ae instanceof yi?z++:ae instanceof Ga?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<E&&(re+=E+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
`+x.toString(),E=x.data,E!==null&&ds(E)&&(re+=" #"+ds(E)),x instanceof Gi?re+=" "+va(E):x instanceof yi&&(re+=" "+va(x.fromNode)+" "+va(x.toNode));return y+" "+this.Pa.count+": "+re},Ee.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=at.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((E!==!0||Pf(re)!==!1)&&re.isVisible()&&(b.assign(a),wi(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return at.free(b),re}return at.free(b),null},Ee.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof _n||E instanceof An||(E=new An),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=at.alloc(),ee=this.Pa.s,re=ee.length;re--;){var ae=ee[re];if((b!==!0||Pf(ae)!==!1)&&ae.isVisible()){z.assign(a),wi(z,ae.oe);var le=ae;ae.ji(z,y,x,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return at.free(z),E},Ee.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof _n||b instanceof An||(b=new An),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var ae=ee[re];if((z!==!0||Pf(ae)!==!1)&&ae.isVisible()){var le=ae;ae.Cf(a,y,x,E,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return b},Ee.Nu=function(a,y,x,E,b,z,ee){if(this.Uh===!1)return b;for(var re=this.Pa.s,ae=re.length;ae--;){var le=re[ae];if((ee!==!0||Pf(le)!==!1)&&z(le)&&le.isVisible()){var ce=le;le.Cf(a,y,x,E,b)&&(y!==null&&(ce=y(ce)),ce===null||x!==null&&!x(ce)||b.add(ce))}}return b},Ee.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof _n||b instanceof An)&&(z=b),b=!0),z instanceof _n||z instanceof An||(z=new An),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=at.alloc(),ae=at.alloc(),le=this.Pa.s,ce=le.length;ce--;){var fe=le[ce];if((ee!==!0||Pf(fe)!==!1)&&fe.isVisible()){re.assign(a),wi(re,fe.oe),ae.h(a.x+y,a.y),wi(ae,fe.oe);var Se=fe;fe.og(re,ae,x,E,b,z)&&(x!==null&&(Se=x(Se)),Se===null||E!==null&&!E(Se)||z.add(Se))}}return at.free(re),at.free(ae),z},Ee.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=hr();for(var b=hr(),z=0;z<E;z++){var ee=x[z];if(ee.vw=z,ee instanceof yi){if(ee.fd===!1)continue}else if(ee instanceof Ga&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&fc(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&b.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],z0(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)z0(b[y]);Nr(a),Nr(b)}}};function pi(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ee.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=pi(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=cn.alloc(),ae=0;ae<E;ae++)this.Oj(a,x[ae],y,z,ee,re,!0);if(cn.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function rr(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var ee=pi(a,y),re=a.Zq;re.length=0;for(var ae=x.scale,le=cn.alloc(),ce=0;ce<z;ce++){var fe=b[ce];E.contains(fe)&&a.Oj(y,fe,x,re,ae,le,!1)}cn.free(le),y.globalAlpha=ee}}}Ee.Oj=function(a,y,x,E,b,z,ee){if(ee&&!Pf(y))a.Hs(y);else{if(E!==null&&y instanceof yi&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,E=y.containingGroup;E!==null;)ee?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(ee=!0,z.assign(E.tb)),E=E.containingGroup;var re=y.actualBounds;if(E=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}E=!z.Re(re)}E&&(a.save(),a instanceof Tc?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>x.Oq||re.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Sl(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Sl(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Sl(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ee.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(As,a,this,y,x,E,b)},Ee.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Gu(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),$i(this,a,y),a},Ee.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Gu(y),a};function $i(a,y,x){if(y=sr(a,y,x),x instanceof Io&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];if(re===x&&(y=ee,0<=E)||0>E&&re.containingGroup===x&&(E=ee,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&$i(a,-1,y)}x.svg!==null&&x.svg.remove()}function sr(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,ae=NaN;re<b&&(ae=a.M(re).zOrder,!!isNaN(ae));)re++;if(!isNaN(ee)&&ee>E)for(;;){if(z===-1||ee<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(ae)&&ae<E)for(;;){if(re===b||ae>=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(ae=NaN;++re<b&&(ae=a.M(re).zOrder,isNaN(ae)););}return y}un.Object.defineProperties(ei.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&tn("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&tn("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Hr(a,"0 <= value <= 1",ei,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),ei.prototype.findObjectsNear=ei.prototype.og,ei.prototype.findObjectsIn=ei.prototype.Cf,ei.prototype.findObjectsAt=ei.prototype.ji,ei.prototype.findObjectAt=ei.prototype.ic,ei.className="Layer";function At(a,y){if(Vf||(yu(),Vf=!0),Po(this),Pr=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,zs){var x=this,E=function(){x.removeEventListener(Yt.document,"DOMContentLoaded",E,!1),x.setRTL()};Yt.document.body!==null?this.setRTL():x.addEventListener(Yt.document,"DOMContentLoaded",E,!1)}this.ol=null,ch.add("Model",ss);var b=this;return this.Hb=function(z){var ee=b.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===As&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Ir(this),this.model=gy(),this.Wg=!0,vr(this),this.layout=new $s,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new Kf,a!==void 0&&(typeof a=="string"||Yt.Element&&a instanceof Element?Pi(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var cr,Pr;function Ir(a){a.Yd=new Ea,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new _n,a.pj=new wr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new at(NaN,NaN).freeze(),a.du=new at(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new at(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Fo,a.zu=new at(NaN,NaN).freeze(),a.ut=new cn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Mo(0,0,0,0).freeze(),a.sj=Oh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Au,a.zk=ml,a.Fg=Au,a.pq=ml,a.yt=Rs,a.Bt=Rs,a.Fc=!0,a.pn=!1,a.De=new An,a.Eh=new wr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Mo(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Gl,a.bq.diagram=a,a.Qg=new Gl,a.Qg.diagram=a,a.cj=new Gl,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,uh(a),a.ai=new An,a.Ht=!0,a.uu=Ih,a.pw=!1,a.wu=qh,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new wr,a.Xn=new _n,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new Mo(5).freeze(),a.Hw=new An().freeze(),a.Nt=999999999,a.nw=new An().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new An,a.ow=new An,a.Xh=null,a.aw=new fn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new at,bounds:new cn,Py:new fn,bA:new fn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new cn(NaN,NaN,NaN,NaN).freeze(),a.wo=new fn(NaN,NaN).freeze(),a.Sp=new cn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new wr;var y=new Gi,x=new ks;x.bind(new Dl("text","",va)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Gi,x=new ks,x.stroke="brown",x.bind(new Dl("text","",va)),y.add(x),a.Lg.add("Comment",y),y=new Gi,y.selectable=!1,y.avoidable=!1,x=new Zo,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new fn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new wr,y=new Io,y.selectionObjectName="GROUPPANEL",y.type=ci.Vertical,x=new ks,x.font="bold 12pt sans-serif",x.bind(new Dl("text","",va)),y.add(x),x=new ci(ci.Auto),x.name="GROUPPANEL";var E=new Zo;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new oc,E.padding=new Mo(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new wr,y=new yi,x=new Zo,x.isPanelMain=!0,y.add(x),x=new Zo,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new yi,x=new Zo,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ga,y.type=ci.Auto,x=new Zo,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new oc,x.margin=new Mo(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ga,y.type=ci.Link,x=new Zo,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new ss,a.toolManager=new xs,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new oe,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Ur(),a.eq=null,a.fq=Ii,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new at,a.zy=500,a.wp=new at,a.wq=!1}At.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),ld=null,Bh="",Oo(this,!1),this.Xn.clear(),Vg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Oo(a,y){a.animationManager.Cc(!0),a.Hw=new An().freeze(),a.nw=new An().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var ae=re.value;ae!==b&&ae.data===null&&z.push(ae)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Vg(),a.Og.clear(),Ns=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Ur(){return null}At.prototype.reset=function(){this.clear(),this.vb=!0,Ir(this),Nl(this),this.Wg=!0,vr(this),this.layout=new $s,this.Wg=!1,this.model=gy(),this.model.undoManager=new js,this.vb=this.rn=!1,this.N()},At.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Yt.document.body);var y=si("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},At.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Yt.document.body);var y=0;if(zs){var x=Yd;y=cr,x===null&&(x=Yd=si("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=cr=si("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||el||(y=11)}this.Db=y,this.Gw=!0},At.prototype.qb=function(a){a.classType===At&&(this.autoScale=a)},At.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
`+x.value.toString(a-1);return y};function Pi(a,y){if(zs){if(y!=null||tn("Diagram setup requires an argument DIV."),a.Ka!==null&&tn("Diagram has already completed setup."),typeof y=="string"?a.Ka=Yt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:tn("No DIV or DIV id supplied: "+y),a.Ka===null&&tn("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&tn("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Yt.ResizeObserver){var x=En(function(){a.$b()},250);a.ol=new Yt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Yt.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Yt.go;var b=new dh(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Yt.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Yl(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new dh(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,zs){b=si("div");var z=si("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=xr,b.addEventListener("pointerdown",fr),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=En(function(){a.Yh=null,a.N()},300),a.Ov=En(function(){Eo(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=xa(a,ee,!0);re.bubbles=!0;var ae=0,le=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(ae=0<ee.deltaX?1:-1),ee.deltaY!==0&&(le=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-ae:-le):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(ae=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(le=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-ae:-le):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),Rr(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,xa(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var ae=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,ae=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,ae=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=ae;ae=no(a,ee,!0,!1,!0,le),wa(a,ee,ae),ae.targetDiagram=Oa(ee,ee.target),ae.targetObject=null,le||ae.clone(a.bq),le=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-ee.screenX)>re||Math.abs(le.y-ee.screenY)>re)?a.yq++:a.yq=1,ae.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():Rr(ae,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=no(a,ee,!1,!1,!1,re[1]!==null);var ae=Yt.document.elementFromPoint(ee.clientX,ee.clientY)||null;ae!==null&&ae.shadowRoot!==void 0&&ae.shadowRoot!==null&&(ae=ae.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var le=a,ce=ee;ae&&ae.H&&(ce=ee,le=ae.H),re.targetDiagram=le,wa(a,ce,re),re.targetObject=null,a.doMouseMove(),Rr(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",ae=a.Yt;if(re&&a.qu)delete ae[ee.pointerId],ee.preventDefault();else if(ae=a.oj,ae[0]===null||ae[0].pointerId!==ee.pointerId&&ae[0].pointerType===ee.pointerType)ae[1]!==null&&ae[1].pointerId===ee.pointerId&&(ae[1]=null);else{ae[0]=null,ae=no(a,ee,!1,!0,!0,!1);var le=Yt.document.elementFromPoint(ee.clientX,ee.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),le!==null&&le.H instanceof At&&le.H!==a&&wa(le.H,ee,ae),le===null&&(le=ee.target),wa(a,ee,ae),ae.clickCount=a.yq,ae.targetDiagram=Oa(ee,le),ae.targetObject=null,a.doMouseUp(),Rr(ae,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+Dd[1]+Dd[2]+"wI"+dd.slice(1,5)]["b"+Hx.slice(1,y)](E.Z,Nd,y,y),E.Vc(!0),qi(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}At.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},At.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function qi(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Yt,"resize",a.Ov,!1)}function Hi(a){30<a.Sq&&(a.Yh=1)}function Lr(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),ms&&ms.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}At.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Yt.devicePixelRatio||1},At.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},At.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},At.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},At.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},At.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},At.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},At.prototype.doFocus=function(){this.focus()},At.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Yt.scrollX||Yt.pageXOffset,y=Yt.scrollY||Yt.pageYOffset;this.ta.focus(),Yt.scrollTo(a,y)}},At.prototype.Oy=function(){this.H.R("GainedFocus")},At.prototype.Ny=function(){this.H.R("LostFocus")};function Eo(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Au&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function vr(a){var y=new ei;y.name="Background",a.Al(y),y=new ei,y.name="",a.Al(y),y=new ei,y.name="Foreground",a.Al(y),y=new ei,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new ei,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new ei,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function qr(a){var y=new ci(ci.Grid);y.name="GRID";var x=new Zo;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Zo,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Zo,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Zo,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Zo,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Zo,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new zr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function xr(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Js(this.H)}function fr(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Js(this.H)}At.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,ee=E.x-z.left,re=E.y-z.top,ae=E.width+z.left+z.right,le=E.height+z.top+z.bottom,ce=E.right+z.right;z=E.bottom+z.bottom;var fe=b.x;E=b.y;var Se=b.width,we=b.height,Ae=b.right,De=b.bottom;b=this.scale;var nt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":nt=nt+a.scrollWidth-a.clientWidth;break;case"reverse":nt=a.scrollWidth-nt-a.clientWidth}var Ze=nt;Se<ae||we<le?(nt=at.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ze&&(nt.x=Ze/b+ee,this.ju=Ze),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(nt.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=nt,at.free(nt),this.Ee=this.qr=!1):(nt=at.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=nt.h(Ze+ee,this.position.y)),ce>Ae&&(this.position=nt.h(-(y.scrollWidth-this.Aa)+Ze-this.Aa/b+ce,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=nt.h(this.position.x,a.scrollTop+re)),z>De&&(this.position=nt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),at.free(nt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ce=E.right,Ae=b.right,z=E.bottom,De=b.bottom,ee=E.x,fe=b.x,re=E.y,E=b.y,Se>=ae&&ee>=fe&&ce<=Ae&&(x.style.width="1px"),we>=le&&re>=E&&z<=De&&(x.style.height="1px"))}},At.prototype.computeBounds=function(a){return a===void 0&&(a=new cn),Ma(this),_r(this,a)};function _r(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var ee=E[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,ae=0;ae<re;ae++){var le=ee[ae];le.isInDocumentBounds&&le.isVisible()&&(le=le.actualBounds,le.w()&&(x?(x=!1,y.assign(le)):y.ed(le)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}At.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(or(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof yi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof yi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new cn(NaN,NaN,0,0):x};function Kr(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=at.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=cn.allocAt(0,0,E.width,E.height);var b=at.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,cn.free(E),at.free(b),at.free(x)}x=a.yh,y&&a.Fg!==Au&&(x=a.Fg);var z=x!==Au?Aa(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var ee=a.ya/z,re=a.zk,ae=a.pq;y&&!re.sb()&&(ae.sb()||ae.Xb())&&(re=ae.Xb()?Sa:ae),Ya(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Rt.B(z.x,x)&&Rt.B(z.y,E)&&Rt.B(z.width,b)&&Rt.B(z.height,ee)||a.onViewportBoundsChanged(new cn(x,E,b,ee),z,y,!1)}}function Aa(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/b,ae=ee/E;return y===Vu?(y=Math.min(ae,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Qh?(y=ae>re?(ee-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}At.prototype.zoomToFit=function(){var a=this.sj;this.sj=Oh,this.scale=Aa(this,Vu),a!==Oh&&(Kr(this,!1),Ya(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ee=At.prototype,Ee.BA=function(a,y){y===void 0&&(y=Vu);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===Vu||y===Qh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Qh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new at(a.x,a.y)}},Ee.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new at(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ee.zz=function(a){if(a instanceof bt){this.eq=a;var y=at.alloc();this.fq=this.op(a.ga(Rs,y)),at.free(y)}else this.eq=null,this.fq=Ii};function Ya(a,y,x,E,b,z){var ee=at.allocAt(a.pa.x,a.pa.y),re=ee.x,ae=ee.y;if(a.eq!==null){var le=at.alloc();le=a.eq.ga(Rs,le),re=le.x-a.fq.x/a.scale,ae=le.y-a.fq.y/a.scale,b=hl,at.free(le)}(z||a.scrollMode===Oh)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(ae=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(re=Math.min(re+x/2,y.right+Math.max(z,b.right)-x/2),re=Math.max(re,y.left-Math.max(z,b.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(ae=Math.min(ae+E/2,y.bottom+Math.max(x,b.bottom)-E/2),ae=Math.max(ae,y.top-Math.max(x,b.top)+E/2),ae-=E/2):ae>y.top?ae=y.top:ae<y.bottom-E&&(ae=y.bottom-E)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(ae)?ae:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),ho(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),Nl(a),at.free(ee)}Ee.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=bo(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof zr)return a}else if(a=bo(this,a,function(x){return x.part}),a instanceof zr)return a;return null},Ee.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Ma(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function bo(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),Ma(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}Ee.lz=function(a,y,x){return y===void 0&&(y=!0),co(this,a,function(E){return E.part},y?function(E){return E instanceof zr&&E.canSelect()}:null,x)};function co(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof _n||b instanceof An||(b=new An),Ma(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Ee.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof _n||E instanceof An||(E=new An),Ma(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Ee.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),vo(this,a,function(b){return b instanceof zr&&(!x||b.canSelect())},y,E)},Ee.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof _n||b instanceof An||(b=new An),Ma(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,E,b)}return b},Ee.Nu=function(a,y,x,E,b,z){var ee=new An;Ma(this);for(var re=this.Wa.iteratorBackwards;re.next();){var ae=re.value;ae.visible&&ae.Nu(a,y,x,E,ee,b,z)}return ee};function vo(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof _n||b instanceof An||(b=new An),Ma(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,E,b)}return b}Ee.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Qo(this,a,y,function(z){return z instanceof zr&&(!E||z.canSelect())},x,b)},Ee.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof _n||b instanceof An)&&(z=b),b=!0),z instanceof _n||z instanceof An||(z=new An),Ma(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,E,b,z)}return z};function Qo(a,y,x,E,b,z){var ee=null;for(ee===void 0&&(ee=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof _n||b instanceof An)&&(z=b),b=!0),z instanceof _n||z instanceof An||(z=new An),Ma(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,E,b,z)}return z}At.prototype.acceptEvent=function(a){return xa(this,a,a instanceof MouseEvent)};function xa(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?wa(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),el&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=Oa(y,y.target),E.targetObject=null,E}function Oa(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function no(a,y,x,E,b,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,el&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=E,ee.handled=!1,ee.bubbles=b,ee.isMultiTouch=z,ee}function Rr(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}At.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=xa(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),Rr(x,a)},At.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xa(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),Rr(x,a)},At.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xa(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Rr(x,a)},At.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xa(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Rr(x,a)},At.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new at(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?wi(new at(y,a),this.Ab):new at(y,a)};function wa(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,ee=0,re=0;E!==null&&(E=E.getBoundingClientRect(),ee=y.clientX-b/E.width*E.left,re=y.clientY-z/E.height*E.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=at.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),at.free(y)):x.documentPoint.h(ee,re)}function Pa(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}At.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function gs(a){a.ld||Ma(a),a.Va()}At.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ee=At.prototype,Ee.Pz=function(){return this.kg},Ee.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Ja(this),this.hf=!1,this.du=new at(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Fr(function(){E.ld=!1,es(y,"Model"),a(E)},1)},Ee.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Yt.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ee.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Ja(this))};function Fa(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Js(a)||(y&&Ma(a),x&&Kr(a,!1))}function Ja(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];Rl(re,!1),re.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(ae){ae.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Eo(a),Fa(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(os(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ma(a),z=!1,(!a.hf||a.xh)&&(a.hf?Zl(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Zl(a,!1)),z=!0),a.Jk=!1,Ma(a),a.ou||gs(a),Fa(a,!0,!1),ee=!1,z?(x=cn.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Es(a)),a.R("LayoutCompleted"),Fa(a,!0,!1),cn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Au?a.scale=Aa(a,a.Fg):a.yh!==Au?a.scale=Aa(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Kr(a,!0)),z&&ee&&a.eb("Initial Layout"),Ma(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Es(a){if(a.Fg!==Au)a.scale=Aa(a,a.Fg);else if(a.yh!==Au)a.scale=Aa(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Kr(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),os(a)}function Ma(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new An,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Io&&E.U&65536&&(E.U=E.U^65536)})}}Ee.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Io||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Io&&x.isVisible()&&Qa(this,x);for(a.reset();a.next();)x=a.value,x instanceof yi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Ga&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Qa(a,y){for(var x=hr(),E=hr(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Io?(Gc(z)||ic(z)||wf(z))&&Qa(a,z):z instanceof yi?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(Nr(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();Nr(E)}Ee.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Ee.gc=function(a){if(this.Ka!==null){if(this.ta===null&&tn("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){hs(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,ee=Math.round(y.y*b)/b,re=this.Ab;for(re.reset(),b!==1&&re.scale(b),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,$y(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Xs(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)x[y].gc(a,this);a=!1,this.Yf?fd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Fo.prototype.Cd=Fo.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,hs(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var ae=this.Ca,le=Math.round(re.x*ae)/ae,ce=Math.round(re.y*ae)/ae;for(ae!==1&&z.scale(ae),re.x===0&&re.y===0||z.translate(-le,-ce),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Xs(this,a),re=0;re<b;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?fd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Fo.prototype.Cd=Fo.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=ms&&ms.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function Ks(a,y,x,E,b,z,ee,re,ae,le){if(a.Ka!==null){a.ta===null&&tn("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),ae===void 0&&(ae=!1),le===void 0&&(le=!1),hs(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ce=a.Ca;a.Ca=b;var fe=a.Wa.s,Se=fe.length;try{var we=new cn(z.x,z.y,E.width/b,E.height/b),Ae=we.copy();Ae.Co(x),os(a,Ae),Ma(a),a.Fd(fe,Se,a,we),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,E.width,E.height));var De=a.Mb;y.scale(De,De);var nt=Fo.alloc();nt.reset(),nt.translate(x.left,x.top),nt.scale(b),z.x===0&&z.y===0||nt.translate(-z.x,-z.y),y.setTransform(nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),y.yc(),y instanceof Tc&&$y(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),Fo.free(nt),Xs(a,y),y.globalAlpha=a.pb;var Ze=a.Qj("Grid");if(ee){var dt=new An,mt=ee.iterator;for(mt.reset();mt.next();){var xt=mt.value;xt instanceof zr&&(le||xt.layer!==Ze)&&(xt.Gj(),dt.add(xt))}for(le=0;le<Se;le++)rr(fe[le],y,a,dt,ae);dt.each(function(en){return en.Gj()})}else for(dt=0;dt<Se;dt++){var Ot=fe[dt];Ot===Ze?le&&Ot.gc(y,a,!0):Ot.gc(y,a,ae)}a.$i=!1,a.Yf&&fd(a.Yf,a)&&a.Vp()}finally{a.Ca=ce,a.ib.Vc(!0),a.vd=!0,a.Fd(fe,Se,a,a.viewportBounds),os(a),a.ib instanceof Tc&&(a.ib.Nj.PA(),a.redraw())}}}Ee.Gf=function(a){return this.Rg[a]},Ee.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ee.Tx=function(){this.Rg=new Ao,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(el||al),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Xs(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ee.Ql=function(a){return this.on[a]},Ee.sA=function(a,y){this.on[a]=y},Ee.Sx=function(){this.on=new Ao,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ee.set=function(a){return Object.assign(this,a),this},Ee.Du=function(a){return this.nm(a)},Ee.nm=function(a){return vl(this,a),this};function vl(a,y){var x=a instanceof ci,E=a instanceof At,b;for(b in y){b===""&&tn("Setting properties requires non-empty property names");var z=a,ee=b;if(x||E){var re=b.indexOf(".");if(0<re){var ae=b.substring(0,re);x?z=a.fb(ae):(z=a[ae],z==null&&(z=a.toolManager[ae])),wn(z)?ee=b.substr(re+1):tn("Unable to find object named: "+ae+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!Ho(z,ee))if(E&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(E&&ee==="Changed"){a.Pe(y[ee]);continue}else if(E&&Ho(a.toolManager,ee))z=a.toolManager;else if(E&&Zh(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof yr&&ee==="Changed"){a.Pe(y[ee]);continue}else tn('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof bt&&z.Vw(ee)}}Ee.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new wr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ee.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},At.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==$h&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=cn.alloc(),bu(this,this.computeBounds(E)),cn.free(E)),E=this.ta,E===null||E instanceof ed)))){var ee=this.Mb;b=this.Aa*ee;var re=this.ya*ee,ae=this.scale*ee;z=Math.round(Math.round(y.x*ae)-Math.round(a.x*ae)),y=Math.round(Math.round(y.y*ae)-Math.round(a.y*ae)),ae=this.jw,a=this.oy,ae.width!==b&&(ae.width=b),ae.height!==re&&(ae.height=re),a.clearRect(0,0,b,re),ae=190*ee;var le=70*ee,ce=Math.max(z,0),fe=Math.max(y,0),Se=Math.floor(b-ce),we=Math.floor(re-fe);a.drawImage(E.Oa,ce,fe,Se,we,0,0,Se,we),fd(this.Yf,this)&&a.clearRect(0,0,ae,le),E=hr(),a=hr(),we=Math.abs(z),Se=Math.abs(y);var Ae=ce===0?0:b-we;ce=at.allocAt(Ae,0),we=at.allocAt(we+Ae,re),a.push(new cn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y)));var De=this.Ab;if(De.reset(),De.scale(ee,ee),this.Ca!==1&&De.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&De.translate(-ee.x,-ee.y),wi(ce,De),wi(we,De),E.push(new cn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y))),Ae=fe===0?0:re-Se,ce.h(0,Ae),we.h(b,Se+Ae),a.push(new cn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y))),wi(ce,De),wi(we,De),E.push(new cn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y))),fd(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,ce.h(b,re),we.h(ae+b,le+re),a.push(new cn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y))),wi(ce,De),wi(we,De),E.push(new cn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y)))),at.free(ce),at.free(we),Fa(this,!1,!0),this.Ka===null&&tn("No div specified"),this.ta===null&&tn("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(hs(this),re=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*re,this.ya*re),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,ae=Math.round(z.x*ee)/ee,le=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-ae,-le),b.save(),b.beginPath(),z=a.length,ee=0;ee<z;ee++)ae=a[ee],ae.width!==0&&ae.height!==0&&b.rect(Math.floor(ae.x),Math.floor(ae.y),Math.ceil(ae.width),Math.ceil(ae.height));for(b.clip(),b.setTransform(re,0,0,re,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Xs(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],ae=E,ee.visible&&ee.pb!==0){le=pi(ee,b),fe=ee.Zq,fe.length=0,ce=this.scale,Se=cn.alloc(),we=ee.Pa.s,De=we.length,Ae=ae.length;for(var nt=0;nt<De;nt++){var Ze=we[nt],dt=Qf(Ze,Ze.actualBounds);e:{for(var mt=2/ce,xt=4/ce,Ot=0;Ot<Ae;Ot++){var en=ae[Ot];if(en.width!==0&&en.height!==0&&dt.Vu(en.x-mt,en.y-mt,en.width+xt,en.height+xt)){dt=!0;break e}}dt=!1}dt&&ee.Oj(b,Ze,this,fe,ce,Se,!0)}cn.free(Se),b.globalAlpha=le}b.restore(),b.Vc(!0),this.Yf&&fd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Nr(E),Nr(a),this.ld=!1}}else this.bd();x&&(Hi(this),this.bd(),Lr(this,!0))}else x?(Hi(this),this.bd(),Lr(this,!0)):this.bd()}};function hs(a){a.pn!==!1&&(a.pn=!1,Yl(a,a.Aa,a.ya))}function Yl(a,y,x){Nl(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Js(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,ae=b.clientWidth||x+ee,le=b.clientHeight||E+re,ce=a.viewportBounds;b=ce.x;var fe=ce.y,Se=ce.width,we=ce.height;if((ae!==x+ee||le!==E+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=ae,a.ya=le,z=a.pn=!0,Nl(a)),!a.hf||!a.viewportBounds.w())return!0;var Ae=a.ku,De=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var nt=a.documentBounds,Ze=0,dt=0,mt=0,xt=0,Ot=ce.width,en=ce.height,zi=a.rj;a.contentAlignment.sb()?(nt.width>Ot&&(Ze=zi.left,dt=zi.right),nt.height>en&&(mt=zi.top,xt=zi.bottom)):(Ze=zi.left,dt=zi.right,mt=zi.top,xt=zi.bottom);var dr=nt.width+Ze+dt,tr=nt.height+mt+xt;zi=a.scale;var mi=dr>ae/zi,Gn=tr>le/zi;if(!(z||a.gf||a.Be||mi||Gn))return!0;Ze=nt.x-Ze,ae=ce.x,dt=nt.right+dt,le=ce.right+ee,mt=nt.y-mt;var Bo=ce.y;nt=nt.bottom+xt,ce=ce.bottom+re;var xo="1px";if(xt="1px",a.scrollMode===Oh&&(mi||Gn)&&(mi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(mi=1,Ze+1<ae&&(mi=Math.max((ae-Ze)*zi+a.Aa,mi)),dt>le+1&&(mi=Math.max((dt-le)*zi+a.Aa,mi)),Ot+ee+1<dr&&(mi=Math.max((dr-Ot)*zi+a.Aa,mi)),xo=mi.toString()+"px"),Gn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(mi=1,mt+1<Bo&&(mi=Math.max((Bo-mt)*zi+a.ya,mi)),nt>ce+1&&(mi=Math.max((nt-ce)*zi+a.ya,mi)),en+re+1<tr&&(mi=Math.max((tr-en)*zi+a.ya,mi)),xt=mi.toString()+"px")),mi=xo!=="1px",Gn=xt!=="1px",mi&&Gn||!mi&&!Gn||(Gn&&(le-=a.Db),mi&&(ce-=a.Db),dr<Ot+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ze+1<ae&&(ee=Math.max((ae-Ze)*zi+a.Aa,ee)),dt>le+1&&(ee=Math.max((dt-le)*zi+a.Aa,ee)),Ot+1<dr&&(ee=Math.max((dr-Ot)*zi+a.Aa,ee)),xo=ee.toString()+"px"),mi=xo!=="1px",ee=a.ya,mi!==a.Be&&(ee=mi?a.ya-a.Db:a.ya+a.Db),tr<en+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,mt+1<Bo&&(re=Math.max((Bo-mt)*zi+ee,re)),nt>ce+1&&(re=Math.max((nt-ce)*zi+ee,re)),en+1<tr&&(re=Math.max((tr-en)*zi+ee,re)),xt=re.toString()+"px"),Gn=xt!=="1px"),a.qr&&mi===a.Be&&Gn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(mi!==a.Be&&(xo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=mi,De.style.width=xo,Gn!==a.gf&&(xt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=at.alloc(),Gn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),at.free(re))),z&&Nl(a),a.gf=Gn,De.style.height=xt,a.gu=!0,z&&(a.pn=!0),y=Ae.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ot+1<dr?y=(a.position.x-Ze)*zi:Ze+1<ae?y=Ae.scrollWidth-Ae.clientWidth:dt>le+1&&(y=a.position.x*zi)),a.tn)switch(a.bu){case"negative":y=-(Ae.scrollWidth-y-Ae.clientWidth);break;case"reverse":y=Ae.scrollWidth-y-Ae.clientWidth}return Ae.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(en+1<tr?Ae.scrollTop=(a.position.y-mt)*zi:mt+1<Bo?Ae.scrollTop=Ae.scrollHeight-Ae.clientHeight:nt>ce+1&&(Ae.scrollTop=a.position.y*zi)),ae=a.Aa,le=a.ya,Ae.style.width=ae+(a.gf?a.Db:0)+"px",Ae.style.height=le+(a.Be?a.Db:0)+"px",x!==ae||E!==le||a.animationManager.zb?(x=cn.allocAt(b,fe,Se,we),a.onViewportBoundsChanged(x,a.viewportBounds,zi,z),cn.free(x),!1):!0}Ee=At.prototype,Ee.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&tn("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&tn('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Ms,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ee.oi=function(a){this.partManager.oi(a);var y=this;Zf(a,function(x){bl(y,x)}),(a instanceof Ga||a instanceof Io&&a.placeholder!==null)&&a.v(),a.data!==null&&Zf(a,function(x){hy(y.partManager,x)}),ic(a)!==!0&&wf(a)!==!0||this.De.add(a),_S(a,!0,this),KS(a)?(a.actualBounds.w()&&this.N(Qf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Qf(a,a.actualBounds)),this.$b()},Ee.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Zf(a,function(x){dy(y.partManager,x,y)}),this.De.remove(a),KS(a)?(a.actualBounds.w()&&this.N(Qf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Qf(a,a.actualBounds)),this.$b()},Ee.remove=function(a){ws(this,a,!0)};function ws(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Zs,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ee.Is=function(a,y){if(y===void 0&&(y=!1),or(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new An,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ee.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},At.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=Go(this)),this.toolManager!==null){var b=new wr;if(a!==null)if(or(a))for(var z=0;z<a.length;z++)bs(this,b,a[z],x,E);else for(a=a.iterator;a.next();)bs(this,b,a.value,x,E);else{for(a=this.parts;a.next();)bs(this,b,a.value,x,E);for(a=this.nodes;a.next();)bs(this,b,a.value,x,E);for(a=this.links;a.next();)bs(this,b,a.value,x,E)}Za(this,b,y,E,x)}};function bs(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=Go(a)),x instanceof Gi){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Io&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)bs(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,ae=ee.toNode;re!==null&&y.contains(re)&&ae!==null&&y.contains(ae)&&bs(a,y,ee,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)bs(a,y,x.value,E,b)}else if(x instanceof yi)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)bs(a,y,x.value,E,b);else x instanceof Ga||y.add(x,a.Pd(b,x,x.location))}function Za(a,y,x,E,b){if(y!==null&&y.count!==0){var z=at.alloc(),ee=at.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||pa(a,y);for(var re=hr(),ae=hr(),le=y.iterator,ce=at.alloc();le.next();){var fe=le.key,Se=le.value;if(fe.Zc()){var we=Uo(a,fe,y);we!==null?re.push(new ie(fe,Se,we)):(!b||fe.canMove())&&(we=Se.point,z.assign(we),a.computeMove(fe,z.add(ee),E,ce),fe.location=ce,Se.shifted===void 0&&(Se.shifted=new at),Se.shifted.assign(ce.re(we)))}else le.key instanceof yi&&ae.push(le.sa)}for(at.free(ce),b=re.length,le=0;le<b;le++)fe=re[le],z.assign(fe.info.point),fe.Su.shifted===void 0&&(fe.Su.shifted=new at),fe.node.location=z.add(fe.Su.shifted);for(b=at.alloc(),le=at.alloc(),fe=ae.length,Se=0;Se<fe;Se++){var Ae=ae[Se];if(we=Ae.key,we instanceof yi)if(we.suspendsRouting){we.Tg=null,ce=we.fromNode;var De=we.toNode;if(a.draggedLink!==null&&E.dragsLink)if(De=Ae.value.point,we.dragComputation===null)y.add(we,a.Pd(E,we,ee)),nf(we,ee.x-De.x,ee.y-De.y);else{Ae=at.allocAt(0,0),(ce=we.i(0))&&ce.w()&&Ae.assign(ce);var nt=ce=at.alloc().assign(Ae).add(ee);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(nt=at.alloc(),yl(a,we,ce,nt,E)),ce.assign(we.dragComputation(we,ce,nt)).re(Ae),y.add(we,a.Pd(E,we,ce)),nf(we,ce.x-De.x,ce.y-De.y),at.free(Ae),at.free(ce),nt!==ce&&at.free(nt)}else ce!==null&&(b.assign(ce.location),nt=y.I(ce),nt!==null&&b.re(nt.point)),De!==null&&(le.assign(De.location),nt=y.I(De),nt!==null&&le.re(nt.point)),ce!==null&&De!==null?b.Xa(le)?(ce=Ae.value.point,De=z,De.assign(b),De.re(ce),y.add(we,a.Pd(E,we,b)),nf(we,De.x,De.y)):(we.suspendsRouting=!1,we.bb()):(Ae=Ae.value.point,ce=ce!==null?b:De!==null?le:ee,y.add(we,a.Pd(E,we,ce)),nf(we,ce.x-Ae.x,ce.y-Ae.y))}else(we.fromNode===null||we.toNode===null)&&(ce=Ae.value.point,y.add(we,a.Pd(E,we,ee)),nf(we,ee.x-ce.x,ee.y-ce.y))}at.free(z),at.free(ee),at.free(b),at.free(le),Nr(re),Nr(ae),x||(Ma(a),Lo(a,y))}}At.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new at),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=at.alloc(),yl(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var ae=a.maxLocation,le=ae.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ae=ae.y,isNaN(ae)&&(ae=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(re,Math.min(x.x,le)),Math.max(ee,Math.min(x.y,ae))),b!==y&&at.free(b),E};function Go(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function yl(a,y,x,E,b){if(b===void 0&&(b=Go(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var ee=b.gridSnapOrigin,re=ee.x;if(ee=ee.y,b=b.gridSnapCellSpot,z!==null){var ae=z.gridCellSize;isNaN(a)&&(a=ae.width),isNaN(y)&&(y=ae.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=at.allocAt(0,0),z.yi(0,0,a,y,b),Rt.No(x.x,x.y,re+z.x,ee+z.y,a,y,E),at.free(z)}}function pa(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof yi&&(y.suspendsRouting=!0)}function Lo(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof yi&&(x.suspendsRouting=!1,Q0(x)&&x.bb())}a.Mr=!1}}function Uo(a,y,x){return y=y.containingGroup,y!==null&&(a=Uo(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ee=At.prototype,Ee.Pd=function(a,y,x){if(x===void 0)return new Ch(St);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Ch(new at(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Ch(x.copy())};function jr(a,y,x){if(y.diagram!==null&&y.diagram!==a&&tn("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&tn("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&tn("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&tn("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&&tn("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ee.Al=function(a){jr(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(Ms,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ee.Ww=function(a,y){jr(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Zs,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Ms,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Ee.Cy=function(a,y){jr(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Zs,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Ms,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Ee.kA=function(a){if(a.diagram!==this&&tn("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Zs,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ee.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ee.Yw=function(a){return this.pf===null&&(this.pf=new _n),this.pf.add(a),this.model.Pe(a),this},Ee.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ee.Pe=function(a){return this.zg===null&&(this.zg=new _n),this.zg.add(a),this},Ee.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ee.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==vu&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Ee.cb=function(a,y,x,E,b,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new Bs;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=E,re.oldParam=z,re.newValue=b,re.newParam=ee,this.ds(re)},Ee.g=function(a,y,x,E,b){this.cb(As,a,this,y,x,E,b)},At.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===As){var b=a.object;if(Qs(b,a.propertyName,a.I(y)),b instanceof bt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===Ms){var ee=a.object,re=a.newParam,ae=a.newValue;if(ee instanceof ci)if(typeof re=="number"&&ae instanceof bt){y?ee.pc(re):ee.Gb(re,ae);var le=ee.part;le!==null&&le.Wb()}else typeof re=="number"&&ae instanceof jl&&(ae.isRow?pS(ee,re,y?void 0:ae):mS(ee,re,y?void 0:ae));else if(ee instanceof ei){var ce=a.oldParam===!0;typeof re=="number"&&ae instanceof zr&&(y?(ae.isSelected=!1,ae.isHighlighted=!1,ae.Wb(),ee.pc(ce?re:-1,ae,ce)):ee.oi(re,ae,ce))}else ee instanceof At?typeof re=="number"&&ae instanceof ei&&(y?this.Wa.mb(re):(ae.Xe(this),this.Wa.Gb(re,ae))):tn("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===Zs){var fe=a.object,Se=a.oldParam,we=a.oldValue;if(fe instanceof ci)typeof Se=="number"&&we instanceof bt?y?fe.Gb(Se,we):fe.pc(Se):typeof Se=="number"&&we instanceof jl&&(we.isRow?pS(fe,Se,y?we:void 0):mS(fe,Se,y?we:void 0));else if(fe instanceof ei){var Ae=a.newParam===!0;typeof Se=="number"&&we instanceof zr&&(y?0>fe.Pa.indexOf(we)&&fe.oi(Se,we,Ae):(we.isSelected=!1,we.isHighlighted=!1,we.Wb(),fe.pc(Ae?Se:-1,we,Ae)))}else fe instanceof At?typeof Se=="number"&&we instanceof ei&&(y?(we.Xe(this),this.Wa.Gb(Se,we)):this.Wa.mb(Se)):tn("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==vu&&tn("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},At.prototype.Ea=function(a){return this.undoManager.Ea(a)},At.prototype.eb=function(a){return this.undoManager.eb(a)},At.prototype.Kf=function(){return this.undoManager.Kf()},At.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},At.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},At.prototype.rp=function(){this.partManager.rp()};function Wo(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Nl(a),a.N(),a.Ee=!0,E.zb&&(_o(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Nl(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,ae=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(du)?re=0:le.Hf(Ol)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(ae)&&(le.$c()?le.Hf(Cc)?ae=0:le.Hf(Cu)&&(ae=ee-1):ae=le.sb()?le.y*(ee-1):ee/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=at.allocAt(a.pa.x+re/y-re/x,a.pa.y+ae/y-ae/x),a.position=z,at.free(z),a.Ca=x,Nl(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Kr(a,!1),E.zb&&(_o(E)||E.ce.add(E.H,"scale",y,a.Ca))}}At.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Au||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof xs&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),sd(b,this)),this.vb||this.invalidateViewport(a,y),os(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function os(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=fn.alloc(),b=1,z=1,ee=x.O.s,re=ee.length,ae=0;ae<re;ae++){var le=ee[ae],ce=Math.abs(le.interval);2>ce||(S0(le.figure)?z=z*ce/Rt.vx(z,ce):b=b*ce/Rt.vx(b,ce))}if(ee=x.gridCellSize,E.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=cn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){cn.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,cn.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=at.alloc(),Rt.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),fn.free(E),x.part.location=y,at.free(y)}}At.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},At.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},At.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),or(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof zr||tn("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof zr||tn("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},At.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Ee=At.prototype,Ee.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ee.Jz=function(a){a=new An().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof zr||tn("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ee.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=at.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),at.free(z);return}tn("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):tn("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),at.free(z)},Ee.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},Ee.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ee.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},Ee.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,ee=y.m11,re=y.m12,ae=y.m21,le=y.m22,ce=y.dx,fe=y.dy,Se=x*ee+E*ae+ce;y=x*re+E*le+fe;var we=b*ee+E*ae+ce;return a=b*re+E*le+fe,E=x*ee+z*ae+ce,x=x*re+z*le+fe,ee=b*ee+z*ae+ce,b=b*re+z*le+fe,z=Math.min(Se,we),Se=Math.max(Se,we),we=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Se=Math.max(Se,E),we=Math.min(we,x),y=Math.max(y,x),z=Math.min(z,ee),Se=Math.max(Se,ee),we=Math.min(we,b),y=Math.max(y,b),new cn(z,we,Se-z,y-we)},Ee.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),wi(a.copy(),this.Ab)};function vs(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Ps(a){return a=ch.get(a),a!==null?new a:new ss}At.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===vu&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(ae){return ae.diagram=b}),a.mouseMoveTools.each(function(ae){return ae.diagram=b}),a.mouseUpTools.each(function(ae){return ae.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===vu){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ma(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ba(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(vs(this),this.As.clear(),Ka(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Fr(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function bl(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)ul(a,y[E])}function ul(a,y){if(y instanceof xc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof An&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Nu(a,y){if(y instanceof xc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof An&&x.Bg.remove(a),Vg(E));break}}}}}At.prototype.Wd=function(){this.partManager.Wd()},At.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},At.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},At.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},At.prototype.Vb=function(a){return this.partManager.Vb(a)},At.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ee=At.prototype,Ee.Lc=function(a){return this.partManager.Lc(a)},Ee.ii=function(a){return this.partManager.ii(a)},Ee.Kc=function(a){return this.partManager.Kc(a)},Ee.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:ri(hn(y)))},Ee.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:ri(hn(y)))};function Nl(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function bu(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Kr(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ee.Va=function(){if(this.Zi){var a=cn.alloc();bu(this,this.computeBounds(a)),cn.free(a)}},Ee.rz=function(){for(var a=new An,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Ee.qz=function(){return this.ai.iterator},Ee.Uz=function(a){Ma(this),a&&is(this,!0),this.ld?Zl(this,!1):(this.Jk=!0,Ja(this))};function is(a,y){for(var x=a.ai.iterator;x.next();)rl(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function rl(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)rl(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Zl(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||es(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Du(a,ee.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Ma(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||ba(z),a.aa=x}}}function Du(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Du(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Qa(a,y),b.isValidLayout=!0):a.xh=!0)}}Ee.yz=function(){for(var a=new _n,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function uh(a){function y(b){var z=b.toLowerCase(),ee=new _n;x.add(b,ee),x.add(z,ee),E.add(b,b),E.add(z,b)}var x=new wr,E=new wr;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function Zh(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Xh(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;tn("Unknown DiagramEvent name: "+y)}Ee.Bj=function(a,y){return a=Xh(this,a),a!==null&&a.add(y),this},Ee.am=function(a,y){a=Xh(this,a),a!==null&&a.remove(y)},Ee.R=function(a,y,x){var E=Xh(this,a),b=new tc;if(b.diagram=this,a=Zh(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function Jh(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ee.Yj=function(a,y){return Ld(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},At.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?_r(this,a):a.assign(this.documentBounds)};function Ld(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new zp(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=_f(a,x)),x===null){y=cn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&Gd(a,ee,E,y)}cn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=cn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof Gi&&Gd(a,ee,E,y);cn.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&u1(b);return b}function _f(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?_f(a,y.containingGroup):null}function Gd(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(Xg(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(of,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=of}else if(y instanceof Io)for(y=y.memberParts;y.next();)b=y.value,b instanceof Gi&&Gd(a,b,x,E)}}function wh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}At.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Ud(this)};function Ud(a){a.vk===-1&&(a.vk=Fr(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=cn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),bu(a,y),cn.free(y),a.Fc=!0,a.bd(),Ud(a))}},a.vp))}At.prototype.ug=function(){this.vk!==-1&&(Yt.clearTimeout(this.vk),this.vk=-1)},At.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=cn.allocAt(0,0,E.width*b,E.height*b);var z=at.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<E.x+x.left/2&&(z.x-=ee),a.x<E.x+x.left/4&&(z.x-=4*ee)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>E.x+E.width-x.right/2&&(z.x+=ee),a.x>E.x+E.width-x.right/4&&(z.x+=4*ee));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<E.y+x.top/2&&(z.y-=ee),a.y<E.y+x.top/4&&(z.y-=4*ee)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>E.y+E.height-x.bottom/2&&(z.y+=ee),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(St)||(y=new at(y.x+z.x/b,y.y+z.y/b)),cn.free(E),at.free(z),y},Ee=At.prototype,Ee.Cs=function(){return null},Ee.av=function(){return null},Ee.bs=function(a,y){this.pj.add(a,y)},Ee.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Io&&(y.$p=null)})};function kd(a,y,x){function E(){var ce=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ce-le>ae?y(x,b,re):Yt.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,ae=x.callbackTimeout||300,le=+new Date;return Yt.requestAnimationFrame(function(){E()}),null}Ee.Wz=function(a){return zs?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ee.Jx=function(a){return a===void 0&&(a={}),kd(this,this.Xz,a)},Ee.Xz=function(a,y,x){var E=yf(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case dd+"data":b=E.getImageData(0,0,x.width,x.height);break;case dd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&tn('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function yf(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&tn("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new fn(1/0,1/0):new fn(2e3,2e3));var re=y.position||null,ae=y.parts||null,le=y.padding===void 0?1:y.padding,ce=y.background||null,fe=y.omitTemporary;fe===void 0&&(fe=!0);var Se=y.document||document,we=y.elementFinished||null,Ae=y.showTemporary;Ae===void 0&&(Ae=!fe),y=y.showGrid,y===void 0&&(y=Ae),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof le=="number"?le=new Mo(le):le instanceof Mo||tn("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),fe=new dh(null,Se,void 0,!0);var De=fe.context;if(!(b||z||ae||re))return fe.width=a.Aa+Math.ceil(le.left+le.right),fe.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?E===null?null:(E.resize(fe.width,fe.height,fe.width,fe.height),E.ownerDocument=Se,E.hs=we,Ks(a,E.context,le,new fn(fe.width,fe.height),a.Ca,a.pa,ae,ce,Ae,y),E.context):(a.Xm=!1,Ks(a,De,le,new fn(fe.width,fe.height),a.Ca,a.pa,ae,ce,Ae,y),a.Xm=!0,fe.context);var nt=a.Pp,Ze=a.documentBounds.copy();if(Ze.Fv(a.yb),Ae)for(var dt=a.Wa.s,mt=dt.length,xt=0;xt<mt;xt++){var Ot=dt[xt];if(Ot.visible&&Ot.isTemporary){Ot=Ot.Pa.s;for(var en=Ot.length,zi=0;zi<en;zi++){var dr=Ot[zi];dr.isInDocumentBounds&&dr.isVisible()&&(dr=dr.actualBounds,dr.w()&&Ze.ed(dr))}}}if(dt=new at(Ze.x,Ze.y),ae!==null){for(mt=new cn(0,0,0,0),xt=!0,Ot=ae.iterator,Ot.reset();Ot.next();)en=Ot.value,en instanceof zr&&(zi=en.layer,zi!==null&&!zi.visible||zi!==null&&!Ae&&zi.isTemporary||!en.isVisible()||(en=en.actualBounds,en.w()&&(xt?(xt=!1,mt.assign(en)):mt.ed(en))));Ze.width=mt.width,Ze.height=mt.height,dt.x=mt.x,dt.y=mt.y}return re!==null&&re.w()&&(dt=re,z||(z=nt)),mt=re=0,le!==null&&(re=le.left+le.right,mt=le.top+le.bottom),xt=Ot=0,b!==null&&(Ot=b.width,xt=b.height,isFinite(Ot)&&(Ot=Math.max(0,Ot-re)),isFinite(xt)&&(xt=Math.max(0,xt-mt))),b!==null&&z!==null?(z==="NaN"&&(z=nt),b.w()?(b=Ot,Ze=xt):isNaN(xt)?(b=Ot,Ze=Ze.height*z):(b=Ze.width*z,Ze=xt)):b!==null?b.w()?(z=Math.min(Ot/Ze.width,xt/Ze.height),b=Ot,Ze=xt):isNaN(xt)?(z=Ot/Ze.width,b=Ot,Ze=Ze.height*z):(z=xt/Ze.height,b=Ze.width*z,Ze=xt):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/Ze.width,(ee.height-mt)/Ze.height),z>nt?(z=nt,b=Ze.width,Ze=Ze.height):(b=ee.width,Ze=ee.height)):(b=Ze.width*z,Ze=Ze.height*z):(z=nt,b=Ze.width,Ze=Ze.height),le!==null?(b+=re,Ze+=mt):le=new Mo(0),ee!==null&&(nt=ee.width,ee=ee.height,isNaN(nt)&&(nt=2e3),isNaN(ee)&&(ee=2e3),isFinite(nt)&&(b=Math.min(b,nt)),isFinite(ee)&&(Ze=Math.min(Ze,ee))),fe.width=Math.ceil(b),fe.height=Math.ceil(Ze),x==="SVG"?E===null?null:(E.resize(fe.width,fe.height,fe.width,fe.height),E.ownerDocument=Se,E.hs=we,Ks(a,E.context,le,new fn(Math.ceil(b),Math.ceil(Ze)),z,dt,ae,ce,Ae,y),E.context):(a.Xm=!1,Ks(a,De,le,new fn(Math.ceil(b),Math.ceil(Ze)),z,dt,ae,ce,Ae,y),a.Xm=!0,fe.context)}un.Object.defineProperties(At.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pe||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new ed(this,Yt.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new ed(this,Yt.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Yt,"resize",this.Ov,!1),this.removeEventListener(Yt,"wheel",this.$j,!0),Pr===this&&(Pr=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Pi(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Hr(a,"0 <= value <= 1",At,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Kr(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Kr(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Kr(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Kr(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Hr(a,">= 0",At,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Hr(a,">= 0",At,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Hr(a,">= 0",At,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||vs(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&tn("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Oo(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,es(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Ps(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Yt,"pointermove",this.dk,!0),this.addEventListener(Yt,"pointerdown",this.ui,!0),this.addEventListener(Yt,"pointerup",this.fk,!0),this.addEventListener(Yt,"pointerout",this.ek,!0),this.addEventListener(Yt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Yt,"wheel",this.$j,!0),this.addEventListener(Yt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Yt,"pointermove",this.dk,!0),this.removeEventListener(Yt,"pointerdown",this.ui,!0),this.removeEventListener(Yt,"pointerup",this.fk,!0),this.removeEventListener(Yt,"pointerout",this.ek,!0),this.removeEventListener(Yt,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Yt,"wheel",this.$j,!0),this.removeEventListener(Yt,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=at.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),ho(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Nl(this):(this.vb=!0,a=this.scale,Ya(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}at.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=qr(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=qr(this)),a.type!==ci.Grid&&tn("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),os(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Nl(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||tn("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new Mo(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===Oh&&Kr(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Kr(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Wo(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&Wo(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Au&&Kr(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||tn("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||tn("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Hr(a,"> 0",At,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Hr(a,"> 0",At,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Kr(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Mo(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&tn("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)kp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Ih&&a!==Al&&a!==Xd&&tn("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new fn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Mo(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),un.Object.defineProperties(At,{licenseKey:{get:function(){return Sf.jc()},set:function(a){Sf.add(a.replace(/\s/g,""))}},version:{get:function(){return hd}}}),At.prototype.makeImageData=At.prototype.Jx,At.prototype.makeImage=At.prototype.Wz,At.prototype.cacheGroupExternalLinks=At.prototype.Fu,At.prototype.addRenderer=At.prototype.bs,At.prototype.makeSVG=At.prototype.av,At.prototype.makeSvg=At.prototype.Cs,At.prototype.stopAutoScroll=At.prototype.ug,At.prototype.doAutoScroll=At.prototype.gs,At.prototype.isUnoccupied=At.prototype.Yj,At.prototype.raiseDiagramEvent=At.prototype.R,At.prototype.removeDiagramListener=At.prototype.am,At.prototype.addDiagramListener=At.prototype.Bj,At.prototype.findTreeRoots=At.prototype.yz,At.prototype.layoutDiagram=At.prototype.Uz,At.prototype.findTopLevelGroups=At.prototype.qz,At.prototype.findTopLevelNodesAndLinks=At.prototype.rz,At.prototype.ensureBounds=At.prototype.Va,At.prototype.findLinksByExample=At.prototype.ls,At.prototype.findNodesByExample=At.prototype.ms,At.prototype.findLinkForData=At.prototype.Kc,At.prototype.findNodeForData=At.prototype.ii,At.prototype.findPartForData=At.prototype.Lc,At.prototype.findLinkForKey=At.prototype.findLinkForKey,At.prototype.findNodeForKey=At.prototype.Vb,At.prototype.findPartForKey=At.prototype.findPartForKey,At.prototype.rebuildParts=At.prototype.Wd,At.prototype.transformViewToDoc=At.prototype.Ps,At.prototype.transformRectDocToView=At.prototype.zA,At.prototype.transformDocToView=At.prototype.op,At.prototype.centerRect=At.prototype.es,At.prototype.scrollToRect=At.prototype.tv,At.prototype.scroll=At.prototype.scroll,At.prototype.highlightCollection=At.prototype.Jz,At.prototype.highlight=At.prototype.Iz,At.prototype.selectCollection=At.prototype.rA,At.prototype.select=At.prototype.select,At.prototype.updateAllRelationshipsFromData=At.prototype.rp,At.prototype.updateAllTargetBindings=At.prototype.updateAllTargetBindings,At.prototype.commit=At.prototype.commit,At.prototype.rollbackTransaction=At.prototype.Kf,At.prototype.commitTransaction=At.prototype.eb,At.prototype.startTransaction=At.prototype.Ea,At.prototype.raiseChanged=At.prototype.g,At.prototype.raiseChangedEvent=At.prototype.cb,At.prototype.removeChangedListener=At.prototype.ik,At.prototype.addChangedListener=At.prototype.Pe,At.prototype.removeModelChangedListener=At.prototype.mA,At.prototype.addModelChangedListener=At.prototype.Yw,At.prototype.findLayer=At.prototype.Qj,At.prototype.removeLayer=At.prototype.kA,At.prototype.addLayerAfter=At.prototype.Cy,At.prototype.addLayerBefore=At.prototype.Ww,At.prototype.addLayer=At.prototype.Al,At.prototype.moveParts=At.prototype.moveParts,At.prototype.copyParts=At.prototype.Kj,At.prototype.removeParts=At.prototype.Is,At.prototype.remove=At.prototype.remove,At.prototype.add=At.prototype.add,At.prototype.clearDelayedGeometries=At.prototype.bx,At.prototype.setProperties=At.prototype.nm,At.prototype.attach=At.prototype.Du,At.prototype.set=At.prototype.set,At.prototype.resetInputOptions=At.prototype.Sx,At.prototype.setInputOption=At.prototype.sA,At.prototype.getInputOption=At.prototype.Ql,At.prototype.resetRenderingHints=At.prototype.Tx,At.prototype.setRenderingHint=At.prototype.Xx,At.prototype.getRenderingHint=At.prototype.Gf,At.prototype.maybeUpdate=At.prototype.bd,At.prototype.requestUpdate=At.prototype.$b,At.prototype.delayInitialization=At.prototype.Xy,At.prototype.isUpdateRequested=At.prototype.Pz,At.prototype.invalidateDocumentBounds=At.prototype.Ya,At.prototype.findObjectsNear=At.prototype.og,At.prototype.findPartsNear=At.prototype.mz,At.prototype.findObjectsIn=At.prototype.Cf,At.prototype.findPartsIn=At.prototype.ux,At.prototype.findObjectsAt=At.prototype.ji,At.prototype.findPartsAt=At.prototype.lz,At.prototype.findObjectAt=At.prototype.ic,At.prototype.findPartAt=At.prototype.Ol,At.prototype.focusObject=At.prototype.zz,At.prototype.alignDocument=At.prototype.Jy,At.prototype.zoomToRect=At.prototype.BA,At.prototype.zoomToFit=At.prototype.zoomToFit,At.prototype.diagramScroll=At.prototype.kx,At.prototype.focus=At.prototype.focus;var ch=new wr,Yd=null,zs=Yt.document!==void 0,ld=null,Bh="",Au=new ln(At,"None",0),Vu=new ln(At,"Uniform",1),Qh=new ln(At,"UniformToFill",2),qh=new ln(At,"CycleAll",10),Ph=new ln(At,"CycleNotDirected",11),ud=new ln(At,"CycleNotDirectedFast",12),cd=new ln(At,"CycleNotUndirected",13),Fd=new ln(At,"CycleDestinationTree",14),Zd=new ln(At,"CycleSourceTree",15),Oh=new ln(At,"DocumentScroll",1),$h=new ln(At,"InfiniteScroll",2),Ih=new ln(At,"TreeParentCollapsed",21),Al=new ln(At,"AllParentsCollapsed",22),Xd=new ln(At,"AnyParentsCollapsed",23),Sf=new _n,hd="2.3.10",dd="image",Nd=null,Vf=!1;function yu(){if(zs){var a=Yt.document.createElement("canvas"),y=a.getContext("2d"),x=lo("7ca11abfd022028846");y[x]=lo("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Hn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Fo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Rt.za],b=1;5>b;b++)y[lo("7ca11abfd7330390")](lo(E[b-1]),10,15*b);for(y[x]=lo("39f046ebb36e4b"),x=1;5>x;x++)y[lo("7ca11abfd7330390")](lo(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Fo.prototype.Cd=Fo.prototype.Eu),Nd=a}}At.className="Diagram",At.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Yt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof At?y.H:null},At.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},At.useDOM=function(a){zs=a?Yt.document!==void 0:!1},At.isUsingDOM=function(){return zs},At.None=Au,At.Uniform=Vu,At.UniformToFill=Qh,At.CycleAll=qh,At.CycleNotDirected=Ph,At.CycleNotDirectedFast=ud,At.CycleNotUndirected=cd,At.CycleDestinationTree=Fd,At.CycleSourceTree=Zd,At.DocumentScroll=Oh,At.InfiniteScroll=$h,At.TreeParentCollapsed=Ih,At.AllParentsCollapsed=Al,At.AnyParentsCollapsed=Xd;function Kf(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function fd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=Yt[lo("76a715b2f73f148a")][lo("72ba13b5")]||"";if(a.Rc=!0,zs){var E=At[lo("76a115b6ed251eaf4692")];if(E)for(var b=Sf.iterator;b.next()&&(E=b.value,E=lo(E).split(lo("39e9")),!(6>E.length));){var z=lo(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ee=lo(Hn[lo("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Yt[lo("74a900bae4370f8b51")][lo("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[lo("73a612b6fb191d")](lo("3aad1ab6e022098b4dc4")),z=lo(E[2]),-1<ee&&(re=re[lo("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[lo("76ad18b4f73e")],re=x[lo("73a612b6fb191d")](lo("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[lo("73a612b6fb191d")](z),0>ee&&z!==lo("7da71ca0ad381e90")&&(ee=y[lo("73a612b6fb191d")](lo("76a715b2ef3e149757"))),0>ee&&(ee=y[lo("73a612b6fb191d")](lo("76a715b2ef3e149757"))),0>ee&&(ee=y[lo("73a612b6fb191d")](lo("2bfa41fdb3784bca12"))),0>ee&&(ee=x[lo("73a612b6fb191d")](lo("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[lo("73a612b6fb191d")](lo("35"))||y[lo("73a612b6fb191d")](lo("35"))===-1),!a.Rc||x[lo("73a612b6fb191d")](lo("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[lo("73a612b6fb191d")](z)),!a.Rc)||(ee=Yt[lo("76a715b2f73f148a")][lo("69ad17a1e03e")],re=ee[lo("73a612b6fb191d")](lo("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[lo("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Yt.document.createElement("div");for(var ae=E[0].replace(/[A-Za-z]/g,"");4>ae.length;)ae+="9";if(re=ae,ae=ae.substr(ae.length-4),E="",E+=["gsh","gsf"][parseInt(ae.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(ae.substr(0,1),10)%4],ee[lo("79a417a0f0181a8946")]=E,Yt.document[lo("78a712aa")]){Yt.document[lo("78a712aa")][lo("7bb806b6ed32388c4a875b")](ee),ae=Yt.getComputedStyle(ee).getPropertyValue(lo("78a704b7e62456904c9b12701b6532a8"));var le=Yt.getComputedStyle(ee).getPropertyValue(lo("75b817b0ea2202"));if(Yt.document[lo("78a712aa")][lo("68ad1bbcf533388c4a875b")](ee),ae){if(ee=Yt[lo("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||ae.indexOf(parseInt(z[1]+z[2],16))!==-1&&ae.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(lo("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ce in ee)if(E===ee[ce].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ce=x[lo("76ad18b4f73e")],b=x[lo("73a612b6fb191d")](lo("35e7"))+2;b<ce;b++)y+=x[b];x=y[lo("73a612b6fb191d")](lo("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[lo("73a612b6fb191d")](lo("35")))}}}return 0<a.Rc&&a!==a.wy}Kf.className="DiagramHelper";function Ch(a){this.j=a===void 0?new at:a,this.o=new at}un.Object.defineProperties(Ch.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Dd="DraggingInfo";Ch.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function oe(){this.reset()}oe.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new fn(NaN,NaN).freeze(),this.gridSnapCellSpot=Rs,this.gridSnapOrigin=new at(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},oe.className="DraggingOptions";function he(a,y){if(typeof a=="string"||Yt.Element&&a instanceof Element)var x=At.call(this,a)||this;else x=At.call(this)||this,y=a;return de(x),y&&x.nm(y),x}Ft(he,At);function de(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Bu,a.layout=new xu}he.prototype.reset=function(){At.prototype.reset.call(this),de(this)},he.className="Palette";function pe(a,y){if(typeof a=="string"||Yt.Element&&a instanceof Element)var x=At.call(this,a)||this;else x=At.call(this)||this,y=a;var E=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new zr;var b=new Zo;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Mo(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new ot,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ee=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new at(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){E.Ya(),Ve(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Ve(E)},x.autoScale=Vu,x.vb=!1,y&&Object.assign(x,y),x}Ft(pe,At),pe.prototype.computePixelRatio=function(){return 1},pe.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(hs(this),this.ql===null){var x=new dh(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Fe(this)}finally{this.ta=a,this.ib=y}}}At.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&tn("No div specified"),this.ta===null&&tn("No canvas specified"),!(this.ta instanceof ed)&&(z0(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){hs(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Fe(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Fe(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=cn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),os(y,b),cn.free(b),Ma(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var ee=0;ee<z;ee++){var re=y[ee],ae=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)E&&le.layer===re&&(re=pi(re,b),le.gc(b,ae),b.globalAlpha=re);else{for(var ce=pi(re,b),fe=ae.scale,Se=cn.alloc(),we=re.Pa.s,Ae=we.length,De=0;De<Ae;De++){var nt=we[De];(E||nt!==le)&&re.Oj(b,nt,ae,null,fe,Se,!1)}cn.free(Se),b.globalAlpha=ce}}}}}function Ve(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=fn.alloc();b.h(x.width,x.height),E.desiredSize=b,fn.free(b),a=2/a.scale,E instanceof Zo&&(E.strokeWidth=a),y.location=new at(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Xa;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pe.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ve(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},un.Object.defineProperties(pe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pe&&tn("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),Ve(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Ve(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),pe.className="Overview";function ot(){Ko.call(this),this.j=null}Ft(ot,Ko),ot.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new at(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new at(a.x-this.j.x,a.y-this.j.y)),!0)},ot.prototype.doActivate=function(){this.j=null,Ko.prototype.doActivate.call(this)},ot.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},ot.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var E=a.firstInput.documentPoint;x=x.location,this.j=new at(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new at(a.x-this.j.x,a.y-this.j.y)}}},ot.className="OverviewDraggingTool";function et(){Po(this),this.H=Pr,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=Xa,this.hb=!0,this.cg=null,this.ob=200}et.prototype.toString=function(){return"CommandHandler"},et.prototype.Xe=function(a){this.H=a},et.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=el?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},et.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},et.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof xs&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},et.prototype.canStopCommand=function(){return!0},et.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},et.prototype.canSelectAll=function(){return this.diagram.allowSelect},et.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new An,x=a.selection.iterator;x.next();)Cf(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},et.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},et.prototype.copySelection=function(){var a=this.diagram,y=new An;for(a=a.selection.iterator;a.next();)Cf(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},et.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},et.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},et.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},et.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)ld=null,Bh="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new _n,x.addAll(z),ld=x,Bh=y.model.dataFormat}}y.R("ClipboardChanged",x)},et.prototype.pasteFromClipboard=function(){var a=new An,y=ld;if(y===null)return a;var x=this.diagram;if(Bh!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,ee=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=ee.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},et.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Za(y,z,new at(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},et.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||ld===null||ld.count===0||Bh!==a.model.dataFormat)},et.prototype.undo=function(){this.diagram.undoManager.undo()},et.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},et.prototype.redo=function(){this.diagram.undoManager.redo()},et.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},et.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Au&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},et.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Au?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},et.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Au&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},et.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Au?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},et.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},et.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},et.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;es(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Xa):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ba(y)},et.prototype.canZoomToFit=function(){return this.diagram.allowZoom},et.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(ae){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;es(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=Et(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var ae=b.pop();0<b.length&&ae instanceof Gi&&ae.isTreeExpanded&&(!(ae instanceof Io)||ae.isSubGraphExpanded);)ae=b.pop();0<b.length?(ae instanceof zr&&y.tv(ae.actualBounds),ae instanceof Gi&&!ae.isTreeExpanded&&(ae.isTreeExpanded=!0),ae instanceof Io&&!ae.isSubGraphExpanded&&(ae.isSubGraphExpanded=!0)):(ae instanceof zr&&y.es(ae.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Fr(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function Et(a,y,x){if(y.isVisible())return x;if(y instanceof Ga)Et(a,y.adornedPart,x);else if(y instanceof yi){var E=y.fromNode;E!==null&&Et(a,E,x),y=y.toNode,y!==null&&Et(a,y,x)}else y instanceof Gi&&(E=y.labeledLink,E!==null&&Et(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),Et(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Et(a,y,x));return x}et.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof zr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},et.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),es(y.animationManager,"Collapse Tree");var x=new _n;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Gi&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},et.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Gi&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Gi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},et.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),es(y.animationManager,"Expand Tree");var x=new _n;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Gi&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},et.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Gi)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Gi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},et.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new _n,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new _n,ae=b.iterator;ae.next();){var le=ae.value;z=!1;for(var ce=b.iterator;ce.next();)if(le.Td(ce.value)){z=!0;break}z||re.add(le)}if(0<re.count){var fe=re.first().containingGroup;if(fe!==null)for(;fe!==null;){b=!1;for(var Se=re.iterator;Se.next();)if(!Se.value.Td(fe)){b=!0;break}if(b)fe=fe.containingGroup;else break}if(x instanceof Io)fh(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var we=y.copyNodeData(x);wn(we)&&(y.xf(we),E=a.ii(we))}if(E!==null){fe!==null&&this.isValidMember(fe,E)&&(E.containingGroup=fe);for(var Ae=re.iterator;Ae.next();){var De=Ae.value;this.isValidMember(E,De)&&(De.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},et.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function rn(a){var y=hr();for(a=a.iterator;a.next();){var x=a.value;x instanceof yi||y.push(x)}a=new An,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,ee=0;ee<x;ee++)if(b.Td(y[ee])){z=!1;break}z&&a.add(b)}return Nr(y),a}et.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof yi)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},et.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new _n;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Io&&z.canUngroup()&&E.add(z)}var ee=new _n;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var ae=re.value;ae.expandSubGraph();var le=ae.containingGroup,ce=le!==null&&le.data!==null?x.wa(le.data):void 0;ee.addAll(ae.memberParts);for(var fe=ee.iterator;fe.next();){var Se=fe.value;if(Se.isSelected=!0,!(Se instanceof yi)){var we=Se.data;we!==null?x.mp(we,ce):Se.containingGroup=le}}y.remove(ae)}}y.R("SelectionUngrouped",E,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},et.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Io))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Io&&y.canUngroup())return!0;return!1},et.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=rn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},et.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),es(y.animationManager,"Collapse SubGraph");var x=new _n;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Io&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},et.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Io&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Io&&y.isSubGraphExpanded)return!0;return!1},et.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),es(y.animationManager,"Expand SubGraph");var x=new _n;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Io&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},et.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Io&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Io&&!y.isSubGraphExpanded)return!0;return!1},et.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof ks&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},et.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof ks))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof ks&&x.editable}),a!==null))return!0;return!1},et.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,b=null;a instanceof bt?b=a.ga(Sa):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new at(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,Zi(x,!1,a)}},et.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},et.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new wr,a===null)return E;for(var z=a.iterator;z.next();)bs(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof yi&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},un.Object.defineProperties(et.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||tn("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),et.className="CommandHandler",Ur=function(){return new et};function bt(){Po(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new at(NaN,NaN).freeze(),this.jd=Us,this.Ab=new Fo,this.wh=new Fo,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=$l,this.uc=new cn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new cn(NaN,NaN,NaN,NaN).freeze(),this.dc=new cn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ml,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Ln,Dn,er,Cr,$r,jo,La,na,za,ps;bt.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Xo(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},bt.prototype.Vw=function(a){var y=this.Dh;if(or(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},bt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},bt.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},bt.prototype.copy=function(){return this.clone()},Ee=bt.prototype,Ee.qb=function(a){a.classType===yi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:tn("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===bt&&(this.stretch=a)},Ee.toString=function(){return io(this.constructor)+"#"+ds(this)},Ee.th=function(){this.A!==null&&(this.A.nc=!0)};function $o(a){a.A===null?a.A=new cg:a.A.nc&&(a.A=a.A.copy())}Ee.Xc=function(){if(this.ba===null){var a=new yp;a.Xi=hl,a.yj=hl,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ee.cb=function(a,y,x,E,b,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,E,b,z,ee),x===this&&a===As&&Mu(this)&&Gs(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new wr),ee=z.undoManager.transactionLevel===0,a.startCondition===bn?ee=!0:a.startCondition===Yn&&(ee=!1),ee?(z=new Ht,Di(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(es(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof ci&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)re=x[b],re instanceof ci&&Zf(re,function(ae){ae.data!==null&&ae.l&16777216&&ae.La(y)})};function Gs(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,ee=null;if(z.sourceName!==null){if(ee=N1(z,E,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,E)}else{if(re=E.data,re===null)continue;var ae=y.diagram;ae===null||ae.skipsModelSourceBindings||z.sp(a,re,x,E)}ee===a&&(re=E.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Ee.ks=function(a){return this.bindingId===a?this:null},Ee.g=function(a,y,x){this.cb(As,a,this,y,x)},Ee.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Fo);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function Xl(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Ee.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?nr(a.x,a.y,0,0,0,E.height)<=y||nr(a.x,a.y,0,E.height,E.width,E.height)<=y||nr(a.x,a.y,E.width,E.height,E.width,0)<=y||nr(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},Ee.se=function(){return!0},Ee.ca=function(a){var y=at.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return at.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;E=this.Df()*E.scale;var ae=1/E;if(re.width*E<b&&re.height*E<b)return a=il(x.x-ee*ae,x.y-ee*ae,x.width+z*ae,x.height+z*ae,y.x,y.y),at.free(y),a}return b=!1,(this instanceof Ga||this instanceof Zo?il(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),at.free(y),b},Ee.gh=function(a){var y=this.naturalBounds;return il(0,0,y.width,y.height,a.x,a.y)},Ee.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=cn.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=at.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),at.free(b),cn.free(y),E},Ee.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=at.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),at.free(b),E},Ee.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=at.allocAt(0,0),b=at.allocAt(0,x.height),z=at.allocAt(x.width,x.height),ee=at.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=cn.allocAt(0,0,x.width,x.height);var ae=at.allocAt(a.x,a.y);x.ca(y.Cd(ae))?re=!0:(ae.h(a.x,a.bottom),x.ca(y.Cd(ae))?re=!0:(ae.h(a.right,a.bottom),x.ca(y.Cd(ae))?re=!0:(ae.h(a.right,a.y),x.ca(y.Cd(ae))&&(re=!0)))),at.free(ae),cn.free(x),!re&&(Rt.us(a,E,b)||Rt.us(a,b,z)||Rt.us(a,z,ee)||Rt.us(a,ee,E))&&(re=!0)}return at.free(E),at.free(b),at.free(z),at.free(ee),re},Ee.ga=function(a,y){if(y===void 0&&(y=new at),a instanceof kr){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ee.mi=function(a){a===void 0&&(a=new cn);var y=this.naturalBounds,x=this.oe,E=at.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),_s(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),_s(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),_s(a,E.x,E.y,0,0),at.free(E),a},Ee.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},Ee.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ee.qs=function(a,y){return y===void 0&&(y=new at),y.assign(a),this.oe.Cd(y),y},Ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ee.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,ae=-z.m12*ee,le=-z.m21*ee,ce=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),Se=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Rt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ee=a*re+y*le+fe,a=a*ae+y*ce+Se,y=x*re+E*le+fe,x=x*ae+E*ce+Se,b.h(0,0),E=this.naturalBounds,x=Rt.Ff(0,0,E.width,E.height,ee,a,y,x,b),b.transform(z),x)},bt.prototype.measure=function(a,y,x,E){if(Gc(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ee:a,y=isFinite(b.width)?b.width+ee:y):(a=isFinite(b.width)?b.width+ee:a,y=isFinite(b.height)?b.height+ee:y),b=x||0,ee=E||0;var re=this instanceof ci;switch(yc(this,!0)){case Dn:ee=b=0,re&&(y=a=1/0);break;case Ln:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ee=y);break;case Cr:isFinite(a)&&a>x&&(b=a),ee=0,re&&(y=1/0);break;case $r:isFinite(y)&&y>E&&(ee=y),b=0,re&&(a=1/0)}re=this.maxSize;var ae=this.minSize;b>re.width&&ae.width<re.width&&(b=re.width),ee>re.height&&ae.height<re.height&&(ee=re.height),x=Math.max(b,ae.width),E=Math.max(ee,ae.height),re.width<x&&(x=Math.min(ae.width,x)),re.height<E&&(E=Math.min(ae.height,E)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||tn("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Rl(this,!1)}},bt.prototype.Wl=function(){},bt.prototype.Dd=function(){return!1},bt.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=cn.alloc();z.assign(this.Ib),this.Ib.ka(),ic(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&qd(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof ks&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||tn("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),gd(this,!1),cn.free(z)},Ee=bt.prototype,Ee.eh=function(){};function Xu(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,E+=y,b+=ee,y=yc(a,!0),x===E&&z===b&&(y=Dn),y){case Dn:(x>E||z>b)&&(Rl(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Ln:Rl(a,!0),a.measure(E,b,0,0);break;case Cr:Rl(a,!0),a.measure(E,z,0,0);break;case $r:Rl(a,!0),a.measure(x,b,0,0)}}}Ee.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||_0(x,!0),this.N(),Ys(a,y)||(x.oh(),this.Pn(x)))},Ee.Pn=function(a){this.portId!==null&&(_0(a,!0),a instanceof Gi&&ZS(a,this))},Ee.gc=function(a,y){if(!Qc(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof ci&&qd(this),ee=this.Ib;if(z){var re=this.Ib,ae=this.dc,le=this.areaBackground,ce=this.Ma;le===null&&ce===null||a.yc(),le!==null&&(Sl(this,a,le,!0,!0,ae,re),le instanceof as&&le.type===eh?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),ce!==null&&(Sl(this,a,ce,!0,!1,ae,re),ce instanceof as&&ce.type===eh?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ce)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&Su(this),le=this.part,ae=!1;var fe=0;le&&y.Gf("drawShadows")&&(ae=le.isShadowed)&&(ce=le.shadowOffset,fe=Math.max(ce.y,ce.x)*y.scale*y.Mb),ce=this.Dd();var Se;if(!(Se=y.$i||!ce)){var we=this.naturalBounds;Se=this.wh;var Ae=Se.m11,De=Se.m21,nt=Se.dx,Ze=Se.m12,dt=Se.m22,mt=Se.dy,xt,Ot=xt=0;Se=xt*Ae+Ot*De+nt;var en=xt*Ze+Ot*dt+mt;xt=we.width+fe,Ot=0;var zi=xt*Ae+Ot*De+nt;xt=xt*Ze+Ot*dt+mt,Ot=Math.min(Se,zi);var dr=Math.min(en,xt),tr=Math.max(Se+0,zi)-Ot,mi=Math.max(en+0,xt)-dr;Se=Ot,en=dr,xt=we.width+fe,Ot=we.height+fe,zi=xt*Ae+Ot*De+nt,xt=xt*Ze+Ot*dt+mt,Ot=Math.min(Se,zi),dr=Math.min(en,xt),tr=Math.max(Se+tr,zi)-Ot,mi=Math.max(en+mi,xt)-dr,Se=Ot,en=dr,xt=0,Ot=we.height+fe,zi=xt*Ae+Ot*De+nt,xt=xt*Ze+Ot*dt+mt,Ot=Math.min(Se,zi),dr=Math.min(en,xt),tr=Math.max(Se+tr,zi)-Ot,mi=Math.max(en+mi,xt)-dr,Se=Ot,en=dr,fe=y.viewportBounds,we=fe.x,Ae=fe.y,Se=!(Se>fe.width+we||we>tr+Se||en>fe.height+Ae||Ae>mi+en)}if(Se){if(Se=(this.l&256)!==0,a.clipInsteadOfFill&&(Se=!1),this instanceof ks&&(a.font=this.font),Se){if(en=re.se()?re.naturalBounds:re.actualBounds,tr=Math.max(ee.x,en.x),mi=Math.max(ee.y,en.y),fe=Math.min(ee.right,en.right)-tr,we=Math.min(ee.bottom,en.bottom)-mi,Ae=this.tb,Ae!==null&&(tr=Ae.x,mi=Ae.y,fe=Ae.width,we=Ae.height),tr>ee.width+ee.x||ee.x>en.width+en.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(tr,mi,fe,we),a.clip()}if(ce){if(!le.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ae&&(en=le.shadowOffset,a.Ev(en.x*y.scale*this.scale*y.Mb,en.y*y.scale*this.scale*y.Mb,le.shadowBlur),Td(a),a.shadowColor=le.shadowColor)}ae&&this.shadowVisible===!0?Td(a):ae&&this.shadowVisible===!1&&pd(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Kc(this,a,le,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ae&&uu(this,re)&&this.shadowVisible===null&&pd(a),this.Ma!==null&&(a.yc(),bc(this,a,le,ee)),ae&&(this.Ma!==null||this.areaBackground!==null||uu(this,re))?(Eh(this,!0),this.shadowVisible===null&&pd(a)):Eh(this,!1),this.hh(a,y),ae&&this.l&512&&Td(a),ce&&ae&&pd(a),Se&&(a.restore(),a.Vc(this instanceof ci)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function uu(a,y){return y===null?!1:(qd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ci.Auto||y.type===ci.Spot)&&y.Pb()!==a)}Ee.Dv=function(){};function Kc(a,y,x,E){Sl(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof as&&a.areaBackground.type===eh?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function bc(a,y,x,E){var b=a.kq(),z=x.x,ee=x.y,re=x.width+b,ae=x.height+b;Sl(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof as&&a.Ma.type===eh?(y.beginPath(),y.rect(z-b/2,ee-b/2,re,ae),y.ng(a.Ma)):y.fillRect(z-b/2,ee-b/2,re,ae)}function Ku(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ee=0;ee<b;ee++)if(E[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===ci.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function Qc(a,y,x){if(!(y instanceof Tc))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,b=a.nk(y);if(a.kk(y,x,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&Ku(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),Td(y),y.shadowColor=a.shadowColor}a instanceof ks&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof ci;var re=a instanceof ci?qd(a):!1;a.l&4096&&Su(a);var ae=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(Sp(y,1,0,0,1,0,0),a.svg=y.ad):z?(Sp(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):Sp(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var le=ee.copy().Vj();y.rb.ha=[le.m11,le.m12,le.m21,le.m22,le.dx,le.dy],Kc(a,y,b,ae),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),bc(a,y,b,ae),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],bc(a,y,b,ae)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,b=a.part,re=!1,b&&x.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&Td(y),re&&a.shadowVisible===!0?Td(y):re&&a.shadowVisible===!1&&pd(y),b=a.panel,re&&uu(a,b)&&a.shadowVisible===null&&pd(y),y.Il&&(le=x.computePixelRatio(),le="drop-shadow("+y.shadowOffsetX/le+"px "+y.shadowOffsetY/le+"px "+y.shadowBlur/le/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",le),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",le)),re&&(a.Ma!==null||a.areaBackground!==null||uu(a,b))?(Eh(a,!0),a.shadowVisible===null&&pd(y)):Eh(a,!1),b=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&re!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,E,ae,re),vc(y,le),!0):(a.svg=re,ee!==null&&re===null&&(mm(y),y.nh.pop()),re===null||(a.$o(y,E,ae,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&Td(y),a.Dd()&&pd(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):E!==null&&Ku(a,E,re),ee!==null&&ee(a,re)),!0)}Ee.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var ee=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,ee=z.width,x=z.height),z=E.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+kl++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:x}),this instanceof ci&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),re.appendChild(y),a.svg.appendChild(re),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),vc(a,E)};function vc(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Gu(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=hn(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}Ee.hh=function(){},Ee.lv=function(){this.Uc=!0},Ee.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof ci?qd(this):!1;if(!(this instanceof ci&&b))if(this instanceof xc){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&eS(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",tS(a)):y.setAttributeNS(null,"transform",tS(a))}else if(!x||this instanceof ci)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Zo){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ee=E.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Kc(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&vm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(vm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof ci))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),bc(this,a,this.naturalBounds,this.actualBounds),y.Ma?(vm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&vm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ee.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function Sl(a,y,x,E,b,z,ee){if(x!==null){var re=1,ae=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Qd)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var le=a.kq();if(re=z.width,ae=z.height,b?(re=ee.width,ae=ee.height):E||(re+=le,ae+=le),(z=y instanceof Yf)&&x.xe&&(x.type===jg||x.yk===re&&x.ft===ae))var ce=x.xe;else{var fe=0,Se=0,we=0,Ae=0,De=0,nt=0;if(nt=De=0,b?(De=ee.x,nt=ee.y):E||(De-=le/2,nt-=le/2),fe=x.start.x*re+x.start.offsetX,Se=x.start.y*ae+x.start.offsetY,we=x.end.x*re+x.end.offsetX,Ae=x.end.y*ae+x.end.offsetY,fe+=De,we+=De,Se+=nt,Ae+=nt,x.type===Od)ce=y.createLinearGradient(fe,Se,we,Ae);else if(x.type===eh)nt=isNaN(x.endRadius)?Math.max(re,ae)/2:x.endRadius,isNaN(x.startRadius)?(De=0,nt=Math.max(re,ae)/2):De=x.startRadius,ce=y.createRadialGradient(fe,Se,De,we,Ae,nt);else if(x.type===jg)try{ce=y.createPattern(x.pattern,"repeat")}catch(dt){ce=null}if(x.type!==jg&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ce.addColorStop(b.key,b.value);if(z&&(x.xe=ce,ce!==null&&(x.yk=re,x.ft=ae),ce===null&&x.type===jg&&x.yk!==-1)){x.yk=-1;var Ze=a.diagram;Ze!==null&&x.yk===-1&&Fr(function(){Ze.redraw()},600)}}E?y.fillStyle=ce:y.strokeStyle=ce}}}Ee.rg=function(a){if(a instanceof ci)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Ee.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ee.If=function(){for(var a=this instanceof ci?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Su(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){hh(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}hh(a,!1),qc(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,qc(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,qc(a,!1)))}Ee.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=at.alloc();z.yi(y,x,E,b,Sa),a.rotate(this.Kb,z.x,z.y),at.free(z)}},Ee.v=function(a){if(!Gc(this)){a===void 0&&(a=!1),Rl(this,!0),gd(this,!0);var y=this.panel;y===null||a||y.v()}},Ee.Uj=function(){Gc(this)||(Rl(this,!0),gd(this,!0))};function nc(a){if(!ic(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Gi&&a.Bd(),y.$b())),gd(a,!0)}}Ee.Uk=function(){!(this.l&2048)&&(hh(this,!0),qc(this,!0))},Ee.Wu=function(){qc(this,!0)},Ee.N=function(){var a=this.part;a!==null&&a.N()};function yc(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===ci.Table?Rh(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ci.Auto&&E.Pb()===a?cu(a,Ln,y):x===jo?E!==null?E.type===ci.Spot&&E.Pb()===a?cu(a,Ln,y):(x=E.defaultStretch,x===jo?cu(a,Dn,y):cu(a,x,y)):cu(a,Dn,y):cu(a,x,y)}function Rh(a,y,x,E){var b=a.stretch;if(b!==jo)return cu(a,b,E);var z=b=null;switch(y.stretch){case $r:z=!0;break;case Ln:z=!0}switch(x.stretch){case Cr:b=!0;break;case Ln:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Cr||y===Ln),z===null&&(z=y===$r||y===Ln),b===!0&&z===!0?cu(a,Ln,E):b===!0?cu(a,Cr,E):z===!0?cu(a,$r,E):cu(a,Dn,E)}function cu(a,y,x){if(x)return y;if(y===Dn||(x=a.desiredSize,x.w()))return Dn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Cr)return Dn;if(y===Ln)return $r}else{if(y===$r)return Dn;if(y===Ln)return Cr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===$r)return Dn;if(y===Ln)return Cr}else{if(y===Cr)return Dn;if(y===Ln)return $r}return y}function Eh(a,y){a.l=y?a.l|512:a.l&-513}function Mu(a){return(a.l&1024)!==0}function ug(a,y){a.l=y?a.l|1024:a.l&-1025}function hh(a,y){a.l=y?a.l|2048:a.l&-2049}function qc(a,y){a.l=y?a.l|4096:a.l&-4097}function Gc(a){return(a.l&8192)!==0}function Rl(a,y){a.l=y?a.l|8192:a.l&-8193}function ic(a){return(a.l&16384)!==0}function gd(a,y){a.l=y?a.l|16384:a.l&-16385}Ee.Gj=function(){this.svg=null},Ee.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ee.Av=function(){},Ee.zv=function(a){return this.pa=a,nc(this),!0},Ee.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ee.kq=function(){return 0};function Gf(a){var y=a.part;if(y instanceof Gi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||ZS(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ci?a instanceof Gi?a.Bd():a.qm(a,function(x){Gf(x)}):Gf(a))}Ee.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Dl(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&vS(a)&&tn("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new _n),this.localBindings.add(b),this},Ee.set=function(a){return Object.assign(this,a),this},Ee.Du=function(a){return a0(this,a),this},Ee.apply=function(a){return a(this),this},Ee.nm=function(a){return vl(this,a),this},Ee.pz=function(){return this.ih()},Ee.ih=function(){for(var a=this instanceof ci?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ee.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new wr),this.animationTriggers.add(a.propertyName,a),this};function $c(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Dg.I(a);typeof z=="function"?(x=Xo(arguments),E=z(x),wn(E)||tn('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Yt.go[a]}if(E===null&&(b!=null&&b.constructor||tn("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof At&&1<x.length){z=E;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(Pi(z,ee),b++)}for(;b<x.length;b++)z=x[b],z===void 0?tn("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):a0(E,z);return E}function a0(a,y){if(typeof y=="string")if(a instanceof ks)a.text=y;else if(a instanceof Zo)a.figure=y;else if(a instanceof xc)a.source=y;else if(a instanceof ci)y=bh.I(y),y!==null&&(a.type=y);else if(a instanceof as){var x=Yo(as,y);x!==null?a.type=x:tn("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof fi?(y=Yo(fi,y),y!==null&&(a.type=y)):a instanceof Ca&&(y=Yo(Ca,y),y!==null&&(a.type=y));else if(y instanceof bt)a instanceof ci||tn("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof jl){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof jl?Tm(E,y):tn("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof ln)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Hl)a.type=y;else if(y instanceof Dl)a instanceof bt||a instanceof jl?a.bind(y):tn("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Li)a instanceof bt?a.Jv(y):tn("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof wl)a instanceof fi&&a.type===fi.o?a.figures.add(y):tn("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Ca)a instanceof wl?a.segments.add(y):tn("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof $s)a instanceof At||a instanceof Io?a.layout=y:tn("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)a0(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof as){x=new Ao;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);vl(a,x)}else if(a instanceof jl){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&tn("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&tn("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Ao;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);vl(a,b)}else vl(a,y);else tn('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Jd(a,y){Dg.add(a,y)}function pm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}un.Object.defineProperties(bt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new cg),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new cg),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new cg),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&($o(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&($o(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ac},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new xf),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===ac&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new xf),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new xf),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:St},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new xf),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:jo},set:function(a){var y=this.stretch;y!==a&&($o(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&($o(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Hr(a,"0 <= value <= 1",bt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Qf(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Qf(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),qy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&dg(a,"GraphObject.areaBackground"),a instanceof as&&a.freeze(),$o(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&dg(a,"GraphObject.background"),a instanceof as&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof zr)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new at(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&tn("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,qy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Zo&&this.qc(),this.g("desiredSize",E,a),Mu(this)&&(a=this.part,a!==null&&(Gs(this,a,"width"),Gs(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new fn(a,this.jd.height).freeze(),this.v(),this instanceof Zo&&this.qc(),this.g("desiredSize",y,a),Mu(this)&&(a=this.part,a!==null&&Gs(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new fn(this.jd.width,a).freeze(),this.v(),this instanceof Zo&&this.qc(),this.g("desiredSize",y,a),Mu(this)&&(a=this.part,a!==null&&Gs(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:eo},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),$o(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:ns},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),$o(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Mo(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Su(this),this.Ab}},oe:{get:function(){return this.l&4096&&Su(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&($o(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Dn},set:function(a){this.reshapingBehavior!==a&&($o(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&tn("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),nc(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Hr(a,">= 0",bt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Hr(a,">= 1",bt,"columnSpan"),$o(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Hr(a,">= 0",bt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Hr(a,">= 1",bt,"rowSpan"),$o(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&($o(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Gi||tn("Cannot set portID on a Link: "+a),y!==null&&x!==null&&U0(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,QS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:hl},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Gf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Hr(a,">= 0",bt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Gf(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Gf(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Hr(a,">= 0",bt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:hl},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Gf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Hr(a,">= 0",bt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Gf(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Gf(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Hr(a,">= 0",bt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&($o(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&($o(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&($o(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&($o(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&($o(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&($o(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&($o(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&($o(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&($o(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&($o(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&($o(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&($o(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&($o(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&($o(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&($o(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&($o(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&($o(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&($o(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),bt.prototype.trigger=bt.prototype.Jv,bt.prototype.findBindingPanel=bt.prototype.ih,bt.prototype.findTemplateBinder=bt.prototype.pz,bt.prototype.setProperties=bt.prototype.nm,bt.prototype.apply=bt.prototype.apply,bt.prototype.attach=bt.prototype.Du,bt.prototype.set=bt.prototype.set,bt.prototype.isEnabledObject=bt.prototype.If,bt.prototype.isVisibleObject=bt.prototype.Ed,bt.prototype.isContainedBy=bt.prototype.rg,bt.prototype.getNearestIntersectionPoint=bt.prototype.rs,bt.prototype.getLocalPoint=bt.prototype.qs,bt.prototype.getDocumentScale=bt.prototype.Df,bt.prototype.getDocumentAngle=bt.prototype.li,bt.prototype.getDocumentBounds=bt.prototype.mi,bt.prototype.getDocumentPoint=bt.prototype.ga,bt.prototype.intersectsRect=bt.prototype.Yc,bt.prototype.containedInRect=bt.prototype.fh,bt.prototype.containsRect=bt.prototype.Re,bt.prototype.containsPoint=bt.prototype.ca,bt.prototype.raiseChanged=bt.prototype.g,bt.prototype.raiseChangedEvent=bt.prototype.cb,bt.prototype.addCopyProperty=bt.prototype.Vw;var Dg=null;bt.className="GraphObject",Dg=new wr,Jd("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=$c(ci,ci.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ci){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},$c(Zo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new kr(0,0,2.76142374915397,2.761423749153969),spot2:new kr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof ci&&(x=E.fb("ButtonBorder"),x instanceof Zo)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof ci&&(x=E.fb("ButtonBorder"),x instanceof Zo&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ci&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Zo){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ee,ee=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof ci&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Zo){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof ci&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Zo){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(x,E){if(E.If()&&E instanceof ci&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Zo))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ee=E._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=E._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),b.skipsUndoManager=z}}},y}),Jd("TreeExpanderButton",function(){var a=$c("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},$c(Zo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:fa},new Dl("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Dl("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ga&&(x=x.adornedPart),x instanceof Gi){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Jd("SubGraphExpanderButton",function(){var a=$c("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},$c(Zo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:fa},new Dl("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Ga&&(x=x.adornedPart),x instanceof Io){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Jd("ToolTip",function(){return $c(Ga,ci.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new at(0,3),shadowBlur:5},$c(Zo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new kr(0,0,4,6),spot2:new kr(1,1,-4,-4)}))}),Jd("ContextMenu",function(){return $c(Ga,ci.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new at(0,3),shadowBlur:5},new Dl("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Jd("ContextMenuButton",function(){var a=$c("Button");a.stretch=Cr;var y=a.fb("ButtonBorder");return y instanceof Zo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new kr(0,0,2,3),y.spot2=new kr(1,1,-2,-2)),a}),Jd("PanelExpanderButton",function(a){var y=pm(a,"COLLAPSIBLE"),x=$c("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},$c(Zo,{name:"ButtonIcon",strokeWidth:2},new Dl("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Zo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ee=b.ih();ee===null&&(ee=b.part),ee!==null&&(b=ee.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Jd("CheckBoxButton",function(a){var y=pm(a);return a=$c("Button",{desiredSize:new fn(14,14)},$c(Zo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Ln,geometryStretch:er,visible:!1},y!==""?new Dl("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ci){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Jd("CheckBox",function(a){a=pm(a),a=$c("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Mo(0,1,0,0)});var y=$c(ci,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Mo(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),bt.None=Dn=new ln(bt,"None",0),bt.Default=jo=new ln(bt,"Default",0),bt.Vertical=$r=new ln(bt,"Vertical",4),bt.Horizontal=Cr=new ln(bt,"Horizontal",5),bt.Fill=Ln=new ln(bt,"Fill",3),bt.Uniform=er=new ln(bt,"Uniform",1),bt.UniformToFill=La=new ln(bt,"UniformToFill",2),bt.FlipVertical=na=new ln(bt,"FlipVertical",1),bt.FlipHorizontal=za=new ln(bt,"FlipHorizontal",2),bt.FlipBoth=ps=new ln(bt,"FlipBoth",3),bt.make=$c,bt.getBuilders=function(){var a=new wr,y;for(y in Dg)if(y!==y.toLowerCase()){var x=Dg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},bt.defineBuilder=Jd,bt.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Dg.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof bt))return y&&E.set(y),E;tn('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},bt.takeBuilderArgument=pm;function cg(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=eo,this.o=ns,this.hg=jo,this.ob=this.Bi=1,this.Pf=Dn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}cg.prototype.copy=function(){var a=new cg;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function xf(){this.u=-1/0,this.o=0,this.F=St,this.rr=ac,this.j=this.V="None"}xf.prototype.copy=function(){var a=new xf;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},xf.className="LinkElementSettings";function yp(){this.yj=this.Xi=ml,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}yp.prototype.copy=function(){var a=new yp;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},yp.className="LinkSettings";function Uf(){this.ha=[1,0,0,1,0,0]}Uf.prototype.copy=function(){var a=new Uf;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},Uf.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},Uf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Uf.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ee=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ee,this.translate(-y,-x)}},Uf.className="STransform";function hg(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}hg.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},hg.className="SGradient";function ed(a,y,x){this.ownerDocument=a=y===void 0?Yt.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Tc(this,x)}ed.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},ed.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),wn(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},ed.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ed.prototype.focus=function(){this.Oa.focus()},ed.prototype.mx=function(){this.ownerDocument=null},un.Object.defineProperties(ed.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),ed.className="SVGSurface";function Tc(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Uf,this.j=mm(this),this.Nj=mm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=kl++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function $y(a,y,x,E,b,z,ee){a.Nj===void 0?Sp(a,y,x,E,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ee+")")}Ee=Tc.prototype,Ee.arc=function(a,y,x,E,b,z,ee,re){var ae=2*Math.PI,le=ae-1e-6,ce=x*Math.cos(E),fe=x*Math.sin(E),Se=a+ce,we=y+fe,Ae=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(ee-Se)||1e-6<Math.abs(re-we))&&this.path.push(["L",Se,+we]),0>E&&(E=E%ae+ae),E>le?(this.path.push(["A",x,x,0,1,Ae,a-ce,y-fe]),this.path.push(["A",x,x,0,1,Ae,Se,we])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Ae,a+x*Math.cos(b),y+x*Math.sin(b)])},Ee.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ee.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ee.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ee.clearRect=function(){},Ee.clip=function(){this.Yl.clipPath=!0},Ee.closePath=function(){this.path.push(["z"])},Ee.createLinearGradient=function(a,y,x,E){var b=new hg("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ee.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+kl++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(dd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ee.createRadialGradient=function(a,y,x,E,b,z){var ee=new hg("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=E,ee.y2=b,ee.r2=z,ee};function eS(a,y,x,E,b,z,ee,re,ae){E=re/E,b=ae/b,z===0&&ee===0||a.rb.translate(z,ee),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ee.drawImage=function(a,y,x,E,b,z,ee,re,ae){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var ce=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ee=x,re=E=ce,ae=b=a),E=E||0,b=b||0,re=re||0,ae=ae||0,eS(this,y,x,E,b,z||0,ee||0,re,ae),z={x:0,y:0,width:ce||E,height:a||b,href:le},Rt.$(E,re)&&Rt.$(b,ae)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ce||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Tg(this,dd,z,this.rb),this.addElement(dd,z)},Ee.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),s0(this,this.Yl)},Ee.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ee.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Tg(this,"fill",a,this.rb),this.addElement("rect",a)},Ee.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Tg(this,"fill",a,this.rb),s0(this,a),this.svg.prepend(this.Ud("rect",a))},Ee.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Tg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ee.lineTo=function(a,y){this.path.push(["L",a,y])},Ee.moveTo=function(a,y){this.path.push(["M",a,y])},Ee.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ee.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ee.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ee.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},Ee.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Sp(this,a,y,x,E,b,z)};function tS(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ee.scale=function(a,y){this.rb.scale(a,y)},Ee.translate=function(a,y){this.rb.translate(a,y)},Ee.transform=function(){},Ee.yc=function(){},Ee.stroke=function(){iS(this,this.Yl)},Ee.jk=function(){this.clipInsteadOfFill||this.stroke()},Ee.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ee.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Tg(a,y,x,E){y==="fill"?s0(a,x):y==="stroke"&&iS(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function s0(a,y){a.fillStyle instanceof hg?y.fill=l0(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function nS(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof hg?y.setAttributeNS(null,"fill",l0(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function iS(a,y){if(a.strokeStyle instanceof hg)y.stroke=l0(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function l0(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+kl++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],ee=0;ee<y;ee++){var re=b[ee],ae=re.color;re={offset:re.offset,"stop-color":ae},/^rgba\(/.test(ae)&&(ae=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ae),re["stop-color"]="rgb("+ae[1]+","+ae[2]+","+ae[3]+")",re["stop-opacity"]=ae[4]),z.push(re)}for(z.sort(function(le,ce){return le.offset>ce.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}Ee.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=Xo(a[b]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());E.push(ee.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,Tg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var ae in a)ae!=="transform"&&re[x].setAttributeNS(null,ae,a[ae])}else this.addElement("path",a)};function Sp(a,y,x,E,b,z,ee){var re=new Uf;re.ha=[y,x,E,b,z,ee],y={},Tg(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function mm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function pd(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Td(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ee.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ee.fs=function(){this.Ct=!1},Ee.Vc=function(){},Ee.Wx=function(){},Tc.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Tc.prototype.getImageData=function(){return null},Tc.prototype.measureText=function(){return null};function vm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Tc.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Tc.className="SVGContext",At.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new ed(this,Yt.document));var y=new ed(this,Yt.document,!0);a===void 0&&(a=new Ao);var x=this;return kd(this,function(E,b){return E=yf(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},At.prototype.makeSvg=At.prototype.Cs,At.prototype.av=function(a){return this.Cs(a)},At.prototype.makeSVG=At.prototype.av;function dh(a,y,x,E){this.ownerDocument=y=y===void 0?Yt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Yf(y,x,E),y.H=a}dh.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},dh.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},dh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},dh.prototype.focus=function(){this.Oa.focus()},dh.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},un.Object.defineProperties(dh.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),dh.className="CanvasSurface";function Yf(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&tn("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new Fo,this.isTemporary=!!x}Ee=Yf.prototype,Ee.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ee.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Ee.beginPath=function(){this.Z.beginPath()},Ee.Se=function(){},Ee.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Ee.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Ee.clip=function(){this.Z.clip()},Ee.closePath=function(){this.Z.closePath()},Ee.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Ee.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ee.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Ee.drawImage=function(a,y,x,E,b,z,ee,re,ae){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,ee,re,ae)},Ee.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ee.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Ee.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Ee.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ee.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Ee.lineTo=function(a,y){this.Z.lineTo(a,y)},Ee.measureText=function(a){return this.Z.measureText(a)},Ee.moveTo=function(a,y){this.Z.moveTo(a,y)},Ee.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Ee.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Ee.restore=function(){this.Z.restore()},Ee.save=function(){this.yc(),this.Z.save()},Yf.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ee=Yf.prototype,Ee.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Ee.scale=function(a,y){this.El.scale(a,y)},Ee.translate=function(a,y){this.El.translate(a,y)},Ee.stroke=function(){this.Z.stroke()},Ee.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*E,x=ee.m12*x+ee.m22*E,ee.dx=ee.m11*b+ee.m21*z+ee.dx,ee.dy=ee.m12*b+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Ee.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ee.ng=function(a,y){if(a instanceof as&&a.type===eh){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ee.jk=function(){this.Hm||this.stroke()},Ee.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ee.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ee.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(bx),a.lineDashOffset=0)},Ee.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ee.Hs=function(){},un.Object.defineProperties(Yf.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var bx=Object.freeze([]);Yf.className="CanvasSurfaceContext";function xp(){this.F=this.o=this.u=this.j=0}xp.className="ColorNumbers";function as(a,y){Rg||(g0(),Rg=!0),Po(this),this._isFrozen=!1,a===void 0?(this.na=Qd,this.xk="black"):typeof a=="string"?(this.na=Qd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Od?(this.Qd=Bu,this.Lk=Il):this.Lk=a===eh?this.Qd=Sa:this.Qd=hl,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}as.prototype.copy=function(){var a=new as;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ee=as.prototype,Ee.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ee.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ee.qb=function(a){a.classType===as&&(this.type=a)},Ee.toString=function(){var a="Brush(";if(this.type===Qd)a+=this.color;else if(a=this.type===Od?a+"Linear ":this.type===eh?a+"Radial ":this.type===jg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ee.addColorStop=function(a,y){return this._isFrozen&&Vi(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Hr(a,"0 <= loc <= 1",as,"addColorStop:loc"),this.we===null&&(this.we=new wr),this.we.add(a,y),this.na===Qd&&(this.type=Od),this.xe=null,this},Ee.Vz=function(a,y){if(this._isFrozen&&Vi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?zg:y,this.type===Qd)Bd(this.color),this.color=Og(a,y);else if((this.type===Od||this.type===eh)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Bd(x.value),this.addColorStop(x.key,Og(a,y));return this};function rS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?zg:x,Bd(a),Og(y,x)}Ee.Wy=function(a,y){if(this._isFrozen&&Vi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?zg:y,this.type===Qd)Bd(this.color),this.color=Og(-a,y);else if((this.type===Od||this.type===eh)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Bd(x.value),this.addColorStop(x.key,Og(-a,y));return this};function oS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?zg:x,Bd(a),Og(-y,x)}function u0(a,y,x){Bd(a),a=Os.j;var E=Os.u,b=Os.o,z=Os.F;return Bd(y),x===void 0&&(x=.5),"rgba("+Math.round((Os.j-a)*x+a)+", "+Math.round((Os.u-E)*x+E)+", "+Math.round((Os.o-b)*x+b)+", "+Math.round((Os.F-z)*x+z)+")"}Ee.Gx=function(){if(this.type===Qd)return Bg(this.color);if((this.type===Od||this.type===eh)&&this.colorStops!==null){var a=this.colorStops;if(this.type===eh)return Bg(a.first().value);if(a.get(.5)!==null)return Bg(a.get(.5));if(a.count===2)return a=a.Fa(),Bg(u0(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(x=ee,b=re):z>=b&&re<z&&(E=ee,z=re)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Bg(u0(a.get(x),a.get(E),1-z/b))}return!1};function Bg(a){return a?a instanceof as?a.Gx():(Bd(a),128>(299*Os.j+587*Os.u+114*Os.o)/1e3):!1}function Og(a,y){switch(y){case zg:y=100*h0(Os.j);var x=100*h0(Os.u),E=100*h0(Os.o);return rc.j=.4124564*y+.3575761*x+.1804375*E,rc.u=.2126729*y+.7151522*x+.072175*E,rc.o=.0193339*y+.119192*x+.9503041*E,rc.F=Os.F,y=f0(rc.j/Ig[0]),x=f0(rc.u/Ig[1]),E=f0(rc.o/Ig[2]),md.j=116*x-16,md.u=500*(y-x),md.o=200*(x-E),md.F=rc.F,md.j=Math.min(100,Math.max(0,md.j+100*a)),a=(md.j+16)/116,y=a-md.o/200,rc.j=Ig[0]*aS(md.u/500+a),rc.u=Ig[1]*(md.j>ym*p0?Math.pow(a,3):md.j/ym),rc.o=Ig[2]*aS(y),rc.F=md.F,a=-.969266*rc.j+1.8760108*rc.u+.041556*rc.o,y=.0556434*rc.j+-.2040259*rc.u+1.0572252*rc.o,Os.j=255*d0((3.2404542*rc.j+-1.5371385*rc.u+-.4985314*rc.o)/100),Os.u=255*d0(a/100),Os.o=255*d0(y/100),Os.F=rc.F,Os.j=Math.round(Os.j),255<Os.j?Os.j=255:0>Os.j&&(Os.j=0),Os.u=Math.round(Os.u),255<Os.u?Os.u=255:0>Os.u&&(Os.u=0),Os.o=Math.round(Os.o),255<Os.o?Os.o=255:0>Os.o&&(Os.o=0),"rgba("+Os.j+", "+Os.u+", "+Os.o+", "+Os.F+")";case sS:return c0(),Uc.o=Math.min(100,Math.max(0,Uc.o+100*a)),"hsla("+Uc.j+", "+Uc.u+"%, "+Uc.o+"%, "+Uc.F+")";default:tn("Unknown color space: "+y)}}function Bd(a){Rg||(g0(),Rg=!0);var y=m0;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Os.j=a[0],Os.u=a[1],Os.o=a[2],Os.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Os.j=0,Os.u=0,Os.o=0,Os.F=1)}}function c0(){var a=Os.j/255,y=Os.u/255,x=Os.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var ee=a=0;else{switch(E){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*b-1))}Uc.j=Math.round(ee),Uc.u=Math.round(100*a),Uc.o=Math.round(100*b),Uc.F=Os.F}function h0(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function d0(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function f0(a){return a>p0?Math.pow(a,1/3):(ym*a+16)/116}function aS(a){var y=a*a*a;return y>p0?y:(116*a-16)/ym}function dg(a,y){typeof a!="string"&&(a instanceof as||tn("Value for "+y+" must be a color string or a Brush, not "+a))}function g0(){m0=zs?new dh(null,void 0,{willReadFrequently:!0}).context:null}un.Object.defineProperties(as.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Vi(this,a),this.na=a,this.start.Mc()&&(a===Od?this.start=Bu:a===eh&&(this.start=Sa)),this.end.Mc()&&(a===Od?this.end=Il:a===eh&&(this.end=Sa)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Vi(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Vi(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Vi(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Vi(this,a),0>a&&Hr(a,">= zero",as,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Vi(this,a),0>a&&Hr(a,">= zero",as,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Vi(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Vi(this,a),this.cr=a,this.xe=null}}}),as.prototype.isDark=as.prototype.Gx,as.prototype.darkenBy=as.prototype.Wy,as.prototype.lightenBy=as.prototype.Vz,as.prototype.addColorStop=as.prototype.addColorStop;var p0=216/24389,ym=24389/27,Ig=[95.047,100,108.883],m0=null,Os=new xp,Uc=new xp,rc=new xp,md=new xp,Rg=!1;as.className="Brush";var Qd;as.Solid=Qd=new ln(as,"Solid",0);var Od;as.Linear=Od=new ln(as,"Linear",1);var eh;as.Radial=eh=new ln(as,"Radial",2);var jg;as.Pattern=jg=new ln(as,"Pattern",4);var zg;as.Lab=zg=new ln(as,"Lab",5);var sS;as.HSL=sS=new ln(as,"HSL",6),as.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},as.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Rg||(g0(),Rg=!0);var y=m0;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},as.lighten=function(a){return rS(a)},as.lightenBy=rS,as.darken=function(a){return oS(a)},as.darkenBy=oS,as.mix=u0,as.isDark=Bg;function Hl(){this.xa="Base"}Hl.prototype.measure=function(){},Hl.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Hl.prototype.arrange=function(){},Hl.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Hl.prototype.iA=function(a){a.Uj()},Hl.prototype.gc=function(){},un.Object.defineProperties(Hl.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ci}}}),Hl.prototype.remeasureObject=Hl.prototype.iA,Hl.prototype.arrangeElement=Hl.prototype.Ly,Hl.prototype.measureElement=Hl.prototype.Yz,Hl.className="PanelLayout";function Sm(){this.xa="Base"}Ft(Sm,Hl),Sm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;a=Id(a);for(var ae=0;ae<re;ae++){var le=E[ae];if(le.visible||le===a){var ce=le.margin,fe=ce.right+ce.left;ce=ce.top+ce.bottom,le.measure(y,x,z,ee);var Se=le.measuredBounds;fe=Math.max(Se.width+fe,0),ce=Math.max(Se.height+ce,0),Se=le.position.x;var we=le.position.y;isFinite(Se)||(Se=0),isFinite(we)||(we=0),le instanceof Zo&&le.isGeometryPositioned&&(le=le.strokeWidth/2,Se-=le,we-=le),_s(b,Se,we,fe,ce)}}},Sm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],ee=z.measuredBounds,re=z.margin,ae=z.position.x,le=z.position.y;if(ae=isNaN(ae)?-a:ae-a,le=isNaN(le)?-x:le-x,z instanceof Zo&&z.isGeometryPositioned){var ce=z.strokeWidth/2;ae-=ce,le-=ce}z.visible&&z.arrange(ae+re.left,le+re.top,ee.width,ee.height)}};function xm(){this.xa="Base"}Ft(xm,Hl),xm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;y=hr(),z=Id(a);for(var ae=0;ae<re;ae++){var le=E[ae];if(le.visible||le===z){var ce=yc(le,!1);if(ce!==Dn&&ce!==Cr)y.push(le);else{le.measure(1/0,x,0,ee),ce=le.margin,le=le.measuredBounds;var fe=Math.max(le.height+ce.top+ce.bottom,0);b.width+=Math.max(le.width+ce.right+ce.left,0),b.height=Math.max(b.height,fe)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)ae=y[a],(ae.visible||ae===z)&&(ce=ae.margin,re=ce.right+ce.left,ce=ce.top+ce.bottom,ae.measure(1/0,x,0,ee),ae=ae.measuredBounds,ce=Math.max(ae.height+ce,0),b.width+=Math.max(ae.width+re,0),b.height=Math.max(b.height,ce));Nr(y)},xm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,ee=a.isOpposite,re=ee?x.width:b.left,ae=0;ae<E;ae++){var le=z,ce=y[ae];if(ce.visible){var fe=ce.measuredBounds,Se=ce.margin,we=Se.top+Se.bottom,Ae=z+b.bottom,De=fe.height,nt=yc(ce,!1);(isNaN(ce.desiredSize.height)&&nt===Ln||nt===$r)&&(De=Math.max(x.height-we-Ae,0)),we=De+we+Ae,Ae=ce.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=Sa),ee&&(re-=fe.width+Se.left+Se.right),ce.arrange(re+Ae.offsetX+Se.left,le+Ae.offsetY+Se.top+(x.height*Ae.y-we*Ae.y),fe.width,De),ee||(re+=fe.width+Se.left+Se.right)}}};function wm(){this.xa="Base"}Ft(wm,Hl),wm.prototype.measure=function(a,y,x,E,b,z){var ee=E.length;x=hr();for(var re=Id(a),ae=0;ae<ee;ae++){var le=E[ae];if(le.visible||le===re){var ce=yc(le,!1);if(ce!==Dn&&ce!==$r)x.push(le);else{var fe=le.margin;ce=fe.right+fe.left,fe=fe.top+fe.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,nl(b,Math.max(b.width,Math.max(le.width+ce,0)),b.height+Math.max(le.height+fe,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)ae=x[a],(ae.visible||ae===re)&&(le=ae.margin,ee=le.right+le.left,le=le.top+le.bottom,ae.measure(y,1/0,z,0),ae=ae.measuredBounds,le=Math.max(ae.height+le,0),b.width=Math.max(b.width,Math.max(ae.width+ee,0)),b.height+=le);Nr(x)}},wm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,ee=a.isOpposite,re=ee?x.height:b.top,ae=0;ae<E;ae++){var le=z,ce=y[ae];if(ce.visible){var fe=ce.measuredBounds,Se=ce.margin,we=Se.left+Se.right,Ae=z+b.right,De=fe.width,nt=yc(ce,!1);(isNaN(ce.desiredSize.width)&&nt===Ln||nt===Cr)&&(De=Math.max(x.width-we-Ae,0)),we=De+we+Ae,Ae=ce.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=Sa),ee&&(re-=fe.height+Se.bottom+Se.top),ce.arrange(le+Ae.offsetX+Se.left+(x.width*Ae.x-we*Ae.x),re+Ae.offsetY+Se.top,De,fe.height),ee||(re+=fe.height+Se.bottom+Se.top)}}};function Pm(){this.xa="Base"}Ft(Pm,Hl),Pm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,ae=a.Pb(),le=ae.margin,ce=le.right+le.left,fe=le.top+le.bottom;ae.measure(y,x,z,ee);var Se=ae.measuredBounds;z=Se.width,ee=Se.height;var we=Math.max(z+ce,0),Ae=Math.max(ee+fe,0),De=a.isClipping,nt=cn.allocAt(-le.left,-le.top,we,Ae),Ze=cn.allocAt(0,0,z,ee);v0(ae,Ze,!0),z=Ze.width,ee=Ze.height;for(var dt=!0,mt=Id(a),xt=0;xt<re;xt++){var Ot=E[xt];Se=y;var en=x;if(Ot!==ae&&(Ot.visible||Ot===mt)){le=Ot.margin;var zi=le.left,dr=le.top;switch(we=le.right+le.left,Ae=le.top+le.bottom,le=yc(Ot,!1),le){case Ln:Se=z,en=ee,dr=zi=Ae=we=0;break;case Cr:Se=z,zi=we=0;break;case $r:en=ee,dr=Ae=0}Ot.measure(Se,en,0,0),Se=Ot.measuredBounds,we=Math.max(Se.width+we,0),Ae=Math.max(Se.height+Ae,0),le=Ot.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=Sa);var tr=Ot.alignmentFocus;if(tr.Xb()&&(tr=Sa),en=null,Ot instanceof ci&&Ot.$e!==""&&(en=Ot.fb(Ot.$e),en===Ot&&(en=null)),zi=Ze.x-zi,dr=Ze.y-dr,en!==null){for(Ot.arrange(0,0,Se.width,Se.height),Se=en.actualBounds,Se=at.allocAt(Se.x+(tr.x*Se.width-tr.offsetX),Se.y+(tr.y*Se.height-tr.offsetY)),en=en.panel;en!==Ot;)en.transform.Ga(Se),en=en.panel;zi+=le.x*z+le.offsetX-Se.x,dr+=le.y*ee+le.offsetY-Se.y,at.free(Se)}else zi+=le.x*z+le.offsetX-(tr.x*Se.width+tr.offsetX),dr+=le.y*ee+le.offsetY-(tr.y*Se.height+tr.offsetY);dt?(dt=!1,b.h(zi,dr,we,Ae)):_s(b,zi,dr,we,Ae)}}switch(dt?b.assign(nt):De?b.Uu(Ze.x,Ze.y,Ze.width,Ze.height):_s(b,nt.x,nt.y,nt.width,nt.height),cn.free(nt),cn.free(Ze),le=ae.stretch,le===jo&&(le=yc(ae,!1)),le){case Dn:return;case Ln:if(!isFinite(y)&&!isFinite(x))return;break;case Cr:if(!isFinite(y))return;break;case $r:if(!isFinite(x))return}for(Se=ae.measuredBounds,z=Se.width,ee=Se.height,we=Math.max(z+ce,0),Ae=Math.max(ee+fe,0),le=ae.margin,Ze=cn.allocAt(-le.left,-le.top,we,Ae),v0(ae,Ze,!0),z=Ze.width,ee=Ze.height,y=0;y<re;y++)x=E[y],x===ae||!x.visible&&x!==mt||(le=x.margin,we=le.right+le.left,Ae=le.top+le.bottom,Se=x.measuredBounds,we=Math.max(Se.width+we,0),Ae=Math.max(Se.height+Ae,0),ce=x.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=Sa),x=x.alignmentFocus,x.Xb()&&(x=Sa),dt?(dt=!1,b.h(ce.x*z+ce.offsetX-(x.x*Se.width+x.offsetX)-le.left,ce.y*ee+ce.offsetY-(x.y*Se.height+x.offsetY)-le.top,we,Ae)):_s(b,ce.x*z+ce.offsetX-(x.x*Se.width+x.offsetX)-le.left,ce.y*ee+ce.offsetY-(x.y*Se.height+x.offsetY)-le.top,we,Ae));dt?b.assign(nt):De?b.Uu(Ze.x,Ze.y,Ze.width,Ze.height):_s(b,nt.x,nt.y,nt.width,nt.height),cn.free(Ze)},Pm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,ee=z.width,re=z.height,ae=a.padding;z=ae.left,ae=ae.top;var le=z-x.x,ce=ae-x.y;for(b.arrange(le,ce,ee,re),ee=cn.allocAt(0,0,ee,re),v0(b,ee,!1),re=0;re<E;re++){var fe=y[re];if(fe!==b){le=fe.measuredBounds;var Se=le.width,we=le.height;ce=fe.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=Sa);var Ae=fe.alignmentFocus;if(Ae.Xb()&&(Ae=Sa),le=null,fe instanceof ci&&fe.$e!==""&&(le=fe.fb(fe.$e),le===fe&&(le=null)),le!==null){var De=le.actualBounds;for(Ae=at.allocAt(De.x+(Ae.x*De.width-Ae.offsetX),De.y+(Ae.y*De.height-Ae.offsetY)),le=le.panel;le!==fe;)le.transform.Ga(Ae),le=le.panel;le=ce.x*ee.width+ce.offsetX-Ae.x,ce=ce.y*ee.height+ce.offsetY-Ae.y,at.free(Ae)}else le=ce.x*ee.width+ce.offsetX-(Ae.x*Se+Ae.offsetX),ce=ce.y*ee.height+ce.offsetY-(Ae.y*we+Ae.offsetY);le+=ee.x-x.x,ce+=ee.y-x.y,fe.visible&&fe.arrange(z+le,ae+ce,Se,we)}}cn.free(ee)};function v0(a,y,x){var E=null;if(a instanceof ci&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function Cm(){this.xa="Base"}Ft(Cm,Hl),Cm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,ae=a.Pb(),le=ae.margin,ce=y,fe=x,Se=le.right+le.left,we=le.top+le.bottom;ae.measure(y,x,z,ee),le=ae.measuredBounds;var Ae=0,De=null;ae instanceof Zo&&(De=ae,Ae=De.strokeWidth*De.scale);var nt=Math.max(le.width+Se,0);le=Math.max(le.height+we,0);var Ze=w0(ae),dt=Ze.x*nt+Ze.offsetX;Ze=Ze.y*le+Ze.offsetY;var mt=P0(ae),xt=mt.x*nt+mt.offsetX;for(mt=mt.y*le+mt.offsetY,isFinite(y)&&(ce=Math.max(Math.abs(dt-xt)-Ae,0)),isFinite(x)&&(fe=Math.max(Math.abs(Ze-mt)-Ae,0)),Ae=fn.alloc(),Ae.h(0,0),a=Id(a),mt=0;mt<re;mt++)Ze=E[mt],Ze===ae||!Ze.visible&&Ze!==a||(le=Ze.margin,nt=le.right+le.left,dt=le.top+le.bottom,Ze.measure(ce,fe,0,0),le=Ze.measuredBounds,nt=Math.max(le.width+nt,0),le=Math.max(le.height+dt,0),Ae.h(Math.max(nt,Ae.width),Math.max(le,Ae.height)));if(re===1)b.width=nt,b.height=le,fn.free(Ae);else{switch(Ze=w0(ae),mt=P0(ae),re=E=0,mt.x!==Ze.x&&mt.y!==Ze.y&&(E=Ae.width/Math.abs(mt.x-Ze.x),re=Ae.height/Math.abs(mt.y-Ze.y)),fn.free(Ae),Ae=0,De!==null&&(Ae=De.strokeWidth*De.scale,L0(De)===er&&(E=re=Math.max(E,re))),E+=Math.abs(Ze.offsetX)+Math.abs(mt.offsetX)+Ae,re+=Math.abs(Ze.offsetY)+Math.abs(mt.offsetY)+Ae,De=ae.stretch,De===jo&&(De=yc(ae,!1)),De){case Dn:ee=z=0;break;case Ln:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case Cr:isFinite(y)&&(E=y),ee=0;break;case $r:z=0,isFinite(x)&&(re=x)}ae.Uj(),ae.measure(E,re,z,ee),b.width=ae.measuredBounds.width+Se,b.height=ae.measuredBounds.height+we}},Cm.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=cn.alloc();z.h(0,0,1,1);var ee=E.margin,re=ee.left;ee=ee.top;var ae=a.padding,le=ae.left;ae=ae.top,E.arrange(le+re,ae+ee,b.width,b.height);var ce=w0(E),fe=P0(E),Se=ce.y*b.height+ce.offsetY,we=fe.x*b.width+fe.offsetX;for(fe=fe.y*b.height+fe.offsetY,z.x=ce.x*b.width+ce.offsetX,z.y=Se,_s(z,we,fe,0,0),z.x+=re+le,z.y+=ee+ae,b=0;b<x;b++)re=y[b],re!==E&&(le=re.measuredBounds,ee=re.margin,ae=Math.max(le.width+ee.right+ee.left,0),ce=Math.max(le.height+ee.top+ee.bottom,0),Se=re.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=Sa),ae=z.width*Se.x+Se.offsetX-ae*Se.x+ee.left+z.x,ee=z.height*Se.y+Se.offsetY-ce*Se.y+ee.top+z.y,re.visible&&(il(z.x,z.y,z.width,z.height,ae,ee,le.width,le.height)?re.arrange(ae,ee,le.width,le.height):re.arrange(ae,ee,le.width,le.height,new cn(z.x,z.y,z.width,z.height))));cn.free(z)};function Em(){this.xa="Base",this.name="Table"}Ft(Em,Hl),Em.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ee=hr(),re=hr(),ae=0;ae<z;ae++){var le=E[ae],ce=le instanceof ci?le:null;if(ce!==null&&qd(ce)&&le.visible){re.push(ce);for(var fe=ce.O.s,Se=fe.length,we=0;we<Se;we++){var Ae=fe[we];ce.type===ci.TableRow?Ae.row=le.row:ce.type===ci.TableColumn&&(Ae.column=le.column),ee.push(Ae)}}else ee.push(le)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var De=[],nt=0;nt<z;nt++){var Ze=ee[nt];Ze.visible&&(Rl(Ze,!0),gd(Ze,!0),De[Ze.row]||(De[Ze.row]=[]),De[Ze.row][Ze.column]||(De[Ze.row][Ze.column]=[]),De[Ze.row][Ze.column].push(Ze))}Nr(ee);var dt=hr(),mt=hr(),xt=hr(),Ot={count:0},en={count:0},zi=y,dr=x,tr=a.rowDefs,mi=a.colDefs,Gn=null;z=tr.length;for(var Bo=0;Bo<z;Bo++)Gn=tr[Bo],Gn!==void 0&&(Gn.actual=0);z=mi.length;for(var xo=0;xo<z;xo++)Gn=mi[xo],Gn!==void 0&&(Gn.actual=0);for(var qa=De.length,Ls=0,Jl=0;Jl<qa;Jl++)De[Jl]&&(Ls=Math.max(Ls,De[Jl].length));var ru=Math.min(a.topIndex,qa-1),Ju=Math.min(a.leftIndex,Ls-1),Ql=0;qa=De.length;for(var uf=Id(a),Tl=0;Tl<qa;Tl++)if(De[Tl]){Ls=De[Tl].length;var _h=a.Fb(Tl);_h.actual=0;for(var Qu=_h.oc=0;Qu<Ls;Qu++)if(De[Tl][Qu]){var cf=a.Eb(Qu);dt[Qu]===void 0&&(cf.actual=0,cf.oc=0,dt[Qu]=!0);for(var Xc=De[Tl][Qu],mh=Xc.length,Ic=0;Ic<mh;Ic++){var Mc=Xc[Ic];if(Mc.visible||Mc===uf){var Bf=1<Mc.rowSpan||1<Mc.columnSpan;Bf&&(Tl<ru||Qu<Ju||mt.push(Mc));var Vh=Mc.margin,lp=Vh.right+Vh.left,Rc=Vh.top+Vh.bottom,qu=Rh(Mc,_h,cf,!1),sm=Mc.desiredSize,Eg=!isNaN(sm.height),id=!isNaN(sm.width)&&Eg;if(Bf||qu===Dn||id||Tl<ru||Qu<Ju||(Ot[Qu]!==void 0||qu!==Ln&&qu!==Cr||(Ot[Qu]=-1,Ot.count++),en[Tl]!==void 0||qu!==Ln&&qu!==$r||(en[Tl]=-1,en.count++),xt.push(Mc)),Mc.measure(1/0,1/0,0,0),!(Tl<ru||Qu<Ju)){var Lc=Mc.measuredBounds,ng=Math.max(Lc.width+lp,0),jc=Math.max(Lc.height+Rc,0);if(Mc.rowSpan===1&&(qu===Dn||qu===Cr)){Gn=a.Fb(Tl);var Of=Gn.Wc();Ql=Math.max(jc-Gn.actual,0),Ql+Of>dr&&(Ql=Math.max(dr-Of,0));var Yv=Gn.oa===0;Gn.oc=Gn.oc+Ql,Gn.actual=Gn.oa+Ql,dr=Math.max(dr-(Ql+(Yv?Of:0)),0)}if(Mc.columnSpan===1&&(qu===Dn||qu===$r)){Gn=a.Eb(Qu);var lm=Gn.Wc();Ql=Math.max(ng-Gn.actual,0),Ql+lm>zi&&(Ql=Math.max(zi-lm,0));var Ky=Gn.oa===0;Gn.oc=Gn.oc+Ql,Gn.actual=Gn.oa+Ql,zi=Math.max(zi-(Ql+(Ky?lm:0)),0)}Bf&&Mc.Uj()}}}}}Nr(dt);var bd=0,zd=0;z=a.columnCount;for(var bg=0;bg<z;bg++){var If=mi[bg];If!==void 0&&(bd+=isNaN(If.Hc)?If.oc:If.Hc,If.oc!==0&&(bd+=If.Wc()))}z=a.rowCount;for(var up=0;up<z;up++){var Rf=tr[up];Rf!==void 0&&(zd+=isNaN(Rf.Hc)?Rf.oc:Rf.Hc,Rf.oc!==0&&(zd+=Rf.Wc()))}zi=Math.max(y-bd,0);var Ad=dr=Math.max(x-zd,0),hf=zi;z=xt.length;for(var kc=0;kc<z;kc++){var rd=xt[kc],Zv=a.Fb(rd.row),Wd=a.Eb(rd.column),cp=rd.measuredBounds,Kh=rd.margin,ig=Kh.right+Kh.left,od=Kh.top+Kh.bottom;Ot[rd.column]=Wd.oc===0&&Ot[rd.column]!==void 0?Math.max(cp.width+ig,Ot[rd.column]):null,en[rd.row]=Zv.oc===0&&en[rd.row]!==void 0?Math.max(cp.height+od,en[rd.row]):null}var Ag=0,hp=0,Nh;for(Nh in en)Nh!=="count"&&(Ag+=en[Nh]);for(Nh in Ot)Nh!=="count"&&(hp+=Ot[Nh]);for(var wu=fn.alloc(),um=0;um<z;um++){var hc=xt[um];if(hc.visible||hc===uf){var Bl=a.Fb(hc.row),dc=a.Eb(hc.column),Hd=0;isFinite(dc.width)?Hd=dc.width:(isFinite(zi)&&Ot[hc.column]!==null?hp===0?Hd=dc.actual+zi:Hd=Ot[hc.column]/hp*hf:Ot[hc.column]!==null?Hd=zi:Hd=dc.actual||zi,Hd=Math.max(0,Hd-dc.Wc()));var df=0;switch(isFinite(Bl.height)?df=Bl.height:(isFinite(dr)&&en[hc.row]!==null?Ag===0?df=Bl.actual+dr:df=en[hc.row]/Ag*Ad:en[hc.row]!==null?df=dr:df=Bl.actual||dr,df=Math.max(0,df-Bl.Wc())),wu.h(Math.max(dc.minimum,Math.min(Hd,dc.maximum)),Math.max(Bl.minimum,Math.min(df,Bl.maximum))),qu=Rh(hc,Bl,dc,!1),qu){case Cr:wu.height=Math.max(wu.height,Bl.actual+dr);break;case $r:wu.width=Math.max(wu.width,dc.actual+zi)}var rg=hc.margin,Gy=rg.right+rg.left,Xv=rg.top+rg.bottom;hc.Uj(),hc.measure(wu.width,wu.height,dc.minimum,Bl.minimum);var dp=hc.measuredBounds,og=Math.max(dp.width+Gy,0),Mg=Math.max(dp.height+Xv,0);isFinite(zi)&&(og=Math.min(og,wu.width)),isFinite(dr)&&(Mg=Math.min(Mg,wu.height));var Fc=0;Fc=Bl.actual,Bl.actual=Math.max(Bl.actual,Mg),Bl.oc=Math.max(Bl.oc,Mg),Ql=Bl.actual-Fc,dr=Math.max(dr-Ql,0),en[hc.row]===null&&(Ad=Math.max(Ad-Ql,0)),Fc=dc.actual,dc.actual=Math.max(dc.actual,og),dc.oc=Math.max(dc.oc,og),Ql=dc.actual-Fc,zi=Math.max(zi-Ql,0),Ot[hc.column]===null&&(hf=Math.max(hf-Ql,0))}}Nr(xt);var _d=fn.alloc(),Gh=hr(),oh=hr();if(z=mt.length,z!==0){for(var jf=0;jf<qa;jf++)if(De[jf]){Ls=De[jf].length;var fp=a.Fb(jf);Gh[jf]=fp.actual;for(var zf=0;zf<Ls;zf++)if(De[jf][zf]){var Jv=a.Eb(zf);oh[zf]=Jv.actual}}}for(var gp=0;gp<z;gp++){var Cl=mt[gp];if(Cl.visible||Cl===uf){var Dh=a.Fb(Cl.row),vh=a.Eb(Cl.column);switch(wu.h(Math.max(vh.minimum,Math.min(y,vh.maximum)),Math.max(Dh.minimum,Math.min(x,Dh.maximum))),qu=Rh(Cl,Dh,vh,!1),qu){case Ln:oh[vh.index]!==0&&(wu.width=Math.min(wu.width,oh[vh.index])),Gh[Dh.index]!==0&&(wu.height=Math.min(wu.height,Gh[Dh.index]));break;case Cr:oh[vh.index]!==0&&(wu.width=Math.min(wu.width,oh[vh.index]));break;case $r:Gh[Dh.index]!==0&&(wu.height=Math.min(wu.height,Gh[Dh.index]))}isFinite(vh.width)&&(wu.width=vh.width),isFinite(Dh.height)&&(wu.height=Dh.height),_d.h(0,0);for(var Qv=vh.minimum,zc=Dh.minimum,ff=1;ff<Cl.rowSpan&&!(Cl.row+ff>=a.rowCount);ff++)Gn=a.Fb(Cl.row+ff),Ql=0,Ql=qu===Ln||qu===$r?Math.max(Gn.minimum,Gh[Cl.row+ff]===0?Gn.maximum:Math.min(Gh[Cl.row+ff],Gn.maximum)):Math.max(Gn.minimum,isNaN(Gn.Hc)?Gn.maximum:Math.min(Gn.Hc,Gn.maximum)),_d.height+=Ql,zc+=Gn.minimum;for(var yh=1;yh<Cl.columnSpan&&!(Cl.column+yh>=a.columnCount);yh++)Gn=a.Eb(Cl.column+yh),Ql=0,Ql=qu===Ln||qu===Cr?Math.max(Gn.minimum,oh[Cl.column+yh]===0?Gn.maximum:Math.min(oh[Cl.column+yh],Gn.maximum)):Math.max(Gn.minimum,isNaN(Gn.Hc)?Gn.maximum:Math.min(Gn.Hc,Gn.maximum)),_d.width+=Ql,Qv+=Gn.minimum;wu.width+=_d.width,wu.height+=_d.height;var pp=Cl.margin,Wf=pp.right+pp.left,cm=pp.top+pp.bottom;Cl.measure(wu.width,wu.height,Qv,zc);for(var mp=Cl.measuredBounds,ad=Math.max(mp.width+Wf,0),ag=Math.max(mp.height+cm,0),Hf=0,vp=0;vp<Cl.rowSpan&&!(Cl.row+vp>=a.rowCount);vp++)Gn=a.Fb(Cl.row+vp),Hf+=Gn.total||0;if(Hf<ag){var gf=ag-Hf,Md=ag-Hf;if(Cl.spanAllocation!==null)for(var pf=Cl.spanAllocation,Vd=0;Vd<Cl.rowSpan&&!(0>=gf)&&!(Cl.row+Vd>=a.rowCount);Vd++){Gn=a.Fb(Cl.row+Vd);var mf=Gn.oa||0,sg=pf(Cl,Gn,Md);Gn.actual=Math.min(Gn.maximum,mf+sg),Gn.oa!==mf&&(gf-=Gn.oa-mf)}for(;0<gf;){var Uh=Gn.oa||0;if(isNaN(Gn.height)&&Gn.maximum>Uh&&(Gn.actual=Math.min(Gn.maximum,Uh+gf),Gn.oa!==Uh&&(gf-=Gn.oa-Uh)),Gn.index===0)break;Gn=a.Fb(Gn.index-1)}}for(var Lg=0,vf=0;vf<Cl.columnSpan&&!(Cl.column+vf>=a.columnCount);vf++)Gn=a.Eb(Cl.column+vf),Lg+=Gn.total||0;if(Lg<ad){var kg=ad-Lg,Uy=ad-Lg;if(Cl.spanAllocation!==null)for(var Kd=Cl.spanAllocation,lg=0;lg<Cl.columnSpan&&!(0>=kg)&&!(Cl.column+lg>=a.columnCount);lg++){Gn=a.Eb(Cl.column+lg);var hm=Gn.oa||0,Yy=Kd(Cl,Gn,Uy);Gn.actual=Math.min(Gn.maximum,hm+Yy),Gn.oa!==hm&&(kg-=Gn.oa-hm)}for(;0<kg;){var qv=Gn.oa||0;if(isNaN(Gn.width)&&Gn.maximum>qv&&(Gn.actual=Math.min(Gn.maximum,qv+kg),Gn.oa!==qv&&(kg-=Gn.oa-qv)),Gn.index===0)break;Gn=a.Eb(Gn.index-1)}}}}Nr(mt),fn.free(_d),fn.free(wu),Gh!==void 0&&Nr(Gh),oh!==void 0&&Nr(oh);var Fg=0,Ng=0,$v=a.desiredSize,Sx=a.maxSize;qu=yc(a,!0);var dm=zd=bd=0,fm=0;z=a.columnCount;for(var e0=0;e0<z;e0++)mi[e0]!==void 0&&(Gn=a.Eb(e0),isFinite(Gn.width)?(dm+=Gn.width,dm+=Gn.Wc()):Bm(Gn)===Ep?(dm+=Gn.oa,dm+=Gn.Wc()):Gn.oa!==0&&(bd+=Gn.oa,bd+=Gn.Wc()));isFinite($v.width)?Fg=Math.min($v.width,Sx.width):Fg=qu!==Dn&&isFinite(y)?y:bd,Fg=Math.max(Fg,a.minSize.width),Fg=Math.max(Fg-dm,0);for(var aw=bd===0?1:Math.max(Fg/bd,1),t0=0;t0<z;t0++)mi[t0]!==void 0&&(Gn=a.Eb(t0),isFinite(Gn.width)||Bm(Gn)===Ep||(Gn.actual=Gn.oa*aw),Gn.position=b.width,Gn.oa!==0&&(b.width+=Gn.oa,b.width+=Gn.Wc()));z=a.rowCount;for(var n0=0;n0<z;n0++)tr[n0]!==void 0&&(Gn=a.Fb(n0),isFinite(Gn.height)?(fm+=Gn.height,fm+=Gn.Wc()):Bm(Gn)===Ep?(fm+=Gn.oa,fm+=Gn.Wc()):Gn.oa!==0&&(zd+=Gn.oa,zd+=Gn.Wc()));isFinite($v.height)?Ng=Math.min($v.height,Sx.height):Ng=qu!==Dn&&isFinite(x)?x:zd,Ng=Math.max(Ng,a.minSize.height),Ng=Math.max(Ng-fm,0);for(var sw=zd===0?1:Math.max(Ng/zd,1),i0=0;i0<z;i0++)tr[i0]!==void 0&&(Gn=a.Fb(i0),isFinite(Gn.height)||Bm(Gn)===Ep||(Gn.actual=Gn.oa*sw),Gn.position=b.height,Gn.oa!==0&&(b.height+=Gn.oa,b.height+=Gn.Wc()));z=re.length;for(var Zy=0;Zy<z;Zy++){var gm=re[Zy],Xy=0,Jy=0;gm.type===ci.TableRow?(Xy=b.width,Gn=a.Fb(gm.row),Jy=Gn.actual):(Gn=a.Eb(gm.column),Xy=Gn.actual,Jy=b.height),gm.measuredBounds.h(0,0,Xy,Jy),Rl(gm,!1)}Nr(re),a.inRowsCols=De},Em.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var ee=a.inRowsCols;if(ee!==null){for(var re,ae,le=ee.length,ce=0,fe=0;fe<le;fe++)ee[fe]&&(ce=Math.max(ce,ee[fe].length));ae=a.rowDefs,re=a.colDefs;var Se=fe=0,we=Math.min(a.topIndex,le-1);if(0<ae.length){for(;we!==le&&(ae[we]===void 0||ae[we].oa===0);)we++;we=Math.max(Math.min(we,le-1),0),fe=-ae[we].position}var Ae=Math.min(a.leftIndex,ce-1);if(0<re.length){for(;Ae!==ce&&(re[Ae]===void 0||re[Ae].oa===0);)Ae++;Ae=Math.max(Math.min(Ae,ce-1),0),Se=-re[Ae].position}for(var De=0,nt=0;De!==le&&ae[De]===void 0;)De++;for(;nt!==le&&re[nt]===void 0;)nt++;ce=a.part,a.Fb(De),a.Eb(nt);for(var Ze=0;Ze<y.length;Ze++){var dt=y[Ze];if(dt instanceof ci&&dt.visible&&qd(dt)){if(dt.type===ci.TableRow){re=a.Fb(dt.row);var mt=a.Eb(nt)}else re=a.Fb(De),mt=a.Eb(dt.column);ae=re.position+fe+b,re.oa!==0&&(ae+=re.Io(Math.max(De,we))),re=mt.position+Se+z,mt.oa!==0&&(re+=mt.Io(Math.max(nt,Ae))),mt=dt.measuredBounds,dt.Uk(),dt.actualBounds.ka();var xt=dt.actualBounds,Ot=cn.allocAt(xt.x,xt.y,xt.width,xt.height);xt.x=dt.type===ci.TableRow?z:re,xt.y=dt.type===ci.TableColumn?b:ae,xt.width=mt.width,xt.height=mt.height,dt.actualBounds.freeze(),gd(dt,!1),Ys(Ot,xt)||ce===null||(ce.oh(),dt.Pn(ce)),cn.free(Ot)}}for(Ze=fn.alloc(),dt=0;dt<le;dt++)if(ee[dt]){for(ce=ee[dt].length,mt=a.Fb(dt),ae=mt.position+fe+b,mt.oa!==0&&(ae+=mt.Io(Math.max(De,we))),xt=0;xt<ce;xt++)if(ee[dt][xt]){Ot=a.Eb(xt),re=Ot.position+Se+z,Ot.oa!==0&&(re+=Ot.Io(Math.max(nt,Ae)));for(var en=ee[dt][xt],zi=en.length,dr=0;dr<zi;dr++){var tr=en[dr],mi=tr.measuredBounds;Ze.h(0,0);for(var Gn=1;Gn<tr.rowSpan&&!(dt+Gn>=a.rowCount);Gn++){var Bo=a.Fb(dt+Gn);Bo.oa!==0&&(Ze.height+=Bo.total)}for(Gn=1;Gn<tr.columnSpan&&!(xt+Gn>=a.columnCount);Gn++)Bo=a.Eb(xt+Gn),Bo.oa!==0&&(Ze.width+=Bo.total);var xo=Ot.oa+Ze.width,qa=mt.oa+Ze.height;Gn=re,Bo=ae;var Ls=xo,Jl=qa,ru=re,Ju=ae,Ql=xo,uf=qa;re+xo>x.width&&(Ql=Math.max(x.width-re,0)),ae+qa>x.height&&(uf=Math.max(x.height-ae,0));var Tl=tr.alignment;if(Tl.Xb()){Tl=a.defaultAlignment,Tl.sb()||(Tl=Sa);var _h=Tl.x,Qu=Tl.y,cf=Tl.offsetX;Tl=Tl.offsetY;var Xc=Ot.alignment,mh=mt.alignment;Xc.sb()&&(_h=Xc.x,cf=Xc.offsetX),mh.sb()&&(Qu=mh.y,Tl=mh.offsetY)}else _h=Tl.x,Qu=Tl.y,cf=Tl.offsetX,Tl=Tl.offsetY;(isNaN(_h)||isNaN(Qu))&&(Qu=_h=.5,Tl=cf=0),Xc=mi.width,mh=mi.height;var Ic=tr.margin,Mc=Ic.left+Ic.right,Bf=Ic.top+Ic.bottom,Vh=Rh(tr,mt,Ot,!1);!isNaN(tr.desiredSize.width)||Vh!==Ln&&Vh!==Cr||(Xc=Math.max(xo-Mc,0)),!isNaN(tr.desiredSize.height)||Vh!==Ln&&Vh!==$r||(mh=Math.max(qa-Bf,0)),xo=tr.maxSize,qa=tr.minSize,Xc=Math.min(xo.width,Xc),mh=Math.min(xo.height,mh),Xc=Math.max(qa.width,Xc),mh=Math.max(qa.height,mh),xo=mh+Bf,Gn+=Ls*_h-(Xc+Mc)*_h+cf+Ic.left,Bo+=Jl*Qu-xo*Qu+Tl+Ic.top,tr.visible&&(il(ru,Ju,Ql,uf,Gn,Bo,mi.width,mi.height)?tr.arrange(Gn,Bo,Xc,mh):tr.arrange(Gn,Bo,Xc,mh,new cn(ru,Ju,Ql,uf)))}}}for(fn.free(Ze),a=0;a<E;a++)x=y[a],z=x instanceof ci?x:null,z!==null&&qd(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function bm(){this.xa="Base"}Ft(bm,Hl),bm.prototype.measure=function(){},bm.prototype.arrange=function(){};function Am(){this.xa="Base"}Ft(Am,Hl),Am.prototype.measure=function(){},Am.prototype.arrange=function(){};function Mm(){this.xa="Base"}Ft(Mm,Hl),Mm.prototype.measure=function(a,y,x,E,b,z,ee){1<E.length&&tn("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ee);var re=E.measuredBounds,ae=E.margin,le=ae.right+ae.left;if(ae=ae.top+ae.bottom,isFinite(y)||isFinite(x)){var ce=E.scale,fe=re.width;re=re.height;var Se=Math.max(y-le,0),we=Math.max(x-ae,0),Ae=1;a.viewboxStretch===er?fe!==0&&re!==0&&(Ae=Math.min(Se/fe,we/re)):fe!==0&&re!==0&&(Ae=Math.max(Se/fe,we/re)),Ae===0&&(Ae=1e-4),E.Ca*=Ae,ce!==E.scale&&(Rl(E,!0),E.measure(1/0,1/0,z,ee))}re=E.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+le,0),b.height=isFinite(x)?x:Math.max(re.height+ae,0)},Mm.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=Sa),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-b*ee.y+ee.offsetY,E.width,E.height)};function wp(){this.xa="Base"}Ft(wp,Hl),wp.prototype.measure=function(){},wp.prototype.arrange=function(){},wp.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,ee=a.actualBounds,re=z.width,ae=z.height,le=Math.ceil(re/b),ce=Math.ceil(ae/E),fe=a.gridOrigin,Se=fe.x;fe=fe.y,y.save(),y.beginPath(),y.rect(0,0,re,ae),y.clip(),y.Se();for(var we=[],Ae=a.O.s,De=Ae.length,nt=0;nt<De;nt++){var Ze=Ae[nt],dt=[];if(we.push(dt),Ze.visible){var mt=Ze.interval;if(!(0>mt)){Ze=S0(Ze.figure);for(var xt=0;xt<De;xt++)if(xt!==nt){var Ot=Ae[xt];Ot.visible&&S0(Ot.figure)===Ze&&(Ot=Ot.interval,Ot>mt&&dt.push(Ot))}}}}for(Ae=a.O.s,De=Ae.length,nt=0;nt<De;nt++){var en=Ae[nt];if(en.visible&&(dt=en.interval||1,Ze=Math.abs(dt),!(2>b*Ze*x))){if(mt=en.segmentIndex,(!isFinite(mt)||isNaN(mt))&&(mt=0),0>mt&&(mt=Ze-Math.min(-mt,Ze)),mt=Math.round(mt%Ze),Ze=en.opacity,xt=1,Ze!==1){if(Ze===0)continue;xt=y.globalAlpha,y.globalAlpha=xt*Ze}Ot=we[nt];var zi=!1,dr=en.strokeDashArray;if(dr!==null&&(zi=!0,y.js(dr,en.strokeDashOffset)),en.figure==="LineV"&&en.stroke!==null&&0<en.strokeWidth){for(y.lineWidth=en.strokeWidth,Sl(a,y,en.stroke,!1,!1,z,ee),y.beginPath(),dr=en=Math.floor((Se-b)/b);dr<=en+le;dr++){var tr=dr*b+Se;0<=tr&&tr<=re&&Lm(dr,dt,mt,Ot)&&(y.moveTo(tr,0),y.lineTo(tr,ae))}y.stroke(),y.Se()}else if(en.figure==="LineH"&&en.stroke!==null&&0<en.strokeWidth){for(y.lineWidth=en.strokeWidth,Sl(a,y,en.stroke,!1,!1,z,ee),y.beginPath(),dr=en=Math.floor((fe-E)/E);dr<=en+ce;dr++)tr=dr*E+fe,0<=tr&&tr<=ae&&Lm(dr,dt,mt,Ot)&&(y.moveTo(0,tr),y.lineTo(re,tr));y.stroke(),y.Se()}else if(en.figure==="BarV"&&en.fill!==null)for(Sl(a,y,en.fill,!0,!1,z,ee),en=en.width,isNaN(en)&&(en=b),tr=dr=Math.floor((Se-b)/b);tr<=dr+le;tr++){var mi=tr*b+Se;0<=mi+en&&mi<=re&&Lm(tr,dt,mt,Ot)&&y.fillRect(mi,0,en,ae)}else if(en.figure==="BarH"&&en.fill!==null)for(Sl(a,y,en.fill,!0,!1,z,ee),en=en.height,isNaN(en)&&(en=E),tr=dr=Math.floor((fe-E)/E);tr<=dr+ce;tr++)mi=tr*E+fe,0<=mi+en&&mi<=ae&&Lm(tr,dt,mt,Ot)&&y.fillRect(0,mi,re,en);zi&&y.fs(),Ze!==1&&(y.globalAlpha=xt)}}y.restore(),y.Vc(!1)};function Lm(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function km(){this.xa="Base"}Ft(km,Hl),km.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof Ga||a instanceof yi){var ee=null,re=null;if(a instanceof yi&&(ee=a),a instanceof Ga&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof yi){var ae=ee;if(z===0)nl(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof Ga?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ce=ae.points,fe=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var Se=y.height,we=a.j;if(we.length=0,le!==null){lS(a,re,Se,le);var Ae=le.measuredBounds;x.ed(Ae),we.push(Ae)}Ae=Fo.alloc();for(var De=at.alloc(),nt=at.alloc(),Ze=0;Ze<z;Ze++){var dt=E[Ze];if(dt!==le)if(dt.isPanelMain&&dt instanceof Zo){lS(a,re,Se,dt);var mt=dt.measuredBounds;x.ed(mt),we.push(mt)}else if(2>fe)dt.measure(1/0,1/0,0,0),mt=dt.measuredBounds,x.ed(mt),we.push(mt);else{var xt=dt.segmentIndex,Ot=dt.segmentFraction,en=dt.alignmentFocus;en.Mc()&&(en=Sa);var zi=dt.segmentOrientation,dr=dt.segmentOffset;if(isNaN(xt)){var tr=ae.ua;mt=hr(),tr.Qu(Ot,mt);var mi=at.allocAt(mt[0],mt[1]);if(mi.add(ae.i(0)),tr.type===fi.j?mi.offset(-tr.startX,-tr.startY):(tr=tr.figures.first(),tr!==null&&mi.offset(-tr.startX,-tr.startY)),tr=mt[2],zi!==ac){var Gn=ae.computeAngle(dt,zi,tr);dt.Kb=Gn}Gn=mi.x-y.x;var Bo=mi.y-y.y;at.free(mi),Nr(mt)}else if(xt<-fe||xt>=fe)mt=at.alloc(),ae.vg(),ae.computeMidPoint(mt),tr=ae.midAngle,zi!==ac&&(Gn=ae.computeAngle(dt,zi,tr),dt.Kb=Gn),Gn=mt.x-y.x,Bo=mt.y-y.y,at.free(mt);else{if(Gn=0,0<=xt?(Bo=ce.M(xt),mt=xt<fe-1?ce.M(xt+1):Bo):(Gn=fe+xt,Bo=ce.M(Gn),mt=0<Gn?ce.M(Gn-1):Bo),Bo.Xa(mt)){0<=xt?(tr=0<xt?ce.M(xt-1):Bo,Gn=xt<fe-2?ce.M(xt+2):mt):(tr=Gn<fe-1?ce.M(Gn+1):Bo,Gn=1<Gn?ce.M(Gn-2):mt),mi=tr.Bf(Bo);var xo=mt.Bf(Gn);tr=mi>xo+10?0<=xt?tr.ab(Bo):Bo.ab(tr):xo>mi+10?0<=xt?mt.ab(Gn):Gn.ab(mt):0<=xt?tr.ab(Gn):Gn.ab(tr)}else tr=0<=xt?Bo.ab(mt):mt.ab(Bo);zi!==ac&&(Gn=ae.computeAngle(dt,zi,tr),dt.Kb=Gn),Gn=Bo.x+(mt.x-Bo.x)*Ot-y.x,Bo=Bo.y+(mt.y-Bo.y)*Ot-y.y}dt.measure(1/0,1/0,0,0),mt=dt.measuredBounds,mi=dt.naturalBounds;var qa=0;dt instanceof Zo&&(qa=dt.strokeWidth),xo=mi.width+qa;var Ls=mi.height+qa;Ae.reset(),Ae.translate(-mt.x,-mt.y),Ae.scale(dt.scale,dt.scale),Ae.rotate(zi===ac?dt.angle:tr,xo/2,Ls/2),zi!==Bp&&zi!==Ip||Ae.rotate(90,xo/2,Ls/2),zi!==Op&&zi!==Rp||Ae.rotate(-90,xo/2,Ls/2),zi===ov&&(45<tr&&135>tr||225<tr&&315>tr)&&Ae.rotate(-tr,xo/2,Ls/2),mi=new cn(0,0,xo,Ls),De.xi(mi,en),Ae.Ga(De),en=-De.x+qa/2*dt.scale,dt=-De.y+qa/2*dt.scale,nt.assign(dr),qa=isNaN(dr.x);var Jl=isNaN(dr.y);if(qa||Jl){xo=xo/2+3,Ls=Ls/2+3;var ru=45<=tr&&135>=tr,Ju=225<=tr&&315>=tr;zi===ac&&(ru||Ju)?(nt.x=Jl?xo:dr.y,nt.y=qa?Ls:dr.x,ru?0<=xt||isNaN(xt)&&.5>Ot||!qa||(nt.y=-Ls):Ju&&((0<=xt||isNaN(xt)&&.5>Ot)&&qa&&(nt.y=-Ls),Jl&&(nt.x=-xo))):(qa&&(nt.x=0<=xt||isNaN(xt)&&.5>Ot?xo:-xo),Jl&&(nt.y=-Ls),nt.rotate(tr))}else nt.rotate(tr);Gn+=nt.x,Bo+=nt.y,mi.set(mt),mi.h(Gn+en,Bo+dt,mt.width,mt.height),we.push(mi),x.ed(mi)}}if(ee!==null)for(E=ee.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),nl(b,x.width||0,x.height||0),Fo.free(Ae),at.free(De),at.free(nt)}}}},km.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ga||a instanceof yi){var E=a,b=null;a instanceof Ga&&(b=a,E=b.adornedPart);var z=a instanceof Ga?null:E.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var ae=ee[re];re++,z.arrange(ae.x-a.jg.x,ae.y-a.jg.y,ae.width,ae.height)}for(ae=0;ae<x;ae++){var le=y[ae];if(le!==z&&re<ee.length){var ce=ee[re];re++,le.arrange(ce.x-a.jg.x,ce.y-a.jg.y,ce.width,ce.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof yi)for(z=a.labelNodes;z.next();){var fe=a;ee=z.value,re=ee.segmentIndex,ae=ee.segmentFraction;var Se=ee.alignmentFocus;if(le=ee.segmentOrientation,ce=ee.segmentOffset,isNaN(re)){var we=fe.ua,Ae=hr();we.Qu(ae,Ae);var De=at.allocAt(Ae[0],Ae[1]);De.add(fe.i(0)),we.type===fi.j||(we=we.figures.first()),De.offset(-we.startX,-we.startY),we=Ae[2],le!==ac&&(fe=fe.computeAngle(ee,le,we),ee.angle=fe),fe=De.x;var nt=De.y;at.free(De),Nr(Ae)}else if(re<-x||re>=x)Ae=at.alloc(),we=fe,nt=Ae,we.vg(),we.computeMidPoint(nt),we=fe.midAngle,le!==ac&&(fe=fe.computeAngle(ee,le,we),ee.angle=fe),fe=Ae.x,nt=Ae.y,at.free(Ae);else{if(De=0,0<=re?(Ae=y.s[re],nt=re<x-1?y.s[re+1]:Ae):(De=x+re,Ae=y.s[De],nt=0<De?y.s[De-1]:Ae),Ae.Xa(nt)){0<=re?(we=0<re?y.s[re-1]:Ae,De=re<x-2?y.s[re+2]:nt):(we=De<x-1?y.s[De+1]:Ae,De=1<De?y.s[De-2]:nt);var Ze=we.Bf(Ae),dt=nt.Bf(De);we=Ze>dt+10?0<=re?we.ab(Ae):Ae.ab(we):dt>Ze+10?0<=re?nt.ab(De):De.ab(nt):0<=re?we.ab(De):De.ab(we)}else we=0<=re?Ae.ab(nt):nt.ab(Ae);le!==ac&&(fe=fe.computeAngle(ee,le,we),ee.angle=fe),fe=Ae.x+(nt.x-Ae.x)*ae,nt=Ae.y+(nt.y-Ae.y)*ae}if(Se.ys())ee.location=new at(fe,nt);else{Se.Mc()&&(Se=Sa),Ae=Fo.alloc(),Ae.reset(),Ae.scale(ee.scale,ee.scale),Ae.rotate(ee.angle,0,0);var mt=ee.naturalBounds;De=cn.allocAt(0,0,mt.width,mt.height),Ze=at.alloc(),Ze.xi(De,Se),Ae.Ga(Ze),Se=-Ze.x,dt=-Ze.y;var xt=mt.width,Ot=mt.height;mt=at.alloc(),mt.assign(ce);var en=isNaN(ce.x),zi=isNaN(ce.y);if(en||zi){xt=xt/2+3,Ot=Ot/2+3;var dr=45<=we&&135>=we,tr=225<=we&&315>=we;le===ac&&(dr||tr)?(mt.x=zi?xt:ce.y,mt.y=en?Ot:ce.x,dr?0<=re||isNaN(re)&&.5>ae||!en||(mt.y=-Ot):tr&&((0<=re||isNaN(re)&&.5>ae)&&en&&(mt.y=-Ot),zi&&(mt.x=-xt))):(en&&(mt.x=0<=re||isNaN(re)&&.5>ae?xt:-xt),zi&&(mt.y=-Ot),mt.rotate(we))}else mt.rotate(we);fe+=mt.x,nt+=mt.y,Ae.pp(De),Se+=De.x,dt+=De.y,re=at.allocAt(fe+Se,nt+dt),ee.move(re),at.free(re),at.free(mt),at.free(Ze),cn.free(De),Fo.free(Ae)}}b!==null?b.Ul(!1):E.Ul(!1),E=RS(a),a.location.h(a.position.x+E.x,a.position.y+E.y),at.free(E)}};function lS(a,y,x,E){if(Gc(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Ga&&a.type===ci.Link&&a.adornedObject instanceof Zo&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof yi&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Ga&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Rl(E,!1)}}function Pp(){this.xa="Base"}Ft(Pp,Hl),Pp.prototype.measure=function(a,y,x,E,b,z,ee){var re=a.Pb();a.graduatedBounds=[];var ae=re.margin,le=ae.right+ae.left,ce=ae.top+ae.bottom;re.measure(y,x,z,ee);var fe=re.measuredBounds,Se=new cn(-ae.left,-ae.top,Math.max(fe.width+le,0),Math.max(fe.height+ce,0));a.graduatedBounds.push(Se),b.assign(Se);for(var we=re.geometry,Ae=re.strokeWidth,De=we.flattenedSegments,nt=we.flattenedLengths,Ze=we.flattenedTotalLength,dt=De.length,mt=0,xt=0,Ot=hr(),en=0;en<dt;en++){var zi=De[en],dr=[];xt=mt=0;for(var tr=zi.length,mi=0;mi<tr;mi+=2){var Gn=zi[mi],Bo=zi[mi+1];if(mi!==0){var xo=180*Math.atan2(Bo-xt,Gn-mt)/Math.PI;0>xo&&(xo+=360),dr.push(xo)}mt=Gn,xt=Bo}Ot.push(dr)}if(a.graduatedIntervals===null){for(var qa=[],Ls=a.O.s,Jl=Ls.length,ru=0;ru<Jl;ru++){var Ju=Ls[ru],Ql=[];if(qa.push(Ql),Ju.visible){var uf=Ju.interval;if(!(0>uf)){for(var Tl=0;Tl<Jl;Tl++)if(Tl!==ru){var _h=Ls[Tl];if(_h.visible&&Ju.constructor===_h.constructor){var Qu=_h.interval;Qu>uf&&Ql.push(Qu)}}}}}a.graduatedIntervals=qa}var cf=a.graduatedIntervals,Xc=a.O.s,mh=Xc.length,Ic=0,Mc=0,Bf=Ze;a.graduatedMarks=[];for(var Vh,lp=0;lp<mh;lp++){var Rc=Xc[lp];if(Vh=[],Rc.visible&&Rc!==re){var qu=Math.abs(Rc.interval),sm=a.graduatedTickUnit;if(!(2>sm*qu*Ze/a.graduatedRange&&Rc.graduatedSkip===null)){var Eg=nt[0][0],id=0,Lc=0;Mc=Ze*Rc.graduatedStart-1e-4,Bf=Ze*Rc.graduatedEnd+1e-4;var ng=sm*qu,jc=a.graduatedTickBase;if(jc<a.graduatedMin){var Of=(a.graduatedMin-jc)/ng;Of=Of%1===0?Of:Math.floor(Of+1),jc+=Of*ng}else jc>a.graduatedMin+ng&&(jc-=Math.floor((jc-a.graduatedMin)/ng)*ng);for(var Yv=cf[lp],lm=jc,Ky=1e-6*a.graduatedMax,bd=1;jc<=a.graduatedMax+Ky;bd++){e:{for(var zd=Yv.length,bg=0;bg<zd;bg++){var If=(jc-a.graduatedTickBase)%(Yv[bg]*a.graduatedTickUnit),up=1e-6*a.graduatedTickUnit;if(If<up&&If>-up){var Rf=!1;break e}}Rf=!0}if(Rf&&(jc>a.graduatedMax&&(jc=a.graduatedMax),Rc.graduatedSkip===null||Rc instanceof ks&&!Rc.graduatedSkip(jc,Rc)||Rc instanceof Zo&&!Rc.graduatedSkip(jc,Rc))&&(Ic=(jc-a.graduatedMin)*Ze/a.graduatedRange,Ic>Ze&&(Ic=Ze),Mc<=Ic&&Ic<=Bf)){for(var Ad=Ot[id][Lc],hf=nt[id][Lc];id<nt.length;){for(;Ic>Eg&&Lc<nt[id].length-1;)Lc++,Ad=Ot[id][Lc],hf=nt[id][Lc],Eg+=hf;if(Ic<=Eg)break;id++,Lc=0,Ad=Ot[id][Lc],hf=nt[id][Lc],Eg+=hf}var kc=De[id],rd=kc[2*Lc],Zv=kc[2*Lc+1],Wd=(Ic-(Eg-hf))/hf,cp=new at(rd+(kc[2*Lc+2]-rd)*Wd+Ae/2-we.bounds.x,Zv+(kc[2*Lc+3]-Zv)*Wd+Ae/2-we.bounds.y);cp.scale(re.scale,re.scale);e:{var Kh=Ad,ig=Ot[id];if(!(.5005>Wd&&.4995<Wd)){var od=Kh;if(.5>Wd?0<Lc?od=ig[Lc-1]:Rt.$(kc[0],kc[kc.length-2])&&Rt.$(kc[1],kc[kc.length-1])&&(od=ig[ig.length-1]):.5<Wd&&(Lc+1<ig.length?od=ig[Lc+1]:Rt.$(kc[0],kc[kc.length-2])&&Rt.$(kc[1],kc[kc.length-1])&&(od=ig[0])),Kh!==od){var Ag=Math.abs(Kh-od);if(180<Ag&&(Kh<od?Kh+=360:od+=360,Ag=Math.abs(Kh-od)),5e-4>Wd||.9995<Wd){Ad=(Kh+od)/2%360;break e}if(10>Ag){var hp=1-Math.abs(.5-Wd);Ad=(Kh*hp+od*(1-hp))%360;break e}}}Ad=Kh}if(Rc instanceof ks){var Nh="";Rc.graduatedFunction!==null?(Nh=Rc.graduatedFunction(jc,Rc),Nh=Nh!=null?Nh.toString():""):Nh=(+jc.toFixed(2)).toString(),Nh!==""&&Vh.push({$l:cp,angle:Ad,text:Nh})}else Vh.push({$l:cp,angle:Ad})}jc=lm+bd*ng}}}a.graduatedMarks.push(Vh)}Nr(Ot);var wu=a.graduatedMarks;if(wu!==null)for(var um=E.length,hc=0;hc<um;hc++){var Bl=E[hc],dc=wu[hc];if(Bl.visible&&Bl!==re&&dc.length!==0){if(Bl instanceof Zo){var Hd=a,df=b,rg=Bl.alignmentFocus;rg.Mc()&&(rg=Bu);var Gy=Bl.angle;Bl.Kb=0,Bl.measure(1/0,1/0,0,0),Bl.Kb=Gy;var Xv=Bl.measuredBounds,dp=Xv.width,og=Xv.height,Mg=cn.allocAt(0,0,dp,og),Fc=at.alloc();Fc.xi(Mg,rg),cn.free(Mg);for(var _d=-Fc.x,Gh=-Fc.y,oh=new cn,jf=dc.length,fp=0;fp<jf;fp++)for(var zf=dc[fp],Jv=zf.$l.x,gp=zf.$l.y,Cl=zf.angle,Dh=0;4>Dh;Dh++){switch(Dh){case 0:Fc.h(_d,Gh);break;case 1:Fc.h(_d+dp,Gh);break;case 2:Fc.h(_d,Gh+og);break;case 3:Fc.h(_d+dp,Gh+og)}Fc.rotate(Cl+Bl.angle),Fc.offset(Jv,gp),fp===0&&Dh===0?oh.h(Fc.x,Fc.y,0,0):oh.Ye(Fc),Fc.offset(-Jv,-gp),Fc.rotate(-Cl-Bl.angle)}at.free(Fc),Hd.graduatedBounds!==null&&Hd.graduatedBounds.push(oh),_s(df,oh.x,oh.y,oh.width,oh.height)}else if(Bl instanceof ks){var vh=a,Qv=b;vh.temporaryTextBlock===null&&(vh.temporaryTextBlock=new ks);var zc=vh.temporaryTextBlock;CS(zc,Bl);var ff=Bl.alignmentFocus;ff.Mc()&&(ff=Bu);for(var yh=Bl.segmentOrientation,pp=Bl.segmentOffset,Wf=new cn,cm=0,mp=0,ad=0,ag=0,Hf=0,vp=dc.length,gf=0;gf<vp;gf++){var Md=dc[gf];cm=Md.$l.x,mp=Md.$l.y,ad=Md.angle,Hf=ag=Bl.angle,yh!==ac&&(Hf=yh===Tp||yh===rv?ad+Bl.angle:ad,ag=yi.computeAngle(yh,Hf)),zc.Kb=ag,zc.text=Md.text||"",zc.measure(1/0,1/0,0,0);var pf=zc.measuredBounds,Vd=zc.naturalBounds,mf=Vd.width,sg=Vd.height,Uh=Fo.alloc();Uh.reset(),Uh.translate(-pf.x,-pf.y),Uh.scale(zc.scale,zc.scale),Uh.rotate(Hf,mf/2,sg/2),yh!==Bp&&yh!==Ip||Uh.rotate(90,mf/2,sg/2),yh!==Op&&yh!==Rp||Uh.rotate(-90,mf/2,sg/2),yh===ov&&(45<ad&&135>ad||225<ad&&315>ad)&&Uh.rotate(-ad,mf/2,sg/2);var Lg=cn.allocAt(0,0,mf,sg),vf=at.alloc();vf.xi(Lg,ff),Uh.Ga(vf);var kg=-vf.x,Uy=-vf.y,Kd=at.alloc();Kd.assign(pp),isNaN(Kd.x)&&(Kd.x=mf/2+3),isNaN(Kd.y)&&(Kd.y=-(sg/2+3)),Kd.rotate(ad),cm+=Kd.x+kg,mp+=Kd.y+Uy;var lg=new cn(cm,mp,pf.width,pf.height),hm=new cn(pf.x,pf.y,pf.width,pf.height),Yy=new cn(Vd.x,Vd.y,Vd.width,Vd.height);Md.Sz=ag,Md.lineCount=zc.lineCount,Md.lines=[zc.Cb,zc.Ih,zc.df,zc.Le,zc.Qc,zc.Qb,zc.ze],Md.actualBounds=lg,Md.measuredBounds=hm,Md.naturalBounds=Yy,gf===0?Wf.assign(lg):Wf.ed(lg),at.free(Kd),at.free(vf),cn.free(Lg),Fo.free(Uh)}vh.graduatedBounds!==null&&vh.graduatedBounds.push(Wf),_s(Qv,Wf.x,Wf.y,Wf.width,Wf.height)}Rl(Bl,!1)}}},Pp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var ae=y.length,le=0;le<ae;le++){var ce=y[le];re=b[le],ce.visible&&ce!==E&&re.length!==0&&(re=z[ee],ee++,ce.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},Pp.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,ee=b.height;b=y instanceof Tc,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,ae=a.O.s,le=a.graduatedMarks,ce=ae.length,fe=0;fe<ce;fe++){var Se=ae[fe],we=le[fe],Ae=we.length;if(Se.visible&&Se!==z&&we.length!==0){if(Se instanceof Zo){if(!(2>a.graduatedTickUnit*Se.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Se.graduatedSkip===null)){var De=Se.measuredBounds,nt=Se.strokeWidth*Se.scale,Ze=Se.alignmentFocus;Ze.Mc()&&(Ze=Bu);for(var dt=0;dt<Ae;dt++){var mt=we[dt].$l,xt=we[dt].angle,Ot=Ze,en=Se.Ab;en.reset(),en.translate(mt.x+re.x,mt.y+re.y),en.rotate(xt+Se.angle,0,0),en.translate(-De.width*Ot.x+Ot.offsetX+nt/2,-De.height*Ot.y+Ot.offsetY+nt/2),en.scale(Se.scale,Se.scale),hh(Se,!1),Se.wh.set(Se.Ab),Se.Kk=Se.scale,qc(Se,!1),Se.gc(y,x),b&&(a.svg.appendChild(Se.svg),Se.svg=null),Se.Ab.reset()}}}else if(Se instanceof ks)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ks),De=a.temporaryTextBlock,CS(De,Se),nt=0;nt<Ae;nt++)Ze=we[nt],Ze.actualBounds&&Ze.measuredBounds&&Ze.naturalBounds&&(De.ec=Ze.text||"",De.Kb=Ze.Sz||0,De.Gc=Ze.lineCount||0,dt=Ze.lines,dt!==void 0&&(De.Cb=dt[0],De.Ih=dt[1],De.df=dt[2],De.Le=dt[3],De.Qc=dt[4],De.Qb=dt[5],De.ze=dt[6]),Ze.naturalBounds&&(De.dc=Ze.naturalBounds),Ze.actualBounds&&(dt=Ze.actualBounds,De.arrange(dt.x,dt.y,dt.width,dt.height)),dt=Ze.actualBounds,De.arrange(dt.x,dt.y,dt.width,dt.height),mt=Ze.measuredBounds,Ze=Ze.naturalBounds,xt=De.Ab,xt.reset(),xt.translate(dt.x+re.x,dt.y+re.y),xt.translate(-mt.x,-mt.y),De.no(xt,Ze.x,Ze.y,Ze.width,Ze.height),hh(De,!1),De.wh.set(De.Ab),De.Kk=De.scale,qc(De,!1),De.Ng=Se.part,De.Me=Se.panel,De.gc(y,x),De.Me=null,De.Ng=null,b&&(a.svg.appendChild(De.svg),De.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function ci(a,y){if(bt.call(this),this.na=null,a===void 0)this.na=ci.Position;else if(typeof a=="string"){var x=bh.I(a);x!==null&&(this.na=x)}else a instanceof Hl?this.na=a:a&&(this.na=ci.Position,y=a);this.na===null&&tn("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ci.Grid?1048576:0),this.O=new _n,this.yb=$l,this.Tm=ml,this.Uf=jo,this.$g=null,this.$e="",this.jg=new cn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=er,this.jn=Ia,this.kn=St,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Ft(ci,bt),ci.prototype.cloneProtected=function(a){bt.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},ci.prototype.Af=function(a){bt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},ci.prototype.copy=function(){var a=bt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,ee=z.count;if(z.Gb(ee,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof Gi&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Ms,"elements",a,null,b,null,ee)}}return a}return null},Ee=ci.prototype,Ee.toString=function(){return"Panel("+this.type.name+")#"+ds(this)},Ee.Pn=function(a){bt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Ee.hh=function(a,y){if(this.na===ci.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ci.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ci.Table)if(a.yc(),a instanceof Tc){var x=a.yd;a.yd=mm(a,"gojs-ts"),y0(this,a),a.nh.pop(),a.yd=x}else y0(this,a);(x=this.isClipping&&this.na===ci.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x&&re===E&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function y0(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&Fm(a,y,!0,x,!0),E!==null&&Fm(a,y,!1,E,!0),x!==null&&uS(a,y,!0,x),E!==null&&uS(a,y,!1,E),x!==null&&Fm(a,y,!0,x,!1),E!==null&&Fm(a,y,!1,E,!1)}function uS(a,y,x,E){for(var b=E.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,ae=0;ae<b;ae++){var le=E[ae];if(le!==void 0&&le.actual!==0)if(re)re=!1;else{if(x){if(le.position>ee.height)continue}else if(le.position>ee.width)continue;var ce=le.separatorStrokeWidth;isNaN(ce)&&(ce=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var fe=le.separatorStroke;if(fe===null&&(fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ce!==0&&fe!==null){Sl(a,y,fe,!1,!1,ee,z),fe=!1;var Se=le.separatorDashArray;Se===null&&(Se=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Se!==null&&(fe=!0,y.js(Se,0)),y.beginPath(),Se=le.position+ce,x?Se>ee.height&&(ce-=Se-ee.height):Se>ee.width&&(ce-=Se-ee.width),le=le.position+ce/2,y.lineWidth=ce,ce=a.yb,x?(le+=ce.top,Se=ee.width-ce.right,y.moveTo(ce.left,le),y.lineTo(Se,le)):(le+=ce.left,Se=ee.height-ce.bottom,y.moveTo(le,ce.top),y.lineTo(le,Se)),y.stroke(),y.Se(),fe&&y.fs()}}}}function Fm(a,y,x,E,b){for(var z=E.length,ee=a.actualBounds,re=a.naturalBounds,ae=cS(a,!0),le=cS(a,!1),ce=0;ce<z;ce++){var fe=E[ce];if(fe!==void 0&&fe.background!==null&&fe.coversSeparators!==b&&fe.actual!==0){var Se=x?ee.height:ee.width;if(!(fe.position>Se)){var we=fe.Wc(),Ae=fe.separatorStrokeWidth;isNaN(Ae)&&(Ae=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var De=fe.separatorStroke;De===null&&(De=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(De===null||fe.index===(x?ae:le))&&(Ae=0),we-=Ae,Ae=fe.position+Ae,we+=fe.actual,Ae+we>Se&&(we=Se-Ae),0>=we||(Se=a.yb,Sl(a,y,fe.background,!0,!1,re,ee),x?y.fillRect(Se.left,Ae+Se.top,ee.width-(Se.left+Se.right),we):y.fillRect(Ae+Se.left,Se.top,we,ee.height-(Se.top+Se.bottom)))}}}}function cS(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function S0(a){return a==="LineV"||a==="BarV"}Ee.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ee.kk=function(a,y,x){if(!bt.prototype.kk.call(this,a,y,x))return!1;if(this.type===ci.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,y0(this,a),a.yd=null;else if(this.na===ci.Grid||this.na===ci.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},Ee.nk=function(){return!0},Ee.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;b=ee===0?re.x:Math.min(re.x,b),z=ee===0?re.y:Math.min(re.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else bt.prototype.$o.call(this,a,y,x,E)},Ee.Sj=function(a,y,x,E,b){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),ae=ee.m22*re,le=-ee.m12*re,ce=-ee.m21*re,fe=ee.m11*re,Se=re*(ee.m21*ee.dy-ee.m22*ee.dx),we=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Rt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,E,b);if(this.background!==null)return z=a*ae+y*ce+Se,re=a*le+y*fe+we,a=x*ae+E*ce+Se,ae=x*le+E*fe+we,b.h(0,0),x=this.naturalBounds,z=Rt.Ff(0,0,x.width,x.height,z,re,a,ae,b),b.transform(ee),z;z||(ae=1,ce=le=0,fe=1,we=Se=0),re=a*ae+y*ce+Se,a=a*le+y*fe+we,ae=x*ae+E*ce+Se,x=x*le+E*fe+we,b.h(ae,x),E=(ae-re)*(ae-re)+(x-a)*(x-a),le=!1,fe=this.O.s,we=fe.length,ce=at.alloc(),Se=null,y=1/0;var Ae=null,De=this.isClipping&&this.na===ci.Spot;De&&(Ae=at.alloc(),Se=this.Pb(),(le=Se.Sj(re,a,ae,x,Ae))&&(y=(re-Ae.x)*(re-Ae.x)+(a-Ae.y)*(a-Ae.y)));for(var nt=0;nt<we;nt++){var Ze=fe[nt];Ze.visible&&Ze!==Se&&Ze.Sj(re,a,ae,x,ce)&&(le=!0,Ze=(re-ce.x)*(re-ce.x)+(a-ce.y)*(a-ce.y),Ze<E&&(E=Ze,b.set(ce)))}return De&&(y>E&&b.set(Ae),at.free(Ae)),at.free(ce),z&&b.transform(ee),le},Ee.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();bt.prototype.Gj.call(this)},Ee.v=function(a){if(!Gc(this)){bt.prototype.v.call(this,a),a=null,(this.na===ci.Auto||this.na===ci.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=yc(b,!1);(b instanceof oc||b instanceof ci||b instanceof ks||z!==Dn)&&b.v(!0)}}}},Ee.Uj=function(){if(!Gc(this)){Rl(this,!0),gd(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ee.Uk=function(){if(!(this.l&2048)){hh(this,!0),qc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ee.Wu=function(){qc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ee.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,E=ee.height),x=Math.max(x,ee.width),E=Math.max(E,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(E,y);var ae=this.yb;a=Math.max(a-ae.left-ae.right,0),y=Math.max(y-ae.top-ae.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,b,x,E),a=b.width+ae.left+ae.right,ae=b.height+ae.top+ae.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(ae=z.height),a=Math.min(re.width,a),ae=Math.min(re.height,ae),a=Math.max(ee.width,a),ae=Math.max(ee.height,ae),a=Math.max(x,a),ae=Math.max(E,ae),nl(b,a,ae),nl(this.naturalBounds,a,ae),this.Ge(0,0,a,ae)},Ee.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function Id(a){return a.part!==null?a.part.locationObject:null}Ee.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=yc(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===E&&(a=Dn),a){case Dn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Ln:this.v(!0),this.measure(x+re,E+ee,0,0);break;case Cr:this.v(!0),this.measure(x+re,z+ee,0,0);break;case $r:this.v(!0),this.measure(y+re,E+ee,0,0)}}this.na.arrange(this,b,this.jg)}},Ee.gh=function(a){var y=this.naturalBounds,x=Id(this);if(il(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=at.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(wi(b.set(a),z.transform),z.ca(b)))return at.free(b),!0}return at.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ee.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},Ee.qm=function(a,y){if(y(this,a),a instanceof ci){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Zf(a,y){hS(a,a,y)}function hS(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof ci&&hS(a,z,x)}}function Ax(a,y){dS(a,a,y)}function dS(a,y,x){if(x(y),y instanceof ci){y=y.O.s;for(var E=y.length,b=0;b<E;b++)dS(a,y[b],x)}}Ee.Nl=function(a){return fS(this,this,a)};function fS(a,y,x){if(x(y))return y;if(y instanceof ci){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=fS(a,y[b],x);if(z!==null)return z}}return null}Ee.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Cp(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof ci){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function gS(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof ci?x=Math.max(x,gS(b)):b instanceof Zo&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Ee.se=function(){return!(this.type===ci.TableRow||this.type===ci.TableColumn)};function qd(a){return a.type===ci.TableRow||a.type===ci.TableColumn}Ee.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),ic(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),ee=z?a:wi(at.allocAt(a.x,a.y),this.transform),re=this.diagram,ae=10,le=5;if(re!==null&&(ae=re.Ql("extraTouchArea"),le=ae/2),il(-(le*b),-(le*b),E.width+ae*b,E.height+ae*b,ee.x,ee.y)){if(!this.isAtomic){b=this.O.s;var ce=b.length;if(re=at.alloc(),le=(ae=this.isClipping&&this.na===ci.Spot)?this.Pb():null,ae&&(le.se()?wi(re.set(a),le.transform):re.set(a),!le.ca(re)))return at.free(re),z||at.free(ee),null;for(var fe=Id(this);ce--;){var Se=b[ce];if((Se.visible||Se===fe)&&(Se.se()?wi(re.set(a),Se.transform):re.set(a),!ae||Se!==le)){var we=null;if(Se instanceof ci?we=Se.ic(re,y,x):Se.pickable===!0&&Se.ca(re)&&(we=Se),we!==null&&(y!==null&&(we=y(we)),we!==null&&(x===null||x(we))))return at.free(re),z||at.free(ee),we}}at.free(re)}return this.background===null&&this.areaBackground===null?(z||at.free(ee),null):(a=il(0,0,E.width,E.height,ee.x,ee.y)?this:null,z||at.free(ee),a)}return z||at.free(ee),null},Ee.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),ee=z?a:wi(at.allocAt(a.x,a.y),this.transform);if(b=il(0,0,b.width,b.height,ee.x,ee.y),qd(this)||b){if(!this.isAtomic){for(var re=this.O.s,ae=re.length,le=at.alloc(),ce=Id(this);ae--;){var fe=re[ae];if(fe.visible||fe===ce){fe.se()?wi(le.set(a),fe.transform):le.set(a);var Se=fe;fe=fe instanceof ci?fe:null,(fe!==null?fe.ji(le,y,x,E):Se.ca(le))&&Se.pickable!==!1&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||E.add(Se))}}at.free(le)}return z||at.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||at.free(ee),!1},Ee.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=Fo.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return x0(this,y,x,b),z===void 0&&Fo.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=Id(this),ae=this.O.s,le=ae.length;le--;){var ce=ae[le];if(ce.visible||ce===re){var fe=ce.actualBounds,Se=this.naturalBounds;fe.x>Se.width||fe.y>Se.height||0>fe.x+fe.width||0>fe.y+fe.height||(fe=ce,ce=ce instanceof ci?ce:null,Se=Fo.alloc(),Se.set(ee),(ce!==null?ce.Cf(a,y,x,E,b,Se):Xl(fe,a,E,Se))&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||b.add(fe)),Fo.free(Se))}}return z===void 0&&Fo.free(ee),E}return z===void 0&&Fo.free(ee),!1};function x0(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ee=b[z];if(ee.visible){var re=ee.actualBounds,ae=a.naturalBounds;re.x>ae.width||re.y>ae.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof ci&&x0(ee,y,x,E),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||E.add(ee))}}}Ee.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var ee=this.naturalBounds,re=this.se(),ae=re?a:wi(at.allocAt(a.x,a.y),this.transform),le=re?y:wi(at.allocAt(y.x,y.y),this.transform),ce=ae.Bf(le),fe=0<ae.x&&ae.x<ee.width&&0<ae.y&&ae.y<ee.height||nr(ae.x,ae.y,0,0,0,ee.height)<=ce||nr(ae.x,ae.y,0,ee.height,ee.width,ee.height)<=ce||nr(ae.x,ae.y,ee.width,ee.height,ee.width,0)<=ce||nr(ae.x,ae.y,ee.width,0,0,0)<=ce;if(ee=ae.zd(0,0)<=ce&&ae.zd(0,ee.height)<=ce&&ae.zd(ee.width,0)<=ce&&ae.zd(ee.width,ee.height)<=ce,re||(at.free(ae),at.free(le)),fe){if(!this.isAtomic){ae=at.alloc(),le=at.alloc(),ce=Id(this);for(var Se=this.O.s,we=Se.length;we--;){var Ae=Se[we];if(Ae.visible||Ae===ce){var De=Ae.actualBounds,nt=this.naturalBounds;(!re||!(De.x>nt.width||De.y>nt.height||0>De.x+De.width||0>De.y+De.height))&&(Ae.se()?(De=Ae.transform,wi(ae.set(a),De),wi(le.set(y),De)):(ae.set(a),le.set(y)),De=Ae,Ae=Ae instanceof ci?Ae:null,(Ae!==null?Ae.og(ae,le,x,E,b,z):De.tx(ae,le,b))&&(x!==null&&(De=x(De)),De===null||E!==null&&!E(De)||z.add(De)))}}at.free(ae),at.free(le)}return b?fe:ee}return!1};function w0(a){var y=null;return a instanceof Zo&&(y=a.spot1,y===ml&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Rs),y}function P0(a){var y=null;return a instanceof Zo&&(y=a.spot2,y===ml&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=eu),y}Ee.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},Ee.M=function(a){return this.O.M(a)},Ee.Gb=function(a,y){y instanceof zr&&tn("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&tn("Cannot make a Panel contain itself: "+this.toString()),tn("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&tn("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==ci.Grid||y instanceof Zo||tn("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ci.Graduated||y instanceof Zo||y instanceof ks||tn("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new wr),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,ae=0;ae<re;ae++)if(ee[ae]===y){z=ae;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else tn("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Gc(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ci&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Dm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Gi&&(x.Te=!0),x.Te&&x instanceof Gi&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Zs,"elements",this,y,null,E,null),x.cb(Ms,"elements",this,null,y,null,a)))};function C0(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ee.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},Ee.mb=function(a){0<=a&&this.pc(a,!0)},Ee.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),Rl(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Gi&&(E instanceof ci?E.qm(E,function(ee,re){U0(z,re,y)}):U0(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Zs,"elements",this,E,null,a,null))},Ee.Fb=function(a){0>a&&Hr(a,">= 0",ci,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new jl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Ms,"rowdefs",this,null,x,null,a)}return y[a]},Ee.oA=function(a){if(0>a&&Hr(a,">= 0",ci,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Zs,"rowdefs",this,x,null,a,null),this.v()}}};function pS(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof jl?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ee.Eb=function(a){0>a&&Hr(a,">= 0",ci,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new jl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Ms,"coldefs",this,null,x,null,a)}return y[a]},Ee.jA=function(a){if(0>a&&Hr(a,">= 0",ci,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Zs,"coldefs",this,x,null,a,null),this.v()}}};function mS(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof jl?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ee.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Tm(y,a),this},Ee.Hy=function(a,y){return(a=this.Fb(a))&&Tm(a,new jl(y)),this},Ee.By=function(a,y){return(a=this.Eb(a))&&Tm(a,new jl(y)),this},Ee.nz=function(a){if(0>a||this.type!==ci.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Ee.fz=function(a){if(0>a||this.type!==ci.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Ee.Fz=function(a,y){if(y===void 0&&(y=new at(NaN,NaN)),this.type!==ci.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},Ee.Gz=function(a){if(this.type!==ci.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function vS(a){return a=a.allBindings,a!==null&&a._isFrozen}function fh(a){var y=a.allBindings;if(y===null)a.data!==null&&tn("Template cannot have .data be non-null: "+a),a.allBindings=y=new _n;else if(y._isFrozen)return;var x=new _n;C0(a,!1),a.qm(a,function(le,ce){ce.th();var fe=ce.localBindings;if(fe!==null)for(ug(ce,!1),fe=fe.iterator;fe.next();){var Se=fe.value;Se.mode===Gp&&ug(ce,!0);var we=Se.sourceName;we!==null&&(we==="/"&&C0(le,!0),we=N1(Se,le,ce),we!==null&&(x.add(we),we.srcBindings===null&&(we.srcBindings=new _n),we.srcBindings.add(Se))),y.add(Se)}if(ce instanceof ci&&ce.type===ci.Table){if(0<ce.rowCount){for(le=ce.rowDefs,fe=le.length,Se=0;Se<fe;Se++)if(we=le[Se],we!==void 0&&we.be!==null)for(var Ae=we.be.iterator;Ae.next();){var De=Ae.value;De.xd=we,De.to=2,De.wl=we.index,y.add(De)}}if(0<ce.columnCount){for(ce=ce.colDefs,le=ce.length,fe=0;fe<le;fe++)if(Se=ce[fe],Se!==void 0&&Se.be!==null)for(we=Se.be.iterator;we.next();)Ae=we.value,Ae.xd=Se,Ae.to=1,Ae.wl=Se.index,y.add(Ae)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){ug(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ee=z.value;b.localBindings===null&&(b.localBindings=new _n),b.localBindings.add(ee)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,ae=re.indexOf(".");0<ae&&z instanceof ci&&(ee=re.substring(0,ae),re=re.substr(ae+1),ae=z.fb(ee),ae!==null?(z=ae,b.targetProperty=re):Or('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof jl?(ee=ds(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof bt?(ee=ds(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):tn("Unknown type of binding target: "+z)}y.freeze(),a instanceof zr&&a.Zc()&&a.Va()}Ee.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ax(y,function(x){x instanceof ci&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&fh(y),y},Ee.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof ci))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Ee.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Mx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof ci&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var ee=0;b<x&&ee<E;){if(z=a[b],!(z instanceof ci)||z.data!==y[ee])return!0;b++,ee++}return!1}function Cp(a){if(a.type===ci.Spot||a.type===ci.Auto)return Math.min(a.O.length,1);if(a.type===ci.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Zo&&E.isPanelMain))break}return x}return a.type===ci.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ci&&qd(a))?1:0}Ee.mv=function(){for(var a=Cp(this);this.O.length>a;)this.pc(this.O.length-1,!1);yS(this,this.itemArray)};function yS(a,y){var x=Cp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;E<x;E++)Nm(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],ee=E<a.O.length?a.O.M(E):null;if(ee instanceof ci){if(ee.data!==z){var re=b0(a,ee.data),ae=b0(a,z),le=ae!==re;le||(re=A0(a,re),le=A0(a,ae)!==re),le?(a.pc(E,!1),Nm(a,z,b,!1)):ee.data=z}}else Nm(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,E0(a,x,0),Gc(a)||a.v(),a.graduatedIntervals=null,a.If()||Dm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Gi&&(y.Te=!0),y.Te&&y instanceof Gi&&(y.wc=null))}}function Nm(a,y,x,E){if(!(y==null||0>x)){var b=b0(a,y);if(b=A0(a,b),b!==null){if(fh(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&C0(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new wr),a.ge.add(y,b)),z=x+Cp(a),a.Gb(z,b),E&&(b.ub=y,E0(a,z,x),b.ub=null),b.data=y}}}function E0(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof ci){var b=y,z=x;E.type===ci.TableRow?E.row=b:E.type===ci.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function b0(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=Ll(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;tn("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function A0(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(SS||(SS=!0,Or('No item template Panel found for category "'+y+'" on '+a),Or(" Using default item template."),a=new ci,y=new ks,y.bind(new Dl("text","",va)),a.add(y),xS=a),E=xS)),E}function Dm(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof ci){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ci&&!z.isEnabled||Dm(a,z,x)}}}function td(a,y){y.name=a,bh.add(a,y)}un.Object.defineProperties(ci.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ci.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Hr(a,">= 0",ci,"padding"),a=new Mo(a)):(0>a.left&&Hr(a.left,">= 0",ci,"padding:value.left"),0>a.right&&Hr(a.right,">= 0",ci,"padding:value.right"),0>a.top&&Hr(a.top,">= 0",ci,"padding:value.top"),0>a.bottom&&Hr(a.bottom,">= 0",ci,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:$l},set:function(a){typeof a=="number"&&(a=new Mo(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new th),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof as)&&(a instanceof as&&a.freeze(),this.T===null&&(this.T=new th),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new th),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||tn("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new th),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof as)&&(a instanceof as&&a.freeze(),this.T===null&&(this.T=new th),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new th),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||tn("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new th),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new th),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||tn("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&os(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||tn("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&os(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Rd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Mu(this)&&(a=this.part,a!==null&&Gs(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new Rd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Mu(this)&&(a=this.part,a!==null&&Gs(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new Rd),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new Rd),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new Rd,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new Rd,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new Rd,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new Rd,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new th),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new th),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Om},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new th),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Om},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new th),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&tn("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new th),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&tn("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new th),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof zr&&!(this instanceof Ga);fh(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof yi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof zr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new cg),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Mx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&dy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&hy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||yS(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new wr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof zr||a.isPanelMain)&&tn("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););$o(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&($o(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Io&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Dm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),un.Object.defineProperties(ci,{Position:{get:function(){return bh.I("Position")}},Horizontal:{get:function(){return bh.I("Horizontal")}},Vertical:{get:function(){return bh.I("Vertical")}},Spot:{get:function(){return bh.I("Spot")}},Auto:{get:function(){return bh.I("Auto")}},Table:{get:function(){return bh.I("Table")}},Viewbox:{get:function(){return bh.I("Viewbox")}},TableRow:{get:function(){return bh.I("TableRow")}},TableColumn:{get:function(){return bh.I("TableColumn")}},Link:{get:function(){return bh.I("Link")}},Grid:{get:function(){return bh.I("Grid")}},Graduated:{get:function(){return bh.I("Graduated")}}}),ci.prototype.rebuildItemElements=ci.prototype.mv,ci.prototype.findItemPanelForData=ci.prototype.sx,ci.prototype.updateTargetBindings=ci.prototype.La,ci.prototype.copyTemplate=ci.prototype.Uy,ci.prototype.graduatedValueForPoint=ci.prototype.Gz,ci.prototype.graduatedPointForValue=ci.prototype.Fz,ci.prototype.findColumnForLocalX=ci.prototype.fz,ci.prototype.findRowForLocalY=ci.prototype.nz,ci.prototype.addColumnDefinition=ci.prototype.By,ci.prototype.addRowDefinition=ci.prototype.Hy,ci.prototype.addRowColumnDefinition=ci.prototype.Gy,ci.prototype.removeColumnDefinition=ci.prototype.jA,ci.prototype.getColumnDefinition=ci.prototype.Eb,ci.prototype.removeRowDefinition=ci.prototype.oA,ci.prototype.getRowDefinition=ci.prototype.Fb,ci.prototype.removeAt=ci.prototype.mb,ci.prototype.remove=ci.prototype.remove,ci.prototype.insertAt=ci.prototype.Gb,ci.prototype.elt=ci.prototype.M,ci.prototype.add=ci.prototype.add,ci.prototype.findObject=ci.prototype.fb,ci.prototype.findInVisualTree=ci.prototype.Nl,ci.prototype.walkVisualTreeFrom=ci.prototype.qm,ci.prototype.findMainElement=ci.prototype.Pb;var SS=!1,xS=null,bh=new wr;ci.className="Panel",ci.definePanelLayout=td,td("Position",new Sm),td("Vertical",new wm),td("Auto",new Cm),td("Link",new km);function Rd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Rd.prototype.copy=function(){var a=new Rd;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Rd.className="GradPanelSettings";function th(){this.Pc=[],this.Oc=[],this.j=this.ob=Om,this.hb=this.Hb=0,this.Qp=$l,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}th.prototype.copy=function(a){for(var y=new th,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),b[z]=ee}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),b[z]=ee);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},th.className="TablePanelSettings";function jl(a){Po(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ml,this.pa=this.oc=this.oa=0,this.be=null,this.oo=M0,this.hg=jo,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}jl.prototype.copy=function(){var a=new jl;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Xo(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Tm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Xo(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ee=jl.prototype,Ee.qb=function(a){a.classType===jl&&(this.sizing=a)},Ee.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+ds(this)},Ee.wi=function(a){this.Me=a},Ee.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Ee.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===ci.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var ee=E?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},Ee.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(As,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function Bm(a){if(a.sizing===M0){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ee.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Dl(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&vS(y)&&tn("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new _n),this.be.add(b),this},un.Object.defineProperties(jl.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Hr(a,">= 0",jl,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Hr(a,">= 0",jl,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Hr(a,">= 0",jl,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Hr(a,">= 0",jl,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Mo(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&dg(a,"RowColumnDefinition.separatorStroke"),a instanceof as&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||tn("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&dg(a,"RowColumnDefinition.background"),a instanceof as&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),jl.prototype.computeEffectiveSpacing=jl.prototype.Wc,jl.prototype.computeEffectiveSpacingTop=jl.prototype.Io;var M0=new ln(jl,"Default",0),Ep=new ln(jl,"None",1),Om=new ln(jl,"ProportionalExtra",2);jl.className="RowColumnDefinition",jl.Default=M0,jl.None=Ep,jl.ProportionalExtra=Om;function Zo(a,y){bt.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}Ft(Zo,bt),Zo.prototype.cloneProtected=function(a){bt.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Xo(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Xf(a){a.Na===null?a.Na=new F0:a.Na.nc&&(a.Na=a.Na.copy())}Ee=Zo.prototype,Ee.th=function(){bt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ee.qb=function(a){a===Dn||a===er||a===La||a===jo?this.geometryStretch=a:bt.prototype.qb.call(this,a)},Ee.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+ds(this)};function Wg(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],ae=x[1],le,ce,fe,Se,we,Ae,De=0,nt=hr(),Ze=2;Ze<b;Ze+=2)le=x[Ze],ce=x[Ze+1],fe=le-re,re=ce-ae,fe===0&&(fe=.001),Se=re/fe,we=Math.atan2(re,fe),Ae=Math.sqrt(fe*fe+re*re),nt.push([fe,we,Se,Ae]),De+=Ae,re=le,ae=ce;re=x[0],ae=x[1],fe=E.measuredBounds.width,E instanceof Zo&&(fe-=E.strokeWidth),1>fe&&(fe=1),b=x=fe,le=ee/2,ce=le!==0,Ze=0,Ae=nt[Ze],fe=Ae[0],we=Ae[1],Se=Ae[2],Ae=Ae[3];for(var dt=0;.1<=De;){if(dt===0&&(ce?(b=x,b-=le,De-=le,ce=!1):b=x,b===0&&(b=1)),b>De){Nr(nt);return}b>Ae?(dt=b-Ae,b=Ae):dt=0;var mt=Math.sqrt(b*b/(1+Se*Se));if(0>fe&&(mt=-mt),re+=mt,ae+=Se*mt,a.translate(re,ae),a.rotate(we),a.translate(-(ee/2),-(z/2)),dt===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-we),a.translate(-re,-ae),De-=b,Ae-=b,dt!==0){if(Ze++,Ze===nt.length){Nr(nt);return}Ae=nt[Ze],fe=Ae[0],we=Ae[1],Se=Ae[2],Ae=Ae[3],b=dt}}Nr(nt)}}Ee.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ee=this.naturalBounds;E!==null&&Sl(this,a,E,!0,!1,ee,z);var re=this.part,ae=this.ig;if(x===null||ae!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(ae=re.type===ci.Link&&re instanceof Ga&&re.category==="Selection"&&re.adornedObject instanceof Zo&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),ae===0&&(x=null),x!==null&&ae!==0&&(Sl(this,a,x,!1,!1,ee,z),a.lineWidth=ae,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ee=!1,ae=this.strokeDashArray,ae!==null&&(ee=!0,a.js(ae,this.strokeDashOffset)),b.type===fi.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===fi.u){var le=b.startX;ae=b.startY;var ce=b.endX,fe=b.endY;b=Math.min(le,ce);var Se=Math.min(ae,fe);le=Math.abs(ce-le),ae=Math.abs(fe-ae),a.beginPath(),a.rect(b,Se,le,ae),E!==null&&a.ng(E),x!==null&&(re&&z&&pd(a),a.jk(),re&&z&&Td(a)),a.Se()}else if(b.type===fi.F)le=b.startX,ae=b.startY,ce=b.endX,fe=b.endY,b=Math.abs(ce-le)/2,Se=Math.abs(fe-ae)/2,le=Math.min(le,ce)+b,ae=Math.min(ae,fe)+Se,a.beginPath(),a.moveTo(le,ae-Se),a.bezierCurveTo(le+Rt.wg*b,ae-Se,le+b,ae-Rt.wg*Se,le+b,ae),a.bezierCurveTo(le+b,ae+Rt.wg*Se,le+Rt.wg*b,ae+Se,le,ae+Se),a.bezierCurveTo(le-Rt.wg*b,ae+Se,le-b,ae+Rt.wg*Se,le-b,ae),a.bezierCurveTo(le-b,ae-Rt.wg*Se,le-Rt.wg*b,ae-Se,le,ae-Se),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&pd(a),a.jk(),re&&z&&Td(a)),a.Se();else if(b.type===fi.o)for(b=b.figures,ae=b.length,Se=0;Se<ae;Se++){le=b.s[Se],a.beginPath(),a.moveTo(le.startX,le.startY),ce=le.segments.s,fe=ce.length;for(var we=null,Ae=0;Ae<fe;Ae++){var De=ce[Ae];switch(De.type){case ll:a.moveTo(De.endX,De.endY);break;case fs:a.lineTo(De.endX,De.endY);break;case Ml:a.bezierCurveTo(De.point1X,De.point1Y,De.point2X,De.point2Y,De.endX,De.endY);break;case Fu:a.quadraticCurveTo(De.point1X,De.point1Y,De.endX,De.endY);break;case sl:if(De.radiusX===De.radiusY){var nt=Math.PI/180;a.arc(De.point1X,De.point1Y,De.radiusX,De.startAngle*nt,(De.startAngle+De.sweepAngle)*nt,0>De.sweepAngle,we!==null?we.endX:le.startX,we!==null?we.endY:le.startY)}else if(we=mu(De,le),nt=we.length,nt===0)a.lineTo(De.centerX,De.centerY);else for(var Ze=0;Ze<nt;Ze++){var dt=we[Ze];Ze===0&&a.lineTo(dt[0],dt[1]),a.bezierCurveTo(dt[2],dt[3],dt[4],dt[5],dt[6],dt[7])}break;case su:if(Ze=nt=0,we!==null&&we.type===sl){if(we=mu(we,le),dt=we.length,dt===0){a.lineTo(De.endX,De.endY);break}we=we[dt-1]||null,we!==null&&(nt=we[6],Ze=we[7])}else nt=we!==null?we.endX:le.startX,Ze=we!==null?we.endY:le.startY;if(we=au(De,le,nt,Ze),nt=we.length,nt===0){a.lineTo(De.endX,De.endY);break}for(Ze=0;Ze<nt;Ze++)dt=we[Ze],a.bezierCurveTo(dt[2],dt[3],dt[4],dt[5],dt[6],dt[7]);break;default:tn("Segment not of valid type: "+De.type)}De.isClosed&&a.closePath(),we=De}ce=le.isFilled,z?le.isShadowed?(ce===!0&&E!=="transparent"&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&(ce&&re&&pd(a),a.jk(),ce&&re&&Td(a))):(pd(a),ce&&E!=="transparent"&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&a.jk(),Td(a)):(ce&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&a.jk()),a.Se(Se)}if(ee&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=hr(),z.type===fi.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Wg(a,y,E,x);else if(z.type===fi.o)for(z=z.figures.iterator;z.next();){for(re=z.value,E.length=0,E.push(re.startX),E.push(re.startY),ee=re.startX,b=re.startY,ae=ee,Se=b,le=re.segments.s,ce=le.length,fe=0;fe<ce;fe++){switch(Ae=le[fe],Ae.type){case ll:Wg(a,y,E,x),E.length=0,E.push(Ae.endX),E.push(Ae.endY),ee=Ae.endX,b=Ae.endY,ae=ee,Se=b;break;case fs:E.push(Ae.endX),E.push(Ae.endY),ee=Ae.endX,b=Ae.endY;break;case Ml:Rt.Qe(ee,b,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,E),ee=Ae.endX,b=Ae.endY;break;case Fu:Rt.ep(ee,b,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,E),ee=Ae.endX,b=Ae.endY;break;case sl:if(De=mu(Ae,re),we=De.length,we===0){E.push(Ae.centerX),E.push(Ae.centerY),ee=Ae.centerX,b=Ae.centerY;break}for(nt=0;nt<we;nt++)Ze=De[nt],Rt.Qe(ee,b,Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7],.5,E),ee=Ze[6],b=Ze[7];break;case su:if(De=au(Ae,re,ee,b),we=De.length,we===0){E.push(Ae.endX),E.push(Ae.endY),ee=Ae.endX,b=Ae.endY;break}for(nt=0;nt<we;nt++)Ze=De[nt],Rt.Qe(ee,b,Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7],.5,E),ee=Ze[6],b=Ze[7];break;default:tn("Segment not of valid type: "+Ae.type)}Ae.isClosed&&(E.push(ae),E.push(Se),Wg(a,y,E,x))}Wg(a,y,E,x)}else if(z.type===fi.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),Wg(a,y,E,x);else if(z.type===fi.F){if(b=new wl,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new Ca(sl),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,b.add(ee),z=mu(ee,b),re=z.length,re===0)E.push(ee.centerX),E.push(ee.centerY);else for(ee=b.startX,b=b.startY,ae=0;ae<re;ae++)Se=z[ae],Rt.Qe(ee,b,Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.5,E),ee=Se[6],b=Se[7];Wg(a,y,E,x)}Nr(E),a.restore(),a.Vc(!1)}}}},Ee.kk=function(a,y,x){return!bt.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Ee.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:bt.prototype.nk.call(this,a)},Ee.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ee.ga=function(a,y){if(y===void 0&&(y=new at),a instanceof kr){a.Mc()&&tn("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ee.mi=function(a){a===void 0&&(a=new cn);var y=this.naturalBounds,x=this.oe;y=cn.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=at.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),_s(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),_s(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),_s(a,E.x,E.y,0,0),cn.free(y),at.free(E),a},Ee.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==fi.j||y||(b+=2);var z=cn.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return cn.free(z),!1;if(E=b+1e-4,x.type===fi.j)return this.stroke===null||(E=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(cn.free(z),Rt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===fi.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return cn.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),cn.free(z),a}if(x.type===fi.F){ee=x.startX,b=x.startY,re=x.endX;var ae=x.endY;if(x=Math.min(ee,re),y=Math.min(b,ae),ee=Math.abs(re-ee)/2,b=Math.abs(ae-b)/2,x=a.x-(x+ee),y=a.y-(y+b),this.fill===null){if(ee-=E,b-=E,0>=ee||0>=b||1>=x*x/(ee*ee)+y*y/(b*b))return cn.free(z),!1;ee+=E,b+=E}return this.stroke!==null&&(ee+=E,b+=E),cn.free(z),0>=ee||0>=b?!1:1>=x*x/(ee*ee)+y*y/(b*b)}if(x.type===fi.o)return cn.free(z),this.fill===null?Eu(x,a.x,a.y,b):ec(x,a,b,1<this.strokeWidth,y);tn("Unknown Geometry type: "+x.type)},Ee.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,ae=k0[re];if(ae===void 0){var le=Rt.Ze[re];typeof le=="string"&&(le=Rt.Ze[le]),typeof le=="function"?(ae=le(null,100,100),k0[re]=ae):tn("Unsupported Figure: "+re)}ee=ae.bounds}re=ee.width,ae=ee.height,le=ee.width;var ce=ee.height;switch(yc(this,!0)){case Dn:E=x=0;break;case Ln:le=Math.max(a-z,0),ce=Math.max(y-z,0);break;case Cr:le=Math.max(a-z,0),E=0;break;case $r:x=0,ce=Math.max(y-z,0)}isFinite(b.width)&&(le=b.width),isFinite(b.height)&&(ce=b.height);var fe=this.maxSize,Se=this.minSize;switch(x=Math.max(x-z,Se.width),E=Math.max(E-z,Se.height),le=Math.min(fe.width,le),ce=Math.min(fe.height,ce),le=isFinite(le)?Math.max(x,le):Math.max(re,x),ce=isFinite(ce)?Math.max(E,ce):Math.max(ae,E),x=L0(this),x){case Dn:break;case Ln:re=le,ae=ce;break;case er:x=Math.min(le/re,ce/ae),isFinite(x)||(x=1),re*=x,ae*=x;break;default:tn(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),ae===0&&(ae=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,E=re/ee.width,ee=ae/ee.height,isFinite(E)||(E=1),isFinite(ee)||(ee=1),this.ua=E===1&&ee===1?x:x.copy().scale(E,ee)):this.ua!==null&&Rt.$(this.ua.Sk,a-z)&&Rt.$(this.ua.Rk,y-z)||(this.ua=Zo.makeGeometry(this,re,ae)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&ae===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),le+z,ce+z),b.w()?(le=b.width,ce=b.height,le=Math.min(fe.width,le),ce=Math.min(fe.height,ce),le=Math.max(Se.width,le),ce=Math.max(Se.height,ce),this.dc.h(0,0,le,ce)):this.dc.assign(ee)};function L0(a){var y=a.geometryStretch;return a.Rd!==null?y===jo?Ln:y:y===jo?k0[a.figure].defaultStretch:y}Ee.eh=function(a,y,x,E){Xu(this,a,y,x,E)},Ee.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ee.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,ae=-z.m12*ee,le=-z.m21*ee,ce=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),Se=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*le+fe,ee=a*ae+y*ce+Se,re=x*re+E*le+fe,ae=x*ae+E*ce+Se,fe=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var we=le.bounds;if(ce=!1,le.type===fi.j)if(1.5>=this.strokeWidth)ce=Rt.Ve(le.startX,le.startY,le.endX,le.endY,z,ee,re,ae,b);else{if(le.startX===le.endX?(E=fe,ce=0):(y=(le.endY-le.startY)/(le.endX-le.startX),ce=fe/Math.sqrt(1+y*y),E=ce*y),y=hr(),a=new at,Rt.Ve(le.startX+E,le.startY+ce,le.endX+E,le.endY+ce,z,ee,re,ae,a)&&y.push(a),a=new at,Rt.Ve(le.startX-E,le.startY-ce,le.endX-E,le.endY-ce,z,ee,re,ae,a)&&y.push(a),a=new at,Rt.Ve(le.startX+E,le.startY+ce,le.startX-E,le.startY-ce,z,ee,re,ae,a)&&y.push(a),a=new at,Rt.Ve(le.endX+E,le.endY+ce,le.endX-E,le.endY-ce,z,ee,re,ae,a)&&y.push(a),re=y.length,re===0)return Nr(y),!1;for(ce=!0,ae=1/0,E=0;E<re;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<ae&&(ae=x,b.x=a.x,b.y=a.y);Nr(y)}else if(le.type===fi.u)ce=Rt.Ff(we.x-fe,we.y-fe,we.x+we.width+fe,we.y+we.height+fe,z,ee,re,ae,b);else if(le.type===fi.F){y=cn.allocAt(we.x,we.y,we.width,we.height).Bc(fe,fe);e:if(y.width===0)ce=Rt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,ae,b);else if(y.height===0)ce=Rt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,ae,b);else{if(a=y.width/2,le=y.height/2,E=y.x+a,ce=y.y+le,x=9999,z!==re&&(x=(ee-ae)/(z-re)),9999>Math.abs(x)){if(ae=ee-ce-x*(z-E),0>a*a*x*x+le*le-ae*ae){b.x=NaN,b.y=NaN,ce=!1;break e}fe=Math.sqrt(a*a*x*x+le*le-ae*ae),re=(-(a*a*x*ae)+a*le*fe)/(le*le+a*a*x*x)+E,a=(-(a*a*x*ae)-a*le*fe)/(le*le+a*a*x*x)+E,le=x*(re-E)+ae+ce,ae=x*(a-E)+ae+ce,Math.abs((z-re)*(z-re))+Math.abs((ee-le)*(ee-le))<Math.abs((z-a)*(z-a))+Math.abs((ee-ae)*(ee-ae))?(b.x=re,b.y=le):(b.x=a,b.y=ae)}else{if(re=le*le,ae=z-E,re-=re/(a*a)*ae*ae,0>re){b.x=NaN,b.y=NaN,ce=!1;break e}ae=Math.sqrt(re),re=ce+ae,ae=ce-ae,Math.abs(re-ee)<Math.abs(ae-ee)?(b.x=z,b.y=re):(b.x=z,b.y=ae)}ce=!0}cn.free(y)}else if(le.type===fi.o){Se=at.alloc();var Ae=re-z,De=ae-ee,nt=Ae*Ae+De*De,Ze=z,dt=ee;if(0<nt&&we.contains(Ze,dt)&&(Se.x=Ze,Se.y=dt,this.ca(Se)))for(Ae!==0&&.5>Math.abs(Ae)?(De*=.5/Ae,Ae=.5):De!==0&&.5>Math.abs(De)&&(Ae*=.5/De,De=.5),Ze-=Ae,dt-=De;we.contains(Ze,dt);)Ze-=Ae,dt-=De;for(b.x=re,b.y=ae,De=0;De<le.figures.count;De++){var mt=le.figures.s[De],xt=mt.isFilled?Ze:z,Ot=mt.isFilled?dt:ee,en=mt.segments;we=mt.startX,Ae=mt.startY;for(var zi=we,dr=Ae,tr=0;tr<en.count;tr++){var mi=en.s[tr],Gn=mi.type,Bo=mi.endX,xo=mi.endY,qa=!1;switch(Gn){case ll:zi=Bo,dr=xo;break;case fs:qa=Rm(we,Ae,Bo,xo,xt,Ot,re,ae,Se);break;case Ml:qa=Rt.Eo(we,Ae,mi.point1X,mi.point1Y,mi.point2X,mi.point2Y,Bo,xo,xt,Ot,re,ae,.6,Se);break;case Fu:qa=Rt.Eo(we,Ae,we+2/3*(mi.point1X-we),Ae+2/3*(mi.point1Y-Ae),Bo+2/3*(mi.point1X-Bo),xo+2/3*(mi.point1Y-xo),Bo,xo,xt,Ot,re,ae,.6,Se);break;case sl:case su:Gn=mi.type===sl?mu(mi,mt):au(mi,mt,we,Ae);var Ls=Gn.length;if(Ls===0){qa=Rm(we,Ae,mi.type===sl?mi.centerX:mi.endX,mi.type===sl?mi.centerY:mi.endY,xt,Ot,re,ae,Se);break}for(xo=null,Bo=0;Bo<Ls;Bo++){if(xo=Gn[Bo],Bo===0&&Rm(we,Ae,xo[0],xo[1],xt,Ot,re,ae,Se)){var Jl=Im(xt,Ot,Se,nt,b);Jl<nt&&(nt=Jl,ce=!0)}Rt.Eo(xo[0],xo[1],xo[2],xo[3],xo[4],xo[5],xo[6],xo[7],xt,Ot,re,ae,.6,Se)&&(Jl=Im(xt,Ot,Se,nt,b),Jl<nt&&(nt=Jl,ce=!0))}Bo=xo[6],xo=xo[7];break;default:tn("Unknown Segment type: "+Gn)}we=Bo,Ae=xo,qa&&(qa=Im(xt,Ot,Se,nt,b),qa<nt&&(nt=qa,ce=!0)),mi.isClosed&&(Bo=zi,xo=dr,Rm(we,Ae,Bo,xo,xt,Ot,re,ae,Se)&&(mi=Im(xt,Ot,Se,nt,b),mi<nt&&(nt=mi,ce=!0)))}}z=x-a,ee=E-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),b.x-=z*fe,b.y-=ee*fe,at.free(Se)}else tn("Unknown Geometry type: "+le.type);return ce?(this.transform.Ga(b),!0):!1};function Im(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function Rm(a,y,x,E,b,z,ee,re,ae){if(Rt.$(a,x)&&Rt.$(y,E)||Rt.$(b,ee)&&Rt.$(z,re))return!1;var le=!1,ce=(b-ee)*(y-E)-(z-re)*(a-x);return ce===0?!1:(ae.x=((b*re-z*ee)*(a-x)-(b-ee)*(a*E-y*x))/ce,ae.y=((b*re-z*ee)*(y-E)-(z-re)*(a*E-y*x))/ce,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(ae.y>a||Rt.$(ae.y,a))&&(ae.y<y||Rt.$(ae.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(ae.x>y||Rt.$(ae.x,y))&&(ae.x<a||Rt.$(ae.x,a))&&(le=!0)),le)}Ee.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=at.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),at.free(z),b},Ee.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Fo.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var ee=at.alloc();if(ee.h(E,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(b,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0)))return at.free(ee),!0;var re=at.alloc(),ae=at.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=b,re.y=z,re.transform(x),ee.x=E,ee.y=z,ee.transform(x),y=!1,Jf(this,ee,re,ae)?y=!0:(ee.x=b,ee.y=a,ee.transform(x),Jf(this,ee,re,ae)?y=!0:(re.x=E,re.y=a,re.transform(x),Jf(this,ee,re,ae)?y=!0:(ee.x=E,ee.y=z,ee.transform(x),Jf(this,ee,re,ae)&&(y=!0)))),at.free(ee),Fo.free(x),at.free(re),at.free(ae),y};function Jf(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}Ee.tx=function(a,y,x){function E(nt,Ze){for(var dt=nt.length,mt=0;mt<dt;mt+=2)if(Ze.zd(nt[mt],nt[mt+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ee=y.bounds,re=ee.x,ae=ee.y,le=ee.x+ee.width;if(ee=ee.y+ee.height,Xi(a.x,a.y,re,ae)<=b&&Xi(a.x,a.y,le,ae)<=b&&Xi(a.x,a.y,re,ee)<=b&&Xi(a.x,a.y,le,ee)<=b)return!0}if(re=y.startX,ae=y.startY,le=y.endX,ee=y.endY,y.type===fi.j){if(x=(re-le)*(a.x-le)+(ae-ee)*(a.y-ee),nr(a.x,a.y,re,ae,le,ee)<=(0<=(le-re)*(a.x-re)+(ee-ae)*(a.y-ae)&&0<=x?b:z))return!0}else{if(y.type===fi.u)return y=!1,x&&(y=nr(a.x,a.y,re,ae,re,ee)<=b||nr(a.x,a.y,re,ae,le,ae)<=b||nr(a.x,a.y,le,ae,le,ee)<=b||nr(a.x,a.y,re,ee,le,ee)<=b),y;if(y.type===fi.F){y=a.x-(re+le)/2,z=a.y-(ae+ee)/2;var ce=Math.abs(le-re)/2,fe=Math.abs(ee-ae)/2;if(ce===0||fe===0)return nr(a.x,a.y,re,ae,le,ee)<=b;if(x){if(a=Rt.$y(ce,fe,y,z),a*a<=b)return!0}else return!(Xi(y,z,-ce,0)>=b||Xi(y,z,0,-fe)>=b||Xi(y,z,0,fe)>=b||Xi(y,z,ce,0)>=b)}else if(y.type===fi.o){if(le=y.bounds,z=le.x,re=le.y,ae=le.x+le.width,le=le.y+le.height,a.x>ae&&a.x<z&&a.y>le&&a.y<re&&nr(a.x,a.y,z,re,z,le)>b&&nr(a.x,a.y,z,re,ae,re)>b&&nr(a.x,a.y,ae,le,z,le)>b&&nr(a.x,a.y,ae,le,ae,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Eu(y,a.x,a.y,z):ec(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,ce=z.startY,a.zd(ee,ce)>b)return!1;for(re=z.segments.s,ae=re.length,le=0;le<ae;le++)switch(fe=re[le],fe.type){case ll:case fs:if(ee=fe.endX,ce=fe.endY,a.zd(ee,ce)>b)return!1;break;case Ml:var Se=hr();if(Rt.Qe(ee,ce,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,Se),ee=E(Se,a),Nr(Se),ee||(ee=fe.endX,ce=fe.endY,a.zd(ee,ce)>b))return!1;break;case Fu:if(Se=hr(),Rt.ep(ee,ce,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,Se),ee=E(Se,a),Nr(Se),ee||(ee=fe.endX,ce=fe.endY,a.zd(ee,ce)>b))return!1;break;case sl:case su:Se=fe.type===sl?mu(fe,z):au(fe,z,ee,ce);var we=Se.length;if(we===0){if(ee=fe.type===sl?fe.centerX:fe.endX,ce=fe.type===sl?fe.centerY:fe.endY,a.zd(ee,ce)>b)return!1;break}fe=null;for(var Ae=hr(),De=0;De<we;De++)if(fe=Se[De],Ae.length=0,Rt.Qe(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.8,Ae),E(Ae,a))return Nr(Ae),!1;Nr(Ae),fe!==null&&(ee=fe[6],ce=fe[7]);break;default:tn("Unknown Segment type: "+fe.type)}}return!0}}}return!1},Ee.qc=function(){this.ua=null},Ee.kq=function(){return this.ig};function wS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Tp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=xl):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new kr(1-xl.x,xl.y)))}Zo.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=vd[a.toArrow];else a.fromArrow!=="None"?E=vd[a.fromArrow]:(E=Rt.Ze[a.figure],typeof E=="string"&&(E=Rt.Ze[E]),E===void 0&&tn("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=Rt.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function PS(a){var y=vd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=vd[x],y===void 0){var E=null,b;for(b in Rt.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=fi.parse(Rt.um[E],!1),vd[E]=a,x!==E&&(vd[x]=E),E}}return typeof y=="string"?y:y instanceof fi?a:null}un.Object.defineProperties(Zo.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),Mu(this)&&(a=this.part,a!==null&&Gs(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=fi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=at.allocAt(-y.x,-y.y),at.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&dg(a,"Shape.fill"),a instanceof as&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&dg(a,"Shape.stroke"),a instanceof as&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Hr(a,"value >= 0",Zo,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Hr(a,'"butt", "round", or "square"',Zo,"strokeCap"):(Xf(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Hr(a,'"miter", "bevel", or "round"',Zo,"strokeJoin"):(Xf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Xf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||tn("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Xf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Rt.Ze[a];typeof x=="function"?x=a:(x=Rt.Ze[a.toLowerCase()])||tn("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=PS(a);x===null?tn("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new xf),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),wS(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=PS(a);x===null?tn("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new xf),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),wS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ml},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Xf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ml},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Xf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Xf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:jo},set:function(a){var y=this.geometryStretch;y!==a&&(Xf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new yd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&os(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new yd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new yd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new yd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Zo.prototype.intersectsRect=Zo.prototype.Yc,Zo.prototype.containedInRect=Zo.prototype.fh,Zo.prototype.getNearestIntersectionPoint=Zo.prototype.rs,Zo.prototype.getDocumentBounds=Zo.prototype.mi,Zo.prototype.getDocumentPoint=Zo.prototype.ga;var vd=new Ao,k0=new Ao;Zo.className="Shape",Zo.getFigureGenerators=function(){var a=new wr,y;for(y in Rt.Ze)y!==y.toLowerCase()&&a.add(y,Rt.Ze[y]);return a.freeze(),a},Zo.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=Rt.Ze;E[a]=y,E[x]=a},Zo.getArrowheadGeometries=function(){var a=new wr;for(E in Rt.um)if(vd[E]===void 0){var y=fi.parse(Rt.um[E],!1);vd[E]=y,y=E.toLowerCase(),y!==E&&(vd[y]=E)}for(var x in vd)if(x!==x.toLowerCase()){var E=vd[x];E instanceof fi&&a.add(x,E)}return a.freeze(),a},Zo.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=fi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||tn("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=vd;E[a]=x,E[y]=a};function F0(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=jo,this.gg=this.fg=ml}F0.prototype.copy=function(){var a=new F0;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function ks(a,y){return bt.call(this),_m||(Sc=zs?new dh(null).context:null,_m=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Ft(ks,bt),ks.prototype.cloneProtected=function(a){bt.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function nd(a){a.da===null?a.da=new R0:a.da.nc&&(a.da=a.da.copy())}Ee=ks.prototype,Ee.th=function(){bt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function CS(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Ee.qb=function(a){a.classType===ks?this.wrap=a:bt.prototype.qb.call(this,a)},Ee.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ee.v=function(){bt.prototype.v.call(this)},Ee.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,ee=Ap(this),re=a.textAlign=this.textAlign,ae=y.tn;re==="start"?re=ae?"right":"left":re==="end"&&(re=ae?"left":"right"),ae=this.isUnderline;var le=this.isStrikethrough;Sl(this,a,this.xc,!0,!1,x,E),(ae||le)&&Sl(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ce=this.oe,fe=ce.dx-(ee*ce.m21+ce.dx);ce=ce.dy-(ee*ce.m22+ce.dy);var Se=y.scale;switch(8>(fe*fe+ce*ce)*Se*Se&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Tc&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,fe=this.spacingBelow,this.flip){case za:a.translate(b,0),a.scale(-1,1);break;case na:a.translate(0,z),a.scale(1,-1);break;case ps:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ce=this.Gc,Se=(y+ee+fe)*ce,z>Se&&(E=this.verticalAlignment,E=E.y*z-E.y*Se+E.offsetY),ce===1&&this.ze!==null)fe=this.Cb,fe>b&&(fe=b),this.Oj(this.ze,a,0,E+y,b,ee,fe,x,re,ae,le);else if(this.Qc!==null&&this.Qb!==null)for(Se=0;Se<ce;Se++){var we=this.Qc[Se];we>b&&(we=b),E+=y,this.Oj(this.Qb[Se],a,0,E,b,ee,we,x,re,ae,le),E+=ee+fe}switch(this.flip){case za:a.scale(-1,1),a.translate(-b,0);break;case na:a.scale(1,-1),a.translate(0,-z);break;case ps:a.scale(-1,-1),a.translate(-b,-z)}}},Ee.Oj=function(a,y,x,E,b,z,ee,re,ae,le,ce){var fe=0;if(re)ae==="left"?fe=0:ae==="right"?fe=b-ee:ae==="center"&&(fe=(b-ee)/2),y.fillRect(x+fe,E+.25*z,ee,1);else{if(ae==="left"?fe=0:ae==="right"?fe=b:ae==="center"&&(fe=b/2),b=jm!==null?jm(this,z):.75*z,y.fillText(a,x+fe,E+b),a=z/20|0,a===0&&(a=1),ae==="right"?fe-=ee:ae==="center"&&(fe-=ee/2),le){re=zm!==null?zm(this,z):.8*z,ae=x+fe,le=E+re,b=x+fe+ee,re=E+re;var Se=a;y.beginPath(),y.lineWidth=Se,y.moveTo(ae,le),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof Tc&&y.ad.classList.add("gojs-td")}ce&&(ce=E+z-z/2.2|0,a%2!==0&&(ce+=.5),E=x+fe,z=ce,x=x+fe+ee,ee=ce,fe=a,y.beginPath(),y.lineWidth=fe,y.moveTo(E,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof Tc&&y.ad.classList.add("gojs-td"))}},Ee.kk=function(a,y,x){if(!bt.prototype.kk.call(this,a,y,x))return!1;if(Sl(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)nS(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,nS(a,y,!0);return!0},Ee.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:bt.prototype.nk.call(this,a)},Ee.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ee.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Sc!==null&&FS!==z&&(FS=Sc.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,ae=!1;!ae;){var le=z.indexOf(`
`,re);le===-1&&(le=z.length,ae=!0),re=z.substr(re,le-re),this.formatting===Mp&&(re=re.trim()),ee=Math.max(ee,Ah(re)),re=le+1}z=ee}else ee=z.indexOf(`
`,0),0<=ee&&(z=z.substr(0,ee)),z=Ah(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),ee=bS(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,ae=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Wm&&(y=this.Ae,y=this.overflow===Wm?ES(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,Ap(this)+le),ae=Math.min(this.maxLines-1,Math.max(Math.floor(ae/le+.01)-1,0)),!(ae+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[ae],y=Math.max(1,a-y);Ah(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=Lp,y=Ah(le),this.Qb[ae]=le,this.Qb=this.Qb.slice(0,ae+1),this.Qc[ae]=y,this.Qc=this.Qc.slice(0,ae+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===AS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(E,ee),nl(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Ee.eh=function(a,y,x,E){Xu(this,a,y,x,E)};function bp(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function N0(a,y,x,E){var b=a.formatting===Mp;b&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,Ap(a)+re);var ae=a.overflow===Wm?ES(ee):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ee=y,a.wrap===D0){a.Le=1;var le=Ah(y);if(ae===0||le<=x)a.Cb=Math.max(a.Cb,le),bp(a,y,a.Cb),E!==null&&E.h(le,re);else{for(z=Hg(a,ee),ee=ee.substr(z.length),y=Hg(a,ee),le=Ah(z+y);0<y.length&&le<=x;)z+=y,ee=ee.substr(y.length),y=Hg(a,ee),le=z+y,b&&(le=le.trim()),le=Ah(le);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-ae);Ah(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Lp;var ce=Ah(z);a.Cb=ce,bp(a,z,ce),E!==null&&E.h(ce,re)}}else{for(ae=0,ee.length===0&&(ae=1,bp(a,ee,0));0<ee.length;){for(y=Hg(a,ee),ee=ee.substr(y.length);Ah(y)>x;){var fe=1;for(le=Ah(y.substr(0,fe)),ce=0;le<=x;)fe++,ce=le,le=Ah(y.substr(0,fe));if(fe===1){var Se=le;z=Math.max(z,le)}else Se=ce,z=Math.max(z,ce);if(fe--,1>fe&&(fe=1),bp(a,y.substr(0,fe),Se),ae++,y=y.substr(fe),a.Gc+ae>a.maxLines)break}for(ce=Hg(a,ee),le=Ah(y+ce);0<ce.length&&le<=x;)y+=ce,ee=ee.substr(ce.length),ce=Hg(a,ee),le=y+ce,b&&(le=le.trim()),le=Ah(le);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ce.length===0?(fe=le,z=Math.max(z,le)):(fe=ce=Ah(y),z=Math.max(z,ce)),bp(a,y,fe),ae++,a.Gc+ae>a.maxLines))break}a.Le=Math.min(a.maxLines,ae),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function Hg(a,y){if(a.wrap===MS)return y.substr(0,1);for(var x=y.length,E=0,b=Lx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===LS&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Ah(a){return Sc===null?8*a.length:Sc.measureText(a).width}function Ap(a){if(a.df!==null)return a.df;var y=a.Ae;if(Sc===null){var x=16;return a.df=x}return O0[y]!==void 0&&5e3>kS?x=O0[y]:(x=1.3*Sc.measureText("M").width,O0[y]=x,kS++),a.df=x}function ES(a){if(Sc===null)return 6;if(Hm[a]!==void 0&&5e3>I0)var y=Hm[a];else y=Sc.measureText(Lp).width,Hm[a]=y,I0++;return y}function bS(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Ap(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=x.indexOf(`
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==D0){a.Le=0;var ae=fn.alloc();N0(a,z,y,ae),b+=ae.height,fn.free(ae),a.Gc+=a.Le}else N0(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=b}un.Object.defineProperties(ks.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(nd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Dn},set:function(a){var y=this.flip;y!==a&&(nd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Nc},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),nd(this),this.da.Yr=a,nc(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=fn.alloc();N0(this,this.ec,999999,a);var y=a.width;fn.free(a),a=bS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),nl(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:T0},set:function(a){var y=this.wrap;y!==a&&(nd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:B0},set:function(a){var y=this.overflow;y!==a&&(nd(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&dg(a,"TextBlock.stroke"),a instanceof as&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Ap(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(nd(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(nd(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new yd),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new yd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new yd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new yd),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new yd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(nd(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(nd(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(nd(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(nd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Mp},set:function(a){var y=this.formatting;y!==a&&(nd(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Hr(a,"> 0",ks,"maxLines"),nd(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var jm=null,zm=null,D0=new ln(ks,"None",0),AS=new ln(ks,"WrapFit",1),T0=new ln(ks,"WrapDesiredSize",2),MS=new ln(ks,"WrapBreakAll",3),B0=new ln(ks,"OverflowClip",0),Wm=new ln(ks,"OverflowEllipsis",1),Mp=new ln(ks,"FormatTrim",0),LS=new ln(ks,"FormatNone",0),Lx=/[ \u200b\u00ad]/,O0=new Ao,kS=0,Hm=new Ao,I0=0,Lp="...",FS="",Sc=null,_m=!1;ks.className="TextBlock";function R0(){this.nc=!1,this.Hd=null,this.Xf=Dn,this.gq=Mp,this.Jq=1/0,this.$q=B0,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Nc,this.$r=T0}R0.prototype.copy=function(){var a=new R0;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},ks.getEllipsis=function(){return Lp},ks.setEllipsis=function(a){Lp=a,Hm=new Ao,I0=0},ks.getBaseline=function(){return jm},ks.setBaseline=function(a){jm=a},ks.getUnderline=function(){return zm},ks.setUnderline=function(a){zm=a},ks.isValidFont=function(a){if(_m||(Sc=zs?new dh(null).context:null,_m=!0),Sc===null)return!0;var y=Sc.font;if(a===y||a==="10px sans-serif")return!0;Sc.font="10px sans-serif",Sc.font=a;var x=Sc.font;if(x!=="10px sans-serif")return Sc.font=y,!0;Sc.font="19px serif";var E=Sc.font;return Sc.font=a,x=Sc.font,Sc.font=y,x!==E},ks.FormatNone=LS,ks.FormatTrim=Mp,ks.None=D0,ks.OverflowClip=B0,ks.OverflowEllipsis=Wm,ks.WrapBreakAll=MS,ks.WrapDesiredSize=T0,ks.WrapFit=AS;function yd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}yd.prototype.copy=function(){var a=new yd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},yd.className="GradElementSettings";function xc(a,y){bt.call(this),this.Eg=null,this.qo="",this.Xg=Is,this.Nk=Ln,this.Zg=this.Hd=null,this.Mk=Sa,this.Xf=Dn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var _g;Ft(xc,bt),xc.prototype.cloneProtected=function(a){bt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},xc.prototype.qb=function(a){a===Dn||a===er||a===La?this.imageStretch=a:bt.prototype.qb.call(this,a)},xc.prototype.toString=function(){return"Picture("+this.source+")#"+ds(this)};function Vg(a){a===void 0&&(a=""),a!==""?_g[a]&&(delete _g[a],Vm--):(_g=new Ao,Vm=0)}function NS(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null)for(var re=ee.length,ae=0;ae<re;ae++)z=ee[ae],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Rl(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null){b=ee.length,z=hr();for(var re=0;re<b;re++)z.push(ee[re]);if(y.hn)for(re=0;re<b;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);Nr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}xc.prototype.hA=function(){if(this.source!==""){Vg(this.source);var a=this.source;this.source="",this.source=a}},xc.prototype.redraw=function(){this.N(),this.Uc=!0},xc.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Yf)){var b=a instanceof Tc;E=this.naturalBounds;var z=0,ee=0,re=this.qn,ae=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,ae===void 0&&x.videoWidth&&(ae=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),ae=ae||E.width,re=re||E.height,ae!==0&&re!==0){var le=ae,ce=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,ae=this.Xg.width,re=this.Xg.height);var fe=ae,Se=re,we=this.Nk,Ae=this.Mk;switch(we){case Dn:if(this.sourceRect.w())break;fe>=E.width&&(z=z+Ae.offsetX+(fe*Ae.x-E.width*Ae.x)),Se>=E.height&&(ee=ee+Ae.offsetY+(Se*Ae.y-E.height*Ae.y)),ae=Math.min(E.width,fe),re=Math.min(E.height,Se);break;case Ln:fe=E.width,Se=E.height;break;case er:case La:we===er?(we=Math.min(E.height/Se,E.width/fe),fe*=we,Se*=we):we===La&&(we=Math.max(E.height/Se,E.width/fe),fe*=we,Se*=we,fe>=E.width&&(z=(z+Ae.offsetX+(fe*Ae.x-E.width*Ae.x)/fe)*ae),Se>=E.height&&(ee=(ee+Ae.offsetY+(Se*Ae.y-E.height*Ae.y)/Se)*re),ae*=1/(fe/E.width),re*=1/(Se/E.height),fe=E.width,Se=E.height)}we=this.Df()*y.scale;var De=fe*we*Se*we,nt=ae*re/De,Ze=x.__goCache;we=null;var dt=kx;if(!b){if(x.sq&&Ze!==void 0&&4<De&&nt>dt*dt)for(Ze.gi===null&&(TS(Ze,4,le,ce,x),TS(Ze,16,le,ce,x)),b=Ze.gi,le=b.length,ce=0;ce<le&&b[ce].ratio*b[ce].ratio<nt;ce++)we=b[ce];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new dh(null).context;try{b.drawImage(this.Eg,0,0)}catch(mt){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(mt){this.vl=!0}}if(this.vl)return}}switch(b=fe<E.width?Ae.offsetX+(E.width*Ae.x-fe*Ae.x):0,Ae=Se<E.height?Ae.offsetY+(E.height*Ae.y-Se*Ae.y):0,this.flip){case za:a.translate(Math.min(E.width,fe),0),a.scale(-1,1);break;case na:a.translate(0,Math.min(E.height,Se)),a.scale(1,-1);break;case ps:a.translate(Math.min(E.width,fe),Math.min(E.height,Se)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ze!==void 0&&we!==null&&we.ratio!==1){a.save(),y=we.ratio;try{a.drawImage(we.source,z/y,ee/y,Math.min(we.source.width,ae/y),Math.min(we.source.height,re/y),b,Ae,Math.min(E.width,fe),Math.min(E.height,Se)),a instanceof Tc&&(this.bt=[z/y,ee/y,Math.min(we.source.width,ae/y),Math.min(we.source.height,re/y),b,Ae,Math.min(E.width,fe),Math.min(E.height,Se)])}catch(mt){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,ae,re,b,Ae,Math.min(E.width,fe),Math.min(E.height,Se)),a instanceof Tc&&(this.bt=[z,ee,ae,re,b,Ae,Math.min(E.width,fe),Math.min(E.height,Se)])}catch(mt){this.en=!1}switch(this.flip){case za:a.scale(-1,1),a.translate(-Math.min(E.width,fe),0);break;case na:a.scale(1,-1),a.translate(0,-Math.min(E.height,Se));break;case ps:a.scale(-1,-1),a.translate(-Math.min(E.width,fe),-Math.min(E.height,Se))}}}}},xc.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=yc(this,!0),ee=this.Eg,re=this.qn,ae=0,le=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(ae=re?+ee.width:ee.naturalWidth,le=re?+ee.height:ee.naturalHeight),isFinite(b.width)||z===Ln||z===Cr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=ae)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ae),isFinite(b.height)||z===Ln||z===$r?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=le)),E=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:le),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),nl(this.dc,a,y),this.Ge(0,0,a,y)},xc.prototype.eh=function(a,y,x,E){Xu(this,a,y,x,E)},un.Object.defineProperties(xc.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||tn("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Nu(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new An),E!==null&&x&&ul(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Rl(this,!1),this.v())):x&&NS(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=_g;if(zs){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Vm&&(Vg(),x=_g),E=si("img"),E.hn=!0,NS(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,Vm++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new DS),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),xc.prototype.redraw=xc.prototype.redraw,xc.prototype.reloadSource=xc.prototype.hA;var Vm=0,kx=4;xc.className="Picture",_g=new Ao,xc.clearCache=Vg;function DS(){this.gi=null}function TS(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new dh(null),ee=z.context,re=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new BS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(b,0,0),a.gi.push(y))}DS.className="PictureCacheArray";function BS(a,y){this.source=a,this.ratio=y}BS.className="PictureCacheInstance";function Kg(){this.os=new fi,this.mc=null}Kg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new fi,this.mc=null};function Gg(a,y,x,E,b,z){a.mc=new wl,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function Fx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Kg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new Ca(ll);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Kg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new Ca(fs);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function $d(a,y,x,E,b,z,ee){var re;re===void 0&&(re=!1);var ae=new Ca(Ml);ae.point1X=y,ae.point1Y=x,ae.point2X=E,ae.point2Y=b,ae.endX=z,ae.endY=ee,re&&ae.close(),a.mc.segments.add(ae)}function Km(a,y,x,E,b){var z;z===void 0&&(z=!1);var ee=new Ca(Fu);ee.point1X=y,ee.point1Y=x,ee.endX=E,ee.endY=b,z&&ee.close(),a.mc.segments.add(ee)}Kg.prototype.arcTo=function(a,y,x,E,b,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new Ca(sl);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=E,re.radiusX=b,re.radiusY=z!==0?z:b,ee&&re.close(),this.mc.segments.add(re)};function Nx(a,y,x,E,b,z,ee,re){var ae;ae===void 0&&(ae=!1),y=new Ca(su,ee,re,y,x,E,b,z),ae&&y.close(),a.mc.segments.add(y)}function OS(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new Kg,y.reset(a),y)}var Gm=null;Kg.className="StreamGeometryContext";function Uu(a,y){var x=a.toLowerCase(),E=Rt.Ze;E[a]=y,E[x]=a}Uu("Rectangle",function(a,y,x){a="r"+y+","+x;var E=Rt.Mf[a];return E!==void 0||(E=new fi(fi.u),E.endX=y,E.endY=x,Rt.Nf<Rt.vm&&(Rt.Mf[a]=E,Rt.Nf++)),E}),Uu("Square",function(a,y,x){a="s"+y+","+x;var E=Rt.Mf[a];return E!==void 0||(E=new fi(fi.u),E.endX=y,E.endY=x,E.defaultStretch=er,Rt.Nf<Rt.vm&&(Rt.Mf[a]=E,Rt.Nf++)),E}),Uu("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=Rt.Mf[E];if(b!==void 0)return b;var z=a*Rt.wg;return b=new fi().add(new wl(a,0,!0).add(new Ca(fs,y-a,0)).add(new Ca(Ml,y,a,y-z,0,y,z)).add(new Ca(fs,y,x-a)).add(new Ca(Ml,y-a,x,y,x-z,y-z,x)).add(new Ca(fs,a,x)).add(new Ca(Ml,0,x-a,z,x,0,x-z)).add(new Ca(fs,0,a)).add(new Ca(Ml,a,0,0,z,z,0).close())),1<z&&(b.spot1=new kr(0,0,z,z),b.spot2=new kr(1,1,-z,-z)),Rt.Nf<Rt.vm&&(Rt.Mf[E]=b,Rt.Nf++),b}),Uu("Border","RoundedRectangle"),Uu("Ellipse",function(a,y,x){a="e"+y+","+x;var E=Rt.Mf[a];return E!==void 0||(E=new fi(fi.F),E.endX=y,E.endY=x,E.spot1=nu,E.spot2=ol,Rt.Nf<Rt.vm&&(Rt.Mf[a]=E,Rt.Nf++)),E}),Uu("Circle",function(a,y,x){a="c"+y+","+x;var E=Rt.Mf[a];return E!==void 0||(E=new fi(fi.F),E.endX=y,E.endY=x,E.spot1=nu,E.spot2=ol,E.defaultStretch=er,Rt.Nf<Rt.vm&&(Rt.Mf[a]=E,Rt.Nf++)),E}),Uu("TriangleRight",function(a,y,x){return new fi().add(new wl(0,0).add(new Ca(fs,y,.5*x)).add(new Ca(fs,0,x).close())).pm(0,.25,.5,.75)}),Uu("TriangleDown",function(a,y,x){return new fi().add(new wl(0,0).add(new Ca(fs,y,0)).add(new Ca(fs,.5*y,x).close())).pm(.25,0,.75,.5)}),Uu("TriangleLeft",function(a,y,x){return new fi().add(new wl(y,x).add(new Ca(fs,0,.5*x)).add(new Ca(fs,y,0).close())).pm(.5,.25,1,.75)}),Uu("TriangleUp",function(a,y,x){return new fi().add(new wl(y,x).add(new Ca(fs,0,x)).add(new Ca(fs,.5*y,0).close())).pm(.25,.5,.75,1)}),Uu("Triangle","TriangleUp"),Uu("Diamond",function(a,y,x){return new fi().add(new wl(.5*y,0).add(new Ca(fs,0,.5*x)).add(new Ca(fs,.5*y,x)).add(new Ca(fs,y,.5*x).close())).pm(.25,.25,.75,.75)}),Uu("LineH",function(a,y,x){return a=new fi(fi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Uu("LineV",function(a,y,x){return a=new fi(fi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Uu("None","Rectangle"),Uu("BarH","Rectangle"),Uu("BarV","Rectangle"),Uu("MinusLine","LineH"),Uu("PlusLine",function(a,y,x){return new fi().add(new wl(0,x/2,!1).add(new Ca(fs,y,x/2)).add(new Ca(ll,y/2,0)).add(new Ca(fs,y/2,x)))}),Uu("XLine",function(a,y,x){return new fi().add(new wl(0,x,!1).add(new Ca(fs,y,0)).add(new Ca(ll,0,0)).add(new Ca(fs,y,x)))}),Uu("LineRight",function(a,y,x){return new fi().add(new wl(.25*y,0,!1).add(new Ca(fs,.75*y,.5*x)).add(new Ca(fs,.25*y,x)))}),Uu("LineDown",function(a,y,x){return new fi().add(new wl(0,.25*x,!1).add(new Ca(fs,.5*y,.75*x)).add(new Ca(fs,y,.25*x)))}),Uu("LineLeft",function(a,y,x){return new fi().add(new wl(.75*y,0,!1).add(new Ca(fs,.25*y,.5*x)).add(new Ca(fs,.75*y,x)))}),Uu("LineUp",function(a,y,x){return new fi().add(new wl(0,.75*x,!1).add(new Ca(fs,.5*y,.25*x)).add(new Ca(fs,y,.75*x)))}),Rt.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function j0(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Us,this.ir=null,this.jr="",this.lr=ml,this.Gq="",this.Hq=Rs,this.Pq=zt,this.Kq=gn,this.Up=null,this.Cq=127,this.zr=Kn,this.yr="gray",this.Vg=4}j0.prototype.copy=function(){var a=new j0;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function zr(a,y){a===void 0||a instanceof Hl||typeof a=="string"?ci.call(this,a):(ci.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new at(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new cn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Ft(zr,ci),zr.prototype.cloneProtected=function(a){ci.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Ee=zr.prototype,Ee.Af=function(a){ci.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ee.toString=function(){var a=io(this.constructor)+"#"+ds(this);return this.data!==null&&(a+="("+va(this.data)+")"),a};function wc(a){a.P===null?a.P=new j0:a.P.nc&&(a.P=a.P.copy())}Ee.th=function(){ci.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ee.gk=function(a,y,x,E,b,z,ee){var re=this.diagram;re!==null&&(a===Ms&&y==="elements"?b instanceof ci?Zf(b,function(ae){hy(re.partManager,ae),bl(re,ae)}):ul(re,b):a===Zs&&y==="elements"&&(b instanceof ci?Zf(b,function(ae){dy(re.partManager,ae,re)}):Nu(re,b)),re.cb(a,y,x,E,b,z,ee))},Ee.La=function(a){if(ci.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof ci&&Zf(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},zr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},zr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},zr.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new wr),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},zr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},zr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=hr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Nr(y)}},zr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Io?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ga))break e;fh(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ci.Link),x.adornedObject=y)}if(x!==null){x.type===ci.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Dx(this,a),y=this.adornments;y.next();)y.value.La()}},zr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function z0(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Dx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Um(a){if(wf(a)===!1){H0(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function IS(a){if(a.G|=2097152,wf(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||zS(a,y,x),x=a.Ib;var E=cn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),cn.free(E),H0(a,!1)}}zr.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new Fo);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},zr.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Sa;this.locationSpot.sb()&&(z=this.locationSpot);var ee=at.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,E,b,z);a.rotate(this.Kb,ee.x,ee.y),at.free(ee)}},zr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},zr.prototype.moveTo=function(a,y,x){a=at.allocAt(a,y),this.move(a,x),at.free(a)},zr.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},zr.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},zr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new wr),y.I(a)!==null)return y.I(a);var x=ci.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function ef(a,y,x,E){E===void 0&&(E=new at),x=x.Mc()?Sa:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}zr.prototype.mi=function(a){return a===void 0&&(a=new cn),a.assign(this.actualBounds)},zr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function RS(a){var y=at.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Zo?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Qf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=gS(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,E-=ee/2,b-=ee/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}zr.prototype.arrange=function(){if(ic(this)===!1)IS(this);else{gd(this,!1);var a=this.Ib,y=cn.alloc();y.assign(a);var x=Pf(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;zS(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Rt.B(y.width,a.width)&&Rt.B(y.height,a.height)||0<=this.vw&&this.C(16),cn.free(y),H0(this,!1)}},Ee=zr.prototype,Ee.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=cn.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),cn.free(b)}!(this.G&65536)&&a.D(y)||_S(this,E,x),x.N(),!a.w()&&!y.w()||Ys(a,y)||(this instanceof Gi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ee.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&jS(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new at(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),wf(this)===!1&&ic(this)===!1&&(Um(this),IS(this)),!0};function jS(a,y,x,E,b){y===null||a instanceof Ga||(y=y.animationManager,y.zb&&yo(y,a,new at(E,b),x))}Ee.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;wf(this)||ic(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}Um(this)},Ee.Av=function(){this.G&=-2097153,Um(this)};function zS(a,y,x){var E=RS(a),b=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?WS(a,y,x,b,E):HS(a,y,x,b,E):z?WS(a,y,x,b,E):ee&&HS(a,y,x,b,E),a.G|=2097152,at.free(E),a.Uk()}function WS(a,y,x,E,b){var z=y.x,ee=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Ga||yo(x,a,new at(z,ee),y),E||y.x===z&&y.y===ee||a.g("position",new at(z,ee),y.copy()))}function HS(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function _S(a,y,x){_0(a,!1),a instanceof Gi&&wh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?Pf(a)?(fc(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ee.si=function(){return!0},Ee.Zc=function(){return!0},Ee.ph=function(){return!1},Ee.Dd=function(){return!0};function W0(a,y,x,E){y.constructor===a.constructor||GS||(GS=!0,Or('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Or(" Old class: "+io(a.constructor)+", new class: "+io(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,ae=!0,le=!1;a instanceof Gi&&(re=a.isTreeLeaf,ae=a.isTreeExpanded,le=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=ee?a.G|524288:a.G&-524289,a instanceof Gi&&(a.U=re?a.U|4:a.U&-5,a.U=ae?a.U|1:a.U&-2,a.U=le?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}zr.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},zr.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},zr.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},zr.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},zr.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},zr.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},zr.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},zr.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},zr.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function wf(a){return(a.G&32768)!==0}function H0(a,y){a.G=y?a.G|32768:a.G&-32769}function _0(a,y){a.G=y?a.G|65536:a.G&-65537}function Pf(a){return(a.G&131072)!==0}Ee=zr.prototype,Ee.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Ym(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ee.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ee.N=function(){var a=this.diagram;a!==null&&!ic(this)&&!wf(this)&&this.isVisible()&&this.Ib.w()&&a.N(Qf(this,this.Ib))},Ee.v=function(){ci.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Gi&&this.labeledLink!==null&&nc(this.labeledLink),a.$b(!0))},Ee.Vo=function(a){a||(a=this.Ah,a!==null&&Z0(a,this))},Ee.Wo=function(a){a||(a=this.Ah,a!==null&&X0(a,this))},Ee.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ee.oz=function(){return V0(this,this)};function V0(a,y){var x=y.containingGroup;return x!==null?1+V0(a,x):y instanceof Gi&&(y=y.labeledLink,y!==null)?V0(a,y):0}Ee.sz=function(){return VS(this,this)};function VS(a,y){var x=y.containingGroup;return x!==null||y instanceof Gi&&(x=y.labeledLink,x!==null)?VS(a,x):y}Ee.Td=function(a){return a instanceof Io?K0(this,this,a):!1};function K0(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!K0(a,E,x)?y instanceof Gi&&(y=y.labeledLink,y!==null)?K0(a,y,x):!1:!0}Ee.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Io&&Ym(y,!0),y instanceof Gi){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Gi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Io&&Ym(y,!1),y instanceof Gi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},zr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Gi&&this.isLinkLabel)},zr.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof Gi&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function KS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Cf(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ga)){if(a.add(y),y instanceof Gi){if(x&&y instanceof Io)for(var ee=y.memberParts;ee.next();)Cf(a,ee.value,x,E,b,z);if(b!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var ae=re.fromNode,le=re.toNode;ae=ae===null||a.contains(ae),le=le===null||a.contains(le),(b?ae&&le:ae||le)&&Cf(a,re,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)Cf(a,y.value,x,E-1,b,z)}else if(y instanceof yi)for(y=y.labelNodes;y.next();)Cf(a,y.value,x,E,b,z)}}un.Object.defineProperties(zr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?$a:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&x.cb(Zs,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(Ms,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(wc(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&$i(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Ga?this.type!==ci.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:zt},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),wc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:gn},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),wc(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(wc(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Rs},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),wc(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,ic(this)===!1&&(Um(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),jS(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof Ga)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof Ga?this instanceof Ga&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(fh(x),x=x.copy(),x!==null&&W0(this,x,y,a))):(z!==null&&z.jm(E,a),x=m1(x.partManager,E,a),x!==null&&(fh(x),x=x.copy(),x===null||x instanceof yi||(E=this.location.copy(),W0(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){W0(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(wc(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(wc(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(wc(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof yi?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(wc(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(wc(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(wc(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Us},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),wc(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(wc(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(wc(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:ml},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),wc(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&tn("Cannot make a Group a member of itself: "+this.toString()),tn("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?X0(y,this):this instanceof Io&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Z0(a,this):this instanceof Io&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Io){for(x=new An,Cf(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Gi)for(E=E.linksConnected;E.next();)Ug(E.value)}if(this instanceof Gi){for(x=this.linksConnected;x.next();)Ug(x.value);x=this.labeledLink,x!==null&&Ug(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&$i(y,-1,a))}}else tn("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(wc(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Gi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(wc(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(wc(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Kn},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),wc(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(wc(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(wc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),zr.prototype.invalidateLayout=zr.prototype.C,zr.prototype.findCommonContainingGroup=zr.prototype.px,zr.prototype.isMemberOf=zr.prototype.Td,zr.prototype.findTopLevelPart=zr.prototype.sz,zr.prototype.findSubGraphLevel=zr.prototype.oz,zr.prototype.ensureBounds=zr.prototype.Va,zr.prototype.getDocumentBounds=zr.prototype.mi,zr.prototype.findObject=zr.prototype.fb,zr.prototype.moveTo=zr.prototype.moveTo,zr.prototype.invalidateAdornments=zr.prototype.Wb,zr.prototype.clearAdornments=zr.prototype.Ej,zr.prototype.removeAdornment=zr.prototype.Jf,zr.prototype.addAdornment=zr.prototype.bh,zr.prototype.findAdornment=zr.prototype.Pj,zr.prototype.updateTargetBindings=zr.prototype.La;var GS=!1;zr.className="Part",zr.LayoutNone=0,zr.LayoutAdded=1,zr.LayoutRemoved=2,zr.LayoutShown=4,zr.LayoutHidden=8,zr.LayoutNodeSized=16,zr.LayoutGroupLayout=32,zr.LayoutNodeReplaced=64,zr.LayoutStandard=127,zr.LayoutAll=16777215;function Ga(a,y){a===void 0||a instanceof Hl||typeof a=="string"?zr.call(this,a):(zr.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Ft(Ga,zr),Ga.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ga.prototype.updateRelationshipsFromData=function(){},Ga.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof yi&&y instanceof Zo){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof Zo&&(b.ua=a)}}},Ga.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!ic(a))},Ga.prototype.Zc=function(){return!1},Ga.prototype.gk=function(a,y,x,E,b,z,ee){if(a===Ms&&y==="elements"){if(b instanceof oc)this.$a===null&&(this.$a=b);else if(b instanceof ci){var re=b.Nl(function(ae){return ae instanceof oc});re instanceof oc&&this.$a===null&&(this.$a=re)}}else a===Zs&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ci&&this.$a.rg(E)&&(this.$a=null));zr.prototype.gk.call(this,a,y,x,E,b,z,ee)},Ga.prototype.updateAdornments=function(){},Ga.prototype.Lj=function(){},un.Object.defineProperties(Ga.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Ga.className="Adornment";function G0(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=ou,this.er=Jm,this.Kr=this.ij=this.Nq=this.Mq=null}G0.prototype.copy=function(){var a=new G0;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Gi(a,y){a===void 0||a instanceof Hl||typeof a=="string"?zr.call(this,a):(zr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new _n,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Ft(Gi,zr),Gi.prototype.cloneProtected=function(a){zr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ee=Gi.prototype,Ee.Af=function(a){zr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function tf(a){a.Ba===null?a.Ba=new G0:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ee.th=function(){zr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function US(a,y){y!==null&&(a.af===null&&(a.af=new An),a.af.add(y))}function YS(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}Ee.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=YS(this,a,y,x),a!==null&&a.Sl()},Ee.gk=function(a,y,x,E,b,z,ee){a===Ms&&y==="elements"?this.wc=null:a===Zs&&y==="elements"&&(this.wc=null),zr.prototype.gk.call(this,a,y,x,E,b,z,ee)},Ee.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Bc(x.fromPort),Bc(x.toPort),x.bb())}};function ZS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Bc(x.fromPort),Bc(x.toPort),x.bb())}}function Bc(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Bc(y.port)}}Ee.si=function(){return!0},Gi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Gi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Gi.prototype.isVisible=function(){if(!zr.prototype.isVisible.call(this))return!1;var a=!0,y=Ih,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Ih){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Al){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Xd&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Gi.prototype.Zb=function(a){zr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Gi.prototype.qx=function(){var a=new An,y=new An;return XS(this,this,a,y),y.iterator};function XS(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(b?ee.fromNode===y:ee.toNode===y)&&XS(a,b?ee.toNode:ee.fromNode,x,E):E.add(ee)})}}Gi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new uo(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Ee=Gi.prototype,Ee.Mo=function(a){a===void 0&&(a=null);var y=new uo(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Ee.Sd=function(a){a===void 0&&(a=null);var y=new uo(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Ee.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new An,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new An,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Er(x):$a},Ee.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new An,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Er(x):$a},Ee.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new An,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Er(x):$a},Ee.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new uo(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},Ee.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new uo(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function Zm(a,y,x){Bc(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,y,x),ee!==null&&(ee.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Xm(a,y,x){Bc(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=ee)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):kp(y)))}function kp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Gi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ee=Gi.prototype,Ee.Vo=function(a){zr.prototype.Vo.call(this,a),a||(kp(this),a=this.Yk,a!==null&&r1(a,this))},Ee.Wo=function(a){zr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ee.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,zr.prototype.Lj.call(this)},Ee.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;JS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function JS(a){a.wc===null?a.wc=new wr:a.wc.clear(),a.qm(a,function(y,x){QS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function QS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function U0(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=hr()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Nr(x)}}}Ee.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Ee.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Ee.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Ym(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)Ym(y,!1),y=y.pg();return x},Ee.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},Ee.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Gi)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Ee.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new An;return a(this,y),y},Ee.uz=function(){return qS(this,this)};function qS(a,y){return y=y.pg(),y===null?0:1+qS(a,y)}Ee.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new uo(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},Ee.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new _n,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new _n,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Er(x):$a},Ee.wz=function(a){a===void 0&&(a=1/0);var y=new An;return Cf(y,this,!1,a,!0),y},Gi.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new An;x.add(this),$S(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Ih),y.Ue=!1}};function $S(a,y,x,E,b,z,ee){if(1<E)for(var re=x?a.Mo():a.Sd();re.next();){var ae=re.value;ae.isTreeLink&&(ae=ae.To(a),ae===null||ae===a||y.contains(ae)||(y.add(ae),$S(ae,y,x,E-1,b,z,ee)))}else e1(a,y,x,b,z,ee)}function e1(a,y,x,E,b,z){for(var ee=b===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),ae={};re.next();){var le=re.value;if(le.isTreeLink&&(le=le.To(a),le!==null&&le!==a)){var ce=y.contains(le);if(ce||y.add(le),ee){var fe=x?le.Oo():le.Po();ae.uv=a,fe.all(function(Se){return function(we){return we===Se.uv||!we.isTreeExpanded}}(ae))&&E.Aj(le,b),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,ce||e1(le,y,x,E,b,z))}ae={uv:ae.uv}}a.isTreeExpanded=!1}Gi.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new An;x.add(this),t1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Ih),y.Ue=!1}};function t1(a,y,x,E,b,z,ee){for(var re=z===a?!1:a.isTreeExpanded,ae=x?a.Mo():a.Sd(),le={};ae.next();){var ce=ae.value;if(ce.isTreeLink&&(re||ce.fd||ce.bb(),ce=ce.To(a),ce!==null&&ce!==a&&!y.contains(ce))){if(y.add(ce),!re){ce.Zb(!0),ce.oh();var fe=x?ce.Oo():ce.Po();le.vv=a,fe.all(function(Se){return function(we){return we===Se.vv||!we.isTreeExpanded}}(le))&&b.Cj(ce,z)}(2<E||ce.wasTreeExpanded)&&(ce.wasTreeExpanded=!1,t1(ce,y,x,E-1,b,z,ee))}le={vv:le.vv}}a.isTreeExpanded=!0}un.Object.defineProperties(Gi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Jm},set:function(a){var y=this.portSpreading;y!==a&&(tf(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&wh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:ou},set:function(a){typeof a=="number"&&(a=new Mo(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),tf(this),this.Ba.yp=a;var x=this.diagram;x!==null&&wh(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(tf(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(tf(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(tf(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var ee=z.wa(E);ee!==void 0&&z.Qx(b,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(r1(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),nc(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&JS(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(tf(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),Gi.prototype.expandTree=Gi.prototype.expandTree,Gi.prototype.collapseTree=Gi.prototype.collapseTree,Gi.prototype.findTreeParts=Gi.prototype.wz,Gi.prototype.findTreeChildrenNodes=Gi.prototype.Ou,Gi.prototype.findTreeChildrenLinks=Gi.prototype.Qo,Gi.prototype.findTreeLevel=Gi.prototype.uz,Gi.prototype.findTreeParentChain=Gi.prototype.vz,Gi.prototype.findTreeParentNode=Gi.prototype.pg,Gi.prototype.findTreeParentLink=Gi.prototype.kh,Gi.prototype.findCommonTreeParent=Gi.prototype.gz,Gi.prototype.findTreeRoot=Gi.prototype.xz,Gi.prototype.isInTreeOf=Gi.prototype.Nz,Gi.prototype.findPort=Gi.prototype.ns,Gi.prototype.findLinksTo=Gi.prototype.kz,Gi.prototype.findLinksBetween=Gi.prototype.jz,Gi.prototype.findNodesInto=Gi.prototype.Oo,Gi.prototype.findNodesOutOf=Gi.prototype.Po,Gi.prototype.findNodesConnected=Gi.prototype.Mu,Gi.prototype.findLinksInto=Gi.prototype.Sd,Gi.prototype.findLinksOutOf=Gi.prototype.Mo,Gi.prototype.findExternalTreeLinksConnected=Gi.prototype.qx,Gi.prototype.invalidateConnectedLinks=Gi.prototype.Bd,Gi.prototype.invalidateLinkBundle=Gi.prototype.Lz;var Tx=new ln(Gi,"SpreadingNone",10),Jm=new ln(Gi,"SpreadingEvenly",11),Y0=new ln(Gi,"SpreadingPacked",12);Gi.className="Node",Gi.SpreadingNone=Tx,Gi.SpreadingEvenly=Jm,Gi.SpreadingPacked=Y0;function Io(a,y){a===void 0||a instanceof Hl||typeof a=="string"?Gi.call(this,a):(Gi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new An,this.$a=null,this.Sc=new $s,this.Sc.group=this,this.gl=new An,this.tb=this.$p=null,y&&Object.assign(this,y)}Ft(Io,Gi),Io.prototype.cloneProtected=function(a){Gi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof oc});y instanceof oc?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Ee=Io.prototype,Ee.Af=function(a){Gi.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Gi)x.Bd(y);else if(x instanceof yi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ee.gk=function(a,y,x,E,b,z,ee){if(a===Ms&&y==="elements"){if(b instanceof oc)this.$a===null?this.$a=b:this.$a!==b&&tn("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ci){var re=b.Nl(function(ae){return ae instanceof oc});re instanceof oc&&(this.$a===null?this.$a=re:this.$a!==re&&tn("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Zs&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ci&&this.$a.rg(E)&&(this.$a=null));Gi.prototype.gk.call(this,a,y,x,E,b,z,ee)},Ee.Xl=function(a,y){Gi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ci.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ci&&(a=a.Pb()),this.tb===null&&(this.tb=new cn),a.mi(this.tb),a instanceof Zo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ee.eh=function(a,y,x,E){this.nf=this.$a,Gi.prototype.eh.call(this,a,y,x,E)},Ee.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof yi||y.Va()}),Gi.prototype.Va.call(this)},Ee.si=function(){if(!Gi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Gi){if(y.isVisible()&&ic(y))return!1}else if(y instanceof yi&&y.isVisible()&&ic(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Z0(a,y){if(a.Gn.add(y)){y instanceof Io&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof yi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function X0(a,y){if(a.Gn.remove(y)){y instanceof Io&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof yi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ee.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Gi.prototype.Lj.call(this)},Io.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=rn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Io.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=rn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Io.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Ee=Io.prototype,Ee.Bd=function(a){var y=(this.U&65536)!==0;if(Gi.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(Bc(x.fromPort),Bc(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Bc(x.fromPort),Bc(x.toPort),x.bb()))}}},Ee.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new An,E=y.iterator;E.next();){var b=E.value;if(b instanceof Gi)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ee.iz=function(){var a=this.Rj();a.add(this);for(var y=new An,x=a.iterator;x.next();){var E=x.value;if(E instanceof Gi)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},Ee.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new An;return a(this,y),y},Ee.Rj=function(){var a=new An;return Cf(a,this,!0,0,!0),a.remove(this),a},Ee.Zb=function(a){Gi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Io.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();n1(this,y,a,this),a.Ue=!1}};function n1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Io&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,n1(z,y,x,E)),z instanceof Gi)z.Bd(y),x.Aj(z,E);else if(z instanceof yi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Io.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();i1(this,y,a,this),a.Ue=!1}};function i1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Io&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,i1(z,y,x,E)),z instanceof Gi)z.Bd(y),x.Cj(z,E);else if(z instanceof yi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Io.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=at.alloc(),Gi.prototype.move.call(this,a,y),a=new An,y=this.Rj().iterator;y.next();)b=y.value,b instanceof yi&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof Gi&&b.isLinkLabel)){var ee=b.position,re=b.location;ee.w()?(z.x=ee.x+E,z.y=ee.y+x,b.position=z):re.w()&&(z.x=re.x+E,z.y=re.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof yi&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(ee=b.position,z.x=ee.x+E,z.y=ee.y+x,z.w()?b.move(z):b.bb(),Q0(b)&&b.bb());at.free(z)}},un.Object.defineProperties(Io.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&tn("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(tf(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(tf(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(tf(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(tf(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Io.prototype.expandSubGraph=Io.prototype.expandSubGraph,Io.prototype.collapseSubGraph=Io.prototype.collapseSubGraph,Io.prototype.findSubGraphParts=Io.prototype.Rj,Io.prototype.findContainingGroupChain=Io.prototype.hz,Io.prototype.findExternalNodesConnected=Io.prototype.iz,Io.prototype.findExternalLinksConnected=Io.prototype.Lu,Io.prototype.ensureBounds=Io.prototype.Va,Io.className="Group";function oc(a){bt.call(this),this.yb=$l,this.ko=new cn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Ft(oc,bt),oc.prototype.cloneProtected=function(a){bt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},oc.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return il(0,0,y.width,y.height,a.x,a.y)},oc.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Io||a instanceof Ga)||tn("Placeholder is not inside a Group or Adornment."),a instanceof Io){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(nl(E,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=at.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),at.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof Zo&&(ee=z.strokeWidth);var re=z.Df(),ae=z.naturalBounds,le=(ae.width+ee)*re;ee=(ae.height+ee)*re,a.type!==ci.Link&&(re=z.ga(a.category==="Selection"?Rs:a.locationSpot,at.alloc()),a.location=re,at.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(Rs,at.alloc()),le=cn.allocAt(a.x,a.y,0,0),le.Ye(z.ga(eu,a)),le.Ye(z.ga(zu,a)),le.Ye(z.ga(Fl,a)),nl(y,le.width+E||0,le.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),at.free(a),cn.free(le)):(nl(y,le+E||0,ee+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},oc.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},oc.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Io&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=cn.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Io&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),cn.free(x),E&&y instanceof Io&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},oc.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Io))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof yi&&(!y.computesBoundsIncludingLinks||Gc(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<E&&(E=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},un.Object.defineProperties(oc.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Mo(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),oc.className="Placeholder";function yi(a){zr.call(this,ci.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ac,this.Om=0,this.Qm=ac,this.Rm=NaN,this.qj=ey,this.po=.5,this.wd=null,this.Nb=new _n().freeze(),this.Tg=this.Mg=null,this.ml=new cn,this.ua=new fi,this.u=this.o=this.Sf=this.Wf=null,this.su=new at,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Ft(yi,zr),yi.prototype.cloneProtected=function(a){zr.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ee=yi.prototype,Ee.Af=function(a){zr.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Bc(y),a=a.toPort,a!==null&&Bc(a)},Ee.qb=function(a){a.classType===yi?(a.value&2)===2?this.routing=a:a===Yc||a===rf||a===Zg?this.curve=a:a===Dp||a===nv||a===iv?this.adjusting=a:a!==ey&&a!==ac&&tn("Unknown Link enum value for a Link property: "+a):zr.prototype.qb.call(this,a)},Ee.Xc=function(){this.ba===null&&(this.ba=new yp)},Ee.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ic(a)||wf(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ic(a)||wf(a)))},Ee.zv=function(){return!1},Ee.Av=function(){},Ee.Zc=function(){return!1},yi.prototype.computeAngle=function(a,y,x){return yi.computeAngle(y,x)},yi.computeAngle=function(a,y){switch(a){default:case ac:a=0;break;case Tp:a=y;break;case Bp:a=y+90;break;case Op:a=y-90;break;case ty:a=y+180;break;case rv:a=Rt.bp(y),90<a&&270>a&&(a-=180);break;case Ip:a=Rt.bp(y+90),90<a&&270>a&&(a-=180);break;case Rp:a=Rt.bp(y-90),90<a&&270>a&&(a-=180);break;case ov:if(a=Rt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Rt.bp(a)};function Ug(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&X0(x,a),a.Ah=y,y!==null&&Z0(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,x,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ee=yi.prototype,Ee.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&zr.prototype.oh.call(this)},Ee.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ee.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function r1(a,y){a.wd===null&&(a.wd=new An),a.wd.add(y),a.v()}Ee.Vo=function(a){if(zr.prototype.Vo.call(this,a),qf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Zm(x,this,E)}Fp(this)}},Ee.Wo=function(a){if(zr.prototype.Wo.call(this,a),qf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Xm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Xm(x,this,E)}Np(this)}},Ee.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},yi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},yi.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?zr.prototype.move.call(this,a,!1):(a=at.allocAt(x.x+E,x.y+b),zr.prototype.move.call(this,a,!1),at.free(a)),nf(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},yi.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},yi.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},yi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ii),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Yc))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===Yc){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Rt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Rt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ee=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=ee[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},yi.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Yc))return this.ua.wx(.5);if(this.computeCurve()===Yc&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),Rt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ee=yi.prototype,Ee.i=function(a){return this.Nb.s[a]},Ee.dd=function(a,y){this.Nb.cd(a,y)},Ee.L=function(a,y,x){this.Nb.cd(a,new at(y,x))},Ee.Kz=function(a,y){this.Nb.Gb(a,y)},Ee.m=function(a,y,x){this.Nb.Gb(a,new at(y,x))},Ee.ne=function(a){this.Nb.add(a)},Ee.yf=function(a,y){this.Nb.add(new at(a,y))},Ee.pv=function(a){this.Nb.mb(a)},Ee.Fj=function(){this.Nb.clear()};function nf(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new _n,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new at(ee.x+y,ee.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),nc(a)),E?Qm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&fo(ee.animationManager,a,b),a.g("points",z,b)}}Ee.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ee.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x=Math.min(re.x,x),E=Math.min(re.y,E)}re=ee=1/0;for(var ae=y.s,le=ae.length,ce=0;ce<le;ce++){var fe=ae[ce];ee=Math.min(fe.x,ee),re=Math.min(fe.y,re),fe.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(ce=b[z],fe=ae[z],ce.x-x!==fe.x-ee||ce.y-E!==fe.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&fo(x.animationManager,this,y),Qm(this),this.g("points",a,y)}},Ee.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Qm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),tv(a,!1))}Ee.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},Ee.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},yi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(pg||(pg=new Gi,pg.desiredSize=eo,pg.Va()),this.defaultFromPoint&&(pg.location=this.defaultFromPoint,pg.Va(),y=a=pg)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,b=null;if(E===null?(mg||(mg=new Gi,mg.desiredSize=eo,mg.Va()),this.defaultToPoint&&(mg.location=this.defaultToPoint,mg.Va(),b=E=mg)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var re=Yg(ee),ae=Yg(x),le=y===b&&y!==null,ce=this.isOrthogonal,fe=this.curve===Yc;this.Wf=le&&!ce?fe=!0:!1;var Se=this.computeAdjusting()===ac||le;if(!ce&&!le&&re&&ae){if(re=!1,!Se&&3<=z&&(Se=this.getLinkPoint(a,y,ee,!0,!1,E,b),ae=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,Se,z-1,ae))&&(Se=this.getLinkPoint(a,y,ee,!0,!1,E,b),ae=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,Se,z-1,ae)),!re)if(this.Fj(),fe){z=this.getLinkPoint(a,y,ee,!0,!1,E,b),Se=this.getLinkPoint(E,b,x,!1,!1,a,y),re=Se.x-z.x,ae=Se.y-z.y,le=this.computeCurviness(),fe=ce=0;var we=z.x+re/3,Ae=z.y+ae/3,De=we,nt=Ae;Rt.B(ae,0)?nt=0<re?nt-le:nt+le:(ce=-re/ae,fe=Math.sqrt(le*le/(ce*ce+1)),0>le&&(fe=-fe),De=(0>ae?-1:1)*fe+we,nt=ce*(De-we)+Ae),we=z.x+2*re/3,Ae=z.y+2*ae/3;var Ze=we,dt=Ae;Rt.B(ae,0)?dt=0<re?dt-le:dt+le:(Ze=(0>ae?-1:1)*fe+we,dt=ce*(Ze-we)+Ae),this.Fj(),this.ne(z),this.yf(De,nt),this.yf(Ze,dt),this.ne(Se),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,Se=b,E=this.getLinkPoint(a,y,ee,!0,!1,z,Se),b=this.getLinkPoint(z,Se,x,!1,!1,a,y),this.hasCurviness()?(Se=b.x-E.x,x=b.y-E.y,ee=this.computeCurviness(),a=E.x+Se/2,y=E.y+x/2,z=a,re=y,Rt.B(x,0)?re=0<Se?re-ee:re+ee:(Se=-Se/x,z=Math.sqrt(ee*ee/(Se*Se+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=Se*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=cn.alloc(),y.mi(re),ae=re.ca(b),Se.mi(re),le=re.ca(E),(ae||le)&&(ee=y.ga($m(ee),new at),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=Se.ga($m(x),new at),this.dd(1,this.getLinkPointFromPoint(z,Se,x,E,!1,x))),cn.free(re))}else{fe=this.isAvoiding,Se&&(ce&&fe||le)&&this.Fj();var mt=le?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ce,E,b),we=De=Ae=0,(ce||!re||le)&&(nt=this.computeEndSegmentLength(a,y,ee,!0),we=this.getLinkDirection(a,y,fe,ee,!0,ce,E,b),le&&(re||ee.D(x)||!ce&&ee.x+x.x===1&&ee.y+x.y===1)&&(we-=ce?90:30,0>mt&&(we-=180)),0>we?we+=360:360<=we&&(we-=360),le&&(nt+=Math.abs(mt)*(ce?1:2)),we===0?Ae=nt:we===90?De=nt:we===180?Ae=-nt:we===270?De=-nt:(Ae=nt*Math.cos(we*Math.PI/180),De=nt*Math.sin(we*Math.PI/180)),ee.Mc()&&le&&(nt=y.ga(Sa,at.alloc()),Ze=at.allocAt(nt.x+1e3*Ae,nt.y+1e3*De),this.getLinkPointFromPoint(a,y,nt,Ze,!0,fe),at.free(nt),at.free(Ze))),nt=this.getLinkPoint(E,b,x,!1,ce,a,y);var xt=dt=Ze=0;if(ce||!ae||le){var Ot=this.computeEndSegmentLength(E,b,x,!1);xt=this.getLinkDirection(E,b,nt,x,!1,ce,a,y),le&&(ae||ee.D(x)||!ce&&ee.x+x.x===1&&ee.y+x.y===1)&&(xt+=ce?0:30,0>mt&&(xt+=180)),0>xt?xt+=360:360<=xt&&(xt-=360),le&&(Ot+=Math.abs(mt)*(ce?1:2)),xt===0?Ze=Ot:xt===90?dt=Ot:xt===180?Ze=-Ot:xt===270?dt=-Ot:(Ze=Ot*Math.cos(xt*Math.PI/180),dt=Ot*Math.sin(xt*Math.PI/180)),x.Mc()&&le&&(x=b.ga(Sa,at.alloc()),ee=at.allocAt(x.x+1e3*Ze,x.y+1e3*dt),this.getLinkPointFromPoint(E,b,x,ee,!1,nt),at.free(x),at.free(ee))}x=fe,(ce||!re||le)&&(x=new at(fe.x+Ae,fe.y+De)),ee=nt,(ce||!ae||le)&&(ee=new at(nt.x+Ze,nt.y+dt)),!Se&&!ce&&re&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,nt):!Se&&!ce&&ae&&3<z&&this.adjustPoints(1,x,z-1,nt)?this.dd(0,fe):!Se&&(ce?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,fe),this.dd(z-1,nt)):(this.Fj(),this.ne(fe),(ce||!re||le)&&this.ne(x),ce&&this.addOrthoPoints(x,we,ee,xt,a,E),(ce||!ae||le)&&this.ne(ee),this.ne(nt))}return!0};function J0(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}yi.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new at),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var ee=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*b;var re=-a.m12*b,ae=-a.m21*b,le=a.m11*b,ce=b*(a.m21*a.dy-a.m22*a.dx),fe=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ee+E.y*ae+ce,E=E.x*re+E.y*le+fe,ee=x.x*ee+x.y*ae+ce,x=x.x*re+x.y*le+fe}return y.Sj(b,E,ee,x,z),a!==null&&z.transform(a),z};function qm(a,y){var x=y.Zn;return x===null&&(x=new vg,x.port=y,x.node=y.part,y.Zn=x),d1(x,a)}yi.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new at),x.sb()&&!Yg(x))return y.ga(x,re),re;if(x.$c()){var ae=qm(this,y);if(ae!==null){if(re.assign(ae.Zo),b&&this.routing===a1){var le=qm(this,ee);if(le!==null&&ae.Gl<le.Gl){ae=at.alloc(),le=at.alloc();var ce=new cn(y.ga(Rs,ae),y.ga(eu,le)),fe=this.computeSpot(!E,ee);a=this.getLinkPoint(z,ee,fe,!E,b,a,y,le),(x.Hf(du)||x.Hf(Ol))&&a.y>=ce.y&&a.y<=ce.y+ce.height?re.y=a.y:(x.Hf(Cc)||x.Hf(Cu))&&a.x>=ce.x&&a.x<=ce.x+ce.width&&(re.x=a.x),at.free(ae),at.free(le)}}return re}}return x=y.ga($m(x),at.alloc()),this.pointsCount>(b?6:2)?(ee=E?this.i(1):this.i(this.pointsCount-2),b&&(ee=J0(x,ee.copy()))):(ae=this.computeSpot(!E,ee),z=at.alloc(),ee=ee.ga($m(ae),z),b&&(ee=J0(x,ee)),at.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),at.free(x),re},yi.prototype.getLinkDirection=function(a,y,x,E,b,z,ee,re){e:if(E.sb())var ae=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(ae=qm(this,y),ae!==null))switch(ae.Nc){case 1:ae=270;break e;case 2:ae=180;break e;default:case 4:ae=0;break e;case 8:ae=90;break e}ae=y.ga(Sa,at.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?J0(ae,re.copy()):x):(x=at.alloc(),re=re.ga(Sa,x),at.free(x)),x=Math.abs(re.x-ae.x)>Math.abs(re.y-ae.y)?re.x>=ae.x?0:180:re.y>=ae.y?90:270,at.free(ae),ae=x}return E.Mc()&&ee.Td(a)&&(ae+=180,360<=ae&&(ae-=360)),Yg(E)||(a=y.li(),a===0)||(45<=a&&135>a?ae+=90:135<=a&&225>a?ae+=180:225<=a&&315>a&&(ae+=270),360<=ae&&(ae-=360)),ae},yi.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=qm(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},yi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Sa:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ml?hl:y)):(a=y||this.toPort,a===null?a=Sa:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ml?hl:y)),a};function Yg(a){return a===hl||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:Sa}yi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ac&&4<this.pointsCount?this.computeMidPoint(new at):(a=y.Zn,a=a!==null?d1(a,this):null,a!==null?a.Zo:y.ga(Sa))},yi.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},yi.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=Fo.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return x0(this,y,x,b),z===void 0&&Fo.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var ae=this.O.s,le=ae.length;le--;){var ce=ae[le];if(ce.visible||ce===this.locationObject){var fe=ce.actualBounds,Se=this.naturalBounds;if(!(fe.x>Se.width||fe.y>Se.height||0>fe.x+fe.width||0>fe.y+fe.height)){if(fe=Fo.alloc(),fe.set(ee),ce instanceof ci)re=ce.Cf(a,y,x,E,b,fe);else if(this.path===ce){if(ce instanceof Zo)if(re=a,Se=E,ce.pickable===!1)re=!1;else if(fe.multiply(ce.transform),Se)e:{var we=re,Ae=fe;if(ce.fh(we,Ae))re=!0;else{if(Ae===void 0&&(Ae=ce.transform,we.Re(ce.actualBounds))){re=!0;break e}re=we.left,Se=we.right;var De=we.top;we=we.bottom;var nt=at.alloc(),Ze=at.alloc(),dt=at.alloc(),mt=Fo.alloc();mt.set(Ae),mt.bv(ce.transform),mt.Vj(),Ze.x=Se,Ze.y=De,Ze.transform(mt),nt.x=re,nt.y=De,nt.transform(mt),Ae=!1,Jf(ce,nt,Ze,dt)?Ae=!0:(nt.x=Se,nt.y=we,nt.transform(mt),Jf(ce,nt,Ze,dt)?Ae=!0:(Ze.x=re,Ze.y=we,Ze.transform(mt),Jf(ce,nt,Ze,dt)?Ae=!0:(nt.x=re,nt.y=De,nt.transform(mt),Jf(ce,nt,Ze,dt)&&(Ae=!0)))),Fo.free(mt),at.free(nt),at.free(Ze),at.free(dt),re=Ae}}else re=ce.fh(re,fe)}else re=Xl(ce,a,E,fe);re&&(Se=ce,y!==null&&(Se=y(ce)),Se&&(x===null||x(Se))&&b.add(Se)),Fo.free(fe)}}}return z===void 0&&Fo.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Fo.free(ee),!1},yi.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Yc:this.curve},yi.prototype.computeCorner=function(){if(this.curve===Yc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},yi.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},yi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=l1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,ee=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===Tp||E===rv||E===ty?a=Math.max(a,b):E===Op||E===Rp||E===Bp||E===Ip?a=Math.max(a,ee):(y=y.ga(Sa).ab(x.ga(Sa))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===Yc&&(a*=1.333)}}return a},yi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ac&&x.bb()}},yi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=s1;var y=this.Sf;if(y!==null){for(var x=hr(),E=0,b=y.links,z=0;z<b.length;z++){var ee=b[z].computeSpacing();x.push(ee),E+=ee}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),Nr(x)}}return a},yi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},yi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},yi.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===nv)return!1;b===iv&&(b=Dp)}switch(b){case nv:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(E)){b=z.x,z=z.y;var re=ee.x-b,ae=ee.y-z,le=Math.sqrt(re*re+ae*ae);if(!Rt.$(le,0)){if(Rt.$(re,0))var ce=0>ae?-Math.PI/2:Math.PI/2;else ce=Math.atan(ae/Math.abs(re)),0>re&&(ce=Math.PI-ce);ee=y.x;var fe=y.y;re=E.x-ee;var Se=E.y-fe;for(ae=Math.sqrt(re*re+Se*Se),Rt.$(re,0)?Se=0>Se?-Math.PI/2:Math.PI/2:(Se=Math.atan(Se/Math.abs(re)),0>re&&(Se=Math.PI-Se)),le=ae/le,ce=Se-ce,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-b,ae=y.y-z,y=Math.sqrt(re*re+ae*ae),Rt.$(y,0)||(Rt.$(re,0)?ae=0>ae?-Math.PI/2:Math.PI/2:(ae=Math.atan(ae/Math.abs(re)),0>re&&(ae=Math.PI-ae)),re=ae+ce,y*=le,this.L(a,ee+y*Math.cos(re),fe+y*Math.sin(re)));this.dd(x,E)}}return!0;case iv:if(z=this.i(a),fe=this.i(x),!z.Xa(y)||!fe.Xa(E)){b=z.x,z=z.y,ee=fe.x,fe=fe.y,le=(ee-b)*(ee-b)+(fe-z)*(fe-z),re=y.x,ce=y.y,ae=E.x,Se=E.y;var we=1;if(ae-re!==0){var Ae=(Se-ce)/(ae-re);we=Math.sqrt(1+1/(Ae*Ae))}else Ae=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var De=y.x,nt=y.y,Ze=.5;le!==0&&(Ze=((b-De)*(b-ee)+(z-nt)*(z-fe))/le);var dt=b+Ze*(ee-b),mt=z+Ze*(fe-z);y=Math.sqrt((De-dt)*(De-dt)+(nt-mt)*(nt-mt)),nt<Ae*(De-dt)+mt&&(y=-y),0<Ae&&(y=-y),De=re+Ze*(ae-re),Ze=ce+Ze*(Se-ce),Ae!==0?(y=De+y/we,this.L(a,y,Ze-(y-De)/Ae)):this.L(a,De,Ze+y)}this.dd(x,E)}return!0;case Dp:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,ce=z.y,fe=re,le=ce,Rt.B(b.y,z.y)?Rt.B(z.x,ee.x)?ce=y.y:Rt.B(z.y,ee.y)&&(re=y.x):Rt.B(b.x,z.x)&&(Rt.B(z.y,ee.y)?re=y.x:Rt.B(z.x,ee.x)&&(ce=y.y)),this.L(a+1,re,ce),b=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,ce=z.y,ae=re,Se=ce,Rt.B(b.y,z.y)?Rt.B(z.x,ee.x)?ce=E.y:Rt.B(z.y,ee.y)&&(re=E.x):Rt.B(b.x,z.x)&&(Rt.B(z.y,ee.y)?re=E.x:Rt.B(z.x,ee.x)&&(ce=E.y)),this.L(x-1,re,ce),Q0(this))){this.L(a+1,fe,le),this.L(x-1,ae,Se),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},yi.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ee=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var re=b.actualBounds.copy(),ae=z.actualBounds.copy();if(re.w()&&ae.w()){re.Bc(jp,jp),ae.Bc(jp,jp),re.Ye(a),ae.Ye(x);var le=at.alloc(),ce=at.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&ae.right>a.x||E===90&&x.y>a.y&&ae.right>a.x?(le.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),E===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=le.x,ce.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(le.x=a.x<ae.left?this.computeMidOrthoPosition(a.x,a.y,ae.left,x.y,!1):a.x<ae.right&&(E===270&&a.y<ae.top||E===90&&a.y>ae.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ae.right,ce.x=le.x,ce.y=x.y):E===0&&a.x<ae.left&&a.y>ae.top&&a.y<ae.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,ae.top):Math.max(x.y,ae.bottom),ce.y=le.y)):(le.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===180&&(ae.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,ae.bottom),!0):x.y>a.y&&(E===180||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,ae.top),!0)),ce.x=x.x,ce.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=ae.right&&a.x>=x.x?(E===90||E===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),ce.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?re.top:Math.min(re.top,ae.top)):Math.max(x.y,E===0?re.bottom:Math.max(re.bottom,ae.bottom)),ce.x=x.x,ce.y=le.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&ae.left<a.x||E===90&&x.y>a.y&&ae.left<a.x?(le.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),E===0?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=le.x,ce.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(le.x=a.x>ae.right?this.computeMidOrthoPosition(a.x,a.y,ae.right,x.y,!1):a.x>ae.left&&(E===270&&a.y<ae.top||E===90&&a.y>ae.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ae.left,ce.x=le.x,ce.y=x.y):E===180&&a.x>ae.right&&a.y>ae.top&&a.y<ae.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,ae.top):Math.max(x.y,ae.bottom),ce.y=le.y)):(le.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===0&&(ae.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,ae.bottom),!0):x.y>a.y&&(E===0||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,ae.top),!0)),ce.x=x.x,ce.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=ae.left&&a.x<=x.x?(E===90||E===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),ce.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?re.top:Math.min(re.top,ae.top)):Math.max(x.y,E===180?re.bottom:Math.max(re.bottom,ae.bottom)),ce.x=x.x,ce.y=le.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&ae.bottom>a.y||E===0&&x.x>a.x&&ae.bottom>a.y?(le.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),E===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.y=le.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(le.y=a.y<ae.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ae.top,!0):a.y<ae.bottom&&(E===180&&a.x<ae.left||E===0&&a.x>ae.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ae.bottom,ce.x=x.x,ce.y=le.y):E===90&&a.y<ae.top&&a.x>ae.left&&a.x<ae.right&&(le.x=a.x<x.x?Math.min(x.x,ae.left):Math.max(x.x,ae.right),le.y=a.y,ce.x=le.x)):(le.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===270&&(ae.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,ae.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,ae.left),x.y,!1)),ce.x=le.x,ce.y=x.y),le.x>re.left&&le.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=ae.bottom&&a.y>=x.y?(E===0||E===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),ce.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?re.left:Math.min(re.left,ae.left)):Math.max(x.x,E===90?re.right:Math.max(re.right,ae.right)),ce.x=le.x,ce.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&ae.top<a.y||E===0&&x.x>a.x&&ae.top<a.y?(le.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),E===90?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.y=le.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(le.y=a.y>ae.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ae.bottom,!0):a.y>ae.top&&(E===180&&a.x<ae.left||E===0&&a.x>ae.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ae.top,ce.x=x.x,ce.y=le.y):E===270&&a.y>ae.bottom&&a.x>ae.left&&a.x<ae.right&&(le.x=a.x<x.x?Math.min(x.x,ae.left):Math.max(x.x,ae.right),le.y=a.y,ce.x=le.x)):(le.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===90&&(ae.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,ae.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,ae.left),x.y,!1)),ce.x=le.x,ce.y=x.y),le.x>re.left&&le.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=ae.top&&a.y<=x.y?(E===0||E===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),ce.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?re.left:Math.min(re.left,ae.left)):Math.max(x.x,E===270?re.right:Math.max(re.right,ae.right)),ce.x=le.x,ce.y=x.y)));var fe=x;if(this.isAvoiding){var Se=this.diagram;if(Se===null||b===z||this.layer.isTemporary||!Jh(Se)||re.ca(fe)&&!z.Td(b)||ae.ca(a)&&!b.Td(z))y=!1;else{var we=Ld(Se,!0,this.containingGroup,null);if(this.segmentIndex!==17&&we.Yj(Math.min(a.x,le.x),Math.min(a.y,le.y),Math.abs(a.x-le.x),Math.abs(a.y-le.y))&&we.Yj(Math.min(le.x,ce.x),Math.min(le.y,ce.y),Math.abs(le.x-ce.x),Math.abs(le.y-ce.y))&&we.Yj(Math.min(ce.x,fe.x),Math.min(ce.y,fe.y),Math.abs(ce.x-fe.x),Math.abs(ce.y-fe.y)))y=!1;else{b=a,z=fe;var Ae=x=null;if(Se.isVirtualized){Se=we.bounds.copy(),Se.Bc(-we.Ho,-we.Go);var De=at.alloc();Xg(we,a.x,a.y)||(Rt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,a.x,a.y,le.x,le.y,De)?(x=a=De.copy(),y=De.ab(le)):Rt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,ce.x,ce.y,De)?(x=a=De.copy(),y=De.ab(ce)):Rt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,ce.x,ce.y,fe.x,fe.y,De)&&(x=a=De.copy(),y=De.ab(fe))),Xg(we,fe.x,fe.y)||(Rt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,fe.x,fe.y,ce.x,ce.y,De)?(Ae=fe=De.copy(),E=ce.ab(De)):Rt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,ce.x,ce.y,le.x,le.y,De)?(Ae=fe=De.copy(),E=le.ab(De)):Rt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,a.x,a.y,De)&&(Ae=fe=De.copy(),E=a.ab(De))),at.free(De)}re=re.copy().ed(ae),re.Bc(we.Ho*we.Os,we.Go*we.Os),c1(we,a,y,fe,E,re,!0),ae=Sd(we,fe.x,fe.y),!we.abort&&ae>=Jg&&(u1(we),re.Bc(we.Ho*we.Hx,we.Go*we.Ix),c1(we,a,y,fe,E,re,!1),ae=Sd(we,fe.x,fe.y)),!we.abort&&ae<Jg&&Sd(we,fe.x,fe.y)!==of?(q0(this,we,fe.x,fe.y,E,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=fe.y):(re.x=fe.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?Rt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):Rt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=we.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Rt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):Rt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=we.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Ae!==null&&(E===0||E===180?this.yf(z.x,Ae.y):this.yf(Ae.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ce.copy())),at.free(le),at.free(ce)}},yi.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Q0(a){if(a.diagram===null||!a.isAvoiding||!Jh(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Ld(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function q0(a,y,x,E,b,z,ee){var re=y.Ho,ae=y.Go,le=Sd(y,x,E),ce=x,fe=E;for(b===0?ce+=re:b===90?fe+=ae:b===180?ce-=re:fe-=ae,b!==ee&&le>$f&&Sd(y,ce,fe)!==le-1&&(Sd(y,x-re,E)===le-1?(b=180,ce=x-re,fe=E):Sd(y,x+re,E)===le-1?(b=0,ce=x+re,fe=E):Sd(y,x,E-ae)===le-1?(b=270,ce=x,fe=E-ae):Sd(y,x,E+ae)===le-1&&(b=90,ce=x,fe=E+ae));le>$f&&Sd(y,ce,fe)===le-1;)x=ce,E=fe,b===0?ce+=re:b===90?fe+=ae:b===180?ce-=re:fe-=ae,--le;z?le>$f&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/ae)*ae+ae/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/ae)*ae+ae/2),le>$f&&(z=b,ee=x,ce=E,b===0?(z=90,ce+=ae):b===90?(z=180,ee-=re):b===180?(z=270,ce-=ae):b===270&&(z=0,ee+=re),Sd(y,ee,ce)===le-1?q0(a,y,ee,ce,z,!1,z):(ee=x,ce=E,b===0?(z=270,ce-=ae):b===90?(z=0,ee+=re):b===180?(z=90,ce+=ae):b===270&&(z=180,ee-=re),Sd(y,ee,ce)===le-1&&q0(a,y,ee,ce,z,!1,z))),a.yf(x,E)}yi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=nr(y,a,x.x,x.y,E.x,E.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=nr(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ee,b=re)}return z},yi.prototype.qc=function(){this.lk=!1,this.v()},yi.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof Zo&&(b.ua=this.ua)}}},yi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&qf(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var ee=this.computeCurve();if(ee===Yc&&3<=y&&!Rt.$(this.smoothness,0))if(y===3){var re=this.i(1);E=Math.min(b.x,re.x);var ae=Math.min(b.y,re.y);re=this.i(2),E=Math.min(E,re.x),ae=Math.min(ae,re.y)}else{if(this.isOrthogonal)for(ae=0;ae<y;ae++)re=E[ae],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),ae=this.i(E),z.x=Math.min(ae.x,z.x),z.y=Math.min(ae.y,z.y);E=z.x,ae=z.y}else{for(ae=0;ae<y;ae++)re=E[ae],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);E=z.x,ae=z.y}if(E-=this.su.x,ae-=this.su.y,b.x-=E,b.y-=ae,y!==2||qf(this)){if(a.type=fi.o,re=OS(a),this.computeShortLength(!0)!==0&&(b=fg(this,b,!0,z)),Gg(re,b.x,b.y,!1),ee===Yc&&3<=y&&!Rt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-ae,b=this.i(2).copy(),b.x-=E,b.y-=ae,this.computeShortLength(!1)!==0&&(b=fg(this,b,!1,z)),$d(re,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=at.allocAt(E,ae),x=at.alloc(),x.assign(this.i(1)),z=at.allocAt(E,ae),b=at.allocAt(E,ae),ee=this.i(0);for(var le,ce=this.smoothness/3,fe=1;fe<this.pointsCount-1;fe++){le=this.i(fe);var Se=ee,we=le,Ae=this.i($0(this,le,fe,!1));if((!Rt.$(Se.x,we.x)||!Rt.$(we.x,Ae.x))&&(!Rt.$(Se.y,we.y)||!Rt.$(we.y,Ae.y))){var De=ce;isNaN(De)&&(De=this.smoothness/3);var nt=Se.x;Se=Se.y;var Ze=we.x;we=we.y;var dt=Ae.x;Ae=Ae.y;var mt=De*ev(nt,Se,Ze,we);De*=ev(Ze,we,dt,Ae),Rt.$(Se,we)&&Rt.$(Ze,dt)&&(Ze>nt?Ae>we?(z.x=Ze-mt,z.y=we-mt,b.x=Ze+De,b.y=we+De):(z.x=Ze-mt,z.y=we+mt,b.x=Ze+De,b.y=we-De):Ae>we?(z.x=Ze+mt,z.y=we-mt,b.x=Ze-De,b.y=we+De):(z.x=Ze+mt,z.y=we+mt,b.x=Ze-De,b.y=we-De)),Rt.$(nt,Ze)&&Rt.$(we,Ae)&&(we>Se?(dt>Ze?(z.x=Ze-mt,z.y=we-mt,b.x=Ze+De):(z.x=Ze+mt,z.y=we-mt,b.x=Ze-De),b.y=we+De):(dt>Ze?(z.x=Ze-mt,z.y=we+mt,b.x=Ze+De):(z.x=Ze+mt,z.y=we+mt,b.x=Ze-De),b.y=we-De)),(Rt.$(nt,Ze)&&Rt.$(Ze,dt)||Rt.$(Se,we)&&Rt.$(we,Ae))&&(nt=.5*(nt+dt),Se=.5*(Se+Ae),z.x=nt,z.y=Se,b.x=nt,b.y=Se),(fe===1||fe===2&&Rt.$(ee.x,this.i(0).x)&&Rt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+le.x),x.y=.5*(ee.y+le.y)),$d(re,x.x-E,x.y-ae,z.x-E,z.y-ae,le.x-E,le.y-ae),y.set(z),x.set(b),ee=le}}le=ee.x,ee=ee.y,ce=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ce=fg(this,ce.copy(),!1,St)),le=.5*(le+ce.x),ee=.5*(ee+ce.y),$d(re,b.x-E,b.y-ae,le-E,ee-ae,ce.x-E,ce.y-ae),at.free(y),at.free(x),at.free(z),at.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=fg(this,ee.copy(),!1,St)),$d(re,z.x-E,z.y-ae,b.x-E,b.y-ae,ee.x-E,ee.y-ae);else{for(z=at.alloc(),z.assign(this.i(0)),b=at.alloc(),b.assign(z),ee=this.computeCorner(),fe=1,le=0;fe<y;){if(fe=$0(this,z,fe,1<fe),ce=this.i(fe),fe>=y-1){if(!z.D(ce))this.computeShortLength(!1)!==0&&(ce=fg(this,ce.copy(),!1,St)),gg(this,re,-E,-ae,z,ce,x);else if(le===0)for(fe=1;fe<y;)b.assign(z),ce=this.i(fe++),gg(this,re,-E,-ae,z,ce,x),z.assign(ce);break}if(le=$0(this,ce,fe+1,fe<y-3),fe=-E,nt=-ae,Se=ce,Ze=this.i(le),De=x,Rt.B(z.y,Se.y)&&Rt.B(Se.x,Ze.x))if(Ae=Math.min(ee,Math.abs(Se.x-b.x)/2),Ae=mt=Math.min(Ae,Math.abs(Ze.y-Se.y)/2),Rt.B(Ae,0))gg(this,re,fe,nt,z,Se,De),z.assign(Se);else{var xt=Se.x,Ot=Se.y;we=xt,dt=Ot,Se.x>z.x?xt=Se.x-Ae:xt=Se.x+Ae,Ze.y>Se.y?dt=Se.y+mt:dt=Se.y-mt,Ze=at.allocAt(xt,Ot),gg(this,re,fe,nt,z,Ze,De),at.free(Ze),Km(re,Se.x+fe,Se.y+nt,we+fe,dt+nt),z.h(we,dt)}else Rt.B(z.x,Se.x)&&Rt.B(Se.y,Ze.y)?(Ae=Math.min(ee,Math.abs(Se.y-b.y)/2),Ae=mt=Math.min(Ae,Math.abs(Ze.x-Se.x)/2),Rt.B(mt,0)?(gg(this,re,fe,nt,z,Se,De),z.assign(Se)):(xt=Se.x,Ot=Se.y,we=xt,dt=Ot,Se.y>z.y?Ot=Se.y-Ae:Ot=Se.y+Ae,Ze.x>Se.x?we=Se.x+mt:we=Se.x-mt,Ze=at.allocAt(xt,Ot),gg(this,re,fe,nt,z,Ze,De),at.free(Ze),Km(re,Se.x+fe,Se.y+nt,we+fe,dt+nt),z.h(we,dt))):(gg(this,re,fe,nt,z,Se,De),z.assign(Se));b.assign(ce),fe=le}at.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=E,re.y-=ae,this.computeShortLength(!0)!==0&&(b=fg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=fg(this,re,!1,z)),a.type=fi.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function ev(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Rt.$(a,0)?y:Rt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function fg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=ev(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=ev(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function $0(a,y,x,E){for(var b=a.pointsCount,z=y;Rt.$(y.x,z.x)&&Rt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Rt.$(y.x,z.x)&&!Rt.$(y.y,z.y))return x-1;for(var ee=z;Rt.$(y.x,z.x)&&Rt.$(z.x,ee.x)&&(!E||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Rt.$(y.y,z.y)&&Rt.$(z.y,ee.y)&&(!E||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=b)return b-1;ee=a.i(x++)}return x-2}yi.prototype.computeJumpLength=function(){return 10};function gg(a,y,x,E,b,z,ee){if(!ee&&qf(a)){ee=a.computeJumpLength();var re=ee/2,ae=[],le=0;if(a.isVisible()&&(le=Bx(a,b,z,ae)),0<le){if(Rt.B(b.y,z.y))if(b.x<z.x)for(var ce=0;ce<le;){var fe=Math.max(b.x,Math.min(ae[ce++]-re,z.x-ee));y.lineTo(fe+x,z.y+E);for(var Se=fe+x,we=Math.min(fe+ee,z.x);ce<le&&(fe=ae[ce],fe<we+ee);)ce++,we=Math.min(fe+re,z.x);fe=z.y-ee+E,we+=x;var Ae=z.y+E;a.curve===rf?Gg(y,we,Ae,!1):$d(y,Se,fe,we,fe,we,Ae)}else for(--le;0<=le;){for(ce=Math.min(b.x,Math.max(ae[le--]+re,z.x+ee)),y.lineTo(ce+x,z.y+E),Se=ce+x,fe=Math.max(ce-ee,z.x);0<=le&&(ce=ae[le],ce>fe-ee);)le--,fe=Math.max(ce-re,z.x);ce=z.y-ee+E,fe+=x,we=z.y+E,a.curve===rf?Gg(y,fe,we,!1):$d(y,Se,ce,fe,ce,fe,we)}else if(Rt.B(b.x,z.x))if(b.y<z.y)for(ce=0;ce<le;){for(fe=Math.max(b.y,Math.min(ae[ce++]-re,z.y-ee)),y.lineTo(z.x+x,fe+E),Se=fe+E,fe=Math.min(fe+ee,z.y);ce<le&&(we=ae[ce],we<fe+ee);)ce++,fe=Math.min(we+re,z.y);we=z.x-ee+x,Ae=z.x+x,fe+=E,a.curve===rf?Gg(y,Ae,fe,!1):$d(y,we,Se,we,fe,Ae,fe)}else for(--le;0<=le;){for(ce=Math.min(b.y,Math.max(ae[le--]+re,z.y+ee)),y.lineTo(z.x+x,ce+E),Se=ce+E,ce=Math.max(ce-ee,z.y);0<=le&&(fe=ae[le],fe>ce-ee);)le--,ce=Math.max(fe-re,z.y);fe=z.x-ee+x,we=z.x+x,ce+=E,a.curve===rf?Gg(y,we,ce,!1):$d(y,fe,Se,fe,ce,we,ce)}}}y.lineTo(z.x+x,z.y+E)}function Bx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var ae=z[re];if(ae instanceof yi){if(ae===a)return 0<E.length&&E.sort(function(ce,fe){return ce-fe}),E.length;if(ae.isVisible()&&qf(ae)){var le=ae.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(ae)&&(le=ae.path,le!==null&&le.Ed()&&Ox(y,x,E,ae))}}}}}return 0<E.length&&E.sort(function(ce,fe){return ce-fe}),E.length}function Ox(a,y,x,E){for(var b=Rt.B(a.y,y.y),z=E.pointsCount,ee=E.i(0),re=at.alloc(),ae=1;ae<z;ae++){var le=E.i(ae);if(ae<z-1){var ce=E.i(ae+1);if(ee.y===le.y&&le.y===ce.y){if(le.x>ee.x&&ce.x>=le.x||le.x<ee.x&&ce.x<=le.x)continue}else if(ee.x===le.x&&le.x===ce.x&&(le.y>ee.y&&ce.y>=le.y||le.y<ee.y&&ce.y<=le.y))continue}e:{ce=a.x;var fe=a.y,Se=y.x,we=y.y,Ae=ee.x;ee=ee.y;var De=le.x,nt=le.y;if(Rt.B(ce,Se)){if(!Rt.B(fe,we)&&Rt.B(ee,nt)&&Math.min(fe,we)<ee&&Math.max(fe,we)>ee&&Math.min(Ae,De)<ce&&Math.max(Ae,De)>ce&&!Rt.B(Ae,De)){re.x=ce,re.y=ee,ce=!0;break e}}else if(Rt.B(fe,we)&&Rt.B(Ae,De)&&Math.min(ce,Se)<Ae&&Math.max(ce,Se)>Ae&&Math.min(ee,nt)<fe&&Math.max(ee,nt)>fe&&!Rt.B(ee,nt)){re.x=Ae,re.y=fe,ce=!0;break e}re.x=0,re.y=0,ce=!1}ce&&(b?x.push(re.x):x.push(re.y)),ee=le}at.free(re)}function qf(a){return a=a.curve,a===Zg||a===rf}function tv(a,y){(y||qf(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}yi.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var ee=b.length,re=0;re<ee;re++){var ae=b[re];ae instanceof yi&&(ae===this?z=!0:z&&o1(this,ae,a))}}else if(E)for(z=b.Pa.s,b=z.length,ee=0;ee<b;ee++)re=z[ee],re instanceof yi&&o1(this,re,a)}}}}};function o1(a,y,x){if(y!==null&&y.lk&&y.fd&&qf(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}yi.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},yi.prototype.isVisible=function(){if(!zr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},yi.prototype.Zb=function(a){if(zr.prototype.Zb.call(this,a),a&&tv(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},yi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Dp:this.qk};function Fp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,ee=y.jb.s,re=ee.length,ae=0;ae<re;ae++){var le=ee[ae];(le.ef===y&&le.ff===E&&le.uf===x&&le.vf===b||le.ef===x&&le.ff===b&&le.uf===y&&le.vf===E)&&(z===null?z=le:(a===null&&(a=[],a.push(z)),a.push(le)))}if(a!==null){for(z=YS(y,x,E,b),z===null&&(z=new av(y,E,x,b),US(y,z),US(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Np(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(aa(y.links,a),y.Sl()))}yi.prototype.ph=function(){return!0},un.Object.defineProperties(yi.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Xm(y,this,x),Np(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.uf!==a&&Zm(a,this,b),Fp(this),this.C(1)),this.g("fromNode",y,a),Ug(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Bc(x),Np(this),this.ff=a;var E=this.fromPort;E!==null&&Bc(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),Fp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Xm(y,this,x),Np(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.ef!==a&&Zm(a,this,b),Fp(this),this.C(1)),this.g("toNode",y,a),Ug(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Bc(x),Np(this),this.vf=a;var E=this.toPort;E!==null&&Bc(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),Fp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ml},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Bc(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Hr(a,">= 0",yi,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ml},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Bc(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Hr(a,">= 0",yi,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?$a:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&kp(this.fromNode),this.toNode!==null&&kp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Zo?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===Yc&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Rt.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var ee=this.i(z-2);z+3>=E&&(z=E-1);var re=this.i(z-1),ae=this.i(z);Rt.Dl(b.x,b.y,ee.x,ee.y,re.x,re.y,ae.x,ae.y,.5,a),y=Math.min(ae.x,y),x=Math.min(ae.y,x),b=ae}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new at)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Qm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var E=this.i(x),b=this.i(x+1);Rt.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):Rt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new _n,E=0;E<a.length/2;E++)b=new at(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!wn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new _n,E=0;E<a.length;E++)b=a[E],x.add(new at(b.x,b.y).freeze())}}else if(a instanceof _n)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else tn("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Qm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&fo(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Yg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Yg(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),tv(this,y===rf||y===Zg||a===rf||a===Zg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),tv(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),yi.prototype.invalidateOtherJumpOvers=yi.prototype.Xo,yi.prototype.findClosestSegment=yi.prototype.ez,yi.prototype.updateRoute=yi.prototype.vg,yi.prototype.invalidateRoute=yi.prototype.bb,yi.prototype.rollbackRoute=yi.prototype.rv,yi.prototype.commitRoute=yi.prototype.zf,yi.prototype.startRoute=yi.prototype.uh,yi.prototype.clearPoints=yi.prototype.Fj,yi.prototype.removePoint=yi.prototype.pv,yi.prototype.addPointAt=yi.prototype.yf,yi.prototype.addPoint=yi.prototype.ne,yi.prototype.insertPointAt=yi.prototype.m,yi.prototype.insertPoint=yi.prototype.Kz,yi.prototype.setPointAt=yi.prototype.L,yi.prototype.setPoint=yi.prototype.dd,yi.prototype.getPoint=yi.prototype.i,yi.prototype.getOtherPort=yi.prototype.Cz,yi.prototype.getOtherNode=yi.prototype.To;var pg=null,mg=null,ey=new ln(yi,"Normal",1),Ix=new ln(yi,"Orthogonal",2),Rx=new ln(yi,"AvoidsNodes",6),a1=new ln(yi,"AvoidsNodesStraight",7),ac=new ln(yi,"None",0),Yc=new ln(yi,"Bezier",9),rf=new ln(yi,"JumpGap",10),Zg=new ln(yi,"JumpOver",11),Dp=new ln(yi,"End",17),nv=new ln(yi,"Scale",18),iv=new ln(yi,"Stretch",19),Tp=new ln(yi,"OrientAlong",21),Bp=new ln(yi,"OrientPlus90",22),Op=new ln(yi,"OrientMinus90",23),ty=new ln(yi,"OrientOpposite",24),rv=new ln(yi,"OrientUpright",25),Ip=new ln(yi,"OrientPlus90Upright",26),Rp=new ln(yi,"OrientMinus90Upright",27),ov=new ln(yi,"OrientUpright45",28),s1=16,l1=14,jp=8;yi.className="Link",yi.Normal=ey,yi.Orthogonal=Ix,yi.AvoidsNodes=Rx,yi.AvoidsNodesStraight=a1,yi.None=ac,yi.Bezier=Yc,yi.JumpGap=rf,yi.JumpOver=Zg,yi.End=Dp,yi.Scale=nv,yi.Stretch=iv,yi.OrientAlong=Tp,yi.OrientPlus90=Bp,yi.OrientMinus90=Op,yi.OrientOpposite=ty,yi.OrientUpright=rv,yi.OrientPlus90Upright=Ip,yi.OrientMinus90Upright=Rp,yi.OrientUpright45=ov,yi.EndSegmentStep=8,yi.CurvinessStart=s1,yi.SpacingMin=l1,yi.OrthoShortCut=jp;function av(a,y,x,E){Po(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}av.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},av.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},av.className="LinkBundle";function zp(a){Po(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}zp.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=ny,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function Xg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Sd(a,y,x){return Xg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ny}function u1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=$f&&(x[E]=ny)}zp.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===of)return!1}return!0};function xd(a,y,x,E,b,z,ee,re,ae){if(!(y<z||y>ee||x<re||x>ae)){var le=y|0,ce=x|0,fe=a.ac[le][ce];if(fe>=$f&&fe<Jg)for(b?ce+=E:le+=E,fe+=1;z<=le&&le<=ee&&re<=ce&&ce<=ae&&!(fe>=a.ac[le][ce]);)a.ac[le][ce]=fe,fe+=1,b?ce+=E:le+=E;if(le=b?ce:le,b)if(0<E)for(x+=E;x<le;x+=E)xd(a,y,x,1,!b,z,ee,re,ae),xd(a,y,x,-1,!b,z,ee,re,ae);else for(x+=E;x>le;x+=E)xd(a,y,x,1,!b,z,ee,re,ae),xd(a,y,x,-1,!b,z,ee,re,ae);else if(0<E)for(y+=E;y<le;y+=E)xd(a,y,x,1,!b,z,ee,re,ae),xd(a,y,x,-1,!b,z,ee,re,ae);else for(y+=E;y>le;y+=E)xd(a,y,x,1,!b,z,ee,re,ae),xd(a,y,x,-1,!b,z,ee,re,ae)}}function sv(a,y,x,E,b,z,ee,re,ae){y|=0,x|=0;var le=of,ce=$f;for(a.ac[y][x]=ce;le===of&&y>z&&y<ee&&x>re&&x<ae;)ce+=1,a.ac[y][x]=ce,b?x+=E:y+=E,le=a.ac[y][x]}function lv(a,y,x,E,b,z,ee,re,ae){y|=0,x|=0;var le=of,ce=Jg;for(a.ac[y][x]=ce;le===of&&y>z&&y<ee&&x>re&&x<ae;)a.ac[y][x]=ce,b?x+=E:y+=E,le=a.ac[y][x]}function c1(a,y,x,E,b,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,ae=y.y;if(Xg(a,re,ae)){re-=a.Nd,re/=a.rc,ae-=a.Od,ae/=a.sc;var le=E.x,ce=E.y;if(Xg(a,le,ce))if(le-=a.Nd,le/=a.rc,ce-=a.Od,ce/=a.sc,1>=Math.abs(re-le)&&1>=Math.abs(ae-ce))a.abort=!0;else{var fe=z.x;E=z.y,y=z.x+z.width;var Se=z.y+z.height;fe-=a.Nd,fe/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Se-=a.Od,Se/=a.sc,z=Math.max(0,Math.min(a.di,fe|0)),y=Math.min(a.di,Math.max(0,y|0)),fe=Math.max(0,Math.min(a.ei,E|0)),Se=Math.min(a.ei,Math.max(0,Se|0)),E=a.ac,re|=0,ae|=0,le|=0,ce|=0;var we=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][ae]===of?(sv(a,re,ae,we,x,z,y,fe,Se),sv(a,re,ae,1,!x,z,y,fe,Se),sv(a,re,ae,-1,!x,z,y,fe,Se)):sv(a,re,ae,we,x,re,ae,re,ae),E[le][ce]===of?(lv(a,le,ce,b===0||b===90?1:-1,b===90||b===270,z,y,fe,Se),lv(a,le,ce,1,!(b===90||b===270),z,y,fe,Se),lv(a,le,ce,-1,!(b===90||b===270),z,y,fe,Se)):lv(a,le,ce,we,x,le,ce,le,ce),x=hr(),ee&&h1(a,le,ce,b,re,ae,x))for((x[0]!==le||x[1]!==ce)&&(x.unshift(ce),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==ae)&&(x.push(re),x.push(ae)),a=$f,b=x[x.length-2],ee=x[x.length-1],E[b][ee]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ee=x[z+3],y=x[z],le=x[z+1];y>b?b++:y<b?b--:le>ee?ee++:le<ee&&ee--,E[b][ee]=a++,b!==y||ee!==le;);else xd(a,re,ae,1,!1,z,y,fe,Se),xd(a,re,ae,-1,!1,z,y,fe,Se),xd(a,re,ae,1,!0,z,y,fe,Se),xd(a,re,ae,-1,!0,z,y,fe,Se);Nr(x)}}}}function h1(a,y,x,E,b,z,ee){for(var re=a.ac,ae=y,le=x;;){if(ae===b&&le===z)return!0;var ce=ae,fe=le;if(E===0)if(ce<b)ce++;else break;else if(E===90)if(fe<z)fe++;else break;else if(E===180)if(ce>b)ce--;else break;else if(fe>z)fe--;else break;var Se=re[ce][fe];if(Se===0||Se===iy)break;ae=ce,le=fe}for(;;){if(ce=E,fe=ae,Se=le,E===0?Se<z?(ce=90,Se++):Se>z&&(ce=270,Se--):E===90?fe<b?(ce=0,fe++):fe>b&&(ce=180,fe--):E===180?Se<z?(ce=90,Se++):Se>z&&(ce=270,Se--):fe<b?(ce=0,fe++):fe>b&&(ce=180,fe--),fe=re[fe][Se],ce!==E&&fe!==0&&fe!==iy){if(ee.push(ae),ee.push(le),h1(a,ae,le,ce,b,z,ee))return!0;ee.pop(),ee.pop()}if(re[ae][le]=iy,E===0){if(ae===y)return!1;ae--}else if(E===90){if(le===x)return!1;le--}else if(E===180){if(ae===y)return!1;ae++}else{if(le===x)return!1;le++}}}un.Object.defineProperties(zp.prototype,{bounds:{get:function(){return new cn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var of=0,$f=1,Jg=999999,ny=Jg+1,iy=Jg+2;zp.className="PositionArray";function vg(){Po(this),this.port=this.node=null,this.pe=[],this.ap=!1}vg.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
`+E.toString())}return y};function jx(a,y,x,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}vg.prototype.Sl=function(){this.pe.length=0};function d1(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Io?b:null;if(z===null||z.isSubGraphExpanded)var ee=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ee=E.Lu()}z=a.pe.length=0;var re=a.port.ga(Rs,at.alloc()),ae=a.port.ga(eu,at.alloc());for(b=cn.allocAt(re.x,re.y,0,0),b.Ye(ae),at.free(re),at.free(ae),re=at.allocAt(b.x+b.width/2,b.y+b.height/2),ae=a.port.li(),ee=ee.iterator;ee.next();){var le=ee.value;if(le.isVisible()&&le.fromPort!==le.toPort){var ce=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(E),fe=le.computeSpot(ce,a.port);if(fe.$c()&&(ce=ce?le.toPort:le.fromPort,ce!==null)){var Se=ce.part;if(Se!==null){var we=Se.findVisibleNode();we!==null&&we!==Se&&(Se=we,ce=Se.port),ce=le.computeOtherPoint(Se,ce),Se=re.ab(ce),Se-=ae,0>Se?Se+=360:360<=Se&&(Se-=360),fe=jx(b,fe,Se,le.isOrthogonal),fe===0?(fe=4,180<Se&&(Se-=360)):fe===90?(fe=8,270<Se&&(Se-=360)):fe===180?fe=2:(fe=1,90>Se&&(Se+=360)),we=a.pe[z],we===void 0?(we=new ry(le,Se,fe),a.pe[z]=we):(we.link=le,we.angle=Se,we.Nc=fe),we.hv.set(ce),z++}}}}for(at.free(re),a.pe.sort(vg.prototype.j),ae=a.pe.length,E=-1,z=re=0;z<ae;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==E&&(E=ee.Nc,re=0),ee.Uo=re,re++);for(E=-1,re=0,z=ae-1;0<=z;z--)ae=a.pe[z],ae!==void 0&&(ae.Nc!==E&&(E=ae.Nc,re=ae.Uo+1),ae.Gl=re);if(z=a.pe,fe=a.port,E=a.node.portSpreading,re=at.alloc(),ae=at.alloc(),ee=at.alloc(),le=at.alloc(),fe.ga(Rs,re),fe.ga(zu,ae),fe.ga(eu,ee),fe.ga(Fl,le),we=Se=ce=fe=0,E===Y0)for(var Ae=0;Ae<z.length;Ae++){var De=z[Ae];if(De!==null){var nt=De.link.computeThickness();switch(De.Nc){case 8:Se+=nt;break;case 2:we+=nt;break;case 1:fe+=nt;break;default:case 4:ce+=nt}}}var Ze=Ae=0,dt=1,mt=De=0;for(nt=0;nt<z.length;nt++){var xt=z[nt];if(xt!==null){if(Ae!==xt.Nc){switch(Ae=xt.Nc,Ae){case 8:var Ot=ee;Ze=le;break;case 2:Ot=le,Ze=re;break;case 1:Ot=re,Ze=ae;break;default:case 4:Ot=ae,Ze=ee}switch(De=Ze.x-Ot.x,mt=Ze.y-Ot.y,Ae){case 8:Se>Math.abs(De)?(dt=Math.abs(De)/Se,Se=Math.abs(De)):dt=1;break;case 2:we>Math.abs(mt)?(dt=Math.abs(mt)/we,we=Math.abs(mt)):dt=1;break;case 1:fe>Math.abs(De)?(dt=Math.abs(De)/fe,fe=Math.abs(De)):dt=1;break;default:case 4:ce>Math.abs(mt)?(dt=Math.abs(mt)/ce,ce=Math.abs(mt)):dt=1}Ze=0}var en=xt.Zo;if(E===Y0){switch(xt=xt.link.computeThickness(),xt*=dt,en.set(Ot),Ae){case 8:en.x=Ot.x+De/2+Se/2-Ze-xt/2;break;case 2:en.y=Ot.y+mt/2+we/2-Ze-xt/2;break;case 1:en.x=Ot.x+De/2-fe/2+Ze+xt/2;break;default:case 4:en.y=Ot.y+mt/2-ce/2+Ze+xt/2}Ze+=xt}else{var zi=.5;E===Jm&&(zi=(xt.Uo+1)/(xt.Gl+1)),en.x=Ot.x+De*zi,en.y=Ot.y+mt*zi}}}for(at.free(re),at.free(ae),at.free(ee),at.free(le),Ot=a.pe,z=0;z<Ot.length;z++)E=Ot[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,cn.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}vg.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},vg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,hl,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},vg.className="Knot";function ry(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new at,this.Gl=this.Uo=0,this.Zo=new at,this.Ju=0}ry.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ry.className="LinkInfo";function $s(a){Po(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new at(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}$s.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},$s.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},$s.prototype.qb=function(){},$s.prototype.toString=function(){var a=io(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},$s.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},$s.prototype.createNetwork=function(){return new Fs(this)},$s.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof At?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Io?y.lg(a.memberParts):y.lg(a.iterator),y},$s.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},$s.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},$s.prototype.doLayout=function(a){var y=new An;a instanceof At?(Ef(this,y,a.nodes,!0,this.rh,!0,!1,!0),Ef(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Io?Ef(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},$s.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;Wp(re);var ae=re.measuredBounds,le=ae.width;ae=ae.height,re.moveTo(E,b),re instanceof Io&&(re.rh=!1),E+=Math.max(le,50)+20,ee=Math.max(ee,Math.max(ae,50)),z>=y-1?(z=0,E=x,b+=ee+20,ee=0):z++}},$s.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof yi)&&(Wp(re),this.rh(re))){var ae=re.measuredBounds,le=ae.width;ae=ae.height,re.moveTo(x,E),re instanceof Io&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(ae,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},$s.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Io&&a.rh)};function Ef(a,y,x,E,b,z,ee,re){for(x=x.iterator;x.next();){var ae=x.value;E&&!ae.isTopLevel||b!==null&&!b(ae)||!ae.canLayout()||(z&&ae instanceof Gi?ae.isLinkLabel||(ae instanceof Io&&ae.layout===null?Ef(a,y,ae.memberParts,!1,b,z,ee,re):(Wp(ae),y.add(ae))):ee&&ae instanceof yi?y.add(ae):!re||!ae.Zc()||ae instanceof Gi||(Wp(ae),y.add(ae)))}}function Wp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}$s.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new cn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},$s.prototype.ex=function(a){var y=new An;return a instanceof At?(Ef(this,y,a.nodes,!0,null,!0,!0,!0),Ef(this,y,a.links,!0,null,!0,!0,!0),Ef(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Io?Ef(this,y,a.memberParts,!1,null,!0,!0,!0):Ef(this,y,a.iterator,!1,null,!0,!0,!0),y},$s.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Rs),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},un.Object.defineProperties($s.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),$s.prototype.collectParts=$s.prototype.ex,$s.prototype.getLayoutBounds=$s.prototype.ni,$s.prototype.invalidateLayout=$s.prototype.C,$s.className="Layout";function Fs(a){Po(this),this.Sc=a,this.wf=new An,this.ye=new An,this.Es=new wr,this.zs=new wr}Fs.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new An,this.ye=new An,this.Es=new wr,this.zs=new wr},Fs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
`+x.value.toString(a-1)}return y},Fs.prototype.createVertex=function(){return new _l(this)},Fs.prototype.createEdge=function(){return new Oc(this)},Fs.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof Gi)return!ee.isLinkLabel;if(ee instanceof yi){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof Gi&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Io&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof yi&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},Fs.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Ee=Fs.prototype,Ee.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ee.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},Ee.Iu=function(a){if(a!==null&&f1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function f1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Ee.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ee.ki=function(a){return a===null?null:this.Es.I(a)},Ee.Bo=function(a){if(a!==null){oy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function oy(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Ee.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},Ee.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ay(this,a)}};function ay(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ee.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ee.Lo=function(a){return a===null?null:this.zs.I(a)},Ee.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},Ee.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},Ee.Ko=function(){for(var a=hr(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);Nr(a)},Fs.prototype.deleteArtificialVertexes=function(){for(var a=hr(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=hr(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);Nr(a),Nr(y)};function zx(a){for(var y=hr(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);Nr(y)}Fs.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),zx(this),this.Ko()),a=new _n;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),sy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function sy(a,y,x){if(x!==null&&x.network!==y){f1(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ay(a,b),oy(y,b),sy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ay(a,x),oy(y,x),sy(a,y,x.toVertex))}}Fs.prototype.dz=function(){for(var a=new An,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},un.Object.defineProperties(Fs.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Fs.prototype.findAllParts=Fs.prototype.dz,Fs.prototype.splitIntoSubNetworks=Fs.prototype.Zx,Fs.prototype.deleteSelfEdges=Fs.prototype.Ko,Fs.prototype.reverseEdge=Fs.prototype.gm,Fs.prototype.linkVertexes=Fs.prototype.Zj,Fs.prototype.findEdge=Fs.prototype.Lo,Fs.prototype.deleteLink=Fs.prototype.Yy,Fs.prototype.deleteEdge=Fs.prototype.Mj,Fs.prototype.addLink=Fs.prototype.Dy,Fs.prototype.addEdge=Fs.prototype.Bo,Fs.prototype.findVertex=Fs.prototype.ki,Fs.prototype.deleteNode=Fs.prototype.Zy,Fs.prototype.deleteVertex=Fs.prototype.Iu,Fs.prototype.addNode=Fs.prototype.Bl,Fs.prototype.addVertex=Fs.prototype.dh,Fs.prototype.addParts=Fs.prototype.lg,Fs.className="LayoutNetwork";function _l(a){Po(this),this.ob=a,this.j=new cn(0,0,10,10).freeze(),this.o=new at(5,5).freeze(),this.Sh=this.ub=null,this.tg=new _n,this.mg=new _n}_l.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new _n,this.mg=new _n},_l.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+ds(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},_l.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;wn(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Io)){x=cn.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(Sa);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),cn.free(x);return}cn.free(x)}a.moveTo(y.x,y.y)}},_l.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},_l.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},_l.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},_l.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ly(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}un.Object.defineProperties(_l.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=cn.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),cn.free(x),!(a instanceof Io)&&(a=a.locationObject.ga(Sa),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new An,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new An,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new An,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new _n,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),_l.prototype.deleteDestinationEdge=_l.prototype.Jl,_l.prototype.addDestinationEdge=_l.prototype.zl,_l.prototype.deleteSourceEdge=_l.prototype.Kl,_l.prototype.addSourceEdge=_l.prototype.Cl,_l.className="LayoutVertex",_l.standardComparer=ly,_l.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Oc(a){Po(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Oc.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Oc.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+ds(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},Oc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Oc.prototype.commit=function(){},Oc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},un.Object.defineProperties(Oc.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Oc.prototype.getOtherVertex=Oc.prototype.Ax,Oc.className="LayoutEdge";function xu(a){$s.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new fn(NaN,NaN).freeze(),this.tf=new fn(10,10).freeze(),this.Jb=Hp,this.Rb=cv,this.nd=_p,this.hd=g1,a&&Object.assign(this,a)}Ft(xu,$s),xu.prototype.cloneProtected=function(a){$s.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},xu.prototype.qb=function(a){a.classType===xu?a===_p||a===dv||a===uy||a===hv?this.sorting=a:a===cv||a===jh?this.arrangement=a:a===Hp||a===uv?this.alignment=a:tn("Unknown enum value: "+a):$s.prototype.qb.call(this,a)},xu.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Io)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case hv:b.reverse();break;case _p:b.sort(this.comparer);break;case dv:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case uv:var re=y,ae=x,le=cn.alloc(),ce=Math.max(this.cellSize.width,1);if(!isFinite(ce))for(var fe=ce=0;fe<b.length;fe++){var Se=this.ni(b[fe],le);ce=Math.max(ce,Se.width)}if(ce=Math.max(ce+re,1),fe=Math.max(this.cellSize.height,1),!isFinite(fe))for(Se=fe=0;Se<b.length;Se++){var we=this.ni(b[Se],le);fe=Math.max(fe,we.height)}fe=Math.max(fe+ae,1),Se=this.arrangement;for(var Ae=we=this.arrangementOrigin.x,De=this.arrangementOrigin.y,nt=0,Ze=0,dt=0;dt<b.length;dt++){var mt=b[dt],xt=this.ni(mt,le),Ot=Math.ceil((xt.width+re)/ce)*ce,en=Math.ceil((xt.height+ae)/fe)*fe;switch(Se){case jh:var zi=Math.abs(Ae-xt.width);break;default:zi=Ae+xt.width}switch((0<z&&nt>z-1||0<ee&&0<nt&&zi-we>ee)&&(E.push(new cn(0,De,ee+re,Ze)),nt=0,Ae=we,De+=Ze,Ze=0),Ze=Math.max(Ze,en),Se){case jh:xt=-xt.width;break;default:xt=0}switch(mt.moveTo(Ae+xt,De),Se){case jh:Ae-=Ot;break;default:Ae+=Ot}nt++}E.push(new cn(0,De,ee+re,Ze)),cn.free(le);break;case Hp:for(ae=ee,ce=z,fe=y,Se=x,ee=cn.alloc(),we=Math.max(this.cellSize.width,1),z=De=le=0,re=at.alloc(),Ae=0;Ae<b.length;Ae++)Ze=b[Ae],nt=this.ni(Ze,ee),Ze=ef(Ze,Ze.locationObject,Ze.locationSpot,re),le=Math.max(le,Ze.x),De=Math.max(De,nt.width-Ze.x),z=Math.max(z,Ze.y);switch(Ae=this.arrangement,Ae){case jh:le+=fe;break;default:De+=fe}we=isFinite(we)?Math.max(we+fe,1):Math.max(le+De,1);var dr=Ze=this.arrangementOrigin.x;for(dt=this.arrangementOrigin.y,De=0,ae>=le&&(ae-=le),le=mt=0,Ot=Math.max(this.cellSize.height,1),xt=z=0,en=!0,nt=at.alloc(),zi=0;zi<b.length;zi++){var tr=b[zi],mi=this.ni(tr,ee),Gn=ef(tr,tr.locationObject,tr.locationSpot,re);if(0<De)switch(Ae){case jh:dr=(dr-Ze-(mi.width-Gn.x))/we,dr=Rt.$(Math.round(dr),dr)?Math.round(dr):Math.floor(dr),dr=dr*we+Ze;break;default:dr=(dr-Ze+Gn.x)/we,dr=Rt.$(Math.round(dr),dr)?Math.round(dr):Math.ceil(dr),dr=dr*we+Ze}else switch(Ae){case jh:mt=dr+Gn.x+mi.width;break;default:mt=dr-Gn.x}switch(Ae){case jh:var Bo=-(dr+Gn.x)+mt;break;default:Bo=dr+mi.width-Gn.x-mt}if(0<ce&&De>ce-1||0<ae&&0<De&&Bo>ae){for(E.push(new cn(0,en?dt-z:dt,ae+fe,xt+z+Se)),dr=0;dr<De&&zi!==De;dr++){Bo=b[zi-De+dr];var xo=ef(Bo,Bo.locationObject,Bo.locationSpot,nt);Bo.moveTo(Bo.position.x,Bo.position.y+z-xo.y)}xt+=Se,dt=en?dt+xt:dt+(xt+z),De=xt=z=0,dr=Ze,en=!1}switch(dr===Ze&&(le=Ae===jh?Math.max(le,mi.width-Gn.x):Math.min(le,-Gn.x)),z=Math.max(z,Gn.y),xt=Math.max(xt,mi.height-Gn.y),isFinite(Ot)&&(xt=Math.max(xt,Math.max(mi.height,Ot)-Gn.y)),en?tr.moveTo(dr-Gn.x,dt-Gn.y):tr.moveTo(dr-Gn.x,dt),Ae){case jh:dr-=Gn.x+fe;break;default:dr+=mi.width-Gn.x+fe}De++}if(E.push(new cn(0,dt,ae+fe,(en?xt:xt+z)+Se)),b.length!==De)for(ae=0;ae<De;ae++)ce=b[b.length-De+ae],fe=ef(ce,ce.locationObject,ce.locationSpot,re),ce.moveTo(ce.position.x,ce.position.y+z-fe.y);if(at.free(re),at.free(nt),Ae===jh)for(b=0;b<E.length;b++)z=E[b],z.width+=le,z.x-=le;else for(b=0;b<E.length;b++)z=E[b],z.x>le&&(z.width+=z.x-le,z.x=le);cn.free(ee)}for(re=z=ee=b=0;re<E.length;re++)ae=E[re],b=Math.min(b,ae.x),ee=Math.min(ee,ae.y),z=Math.max(z,ae.x+ae.width);this.arrangement===jh?this.commitLayers(E,new at(b+y/2-(z+b),ee-x/2)):this.commitLayers(E,new at(b-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},xu.prototype.commitLayers=function(){};function g1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}un.Object.defineProperties(xu.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Hp&&a!==uv||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==cv&&a!==jh||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==uy&&a!==hv&&a!==_p&&a!==dv||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var uv=new ln(xu,"Position",0),Hp=new ln(xu,"Location",1),cv=new ln(xu,"LeftToRight",2),jh=new ln(xu,"RightToLeft",3),uy=new ln(xu,"Forward",4),hv=new ln(xu,"Reverse",5),_p=new ln(xu,"Ascending",6),dv=new ln(xu,"Descending",7);xu.className="GridLayout",xu.standardComparer=g1,xu.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},xu.Position=uv,xu.Location=Hp,xu.LeftToRight=cv,xu.RightToLeft=jh,xu.Forward=uy,xu.Reverse=hv,xu.Ascending=_p,xu.Descending=dv;function ss(){this.On=new An,this.Dn=new An,this.Pa=new An,this.cf=new wr,this.bf=new wr,this.aj=new wr,this.H=null,this.tp=!1}Ee=ss.prototype,Ee.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ee.Xe=function(a){this.H=a},Ee.oi=function(a){if(a instanceof Gi){if(this.On.add(a),a instanceof Io){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof yi?this.Dn.add(a):a instanceof Ga||this.Pa.add(a);y=a.data,y===null||a instanceof Ga||(a instanceof yi?this.bf.add(y,a):this.cf.add(y,a))},Ee.pc=function(a){if(a.Ej(),a instanceof Gi){if(this.On.remove(a),a instanceof Io){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof yi?this.Dn.remove(a):a instanceof Ga||this.Pa.remove(a);y=a.data,y===null||a instanceof Ga||(a instanceof yi?this.bf.remove(y):this.cf.remove(y))},Ee.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Io)&&tn('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Io||tn('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof yi||tn('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=hr(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=hr(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=hr(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);Nr(y),Nr(x),Nr(a)}},ss.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ss.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&p1(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&is(this.diagram,!1)};function p1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=m1(a,y,E);if(b!==null&&(fh(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break e}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}ss.prototype.insertLink=function(){return null},ss.prototype.resolveReferencesForData=function(){},ss.prototype.Ro=function(a){return this.H.model.Ro(a)};function m1(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(S1||(S1=!0,Or('No Group template found for category "'+x+'"'),Or(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(y1||(y1=!0,Or('No Node template found for category "'+x+'"'),Or(" Using default node template")),y=a.ny))),y}ss.prototype.getLinkCategoryForData=function(){return""},ss.prototype.setLinkCategoryForData=function(){},ss.prototype.setFromNodeForLink=function(){},ss.prototype.setToNodeForLink=function(){},ss.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(x1||(x1=!0,Or('No Link template found for category "'+a+'"'),Or(" Using default link template")),x=y.my)),x},ss.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ss.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},ss.prototype.ip=function(a){a=this.Lc(a),a!==null&&(ws(this.diagram,a,!1),this.unresolveReferencesForPart(a))},ss.prototype.unresolveReferencesForPart=function(){},ss.prototype.removeDataForLink=function(){},ss.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},ss.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Gi?a:null)},ss.prototype.findLinkForKey=function(){return null},Ee=ss.prototype,Ee.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ee.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Gi?a:null)},Ee.Kc=function(a){return a===null?null:this.bf.I(a)},Ee.ms=function(a){for(var y=0;y<arguments.length;++y);y=new An;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(wn(ee)&&cy(this,b,ee)){y.add(E);break}}}return y.iterator},Ee.ls=function(a){for(var y=0;y<arguments.length;++y);y=new An;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(wn(ee)&&cy(this,b,ee)){y.add(E);break}}}return y.iterator};function cy(a,y,x){for(var E in x){var b=y[E],z=x[E];if(or(z)){if(!or(b)||b.length<z.length)return!1;for(var ee=0;ee<b.length;ee++){var re=z[ee];if(re!==void 0&&!v1(a,b[ee],re))return!1}}else if(!v1(a,b,z))return!1}return!0}function v1(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(wn(y)&&wn(x)){if(!cy(a,y,x))return!1}else if(y!==x)return!1;return!0}ss.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(x===As){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Ms){var ee=a.newValue;E==="nodeDataArray"&&wn(ee)&&p1(this,ee),y.isModified=!0}else if(x===Zs){var re=a.oldValue;E==="nodeDataArray"&&wn(re)&&this.ip(re),y.isModified=!0}else x===vu&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===As){var ae=a.propertyName,le=a.object;le===y.model?(ae==="nodeKeyProperty"||ae==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,ae),y.isModified=!0}else if(x===Ms||x===Zs){var ce=a.change===Ms,fe=ce?a.newParam:a.oldParam,Se=ce?a.newValue:a.oldValue,we=this.aj.I(a.object);if(Array.isArray(we))for(a=0;a<we.length;a++){var Ae=we[a];if(ce)Nm(Ae,Se,fe,!0);else if(!(0>fe)){var De=fe+Cp(Ae);Ae.pc(De,!0),E0(Ae,De,fe)}}y.isModified=!0}}finally{y.aa=!0}}}}},ss.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},ss.prototype.rp=function(){for(var a=this.H.model,y=new An,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),b.forEach(function(ee){k1(a,ee,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&L1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},ss.prototype.refreshDataBoundLinks=function(){},ss.prototype.updateRelationshipsFromData=function(){},ss.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var ee=b[z].sx(a);ee!==null&&(x===null&&(x=hr()),x.push(ee))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);Nr(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function hy(a,y){var x=y.Hh;if(or(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function dy(a,y,x){Zf(y,function(ee){ee=ee.O.s;for(var re=ee.length,ae=0;ae<re;ae++)Nu(x,ee[ae])});var E=y.Hh;if(or(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}ss.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new wr;if(or(a))for(var b=0;b<a.length;b++)fv(this,a[b],y,E,x);else for(a=a.iterator;a.next();)fv(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new An;for(var z=new wr,ee=E.iterator;ee.next();){var re=ee.value;if(re instanceof yi)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof Gi&&re.data!==null&&x.Tl()){var ae=re;re=ee.key;var le=re.pg();le!==null&&(le=E.I(le),le!==null?(x.qe(ae.data,x.wa(le.data)),ae=y.Kc(ae.data),re=re.kh(),re!==null&&ae!==null&&z.add(re,ae)):x.qe(ae.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ce=new wr;E.each(function(fe){fe.key.data!==null&&ce.add(fe.key.data,fe.value.data)}),x(ce,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function fv(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof zr))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Gi){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var ae=E.I(re);ae!==null&&(ae.fromNode=z)}re.toNode===y&&(re=E.I(re),re!==null&&(re.toNode=z))}if(y instanceof Io&&z instanceof Io)for(y=y.memberParts;y.next();)ee=fv(a,y.value,x,E,b),ee instanceof yi||ee===null||(ee.containingGroup=z)}else if(y instanceof yi&&z instanceof yi)for(ee=y.fromNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=fv(a,y.value,x,E,b),ee!==null&&ee instanceof Gi&&(ee.labeledLink=z);return z}ss.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof yi||(E=b.copyNodeData(E),wn(E)&&(b.xf(E),x=y.Lc(E)))}else fh(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof yi||(b=y.copyNodeData(E)),wn(b)&&(x.data=b)));return x},un.Object.defineProperties(ss.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),ss.prototype.updateAllRelationshipsFromData=ss.prototype.rp,ss.prototype.findLinksByExample=ss.prototype.ls,ss.prototype.findNodesByExample=ss.prototype.ms,ss.prototype.findLinkForData=ss.prototype.Kc,ss.prototype.findNodeForData=ss.prototype.ii,ss.prototype.findPartForData=ss.prototype.Lc,ss.prototype.findNodeForKey=ss.prototype.Vb,ss.prototype.removeModeledPart=ss.prototype.ip,ss.prototype.removeModeledParts=ss.prototype.Gs,ss.prototype.rebuildParts=ss.prototype.Wd;var y1=!1,S1=!1,x1=!1;ss.className="PartManager";function iu(a){ss.apply(this,arguments)}Ft(iu,ss),iu.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),w1(this,a.linkDataArray)},iu.prototype.addModeledParts=function(a){for(ss.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Ug(a.value);is(this.diagram,!1)};function w1(a,y){y.forEach(function(x){P1(a,x)}),is(a.diagram,!1)}function P1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){fh(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=vv(x,y,!0);z!==""&&(b.fromPortId=z),z=Zc(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Gi&&(b.fromNode=z)),z=vv(x,y,!1),z!==""&&(b.toPortId=z),z=Zc(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Gi&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}iu.prototype.removeAllModeledParts=function(){var a=this.diagram.model;C1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function C1(a,y){y.forEach(function(x){a.ip(x)})}iu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},iu.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},iu.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},iu.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},iu.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},iu.prototype.findPartForKey=function(a){var y=ss.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},iu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},iu.prototype.doModelChanged=function(a){var y=this;if(ss.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===As){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(b==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var ae=this.Vb(a.newValue);re.toNode=ae}}else if(b==="linkFromPortId"){var le=this.Kc(a.object);if(le!==null){var ce=a.newValue;typeof ce=="string"&&(le.fromPortId=ce)}}else if(b==="linkToPortId"){var fe=this.Kc(a.object);if(fe!==null){var Se=a.newValue;typeof Se=="string"&&(fe.toPortId=Se)}}else if(b==="nodeGroupKey"){var we=this.Lc(a.object);if(we!==null){var Ae=a.newValue;if(Ae!==void 0){var De=this.Vb(Ae);De instanceof Io?we.containingGroup=De:we.containingGroup=null}else we.containingGroup=null}}else if(b==="linkLabelKeys"){var nt=this.Kc(a.object);if(nt!==null){var Ze=a.oldValue,dt=a.newValue;Array.isArray(Ze)&&Ze.forEach(function(Gn){0<=dt.indexOf(Gn)||(Gn=y.Vb(Gn),Gn!==null&&(Gn.labeledLink=null))}),Array.isArray(dt)&&dt.forEach(function(Gn){Gn=y.Vb(Gn),Gn!==null&&(Gn.labeledLink=nt)})}}else if(b==="linkCategory"){var mt=this.Kc(a.object),xt=a.newValue;mt!==null&&typeof xt=="string"&&(mt.category=xt)}else b==="linkDataArray"&&(C1(this,a.oldValue),w1(this,a.newValue));x.isModified=!0}else if(E===Ms){var Ot=a.newValue;if(b==="linkDataArray"&&typeof Ot=="object"&&Ot!==null)P1(this,Ot);else if(b==="linkLabelKeys"&&Af(Ot)){var en=this.Kc(a.object),zi=this.Vb(Ot);en!==null&&zi!==null&&(zi.labeledLink=en)}x.isModified=!0}else if(E===Zs){var dr=a.oldValue;if(b==="linkDataArray"&&typeof dr=="object"&&dr!==null)this.ip(dr);else if(b==="linkLabelKeys"&&Af(dr)){var tr=this.Vb(dr);tr!==null&&(tr.labeledLink=null)}x.isModified=!0}}else if(E===As){var mi=a.propertyName;a.object!==x.model||mi!=="linkFromKeyProperty"&&mi!=="linkToKeyProperty"&&mi!=="linkFromPortIdProperty"&&mi!=="linkToPortIdProperty"&&mi!=="linkLabelKeysProperty"&&mi!=="nodeIsGroupProperty"&&mi!=="nodeGroupKeyProperty"&&mi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},iu.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new An,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){O1(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&B1(y,z,!1)})},iu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof yi){var b=Zc(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=Zc(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new An().addAll(y);var ee=new An;a.labelNodes.each(function(re){re.data!==null&&(re=E.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(b),b=b.copy(),b.hp(ee),(0<y.count||0<b.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Ga)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Io)&&(a.containingGroup=y)}}},iu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Vp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var ee=E.value;y.lb(ee)?b instanceof Io&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof Gi&&(Zc(y,ee,!0)===x&&(z.link.fromNode=b),Zc(y,ee,!1)===x&&(z.link.toNode=b),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(ae){return ae===x?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}Wh(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Io&&(b.containingGroup=a))}},iu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Gi){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)zh(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&zh(y,x,E.data)),a instanceof Io)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&zh(y,x,E)}}},iu.prototype.copyPartData=function(a,y){var x=ss.prototype.copyPartData.call(this,a,y);if(a instanceof yi)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},iu.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,ee=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=ee.archetypeLinkData,E instanceof yi){if(fh(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,b.add(z),a=ee.archetypeLabelNodeData,a instanceof Gi&&(fh(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&qg(z,E,z.wa(a.data),!0),$g(z,E,re,!0),x!==null&&qg(z,E,z.wa(x.data),!1),$g(z,E,y,!1),z.fi(E),a=ee.archetypeLabelNodeData,a===null||a instanceof Gi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},iu.prototype.findLinkForKey=iu.prototype.findLinkForKey,iu.prototype.findPartForKey=iu.prototype.findPartForKey,iu.prototype.removeAllModeledParts=iu.prototype.removeAllModeledParts,iu.prototype.addModeledParts=iu.prototype.addModeledParts,iu.prototype.addAllModeledParts=iu.prototype.addAllModeledParts,iu.className="GraphLinksPartManager";function nh(){ss.apply(this,arguments),this.Sg=null}Ft(nh,ss);function gv(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!_a(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(fh(E),E=E.copy(),E!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=ee}}}nh.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},nh.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},nh.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},nh.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},nh.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},nh.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},nh.prototype.doModelChanged=function(a){if(ss.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(x===As){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),ee=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:gv(this,z,ee)}}else if(E==="parentLinkCategory"){var ae=this.ii(a.object),le=a.newValue;if(ae!==null&&typeof le=="string"){var ce=ae.kh();ce!==null&&(ce.category=le)}}y.isModified=!0}}else if(x===As){var fe=a.propertyName;a.object===y.model&&fe==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},nh.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof Gi&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:gv(this,y,a):E!==null&&ws(x,E,!1)))}}},nh.prototype.updateDataBindings=function(a,y){ss.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},nh.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Vp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof Gi&&y.mh(z)===x&&gv(this,b,this.ii(z))}Wh(y,x)}a=y.mh(a),a!==void 0&&b instanceof Gi&&(a=this.Vb(a),gv(this,a,b))}},nh.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Gi){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(Zs,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&zh(y,x,b)}},nh.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},nh.prototype.findLinkForKey=nh.prototype.findLinkForKey,nh.className="TreePartManager";function yr(a,y){this.kl=new An,this.il=new An,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Po(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new wr,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new wr,this.Lt=new _n,this.Wg=!1,this.o=null,this.undoManager=new js,a!==void 0&&(or(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}yr.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},yr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},yr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},yr.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+va(b)}}return y},yr.prototype.xA=function(a){a.change!==vu&&tn("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Pl?(b1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},yr.prototype.Qv=function(a,y){var x=this,E=!1,b=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===Ms?b.add(fe.newValue):fe.change===Zs&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==As||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(Se){x.lb(Se)&&z.add(Se)}):fe.object instanceof yr||x.ri()&&x.Jc(fe.object)||A1(x,fe.object).each(function(Se){z.add(Se)})):E=!0)});var ae=this.il;ae.clear(),b.each(function(fe){ae.add(x.wa(fe)),y||z.add(fe)});var le=this.kl;le.clear(),ee.each(function(fe){le.add(x.wa(fe)),y&&z.add(fe)}),a=x.cloneDeep(z.Fa());var ce=null;return E&&(ce===null&&(ce={}),ce.modelData=this.cloneDeep(this.modelData)),0<ae.count&&(ce===null&&(ce={}),y?ce.removedNodeKeys=ae.Fa():ce.insertedNodeKeys=ae.Fa()),0<a.length&&(ce===null&&(ce={}),ce.modifiedNodeData=a),0<le.count&&(ce===null&&(ce={}),y?ce.insertedNodeKeys=le.Fa():ce.removedNodeKeys=le.Fa()),le.clear(),ae.clear(),ce},yr.prototype.cloneDeep=function(a){return Qg(this,a,!0)};function Qg(a,y,x,E,b,z){function ee(fe,Se){re?(fe.__gohashid===void 0&&z.push(fe),E.set(fe,Se)):(fe=kl++,E.set(fe,Se),b.set(fe,y))}if(!wn(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new wr),re){var ae=E.get(y);if(ae)return ae}else for(b||(b=new wr),ae=b.iterator;ae.next();){var le=ae.key;if(ae.value===y&&(le=E.get(le)))return le}if(Array.isArray(y)){ae=[],ee(y,ae);for(var ce=0;ce<y.length;ce++)ae.push(Qg(a,y[ce],!1,E,b,z))}else if(y instanceof at||y instanceof fn||y instanceof cn||y instanceof Mo||y instanceof kr)ae=y.copy(),ee(y,ae);else{if(y instanceof as||y instanceof fi||y instanceof ln)return y;if(y instanceof _n)ae=new _n().addAll(Qg(a,y.Fa(),!1,E,b,z)),ee(y,ae);else if(y instanceof An)ae=new An().addAll(Qg(a,y.Fa(),!1,E,b,z)),ee(y,ae);else if(y instanceof wr)ae=new wr().addAll(Qg(a,y.Fa(),!1,E,b,z)),ee(y,ae);else if(y instanceof Date)ae=new Date(y.getTime()),ee(y,ae);else if(y instanceof RegExp)ae=new RegExp(y),ee(y,ae),ae.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ae=y.copy(),ee(y,ae);else for(ce in ae={},ee(y,ae),y)ce!=="__gohashid"&&(ae[ce]=Qg(a,y[ce],!1,E,b,z))}return x&&z.forEach(function(fe){delete fe.__gohashid}),ae}Ee=yr.prototype,Ee.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ee.rm=function(){var a="";return this.name!==""&&(a+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},Ee.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function E1(a,y){y=y.modelData,wn(y)&&(a.dm(y),a.modelData=y)}Ee.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!M1(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+fy(this,this.modelData)),a+`,
"nodeDataArray": `+bf(this,this.nodeDataArray,!0)},Ee.kv=function(a){E1(this,a),a=a.nodeDataArray,or(a)&&(this.dm(a),this.nodeDataArray=a)};function b1(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var ee=E.get(b);ee===null?(ee=new An,ee.add(z),E.add(b,ee)):ee.add(z)}}var E=a.vh;E===null&&(E=new wr,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===As?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===Ms||z===Zs)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function A1(a,y){for(var x=new An,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];pv(a,y,b,b,x)}return x}function pv(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ee=x[z];if(ee===y)return b.add(E),!0;if(pv(a,y,ee,E,b))return!0}else if(wn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return b.add(E),!0;if(pv(a,y,ee,E,b))return!0}return!1}Ee.Pv=function(a,y){var x=this,E=!1,b=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ce){ce.model===x&&(ce.modelChange==="nodeDataArray"?ce.change===Ms?b.add(ce.newValue):ce.change===Zs&&ee.add(ce.oldValue):x.lb(ce.object)?z.add(ce.object):ce.change!==As||x.modelData!==ce.object&&ce.propertyName!=="modelData"?ce.object!==null&&(re&&re.contains(ce.object)?re.get(ce.object).each(function(fe){x.lb(fe)&&z.add(fe)}):ce.object instanceof yr||x.ri()&&x.Jc(ce.object)||A1(x,ce.object).each(function(fe){z.add(fe)})):E=!0)});var ae=this.il;ae.clear(),b.each(function(ce){ae.add(x.wa(ce)),y||z.add(ce)});var le=this.kl;return le.clear(),ee.each(function(ce){le.add(x.wa(ce)),y&&z.add(ce)}),a="",E&&(a+=`,
"modelData": `+fy(this,this.modelData)),0<ae.count&&(a+=(y?this.Yv:this.Wv)+bf(this,ae.Fa(),!0)),0<z.count&&(a+=this.jy+bf(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+bf(this,le.Fa(),!0)),le.clear(),ae.clear(),a},Ee.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&tn("applyIncrementalJson cannot change Model properties"),E1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new wr;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],ee=this.wa(z);ee!=null&&E.set(ee,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=E.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var ae in b)ae==="__gohashid"||ae===this.nodeKeyProperty||this.Wj()&&ae===this.nodeIsGroupProperty||this.setDataProperty(z,ae,b[ae]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ae=0;ae<x;ae++)y=this.hc(a[ae]),y!==null&&this.cm(y)},Ee.$x=function(a,y){a.change!==vu&&tn("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Pl?(y===void 0&&(y=Kp(this,this)),b1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Ee.yA=function(a,y){return this.$x(a,y)},Ee.np=function(a){return a===void 0&&(a=Kp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ee.toJSON=function(a){return this.np(a)},Ee.Zw=function(a){var y=null;if(typeof a=="string")try{y=Yt.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:tn("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&tn("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ee.Ky=function(a){return this.Zw(a)},yr.constructGraphLinksModel=function(){return new yr},Ee=yr.prototype,Ee.dm=function(a){if(or(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(wn(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:tn("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(wn(a)){for(y in a)if(x=a[y],wn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new _n,E=0;E<x.length/2;E++)b.add(new at(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Wx(a)}return a},Ee.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):or(a)?bf(this,a):wn(a)?fy(this,a):typeof a=="function"?"null":a.toString()};function bf(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new Va;b.add("["),x&&1<E&&b.add(`
`);for(var z=0;z<E;z++){var ee=y[z];ee!==void 0&&(0<z&&(b.add(","),x&&b.add(`
`)),b.add(a.sm(ee)))}return x&&1<E&&b.add(`
`),b.add("]"),b.toString()}function M1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function sc(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function fy(a,y){var x=y;if(x instanceof at)y={class:"go.Point",x:sc(x.x),y:sc(x.y)};else if(x instanceof fn)y={class:"go.Size",width:sc(x.width),height:sc(x.height)};else if(x instanceof cn)y={class:"go.Rect",x:sc(x.x),y:sc(x.y),width:sc(x.width),height:sc(x.height)};else if(x instanceof Mo)y={class:"go.Margin",top:sc(x.top),right:sc(x.right),bottom:sc(x.bottom),left:sc(x.left)};else if(x instanceof kr)x.sb()?y={class:"go.Spot",x:sc(x.x),y:sc(x.y),offsetX:sc(x.offsetX),offsetY:sc(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof as){if(y={class:"go.Brush",type:x.type.name},x.type===Qd?y.color=x.color:(x.type===Od||x.type===eh)&&(y.start=x.start,y.end=x.end,x.type===eh&&(x.startRadius!==0&&(y.startRadius=sc(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=sc(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof fi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=sc(x.startX)),x.startY!==0&&(y.startY=sc(x.startY)),x.endX!==0&&(y.endX=sc(x.endX)),x.endY!==0&&(y.endY=sc(x.endY)),x.spot1.D(Rs)||(y.spot1=x.spot1),x.spot2.D(eu)||(y.spot2=x.spot2),x.type===fi.o&&(y.path=fi.ia(x))):x instanceof ln&&(y={class:"go.EnumValue",classType:Kp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=Ll(y,b);if(!M1(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof _n){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",E+=ee}else E+=a.sm(z)}return E+"}"}function lc(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Wx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new at(lc(a.x),lc(a.y));else if(y==="Size")x=new fn(lc(a.width),lc(a.height));else if(y==="Rect")x=new cn(lc(a.x),lc(a.y),lc(a.width),lc(a.height));else if(y==="Margin")x=new Mo(lc(a.top),lc(a.right),lc(a.bottom),lc(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Wl(a.enum):x=new kr(lc(a.x),lc(a.y),lc(a.offsetX),lc(a.offsetY));else if(y==="Brush"){if(x=new as,x.type=Yo(as,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof kr&&(x.start=a.start),a.end instanceof kr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=lc(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=lc(a.endRadius)),a=a.colorStops,wn(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=fi.parse(a.path):x=new fi,x.type=Yo(fi,a.type),typeof a.startX=="number"&&(x.startX=lc(a.startX)),typeof a.startY=="number"&&(x.startY=lc(a.startY)),typeof a.endX=="number"&&(x.endX=lc(a.endX)),typeof a.endY=="number"&&(x.endY=lc(a.endY)),a.spot1 instanceof kr&&(x.spot1=a.spot1),a.spot2 instanceof kr&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=py(E),typeof E=="function"&&(x=Yo(E,a.name)));return x}Ee.Pe=function(a){return this.Lt.add(a),this},Ee.ik=function(a){this.Lt.remove(a)},Ee.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},Ee.cb=function(a,y,x,E,b,z,ee){zl(this,"",a,y,x,E,b,z,ee)},Ee.g=function(a,y,x,E,b){zl(this,"",As,a,this,y,x,E,b)},Ee.Fs=function(a,y,x,E,b,z){zl(this,"",As,y,a,x,E,b,z)};function zl(a,y,x,E,b,z,ee,re,ae){re===void 0&&(re=null),ae===void 0&&(ae=null);var le=new Bs;le.model=a,le.change=x,le.modelChange=y,le.propertyName=E,le.object=b,le.oldValue=z,le.oldParam=re,le.newValue=ee,le.newParam=ae,a.ds(le)}yr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===As){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),Qs(x,E,b)}else a.change===Ms?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,wn(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&aa(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&Na(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!or(E)&&a.propertyName&&(E=Ll(a.object,a.propertyName)),or(E)&&typeof x=="number"&&(a=a.newValue,y?aa(E,x):Na(E,x,a))):tn("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Zs?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,wn(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&Na(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&aa(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!or(E)&&a.propertyName&&(E=Ll(a.object,a.propertyName)),or(E)&&typeof x=="number"&&(a=a.oldValue,y?Na(E,x,a):aa(E,x))):tn("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==vu&&tn("unknown ChangedEvent: "+a.toString())},yr.prototype.Ea=function(a){return this.undoManager.Ea(a)},yr.prototype.eb=function(a){return this.undoManager.eb(a)},yr.prototype.Kf=function(){return this.undoManager.Kf()},yr.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ee=yr.prototype,Ee.La=function(a,y){y===void 0&&(y=""),zl(this,"SourceChanged",vu,y,a,null,null)},Ee.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Ll(a,y),y!==void 0)){if(Af(y))return y;tn("Key value for node data "+a+" is not a number or a string: "+y)}}},Ee.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=Ll(a,x);E!==y&&this.hc(y)===null&&(Qs(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),zl(this,"nodeKey",As,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else Qs(a,x,y)}};function Af(a){return typeof a=="number"||typeof a=="string"}Ee.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ee.hc=function(a){return a===null&&tn("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Af(a)?this.kb.I(a):null},Ee.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){Qs(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;Qs(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Qs(a,y,x)}}}}},Ee.xf=function(a){a!==null&&(Ws(a),this.lb(a)||L1(this,a,!0))};function L1(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&tn("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,Na(a.Tc,E,y)),zl(a,"nodeDataArray",Ms,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Ee.Fy=function(a){if(or(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},Ee.cm=function(a){a!==null&&k1(this,a,!0)};function k1(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){e:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break e}E=-1}if(0>E)return;aa(a.Tc,E)}zl(a,"nodeDataArray",Zs,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ee.nA=function(a){if(or(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},Ee.$z=function(a){if(a!==this.nodeDataArray&&or(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},Ee.jp=function(a,y){y!==void 0&&(a=Vp(this,a),a instanceof An&&this.Vf.add(y,a))},Ee.Lv=function(){},Ee.fm=function(){},Ee.em=function(){},Ee.qp=function(){};function zh(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new An,a.Vf.add(y,E)),E.add(x)}}function Wh(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof An&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function Vp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof An?a:null)}Ee.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},yr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):mv(this,a,!0),wn(a)&&Po(a),a};function mv(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=mv(a,y[x],a.copiesArrayObjects);E.push(b)}return Po(E),E}if(x&&wn(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=Ll(y,E),ee=Kp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof yr||z instanceof js||z instanceof Pl||z instanceof Bs||(z=mv(a,z,!1)),Qs(x,E,z)}return Po(x),x}return y instanceof at||y instanceof fn||y instanceof cn||y instanceof kr||y instanceof Mo?y.copy():y}yr.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!F1&&a instanceof bt&&(F1=!0,Or('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Or(" Is that really your intent?"));var E=Ll(a,y);E!==x&&(Qs(a,y,x),this.Fs(a,y,E,x))},Ee=yr.prototype,Ee.set=function(a,y,x){this.setDataProperty(a,y,x)},Ee.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},Ee.Ay=function(a,y){this.ts(a,-1,y)},Ee.ts=function(a,y,x){0>y&&(y=a.length),Na(a,y,x),zl(this,"",Ms,"",a,null,x,null,y)},Ee.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&tn("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];aa(a,y),zl(this,"",Zs,"",a,x,null,y,null)},Ee.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Ll(a,y),y===void 0))return"";if(typeof y=="string")return y;tn("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ee.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Ll(a,x);E===void 0&&(E=""),E!==y&&(Qs(a,x,y),zl(this,"nodeCategory",As,x,a,E,y))}else Qs(a,x,y)}},Ee.lm=function(a,y){this.jm(y,this.Ro(a))},Ee.Tl=function(){return!1},Ee.Wj=function(){return!1},Ee.ri=function(){return!1},Ee.xs=function(){return!1},Ee.Xj=function(){return!1};function gy(){return new yr}function Kp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Kp(a,y.constructor);return typeof y}function py(a){return Mh[a]?Mh[a]:Yt.go!==void 0&&Yt.go[a]?Yt.go[a]:null}function Ll(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Qs(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}un.Object.defineProperties(yr.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&tn("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&tn("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,E=0;E<x;E++){var b=a[E];wn(b)||tn("Model.nodeDataArray must only contain Objects, not: "+b),Ws(b)}for(this.Tc=a,E=new _n,b=0;b<x;b++){var z=a[b],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?E.add(z):this.kb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(zl(this,"nodeDataArray",As,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),yr.prototype.setCategoryForNodeData=yr.prototype.jm,yr.prototype.getCategoryForNodeData=yr.prototype.Ro,yr.prototype.removeArrayItem=yr.prototype.ov,yr.prototype.insertArrayItem=yr.prototype.ts,yr.prototype.addArrayItem=yr.prototype.Ay,yr.prototype.assignAllDataProperties=yr.prototype.Do,yr.prototype.set=yr.prototype.set,yr.prototype.clearUnresolvedReferences=yr.prototype.Qy,yr.prototype.mergeNodeDataArray=yr.prototype.$z,yr.prototype.removeNodeDataCollection=yr.prototype.nA,yr.prototype.removeNodeData=yr.prototype.cm,yr.prototype.addNodeDataCollection=yr.prototype.Fy,yr.prototype.addNodeData=yr.prototype.xf,yr.prototype.makeNodeDataKeyUnique=yr.prototype.$u,yr.prototype.findNodeDataForKey=yr.prototype.hc,yr.prototype.containsNodeData=yr.prototype.lb,yr.prototype.setKeyForNodeData=yr.prototype.km,yr.prototype.getKeyForNodeData=yr.prototype.wa,yr.prototype.updateTargetBindings=yr.prototype.La,yr.prototype.commit=yr.prototype.commit,yr.prototype.rollbackTransaction=yr.prototype.Kf,yr.prototype.commitTransaction=yr.prototype.eb,yr.prototype.startTransaction=yr.prototype.Ea,yr.prototype.raiseDataChanged=yr.prototype.Fs,yr.prototype.raiseChanged=yr.prototype.g,yr.prototype.raiseChangedEvent=yr.prototype.cb,yr.prototype.removeChangedListener=yr.prototype.ik,yr.prototype.addChangedListener=yr.prototype.Pe,yr.prototype.writeJsonValue=yr.prototype.sm,yr.prototype.replaceJsonObjects=yr.prototype.dm,yr.prototype.applyIncrementalJSON=yr.prototype.Ky,yr.prototype.applyIncrementalJson=yr.prototype.Zw,yr.prototype.toJSON=yr.prototype.toJSON,yr.prototype.toJson=yr.prototype.np,yr.prototype.toIncrementalJSON=yr.prototype.yA,yr.prototype.toIncrementalJson=yr.prototype.$x,yr.prototype.toIncrementalData=yr.prototype.xA,yr.prototype.clear=yr.prototype.clear;var F1=!1,Mh={};yr.className="Model",yr.fromJSON=yr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Yt.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:tn("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=py(E)):(b=py(E),b===null&&(b=Yt[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof yr?y=a:tn("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=yr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},yr.safePropertyValue=Ll,yr.safePropertySet=Qs,Mh.Brush=as,Mh.ChangedEvent=Bs,Mh.Geometry=fi,Mh.Margin=Mo,Mh.Panel=ci,Mh.Point=at,Mh.Rect=cn,Mh.Size=fn,Mh.Spot=kr,Mh.Transaction=Pl,Mh.UndoManager=js;function Dl(a,y,x,E){Po(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=D1,this.wk=null):(this.el=Gp,this.wk=E),this.st=new An}Dl.prototype.copy=function(){var a=new Dl;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Ee=Dl.prototype,Ee.qb=function(a){a.classType===Dl&&(this.mode=a)},Ee.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ee.freeze=function(){return this._isFrozen=!0,this},Ee.ka=function(){return this._isFrozen=!1,this},Ee.Kx=function(a){return a===void 0&&(a=null),this.mode=Gp,this.backConverter=a,this},Ee.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ee.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function N1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ee.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")Or("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=Ll(y,E)),z!==void 0)if(b===null)x!==""&&Qs(a,x,z);else try{if(x!==""){var ee=b(z,a);Qs(a,x,ee)}else b(z,a)}catch(re){}}}},Ee.sp=function(a,y,x,E){if(this.el===Gp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,ee=a;if(b!==""&&(ee=Ll(a,b)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=E!==null?E.diagram:null,ae=re!==null?re.model:null;if(z===null){if(x!=="")ae!==null?ae.setDataProperty(y,x,ee):Qs(y,x,ee);else if(ae!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var le=E.itemIndex,ce=E.panel.itemArray;ae.ov(ce,le),ae.ts(ce,le,ee)}}else try{if(x!==""){var fe=z(ee,y,ae);ae!==null?ae.setDataProperty(y,x,fe):Qs(y,x,fe)}else{var Se=z(ee,y,ae);if(Se!==void 0&&ae!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var we=E.itemIndex,Ae=E.panel.itemArray;ae.ov(Ae,we),ae.ts(Ae,we,Se)}}}catch(De){}}finally{this.st.remove(a)}}}},un.Object.defineProperties(Dl.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Vi(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Vi(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Vi(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Vi(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Vi(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Vi(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Vi(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Vi(this),this.el=a}}}),Dl.prototype.updateSource=Dl.prototype.sp,Dl.prototype.updateTarget=Dl.prototype.Mv,Dl.prototype.ofModel=Dl.prototype.dA,Dl.prototype.ofObject=Dl.prototype.cp,Dl.prototype.makeTwoWay=Dl.prototype.Kx;var Hx="Binding",D1=new ln(Dl,"OneWay",1),Gp=new ln(Dl,"TwoWay",2);Dl.className="Binding",Dl.parseEnum=function(a,y){return function(x){return x=Yo(a,x),x===null?y:x}},Dl.toString=va,Dl.OneWay=D1,Dl.TwoWay=Gp;function Ta(a,y,x){yr.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new An,this.wb=new wr,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(or(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Ft(Ta,yr),Ta.constructGraphLinksModel=yr.constructGraphLinksModel,Ta.prototype.cloneProtected=function(a){yr.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Ee=Ta.prototype,Ee.clear=function(){yr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ee.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+va(b)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+Zc(this,b,!0)+"-->"+Zc(this,b,!1)}return y},Ee.Qv=function(a,y){this.linkKeyProperty===""&&tn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=yr.prototype.Qv.call(this,a,y),E=this,b=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===Ms?b.add(ce.newValue):ce.change===Zs&&ee.add(ce.oldValue):E.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(fe){E.Jc(fe)&&z.add(fe)}):ce.object instanceof yr||E.lb(ce.object)||T1(E,ce.object).each(function(fe){z.add(fe)})))});var ae=this.il;ae.clear(),b.each(function(ce){ae.add(E.Ac(ce)),y||z.add(ce)});var le=this.kl;return le.clear(),ee.each(function(ce){le.add(E.Ac(ce)),y&&z.add(ce)}),a=E.cloneDeep(z.Fa()),0<ae.count&&(x===null&&(x={}),y?x.removedLinkKeys=ae.Fa():x.insertedLinkKeys=ae.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<le.count&&(x===null&&(x={}),y?x.insertedLinkKeys=le.Fa():x.removedLinkKeys=le.Fa()),le.clear(),ae.clear(),x},Ee.rm=function(){var a=yr.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Ee.gp=function(a){yr.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Ee.Rv=function(){var a=yr.prototype.Rv.call(this),y=`,
"linkDataArray": `+bf(this,this.linkDataArray,!0);return a+y},Ee.kv=function(a){yr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function T1(a,y){for(var x=new An,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];pv(a,y,b,b,x)}return x}Ee.Pv=function(a,y){this.linkKeyProperty===""&&tn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=yr.prototype.Pv.call(this,a,y),E=this,b=new An,z=new An,ee=new An,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===Ms?b.add(ce.newValue):ce.change===Zs&&ee.add(ce.oldValue):E.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(fe){E.Jc(fe)&&z.add(fe)}):ce.object instanceof yr||E.lb(ce.object)||T1(E,ce.object).each(function(fe){z.add(fe)})))});var ae=this.il;ae.clear(),b.each(function(ce){ae.add(E.Ac(ce)),y||z.add(ce)});var le=this.kl;return le.clear(),ee.each(function(ce){le.add(E.Ac(ce)),y&&z.add(ce)}),a=x,0<ae.count&&(a+=(y?this.Xv:this.Vv)+bf(this,ae.Fa(),!0)),0<z.count&&(a+=this.iy+bf(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+bf(this,le.Fa(),!0)),le.clear(),ae.clear(),a},Ee.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&tn("applyIncrementalJson cannot change Model properties"),yr.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var ee in b)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,b[ee]);I1(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Ta.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===As){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),Qs(x,E,b);return}}else if(a.change===Ms){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,wn(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Zs){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,wn(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}yr.prototype.changeState.call(this,a,y)}},Ee=Ta.prototype,Ee.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Qs(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ee.yx=function(a){return Zc(this,a,!0)},Ee.wv=function(a,y){qg(this,a,y,!0)},Ee.Bx=function(a){return Zc(this,a,!1)},Ee.Bv=function(a,y){qg(this,a,y,!1)};function Zc(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Ll(y,a),a!==void 0))){if(Af(a))return a;tn((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function qg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=Ll(y,b);z!==x&&(Wh(a,z,y),Qs(y,b,x),a.hc(x)===null&&zh(a,x,y),zl(a,E?"linkFromKey":"linkToKey",As,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Qs(y,b,x)}}Ee.zx=function(a){return vv(this,a,!0)},Ee.xv=function(a,y){$g(this,a,y,!0)},Ee.Cx=function(a){return vv(this,a,!1)},Ee.Cv=function(a,y){$g(this,a,y,!1)};function vv(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Ll(y,a),y===void 0?"":y)}function $g(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Ll(y,b);z===void 0&&(z=""),z!==x&&(Qs(y,b,x),zl(a,E?"linkFromPortId":"linkToPortId",As,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Qs(y,b,x)}}Ee.Ef=function(a){if(a===null)return yv;var y=this.je;return y===""?yv:(a=Ll(a,y),a===void 0?yv:a)},Ee.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Ll(a,x);if(E===void 0&&(E=yv),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)Wh(this,E[z],a);for(Qs(a,x,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&zh(this,ee,a)}zl(this,"linkLabelKeys",As,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else Qs(a,x,y)}},Ee.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Ll(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&zh(this,y,a),zl(this,"linkLabelKeys",Ms,x,a,null,y,null,b)))}else tn(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ee.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Ll(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(Wh(this,y,a),zl(this,"linkLabelKeys",Zs,x,a,y,null,b,null)))}else E!==void 0&&tn(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ee.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Ll(a,y),y!==void 0)){if(Af(y))return y;tn("Key value for link data "+a+" is not a number or a string: "+y)}}},Ee.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Ll(a,x);E!==y&&this.jh(y)===null&&(Qs(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),zl(this,"linkKey",As,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Qs(a,x,y)}},Ee.jh=function(a){return a===null&&tn("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Af(a)?this.wb.I(a):null},Ee.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Qs(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Qs(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Qs(a,y,x)}}}}},Ee.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ee.fi=function(a){a!==null&&(Ws(a),this.Jc(a)||B1(this,a,!0))};function B1(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&tn("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),zl(a,"linkDataArray",Ms,"linkDataArray",a,null,y,null,E),my(a,y)}Ee.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},Ee.bm=function(a){a!==null&&O1(this,a,!0)};function O1(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(zl(a,"linkDataArray",Zs,"linkDataArray",a,y,null,E,null),x=Zc(a,y,!0),Wh(a,x,y),x=Zc(a,y,!1),Wh(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],Wh(a,x,y)}Ee.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},Ee.Zz=function(a){if(this.linkKeyProperty===""&&tn("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&or(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),I1(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function my(a,y){var x=Zc(a,y,!0);x=a.Vl(x),a.hc(x)===null&&zh(a,x,y),x=Zc(a,y,!1),x=a.Vl(x),a.hc(x)===null&&zh(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&zh(a,x,y)}Ee.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):mv(this,a,!0),wn(a)&&(Po(a),this.lf!==""&&Qs(a,this.lf,void 0),this.mf!==""&&Qs(a,this.mf,void 0),this.je!==""&&Qs(a,this.je,[])),a},Ee.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Ll(a,y)},Ee.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Ll(a,y),y!==void 0)){if(Af(y))return y;tn("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ee.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=Ll(a,x);E!==y&&(Wh(this,E,a),Qs(a,x,y),this.hc(y)===null&&zh(this,y,a),zl(this,"nodeGroupKey",As,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Qs(a,x,y)}},Ta.prototype.copyNodeData=function(a){return a===null?null:(a=yr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Ll(a,this.Je)===void 0||Qs(a,this.Je,void 0),a)},Ta.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){qg(this,a,x,!0);return}if(y===this.linkToKeyProperty){qg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){$g(this,a,x,!0);return}if(y===this.linkToPortIdProperty){$g(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var E=Ll(a,y);E!==x&&(Qs(a,y,x),this.Fs(a,y,E,x))},Ee=Ta.prototype,Ee.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&Ll(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Ee.jp=function(a,y){yr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var E=x.value,b=a,z=y;if(Zc(this,E,!0)===b){var ee=this.lf;Qs(E,ee,z),zl(this,"linkFromKey",As,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)}if(Zc(this,E,!1)===b&&(ee=this.mf,Qs(E,ee,z),zl(this,"linkToKey",As,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)),ee=this.Ef(E),Array.isArray(ee))for(var re=ee.length,ae=this.je,le=0;le<re;le++)ee[le]===b&&(ee[le]=z,zl(this,"linkLabelKeys",Ms,ae,E,b,z,le,le))}},Ee.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;Qs(a,E,x),zl(this,"nodeGroupKey",As,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Ee.Lv=function(){yr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)my(this,a[x])},Ee.fm=function(a){yr.prototype.fm.call(this,a),a=this.wa(a);var y=Vp(this,a);if(y!==null){var x=hr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;zl(this,"nodeGroupKey",As,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(Zc(this,E,!0)===a&&(b=this.lf,zl(this,"linkFromKey",As,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),Zc(this,E,!1)===a&&(b=this.mf,zl(this,"linkToKey",As,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,ee=this.je,re=0;re<z;re++)b[re]===a&&(zl(this,"linkLabelKeys",Ms,ee,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)Wh(this,a,x[y]);Nr(x)}},Ee.em=function(a){yr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&zh(this,y,a)},Ee.qp=function(a){yr.prototype.qp.call(this,a);var y=this.lh(a);Wh(this,y,a)},Ee.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Ll(a,y),y===void 0))return"";if(typeof y=="string")return y;tn("getCategoryForLinkData found a non-string category for "+a+": "+y)},Ta.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Ta.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=Ll(a,x);E===void 0&&(E=""),E!==y&&(Qs(a,x,y),zl(this,"linkCategory",As,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Qs(a,x,y)}},Ta.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ee=Ta.prototype,Ee.lm=function(a,y){yr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function I1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Ee.Wj=function(){return!0},Ee.ri=function(){return!0},Ee.xs=function(){return!0},Ee.Xj=function(){return!0},un.Object.defineProperties(Ta.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,E=0;E<x;E++){var b=a[E];wn(b)||tn("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Ws(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new _n,b=0;b<x;b++){var z=a[b],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?E.add(z):this.wb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new An,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,zl(this,"linkDataArray",As,"linkDataArray",this,y,a),y=0;y<x;y++)my(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Ta.prototype.setCategoryForLinkData=Ta.prototype.lp,Ta.prototype.getCategoryForLinkData=Ta.prototype.ps,Ta.prototype.assignAllDataProperties=Ta.prototype.Do,Ta.prototype.setGroupKeyForNodeData=Ta.prototype.mp,Ta.prototype.getGroupKeyForNodeData=Ta.prototype.lh,Ta.prototype.isGroupForNodeData=Ta.prototype.Yu,Ta.prototype.copyLinkData=Ta.prototype.Jo,Ta.prototype.mergeLinkDataArray=Ta.prototype.Zz,Ta.prototype.removeLinkDataCollection=Ta.prototype.lA,Ta.prototype.removeLinkData=Ta.prototype.bm,Ta.prototype.addLinkDataCollection=Ta.prototype.Ey,Ta.prototype.addLinkData=Ta.prototype.fi,Ta.prototype.containsLinkData=Ta.prototype.Jc,Ta.prototype.makeLinkDataKeyUnique=Ta.prototype.Bs,Ta.prototype.findLinkDataForKey=Ta.prototype.jh,Ta.prototype.setKeyForLinkData=Ta.prototype.Ks,Ta.prototype.getKeyForLinkData=Ta.prototype.Ac,Ta.prototype.removeLabelKeyForLinkData=Ta.prototype.Qx,Ta.prototype.addLabelKeyForLinkData=Ta.prototype.Bu,Ta.prototype.setLabelKeysForLinkData=Ta.prototype.Ls,Ta.prototype.getLabelKeysForLinkData=Ta.prototype.Ef,Ta.prototype.setToPortIdForLinkData=Ta.prototype.Cv,Ta.prototype.getToPortIdForLinkData=Ta.prototype.Cx,Ta.prototype.setFromPortIdForLinkData=Ta.prototype.xv,Ta.prototype.getFromPortIdForLinkData=Ta.prototype.zx,Ta.prototype.setToKeyForLinkData=Ta.prototype.Bv,Ta.prototype.getToKeyForLinkData=Ta.prototype.Bx,Ta.prototype.setFromKeyForLinkData=Ta.prototype.wv,Ta.prototype.getFromKeyForLinkData=Ta.prototype.yx,Ta.prototype.clear=Ta.prototype.clear;var yv=Object.freeze([]);Ta.className="GraphLinksModel",Mh.GraphLinksModel=Ta,yr.constructGraphLinksModel=yr.constructGraphLinksModel=function(){return new Ta},yr.initDiagramModel=gy=function(){return new Ta};function uc(a,y){yr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(or(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ft(uc,yr),uc.constructGraphLinksModel=yr.constructGraphLinksModel,uc.prototype.cloneProtected=function(a){yr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ee=uc.prototype,Ee.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+va(b)}}return y},Ee.rm=function(){var a=yr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ee.gp=function(a){yr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ee.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&tn("applyIncrementalJson cannot change Model properties"),yr.prototype.fp.call(this,a)},Ee.Vl=function(a){return a},Ee.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Ll(a,y),y!==void 0)){if(Af(y))return y;tn("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ee.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=Ll(a,x);E!==y&&(Wh(this,E,a),Qs(a,x,y),this.hc(y)===null&&zh(this,y,a),zl(this,"nodeParentKey",As,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Qs(a,x,y)}},Ee.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Ll(a,y),y===void 0)?"":typeof y=="string"?y:(tn("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},uc.prototype.getLinkCategoryForData=function(a){return this.ss(a)},uc.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=Ll(a,x);E===void 0&&(E=""),E!==y&&(Qs(a,x,y),zl(this,"parentLinkCategory",As,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Qs(a,x,y)}},uc.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},uc.prototype.copyNodeData=function(a){return a===null?null:(a=yr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Ll(a,this.Ke)===void 0||Qs(a,this.Ke,void 0),a)},uc.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var E=Ll(a,y);E!==x&&(Qs(a,y,x),this.Fs(a,y,E,x))},Ee=uc.prototype,Ee.jp=function(a,y){yr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ee.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;Qs(a,E,x),zl(this,"nodeParentKey",As,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Ee.fm=function(a){yr.prototype.fm.call(this,a),a=this.wa(a);var y=Vp(this,a);if(y!==null){var x=hr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;zl(this,"nodeParentKey",As,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)Wh(this,a,x[y]);Nr(x)}},Ee.em=function(a){yr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&zh(this,y,a)},Ee.qp=function(a){yr.prototype.qp.call(this,a);var y=this.mh(a);Wh(this,y,a)},Ee.lm=function(a,y){yr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ee.Tl=function(){return!0},Ee.xs=function(){return!0},un.Object.defineProperties(uc.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),uc.prototype.setParentLinkCategoryForNodeData=uc.prototype.Ms,uc.prototype.getParentLinkCategoryForNodeData=uc.prototype.ss,uc.prototype.setParentKeyForNodeData=uc.prototype.qe,uc.prototype.getParentKeyForNodeData=uc.prototype.mh,uc.className="TreeModel",Mh.TreeModel=uc;function cl(a){$s.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Lh,this.Ti=0,this.Zv=new at,this.Jp=this.me=0,this.Xr=new Xp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Lh,this.K=cc,this.nd=tp,this.hd=ly,this.tf=6,this.Nn=bv,a&&Object.assign(this,a)}Ft(cl,$s),cl.prototype.cloneProtected=function(a){$s.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},cl.prototype.qb=function(a){a.classType===cl?a===Cv||a===Ev||a===wv||a===Pv||a===tp?this.sorting=a:a===eg||a===ep||a===cc||a===Lf?this.direction=a:a===af||a===Mf||a===Lh||a===kh?this.arrangement=a:(a===yg||a===bv)&&(this.nodeDiameterFormula=a):$s.prototype.qb.call(this,a)},cl.prototype.createNetwork=function(){return new np(this)},cl.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new _n;y.addAll(a.iterator),a=new _n;var x=new _n,E=this.sort(y),b,z,ee=this.Jp,re=this.arrangement,ae=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var ce=this.aspectRatio;(!isFinite(ce)||0>=ce)&&(ce=1);var fe=this.startAngle;isFinite(fe)||(fe=0);var Se=this.sweepAngle;if((!isFinite(Se)||360<Se||1>Se)&&(Se=360),y=this.spacing,isFinite(y)||(y=NaN),re===kh&&ae===yg?re=Lh:re===kh&&ae!==yg&&(re=this.arrangement),(this.direction===eg||this.direction===ep)&&this.sorting!==tp){for(ae=0;!(ae>=E.length)&&(a.add(E.M(ae)),!(ae+1>=E.length));ae+=2)x.add(E.M(ae+1));this.direction===eg?(this.arrangement===kh&&a.reverse(),E=new _n,E.addAll(a),E.addAll(x)):(this.arrangement===kh&&x.reverse(),E=new _n,E.addAll(x),E.addAll(a))}ae=E.length;for(var we=z=b=0;we<E.length;we++){var Ae=fe+Se*z*(this.direction===cc?1:-1)/ae,De=E.M(we).diameter;isNaN(De)&&(De=kf(E.M(we),Ae)),360>Se&&(we===0||we===E.length-1)&&(De/=2),b+=De,z++}if(isNaN(le)||re===kh){if(isNaN(y)&&(y=6),re!==Lh&&re!==kh){for(z=-1/0,ee=0;ee<ae;ee++)we=E.M(ee),b=E.M(ee===ae-1?0:ee+1),isNaN(we.diameter)&&kf(we,0),isNaN(b.diameter)&&kf(b,0),z=Math.max(z,(we.diameter+b.diameter)/2);ee=z+y,re===af?le=(z+y)/(2*Math.PI/ae):le=Sv(this,ee*(360<=Se?ae:ae-1),ce,fe*Math.PI/180,Se*Math.PI/180)}else le=Sv(this,b+(360<=Se?ae:ae-1)*(re!==kh?y:1.6*y),ce,fe*Math.PI/180,Se*Math.PI/180);z=le*ce}else if(z=le*ce,we=vy(this,le,z,fe*Math.PI/180,Se*Math.PI/180),isNaN(y))(re===Lh||re===kh)&&(y=(we-b)/(360<=Se?ae:ae-1));else if(re===Lh||re===kh)we=(we-b)/(360<=Se?ae:ae-1),we<y?(le=Sv(this,b+y*(360<=Se?ae:ae-1),ce,fe*Math.PI/180,Se*Math.PI/180),z=le*ce):y=we;else{for(ee=-1/0,b=0;b<ae;b++)Ae=E.M(b),De=E.M(b===ae-1?0:b+1),isNaN(Ae.diameter)&&kf(Ae,0),isNaN(De.diameter)&&kf(De,0),ee=Math.max(ee,(Ae.diameter+De.diameter)/2);ee+=y,b=Sv(this,ee*(360<=Se?ae:ae-1),ce,fe*Math.PI/180,Se*Math.PI/180),b>le?(le=b,z=le*ce):ee=we/(360<=Se?ae:ae-1)}if(this.kw=re,this.lc=le,this.Zm=ce,this.lw=fe,this.Wp=Se,this.Ti=y,this.me=z,this.Jp=ee,y=E,E=this.kw,re=this.lc,le=this.lw,ce=this.Wp,fe=this.Ti,Se=this.me,ae=this.Jp,this.direction!==eg&&this.direction!==ep||E!==kh)if(this.direction===eg||this.direction===ep){switch(ee=0,E){case Mf:ee=180*xv(this,re,Se,le,ae)/Math.PI;break;case Lh:ae=y=0,ee=a.first(),ee!==null&&(y=kf(ee,Math.PI/2)),ee=x.first(),ee!==null&&(ae=kf(ee,Math.PI/2)),ee=180*xv(this,re,Se,le,fe+(y+ae)/2)/Math.PI;break;case af:ee=ce/y.length}if(this.direction===eg){switch(E){case Mf:Zp(this,a,le,Lf);break;case Lh:Yp(this,a,le,Lf);break;case af:Up(this,a,ce/2,le,Lf)}switch(E){case Mf:Zp(this,x,le+ee,cc);break;case Lh:Yp(this,x,le+ee,cc);break;case af:Up(this,x,ce/2,le+ee,cc)}}else{switch(E){case Mf:Zp(this,x,le,Lf);break;case Lh:Yp(this,x,le,Lf);break;case af:Up(this,x,ce/2,le,Lf)}switch(E){case Mf:Zp(this,a,le+ee,cc);break;case Lh:Yp(this,a,le+ee,cc);break;case af:Up(this,a,ce/2,le+ee,cc)}}}else switch(E){case Mf:Zp(this,y,le,this.direction);break;case Lh:Yp(this,y,le,this.direction);break;case af:Up(this,y,ce,le,this.direction);break;case kh:R1(this,y,ce,le,this.direction)}else R1(this,y,ce,le-ce/2,cc)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Up(a,y,x,E,b){var z=a.Wp,ee=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,ae=0;ae<re;ae++){var le=E+(b===cc?ae*x/(360<=z?re:re-1):-(ae*x)/re),ce=y.M(ae),fe=ee*Math.tan(le)/a;fe=Math.sqrt((ee*ee+a*a*fe*fe)/(1+fe*fe)),ce.centerX=fe*Math.cos(le),ce.centerY=fe*Math.sin(le),ce.actualAngle=180*le/Math.PI}}function Yp(a,y,x,E){var b=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,ae=0;ae<re;ae++){var le=y.M(ae),ce=y.M(ae===re-1?0:ae+1),fe=z*Math.sin(x);le.centerX=b*Math.cos(x),le.centerY=fe,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&kf(le,0),isNaN(ce.diameter)&&kf(ce,0),le=xv(a,b,z,E===cc?x:-x,(le.diameter+ce.diameter)/2+ee),x+=E===cc?le:-le}}function Zp(a,y,x,E){var b=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,ae=0;ae<re;ae++){var le=y.M(ae);le.centerX=b*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=xv(a,b,z,E===cc?x:-x,ee),x+=E===cc?le:-le}}function R1(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Xp,360>x){for(z=E+(b===cc?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,z1(a,y,x,E,b)}else j1(a,y,x,E,b);a.Xr.commit(y)}function j1(a,y,x,E,b){var z=a.lc,ee=a.Ti,re=a.Zm,ae=z*Math.cos(E*Math.PI/180),le=a.me*Math.sin(E*Math.PI/180),ce=y.Fa();if(ce.length===3)ce[0].centerX=z,ce[0].centerY=0,ce[1].centerX=ce[0].centerX-ce[0].width/2-ce[1].width/2-ee,ce[1].y=ce[0].y,ce[2].centerX=(ce[0].centerX+ce[1].centerX)/2,ce[2].y=ce[0].y-ce[2].height-ee;else if(ce.length===4)ce[0].centerX=z,ce[0].centerY=0,ce[2].centerX=-ce[0].centerX,ce[2].centerY=ce[0].centerY,ce[1].centerX=0,ce[1].y=Math.min(ce[0].y,ce[2].y)-ce[1].height-ee,ce[3].centerX=0,ce[3].y=Math.max(ce[0].y+ce[0].height+ee,ce[2].y+ce[2].height+ee);else{z=at.alloc();for(var fe=0;fe<ce.length&&(ce[fe].centerX=ae,ce[fe].centerY=le,!(fe>=ce.length-1));fe++)W1(a,ae,le,ce,fe,b,z)||H1(a,ae,le,ce,fe,b,z),ae=z.x,le=z.y;if(at.free(z),a.mj++,!(23<a.mj)){ae=ce[0].centerX,le=ce[0].centerY,z=ce[ce.length-1].centerX,fe=ce[ce.length-1].centerY;var Se=Math.abs(ae-z)-((ce[0].width+ce[ce.length-1].width)/2+ee),we=Math.abs(le-fe)-((ce[0].height+ce[ce.length-1].height)/2+ee);ee=0,1>Math.abs(we)?Math.abs(ae-z)<(ce[0].width+ce[ce.length-1].width)/2&&(ee=0):ee=0<we?we:1>Math.abs(Se)?0:Se,ae=Math.abs(z)>Math.abs(fe)?0<z!=le>fe:0<fe!=ae<z,(ae=b===cc?ae:!ae)&&(ee=-Math.abs(ee),ee=Math.min(ee,-ce[ce.length-1].width),ee=Math.min(ee,-ce[ce.length-1].height)),a.Xr.compare(ee,ce),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>ce.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,j1(a,y,x,E,b))}}}function z1(a,y,x,E,b){for(var z=a.lc,ee=a.me,re=a.Zm,ae=z*Math.cos(E*Math.PI/180),le=ee*Math.sin(E*Math.PI/180),ce=at.alloc(),fe=y.Fa(),Se=0;Se<fe.length&&(fe[Se].centerX=ae,fe[Se].centerY=le,!(Se>=fe.length-1));Se++)W1(a,ae,le,fe,Se,b,ce)||H1(a,ae,le,fe,Se,b,ce),ae=ce.x,le=ce.y;if(at.free(ce),a.mj++,!(23<a.mj)){if(ae=Math.atan2(le,ae),ae=b===cc?a.gt-ae:ae-a.gt,ae=Math.abs(ae)<Math.abs(ae-2*Math.PI)?ae:ae-2*Math.PI,z=ae*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],ae=0;ae<fe.length;ae++)ee.mk[ae]=fe[ae].bounds.x,ee.tm[ae]=fe[ae].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,z1(a,y,x,E,b))}}function W1(a,y,x,E,b,z,ee){var re=a.lc,ae=a.me,le=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ce=!1;if(0<=x!=(z===cc)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=le,!1;ce=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=le,!1;ce=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*ae,0>x!==ce&&(le=-le),Math.abs(x-le)>(E[b].height+E[b+1].height)/2?(ee.x=z,ee.y=le,!1):(ee.x=z,ee.y=le,!0)}function H1(a,y,x,E,b,z,ee){var re=a.lc,ae=a.me,le=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===cc)){if(z=x-a,z<-ae){if(z=x+a,z>ae){ee.x=le,ee.y=z;return}E=!0}}else if(z=x+a,z>ae){if(z=x-a,z<-ae){ee.x=le,ee.y=z;return}E=!0}le=Math.sqrt(1-Math.min(1,z*z/(ae*ae)))*re,0>y!==E&&(le=-le),ee.x=le,ee.y=z}cl.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},cl.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new at(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},cl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function vy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ee=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),ae=0,le=0;le<=z;le++){E!==void 0&&b!==void 0?ae=E+le*b/z:ae=le*Math.PI/(2*z);var ce=Math.sin(ae);ee+=Math.sqrt(1-a*a*ce*ce)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function Sv(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?vy(a,1,x,E,b):vy(a,1,x))}function xv(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var ae=Math.sin(E+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*ae*ae)*a,ee>=b)return re*a}}cl.prototype.sort=function(a){switch(this.sorting){case wv:break;case Pv:a.reverse();break;case Cv:a.sort(this.comparer);break;case Ev:a.sort(this.comparer),a.reverse();break;case tp:return this.ak(_x(a));default:tn("Invalid sorting type.")}return a};function _x(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new _n;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>b&&(b=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>b&&(b=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)b=a.indexOf(ee.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}cl.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var ee=[],re=[];E=[],b=new _n;for(var ae=0,le=0;le<y.length;le++){var ce=y[le].length;if(ce===1)E.push(le);else if(ce===0)b.add(a.M(le));else{if(ae===0)x.push(le);else{for(var fe=ce=1/0,Se=-1,we=[],Ae=0;Ae<x.length;Ae++)0>y[x[Ae]].indexOf(x[Ae===x.length-1?0:Ae+1])&&we.push(Ae===x.length-1?0:Ae+1);if(we.length===0)for(Ae=0;Ae<x.length;Ae++)we.push(Ae);for(Ae=0;Ae<we.length;Ae++){for(var De=we[Ae],nt=y[le],Ze=0,dt=0;dt<ee.length;dt++){var mt=z[ee[dt]],xt=z[re[dt]];if(mt<xt){var Ot=mt;mt=xt}else Ot=xt;if(Ot<De&&De<=mt)for(xt=0;xt<nt.length;xt++){var en=nt[xt];0>x.indexOf(en)||Ot<z[en]&&z[en]<mt||Ot===z[en]||mt===z[en]||Ze++}else for(xt=0;xt<nt.length;xt++)en=nt[xt],0>x.indexOf(en)||Ot<z[en]&&z[en]<mt&&Ot!==z[en]&&mt!==z[en]&&Ze++}for(nt=Ze,dt=Ze=0;dt<y[le].length;dt++)Ot=x.indexOf(y[le][dt]),0<=Ot&&(Ot=Math.abs(De-(Ot>=De?Ot+1:Ot)),Ze+=Ot<x.length+1-Ot?Ot:x.length+1-Ot);for(dt=0;dt<ee.length;dt++)Ot=z[ee[dt]],mt=z[re[dt]],Ot>=De&&Ot++,mt>=De&&mt++,Ot>mt&&(xt=mt,mt=Ot,Ot=xt),mt-Ot<(x.length+2)/2==(Ot<De&&De<=mt)&&Ze++;(nt<ce||nt===ce&&Ze<fe)&&(ce=nt,fe=Ze,Se=De)}for(x.splice(Se,0,le),ce=0;ce<x.length;ce++)z[x[ce]]=ce;for(ce=0;ce<y[le].length;ce++)fe=y[le][ce],0<=x.indexOf(fe)&&(ee.push(le),re.push(fe))}ae++}}for(ee=x.length;;){for(z=!0,re=0;re<E.length;re++)if(ae=E[re],le=y[ae][0],ce=x.indexOf(le),0<=ce){for(Se=fe=0;Se<y[le].length;Se++)we=x.indexOf(y[le][Se]),0>we||we===ce||(Ae=we>ce?we-ce:ce-we,fe+=we<ce!=Ae>ee-Ae?1:-1);x.splice(0>fe?ce:ce+1,0,ae),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},un.Object.defineProperties(cl.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==kh&&a!==Lh&&a!==Mf&&a!==af||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==cc&&a!==Lf&&a!==eg&&a!==ep||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==wv&&a!==Pv&&a!==Cv&&!Ev&&a!==tp||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==bv&&a!==yg||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Lh=new ln(cl,"ConstantSpacing",0),Mf=new ln(cl,"ConstantDistance",1),af=new ln(cl,"ConstantAngle",2),kh=new ln(cl,"Packed",3),cc=new ln(cl,"Clockwise",4),Lf=new ln(cl,"Counterclockwise",5),eg=new ln(cl,"BidirectionalLeft",6),ep=new ln(cl,"BidirectionalRight",7),wv=new ln(cl,"Forwards",8),Pv=new ln(cl,"Reverse",9),Cv=new ln(cl,"Ascending",10),Ev=new ln(cl,"Descending",11),tp=new ln(cl,"Optimized",12),bv=new ln(cl,"Pythagorean",13),yg=new ln(cl,"Circular",14);cl.className="CircularLayout",cl.ConstantSpacing=Lh,cl.ConstantDistance=Mf,cl.ConstantAngle=af,cl.Packed=kh,cl.Clockwise=cc,cl.Counterclockwise=Lf,cl.BidirectionalLeft=eg,cl.BidirectionalRight=ep,cl.Forwards=wv,cl.Reverse=Pv,cl.Ascending=Cv,cl.Descending=Ev,cl.Optimized=tp,cl.Pythagorean=bv,cl.Circular=yg;function Xp(){this.Pl=-1/0,this.tm=this.mk=null}Xp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Xp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Xp.className="VertexArrangement";function np(a){Fs.call(this,a)}Ft(np,Fs),np.prototype.createVertex=function(){return new Jp(this)},np.prototype.createEdge=function(){return new Av(this)},np.className="CircularNetwork";function Jp(a){_l.call(this,a),this.u=this.Si=NaN}Ft(Jp,_l);function kf(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===kh)if(x.nodeDiameterFormula===yg)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===yg?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}un.Object.defineProperties(Jp.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Jp.className="CircularVertex";function Av(a){Oc.call(this,a)}Ft(Av,Oc),Av.className="CircularEdge";function Tu(a){$s.call(this),this.ah=null,this.An=0,this.$d=new fn(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}Ft(Tu,$s),Tu.prototype.cloneProtected=function(a){$s.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},Tu.prototype.createNetwork=function(){return new Sg(this)},Tu.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}_1(this,0,a)}this.network=y;var ee=E=x.iterator;E=this.arrangementSpacing;var re=ee.count,ae=!0;z=b=0;for(var le=hr(),ce=0;ce<re+y.vertexes.count+2;ce++)le[ce]=null;re=0,ee.reset();for(var fe=cn.alloc();ee.next();)if(ce=ee.value,this.computeBounds(ce,fe),ae)ae=!1,b=fe.x+fe.width/2,z=fe.y+fe.height/2,le[0]=new at(fe.x+fe.width+E.width,fe.y),le[1]=new at(fe.x,fe.y+fe.height+E.height),re=2;else{var Se=V1(le,re,b,z,fe.width,fe.height,E),we=le[Se],Ae=new at(we.x+fe.width+E.width,we.y),De=new at(we.x,we.y+fe.height+E.height);for(Se+1<re&&le.splice(Se+1,0,null),le[Se]=Ae,le[Se+1]=De,re++,Se=we.x-fe.x,we=we.y-fe.y,ce=ce.vertexes.iterator;ce.next();)Ae=ce.value,Ae.centerX+=Se,Ae.centerY+=we}for(cn.free(fe),ce=y.vertexes.iterator;ce.next();)ee=ce.value,Se=ee.bounds,2>re?(b=Se.x+Se.width/2,z=Se.y+Se.height/2,le[0]=new at(Se.x+Se.width+E.width,Se.y),le[1]=new at(Se.x,Se.y+Se.height+E.height),re=2):(ae=V1(le,re,b,z,Se.width,Se.height,E),fe=le[ae],we=new at(fe.x+Se.width+E.width,fe.y),Se=new at(fe.x,fe.y+Se.height+E.height),ae+1<re&&le.splice(ae+1,0,null),le[ae]=we,le[ae+1]=Se,re++,ee.centerX=fe.x+ee.width/2,ee.centerY=fe.y+ee.height/2);for(Nr(le),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}G1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Tu.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},Tu.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function _1(a,y,x){if(Vx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Kx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,_1(a,y+1,x),G1(a,z),Gx(a,b),y=b.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Ux(a,y[x]);a.Zf=E}}function Vx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Kx(a,y){for(var x=a.network,E=new Sg(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var ee=new U1;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new _n),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,ee=re.toVertex,b.network===E&&ee.network===E?E.Bo(re):b.network===E?(re=b.Hj,re===null&&(re=new _n,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===E&&(re=ee.Hj,re===null&&(re=new _n,ee.Hj=re),re.add(b),ee.Vd--,ee.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,Rt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var ae=b.Hj;if(ae!==null&&0<ae.count&&(ee=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ee))){for(var le=re=0,ce=ae.count-ee;ce<ae.count;ce++){var fe=ae.M(ce),Se=null;for(z=fe.edges.iterator;z.next();){var we=z.value;if(we.Ax(fe)===b){Se=we;break}}Se!==null&&(le+=Se.length,re+=fe.width*fe.height)}z=b.centerX,ae=b.centerY,ce=b.width,fe=b.height,Se=b.focus,we=ce*fe,1>we&&(we=1),re=Rt.sqrt((re+we+le*le*4/(ee*ee))/we),ee=(re-1)*ce/2,re=(re-1)*fe/2,b.bounds=new cn(z-Se.x-ee,ae-Se.y-re,ce+2*ee,fe+2*re),b.focus=new at(Se.x+ee,Se.y+re)}}return a.network=E,x}function Gx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,ee=b.Tv;E.bounds=new cn(E.centerX-z,E.centerY-ee,b.Ss,b.Qs),E.focus=new at(z,ee),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Ux(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=Rt.sqrt(z*z+ee*ee)/2;for(var re=!1,ae=ee=0,le=0,ce=y.vertexes.iterator;ce.next();){var fe=ce.value;1>=fe.Vd?ae++:(re=!0,le++,ee+=Math.atan2(y.centerY-fe.centerY,y.centerX-fe.centerX))}if(ae!==0){for(0<le&&(ee/=le),le=y=0,y=re?2*Math.PI/(ae+1):2*Math.PI/ae,ae%2===0&&(le=y/2),1<x.count&&x.sort(function(we,Ae){return we===null||Ae===null||we===Ae?0:Ae.width*Ae.height-we.width*we.height}),re=ae%2===0?0:1,x=x.iterator;x.next();)if(ae=x.value,!(1<ae.Vd||a.isFixed(ae))){for(ce=null,fe=ae.edges.iterator;fe.next();){ce=fe.value;break}fe=ae.width;var Se=ae.height;fe=Rt.sqrt(fe*fe+Se*Se)/2,ce=z+ce.length+fe,fe=ee+(y*(re/2>>1)+le)*(re%2===0?1:-1),ae.centerX=E+ce*Math.cos(fe),ae.centerY=b+ce*Math.sin(fe),re++}}}}function V1(a,y,x,E,b,z,ee){var re=9e19,ae=-1,le=0;e:for(;le<y;le++){var ce=a[le],fe=ce.x-x,Se=ce.y-E;if(fe=fe*fe+Se*Se,fe<re){for(Se=le-1;0<=Se;Se--)if(a[Se].y>ce.y&&a[Se].x-ce.x<b+ee.width)continue e;for(Se=le+1;Se<y;Se++)if(a[Se].x>ce.x&&a[Se].y-ce.y<z+ee.height)continue e;ae=le,re=fe}}return ae}Tu.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Tu.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function K1(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,E+b<ee?a>y+z?(x=E+b-ee,a=a-y-z,Rt.sqrt(x*x+a*a)):a+x<y?(E=E+b-ee,a=a+x-y,Rt.sqrt(E*E+a*a)):ee-(E+b):E>ee+re?a>y+z?(x=E-ee-re,a=a-y-z,Rt.sqrt(x*x+a*a)):a+x<y?(E=E-ee-re,a=a+x-y,Rt.sqrt(E*E+a*a)):E-(ee+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function G1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Yx(a)););a.ah=null}function Yx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var ae=re.centerX;re=re.centerY,E=Math.min(E,ae),b=Math.max(b,ae),x=Math.min(x,re),z=Math.max(z,re)}(b=b-E>z-x)?y.sort(function(De,nt){return De===null||nt===null||De===nt?0:De.centerX-nt.centerX}):y.sort(function(De,nt){return De===null||nt===null||De===nt?0:De.centerY-nt.centerY}),x=a.Zf;var le=E=re=0;for(z=0;z<y.length;z++){ee=y[z],E=ee.bounds,re=ee.focus,ae=E.x+re.x;var ce=E.y+re.y;E=ee.charge*a.electricalFieldX(ae,ce),le=ee.charge*a.electricalFieldY(ae,ce),E+=ee.mass*a.gravitationalFieldX(ae,ce),le+=ee.mass*a.gravitationalFieldY(ae,ce),ee.forceX+=E,ee.forceY+=le;for(var fe=z+1;fe<y.length;fe++){var Se=y[fe];if(Se!==ee){E=Se.bounds,re=Se.focus,le=E.x+re.x;var we=E.y+re.y;if(ae-le>x||le-ae>x){if(b)break}else if(ce-we>x||we-ce>x){if(!b)break}else{var Ae=K1(ee,Se);1>Ae?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Mv),Ae=E.random(),re=E.random(),ae>le?(E=Math.abs(Se.bounds.right-ee.bounds.x),E=(1+E)*Ae):ae<le?(E=Math.abs(Se.bounds.x-ee.bounds.right),E=-(1+E)*Ae):(E=Math.max(Se.width,ee.width),E=(1+E)*Ae-E/2),ce>we?(le=Math.abs(Se.bounds.bottom-ee.bounds.y),le=(1+le)*re):ae<le?(le=Math.abs(Se.bounds.y-ee.bounds.bottom),le=-(1+le)*re):(le=Math.max(Se.height,ee.height),le=(1+le)*re-le/2)):(re=-(ee.charge*Se.charge)/(Ae*Ae),E=(le-ae)/Ae*re,le=(we-ce)/Ae*re),ee.forceX+=E,ee.forceY+=le,Se.forceX-=E,Se.forceY-=le}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,ae=x.focus,E=ee.x+ae.x,ee=ee.y+ae.y,ce=z.bounds,fe=z.focus,ae=ce.x+fe.x,ce=ce.y+fe.y,fe=K1(x,z),1>fe?(fe=a.randomNumberGenerator,fe===null&&(a.randomNumberGenerator=fe=new Mv),re=fe.random(),fe=fe.random(),E=(E>ae?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(ee>ce?1:-1)*(1+(z.height>x.height?z.height:x.height))*fe):(re=re.stiffness*(fe-re.length),E=(ae-E)/fe*re,le=(ce-ee)/fe*re),x.forceX+=E,x.forceY+=le,z.forceX-=E,z.forceY-=le;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}Tu.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},Tu.prototype.moveFixedVertex=function(){},Tu.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Tu.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ml,y.toSpot=ml)}},Tu.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=cn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,cn.free(x)}x=cn.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}cn.free(x)},Tu.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Tu.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Tu.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Tu.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Tu.prototype.electricalFieldX=function(){return 0},Tu.prototype.electricalFieldY=function(){return 0},Tu.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Tu.prototype.gravitationalFieldX=function(){return 0},Tu.prototype.gravitationalFieldY=function(){return 0},Tu.prototype.isFixed=function(a){return a.isFixed},un.Object.defineProperties(Tu.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&tn('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),Tu.className="ForceDirectedLayout";function U1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}U1.className="ForceDirectedSubnet";function Sg(a){Fs.call(this,a)}Ft(Sg,Fs),Sg.prototype.createVertex=function(){return new Qp(this)},Sg.prototype.createEdge=function(){return new qp(this)},Sg.className="ForceDirectedNetwork";function Qp(a){_l.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Ft(Qp,_l),un.Object.defineProperties(Qp.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Qp.className="ForceDirectedVertex";function qp(a){Oc.call(this,a),this.j=this.o=NaN}Ft(qp,Oc),un.Object.defineProperties(qp.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),qp.className="ForceDirectedEdge";function Mv(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Mv.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},Mv.className="RandomNumberGenerator";function ls(a){$s.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Dv,this.Zk=Tv,this.Qk=Bv,this.bj=4,this.rk=Ov,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new at,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Ft(ls,$s),ls.prototype.cloneProtected=function(a){$s.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},ls.prototype.qb=function(a){a.classType===ls?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:tn("Unknown enum value: "+a):$s.prototype.qb.call(this,a)},ls.prototype.createNetwork=function(){return new rp(this)},ls.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==em&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===em&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var ee=0,re=0,ae=0,le=0;if(E.link!==null){if(re=E.link,re===null)continue;var ce=b.node;if(ee=z.node,ce===null||ee===null)continue;var fe=re.fromNode;ae=re.toNode;for(var Se=re.fromPort;Se!==null&&!Se.Ed();)Se=Se.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(E.rev){le=fe;var we=Se;fe=ae,Se=re,ae=le,re=we}var Ae=b.focus;le=z.focus;var De=E.rev?z.bounds:b.bounds;we=at.alloc(),ce!==fe?De.w()&&fe.isVisible()?fe.actualBounds.w()?(ef(fe,Se,Sa,we),we.x+=fe.actualBounds.x-De.x,we.y+=fe.actualBounds.y-De.y):(ef(fe,Se,Sa,we),we.w()||we.assign(Ae)):we.assign(Ae):De.w()?(ef(fe,Se,Sa,we),we.w()||we.assign(Ae)):we.assign(Ae),fe=E.rev?b.bounds:z.bounds,ce=at.alloc(),ee!==ae?fe.w()&&ae.isVisible()?ae.actualBounds.w()?(ef(ae,re,Sa,ce),ce.x+=ae.actualBounds.x-fe.x,ce.y+=ae.actualBounds.y-fe.y):(ef(ae,re,Sa,ce),ce.w()||ce.assign(le)):ce.assign(le):fe.w()?(ef(ae,re,Sa,ce),ce.w()||ce.assign(le)):ce.assign(le),this.K===90||this.K===270?(ee=Math.round((we.x-Ae.x)/this.kc),ae=we.x,re=Math.round((ce.x-le.x)/this.kc),le=ce.x):(ee=Math.round((we.y-Ae.y)/this.kc),ae=we.y,re=Math.round((ce.y-le.y)/this.kc),le=ce.y),at.free(we),at.free(ce),E.portFromColOffset=ee,E.portFromPos=ae,E.portToColOffset=re,E.portToPos=le}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(we=b.layer,ce=z.layer,fe=0,De=E.link,De!==null){var nt=De.fromPort,Ze=De.toPort;if(nt!==null&&Ze!==null){var dt=De.fromNode;if(Se=De.toNode,dt!==null&&Se!==null){var mt=Nv(this,!0),xt=Nv(this,!1),Ot=this.setsPortSpots?mt:De.computeSpot(!0,nt);Ae=this.setsPortSpots?xt:De.computeSpot(!1,Ze);var en=De.isOrthogonal;Ot.$c()&&Ot.Hf(xt)&&Ae.$c()&&Ae.Hf(mt)?fe=0:(mt=De.getLinkPoint(dt,nt,Ot,!0,en,Se,Ze,at.alloc()),xt=De.getLinkDirection(dt,nt,mt,Ot,!0,en,Se,Ze),at.free(mt),Ot.ys()||xt!==tx(this,E,!0)?this.setsPortSpots&&dt!==null&&dt.ports.count===1&&E.rev&&(fe+=1):fe+=1,Ot=De.getLinkPoint(Se,Ze,Ae,!1,en,dt,nt,at.alloc()),De=De.getLinkDirection(Se,Ze,Ot,Ae,!1,en,dt,nt),at.free(Ot),Ae.ys()||De!==tx(this,E,!1)?this.setsPortSpots&&Se!==null&&Se.ports.count===1&&E.rev&&(fe+=2):fe+=2)}}}if(Se=fe,fe=Se===1||Se===3,(Se=Se===2||Se===3)&&(Ae=a.createVertex(),Ae.node=null,Ae.Dj=1,Ae.layer=we,Ae.near=b,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=ee,b.portToColOffset=0,b.portFromPos=ae,b.portToPos=0,b=Ae),De=1,fe&&De--,we-ce>De&&0<we){for(E.valid=!1,Ae=a.createVertex(),Ae.node=null,Ae.Dj=2,Ae.layer=we-1,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=Se?0:ee,b.portToColOffset=0,b.portFromPos=Se?0:ae,b.portToPos=0,b=Ae,we--;we-ce>De&&0<we;)Ae=a.createVertex(),Ae.node=null,Ae.Dj=3,Ae.layer=we-1,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Ae,we--;b=a.Zj(Ae,z,E.link),b.valid=!fe,fe&&(Ae.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=le}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=Ff(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),Nf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},ls.prototype.linkMinLength=function(){return 1};function yy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}ls.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},ls.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Pc(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function ih(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function Y1(a,y,x){var E=Ff(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<b;ee++){var re=0,ae=E[ee],le=ae.near;if(le!==null&&le.layer===ae.layer)if(ae=le.index,ae>ee)for(var ce=ee+1;ce<ae;ce++){var fe=E[ce];fe.near===le&&fe.Dj===le.Dj||re++}else for(ce=ee-1;ce>ae;ce--)fe=E[ce],fe.near===le&&fe.Dj===le.Dj||re++;var Se;if(0<=x)for(ae=E[ee].sourceEdgesArrayAccess,le=0;le<ae.length;le++){var we=ae[le];if(we.valid&&we.fromVertex.layer!==y)for(fe=we.fromVertex.index,ce=we.portToPos,we=we.portFromPos,Se=le+1;Se<ae.length;Se++){var Ae=ae[Se];if(Ae.valid&&Ae.fromVertex.layer!==y){var De=Ae.fromVertex.index,nt=Ae.portToPos;Ae=Ae.portFromPos,ce<nt&&(fe>De||fe===De&&we>Ae)&&re++,nt<ce&&(De>fe||De===fe&&Ae>we)&&re++}}}if(0>=x){for(ae=E[ee].destinationEdgesArrayAccess,le=0;le<ae.length;le++)if(we=ae[le],we.valid&&we.toVertex.layer!==y)for(fe=we.toVertex.index,ce=we.portToPos,we=we.portFromPos,Se=le+1;Se<ae.length;Se++)Ae=ae[Se],Ae.valid&&Ae.toVertex.layer!==y&&(De=Ae.toVertex.index,nt=Ae.portToPos,Ae=Ae.portFromPos,we<Ae&&(fe>De||fe===De&&ce>nt)&&re++,Ae<we&&(De>fe||De===fe&&nt>ce)&&re++)}for(z[ee*b+ee]=re,ae=ee+1;ae<b;ae++){var Ze=0,dt=0;if(0<=x){re=E[ee].sourceEdgesArrayAccess;var mt=E[ae].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(we=re[le],we.valid&&we.fromVertex.layer!==y)for(fe=we.fromVertex.index,we=we.portFromPos,Se=0;Se<mt.length;Se++)Ae=mt[Se],Ae.valid&&Ae.fromVertex.layer!==y&&(De=Ae.fromVertex.index,Ae=Ae.portFromPos,(fe<De||fe===De&&we<Ae)&&dt++,(De<fe||De===fe&&Ae<we)&&Ze++)}if(0>=x){for(re=E[ee].destinationEdgesArrayAccess,mt=E[ae].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(we=re[le],we.valid&&we.toVertex.layer!==y)for(fe=we.toVertex.index,ce=we.portToPos,Se=0;Se<mt.length;Se++)Ae=mt[Se],Ae.valid&&Ae.toVertex.layer!==y&&(De=Ae.toVertex.index,nt=Ae.portToPos,(fe<De||fe===De&&ce<nt)&&dt++,(De<fe||De===fe&&nt<ce)&&Ze++)}z[ee*b+ae]=Ze,z[ae*b+ee]=dt}}return Nf(a,y,E),z}ls.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Y1(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function Lv(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=Ff(E,b),ee=E.tc[b],re=0,ae=0;ae<ee;ae++){var le=z[ae].destinationEdgesArrayAccess;if(le!==null)for(var ce=0;ce<le.length;ce++){var fe=le[ce];if(fe.valid&&fe.toVertex.layer!==b){var Se=fe.fromVertex.column+fe.portFromColOffset,we=fe.toVertex.column+fe.portToColOffset;re+=(Math.abs(Se-we)+1)*yy(fe)}}}Nf(E,b,z),y+=re}return y}ls.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function Sy(a,y,x){for(var E=Ff(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],ae=null;0>=x&&(ae=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ce=0,fe=0,Se=re.near;if(Se!==null&&Se.layer===re.layer&&(ce+=Se.column-1,fe++),ae!==null)for(Se=0;Se<ae.length;Se++){re=ae[Se];var we=re.fromVertex;re.valid&&!re.rev&&we.layer!==y&&(ce+=we.column,fe++)}if(le!==null)for(ae=0;ae<le.length;ae++)re=le[ae],Se=re.toVertex,re.valid&&!re.rev&&Se.layer!==y&&(ce+=Se.column,fe++);z[ee]=fe===0?-1:ce/fe}return Nf(a,y,E),z}function Z1(a,y,x){for(var E=Ff(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],ae=null;0>=x&&(ae=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ce=0,fe=[],Se=re.near;if(Se!==null&&Se.layer===re.layer&&(fe[ce]=Se.column-1,ce++),re=void 0,ae!==null)for(Se=0;Se<ae.length;Se++){re=ae[Se];var we=re.fromVertex;re.valid&&!re.rev&&we.layer!==y&&(fe[ce]=we.column+re.portFromColOffset,ce++)}if(le!==null)for(ae=0;ae<le.length;ae++)re=le[ae],Se=re.toVertex,re.valid&&!re.rev&&Se.layer!==y&&(fe[ce]=Se.column+re.portToColOffset,ce++);ce===0?z[ee]=-1:(fe.sort(function(Ae,De){return Ae-De}),le=ce>>1,z[ee]=ce&1?fe[le]:fe[le-1]+fe[le]>>1)}return Nf(a,y,E),z}function $p(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,ae=re.toVertex,le=y.layer-ae.layer;re=a.linkMinLength(re),le===re&&$p(a,ae,x,E,b,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,ae=re.fromVertex,le=ae.layer-y.layer,re=a.linkMinLength(re),le===re&&$p(a,ae,x,E,b,z)}}function xy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();)xy(a,ee.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)xy(a,y.value.fromVertex,x,E,b,z)}}ls.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Cy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Zx(a)!==null;){for(b=X1(a);b!==null;)E[x]=b,x--,b.valid=!1,b=X1(a);for(b=J1(a);b!==null;)E[y]=b,y++,b.valid=!1,b=J1(a);b=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var ae=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&ae++;le=0;for(var ce=re.sourceEdges;ce.next();)ce.value.fromVertex.valid&&le++;(b===null||z<ae-le)&&(b=re,z=ae-le)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case Dv:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&wy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&wy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case em:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Zx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function X1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function wy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,wy(a,b))}y.finish=a.Kn,a.Kn++}ls.prototype.assignLayers=function(){switch(this.Zk){case Ey:Q1(this);break;case by:for(var a,y=this.network.vertexes.iterator;y.next();)a=$1(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case Tv:for(Q1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&ex(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function Q1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=q1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function q1(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,q1(a,z)+b)}y.layer=x}else x=y.layer;return x}function $1(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,$1(a,z)+b)}y.layer=x}else x=y.layer;return x}function ex(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)ex(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var ee=E[z],re=ee.fromVertex,ae=ee.toVertex;ee=a.linkMinLength(ee),re.layer-ae.layer>ee&&$p(a,re,0,-1,!0,!1)}for($p(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,ae=null,ee=a.network.vertexes.iterator;ee.next();){var le=ee.value;if(le.component===1){var ce=0,fe=!1,Se=le.sourceEdgesArrayAccess;b=Se.length;for(var we=0;we<b;we++){var Ae=Se[we],De=Ae.fromVertex;ce+=1,De.component!==1&&(z+=1,De=De.layer-le.layer,Ae=a.linkMinLength(Ae),E=Math.min(E,De-Ae))}for(Se=le.destinationEdgesArrayAccess,b=Se.length,we=0;we<b;we++)Ae=Se[we].toVertex,--ce,Ae.component!==1?--z:fe=!0;(ae===null||ce<re)&&!fe&&(ae=le,re=ce)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else ae.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for($p(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,re=null,ae=a.network.vertexes.iterator;ae.next();)if(ee=ae.value,ee.component===1){for(le=0,ce=!1,Se=ee.sourceEdgesArrayAccess,fe=Se.length,we=0;we<fe;we++)Ae=Se[we].fromVertex,le+=1,Ae.component!==1?E+=1:ce=!0;for(Se=ee.destinationEdgesArrayAccess,fe=Se.length,we=0;we<fe;we++)Ae=Se[we],De=Ae.toVertex,--le,De.component!==1&&(--E,De=ee.layer-De.layer,Ae=a.linkMinLength(Ae),b=Math.min(b,De-Ae));(re===null||le>z)&&!ce&&(re=ee,z=le)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function tx(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}ls.prototype.initializeIndices=function(){switch(this.Qk){default:case My:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Bv:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&nx(this,x);break;case Ay:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&ix(this,x)}};function nx(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&nx(a,E))}function ix(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&ix(a,E))}ls.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Pc(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)kv(this,E,1),gh(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=Pc(this)),E=this.Ia;0<=E;E--)kv(this,E,-1),gh(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=Pc(this))}for(ih(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)kv(this,E,0),gh(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=Pc(this)),E=this.Ia;0<=E;E--)kv(this,E,0),gh(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=Pc(this))}ih(this,y);var z,ee,re;switch(this.rk){case Ly:break;case ky:for(re=a+1;(E=this.countCrossings())<re;)for(re=E,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=gh(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=gh(this,E,1)||z;for(b=this.countCrossings(),b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=gh(this,E,1)||z;for(b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=gh(this,E,-1)||z;for(b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=gh(this,E,0)||z;for(b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=gh(this,E,0)||z;b>=a?ih(this,y):(a=b,y=Pc(this))}break;default:case Ov:for(x=this.Ia,ee=0,re=a+1;(E=this.countCrossings())<re;){for(re=E,z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=gh(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=gh(this,E,1)||z;for(b=this.countCrossings(),b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=gh(this,E,1)||z;for(b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=gh(this,E,-1)||z;for(b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=gh(this,E,0)||z;for(b>=a?ih(this,y):(a=b,y=Pc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=gh(this,E,0)||z;b>=a?ih(this,y):(a=b,y=Pc(this))}}ih(this,y)};function kv(a,y,x){var E=Ff(a,y),b=a.tc[y],z=Z1(a,y,x),ee=Sy(a,y,x);for(x=0;x<b;x++)ee[x]===-1&&(ee[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var re=!0,ae;re;)for(re=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,ae=z[x],z[x]=z[x+1],z[x+1]=ae,ae=ee[x],ee[x]=ee[x+1],ee[x+1]=ae,ae=E[x],E[x]=E[x+1],E[x+1]=ae);for(x=z=0;x<b;x++)ae=E[x],ae.index=x,z+=a.nodeMinColumnSpace(ae,!0),ae.column=z,z+=1,z+=a.nodeMinColumnSpace(ae,!1);Nf(a,y,E)}function gh(a,y,x){var E=Ff(a,y),b=a.tc[y];x=Y1(a,y,x);var z,ee=[];for(z=0;z<b;z++)ee[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var ae=!1,le=!0;le;)for(le=!1,z=0;z<b-1;z++){var ce=x[E[z].index*b+E[z+1].index],fe=x[E[z+1].index*b+E[z].index],Se=0,we=0,Ae=E[z].column,De=E[z+1].column,nt=a.nodeMinColumnSpace(E[z],!0),Ze=a.nodeMinColumnSpace(E[z],!1),dt=a.nodeMinColumnSpace(E[z+1],!0),mt=a.nodeMinColumnSpace(E[z+1],!1);nt=Ae-nt+dt,Ze=De-Ze+mt;var xt=E[z].sourceEdges.iterator;for(xt.reset();xt.next();)if(dt=xt.value,mt=dt.fromVertex,dt.valid&&mt.layer===y){for(dt=0;E[dt]!==mt;)dt++;dt<z&&(Se+=2*(z-dt),we+=2*(z+1-dt)),dt===z+1&&(Se+=1),dt>z+1&&(Se+=4*(dt-z),we+=4*(dt-(z+1)))}for(xt=E[z].destinationEdges.iterator,xt.reset();xt.next();)if(dt=xt.value,mt=dt.toVertex,dt.valid&&mt.layer===y){for(dt=0;E[dt]!==mt;)dt++;dt===z+1&&(we+=1)}for(xt=E[z+1].sourceEdges.iterator,xt.reset();xt.next();)if(dt=xt.value,mt=dt.fromVertex,dt.valid&&mt.layer===y){for(dt=0;E[dt]!==mt;)dt++;dt<z&&(Se+=2*(z+1-dt),we+=2*(z-dt)),dt===z&&(we+=1),dt>z+1&&(Se+=4*(dt-(z+1)),we+=4*(dt-z))}for(xt=E[z+1].destinationEdges.iterator,xt.reset();xt.next();)if(dt=xt.value,mt=dt.toVertex,dt.valid&&mt.layer===y){for(dt=0;E[dt]!==mt;)dt++;dt===z&&(Se+=1)}dt=mt=0,xt=ee[E[z].index];var Ot=re[E[z].index],en=ee[E[z+1].index],zi=re[E[z+1].index];xt!==-1&&(mt+=Math.abs(xt-Ae),dt+=Math.abs(xt-Ze)),Ot!==-1&&(mt+=Math.abs(Ot-Ae),dt+=Math.abs(Ot-Ze)),en!==-1&&(mt+=Math.abs(en-De),dt+=Math.abs(en-nt)),zi!==-1&&(mt+=Math.abs(zi-De),dt+=Math.abs(zi-nt)),(we<Se-.5||we===Se&&fe<ce-.5||we===Se&&fe===ce&&dt<mt-.5)&&(le=ae=!0,E[z].column=Ze,E[z+1].column=nt,ce=E[z],E[z]=E[z+1],E[z+1]=ce)}for(z=0;z<b;z++)E[z].index=z;return Nf(a,y,E),ae}ls.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&nw)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=ip(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=ip(this,y,-1)||x;x=ip(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Py(this,y,1);for(y=this.Md-1;0<=y;y--)Py(this,y,-1);Py(this,this.Md,0)}if(a&&(rx(this,-1),rx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=ip(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=ip(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=ip(this,y,0)||x}}else qx(this)};function ip(a,y,x){for(var E=!1;Xx(a,y,x);)E=!0;return E}function Xx(a,y,x){var E,b=Ff(a,y),z=a.tc[y],ee=Sy(a,y,-1);if(0<x)for(E=0;E<z;E++)ee[E]=-1;var re=Sy(a,y,1);if(0>x)for(E=0;E<z;E++)re[E]=-1;for(var ae=!1,le=!0;le;)for(le=!1,E=0;E<z;E++){var ce=b[E].column,fe=a.nodeMinColumnSpace(b[E],!0),Se=a.nodeMinColumnSpace(b[E],!1),we=0;0>E-1||ce-b[E-1].column-1>fe+a.nodeMinColumnSpace(b[E-1],!1)?we=ce-1:we=ce,fe=E+1>=z||b[E+1].column-ce-1>Se+a.nodeMinColumnSpace(b[E+1],!0)?ce+1:ce;var Ae=Se=0,De=0;if(0>=x)for(var nt=b[E].sourceEdges.iterator;nt.next();){var Ze=nt.value,dt=Ze.fromVertex;if(Ze.valid&&dt.layer!==y){var mt=yy(Ze),xt=Ze.portFromColOffset;Ze=Ze.portToColOffset,dt=dt.column,Se+=(Math.abs(ce+Ze-(dt+xt))+1)*mt,Ae+=(Math.abs(we+Ze-(dt+xt))+1)*mt,De+=(Math.abs(fe+Ze-(dt+xt))+1)*mt}}if(0<=x)for(nt=b[E].destinationEdges.iterator;nt.next();)Ze=nt.value,dt=Ze.toVertex,Ze.valid&&dt.layer!==y&&(mt=yy(Ze),xt=Ze.portFromColOffset,Ze=Ze.portToColOffset,dt=dt.column,Se+=(Math.abs(ce+xt-(dt+Ze))+1)*mt,Ae+=(Math.abs(we+xt-(dt+Ze))+1)*mt,De+=(Math.abs(fe+xt-(dt+Ze))+1)*mt);Ze=xt=mt=0,nt=ee[b[E].index],dt=re[b[E].index],nt!==-1&&(mt+=Math.abs(nt-ce),xt+=Math.abs(nt-we),Ze+=Math.abs(nt-fe)),dt!==-1&&(mt+=Math.abs(dt-ce),xt+=Math.abs(dt-we),Ze+=Math.abs(dt-fe)),Ae<Se||Ae===Se&&xt<mt?(le=ae=!0,b[E].column=we):(De<Se||De===Se&&Ze<mt)&&(le=ae=!0,b[E].column=fe)}return Nf(a,y,b),a.normalize(),ae}function Py(a,y,x){var E=Ff(a,y),b=a.tc[y],z=Z1(a,y,x),ee=[];for(x=0;x<b;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var re=E[x].column,ae=a.nodeMinColumnSpace(E[x],!0),le=a.nodeMinColumnSpace(E[x],!1),ce=0;if(ee[x]===-1)if(x===0&&x===b-1)ce=re;else if(x===0){var fe=E[x+1].column;fe-re===le+a.nodeMinColumnSpace(E[x+1],!0)?ce=re-1:ce=re}else x===b-1?(fe=E[x-1].column,ce=re-fe===ae+a.nodeMinColumnSpace(E[x-1],!1)?re+1:re):(fe=E[x-1].column,ae=fe+a.nodeMinColumnSpace(E[x-1],!1)+ae+1,fe=E[x+1].column,le=fe-a.nodeMinColumnSpace(E[x+1],!0)-le-1,ce=(ae+le)/2|0);else x===0&&x===b-1?ce=ee[x]:x===0?(fe=E[x+1].column,le=fe-a.nodeMinColumnSpace(E[x+1],!0)-le-1,ce=Math.min(ee[x],le)):x===b-1?(fe=E[x-1].column,ae=fe+a.nodeMinColumnSpace(E[x-1],!1)+ae+1,ce=Math.max(ee[x],ae)):(fe=E[x-1].column,ae=fe+a.nodeMinColumnSpace(E[x-1],!1)+ae+1,fe=E[x+1].column,le=fe-a.nodeMinColumnSpace(E[x+1],!0)-le-1,ae<ee[x]&&ee[x]<le?ce=ee[x]:ae>=ee[x]?ce=ae:le<=ee[x]&&(ce=le));ce!==re&&(z=!0,E[x].column=ce)}Nf(a,y,E),a.normalize()}function Jx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),ee=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ee>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Qx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){E=ee.value;var re=E.column-a.nodeMinColumnSpace(E,!0),ae=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&ae>=y&&(b[E.layer]=!0),re<=x&&ae>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function rx(a,y){for(var x=0;x<=a.Ra;x++)for(;Jx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Qx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=Pc(a),z=Lv(a);for(E=z+1;z<E;){E=z,ox(a,x,1);var ee=Lv(a);ee>z?ih(a,b):ee<z&&(z=ee,b=Pc(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=Pc(a),z=Lv(a),E=z+1;z<E;)E=z,ox(a,x,-1),ee=Lv(a),ee>z?ih(a,b):ee<z&&(z=ee,b=Pc(a));a.normalize()}function ox(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(xy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),ae=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=ae;re++)b[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee+1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee+1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee-1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee-1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(ae=ee[ee.length-1],ee.pop(),b[ae])for(b[ae]=!1,z=0;z<a.le;z++)y[ae*a.le+z]&&ee.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function qx(a){for(var y=hr(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new An,$x(y,x);var z=null,ee=null,re=null,ae=null,le=(a.ve&1)!==0,ce=(a.ve&2)!==0,fe=(a.ve&4)!==0,Se=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=Fv(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),re=Fv(a,y,!1,!1)),E=hn(y),b=E.next();!b.done;b=E.next())b.value.reverse();Se&&(a.verticalAlignment(y,x,!1),ae=Fv(a,y,!1,!0)),y.reverse(),ce&&(a.verticalAlignment(y,x,!0),ee=Fv(a,y,!0,!0)),Nr(y),a.u(z,ee,re,ae),a.network.vertexes.each(function(we){var Ae=hr();le&&Ae.push(z.get(we)),ce&&Ae.push(ee.get(we)),fe&&Ae.push(re.get(we)),Se&&Ae.push(ae.get(we)),Ae.sort(function(nt,Ze){return nt-Ze});var De=Ae.length;De=(Ae[Math.floor((De-1)/2)]+Ae[Math.ceil((De-1)/2)])/2,Nr(Ae),we.zc=De})}function $x(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,ee=a[E],re=a[E+1],ae=0;z<re.length;ae++){var le=re[ae];e:{if(le.node===null){var ce=Fy(le);if(0<ce.length){ce=ce[0].node===null;break e}}ce=!1}var fe=ce;if(ae===re.length-1||fe){for(ce=ee.length-1,fe&&(ce=Fy(le)[0].index);z<=ae;){if(le=re[z],!le.bo){fe=[];for(var Se=hn(le.sourceEdgesArrayAccess),we=Se.next();!we.done;we=Se.next())we=we.value,we.valid&&fe.push(we);le.bo=fe}for(le=hn(le.bo),fe=le.next();!fe.done;fe=le.next())fe=fe.value,Se=fe.fromVertex.index,(Se<b||Se>ce)&&y.add(fe);z++}b=ce}}}ls.prototype.verticalAlignment=function(a,y,x){ew(a),a=hn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=hn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ee=x?Fy(z):iw(z),re=ee.length;if(0<re){ee.sort(function(fe,Se){return fe.vi-Se.vi});var ae=(re-1)/2;for(re=Math.floor(ae),ae=Math.ceil(ae);re<=ae;re++)if(z.align===z){var le=ee[re],ce=void 0;ce=x?Iv(le,z):Iv(z,le),!y.contains(ce)&&b<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,b=le.vi)}}}}};function ew(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function Fv(a,y,x,E){for(var b=a.K===90||a.K===270,z=hn(y),ee=z.next();!ee.done;ee=z.next()){var re=hn(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=hn(y),re=z.next();!re.done;re=z.next()){re=hn(re.value);for(var ae=re.next();!ae.done;ae=re.next())if(ae=ae.value,ae.root===ae){for(var le=0,ce=ae;ce.align!==ae;){var fe=ce.align,Se=ee?ce.width:ce.height,we=ee?fe.width:fe.height;if(x){var Ae=Iv(ce,fe),De=Ae.portFromPos,nt=Ae.portToPos;Ae.link!==null&&(ce.node&&ce.node!==Ae.link.fromNode&&(De=ee?ce.focusX:ce.focusY),fe.node&&fe.node!==Ae.link.toNode&&(nt=ee?fe.focusX:fe.focusY))}else Ae=Iv(fe,ce),De=Ae.portToPos,nt=Ae.portFromPos,Ae.link!==null&&(ce.node&&ce.node!==Ae.link.toNode&&(De=ee?ce.focusX:ce.focusY),fe.node&&fe.node!==Ae.link.fromNode&&(nt=ee?fe.focusX:fe.focusY));Se=E?ce.qg+(Se-De)-(we-nt):ce.qg+De-nt,fe.qg=Se,le=Math.min(le,Se),ce=ce.align}ce=ae;do ce.qg=ce.qg-le,ce=ce.align;while(ce!==ae)}}for(x=hn(y),ee=x.next();!ee.done;ee=x.next())for(z=hn(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&ax(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=sx(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(b?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new wr,y=hn(y),ee=y.next();!ee.done;ee=y.next())for(x=hn(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=b?ee.width:ee.height,a.add(ee,E?-ee.zc-z:ee.zc);return a}function ax(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=sx(E,x),z=b.root;ax(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+ee-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function sx(a,y){var x=a.Tz;return a=a.vi,1>a&&tn("Could not determine previous vertex in layer"),y[x][a-1]}ls.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=hr(),b=hr(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=tw(this,y[ee],E,b,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?E[x]-E[ee]:b[x]-b[ee],z.delta!==0&&y[ee].each(function(ae){return function(le){le.value+=ae.delta}}(z)));Nr(E),Nr(b)};function tw(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var ae=re.key;re=re.value,ae=a.K===90||a.K===270?ae.width:ae.height,re<z&&(z=re),re+ae>ee&&(ee=re+ae)}),x[b]=z,E[b]=ee,ee-z}ls.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Nv(this,!0),y=Nv(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Nv(a,y){return a.K===270?y?tu:Ts:a.K===90?y?Ts:tu:a.K===180?y?Vl:xl:y?xl:Vl}ls.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,ee=b=1/0,re=-1/0;a.next();){var ae=a.value,le=ae.layer,ce=ae.column|0;E?(ee=y.x+this.kc*ce,le=this.Kd[le]):(ee=this.Kd[le],le=y.y+this.kc*ce),ae.centerX=ee,ae.centerY=le,x&&isFinite(ae.zc)&&(E?ae.node?ae.x=y.x+ae.zc:ae.centerX=y.x+ae.zc:ae.node?ae.y=y.y+ae.zc:ae.centerY=y.y+ae.zc),z=Math.min(ae.x,z),b=Math.min(ae.y,b),E?(ee=z,re=Math.max(re,ae.bounds.right)):(ee=b,re=Math.max(re,ae.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-b,this.Rf=new at(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},ls.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new cn(0,0,x,Math.abs(this.Ta[0]))):y.push(new cn(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new cn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new cn(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new cn(0,0,Math.abs(this.Ta[0]),x)):y.push(new cn(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new cn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new cn(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},ls.prototype.commitLayers=function(){},ls.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var E=y,b=E.fromNode,z=E.toNode,ee=E.fromPort,re=E.toPort;if(b!==null){var ae=b.findVisibleNode();ae!==null&&ae!==b&&(b=ae,ee=ae.port)}z!==null&&(ae=z.findVisibleNode(),ae!==null&&ae!==z&&(z=ae,re=ae.port));var le=y.computeSpot(!0,ee);ae=y.computeSpot(!1,re);var ce=x.fromVertex,fe=x.toVertex;if(x.valid)y.curve===Yc&&y.pointsCount===4&&(ce.column===fe.column&&this.alignOption===0?(x=y.getLinkPoint(b,ee,le,!0,!1,z,re),re=y.getLinkPoint(z,re,ae,!1,!1,b,ee),x.w()||x.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=E=!1,ee!==null&&le===hl&&(E=!0),re!==null&&ae===hl&&(x=!0),(E||x)&&(ae=null,E&&(ae=y.getLinkPointFromPoint(b,ee,ee.ga(Sa),y.i(3),!0),ae.w()||ae.set(b.actualBounds.center),y.L(0,ae.x,ae.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,re,re.ga(Sa),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),ae&&(z=y.i(2),y.L(1,(2*ae.x+z.x)/3,(2*ae.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ce.layer===fe.layer)y.zf();else{var Se=!1,we=!1,Ae=this.ie,De=y.firstPickIndex+1;if(y.isOrthogonal){we=!0;var nt=y.pointsCount;4<nt&&y.points.removeRange(2,nt-3)}else if(y.curve===Yc)Se=!0,nt=y.pointsCount,4<nt&&y.points.removeRange(2,nt-3),nt===4&&(De=2);else{nt=y.pointsCount;var Ze=le===hl,dt=ae===hl;2<nt&&Ze&&dt?y.points.removeRange(1,nt-2):3<nt&&Ze&&!dt?y.points.removeRange(1,nt-3):3<nt&&!Ze&&dt?y.points.removeRange(2,nt-2):4<nt&&!Ze&&!dt&&y.points.removeRange(2,nt-3)}if(x.rev){for(;fe!==null&&ce!==fe;){var mt=nt=null;for(Ze=fe.sourceEdges.iterator;Ze.next()&&(dt=Ze.value,dt.link!==x.link||(nt=dt.fromVertex,mt=dt.toVertex,nt.node!==null)););if(nt===null)break;if(nt!==ce){Ze=y.i(De-1).x,dt=y.i(De-1).y;var xt=nt.centerX,Ot=nt.centerY;if(we)this.K===180||this.K===0?De===y.firstPickIndex+1?(y.m(De++,Ze,dt),y.m(De++,Ze,Ot)):(mt!==null?mt.centerY:dt)!==Ot&&(mt=this.Ta[nt.layer-1]+this.Rf.x,y.m(De++,mt,dt),y.m(De++,mt,Ot)):De===y.firstPickIndex+1?(y.m(De++,Ze,dt),y.m(De++,xt,dt)):(mt!==null?mt.centerX:Ze)!==xt&&(mt=this.Ta[nt.layer-1]+this.Rf.y,y.m(De++,Ze,mt),y.m(De++,xt,mt));else if(De===y.firstPickIndex+1){mt=Math.max(10,this.he[fe.layer]);var en=Math.max(10,this.Ld[fe.layer]);if(Se)this.K===180?xt<=fe.bounds.x?(fe=fe.bounds.x,y.m(De++,fe-mt,Ot),y.m(De++,fe,Ot),y.m(De++,fe+en,Ot)):(y.m(De++,xt-mt,Ot),y.m(De++,xt,Ot),y.m(De++,xt+en,Ot)):this.K===90?Ot>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(De++,xt,fe+en),y.m(De++,xt,fe),y.m(De++,xt,fe-mt)):(y.m(De++,xt,Ot+en),y.m(De++,xt,Ot),y.m(De++,xt,Ot-mt)):this.K===270?Ot<=fe.bounds.y?(fe=fe.bounds.y,y.m(De++,xt,fe-mt),y.m(De++,xt,fe),y.m(De++,xt,fe+en)):(y.m(De++,xt,Ot-mt),y.m(De++,xt,Ot),y.m(De++,xt,Ot+en)):this.K===0&&(xt>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(De++,fe+en,Ot),y.m(De++,fe,Ot),y.m(De++,fe-mt,Ot)):(y.m(De++,xt+en,Ot),y.m(De++,xt,Ot),y.m(De++,xt-mt,Ot)));else{y.m(De++,Ze,dt);var zi=0;this.K===180||this.K===0?((this.K===180?xt>=fe.bounds.right:xt<=fe.bounds.x)&&(zi=(this.K===0?-mt:en)/2),y.m(De++,Ze+zi,Ot)):((this.K===270?Ot>=fe.bounds.bottom:Ot<=fe.bounds.y)&&(zi=(this.K===90?-mt:en)/2),y.m(De++,xt,dt+zi)),y.m(De++,xt,Ot)}}else mt=Math.max(10,this.he[nt.layer]),en=Math.max(10,this.Ld[nt.layer]),Se?this.K===180?(y.m(De++,xt-mt-Ae,Ot),y.m(De++,Math.min(xt-mt+Ae/2,xt),Ot),y.m(De++,xt,Ot),y.m(De++,xt,Ot),y.m(De++,Math.max(xt+en-Ae/2,xt),Ot),y.m(De++,xt+en+Ae,Ot)):this.K===90?(y.m(De++,xt,Ot+en+Ae),y.m(De++,xt,Math.max(Ot+en-Ae/2,Ot)),y.m(De++,xt,Ot),y.m(De++,xt,Ot),y.m(De++,xt,Math.min(Ot-mt+Ae/2,Ot)),y.m(De++,xt,Ot-mt-Ae)):this.K===270?(y.m(De++,xt,Ot-mt-Ae),y.m(De++,xt,Math.min(Ot-mt+Ae/2,Ot)),y.m(De++,xt,Ot),y.m(De++,xt,Ot),y.m(De++,xt,Math.max(Ot+en-Ae/2,Ot)),y.m(De++,xt,Ot+en+Ae)):(y.m(De++,xt+en+Ae,Ot),y.m(De++,Math.max(xt+en-Ae/2,xt),Ot),y.m(De++,xt,Ot),y.m(De++,xt,Ot),y.m(De++,Math.min(xt-mt+Ae/2,xt),Ot),y.m(De++,xt-mt-Ae,Ot)):y.m(De++,xt,Ot)}fe=nt}(re===null||le!==hl||we)&&(Ze=y.i(De-1).x,dt=y.i(De-1).y,xt=y.i(De).x,Ot=y.i(De).y,we?(Ae=this.Ld[ce.layer],this.K===180||this.K===0?(we=dt,we>=ce.bounds.y&&we<=ce.bounds.bottom&&(this.K===180?xt>=ce.bounds.x:xt<=ce.bounds.right)&&(fe=ce.centerX+(this.K===180?-Ae:Ae),we<ce.bounds.y+ce.bounds.height/2?we=ce.bounds.y-this.kc/2:we=ce.bounds.bottom+this.kc/2,y.m(De++,fe,dt),y.m(De++,fe,we)),y.m(De++,xt,we)):(we=Ze,we>=ce.bounds.x&&we<=ce.bounds.right&&(this.K===270?Ot>=ce.bounds.y:Ot<=ce.bounds.bottom)&&(fe=ce.centerY+(this.K===270?-Ae:Ae),we<ce.bounds.x+ce.bounds.width/2?we=ce.bounds.x-this.kc/2:we=ce.bounds.right+this.kc/2,y.m(De++,Ze,fe),y.m(De++,we,fe)),y.m(De++,we,Ot)),y.m(De++,xt,Ot)):Se?(mt=Math.max(10,this.he[ce.layer]),en=Math.max(10,this.Ld[ce.layer]),this.K===180&&xt>=ce.bounds.x?(fe=ce.bounds.x+ce.bounds.width,y.L(De-2,fe,dt),y.L(De-1,fe+en,dt)):this.K===90&&Ot<=ce.bounds.bottom?(fe=ce.bounds.y,y.L(De-2,Ze,fe),y.L(De-1,Ze,fe-mt)):this.K===270&&Ot>=ce.bounds.y?(fe=ce.bounds.y+ce.bounds.height,y.L(De-2,Ze,fe),y.L(De-1,Ze,fe+en)):this.K===0&&xt<=ce.bounds.right&&(fe=ce.bounds.x,y.L(De-2,fe,dt),y.L(De-1,fe-mt,dt))):(mt=Math.max(10,this.he[ce.layer]),en=Math.max(10,this.Ld[ce.layer]),we=0,this.K===180||this.K===0?((this.K===180?xt<=ce.bounds.x:xt>=ce.bounds.right)&&(we=(this.K===0?en:-mt)/2),y.m(De++,xt+we,dt)):((this.K===270?Ot<=ce.bounds.y:Ot>=ce.bounds.bottom)&&(we=(this.K===90?en:-mt)/2),y.m(De++,Ze,Ot+we)),y.m(De++,xt,Ot)))}else{for(;ce!==null&&ce!==fe;){for(mt=nt=null,ce=ce.destinationEdges.iterator;ce.next()&&(Ze=ce.value,Ze.link!==x.link||(nt=Ze.toVertex,mt=Ze.fromVertex,mt.node!==null&&(mt=null),nt.node!==null)););if(nt===null)break;nt!==fe&&(Ze=y.i(De-1).x,dt=y.i(De-1).y,xt=nt.centerX,Ot=nt.centerY,we?this.K===180||this.K===0?(mt!==null?mt.centerY:dt)!==Ot&&(mt=this.Ta[nt.layer]+this.Rf.x,De===y.firstPickIndex+1&&(mt=this.K===0?Math.max(mt,Ze):Math.min(mt,Ze)),y.m(De++,mt,dt),y.m(De++,mt,Ot)):(mt!==null?mt.centerX:Ze)!==xt&&(mt=this.Ta[nt.layer]+this.Rf.y,De===y.firstPickIndex+1&&(mt=this.K===90?Math.max(mt,dt):Math.min(mt,dt)),y.m(De++,Ze,mt),y.m(De++,xt,mt)):(mt=Math.max(10,this.he[nt.layer]),en=Math.max(10,this.Ld[nt.layer]),Se?this.K===180?(y.m(De++,xt+en+Ae,Ot),y.m(De++,Math.max(xt+en-Ae/2,xt),Ot),y.m(De++,xt,Ot),y.m(De++,xt,Ot),y.m(De++,Math.min(xt-mt+Ae/2,xt),Ot),y.m(De++,xt-mt-Ae,Ot)):this.K===90?(y.m(De++,xt,Ot-mt-Ae),y.m(De++,xt,Math.min(Ot-mt+Ae/2,Ot)),y.m(De++,xt,Ot),y.m(De++,xt,Ot),y.m(De++,xt,Math.max(Ot+en-Ae/2,Ot)),y.m(De++,xt,Ot+en+Ae)):this.K===270?(y.m(De++,xt,Ot+en+Ae),y.m(De++,xt,Math.max(Ot+en-Ae/2,Ot)),y.m(De++,xt,Ot),y.m(De++,xt,Ot),y.m(De++,xt,Math.min(Ot-mt+Ae/2,Ot)),y.m(De++,xt,Ot-mt-Ae)):(y.m(De++,xt-mt-Ae,Ot),y.m(De++,Math.min(xt-mt+Ae/2,xt),Ot),y.m(De++,xt,Ot),y.m(De++,xt,Ot),y.m(De++,Math.max(xt+en-Ae/2,xt),Ot),y.m(De++,xt+en+Ae,Ot)):this.K===180?(y.m(De++,xt+en,Ot),y.m(De++,xt-mt,Ot)):this.K===90?(y.m(De++,xt,Ot-mt),y.m(De++,xt,Ot+en)):this.K===270?(y.m(De++,xt,Ot+en),y.m(De++,xt,Ot-mt)):(y.m(De++,xt-mt,Ot),y.m(De++,xt+en,Ot)))),ce=nt}we&&(Ze=y.i(De-1).x,dt=y.i(De-1).y,xt=y.i(De).x,Ot=y.i(De).y,this.K===180||this.K===0?dt!==Ot&&(mt=this.K===0?Math.min(Math.max((xt+Ze)/2,this.Ta[fe.layer]+this.Rf.x),xt):Math.max(Math.min((xt+Ze)/2,this.Ta[fe.layer]+this.Rf.x),xt),y.m(De++,mt,dt),y.m(De++,mt,Ot)):Ze!==xt&&(mt=this.K===90?Math.min(Math.max((Ot+dt)/2,this.Ta[fe.layer]+this.Rf.y),Ot):Math.max(Math.min((Ot+dt)/2,this.Ta[fe.layer]+this.Rf.y),Ot),y.m(De++,Ze,mt),y.m(De++,xt,mt)))}E!==null&&Se&&4<=y.pointsCount&&(ee!==null&&(ee=le===hl?y.getLinkPointFromPoint(b,ee,ee.ga(Sa),y.i(3),!0):y.i(0),le===hl&&(le=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+le.x)/2,le.y),y.L(2,E.x,(le.y+E.y)/2)):(y.L(1,le.x,(ee.y+le.y)/2),y.L(2,(le.x+E.x)/2,E.y))),ee.w()||ee.set(b.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(b=ae===hl?y.getLinkPointFromPoint(z,re,re.ga(Sa),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ae===hl&&(re=y.i(y.pointsCount-3),ae=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,ae.x,(re.y+ae.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+ae.x)/2,ae.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},ls.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new _n,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),ee=E.i(b+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new Df;re.layer=Math.floor(z.y/2);var ae=E.i(0),le=E.i(E.pointsCount-1);if(re.first=ae.x*ae.x+ae.y,re.jc=le.x*le.x+le.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=b,re.link=E,b+2<E.pointsCount){ae=E.i(b-1),le=E.i(b+2);var ce=0;ae.y<z.y?ce=le.y<z.y?3:z.x<ee.x?2:1:ae.y>z.y&&(ce=le.y>z.y?0:ee.x<z.x?2:1),re.j=ce}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ce=1,re=x[z].jc,ae=z;ae<b;ae++)le=x[ae],le.jc!==re&&(ce++,re=le.jc);this.zi(x,this.Ux,z,z+ee);var fe=1;for(re=x[z].first,ae=z;ae<b;ae++)le=x[ae],le.first!==re&&(fe++,re=le.first);for(ae=!0,le=fe,ce<fe?(ae=!1,le=ce,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ce=0,fe=z;fe<b;fe++){var Se=x[fe];(ae?Se.first:Se.jc)!==re&&(ce++,re=ae?Se.first:Se.jc);var we=Se.link;z=we.i(Se.index),ee=we.i(Se.index+1);var Ae=this.linkSpacing*(ce-(le-1)/2);y++,we.uh(),we.L(Se.index,z.x,z.y+Ae),we.L(Se.index+1,ee.x,ee.y+Ae),we.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),ee=E.i(b+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new Df,re.layer=Math.floor(z.x/2),ae=E.i(0),le=E.i(E.pointsCount-1),re.first=ae.x+ae.y*ae.y,re.jc=le.x+le.y*le.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=b,re.link=E,b+2<E.pointsCount&&(ae=E.i(b-1),le=E.i(b+2),ce=0,ae.x<z.x?ce=le.x<z.x?3:z.y<ee.y?2:1:ae.x>z.x&&(ce=le.x>z.x?0:ee.y<z.y?2:1),re.j=ce),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ce=1,re=x[z].jc,ae=z;ae<b;ae++)le=x[ae],le.jc!==re&&(ce++,re=le.jc);for(this.zi(x,this.Ux,z,z+ee),fe=1,re=x[z].first,ae=z;ae<b;ae++)le=x[ae],le.first!==re&&(fe++,re=le.first);for(ae=!0,le=fe,ce<fe?(ae=!1,le=ce,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ce=0,fe=z;fe<b;fe++)Se=x[fe],(ae?Se.first:Se.jc)!==re&&(ce++,re=ae?Se.first:Se.jc),we=Se.link,z=we.i(Se.index),ee=we.i(Se.index+1),Ae=this.linkSpacing*(ce-(le-1)/2),y++,we.uh(),we.L(Se.index,z.x+Ae,z.y),we.L(Se.index+1,ee.x+Ae,ee.y),we.zf()}z=b}a=E}}}},Ee=ls.prototype,Ee.Vx=function(a,y){return a instanceof Df&&y instanceof Df&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ee.Ux=function(a,y){return a instanceof Df&&y instanceof Df&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ee.Js=function(a,y){return a instanceof Df&&y instanceof Df&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ee.B=function(a,y){return a-=y,-1<a&&1>a},Ee.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&tn("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function Ff(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function Nf(a,y,x){a.He[a.tc[y]]=x}un.Object.defineProperties(ls.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):tn("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Cy&&a!==Dv&&a!==em||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Tv&&a!==Ey&&a!==by||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Bv&&a!==Ay&&a!==My||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ly&&a!==Ov&&a!==ky||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Dv=new ln(ls,"CycleDepthFirst",0),Cy=new ln(ls,"CycleGreedy",1),em=new ln(ls,"CycleFromLayers",2),Tv=new ln(ls,"LayerOptimalLinkLength",0),Ey=new ln(ls,"LayerLongestPathSink",1),by=new ln(ls,"LayerLongestPathSource",2),Bv=new ln(ls,"InitDepthFirstOut",0),Ay=new ln(ls,"InitDepthFirstIn",1),My=new ln(ls,"InitNaive",2),Ly=new ln(ls,"AggressiveNone",0),Ov=new ln(ls,"AggressiveLess",1),ky=new ln(ls,"AggressiveMore",2),nw=8;ls.className="LayeredDigraphLayout",ls.CycleDepthFirst=Dv,ls.CycleGreedy=Cy,ls.CycleFromLayers=em,ls.LayerOptimalLinkLength=Tv,ls.LayerLongestPathSink=Ey,ls.LayerLongestPathSource=by,ls.InitDepthFirstOut=Bv,ls.InitDepthFirstIn=Ay,ls.InitNaive=My,ls.AggressiveNone=Ly,ls.AggressiveLess=Ov,ls.AggressiveMore=ky,ls.PackNone=0,ls.PackExpand=1,ls.PackStraighten=2,ls.PackMedian=4,ls.PackAll=15,ls.AlignNone=0,ls.AlignUpperLeft=1,ls.AlignUpperRight=2,ls.AlignLowerLeft=4,ls.AlignLowerRight=8,ls.AlignAll=15;function Df(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Df.className="SegInfo";function rp(a){Fs.call(this,a)}Ft(rp,Fs),rp.prototype.createVertex=function(){return new rh(this)},rp.prototype.createEdge=function(){return new tm(this)},rp.className="LayeredDigraphNetwork";function rh(a){_l.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Ft(rh,_l);function lx(a,y){return a.index-y.index}function Iv(a,y){if(!a.$n){for(var x=[],E=hn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=hn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;tn("Unable to find destination edge to given vertex")}function Fy(a){if(!a.co){for(var y=[],x=hn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(lx),a.co=y}return a.co}function iw(a){if(!a.ao){for(var y=[],x=hn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(lx),a.ao=y}return a.ao}rh.prototype.Cl=function(a){_l.prototype.Cl.call(this,a),this.bo=this.co=null},rh.prototype.Kl=function(a){_l.prototype.Kl.call(this,a),this.bo=this.co=null},rh.prototype.zl=function(a){_l.prototype.zl.call(this,a),this.$n=this.ao=null},rh.prototype.Jl=function(a){_l.prototype.Jl.call(this,a),this.$n=this.ao=null},un.Object.defineProperties(rh.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),rh.prototype.deleteDestinationEdge=rh.prototype.Jl,rh.prototype.addDestinationEdge=rh.prototype.zl,rh.prototype.deleteSourceEdge=rh.prototype.Kl,rh.prototype.addSourceEdge=rh.prototype.Cl,rh.className="LayeredDigraphVertex";function tm(a){Oc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Ft(tm,Oc),un.Object.defineProperties(tm.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),tm.className="LayeredDigraphEdge";function ha(a){$s.call(this),this.Ub=new An,this.Wn=Wv,this.ud=wd,this.vo=_v,this.Bq=Hy,this.$v=[],this.td=!0,this.Rb=Vv,this.$d=new fn(10,10).freeze();var y=new Cg(this);this.W=new ph(y),this.Y=new ph(y),this.ru=[],a&&Object.assign(this,a)}Ft(ha,$s),ha.prototype.cloneProtected=function(a){$s.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},ha.prototype.qb=function(a){a.classType===ha?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:tn("Unknown enum value: "+a):$s.prototype.qb.call(this,a)},ha.prototype.createNetwork=function(){return new Cg(this)},ha.prototype.makeNetwork=function(a){function y(E){if(E instanceof Gi)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof yi){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof At?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Io?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ha.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Kv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof At&&(y=a),this.path===Wv&&y!==null?this.ud=y.isTreePathToChildren?wd:wg:this.ud=this.path===Wv?wd:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new An,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Gi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof ph&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Ny(this,y));for(y=this.network.vertexes,a=null;a=rw(y),0<a.count;)y=ux(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ny(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&hx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&dx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&fx(this,y);if(this.Cu(),this.layerStyle===Gv){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===_y)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof ph&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new An,this.isValidLayout=!0};function rw(a){var y=new An;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}ha.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case wd:x.sourceEdges.count===0&&this.Ub.add(x);break;case wg:x.destinationEdges.count===0&&this.Ub.add(x);break;default:tn("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ux(this,a),a!==null&&this.Ub.add(a))};function ux(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case wd:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case wg:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:tn("Unhandled path value "+a.ud.toString())}}return E}function Ny(a,y){if(y!==null){switch(a.ud){case wd:if(0<y.destinationEdges.count){for(var x=new _n,E=y.destinationVertexes;E.next();){var b=E.value;cx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case wg:if(0<y.sourceEdges.count){for(x=new _n,E=y.sourceVertexes;E.next();)b=E.value,cx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:tn("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Ny(a,x[y])}}function cx(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}ha.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function hx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Ed&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,ee=z.length,re=0;re<ee;re++){var ae=z[re];hx(a,ae),x+=ae.descendantCount+1,E=Math.max(E,ae.maxChildrenCount),b=Math.max(b,ae.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function ow(a,y){switch(a.vo){default:case _v:return y.parent!==null?y.parent:a.W;case zy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case jy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ry:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}ha.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ow(this,a)),a.parent!==null&&a.parent.alignment===Ed){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function dx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)dx(a,y[E])}}ha.prototype.assignTreeVertexValues=function(){};function fx(a,y){if(y!==null){y.alignment!==Ed&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)fx(a,y[E])}}ha.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case op:break;case im:a.children.reverse();break;case rm:a.children.sort(a.comparer);break;case om:a.children.sort(a.comparer),a.children.reverse();break;default:tn("Unhandled sorting value "+a.sorting.toString())}},ha.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ha.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=Tf(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,ee=0,re=0,ae=a.commentSpacing;if(a.node!==null)for(var le=a.node.Mu();le.next();){var ce=le.value;ce.category==="Comment"&&ce.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ce),ce.Va(),ce=ce.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ce.width),ee+=ce.height+Math.abs(re)):(z+=ce.width+Math.abs(re),ee=Math.max(ee,ce.height)),re=ae)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=cn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,cn.free(b))};function Tf(a){return a===sf||a===Ed||a===lf||a===jd}function nm(a){return a===sf||a===Ed}function Dy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Tf(x)){if(nm(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===lf)return!0}}return!1}ha.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=Tf(z)),E=E===90||E===270,x=b===90||b===270;for(var ee=a.childrenCount===0,re=Dy(a),ae=0,le=a.comments,ce=le.length,fe=at.alloc(),Se=0;Se<ce;Se++){var we=le[Se],Ae=we.measuredBounds;if(E&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<b&&!z||x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x-a.commentMargin-Ae.width,a.bounds.y+ae),we.move(fe),we=we.Sd();we.next();){var De=we.value;De.fromSpot=Vl,De.toSpot=xl}else for(fe.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ae),we.move(fe),we=we.Sd();we.next();)De=we.value,De.fromSpot=xl,De.toSpot=Vl;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ae),we.move(fe),we=we.Sd();we.next();)De=we.value,De.fromSpot=xl,De.toSpot=Vl;else for(fe.h(a.bounds.x+a.commentMargin-Ae.width,a.bounds.y+ae),we.move(fe),we=we.Sd();we.next();)De=we.value,De.fromSpot=Vl,De.toSpot=xl;ae=0<=a.commentSpacing?ae+(Ae.height+a.commentSpacing):ae+(a.commentSpacing-Ae.height)}else{if(135<b&&!z||!x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x+ae,a.bounds.y-a.commentMargin-Ae.height),we.move(fe),we=we.Sd();we.next();)De=we.value,De.fromSpot=tu,De.toSpot=Ts;else for(fe.h(a.bounds.x+ae,a.bounds.y+2*a.focus.y-a.commentMargin),we.move(fe),we=we.Sd();we.next();)De=we.value,De.fromSpot=Ts,De.toSpot=tu;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+ae,a.bounds.y+2*a.focus.y+a.commentMargin),we.move(fe),we=we.Sd();we.next();)De=we.value,De.fromSpot=Ts,De.toSpot=tu;else for(fe.h(a.bounds.x+ae,a.bounds.y+a.commentMargin-Ae.height),we.move(fe),we=we.Sd();we.next();)De=we.value,De.fromSpot=tu,De.toSpot=Ts;ae=0<=a.commentSpacing?ae+(Ae.width+a.commentSpacing):ae+(a.commentSpacing-Ae.width)}}if(at.free(fe),y=ae-a.commentSpacing-(E?y.height:y.width),this.ud===wd)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},ha.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case Hv:gx(this,a);break;case am:if(a.alignment===Ed)gx(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=Tf(x)),E=Dy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=Fh(a);y=b===90||b===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)E=ee[x],z=Math.max(z,y?E.Da.width:E.Da.height);var ae=a.alignment;E=ae===Pd;var le=ae===Cd,ce=Tf(ae),fe=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Se=a.nodeSpacing,we=this.computeNodeIndent(a),Ae=a.rowSpacing,De=0;(E||le||a.hm||a.im&&a.maxGenerationCount===1)&&(De=Math.max(0,a.rowIndent)),E=a.width;var nt=a.height,Ze=0,dt=0,mt=0,xt=null,Ot=null,en=0,zi=0,dr=0,tr=0,mi=0,Gn=0,Bo=0,xo=0;if(ce&&!nm(ae)&&135<b&&ee.reverse(),nm(ae))if(1<re)for(var qa=0;qa<re;qa++)qa%2===0&&qa!==re-1&&(xo=Math.max(xo,y?ee[qa].Da.width:ee[qa].Da.height));else re===1&&(xo=y?ee[0].Da.width:ee[0].Da.height);if(ce){switch(ae){case sf:dt=135>b?px(this,a,ee,xo,Ze,dt):mx(this,a,ee,xo,Ze,dt),xo=dt.x,Ze=dt.width,dt=dt.height;break;case lf:for(xt=0;xt<re;xt++)Ot=ee[xt],fe=Ot.Da,mt=Gn===0?0:Ae,y?(Ot.S.h(z-fe.width,tr+mt),Ze=Math.max(Ze,fe.width),dt=Math.max(dt,tr+mt+fe.height),tr+=mt+fe.height):(Ot.S.h(dr+mt,z-fe.height),Ze=Math.max(Ze,dr+mt+fe.width),dt=Math.max(dt,fe.height),dr+=mt+fe.width),Gn++;break;case jd:for(xt=0;xt<re;xt++)Ot=ee[xt],z=Ot.Da,fe=Gn===0?0:Ae,y?(Ot.S.h(Se/2+a.focus.x,tr+fe),Ze=Math.max(Ze,z.width),dt=Math.max(dt,tr+fe+z.height),tr+=fe+z.height):(Ot.S.h(dr+fe,Se/2+a.focus.y),Ze=Math.max(Ze,dr+fe+z.width),dt=Math.max(dt,z.height),dr+=fe+z.width),Gn++}xt=Ac(this,2),Ot=Ac(this,2),y?(xt[0].h(0,0),xt[1].h(0,dt),Ot[0].h(Ze,0)):(xt[0].h(0,0),xt[1].h(Ze,0),Ot[0].h(0,dt)),Ot[1].h(Ze,dt)}else for(qa=0;qa<re;qa++){var Ls=ee[qa],Jl=Ls.Da;if(y){0<fe&&0<Gn&&dr+Se+Jl.width>fe&&(dr<z&&tg(a,ae,z-dr,0,Bo,qa-1),mi++,Gn=0,Bo=qa,mt=dt,dr=0,tr=135<b?-dt-Ae:dt+Ae),jv(this,Ls,0,tr);var ru=0;if(Gn===0)xt=Ls.Yo,Ot=Ls.kp,en=Jl.width,zi=Jl.height,(xt===null||Ot===null||b!==Fh(Ls))&&(xt=Ac(this,2),Ot=Ac(this,2),xt[0].h(0,0),xt[1].h(0,zi),Ot[0].h(en,0),Ot[1].h(en,zi));else{var Ju=hr();zi=vx(this,a,Ls,xt,Ot,en,zi,Ju),ru=zi.x,xt=Ju[0],Ot=Ju[1],en=zi.width,zi=zi.height,Nr(Ju),dr<Jl.width&&0>ru&&(xg(a,-ru,0,Bo,qa-1),zv(xt,-ru,0),zv(Ot,-ru,0),ru=0)}Ls.S.h(ru,tr),Ze=Math.max(Ze,en),dt=Math.max(dt,mt+(mi===0?0:Ae)+Jl.height),dr=en}else 0<fe&&0<Gn&&tr+Se+Jl.height>fe&&(tr<z&&tg(a,ae,0,z-tr,Bo,qa-1),mi++,Gn=0,Bo=qa,mt=Ze,tr=0,dr=135<b?-Ze-Ae:Ze+Ae),jv(this,Ls,dr,0),ru=0,Gn===0?(xt=Ls.Yo,Ot=Ls.kp,en=Jl.width,zi=Jl.height,(xt===null||Ot===null||b!==Fh(Ls))&&(xt=Ac(this,2),Ot=Ac(this,2),xt[0].h(0,0),xt[1].h(en,0),Ot[0].h(0,zi),Ot[1].h(en,zi))):(Ju=hr(),zi=vx(this,a,Ls,xt,Ot,en,zi,Ju),ru=zi.x,xt=Ju[0],Ot=Ju[1],en=zi.width,zi=zi.height,Nr(Ju),tr<Jl.height&&0>ru&&(xg(a,0,-ru,Bo,qa-1),zv(xt,0,-ru),zv(Ot,0,-ru),ru=0)),Ls.S.h(dr,ru),dt=Math.max(dt,zi),Ze=Math.max(Ze,mt+(mi===0?0:Ae)+Jl.width),tr=zi;Gn++}switch(0<mi&&(y?(dt+=Math.max(0,x),dr<Ze&&tg(a,ae,Ze-dr,0,Bo,re-1),0<De&&(le||xg(a,De,0,0,re-1),Ze+=De)):(Ze+=Math.max(0,x),tr<dt&&tg(a,ae,0,dt-tr,Bo,re-1),0<De&&(le||xg(a,0,De,0,re-1),dt+=De))),De=le=0,ae){case ap:y?le+=Ze/2-a.focus.x-we/2:De+=dt/2-a.focus.y-we/2;break;case Pg:0<mi?y?le+=Ze/2-a.focus.x-we/2:De+=dt/2-a.focus.y-we/2:y?(xo=ee[0].S.x+ee[0].la.x,le+=xo+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-xo)/2-a.focus.x-we/2):(xo=ee[0].S.y+ee[0].la.y,De+=xo+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-xo)/2-a.focus.y-we/2);break;case Pd:y?(le-=we,Ze+=we):(De-=we,dt+=we);break;case Cd:y?(le+=Ze-a.width+we,Ze+=we):(De+=dt-a.height+we,dt+=we);break;case sf:y?1<re?le+=xo+Se/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?De+=xo+Se/2-a.focus.y:De+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case lf:y?le+=Ze+Se/2-a.focus.x:De+=dt+Se/2-a.focus.y;break;case jd:break;default:dt=this.customAlignment(a,le,De,Ze,dt),le=dt[0],De=dt[1],Ze=dt[2],dt=dt[3]}for(we=0;we<re;we++)xo=ee[we],y?xo.S.h(xo.S.x+xo.la.x-le,xo.S.y+(135<b?(ce?-dt:-xo.Da.height)+xo.la.y-x:nt+x+xo.la.y)):xo.S.h(xo.S.x+(135<b?(ce?-Ze:-xo.Da.width)+xo.la.x-x:E+x+xo.la.x),xo.S.y+xo.la.y-De);if(re=ee=0,ce?y?(Ze=Ty(a,Ze,le),0>le&&(le=0),135<b&&(De+=dt+x),dt+=nt+x,ae===jd&&(ee+=Se/2+a.focus.x),re+=nt+x):(135<b&&(le+=Ze+x),Ze+=E+x,dt=By(a,dt,De),0>De&&(De=0),ae===jd&&(re+=Se/2+a.focus.y),ee+=E+x):y?(a.comments===null?E>Ze&&(Ze=Oy(ae,E-Ze,0),ee=Ze.x,re=Ze.y,Ze=E,le=0):Ze=Ty(a,Ze,le),0>le&&(ee-=le,le=0),135<b&&(De+=dt+x),dt=Math.max(Math.max(dt,nt),dt+nt+x),re+=nt+x):(135<b&&(le+=Ze+x),Ze=Math.max(Math.max(Ze,E),Ze+E+x),a.comments===null?nt>dt&&(dt=Oy(ae,0,nt-dt),ee=dt.x,re=dt.y,dt=nt,De=0):dt=By(a,dt,De),0>De&&(re-=De,De=0),ee+=E+x),0<mi)b=Ac(this,4),mi=Ac(this,4),y?(b[2].h(0,nt+x),b[3].h(b[2].x,dt),mi[2].h(Ze,b[2].y),mi[3].h(mi[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Ze,b[2].y),mi[2].h(b[2].x,dt),mi[3].h(b[3].x,mi[2].y));else{for(b=Ac(this,xt.length+2),mi=Ac(this,Ot.length+2),ae=0;ae<xt.length;ae++)ce=xt[ae],b[ae+2].h(ce.x+ee,ce.y+re);for(ae=0;ae<Ot.length;ae++)ce=Ot[ae],mi[ae+2].h(ce.x+ee,ce.y+re)}y?(b[0].h(le,0),b[1].h(b[0].x,nt),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),mi[0].h(le+E,0),mi[1].h(mi[0].x,nt),mi[2].y<mi[1].y&&(mi[2].x<mi[0].x?mi[2].assign(mi[1]):mi[1].assign(mi[2])),mi[3].y<mi[2].y&&(mi[3].x<mi[0].x?mi[3].assign(mi[2]):mi[2].assign(mi[3])),b[2].y-=x/2,mi[2].y-=x/2):(b[0].h(0,De),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),mi[0].h(0,De+nt),mi[1].h(E,mi[0].y),mi[2].x<mi[1].x&&(mi[2].y<mi[0].y?mi[2].assign(mi[1]):mi[1].assign(mi[2])),mi[3].x<mi[2].x&&(mi[3].y<mi[0].y?mi[3].assign(mi[2]):mi[2].assign(mi[3])),b[2].x-=x/2,mi[2].x-=x/2),Hh(this,xt),Hh(this,Ot),a.Yo=b,a.kp=mi,a.la.h(le,De),a.Da.h(Ze,dt)}break;default:tn("Unhandled compaction value "+a.compaction.toString())}}};function gx(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=Tf(x));var b=Dy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=Fh(y),x=E===90||E===270;var z=0;b=y.children;for(var ee=b.length,re=0;re<ee;re++){var ae=b[re];z=Math.max(z,x?ae.Da.width:ae.Da.height)}var le=y.alignment,ce=le===Pd,fe=le===Cd;re=Tf(le);var Se=Math.max(0,y.breadthLimit);ae=a.computeLayerSpacing(y);var we=y.nodeSpacing,Ae=a.computeNodeIndent(y),De=ce||fe?0:Ae/2,nt=y.rowSpacing,Ze=0;(ce||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(Ze=Math.max(0,y.rowIndent)),ce=y.width;var dt=y.height,mt=0,xt=0,Ot=0,en=0,zi=0,dr=0,tr=0,mi=0,Gn=0,Bo=0;if(re&&!nm(le)&&135<E&&b.reverse(),nm(le))if(1<ee)for(var xo=0;xo<ee;xo++){var qa=b[xo],Ls=qa.Da;xo%2===0&&xo!==ee-1?Gn=Math.max(Gn,(x?Ls.width:Ls.height)+a.computeBusNodeSpacing(qa)-we):xo%2!==0&&(Bo=Math.max(Bo,(x?Ls.width:Ls.height)+a.computeBusNodeSpacing(qa)-we))}else ee===1&&(Gn=x?b[0].Da.width:b[0].Da.height);if(re)switch(le){case sf:case Ed:xt=135>E?px(a,y,b,Gn,mt,xt):mx(a,y,b,Gn,mt,xt),Gn=xt.x,mt=xt.width,xt=xt.height;break;case lf:for(Se=0;Se<ee;Se++)De=b[Se],Ot=De.Da,Bo=tr===0?0:nt,x?(De.S.h(z-Ot.width,zi+Bo),mt=Math.max(mt,Ot.width),xt=Math.max(xt,zi+Bo+Ot.height),zi+=Bo+Ot.height):(De.S.h(en+Bo,z-Ot.height),mt=Math.max(mt,en+Bo+Ot.width),xt=Math.max(xt,Ot.height),en+=Bo+Ot.width),tr++;break;case jd:for(z=0;z<ee;z++)Se=b[z],De=Se.Da,Ot=tr===0?0:nt,x?(Se.S.h(we/2+y.focus.x,zi+Ot),mt=Math.max(mt,De.width),xt=Math.max(xt,zi+Ot+De.height),zi+=Ot+De.height):(Se.S.h(en+Ot,we/2+y.focus.y),mt=Math.max(mt,en+Ot+De.width),xt=Math.max(xt,De.height),en+=Ot+De.width),tr++}else for(Bo=0;Bo<ee;Bo++)xo=b[Bo],qa=xo.Da,x?(0<Se&&0<tr&&en+we+qa.width>Se&&(en<z&&tg(y,le,z-en,0,mi,Bo-1),dr++,tr=0,mi=Bo,Ot=xt,en=0,zi=135<E?-xt-nt:xt+nt),Ls=tr===0?De:we,jv(a,xo,0,zi),xo.S.h(en+Ls,zi),mt=Math.max(mt,en+Ls+qa.width),xt=Math.max(xt,Ot+(dr===0?0:nt)+qa.height),en+=Ls+qa.width):(0<Se&&0<tr&&zi+we+qa.height>Se&&(zi<z&&tg(y,le,0,z-zi,mi,Bo-1),dr++,tr=0,mi=Bo,Ot=mt,zi=0,en=135<E?-mt-nt:mt+nt),Ls=tr===0?De:we,jv(a,xo,en,0),xo.S.h(en,zi+Ls),xt=Math.max(xt,zi+Ls+qa.height),mt=Math.max(mt,Ot+(dr===0?0:nt)+qa.width),zi+=Ls+qa.height),tr++;switch(0<dr&&(x?(xt+=Math.max(0,ae),en<mt&&tg(y,le,mt-en,0,mi,ee-1),0<Ze&&(fe||xg(y,Ze,0,0,ee-1),mt+=Ze)):(mt+=Math.max(0,ae),zi<xt&&tg(y,le,0,xt-zi,mi,ee-1),0<Ze&&(fe||xg(y,0,Ze,0,ee-1),xt+=Ze))),Ze=fe=0,le){case ap:x?fe+=mt/2-y.focus.x-Ae/2:Ze+=xt/2-y.focus.y-Ae/2;break;case Pg:0<dr?x?fe+=mt/2-y.focus.x-Ae/2:Ze+=xt/2-y.focus.y-Ae/2:x?(a=b[0].S.x+b[0].la.x,fe+=a+(b[ee-1].S.x+b[ee-1].la.x+2*b[ee-1].focus.x-a)/2-y.focus.x-Ae/2):(a=b[0].S.y+b[0].la.y,Ze+=a+(b[ee-1].S.y+b[ee-1].la.y+2*b[ee-1].focus.y-a)/2-y.focus.y-Ae/2);break;case Pd:x?(fe-=Ae,mt+=Ae):(Ze-=Ae,xt+=Ae);break;case Cd:x?(fe+=mt-y.width+Ae,mt+=Ae):(Ze+=xt-y.height+Ae,xt+=Ae);break;case sf:case Ed:x?1<ee?fe+=Gn+we/2-y.focus.x:fe+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?Ze+=Gn+we/2-y.focus.y:Ze+=b[0].focus.y-y.focus.y+b[0].la.y;break;case lf:x?fe+=mt+we/2-y.focus.x:Ze+=xt+we/2-y.focus.y;break;case jd:break;default:a=a.customAlignment(y,fe,Ze,mt,xt),fe=a[0],Ze=a[1],mt=a[2],xt=a[3]}for(a=0;a<ee;a++)Ae=b[a],x?Ae.S.h(Ae.S.x+Ae.la.x-fe,Ae.S.y+(135<E?(re?-xt:-Ae.Da.height)+Ae.la.y-ae:dt+ae+Ae.la.y)):Ae.S.h(Ae.S.x+(135<E?(re?-mt:-Ae.Da.width)+Ae.la.x-ae:ce+ae+Ae.la.x),Ae.S.y+Ae.la.y-Ze);x?(mt=Ty(y,mt,fe),0>fe&&(fe=0),135<E&&(Ze+=xt+ae),xt=Math.max(Math.max(xt,dt),xt+dt+ae)):(135<E&&(fe+=mt+ae),mt=Math.max(Math.max(mt,ce),mt+ce+ae),xt=By(y,xt,Ze),0>Ze&&(Ze=0)),y.la.h(fe,Ze),y.Da.h(mt,xt)}}ha.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function px(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new cn(E,0,b,z);if(ee===1)return y=x[0],b=y.Da.width,z=y.Da.height,new cn(E,0,b,z);for(var re=y.nodeSpacing,ae=y.rowSpacing,le=Fh(y)===90,ce=0,fe=0,Se=0,we=0;we<ee;we++)if(!(we%2!==0||1<ee&&we===ee-1)){var Ae=x[we],De=Ae.Da,nt=ce===0?0:ae;if(le){var Ze=a.computeBusNodeSpacing(Ae)-re;Ae.S.h(E-(De.width+Ze),Se+nt),b=Math.max(b,De.width+Ze),z=Math.max(z,Se+nt+De.height),Se+=nt+De.height}else Ze=a.computeBusNodeSpacing(Ae)-re,Ae.S.h(fe+nt,E-(De.height+Ze)),z=Math.max(z,De.height+Ze),b=Math.max(b,fe+nt+De.width),fe+=nt+De.width;ce++}for(ce=0,Ae=fe,we=Se,le?(fe=E+re,Se=0):(fe=0,Se=E+re),De=0;De<ee;De++)if(De%2!==0){nt=x[De],Ze=nt.Da;var dt=ce===0?0:ae;if(le){var mt=a.computeBusNodeSpacing(nt)-re;nt.S.h(fe+mt,Se+dt),b=Math.max(b,fe+Ze.width+mt),z=Math.max(z,Se+dt+Ze.height),Se+=dt+Ze.height}else mt=a.computeBusNodeSpacing(nt)-re,nt.S.h(fe+dt,Se+mt),b=Math.max(b,fe+dt+Ze.width),z=Math.max(z,Se+Ze.height+mt),fe+=dt+Ze.width;ce++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(we),Math.abs(Se)):Math.max(Math.abs(Ae),Math.abs(fe))),le?(x.S.h(E+re/2-x.focus.x-x.la.x,z+a),le=E+re/2-x.focus.x-x.la.x,b=Math.max(b,le+ee.width),0>le&&(b-=le),z=Math.max(z,Math.max(we,Se)+a+ee.height),0>x.S.x&&(E=Rv(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Ae,fe)+a+ee.width),Se=E+re/2-x.focus.y-x.la.y,z=Math.max(z,Se+ee.height),0>Se&&(z-=Se),0>x.S.y&&(E=Rv(y,x.S.y,!0,E,re)))),new cn(E,0,b,z)}function mx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new cn(E,0,b,z);if(ee===1)return x=x[0],b=x.Da.width,z=x.Da.height,new cn(E,0,b,z);for(var re=y.nodeSpacing,ae=y.rowSpacing,le=Fh(y)===270,ce=0,fe=0,Se=0,we=0;we<ee;we++)if(!(we%2!==0||1<ee&&we===ee-1)){var Ae=x[we],De=Ae.Da,nt=ce===0?0:ae;if(le){var Ze=a.computeBusNodeSpacing(Ae)-re;Se-=nt+De.height,Ae.S.h(E-(De.width+Ze),Se),b=Math.max(b,De.width+Ze),z=Math.max(z,Math.abs(Se))}else Ze=a.computeBusNodeSpacing(Ae)-re,fe-=nt+De.width,Ae.S.h(fe,E-(De.height+Ze)),z=Math.max(z,De.height+Ze),b=Math.max(b,Math.abs(fe));ce++}for(ce=0,Ae=fe,we=Se,le?(fe=E+re,Se=0):(fe=0,Se=E+re),De=0;De<ee;De++)if(De%2!==0){nt=x[De],Ze=nt.Da;var dt=ce===0?0:ae;if(le){var mt=a.computeBusNodeSpacing(nt)-re;Se-=dt+Ze.height,nt.S.h(fe+mt,Se),b=Math.max(b,fe+Ze.width+mt),z=Math.max(z,Math.abs(Se))}else mt=a.computeBusNodeSpacing(nt)-re,fe-=dt+Ze.width,nt.S.h(fe,Se+mt),z=Math.max(z,Se+Ze.height+mt),b=Math.max(b,Math.abs(fe));ce++}for(1<ee&&ee%2===1&&(ae=x[ee-1],ce=ae.Da,a=a.computeBusLastRowSpacing(ae,le?Math.max(Math.abs(we),Math.abs(Se)):Math.max(Math.abs(Ae),Math.abs(fe))),le?(ae.S.h(E+re/2-ae.focus.x-ae.la.x,-z-ce.height-a),fe=E+re/2-ae.focus.x-ae.la.x,b=Math.max(b,fe+ce.width),0>fe&&(b-=fe),z=Math.max(z,Math.abs(Math.min(we,Se))+a+ce.height),0>ae.S.x&&(E=Rv(y,ae.S.x,!1,E,re))):(ae.S.h(-b-ce.width-a,E+re/2-ae.focus.y-ae.la.y),b=Math.max(b,Math.abs(Math.min(Ae,fe))+a+ce.width),Se=E+re/2-ae.focus.y-ae.la.y,z=Math.max(z,Se+ce.height),0>Se&&(z-=Se),0>ae.S.y&&(E=Rv(y,ae.S.y,!0,E,re)))),y=0;y<ee;y++)re=x[y],le?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new cn(E,0,b,z)}ha.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},ha.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Rv(a,y,x,E,b){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function Ty(a,y,x){switch(a.alignment){case Pg:case ap:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Pd:return a.width>y?a.width:y;case Cd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case sf:case Ed:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case lf:return a.width-a.focus.x+a.nodeSpacing/2+y;case jd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function By(a,y,x){switch(a.alignment){case Pg:case ap:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Pd:return a.height>y?a.height:y;case Cd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case sf:case Ed:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case lf:return a.height-a.focus.y+a.nodeSpacing/2+y;case jd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case ap:y/=2,x/=2;break;case Pg:y/=2,x/=2;break;case Pd:x=y=0;break;case Cd:break;default:tn("Unhandled alignment value "+a.toString())}return new at(y,x)}function tg(a,y,x,E,b,z){y=Oy(y,x,E),xg(a,y.x,y.y,b,z)}function xg(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function jv(a,y,x,E){var b=y.parent;switch(a.ud){case wd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case wg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:tn("Unhandled path value "+a.ud.toString())}}function zv(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function vx(a,y,x,E,b,z,ee,re){var ae=Fh(y),le=ae===90||ae===270,ce=y.nodeSpacing;y=E;var fe=b;E=z;var Se=ee,we=x.Yo,Ae=x.kp;ee=x.Da;var De=le?Math.max(Se,ee.height):Math.max(E,ee.width);if((we===null||ae!==Fh(x))&&(we=Ac(a,2),Ae=Ac(a,2),le?(we[0].h(0,0),we[1].h(0,ee.height),Ae[0].h(ee.width,0),Ae[1].h(Ae[0].x,we[1].y)):(we[0].h(0,0),we[1].h(ee.width,0),Ae[0].h(0,ee.height),Ae[1].h(we[1].x,Ae[0].y))),le){if(Se=9999999,!(fe===null||2>fe.length||we===null||2>we.length))for(b=x=0;x<fe.length&&b<we.length;){z=fe[x];var nt=we[b];ae=nt.x,le=nt.y,ae+=E;var Ze=z;x+1<fe.length&&(Ze=fe[x+1]);var dt=nt;nt=dt.x,dt=dt.y,b+1<we.length&&(dt=we[b+1],nt=dt.x,dt=dt.y,nt+=E);var mt=Se;z.y===le?mt=ae-z.x:z.y>le&&z.y<dt?mt=ae+(z.y-le)/(dt-le)*(nt-ae)-z.x:le>z.y&&le<Ze.y&&(mt=ae-(z.x+(le-z.y)/(Ze.y-z.y)*(Ze.x-z.x))),mt<Se&&(Se=mt),Ze.y<=z.y?x++:dt<=le?b++:(Ze.y<=dt&&x++,dt<=Ze.y&&b++)}if(Se=E-Se,Se+=ce,x=we,b=Se,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ce=Ac(a,y.length+x.length),E=z=ae=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],ce[E++].h(le.x+b,le.y);for(;ae<y.length;)le=y[ae++],ce[E++].h(le.x,le.y);for(ae=y[y.length-1].y;z<x.length&&x[z].y<=ae;)z++;for(;z<x.length&&x[z].y>ae;)le=x[z++],ce[E++].h(le.x+b,le.y);for(x=Ac(a,E),ae=0;ae<E;ae++)x[ae].assign(ce[ae]);Hh(a,ce),E=x}if(z=Ae,ae=Se,fe===null||2>fe.length||z===null||2>z.length)b=null;else{for(ce=Ac(a,fe.length+z.length),b=le=x=0;x<fe.length&&fe[x].y<z[0].y;)Ze=fe[x++],ce[b++].h(Ze.x,Ze.y);for(;le<z.length;)Ze=z[le++],ce[b++].h(Ze.x+ae,Ze.y);for(z=z[z.length-1].y;x<fe.length&&fe[x].y<=z;)x++;for(;x<fe.length&&fe[x].y>z;)ae=fe[x++],ce[b++].h(ae.x,ae.y);for(z=Ac(a,b),x=0;x<b;x++)z[x].assign(ce[x]);Hh(a,ce),b=z}return z=Math.max(0,Se)+ee.width,ee=De,Hh(a,y),Hh(a,we),Hh(a,fe),Hh(a,Ae),re[0]=E,re[1]=b,new cn(Se,0,z,ee)}if(E=9999999,!(fe===null||2>fe.length||we===null||2>we.length))for(b=x=0;x<fe.length&&b<we.length;)z=fe[x],nt=we[b],ae=nt.x,le=nt.y,le+=Se,Ze=z,x+1<fe.length&&(Ze=fe[x+1]),dt=nt,nt=dt.x,dt=dt.y,b+1<we.length&&(dt=we[b+1],nt=dt.x,dt=dt.y,dt+=Se),mt=E,z.x===ae?mt=le-z.y:z.x>ae&&z.x<nt?mt=le+(z.x-ae)/(nt-ae)*(dt-le)-z.y:ae>z.x&&ae<Ze.x&&(mt=le-(z.y+(ae-z.x)/(Ze.x-z.x)*(Ze.y-z.y))),mt<E&&(E=mt),Ze.x<=z.x?x++:nt<=ae?b++:(Ze.x<=nt&&x++,nt<=Ze.x&&b++);if(Se-=E,Se+=ce,x=we,b=Se,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ce=Ac(a,y.length+x.length),E=z=ae=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],ce[E++].h(le.x,le.y+b);for(;ae<y.length;)le=y[ae++],ce[E++].h(le.x,le.y);for(ae=y[y.length-1].x;z<x.length&&x[z].x<=ae;)z++;for(;z<x.length&&x[z].x>ae;)le=x[z++],ce[E++].h(le.x,le.y+b);for(x=Ac(a,E),ae=0;ae<E;ae++)x[ae].assign(ce[ae]);Hh(a,ce),E=x}if(z=Ae,ae=Se,fe===null||2>fe.length||z===null||2>z.length)b=null;else{for(ce=Ac(a,fe.length+z.length),b=le=x=0;x<fe.length&&fe[x].x<z[0].x;)Ze=fe[x++],ce[b++].h(Ze.x,Ze.y);for(;le<z.length;)Ze=z[le++],ce[b++].h(Ze.x,Ze.y+ae);for(z=z[z.length-1].x;x<fe.length&&fe[x].x<=z;)x++;for(;x<fe.length&&fe[x].x>z;)ae=fe[x++],ce[b++].h(ae.x,ae.y);for(z=Ac(a,b),x=0;x<b;x++)z[x].assign(ce[x]);Hh(a,ce),b=z}return z=De,ee=Math.max(0,Se)+ee.height,Hh(a,y),Hh(a,we),Hh(a,fe),Hh(a,Ae),re[0]=E,re[1]=b,new cn(Se,0,z,ee)}function Ac(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new at;return a}function Hh(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}ha.prototype.arrangeTrees=function(){if(this.Rb===Kv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof ph){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),Iy(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof ph&&a.push(x);switch(this.sorting){case op:break;case im:a.reverse();break;case rm:a.sort(this.comparer);break;case om:a.sort(this.comparer),a.reverse();break;default:tn("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch(Iy(this,b,y+b.la.x,x+b.la.y),this.Rb){case Vv:x+=b.Da.height+this.$d.height;break;case Wy:y+=b.Da.width+this.$d.width;break;default:tn("Unhandled arrangement value "+this.Rb.toString())}}}};function Iy(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var ee=y[z];Iy(a,ee,x+ee.S.x,E+ee.S.y)}}}ha.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},ha.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},ha.prototype.Gu=function(){if(this.layerStyle===Gv){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new at(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new at(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,b.push(new cn(0,z,x,re))):this.angle===90?(b.push(new cn(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new cn(z,0,re,x))):(b.push(new cn(z,0,re,x)),z+=re)}this.commitLayers(b,E)}},ha.prototype.commitLayers=function(){},ha.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ha.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof ph&&yx(this,y)}};function yx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)yx(a,y[E])}}ha.prototype.setPortSpots=function(a){var y=a.alignment;if(Tf(y)){var x=this.ud===wd,E=Fh(a);switch(E){case 0:var b=xl;break;case 90:b=Ts;break;case 180:b=Vl;break;default:b=tu}var z=a.children,ee=z.length;switch(y){case sf:case Ed:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var ae=E===90||E===270?Vl:tu;if(ee===1||y===ee-1&&ee%2===1)switch(E){case 0:ae=Vl;break;case 90:ae=tu;break;case 180:ae=xl;break;default:ae=Ts}else y%2===0&&(ae=E===90||E===270?xl:Ts);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=ae)):(a.setsPortSpot&&(re.fromSpot=ae),a.setsChildPortSpot&&(re.toSpot=b))}}break;case lf:for(E=E===90||E===270?xl:Ts,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)));break;case jd:for(E=E===90||E===270?Vl:tu,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)))}}else if(x=Fh(a),this.ud===wd){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=xl;break;case 90:E.fromSpot=Ts;break;case 180:E.fromSpot=Vl;break;default:E.fromSpot=tu}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=Vl;break;case 90:E.toSpot=tu;break;case 180:E.toSpot=xl;break;default:E.toSpot=Ts}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=xl;break;case 90:E.toSpot=Ts;break;case 180:E.toSpot=Vl;break;default:E.toSpot=tu}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=Vl;break;case 90:E.fromSpot=tu;break;case 180:E.fromSpot=xl;break;default:E.fromSpot=Ts}else E.fromSpot=a.childPortSpot}};function Fh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}ha.prototype.computeLayerSpacing=function(a){var y=Fh(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},ha.prototype.computeNodeIndent=function(a){var y=Fh(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},un.Object.defineProperties(ha.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==_v&&a!==jy&&a!==Ry&&a!==zy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Hy&&a!==_y&&a!==Gv||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Vv&&a!==Wy&&a!==Kv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==op&&a!==im&&a!==rm&&!om||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):tn("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==Hv&&a!==am||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==op&&a!==im&&a!==rm&&!om||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==Hv&&a!==am||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var Wv=new ln(ha,"PathDefault",-1),wd=new ln(ha,"PathDestination",0),wg=new ln(ha,"PathSource",1),op=new ln(ha,"SortingForwards",10),im=new ln(ha,"SortingReverse",11),rm=new ln(ha,"SortingAscending",12),om=new ln(ha,"SortingDescending",13),ap=new ln(ha,"AlignmentCenterSubtrees",20),Pg=new ln(ha,"AlignmentCenterChildren",21),Pd=new ln(ha,"AlignmentStart",22),Cd=new ln(ha,"AlignmentEnd",23),sf=new ln(ha,"AlignmentBus",24),Ed=new ln(ha,"AlignmentBusBranching",25),lf=new ln(ha,"AlignmentTopLeftBus",26),jd=new ln(ha,"AlignmentBottomRightBus",27),Hv=new ln(ha,"CompactionNone",30),am=new ln(ha,"CompactionBlock",31),_v=new ln(ha,"StyleLayered",40),Ry=new ln(ha,"StyleLastParents",41),jy=new ln(ha,"StyleAlternating",42),zy=new ln(ha,"StyleRootOnly",43),Vv=new ln(ha,"ArrangementVertical",50),Wy=new ln(ha,"ArrangementHorizontal",51),Kv=new ln(ha,"ArrangementFixedRoots",52),Hy=new ln(ha,"LayerIndividual",60),_y=new ln(ha,"LayerSiblings",61),Gv=new ln(ha,"LayerUniform",62);ha.className="TreeLayout",ha.PathDefault=Wv,ha.PathDestination=wd,ha.PathSource=wg,ha.SortingForwards=op,ha.SortingReverse=im,ha.SortingAscending=rm,ha.SortingDescending=om,ha.AlignmentCenterSubtrees=ap,ha.AlignmentCenterChildren=Pg,ha.AlignmentStart=Pd,ha.AlignmentEnd=Cd,ha.AlignmentBus=sf,ha.AlignmentBusBranching=Ed,ha.AlignmentTopLeftBus=lf,ha.AlignmentBottomRightBus=jd,ha.CompactionNone=Hv,ha.CompactionBlock=am,ha.StyleLayered=_v,ha.StyleLastParents=Ry,ha.StyleAlternating=jy,ha.StyleRootOnly=zy,ha.ArrangementVertical=Vv,ha.ArrangementHorizontal=Wy,ha.ArrangementFixedRoots=Kv,ha.LayerIndividual=Hy,ha.LayerSiblings=_y,ha.LayerUniform=Gv;function Cg(a){Fs.call(this,a)}Ft(Cg,Fs),Cg.prototype.createVertex=function(){return new ph(this)},Cg.prototype.createEdge=function(){return new sp(this)},Cg.className="TreeNetwork";function ph(a){_l.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new at(0,0),this.Da=new fn(0,0),this.la=new at(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=op,this.hd=ly,this.Kb=0,this.Jb=Pg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=am,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ml,this.wr=!0,this.Dp=ml}Ft(ph,_l),ph.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},un.Object.defineProperties(ph.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),ph.className="TreeVertex";function sp(a){Oc.call(this,a),this.$t=new at(0,0)}Ft(sp,Oc),sp.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case wd:x=this.fromVertex,E=this.toVertex;break;case wg:x=this.toVertex,E=this.fromVertex;break;default:tn("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=Fh(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var ae=a.curve===Yc,le=a.isOrthogonal,ce;if(a.uh(),le||ae){for(ce=2;4<a.pointsCount;)a.pv(2);var fe=a.i(1),Se=a.i(2)}else{for(ce=1;3<a.pointsCount;)a.pv(1);fe=a.i(0),Se=a.i(a.pointsCount-1)}var we=a.i(a.pointsCount-1);z===0?(x.alignment===Cd?(z=E.bottom+b.y,b.y===0&&fe.y>we.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Pd?(z=E.top+b.y,b.y===0&&fe.y<we.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,ae?(a.m(ce,fe.x,z),ce++,a.m(ce,E.right+ee,z),ce++,a.m(ce,E.right+ee+(b.x-re)/3,z),ce++,a.m(ce,E.right+ee+2*(b.x-re)/3,z),ce++,a.m(ce,E.right+ee+(b.x-re),z),ce++,a.m(ce,Se.x,z)):(le&&(a.m(ce,E.right+ee/2,fe.y),ce++),a.m(ce,E.right+ee/2,z),ce++,a.m(ce,E.right+ee+b.x-(le?re/2:re),z),ce++,le&&a.m(ce,a.i(ce-1).x,Se.y))):z===90?(x.alignment===Cd?(z=E.right+b.x,b.x===0&&fe.x>we.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Pd?(z=E.left+b.x,b.x===0&&fe.x<we.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,ae?(a.m(ce,z,fe.y),ce++,a.m(ce,z,E.bottom+ee),ce++,a.m(ce,z,E.bottom+ee+(b.y-re)/3),ce++,a.m(ce,z,E.bottom+ee+2*(b.y-re)/3),ce++,a.m(ce,z,E.bottom+ee+(b.y-re)),ce++,a.m(ce,z,Se.y)):(le&&(a.m(ce,fe.x,E.bottom+ee/2),ce++),a.m(ce,z,E.bottom+ee/2),ce++,a.m(ce,z,E.bottom+ee+b.y-(le?re/2:re)),ce++,le&&a.m(ce,Se.x,a.i(ce-1).y))):z===180?(x.alignment===Cd?(z=E.bottom+b.y,b.y===0&&fe.y>we.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Pd?(z=E.top+b.y,b.y===0&&fe.y<we.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,ae?(a.m(ce,fe.x,z),ce++,a.m(ce,E.left-ee,z),ce++,a.m(ce,E.left-ee+(b.x+re)/3,z),ce++,a.m(ce,E.left-ee+2*(b.x+re)/3,z),ce++,a.m(ce,E.left-ee+(b.x+re),z),ce++,a.m(ce,Se.x,z)):(le&&(a.m(ce,E.left-ee/2,fe.y),ce++),a.m(ce,E.left-ee/2,z),ce++,a.m(ce,E.left-ee+b.x+(le?re/2:re),z),ce++,le&&a.m(ce,a.i(ce-1).x,Se.y))):z===270?(x.alignment===Cd?(z=E.right+b.x,b.x===0&&fe.x>we.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Pd?(z=E.left+b.x,b.x===0&&fe.x<we.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,ae?(a.m(ce,z,fe.y),ce++,a.m(ce,z,E.top-ee),ce++,a.m(ce,z,E.top-ee+(b.y+re)/3),ce++,a.m(ce,z,E.top-ee+2*(b.y+re)/3),ce++,a.m(ce,z,E.top-ee+(b.y+re)),ce++,a.m(ce,z,Se.y)):(le&&(a.m(ce,fe.x,E.top-ee/2),ce++),a.m(ce,z,E.top-ee/2),ce++,a.m(ce,z,E.top-ee+b.y+(le?re/2:re)),ce++,le&&a.m(ce,Se.x,a.i(ce-1).y))):tn("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=Fh(x),y!==Fh(b)&&(ee=E.computeLayerSpacing(x),re=x.bounds,x=b.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===Yc,b=a.isOrthogonal,E=Tf(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},un.Object.defineProperties(sp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),sp.className="TreeEdge",xs.prototype.initializeStandardTools=function(){this.gb("Action",new on,this.mouseDownTools),this.gb("Relinking",new Oe,this.mouseDownTools),this.gb("LinkReshaping",new it,this.mouseDownTools),this.gb("Rotating",new kt,this.mouseDownTools),this.gb("Resizing",new Ye,this.mouseDownTools),this.gb("Linking",new ja,this.mouseMoveTools),this.gb("Dragging",new Ko,this.mouseMoveTools),this.gb("DragSelecting",new yn,this.mouseMoveTools),this.gb("Panning",new Fn,this.mouseMoveTools),this.gb("ContextMenu",new Wi,this.mouseUpTools),this.gb("TextEditing",new Mi,this.mouseUpTools),this.gb("ClickCreating",new zn,this.mouseUpTools),this.gb("ClickSelecting",new _t,this.mouseUpTools)},td("Horizontal",new xm),td("Spot",new Pm),td("Table",new Em),td("Viewbox",new Mm),td("TableRow",new bm),td("TableColumn",new Am),td("Graduated",new Pp),td("Grid",new wp),ch.add("GraphLinksModel",iu),ch.add("TreeModel",nh);var Uv=Yt.go,Vy={get licenseKey(){return At.licenseKey},set licenseKey(a){At.licenseKey=a},get version(){return At.version},Group:Io,EnumValue:ln,List:_n,Set:An,Map:wr,Point:at,Size:fn,Rect:cn,Margin:Mo,Spot:kr,Geometry:fi,PathFigure:wl,PathSegment:Ca,InputEvent:Gl,DiagramEvent:tc,ChangedEvent:Bs,Model:yr,GraphLinksModel:Ta,TreeModel:uc,Binding:Dl,Transaction:Pl,UndoManager:js,CommandHandler:et,Tool:Vr,DraggingTool:Ko,DraggingInfo:Ch,DraggingOptions:oe,LinkingBaseTool:oo,LinkingTool:ja,RelinkingTool:Oe,LinkReshapingTool:it,ResizingTool:Ye,RotatingTool:kt,ClickSelectingTool:_t,ActionTool:on,ClickCreatingTool:zn,HTMLInfo:qn,ContextMenuTool:Wi,DragSelectingTool:yn,PanningTool:Fn,TextEditingTool:Mi,ToolManager:xs,Animation:Ht,AnimationManager:Ea,AnimationTrigger:Li,Layer:ei,Diagram:At,Palette:he,Overview:pe,Brush:as,GraphObject:bt,Panel:ci,RowColumnDefinition:jl,Shape:Zo,TextBlock:ks,Picture:xc,Part:zr,Adornment:Ga,Node:Gi,Link:yi,Placeholder:oc,Layout:$s,LayoutNetwork:Fs,LayoutVertex:_l,LayoutEdge:Oc,GridLayout:xu,PanelLayout:Hl,CircularLayout:cl,CircularNetwork:np,CircularVertex:Jp,CircularEdge:Av,ForceDirectedLayout:Tu,ForceDirectedNetwork:Sg,ForceDirectedVertex:Qp,ForceDirectedEdge:qp,LayeredDigraphLayout:ls,LayeredDigraphNetwork:rp,LayeredDigraphVertex:rh,LayeredDigraphEdge:tm,TreeLayout:ha,TreeNetwork:Cg,TreeVertex:ph,TreeEdge:sp};typeof Uv=="object"&&Uv.version&&Or("WARNING: a `go` object on the root object is already defined. "+("Debug"in Uv?"debug ":"")+"version: "+Uv.version+", replaced with version: "+Vy.version),At.prototype.go=Vy,Yt.go=Vy,typeof Rn.exports=="object"&&(Rn.exports=typeof be.g!="undefined"?be.g.go:self.go)}();var ve=typeof be.g!="undefined"?be.g.go:self.go;const tt=typeof be.g!="undefined"?be.g.go:self.go,Pt=tt.Group,Ut=tt.EnumValue,Bt=tt.List,Re=tt.Set,Je=tt.Map,pt=tt.Point,wt=tt.Size,ht=tt.Rect,Vt=tt.Margin,ct=tt.Spot,He=tt.Geometry,Te=tt.PathFigure,ne=tt.PathSegment,te=tt.InputEvent,ue=tt.DiagramEvent,se=tt.ChangedEvent,ge=tt.Model,me=tt.GraphLinksModel,xe=tt.TreeModel,Pe=tt.Binding,Ke=tt.Transaction,qe=tt.UndoManager,ft=tt.CommandHandler,st=tt.Tool,rt=tt.DraggingTool,Tt=tt.DraggingInfo,Mt=tt.LinkingBaseTool,yt=tt.LinkingTool,Dt=tt.RelinkingTool,Nt=tt.LinkReshapingTool,Bn=tt.ResizingTool,On=tt.RotatingTool,Qt=tt.ClickSelectingTool,vn=tt.ActionTool,lt=tt.ClickCreatingTool,Ge=tt.HTMLInfo,Ne=tt.ContextMenuTool,Nn=tt.DragSelectingTool,Xn=tt.PanningTool,Xt=tt.TextEditingTool,ai=tt.ToolManager,xn=tt.Animation,gi=tt.AnimationManager,Zt=tt.AnimationTrigger,Ct=tt.Layer,qt=tt.Diagram,hi=tt.Palette,Kt=tt.Overview,Xe=tt.Brush,Le=tt.GraphObject,Me=tt.Panel,We=tt.RowColumnDefinition,$e=tt.Shape,Be=tt.TextBlock,ut=tt.TextBlockMetrics,Vn=tt.Picture,In=tt.Part,Cn=tt.Adornment,Pn=tt.Node,oi=tt.Link,mn=tt.Placeholder,bi=tt.Layout,_i=tt.LayoutNetwork,Br=tt.LayoutVertex,Yi=tt.LayoutEdge,ki=tt.GridLayout,Xr=tt.PanelLayout,Ki=tt.CircularLayout,lr=tt.CircularNetwork,ar=tt.CircularVertex,kn=tt.CircularEdge,Bi=tt.ForceDirectedLayout,ea=tt.ForceDirectedNetwork,Zn=tt.ForceDirectedVertex,Wr=tt.ForceDirectedEdge,ra=tt.LayeredDigraphLayout,sa=tt.LayeredDigraphNetwork,Wa=tt.LayeredDigraphVertex,ma=tt.LayeredDigraphEdge,Ha=tt.TreeLayout,da=tt.TreeNetwork,la=tt.TreeVertex,No=tt.TreeEdge,ni=tt.version},19575:function(Rn,ti,be){var ve,tt;(function(Pt,Ut){Rn.exports=Ut(Pt)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof be.g!="undefined"?be.g:this,function(Pt){"use strict";Pt=Pt||{};var Ut=Pt.Base64,Bt="2.6.4",Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=function(Dt){for(var Nt={},Bn=0,On=Dt.length;Bn<On;Bn++)Nt[Dt.charAt(Bn)]=Bn;return Nt}(Re),pt=String.fromCharCode,wt=function(Dt){if(Dt.length<2){var Nt=Dt.charCodeAt(0);return Nt<128?Dt:Nt<2048?pt(192|Nt>>>6)+pt(128|Nt&63):pt(224|Nt>>>12&15)+pt(128|Nt>>>6&63)+pt(128|Nt&63)}else{var Nt=65536+(Dt.charCodeAt(0)-55296)*1024+(Dt.charCodeAt(1)-56320);return pt(240|Nt>>>18&7)+pt(128|Nt>>>12&63)+pt(128|Nt>>>6&63)+pt(128|Nt&63)}},ht=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Vt=function(Dt){return Dt.replace(ht,wt)},ct=function(Dt){var Nt=[0,2,1][Dt.length%3],Bn=Dt.charCodeAt(0)<<16|(Dt.length>1?Dt.charCodeAt(1):0)<<8|(Dt.length>2?Dt.charCodeAt(2):0),On=[Re.charAt(Bn>>>18),Re.charAt(Bn>>>12&63),Nt>=2?"=":Re.charAt(Bn>>>6&63),Nt>=1?"=":Re.charAt(Bn&63)];return On.join("")},He=Pt.btoa&&typeof Pt.btoa=="function"?function(Dt){return Pt.btoa(Dt)}:function(Dt){if(Dt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Dt.replace(/[\s\S]{1,3}/g,ct)},Te=function(Dt){return He(Vt(String(Dt)))},ne=function(Dt){return Dt.replace(/[+\/]/g,function(Nt){return Nt=="+"?"-":"_"}).replace(/=/g,"")},te=function(Dt,Nt){return Nt?ne(Te(Dt)):Te(Dt)},ue=function(Dt){return te(Dt,!0)},se;Pt.Uint8Array&&(se=function(Dt,Nt){for(var Bn="",On=0,Qt=Dt.length;On<Qt;On+=3){var vn=Dt[On],lt=Dt[On+1],Ge=Dt[On+2],Ne=vn<<16|lt<<8|Ge;Bn+=Re.charAt(Ne>>>18)+Re.charAt(Ne>>>12&63)+(typeof lt!="undefined"?Re.charAt(Ne>>>6&63):"=")+(typeof Ge!="undefined"?Re.charAt(Ne&63):"=")}return Nt?ne(Bn):Bn});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(Dt){switch(Dt.length){case 4:var Nt=(7&Dt.charCodeAt(0))<<18|(63&Dt.charCodeAt(1))<<12|(63&Dt.charCodeAt(2))<<6|63&Dt.charCodeAt(3),Bn=Nt-65536;return pt((Bn>>>10)+55296)+pt((Bn&1023)+56320);case 3:return pt((15&Dt.charCodeAt(0))<<12|(63&Dt.charCodeAt(1))<<6|63&Dt.charCodeAt(2));default:return pt((31&Dt.charCodeAt(0))<<6|63&Dt.charCodeAt(1))}},xe=function(Dt){return Dt.replace(ge,me)},Pe=function(Dt){var Nt=Dt.length,Bn=Nt%4,On=(Nt>0?Je[Dt.charAt(0)]<<18:0)|(Nt>1?Je[Dt.charAt(1)]<<12:0)|(Nt>2?Je[Dt.charAt(2)]<<6:0)|(Nt>3?Je[Dt.charAt(3)]:0),Qt=[pt(On>>>16),pt(On>>>8&255),pt(On&255)];return Qt.length-=[0,0,2,1][Bn],Qt.join("")},Ke=Pt.atob&&typeof Pt.atob=="function"?function(Dt){return Pt.atob(Dt)}:function(Dt){return Dt.replace(/\S{1,4}/g,Pe)},qe=function(Dt){return Ke(String(Dt).replace(/[^A-Za-z0-9\+\/]/g,""))},ft=function(Dt){return xe(Ke(Dt))},st=function(Dt){return String(Dt).replace(/[-_]/g,function(Nt){return Nt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},rt=function(Dt){return ft(st(Dt))},Tt;Pt.Uint8Array&&(Tt=function(Dt){return Uint8Array.from(qe(st(Dt)),function(Nt){return Nt.charCodeAt(0)})});var Mt=function(){var Dt=Pt.Base64;return Pt.Base64=Ut,Dt};if(Pt.Base64={VERSION:Bt,atob:qe,btoa:He,fromBase64:rt,toBase64:te,utob:Vt,encode:te,encodeURI:ue,btou:xe,decode:rt,noConflict:Mt,fromUint8Array:se,toUint8Array:Tt},typeof Object.defineProperty=="function"){var yt=function(Dt){return{value:Dt,enumerable:!1,writable:!0,configurable:!0}};Pt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",yt(function(){return rt(this)})),Object.defineProperty(String.prototype,"toBase64",yt(function(Dt){return te(this,Dt)})),Object.defineProperty(String.prototype,"toBase64URI",yt(function(){return te(this,!0)}))}}return Pt.Meteor&&(Base64=Pt.Base64),Rn.exports?Rn.exports.Base64=Pt.Base64:(ve=[],tt=function(){return Pt.Base64}.apply(ti,ve),tt!==void 0&&(Rn.exports=tt)),{Base64:Pt.Base64}})},15979:function(Rn,ti,be){"use strict";be.d(ti,{hP:function(){return Kt}});var ve=function(Xe,Le){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,We){Me.__proto__=We}||function(Me,We){for(var $e in We)Object.prototype.hasOwnProperty.call(We,$e)&&(Me[$e]=We[$e])})(Xe,Le)};function tt(Xe,Le){function Me(){this.constructor=Xe}ve(Xe,Le),Xe.prototype=Le===null?Object.create(Le):(Me.prototype=Le.prototype,new Me)}function Pt(Xe,Le,Me,We){return new(Me||(Me=Promise))(function($e,Be){function ut(Cn){try{In(We.next(Cn))}catch(Pn){Be(Pn)}}function Vn(Cn){try{In(We.throw(Cn))}catch(Pn){Be(Pn)}}function In(Cn){var Pn;Cn.done?$e(Cn.value):(Pn=Cn.value,Pn instanceof Me?Pn:new Me(function(oi){oi(Pn)})).then(ut,Vn)}In((We=We.apply(Xe,Le||[])).next())})}function Ut(Xe,Le){var Me,We,$e,Be,ut={label:0,sent:function(){if(1&$e[0])throw $e[1];return $e[1]},trys:[],ops:[]};return Be={next:Vn(0),throw:Vn(1),return:Vn(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function Vn(In){return function(Cn){return function(Pn){if(Me)throw new TypeError("Generator is already executing.");for(;ut;)try{if(Me=1,We&&($e=2&Pn[0]?We.return:Pn[0]?We.throw||(($e=We.return)&&$e.call(We),0):We.next)&&!($e=$e.call(We,Pn[1])).done)return $e;switch(We=0,$e&&(Pn=[2&Pn[0],$e.value]),Pn[0]){case 0:case 1:$e=Pn;break;case 4:return ut.label++,{value:Pn[1],done:!1};case 5:ut.label++,We=Pn[1],Pn=[0];continue;case 7:Pn=ut.ops.pop(),ut.trys.pop();continue;default:if($e=ut.trys,!(($e=$e.length>0&&$e[$e.length-1])||Pn[0]!==6&&Pn[0]!==2)){ut=0;continue}if(Pn[0]===3&&(!$e||Pn[1]>$e[0]&&Pn[1]<$e[3])){ut.label=Pn[1];break}if(Pn[0]===6&&ut.label<$e[1]){ut.label=$e[1],$e=Pn;break}if($e&&ut.label<$e[2]){ut.label=$e[2],ut.ops.push(Pn);break}$e[2]&&ut.ops.pop(),ut.trys.pop();continue}Pn=Le.call(Xe,ut)}catch(oi){Pn=[6,oi],We=0}finally{Me=$e=0}if(5&Pn[0])throw Pn[1];return{value:Pn[0]?Pn[1]:void 0,done:!0}}([In,Cn])}}}function Bt(){for(var Xe=0,Le=0,Me=arguments.length;Le<Me;Le++)Xe+=arguments[Le].length;var We=Array(Xe),$e=0;for(Le=0;Le<Me;Le++)for(var Be=arguments[Le],ut=0,Vn=Be.length;ut<Vn;ut++,$e++)We[$e]=Be[ut];return We}var Re=function(){function Xe(){}return Xe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Xe.setAttributes=function(Le,Me){for(var We=0,$e=Me;We<$e.length;We++){var Be=$e[We],ut=Be[0],Vn=Be[1];Le.setAttribute(ut,Vn)}},Xe.createRect=function(Le,Me,We){var $e=document.createElementNS("http://www.w3.org/2000/svg","rect");return $e.setAttribute("width",Le.toString()),$e.setAttribute("height",Me.toString()),We&&Xe.setAttributes($e,We),$e},Xe.createLine=function(Le,Me,We,$e,Be){var ut=document.createElementNS("http://www.w3.org/2000/svg","line");return ut.setAttribute("x1",Le.toString()),ut.setAttribute("y1",Me.toString()),ut.setAttribute("x2",We.toString()),ut.setAttribute("y2",$e.toString()),Be&&Xe.setAttributes(ut,Be),ut},Xe.createPolygon=function(Le,Me){var We=document.createElementNS("http://www.w3.org/2000/svg","polygon");return We.setAttribute("points",Le),Me&&Xe.setAttributes(We,Me),We},Xe.createCircle=function(Le,Me){var We=document.createElementNS("http://www.w3.org/2000/svg","circle");return We.setAttribute("cx",(Le/2).toString()),We.setAttribute("cy",(Le/2).toString()),We.setAttribute("r",Le.toString()),Me&&Xe.setAttributes(We,Me),We},Xe.createEllipse=function(Le,Me,We){var $e=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return $e.setAttribute("cx",(Le/2).toString()),$e.setAttribute("cy",(Me/2).toString()),$e.setAttribute("rx",(Le/2).toString()),$e.setAttribute("ry",(Me/2).toString()),We&&Xe.setAttributes($e,We),$e},Xe.createGroup=function(Le){var Me=document.createElementNS("http://www.w3.org/2000/svg","g");return Le&&Xe.setAttributes(Me,Le),Me},Xe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Xe.createMarker=function(Le,Me,We,$e,Be,ut,Vn){var In=document.createElementNS("http://www.w3.org/2000/svg","marker");return Xe.setAttributes(In,[["id",Le],["orient",Me],["markerWidth",We.toString()],["markerHeight",$e.toString()],["refX",Be.toString()],["refY",ut.toString()]]),In.appendChild(Vn),In},Xe.createText=function(Le){var Me=document.createElementNS("http://www.w3.org/2000/svg","text");return Me.setAttribute("x","0"),Me.setAttribute("y","0"),Le&&Xe.setAttributes(Me,Le),Me},Xe.createTSpan=function(Le,Me){var We=document.createElementNS("http://www.w3.org/2000/svg","tspan");return We.textContent=Le,Me&&Xe.setAttributes(We,Me),We},Xe.createImage=function(Le){var Me=document.createElementNS("http://www.w3.org/2000/svg","image");return Le&&Xe.setAttributes(Me,Le),Me},Xe.createPoint=function(Le,Me){var We=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return We.x=Le,We.y=Me,We},Xe.createPath=function(Le,Me){var We=document.createElementNS("http://www.w3.org/2000/svg","path");return We.setAttribute("d",Le),Me&&Xe.setAttributes(We,Me),We},Xe}(),Je=function(){function Xe(){}return Xe.addKey=function(Le){Xe.key=Le},Object.defineProperty(Xe,"isLicensed",{get:function(){return!!Xe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Xe.key)},enumerable:!1,configurable:!0}),Xe}(),pt=function(){function Xe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Xe.prototype.rasterize=function(Le,Me,We){var $e=this;return new Promise(function(Be){var ut=We!==void 0?We:document.createElement("canvas");Le===null&&($e.markersOnly=!0,$e.naturalSize=!1);var Vn=document.createElementNS("http://www.w3.org/2000/svg","svg");Vn.setAttribute("xmlns","http://www.w3.org/2000/svg"),Vn.setAttribute("width",Me.width.baseVal.valueAsString),Vn.setAttribute("height",Me.height.baseVal.valueAsString),Vn.setAttribute("viewBox","0 0 "+Me.viewBox.baseVal.width.toString()+" "+Me.viewBox.baseVal.height.toString()),Vn.innerHTML=Me.innerHTML,$e.naturalSize===!0?(Vn.width.baseVal.value=Le.naturalWidth,Vn.height.baseVal.value=Le.naturalHeight):$e.width!==void 0&&$e.height!==void 0&&(Vn.width.baseVal.value=$e.width,Vn.height.baseVal.value=$e.height),ut.width=Vn.width.baseVal.value,ut.height=Vn.height.baseVal.value;var In=Vn.outerHTML,Cn=ut.getContext("2d");$e.markersOnly!==!0&&Cn.drawImage(Le,0,0,ut.width,ut.height);var Pn=window.URL,oi=new Image(ut.width,ut.height);oi.setAttribute("crossOrigin","anonymous");var mn=new Blob([In],{type:"image/svg+xml"}),bi=Pn.createObjectURL(mn);oi.onload=function(){Cn.drawImage(oi,0,0),Pn.revokeObjectURL(bi);var _i=ut.toDataURL($e.imageType,$e.imageQuality);Be(_i)},oi.src=bi})},Xe}(),wt=function(){},ht=function(){function Xe(Le){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Le+"_"}return Object.defineProperty(Xe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Xe.prototype.addClass=function(Le){return this.styleSheet===void 0&&this.addStyleSheet(),Le.name=""+this.classNamePrefix+Le.localName,this.classes.push(Le),this.styleSheet.sheet.insertRule("."+Le.name+" {"+Le.style+"}",this.styleSheet.sheet.cssRules.length),Le},Xe.prototype.addRule=function(Le){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Le),this.styleSheet.sheet.insertRule(Le.selector+" {"+Le.style+"}",this.styleSheet.sheet.cssRules.length)},Xe.prototype.addStyleSheet=function(){var Le;this.styleSheet=document.createElement("style"),((Le=this.styleSheetRoot)!==null&&Le!==void 0?Le:document.head).appendChild(this.styleSheet),this.addRule(new Vt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Vt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Vt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ct("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ct("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Xe.prototype.removeStyleSheet=function(){var Le;this.styleSheet&&(((Le=this.styleSheetRoot)!==null&&Le!==void 0?Le:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Xe}(),Vt=function(Xe,Le){this.selector=Xe,this.style=Le},ct=function(Xe,Le){this.localName=Xe,this.style=Le},He=function(){function Xe(Le,Me,We,$e,Be){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Le,this.displayMode=Me,this.markerItems=We,this.uiStyleSettings=$e,this.styles=Be,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Xe.prototype.show=function(Le){var Me=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Le,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var We=document.createElement("div");We.className=this.toolbarBlockStyleClass.name,We.style.whiteSpace="nowrap",this.uiContainer.appendChild(We),this.addActionButton(We,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(We,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(We,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(We,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(We,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(We,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(We,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(We,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Be){var ut=document.createElement("div");ut.className=""+Me.toolbarButtonStyleClass.name,ut.setAttribute("data-type-name",Be.typeName),ut.innerHTML=Be.icon,ut.addEventListener("click",function(){Me.markerToolbarButtonClicked(ut,Be)}),Me.buttons.push(ut),Me.markerButtons.push(ut)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var $e=document.createElement("div");$e.className=this.toolbarBlockStyleClass.name,$e.style.whiteSpace="nowrap",$e.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild($e),this.addActionButton($e,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton($e,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Xe.prototype.addButtonClickListener=function(Le){this.buttonClickListeners.push(Le)},Xe.prototype.removeButtonClickListener=function(Le){this.buttonClickListeners.indexOf(Le)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Le),1)},Xe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Xe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Le=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Me=0;Me<this.markerButtons.length;Me++)Me<Le||Me===Le&&this.markerButtons.length-1===Le?this.markerButtonBlock.appendChild(this.markerButtons[Me]):(Me===Le&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Me]))}},Xe.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Xe.prototype.resetButtonStyles=function(){var Le=this;this.buttons.forEach(function(Me){Me.className=Me.className.replace(Le.uiStyleSettings.toolbarButtonStyleColorsClassName?Le.uiStyleSettings.toolbarButtonStyleColorsClassName:Le.toolbarButtonStyleColorsClass.name,"").trim(),Me.className=Me.className.replace(Le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Le.toolbarActiveButtonStyleColorsClass.name,"").trim(),Me.className+=" "+(Le.uiStyleSettings.toolbarButtonStyleColorsClassName?Le.uiStyleSettings.toolbarButtonStyleColorsClassName:Le.toolbarButtonStyleColorsClass.name)})},Xe.prototype.addActionButton=function(Le,Me,We){var $e=this,Be=document.createElement("div");switch(Be.className=""+this.toolbarButtonStyleClass.name,Be.innerHTML=Me,Be.setAttribute("data-action",We),Be.addEventListener("click",function(){$e.actionToolbarButtonClicked(Be,We)}),We){case"select":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Be.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Be.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Be.style.fill=this.uiStyleSettings.closeButtonColor}Le.appendChild(Be),this.buttons.push(Be)},Xe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ct("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ct("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ct("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ct("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ct("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Le=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ct("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
padding: `+Le+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ct("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ct("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Vt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Vt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Xe.prototype.markerToolbarButtonClicked=function(Le,Me){this.setActiveButton(Le),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(We){return We("marker",Me)}),this.markerButtonOverflowBlock.style.display="none"},Xe.prototype.actionToolbarButtonClicked=function(Le,Me){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(We){return We("action",Me)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Xe.prototype.setActiveButton=function(Le){this.resetButtonStyles(),Le.className=Le.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Le.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Xe.prototype.setActiveMarkerButton=function(Le){var Me=this.markerButtons.find(function(We){return We.getAttribute("data-type-name")===Le});Me&&this.setActiveButton(Me)},Xe.prototype.setCurrentMarker=function(Le){var Me=this;this.currentMarker=Le,this.buttons.filter(function(We){return/delete|notes/.test(We.getAttribute("data-action"))}).forEach(function(We){Me.currentMarker===void 0?(We.style.fillOpacity="0.4",We.style.pointerEvents="none"):(We.style.fillOpacity="1",We.style.pointerEvents="all")})},Xe}(),Te=function(){function Xe(Le,Me,We,$e){this.panels=[],this.panelButtons=[],this.markerjsContainer=Le,this.displayMode=Me,this.uiStyleSettings=We,this.styles=$e,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Xe.prototype.addStyles=function(){var Le;this.toolboxStyleClass=this.styles.addClass(new ct("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ct("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Me=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ct("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ct("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ct("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ct("toolbox-panel-row_colors",`
background-color: `+((Le=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Le!==void 0?Le:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ct("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Me)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Me)+`px;
padding: `+Me+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ct("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ct("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Vt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Vt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Xe.prototype.show=function(Le){var Me;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Le,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Me=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Me!==void 0?Me:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Xe.prototype.setPanelButtons=function(Le){var Me,We,$e=this;this.panels=Le,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Me=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Me!==void 0?Me:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((We=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&We!==void 0?We:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Be){var ut;Be.uiStyleSettings=$e.uiStyleSettings;var Vn=document.createElement("div");Vn.className=$e.toolboxButtonStyleClass.name+" "+((ut=$e.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ut!==void 0?ut:$e.toolboxButtonStyleColorsClass.name),Vn.innerHTML=Be.icon,Vn.title=Be.title,Vn.addEventListener("click",function(){$e.panelButtonClick(Be)}),$e.panelButtons.push(Vn),$e.buttonRow.appendChild(Vn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Xe.prototype.panelButtonClick=function(Le){var Me=this,We=-1;if(Le!==this.activePanel){We=this.panels.indexOf(Le),this.panelRow.innerHTML="";var $e=Le.getUi();$e.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild($e),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Le}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Me.displayMode==="inline"?Me.panelRow.style.display="none":Me.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Be,ut){var Vn,In;Be.className=Me.toolboxButtonStyleClass.name+" "+(ut===We?""+((Vn=Me.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Vn!==void 0?Vn:Me.toolboxActiveButtonStyleColorsClass.name):""+((In=Me.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&In!==void 0?In:Me.toolboxButtonStyleColorsClass.name))})},Xe}(),ne=function(Xe,Le){this.title=Xe,this.icon=Le},te=function(Xe){function Le(Me,We,$e,Be){var ut=Xe.call(this,Me,Be||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ut.colors=[],ut.addTransparent=!1,ut.colorBoxes=[],ut.colors=We,ut.currentColor=$e,ut.setCurrentColor=ut.setCurrentColor.bind(ut),ut.getColorBox=ut.getColorBox.bind(ut),ut}return tt(Le,Xe),Le.prototype.getUi=function(){var Me=this,We=document.createElement("div");return We.style.overflow="hidden",We.style.whiteSpace="nowrap",this.colors.forEach(function($e){var Be=Me.getColorBox($e);We.appendChild(Be),Me.colorBoxes.push(Be)}),We},Le.prototype.getColorBox=function(Me){var We=this,$e=this.uiStyleSettings.toolbarHeight/4,Be=this.uiStyleSettings.toolbarHeight-$e,ut=document.createElement("div");ut.style.display="inline-block",ut.style.boxSizing="content-box",ut.style.width=Be-2+"px",ut.style.height=Be-2+"px",ut.style.padding="1px",ut.style.marginRight="2px",ut.style.marginBottom="2px",ut.style.borderWidth="2px",ut.style.borderStyle="solid",ut.style.borderRadius=(Be+2)/2+"px",ut.style.borderColor=Me===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ut.addEventListener("click",function(){We.setCurrentColor(Me,ut)});var Vn=document.createElement("div");return Vn.style.display="inline-block",Vn.style.width=Be-2+"px",Vn.style.height=Be-2+"px",Vn.style.backgroundColor=Me,Vn.style.borderRadius=Be/2+"px",Me==="transparent"&&(Vn.style.fill=this.uiStyleSettings.toolboxAccentColor,Vn.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ut.appendChild(Vn),ut},Le.prototype.setCurrentColor=function(Me,We){var $e=this;this.currentColor=Me,this.colorBoxes.forEach(function(Be){Be.style.borderColor=Be===We?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Me)},Le}(ne),ue=function(){function Xe(Le,Me,We){this._state="new",this._isSelected=!1,this._container=Le,this._overlayContainer=Me,this.globalSettings=We,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Xe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Xe.prototype.ownsTarget=function(Le){return!1},Object.defineProperty(Xe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Xe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Xe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Xe.prototype.pointerDown=function(Le,Me){},Xe.prototype.dblClick=function(Le,Me){},Xe.prototype.manipulate=function(Le){},Xe.prototype.pointerUp=function(Le){this.stateChanged()},Xe.prototype.dispose=function(){},Xe.prototype.addMarkerVisualToContainer=function(Le){this.container.childNodes.length>0?this.container.insertBefore(Le,this.container.childNodes[0]):this.container.appendChild(Le)},Xe.prototype.getState=function(){return{typeName:Xe.typeName,state:this.state,notes:this.notes}},Xe.prototype.restoreState=function(Le){this._state=Le.state,this.notes=Le.notes},Xe.prototype.scale=function(Le,Me){},Xe.prototype.colorChanged=function(Le){this.onColorChanged&&this.onColorChanged(Le),this.stateChanged()},Xe.prototype.fillColorChanged=function(Le){this.onFillColorChanged&&this.onFillColorChanged(Le),this.stateChanged()},Xe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Le=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Le.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Le)&&this.onStateChanged(this)}},Xe.typeName="MarkerBase",Xe}(),se=function(){function Xe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Xe.prototype.findGripByVisual=function(Le){return this.topLeft.ownsTarget(Le)?this.topLeft:this.topCenter.ownsTarget(Le)?this.topCenter:this.topRight.ownsTarget(Le)?this.topRight:this.centerLeft.ownsTarget(Le)?this.centerLeft:this.centerRight.ownsTarget(Le)?this.centerRight:this.bottomLeft.ownsTarget(Le)?this.bottomLeft:this.bottomCenter.ownsTarget(Le)?this.bottomCenter:this.bottomRight.ownsTarget(Le)?this.bottomRight:void 0},Xe}(),ge=function(){function Xe(){this.GRIP_SIZE=10,this.visual=Re.createGroup(),this.visual.appendChild(Re.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Re.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Xe.prototype.ownsTarget=function(Le){return Le===this.visual||Le===this.visual.childNodes[0]||Le===this.visual.childNodes[1]},Xe}(),me=function(){function Xe(){}return Xe.toITransformMatrix=function(Le){return{a:Le.a,b:Le.b,c:Le.c,d:Le.d,e:Le.e,f:Le.f}},Xe.toSVGMatrix=function(Le,Me){return Le.a=Me.a,Le.b=Me.b,Le.c=Me.c,Le.d=Me.d,Le.e=Me.e,Le.f=Me.f,Le},Xe}(),xe=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.left=0,Be.top=0,Be.width=0,Be.height=0,Be.defaultSize={x:50,y:20},Be.offsetX=0,Be.offsetY=0,Be.rotationAngle=0,Be.CB_DISTANCE=10,Be._suppressMarkerCreateEvent=!1,Be.container.transform.baseVal.appendItem(Re.createTransform()),Be.setupControlBox(),Be}return tt(Le,Xe),Object.defineProperty(Le.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"visual",{get:function(){return this._visual},set:function(Me){this._visual=Me;var We=Re.createTransform();this._visual.transform.baseVal.appendItem(We)},enumerable:!1,configurable:!0}),Le.prototype.ownsTarget=function(Me){return!!Xe.prototype.ownsTarget.call(this,Me)||!!(this.controlGrips.findGripByVisual(Me)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Me))},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.state==="new"&&(this.left=Me.x,this.top=Me.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var $e=this.unrotatePoint(Me);if(this.manipulationStartX=$e.x,this.manipulationStartY=$e.y,this.offsetX=$e.x-this.left,this.offsetY=$e.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(We),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(We)){this.activeGrip=this.rotatorGrip;var Be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Be.x-this.width/2,this.top=Be.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ut=this.container.transform.baseVal.getItem(0);ut.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ut,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Le.prototype.pointerUp=function(Me){var We=this.state;Xe.prototype.pointerUp.call(this,Me),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Me),this._state="select",We==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Le.prototype.moveVisual=function(Me){this.visual.style.transform="translate("+Me.x+"px, "+Me.y+"px)"},Le.prototype.manipulate=function(Me){var We=this.unrotatePoint(Me);this.state==="creating"?this.resize(Me):this.state==="move"?(this.left=this.manipulationStartLeft+(We.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(We.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(We):this.state==="rotate"&&this.rotate(Me)},Le.prototype.resize=function(Me){var We=this.manipulationStartLeft,$e=this.manipulationStartWidth,Be=this.manipulationStartTop,ut=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:We=this.manipulationStartLeft+Me.x-this.manipulationStartX,$e=this.manipulationStartWidth+this.manipulationStartLeft-We;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:$e=this.manipulationStartWidth+Me.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Be=this.manipulationStartTop+Me.y-this.manipulationStartY,ut=this.manipulationStartHeight+this.manipulationStartTop-Be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ut=this.manipulationStartHeight+Me.y-this.manipulationStartY}$e>=0?(this.left=We,this.width=$e):(this.left=We+$e,this.width=-$e),ut>=0?(this.top=Be,this.height=ut):(this.top=Be+ut,this.height=-ut),this.setSize()},Le.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Le.prototype.rotate=function(Me){if(Math.abs(Me.x-this.centerX)>.1){var We=Math.sign(Me.x-this.centerX);this.rotationAngle=180*Math.atan((Me.y-this.centerY)/(Me.x-this.centerX))/Math.PI+90*We,this.applyRotation()}},Le.prototype.applyRotation=function(){var Me=this.container.transform.baseVal.getItem(0);Me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Me,0)},Le.prototype.rotatePoint=function(Me){if(this.rotationAngle===0)return Me;var We=this.container.getCTM(),$e=Re.createPoint(Me.x,Me.y);return{x:($e=$e.matrixTransform(We)).x,y:$e.y}},Le.prototype.unrotatePoint=function(Me){if(this.rotationAngle===0)return Me;var We=this.container.getCTM();We=We.inverse();var $e=Re.createPoint(Me.x,Me.y);return{x:($e=$e.matrixTransform(We)).x,y:$e.y}},Le.prototype.select=function(){Xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Le.prototype.deselect=function(){Xe.prototype.deselect.call(this),this.controlBox.style.display="none"},Le.prototype.setupControlBox=function(){this.controlBox=Re.createGroup();var Me=Re.createTransform();Me.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Me),this.container.appendChild(this.controlBox),this.controlRect=Re.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Re.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new se,this.addControlGrips(),this.controlBox.style.display="none"},Le.prototype.adjustControlBox=function(){var Me=this.controlBox.transform.baseVal.getItem(0);Me.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Me,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Le.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Le.prototype.createGrip=function(){var Me=new ge;return Me.visual.transform.baseVal.appendItem(Re.createTransform()),this.controlBox.appendChild(Me.visual),Me},Le.prototype.positionGrips=function(){var Me=this.controlGrips.topLeft.GRIP_SIZE,We=-Me/2,$e=We,Be=(this.width+this.CB_DISTANCE)/2-Me/2,ut=(this.height+this.CB_DISTANCE)/2-Me/2,Vn=this.height+this.CB_DISTANCE-Me/2,In=this.width+this.CB_DISTANCE-Me/2;this.positionGrip(this.controlGrips.topLeft.visual,We,$e),this.positionGrip(this.controlGrips.topCenter.visual,Be,$e),this.positionGrip(this.controlGrips.topRight.visual,In,$e),this.positionGrip(this.controlGrips.centerLeft.visual,We,ut),this.positionGrip(this.controlGrips.centerRight.visual,In,ut),this.positionGrip(this.controlGrips.bottomLeft.visual,We,Vn),this.positionGrip(this.controlGrips.bottomCenter.visual,Be,Vn),this.positionGrip(this.controlGrips.bottomRight.visual,In,Vn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Be,$e-3*this.CB_DISTANCE)},Le.prototype.positionGrip=function(Me,We,$e){var Be=Me.transform.baseVal.getItem(0);Be.setTranslate(We,$e),Me.transform.baseVal.replaceItem(Be,0)},Le.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Le.prototype.showControlBox=function(){this.controlBox.style.display=""},Le.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Xe.prototype.getState.call(this))},Le.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var We=Me;this.left=We.left,this.top=We.top,this.width=We.width,this.height=We.height,this.rotationAngle=We.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,We.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,We.containerTransformMatrix))},Le.prototype.scale=function(Me,We){Xe.prototype.scale.call(this,Me,We);var $e=this.rotatePoint({x:this.left,y:this.top}),Be=this.unrotatePoint({x:$e.x*Me,y:$e.y*We});this.left=Be.x,this.top=Be.y,this.width=this.width*Me,this.height=this.height*We,this.adjustControlBox()},Le}(ue),Pe=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual)},Le.prototype.createVisual=function(){this.visual=Re.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.state==="new"&&(this.createVisual(),this.moveVisual(Me),this._state="creating")},Le.prototype.manipulate=function(Me){Xe.prototype.manipulate.call(this,Me)},Le.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.setSize()},Le.prototype.setSize=function(){Xe.prototype.setSize.call(this),Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Le.prototype.pointerUp=function(Me){Xe.prototype.pointerUp.call(this,Me),this.setSize()},Le.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.visual&&Re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Me),this.stateChanged()},Le.prototype.setFillColor=function(Me){this.fillColor=Me,this.visual&&Re.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Le.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.visual&&Re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.visual&&Re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Le.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Xe.prototype.getState.call(this))},Le.prototype.restoreState=function(Me){var We=Me;this.fillColor=We.fillColor,this.strokeColor=We.strokeColor,this.strokeWidth=We.strokeWidth,this.strokeDasharray=We.strokeDasharray,this.opacity=We.opacity,this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.setSize()},Le.prototype.scale=function(Me,We){Xe.prototype.scale.call(this,Me,We),this.setSize()},Le.title="Rectangle marker",Le}(xe),Ke=function(Xe){function Le(Me,We,$e,Be){var ut=Xe.call(this,Me,Be||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ut.widths=[],ut.widthBoxes=[],ut.widths=We,ut.currentWidth=$e,ut.setCurrentWidth=ut.setCurrentWidth.bind(ut),ut}return tt(Le,Xe),Le.prototype.getUi=function(){var Me=this,We=document.createElement("div");return We.style.display="flex",We.style.overflow="hidden",We.style.flexGrow="2",this.widths.forEach(function($e){var Be=document.createElement("div");Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=$e===Me.currentWidth?Me.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Me.setCurrentWidth($e,Be)}),We.appendChild(Be);var ut=document.createElement("div");ut.innerText=$e.toString(),ut.style.marginRight="5px",Be.appendChild(ut);var Vn=document.createElement("div");Vn.style.minHeight="20px",Vn.style.flexGrow="2",Vn.style.display="flex",Vn.style.alignItems="center";var In=document.createElement("hr");In.style.minWidth="20px",In.style.border="0px",In.style.borderTop=$e+"px solid "+Me.uiStyleSettings.toolboxColor,In.style.flexGrow="2",Vn.appendChild(In),Be.appendChild(Vn),Me.widthBoxes.push(Be)}),We},Le.prototype.setCurrentWidth=function(Me,We){var $e=this;this.currentWidth=Me,this.widthBoxes.forEach(function(Be){Be.style.borderColor=Be===We?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Le}(ne),qe=function(Xe){function Le(Me,We,$e,Be){var ut=Xe.call(this,Me,Be||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ut.styles=[],ut.styleBoxes=[],ut.styles=We,ut.currentStyle=$e,ut.setCurrentStyle=ut.setCurrentStyle.bind(ut),ut}return tt(Le,Xe),Le.prototype.getUi=function(){var Me=this,We=document.createElement("div");return We.style.display="flex",We.style.overflow="hidden",We.style.flexGrow="2",this.styles.forEach(function($e){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/Me.styles.length-5+"%",Be.style.borderColor=$e===Me.currentStyle?Me.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Me.setCurrentStyle($e,Be)}),We.appendChild(Be);var ut=document.createElement("div");ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.overflow="hidden";var Vn=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Me.uiStyleSettings.toolboxColor+'" stroke-width="3" '+($e!==""?'stroke-dasharray="'+$e+'"':"")+` />
</svg>`;ut.innerHTML=Vn,Be.appendChild(ut),Me.styleBoxes.push(Be)}),We},Le.prototype.setCurrentStyle=function(Me,We){var $e=this;this.currentStyle=Me,this.styleBoxes.forEach(function(Be){Be.style.borderColor=Be===We?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Le}(ne),ft=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.strokeColor=$e.defaultColor,Be.strokeWidth=$e.defaultStrokeWidth,Be.strokeDasharray=$e.defaultStrokeDasharray,Be.strokePanel=new te("Line color",$e.defaultColorSet,$e.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ke("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new qe("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return tt(Le,Xe),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=Le.typeName,Me},Le.typeName="FrameMarker",Le.title="Frame marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Le}(Pe),st=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},rt=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.x1=0,Be.y1=0,Be.x2=0,Be.y2=0,Be.defaultLength=50,Be.manipulationStartX=0,Be.manipulationStartY=0,Be.manipulationStartX1=0,Be.manipulationStartY1=0,Be.manipulationStartX2=0,Be.manipulationStartY2=0,Be.setupControlBox(),Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return!!Xe.prototype.ownsTarget.call(this,Me)||!(!this.grip1.ownsTarget(Me)&&!this.grip2.ownsTarget(Me))},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.manipulationStartX=Me.x,this.manipulationStartY=Me.y,this.state==="new"&&(this.x1=Me.x,this.y1=Me.y,this.x2=Me.x,this.y2=Me.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(We)?this.activeGrip=this.grip1:this.grip2.ownsTarget(We)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Le.prototype.pointerUp=function(Me){var We=this.state;Xe.prototype.pointerUp.call(this,Me),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Me),this._state="select",We==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Le.prototype.adjustVisual=function(){},Le.prototype.manipulate=function(Me){this.state==="creating"?this.resize(Me):this.state==="move"?(this.x1=this.manipulationStartX1+Me.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Me.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Me.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Me.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Me)},Le.prototype.resize=function(Me){switch(this.activeGrip){case this.grip1:this.x1=Me.x,this.y1=Me.y;break;case this.grip2:case void 0:this.x2=Me.x,this.y2=Me.y}this.adjustVisual(),this.adjustControlBox()},Le.prototype.select=function(){Xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Le.prototype.deselect=function(){Xe.prototype.deselect.call(this),this.controlBox.style.display="none"},Le.prototype.setupControlBox=function(){this.controlBox=Re.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Le.prototype.adjustControlBox=function(){this.positionGrips()},Le.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Le.prototype.createGrip=function(){var Me=new ge;return Me.visual.transform.baseVal.appendItem(Re.createTransform()),this.controlBox.appendChild(Me.visual),Me},Le.prototype.positionGrips=function(){var Me=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Me/2,this.y1-Me/2),this.positionGrip(this.grip2.visual,this.x2-Me/2,this.y2-Me/2)},Le.prototype.positionGrip=function(Me,We,$e){var Be=Me.transform.baseVal.getItem(0);Be.setTranslate(We,$e),Me.transform.baseVal.replaceItem(Be,0)},Le.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Xe.prototype.getState.call(this))},Le.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var We=Me;this.x1=We.x1,this.y1=We.y1,this.x2=We.x2,this.y2=We.y2},Le.prototype.scale=function(Me,We){Xe.prototype.scale.call(this,Me,We),this.x1=this.x1*Me,this.y1=this.y1*We,this.x2=this.x2*Me,this.y2=this.y2*We,this.adjustVisual(),this.adjustControlBox()},Le}(ue),Tt=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.strokeColor=$e.defaultColor,Be.strokeWidth=$e.defaultStrokeWidth,Be.strokeDasharray=$e.defaultStrokeDasharray,Be.strokePanel=new te("Line color",$e.defaultColorSet,$e.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ke("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new qe("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual&&Me!==this.selectorLine&&Me!==this.visibleLine)},Le.prototype.createVisual=function(){this.visual=Re.createGroup(),this.selectorLine=Re.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Re.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Le.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Re.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Re.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Re.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Le.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.adjustVisual(),this.colorChanged(Me)},Le.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.adjustVisual()},Le.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Xe.prototype.getState.call(this));return Me.typeName=Le.typeName,Me},Le.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var We=Me;this.strokeColor=We.strokeColor,this.strokeWidth=We.strokeWidth,this.strokeDasharray=We.strokeDasharray,this.createVisual(),this.adjustVisual()},Le.typeName="LineMarker",Le.title="Line marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Le}(rt),Mt=function(Xe){function Le(Me,We,$e,Be){var ut=Xe.call(this,Me,Be||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ut.fonts=[],ut.fontBoxes=[],ut.fonts=We,ut.currentFont=$e,ut.setCurrentFont=ut.setCurrentFont.bind(ut),ut}return tt(Le,Xe),Le.prototype.getUi=function(){var Me=this,We=document.createElement("div");return We.style.overflow="hidden",We.style.flexGrow="2",this.fonts.forEach(function($e){var Be=document.createElement("div");Be.style.display="inline-block",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/Me.fonts.length-5+"%",Be.style.borderColor=$e===Me.currentFont?Me.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Me.setCurrentFont($e,Be)}),We.appendChild(Be);var ut=document.createElement("div");ut.style.display="flex",ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.fontFamily=$e,ut.style.overflow="hidden";var Vn=document.createElement("div");Vn.style.whiteSpace="nowrap",Vn.style.overflow="hidden",Vn.style.textOverflow="ellipsis",Vn.innerHTML="The quick brown fox jumps over the lazy dog",ut.appendChild(Vn),Be.appendChild(ut),Me.fontBoxes.push(Be)}),We},Le.prototype.setCurrentFont=function(Me,We){var $e=this;this.currentFont=Me,this.fontBoxes.forEach(function(Be){Be.style.borderColor=Be===We?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Le}(ne),yt=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.color="transparent",Be.padding=5,Be.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Be.text=Be.DEFAULT_TEXT,Be.isMoved=!1,Be.color=$e.defaultColor,Be.fontFamily=$e.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setColor=Be.setColor.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.renderText=Be.renderText.bind(Be),Be.sizeText=Be.sizeText.bind(Be),Be.textEditDivClicked=Be.textEditDivClicked.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.setSize=Be.setSize.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.colorPanel=new te("Color",$e.defaultColorSet,$e.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.fontFamilyPanel=new Mt("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){if(Xe.prototype.ownsTarget.call(this,Me)||Me===this.visual||Me===this.textElement||Me===this.bgRectangle)return!0;var We=!1;return this.textElement.childNodes.forEach(function($e){$e===Me&&(We=!0)}),We},Le.prototype.createVisual=function(){this.visual=Re.createGroup(),this.bgRectangle=Re.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Re.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Re.createTransform()),this.textElement.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.isMoved=!1,this.pointerDownPoint=Me,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Me),this._state="creating")},Le.prototype.renderText=function(){var Me=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(We){Me.textElement.appendChild(Re.createTSpan(We.trim()===""?" ":We.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Le.prototype.getTextScale=function(){var Me=this.textElement.getBBox(),We=1;if(Me.width>0&&Me.height>0){var $e=(1*this.width-this.width*this.padding*2/100)/Me.width,Be=(1*this.height-this.height*this.padding*2/100)/Me.height;We=Math.min($e,Be)}return We},Le.prototype.getTextPosition=function(Me){var We=this.textElement.getBBox(),$e=0,Be=0;return We.width>0&&We.height>0&&($e=(this.width-We.width*Me)/2,Be=this.height/2-We.height*Me/2),{x:$e,y:Be}},Le.prototype.sizeText=function(){var Me=this.textElement.getBBox(),We=this.getTextScale(),$e=this.getTextPosition(We);$e.y-=Me.y*We,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+$e.x+"px, "+$e.y+"px) scale("+We+", "+We+")":(this.textElement.transform.baseVal.getItem(0).setTranslate($e.x,$e.y),this.textElement.transform.baseVal.getItem(1).setScale(We,We))},Le.prototype.manipulate=function(Me){Xe.prototype.manipulate.call(this,Me),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Me.x-this.pointerDownPoint.x)>5||Math.abs(Me.y-this.pointerDownPoint.y)>5)},Le.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.isMoved=!0,this.setSize(),this.sizeText()},Le.prototype.setSize=function(){Xe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Le.prototype.pointerUp=function(Me){var We=this.state;We==="creating"&&(this._suppressMarkerCreateEvent=!0),Xe.prototype.pointerUp.call(this,Me),this.setSize(),(We==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Le.prototype.showTextEditor=function(){var Me=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(We){We.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var We=Number.parseFloat(Me.textEditor.style.fontSize);Me.textEditor.clientWidth>=Number.parseInt(Me.textEditor.style.maxWidth)&&We>.9;)We-=.1,Me.textEditor.style.fontSize=Math.max(We,.9)+"em"}),this.textEditor.addEventListener("keyup",function(We){We.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(We){if(We.clipboardData){var $e=We.clipboardData.getData("text"),Be=window.getSelection();if(!Be.rangeCount)return!1;Be.deleteFromDocument(),Be.getRangeAt(0).insertNode(document.createTextNode($e)),We.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Me.textEditDivClicked(Me.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Le.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Me=this.getTextScale(),We=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),$e=this.textElement.getBBox(),Be={x:$e.width*Me,y:$e.height*Me};We.x-=Be.x/2,We.y-=Be.y/2,this.textEditor.style.top=We.y+"px",this.textEditor.style.left=We.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-We.x+"px",this.textEditor.style.fontSize=Math.max(16*Me,12)+"px",this.textElement.style.display="none"}},Le.prototype.textEditDivClicked=function(Me){this.text=Me.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Le.prototype.select=function(){Xe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Le.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Xe.prototype.deselect.call(this)},Le.prototype.dblClick=function(Me,We){Xe.prototype.dblClick.call(this,Me,We),this.showTextEditor()},Le.prototype.setColor=function(Me){this.textElement&&Re.setAttributes(this.textElement,[["fill",Me]]),this.color=Me,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Me)},Le.prototype.setFont=function(Me){this.textElement&&Re.setAttributes(this.textElement,[["font-family",Me]]),this.fontFamily=Me,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Le.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Le.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Xe.prototype.getState.call(this));return Me.typeName=Le.typeName,Me},Le.prototype.restoreState=function(Me){var We=Me;this.color=We.color,this.fontFamily=We.fontFamily,this.padding=We.padding,this.text=We.text,this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.setSize()},Le.prototype.scale=function(Me,We){Xe.prototype.scale.call(this,Me,We),this.setSize(),this.sizeText(),this.positionTextEditor()},Le.typeName="TextMarker",Le.title="Text marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Le}(xe),Dt=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.color="transparent",Be.lineWidth=3,Be.drawing=!1,Be.pixelRatio=1,Be.color=$e.defaultColor,Be.lineWidth=$e.defaultStrokeWidth,Be.pixelRatio=$e.freehandPixelRatio,Be.setColor=Be.setColor.bind(Be),Be.addCanvas=Be.addCanvas.bind(Be),Be.finishCreation=Be.finishCreation.bind(Be),Be.setLineWidth=Be.setLineWidth.bind(Be),Be.colorPanel=new te("Color",$e.defaultColorSet,$e.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.lineWidthPanel=new Ke("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Be.lineWidthPanel.onWidthChanged=Be.setLineWidth,Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual&&Me!==this.drawingImage)},Le.prototype.createVisual=function(){this.visual=Re.createGroup(),this.drawingImage=Re.createImage(),this.visual.appendChild(this.drawingImage);var Me=Re.createTransform();this.visual.transform.baseVal.appendItem(Me),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(Me,We){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Me.x,Me.y),this.drawing=!0):Xe.prototype.pointerDown.call(this,Me,We)},Le.prototype.manipulate=function(Me){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Me.x,Me.y),this.canvasContext.stroke()):Xe.prototype.manipulate.call(this,Me)},Le.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Le.prototype.pointerUp=function(Me){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Xe.prototype.pointerUp.call(this,Me)},Le.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Le.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Xe.prototype.select.call(this)},Le.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Xe.prototype.deselect.call(this)},Le.prototype.finishCreation=function(){for(var Me=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),We=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],$e=We[0],Be=We[1],ut=We[2],Vn=We[3],In=!1,Cn=0;Cn<this.canvasElement.height;Cn++)for(var Pn=0;Pn<this.canvasElement.width;Pn++)Me.data[Cn*this.canvasElement.width*4+4*Pn+3]>0&&(In=!0,Cn<Be&&(Be=Cn),Pn<$e&&($e=Pn),Cn>Vn&&(Vn=Cn),Pn>ut&&(ut=Pn));if(In){this.left=$e/this.pixelRatio,this.top=Be/this.pixelRatio,this.width=(ut-$e)/this.pixelRatio,this.height=(Vn-Be)/this.pixelRatio;var oi=document.createElement("canvas");oi.width=ut-$e,oi.height=Vn-Be,oi.getContext("2d").putImageData(this.canvasContext.getImageData($e,Be,ut-$e,Vn-Be),0,0),this.drawingImgUrl=oi.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Le.prototype.setDrawingImage=function(){Re.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Re.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Le.prototype.setColor=function(Me){this.color=Me,this.colorChanged(Me)},Le.prototype.setLineWidth=function(Me){this.lineWidth=Me},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Object.assign({drawingImgUrl:this.drawingImgUrl},Xe.prototype.getState.call(this));return Me.typeName=Le.typeName,Me},Le.prototype.restoreState=function(Me){this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.drawingImgUrl=Me.drawingImgUrl,this.setDrawingImage()},Le.prototype.scale=function(Me,We){Xe.prototype.scale.call(this,Me,We),this.setDrawingImage()},Le.typeName="FreehandMarker",Le.title="Freehand marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Le}(xe),Nt=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,$e||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Be.typeBoxes=[],Be.currentType=We,Be.setCurrentType=Be.setCurrentType.bind(Be),Be}return tt(Le,Xe),Le.prototype.getUi=function(){var Me=this,We=document.createElement("div");We.style.display="flex",We.style.overflow="hidden",We.style.flexGrow="2";for(var $e=function(Vn){var In="both";switch(Vn){case 0:In="both";break;case 1:In="start";break;case 2:In="end";break;case 3:In="none"}var Cn=document.createElement("div");if(Cn.style.display="flex",Cn.style.flexGrow="2",Cn.style.alignItems="center",Cn.style.justifyContent="space-between",Cn.style.padding="5px",Cn.style.borderWidth="2px",Cn.style.borderStyle="solid",Cn.style.borderColor=In===Be.currentType?Be.uiStyleSettings.toolboxAccentColor:"transparent",Cn.addEventListener("click",function(){Me.setCurrentType(In,Cn)}),We.appendChild(Cn),In==="both"||In==="start"){var Pn=document.createElement("div");Pn.style.display="flex",Pn.style.alignItems="center",Pn.style.minHeight="20px",Pn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Pn.style.marginLeft="5px",Cn.appendChild(Pn)}var oi=document.createElement("div");oi.style.display="flex",oi.style.alignItems="center",oi.style.minHeight="20px",oi.style.flexGrow="2";var mn=document.createElement("hr");if(mn.style.minWidth="20px",mn.style.border="0px",mn.style.borderTop="3px solid "+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee"),mn.style.flexGrow="2",oi.appendChild(mn),Cn.appendChild(oi),In==="both"||In==="end"){var bi=document.createElement("div");bi.style.display="flex",bi.style.alignItems="center",bi.style.minHeight="20px",bi.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,bi.style.marginRight="5px",Cn.appendChild(bi)}Be.typeBoxes.push(Cn)},Be=this,ut=0;ut<4;ut++)$e(ut);return We},Le.prototype.setCurrentType=function(Me,We){var $e=this;this.currentType=Me,this.typeBoxes.forEach(function(Be){Be.style.borderColor=Be===We?$e.uiStyleSettings!==void 0?$e.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Le}(ne),Bn=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.arrowType="end",Be.arrowBaseHeight=10,Be.arrowBaseWidth=10,Be.getArrowPoints=Be.getArrowPoints.bind(Be),Be.setArrowType=Be.setArrowType.bind(Be),Be.arrowTypePanel=new Nt("Arrow type","end"),Be.arrowTypePanel.onArrowTypeChanged=Be.setArrowType,Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.arrow1&&Me!==this.arrow2)},Le.prototype.getArrowPoints=function(Me,We){var $e=this.arrowBaseWidth+2*this.strokeWidth,Be=this.arrowBaseHeight+2*this.strokeWidth;return Me-$e/2+","+(We+Be/2)+" "+Me+","+(We-Be/2)+" "+(Me+$e/2)+","+(We+Be/2)},Le.prototype.createTips=function(){this.arrow1=Re.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Re.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.arrow2)},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.state==="creating"&&this.createTips()},Le.prototype.adjustVisual=function(){if(Xe.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Re.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Re.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Me=0;Math.abs(this.x1-this.x2)>.1&&(Me=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var We=this.arrow1.transform.baseVal.getItem(0);We.setRotate(Me,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(We,0);var $e=this.arrow2.transform.baseVal.getItem(0);$e.setRotate(Me+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem($e,0)}},Le.prototype.setArrowType=function(Me){this.arrowType=Me,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Object.assign({arrowType:this.arrowType},Xe.prototype.getState.call(this));return Me.typeName=Le.typeName,Me},Le.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var We=Me;this.arrowType=We.arrowType,this.createTips(),this.adjustVisual()},Le.typeName="ArrowMarker",Le.title="Arrow marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Le}(Tt),On=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.fillColor=$e.defaultFillColor,Be.strokeWidth=0,Be.fillPanel=new te("Color",$e.defaultColorSet,$e.defaultFillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be}return tt(Le,Xe),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=Le.typeName,Me},Le.typeName="CoverMarker",Le.title="Cover marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Le}(Pe),Qt=function(Xe){function Le(Me,We,$e,Be){var ut=Xe.call(this,Me,Be||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ut.opacities=[],ut.opacityBoxes=[],ut.opacities=We,ut.currentOpacity=$e,ut.setCurrentOpacity=ut.setCurrentOpacity.bind(ut),ut}return tt(Le,Xe),Le.prototype.getUi=function(){var Me=this,We=document.createElement("div");return We.style.display="flex",We.style.overflow="hidden",We.style.flexGrow="2",We.style.justifyContent="space-between",this.opacities.forEach(function($e){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="center",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=$e===Me.currentOpacity?Me.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Me.setCurrentOpacity($e,Be)}),We.appendChild(Be);var ut=document.createElement("div");ut.innerText=100*$e+"%",Be.appendChild(ut),Me.opacityBoxes.push(Be)}),We},Le.prototype.setCurrentOpacity=function(Me,We){var $e=this;this.currentOpacity=Me,this.opacityBoxes.forEach(function(Be){Be.style.borderColor=Be===We?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Le}(ne),vn=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.setOpacity=Be.setOpacity.bind(Be),Be.fillColor=$e.defaultHighlightColor,Be.strokeWidth=0,Be.opacity=$e.defaultHighlightOpacity,Be.fillPanel=new te("Color",$e.defaultColorSet,Be.fillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be.opacityPanel=new Qt("Opacity",$e.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return tt(Le,Xe),Le.prototype.setOpacity=function(Me){this.opacity=Me,this.visual&&Re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=Le.typeName,Me},Le.typeName="HighlightMarker",Le.title="Highlight marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Le}(On),lt='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Ge='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ne=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.bgColor="transparent",Be.tipPosition={x:0,y:0},Be.tipBase1Position={x:0,y:0},Be.tipBase2Position={x:0,y:0},Be.tipMoving=!1,Be.color=$e.defaultStrokeColor,Be.bgColor=$e.defaultFillColor,Be.fontFamily=$e.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setBgColor=Be.setBgColor.bind(Be),Be.getTipPoints=Be.getTipPoints.bind(Be),Be.positionTip=Be.positionTip.bind(Be),Be.setTipPoints=Be.setTipPoints.bind(Be),Be.colorPanel=new te("Text color",$e.defaultColorSet,Be.color,lt),Be.colorPanel.onColorChanged=Be.setColor,Be.bgColorPanel=new te("Fill color",$e.defaultColorSet,Be.bgColor,Ge),Be.bgColorPanel.onColorChanged=Be.setBgColor,Be.fontFamilyPanel=new Mt("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.tipGrip=new ge,Be.tipGrip.visual.transform.baseVal.appendItem(Re.createTransform()),Be.controlBox.appendChild(Be.tipGrip.visual),Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return Xe.prototype.ownsTarget.call(this,Me)||this.tipGrip.ownsTarget(Me)||this.tip===Me},Le.prototype.createTip=function(){Re.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Re.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Le.prototype.pointerDown=function(Me,We){this.state==="new"&&Xe.prototype.pointerDown.call(this,Me,We),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(We)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Xe.prototype.pointerDown.call(this,Me,We)},Le.prototype.pointerUp=function(Me){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Xe.prototype.pointerUp.call(this,Me);else{var We=this.state==="creating";Xe.prototype.pointerUp.call(this,Me),this.setTipPoints(We),this.positionTip()}},Le.prototype.manipulate=function(Me){if(this.tipMoving){var We=this.unrotatePoint(Me);this.tipPosition={x:We.x-this.manipulationStartLeft,y:We.y-this.manipulationStartTop},this.positionTip()}else Xe.prototype.manipulate.call(this,Me)},Le.prototype.setBgColor=function(Me){this.bgRectangle&&this.tip&&(Re.setAttributes(this.bgRectangle,[["fill",Me]]),Re.setAttributes(this.tip,[["fill",Me]])),this.bgColor=Me,this.fillColorChanged(Me)},Le.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Le.prototype.setTipPoints=function(Me){Me===void 0&&(Me=!1);var We=Math.min(this.height/2,15),$e=this.height/5;Me&&(this.tipPosition={x:We+$e/2,y:this.height+20});var Be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?($e=this.width/5,We=Math.min(this.width/2,15),this.tipBase1Position={x:We,y:0},this.tipBase2Position={x:We+$e,y:0}):(this.tipBase1Position={x:0,y:We},this.tipBase2Position={x:0,y:We+$e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?($e=this.width/5,We=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-We-$e,y:0},this.tipBase2Position={x:this.width-We,y:0}):(this.tipBase1Position={x:this.width,y:We},this.tipBase2Position={x:this.width,y:We+$e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Be<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?($e=this.width/5,We=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-We-$e,y:this.height},this.tipBase2Position={x:this.width-We,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-We-$e},this.tipBase2Position={x:this.width,y:this.height-We}):Be<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?($e=this.width/5,We=Math.min(this.width/2,15),this.tipBase1Position={x:We,y:this.height},this.tipBase2Position={x:We+$e,y:this.height}):(this.tipBase1Position={x:0,y:this.height-We},this.tipBase2Position={x:0,y:this.height-We-$e})},Le.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.positionTip()},Le.prototype.positionTip=function(){Re.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Me=this.tipGrip.visual.transform.baseVal.getItem(0);Me.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Me,0)},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Le.prototype.select=function(){this.positionTip(),Xe.prototype.select.call(this)},Le.prototype.getState=function(){var Me=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Xe.prototype.getState.call(this));return Me.typeName=Le.typeName,Me},Le.prototype.restoreState=function(Me){var We=Me;this.bgColor=We.bgColor,this.tipPosition=We.tipPosition,Xe.prototype.restoreState.call(this,Me),this.createTip(),this.setTipPoints()},Le.prototype.scale=function(Me,We){Xe.prototype.scale.call(this,Me,We),this.tipPosition={x:this.tipPosition.x*Me,y:this.tipPosition.y*We},this.positionTip()},Le.typeName="CalloutMarker",Le.title="Callout marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Le}(yt),Nn=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.strokeColor=$e.defaultColor,Be.strokeWidth=$e.defaultStrokeWidth,Be.strokeDasharray=$e.defaultStrokeDasharray,Be.fillColor=$e.defaultFillColor,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.setOpacity=Be.setOpacity.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.strokePanel=new te("Line color",Bt($e.defaultColorSet,["transparent"]),$e.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new te("Fill color",Bt($e.defaultColorSet,["transparent"]),Be.fillColor,Ge),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new Ke("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new qe("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.opacityPanel=new Qt("Opacity",$e.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual)},Le.prototype.createVisual=function(){this.visual=Re.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.state==="new"&&(this.createVisual(),this.moveVisual(Me),this._state="creating")},Le.prototype.manipulate=function(Me){Xe.prototype.manipulate.call(this,Me)},Le.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.setSize()},Le.prototype.setSize=function(){Xe.prototype.setSize.call(this),Re.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Le.prototype.pointerUp=function(Me){Xe.prototype.pointerUp.call(this,Me),this.setSize()},Le.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.visual&&Re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Me),this.stateChanged()},Le.prototype.setFillColor=function(Me){this.fillColor=Me,this.visual&&Re.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Me),this.stateChanged()},Le.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.visual&&Re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.visual&&Re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Le.prototype.setOpacity=function(Me){this.opacity=Me,this.visual&&Re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Xe.prototype.getState.call(this));return Me.typeName=Le.typeName,Me},Le.prototype.restoreState=function(Me){var We=Me;this.fillColor=We.fillColor,this.strokeColor=We.strokeColor,this.strokeWidth=We.strokeWidth,this.strokeDasharray=We.strokeDasharray,this.opacity=We.opacity,this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.setSize()},Le.prototype.scale=function(Me,We){Xe.prototype.scale.call(this,Me,We),this.setSize()},Le.typeName="EllipseMarker",Le.title="Ellipse marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Le}(xe),Xn=function(Xe){function Le(Me,We,$e){return Xe.call(this,Me,We,$e)||this}return tt(Le,Xe),Object.defineProperty(Le.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Le.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.tip1&&Me!==this.tip2)},Le.prototype.createTips=function(){this.tip1=Re.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Re.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Re.createTransform()),this.visual.appendChild(this.tip2)},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.state==="creating"&&this.createTips()},Le.prototype.adjustVisual=function(){if(Xe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Re.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Re.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Me=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),We=this.tip1.transform.baseVal.getItem(0);We.setRotate(Me,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(We,0);var $e=this.tip2.transform.baseVal.getItem(0);$e.setRotate(Me+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem($e,0)}},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=Le.typeName,Me},Le.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me),this.createTips(),this.adjustVisual()},Le.typeName="MeasurementMarker",Le.title="Measurement marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Le}(Tt),Xt=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.strokePanel.colors=$e.defaultColorSet,Be.fillColor="transparent",Be}return tt(Le,Xe),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=Le.typeName,Me},Le.typeName="EllipseFrameMarker",Le.title="Ellipse frame marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Le}(Nn),ai=function(){function Xe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Xe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Xe.prototype.addUndoStep=function(Le){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Le)||(this.undoStack.push(Le),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Le)&&this.redoStack.splice(0,this.redoStack.length))},Xe.prototype.replaceLastUndoStep=function(Le){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Le)},Xe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Xe.prototype.undo=function(){if(this.undoStack.length>1){var Le=this.undoStack.pop();return Le!==void 0&&this.redoStack.push(Le),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Xe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Xe}(),xn=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.curveX=0,Be.curveY=0,Be.manipulationStartCurveX=0,Be.manipulationStartCurveY=0,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.positionGrips=Be.positionGrips.bind(Be),Be.addControlGrips=Be.addControlGrips.bind(Be),Be.adjustVisual=Be.adjustVisual.bind(Be),Be.setupControlBox=Be.setupControlBox.bind(Be),Be.resize=Be.resize.bind(Be),Be.strokeColor=$e.defaultColor,Be.strokeWidth=$e.defaultStrokeWidth,Be.strokeDasharray=$e.defaultStrokeDasharray,Be.strokePanel=new te("Line color",$e.defaultColorSet,$e.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ke("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new qe("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual&&Me!==this.selectorCurve&&Me!==this.visibleCurve&&!this.curveGrip.ownsTarget(Me))},Le.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Le.prototype.createVisual=function(){this.visual=Re.createGroup(),this.selectorCurve=Re.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Re.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Me.x,this.curveY=Me.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(We)&&(this.activeGrip=this.curveGrip,this._state="resize")},Le.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Re.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Re.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Re.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Le.prototype.setupControlBox=function(){Xe.prototype.setupControlBox.call(this),this.curveControlLine1=Re.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Re.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Le.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Xe.prototype.addControlGrips.call(this)},Le.prototype.positionGrips=function(){Xe.prototype.positionGrips.call(this);var Me=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Me/2,this.curveY-Me/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Le.prototype.manipulate=function(Me){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Me.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Me.y-this.manipulationStartY),Xe.prototype.manipulate.call(this,Me)},Le.prototype.resize=function(Me){this.activeGrip===this.curveGrip&&(this.curveX=Me.x,this.curveY=Me.y),Xe.prototype.resize.call(this,Me),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Le.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.adjustVisual(),this.colorChanged(Me)},Le.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.adjustVisual()},Le.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.adjustVisual()},Le.prototype.scale=function(Me,We){this.curveX=this.curveX*Me,this.curveY=this.curveY*We,Xe.prototype.scale.call(this,Me,We)},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Xe.prototype.getState.call(this));return Me.typeName=Le.typeName,Me},Le.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var We=Me;this.strokeColor=We.strokeColor,this.strokeWidth=We.strokeWidth,this.strokeDasharray=We.strokeDasharray,this.curveX=We.curveX,this.curveY=We.curveY,this.createVisual(),this.adjustVisual()},Le.typeName="CurveMarker",Le.title="Curve marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Le}(rt),gi=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,We,$e)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.textColor="transparent",Be.fontSize="1rem",Be.isMoved=!1,Be.captionText="Caption",Be.PADDING=5,Be.captionBoxWidth=0,Be.captionBoxHeight=0,Be.strokeColor=$e.defaultColor,Be.strokeWidth=$e.defaultStrokeWidth,Be.strokeDasharray=$e.defaultStrokeDasharray,Be.fillColor=$e.defaultFillColor,Be.textColor=$e.defaultStrokeColor,Be.fontFamily=$e.defaultFontFamily,Be.fontSize=$e.defaultCaptionFontSize,Be.captionText=$e.defaultCaptionText,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.sizeCaption=Be.sizeCaption.bind(Be),Be.setCaptionText=Be.setCaptionText.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.finishTextEditing=Be.finishTextEditing.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.setTextColor=Be.setTextColor.bind(Be),Be.strokePanel=new te("Line color",Bt($e.defaultColorSet,["transparent"]),Be.strokeColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new te("Fill color",Bt($e.defaultColorSet,["transparent"]),Be.fillColor,Ge),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new Ke("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new qe("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.fontFamilyPanel=new Mt("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.textColorPanel=new te("Text color",$e.defaultColorSet,Be.textColor,lt),Be.textColorPanel.onColorChanged=Be.setTextColor,Be}return tt(Le,Xe),Le.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual&&Me!==this.frame&&Me!==this.captionBg&&Me!==this.captionElement)},Le.prototype.createVisual=function(){this.visual=Re.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Re.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Re.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Re.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Le.prototype.setCaptionText=function(Me){this.captionText=Me,this.captionElement.textContent=this.captionText,this.sizeCaption()},Le.prototype.pointerDown=function(Me,We){Xe.prototype.pointerDown.call(this,Me,We),this.isMoved=!1,this.pointerDownPoint=Me,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Me),this._state="creating")},Le.prototype.manipulate=function(Me){Xe.prototype.manipulate.call(this,Me),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Me.x-this.pointerDownPoint.x)>5||Math.abs(Me.y-this.pointerDownPoint.y)>5)},Le.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.setSize()},Le.prototype.sizeCaption=function(){var Me=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Me.width+2*this.PADDING,this.captionBoxHeight=Me.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Re.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Re.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Le.prototype.showTextEditor=function(){var Me=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(We){We.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(We){We.key==="Enter"&&Me.finishTextEditing(Me.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(We){We.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Me.finishTextEditing(Me.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Me.finishTextEditing(Me.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Le.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Le.prototype.finishTextEditing=function(Me){this.setCaptionText(Me.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Le.prototype.setFont=function(Me){this.captionElement&&Re.setAttributes(this.captionElement,[["font-family",Me]]),this.fontFamily=Me,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Le.prototype.setTextColor=function(Me){this.captionElement&&Re.setAttributes(this.captionElement,[["fill",Me]]),this.textColor=Me,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Le.prototype.setSize=function(){Xe.prototype.setSize.call(this),Re.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Le.prototype.pointerUp=function(Me){Xe.prototype.pointerUp.call(this,Me),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Le.prototype.dblClick=function(Me,We){Xe.prototype.dblClick.call(this,Me,We),this.showTextEditor()},Le.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.frame&&Re.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Me),this.stateChanged()},Le.prototype.setFillColor=function(Me){this.fillColor=Me,this.captionBg&&Re.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Me),this.stateChanged()},Le.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.frame&&Re.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.frame&&Re.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var Me=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Xe.prototype.getState.call(this));return Me.typeName=this.typeName,Me},Le.prototype.restoreState=function(Me){var We=Me;this.fillColor=We.fillColor,this.strokeColor=We.strokeColor,this.strokeWidth=We.strokeWidth,this.strokeDasharray=We.strokeDasharray,this.textColor=We.textColor,this.fontFamily=We.fontFamily,this.captionText=We.captionText,this.fontSize=We.fontSize,this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.setSize()},Le.prototype.scale=function(Me,We){Xe.prototype.scale.call(this,Me,We),this.setSize()},Le.typeName="CaptionFrameMarker",Le.title="Caption frame marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Le}(xe),Zt=function(){function Xe(Le,Me){Me===void 0&&(Me=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Le,this.cancelable=Me}return Object.defineProperty(Xe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Xe.prototype.preventDefault=function(){this._defaultPrevented=!0},Xe}(),Ct=function(Xe){function Le(Me,We,$e){var Be=Xe.call(this,Me,!1)||this;return Be.dataUrl=We,Be.state=$e,Be}return tt(Le,Xe),Le}(Zt),qt=function(Xe){function Le(Me,We,$e){$e===void 0&&($e=!1);var Be=Xe.call(this,Me,$e)||this;return Be.marker=We,Be}return tt(Le,Xe),Le}(Zt),hi=function(){function Xe(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Xe.prototype.addEventListener=function(Le,Me){this[Le].push(Me)},Xe.prototype.removeEventListener=function(Le,Me){var We=this[Le].indexOf(Me);We>-1&&this[Le].splice(We,1)},Xe}(),Kt=function(){function Xe(Le){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new st,this._isOpen=!1,this.undoRedoManager=new ai,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new hi,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Xe.instanceCounter++,this.styles=new ht(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Le,this.targetRoot=document.body,this.width=Le.clientWidth,this.height=Le.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Xe.prototype,"ALL_MARKER_TYPES",{get:function(){return[ft,Dt,Bn,yt,Xt,Nn,vn,Ne,Xn,On,Tt,xn,gi]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ft,Dt,Bn,yt,Nn,vn,Ne]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ft,Dt,Bn,yt,vn]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Le){var Me=this;this._availableMarkerTypes.splice(0),Le.forEach(function(We){if(typeof We=="string"){var $e=Me.ALL_MARKER_TYPES.find(function(Be){return Be.typeName===We});$e!==void 0&&Me._availableMarkerTypes.push($e)}else Me._availableMarkerTypes.push(We)})},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Le){this._zoomLevel=Le,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Xe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Je.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Xe.prototype.show=function(){var Le=this;this.styles.styleSheetRoot===void 0&&wt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=wt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Me){return Me(new Zt(Le))})},Xe.prototype.render=function(){return Pt(this,void 0,void 0,function(){var Le;return Ut(this,function(Me){switch(Me.label){case 0:return this.setCurrentMarker(),(Le=new pt).naturalSize=this.renderAtNaturalSize,Le.imageType=this.renderImageType,Le.imageQuality=this.renderImageQuality,Le.markersOnly=this.renderMarkersOnly,Le.width=this.renderWidth,Le.height=this.renderHeight,[4,Le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Me.sent(),[4,Le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Me.sent()]}})})},Xe.prototype.close=function(Le){var Me=this;if(Le===void 0&&(Le=!1),this.isOpen){var We=!1;Le||this.eventListeners.beforeclose.forEach(function($e){var Be=new Zt(Me,!0);$e(Be),Be.defaultPrevented&&(We=!0)}),We||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function($e){return $e(new Zt(Me))}),this.detachEvents(),this._isOpen=!1)}},Xe.prototype.addMarkersToToolbar=function(){for(var Le,Me=[],We=0;We<arguments.length;We++)Me[We]=arguments[We];(Le=this._availableMarkerTypes).push.apply(Le,Me)},Xe.prototype.addRenderEventListener=function(Le){this.addEventListener("render",function(Me){Le(Me.dataUrl,Me.state)})},Xe.prototype.removeRenderEventListener=function(Le){},Xe.prototype.addCloseEventListener=function(Le){this.addEventListener("close",function(){Le()})},Xe.prototype.removeCloseEventListener=function(Le){},Xe.prototype.setupResizeObserver=function(){var Le=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Le.resize(Le.target.clientWidth,Le.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Le.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Xe.prototype.onPopupTargetResize=function(){var Le=1*this.target.clientWidth/this.target.clientHeight,Me=this.editorCanvas.clientWidth/Le>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Le:this.editorCanvas.clientWidth,We=Me<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Le;this.resize(Me,We)},Xe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Xe.prototype.resize=function(Le,Me){this._isResizing=!0;var We=Le/this.imageWidth,$e=Me/this.imageHeight;this.imageWidth=Math.round(Le),this.imageHeight=Math.round(Me),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(We,$e),this._isResizing=!1},Xe.prototype.scaleMarkers=function(Le,Me){var We,$e=this;this._currentMarker&&this._currentMarker instanceof yt?this._currentMarker.scale(Le,Me):(We=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Be){Be!==$e._currentMarker&&Be.scale(Le,Me)}),We!==void 0&&this.setCurrentMarker(We)},Xe.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Xe.prototype.setTopLeft=function(){var Le=this.editingTarget.getBoundingClientRect(),Me=this.editorCanvas.getBoundingClientRect();this.left=Le.left-Me.left,this.top=Le.top-Me.top},Xe.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Xe.prototype.addDefs=function(){for(var Le,Me=[],We=0;We<arguments.length;We++)Me[We]=arguments[We];this.defs=Re.createDefs(),this.addDefsToImage(),(Le=this.defs).append.apply(Le,Me)},Xe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Xe.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Xe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Xe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Xe.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Xe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Xe.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Xe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Le=document.createElement("a");Le.href="https://markerjs.com/",Le.target="_blank",Le.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Le.title="Powered by marker.js",Le.style.display="grid",Le.style.alignItems="center",Le.style.justifyItems="center",Le.style.padding="3px",Le.style.width="20px",Le.style.height="20px",this.logoUI.appendChild(Le),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Xe.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Xe.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Xe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Xe.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Le=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Le+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new He(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Te(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Xe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Xe.prototype.removeMarker=function(Le){this.markerImage.removeChild(Le.container),this.markers.indexOf(Le)>-1&&this.markers.splice(this.markers.indexOf(Le),1),Le.dispose()},Xe.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Xe.prototype.toolbarButtonClicked=function(Le,Me){if(Le==="marker"&&Me!==void 0)this.createNewMarker(Me);else if(Le==="action")switch(Me){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Xe.prototype.deleteSelectedMarker=function(){var Le=this;if(this._currentMarker!==void 0){var Me=!1;if(this.eventListeners.markerbeforedelete.forEach(function($e){var Be=new qt(Le,Le._currentMarker,!0);$e(Be),Be.defaultPrevented&&(Me=!0)}),!Me){var We=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function($e){return $e(new qt(Le,We))})}}},Xe.prototype.clear=function(){var Le=this,Me=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ut){var Vn=new qt(Le,void 0,!0);ut(Vn),Vn.defaultPrevented&&(Me=!0)}),!Me)){this.setCurrentMarker();for(var We=function(ut){var Vn=$e.markers[ut];$e.setCurrentMarker($e.markers[ut]),$e._currentMarker.dispose(),$e.markerImage.removeChild($e._currentMarker.container),$e.markers.splice($e.markers.indexOf($e._currentMarker),1),$e.eventListeners.markerdelete.forEach(function(In){return In(new qt(Le,Vn))})},$e=this,Be=this.markers.length-1;Be>=0;Be--)We(Be);this.addUndoStep()}},Object.defineProperty(Xe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Xe.prototype.showNotesEditor=function(){var Le;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Le=this._currentMarker.notes)!==null&&Le!==void 0?Le:"",this.overlayContainer.appendChild(this.notesArea))},Xe.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Xe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Xe.prototype.addUndoStep=function(){var Le=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Me=this.getState(),We=this.undoRedoManager.getLastUndoStep();if(!We||We.width===Me.width&&We.height===Me.height){var $e=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Me),$e<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Be){return Be(new Zt(Le))})}else this.undoRedoManager.replaceLastUndoStep(Me),this.eventListeners.statechange.forEach(function(Be){return Be(new Zt(Le))})}},Xe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Xe.prototype.undoStep=function(){var Le=this,Me=this.undoRedoManager.undo();Me!==void 0&&(this.restoreState(Me),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(We){return We(new Zt(Le))}))},Xe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Xe.prototype.redoStep=function(){var Le=this,Me=this.undoRedoManager.redo();Me!==void 0&&(this.restoreState(Me),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(We){return We(new Zt(Le))}))},Xe.prototype.stepZoom=function(){var Le=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Le<this.zoomSteps.length-1?this.zoomSteps[Le+1]:this.zoomSteps[0]},Xe.prototype.panTo=function(Le){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Le.x,top:this.prevPanPoint.y-Le.y}),this.prevPanPoint=Le},Xe.prototype.startRenderAndClose=function(){return Pt(this,void 0,void 0,function(){var Le,Me,We=this;return Ut(this,function($e){switch($e.label){case 0:return[4,this.render()];case 1:return Le=$e.sent(),Me=this.getState(),this.eventListeners.render.forEach(function(Be){return Be(new Ct(We,Le,Me))}),this.close(!0),[2]}})})},Xe.prototype.getState=function(Le){Le===!0&&this.setCurrentMarker();var Me={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(We){return Me.markers.push(We.getState())}),Me},Xe.prototype.restoreState=function(Le){var Me=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Le.markers.forEach(function(We){var $e=Me._availableMarkerTypes.find(function(ut){return ut.typeName===We.typeName});if($e!==void 0){var Be=Me.addNewMarker($e);Be.restoreState(We),Me.markers.push(Be)}}),Le.width&&Le.height&&(Le.width!==this.imageWidth||Le.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Le.width,this.imageHeight/Le.height),this.eventListeners.restorestate.forEach(function(We){return We(new Zt(Me))})},Xe.prototype.addNewMarker=function(Le){var Me=Re.createGroup();return this.markerImage.appendChild(Me),new Le(Me,this.overlayContainer,this.settings)},Xe.prototype.createNewMarker=function(Le){var Me,We=this;(Me=typeof Le=="string"?this._availableMarkerTypes.find(function($e){return $e.typeName===Le}):Le)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Me),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Me.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function($e){return $e(new qt(We,We._currentMarker))}))},Xe.prototype.markerCreated=function(Le){var Me=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Le),this.setCurrentMarker(Le),Le instanceof Dt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Dt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(We){return We(new qt(Me,Me._currentMarker))})},Xe.prototype.colorChanged=function(Le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Le,this.settings.defaultStrokeColor=Le)},Xe.prototype.fillColorChanged=function(Le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Le)},Xe.prototype.markerStateChanged=function(Le){var Me=this;this.eventListeners.markerchange.forEach(function(We){return We(new qt(Me,Le))})},Xe.prototype.setCurrentMarker=function(Le){var Me=this;this._currentMarker!==Le&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(We){return We(new qt(Me,Me._currentMarker))})),this._currentMarker=Le,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(We){return We(new qt(Me,Me._currentMarker))}))},Xe.prototype.onPointerDown=function(Le){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Le.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Me=this.markers.find(function(We){return We.ownsTarget(Le.target)});Me!==void 0?(this.setCurrentMarker(Me),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Le.clientX,Le.clientY),Le.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Le.clientX,y:Le.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Le.clientX,Le.clientY))},Xe.prototype.onDblClick=function(Le){if(this._isFocused||this.focus(),this.mode==="select"){var Me=this.markers.find(function(We){return We.ownsTarget(Le.target)});Me!==void 0&&Me!==this._currentMarker&&this.setCurrentMarker(Me),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Le.clientX,Le.clientY),Le.target):this.setCurrentMarker()}},Xe.prototype.onPointerMove=function(Le){this.touchPoints!==1&&Le.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Le.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Le.clientX,Le.clientY)):this.zoomLevel>1&&this.panTo({x:Le.clientX,y:Le.clientY}))},Xe.prototype.onPointerUp=function(Le){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Le.clientX,Le.clientY)),this.isDragging=!1,this.addUndoStep()},Xe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Xe.prototype.onKeyUp=function(Le){this._currentMarker===void 0||this.notesArea!==void 0||Le.key!=="Delete"&&Le.key!=="Backspace"||this.deleteSelectedMarker()},Xe.prototype.clientToLocalCoordinates=function(Le,Me){var We=this.markerImage.getBoundingClientRect();return{x:(Le-We.left)/this.zoomLevel,y:(Me-We.top)/this.zoomLevel}},Xe.prototype.onWindowResize=function(){this.positionUI()},Xe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Le=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Le+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Xe.prototype.addLicenseKey=function(Le){Je.addKey(Le)},Xe.prototype.addEventListener=function(Le,Me){this.eventListeners.addEventListener(Le,Me)},Xe.prototype.removeEventListener=function(Le,Me){this.eventListeners.removeEventListener(Le,Me)},Xe.prototype.renderState=function(Le){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Le),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Xe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Xe.prototype.focus=function(){var Le=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Me){return Me(new Zt(Le))}))},Xe.prototype.blur=function(){var Le=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Me){return Me(new Zt(Le))}))},Xe.instanceCounter=0,Xe}()},13272:function(Rn,ti,be){"use strict";be.d(ti,{s:function(){return rs},default:function(){return sn}});function ve(){return ve=Object.assign?Object.assign.bind():function(Ce){for(var ke=1;ke<arguments.length;ke++){var _e=arguments[ke];for(var Ye in _e)({}).hasOwnProperty.call(_e,Ye)&&(Ce[Ye]=_e[Ye])}return Ce},ve.apply(null,arguments)}function tt(Ce){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},tt(Ce)}function Pt(Ce,ke){if(tt(Ce)!="object"||!Ce)return Ce;var _e=Ce[Symbol.toPrimitive];if(_e!==void 0){var Ye=_e.call(Ce,ke||"default");if(tt(Ye)!="object")return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ke==="string"?String:Number)(Ce)}function Ut(Ce){var ke=Pt(Ce,"string");return tt(ke)=="symbol"?ke:ke+""}function Bt(Ce,ke,_e){return(ke=Ut(ke))in Ce?Object.defineProperty(Ce,ke,{value:_e,enumerable:!0,configurable:!0,writable:!0}):Ce[ke]=_e,Ce}function Re(Ce,ke){var _e=Object.keys(Ce);if(Object.getOwnPropertySymbols){var Ye=Object.getOwnPropertySymbols(Ce);ke&&(Ye=Ye.filter(function(kt){return Object.getOwnPropertyDescriptor(Ce,kt).enumerable})),_e.push.apply(_e,Ye)}return _e}function Je(Ce){for(var ke=1;ke<arguments.length;ke++){var _e=arguments[ke]!=null?arguments[ke]:{};ke%2?Re(Object(_e),!0).forEach(function(Ye){Bt(Ce,Ye,_e[Ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ce,Object.getOwnPropertyDescriptors(_e)):Re(Object(_e)).forEach(function(Ye){Object.defineProperty(Ce,Ye,Object.getOwnPropertyDescriptor(_e,Ye))})}return Ce}function pt(Ce,ke){(ke==null||ke>Ce.length)&&(ke=Ce.length);for(var _e=0,Ye=Array(ke);_e<ke;_e++)Ye[_e]=Ce[_e];return Ye}function wt(Ce){if(Array.isArray(Ce))return pt(Ce)}function ht(Ce){if(typeof Symbol!="undefined"&&Ce[Symbol.iterator]!=null||Ce["@@iterator"]!=null)return Array.from(Ce)}function Vt(Ce,ke){if(Ce){if(typeof Ce=="string")return pt(Ce,ke);var _e={}.toString.call(Ce).slice(8,-1);return _e==="Object"&&Ce.constructor&&(_e=Ce.constructor.name),_e==="Map"||_e==="Set"?Array.from(Ce):_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e)?pt(Ce,ke):void 0}}function ct(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function He(Ce){return wt(Ce)||ht(Ce)||Vt(Ce)||ct()}function Te(Ce){if(Array.isArray(Ce))return Ce}function ne(Ce,ke){var _e=Ce==null?null:typeof Symbol!="undefined"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(_e!=null){var Ye,kt,_t,on,zn=[],yn=!0,Fn=!1;try{if(_t=(_e=_e.call(Ce)).next,ke===0){if(Object(_e)!==_e)return;yn=!1}else for(;!(yn=(Ye=_t.call(_e)).done)&&(zn.push(Ye.value),zn.length!==ke);yn=!0);}catch(qn){Fn=!0,kt=qn}finally{try{if(!yn&&_e.return!=null&&(on=_e.return(),Object(on)!==on))return}finally{if(Fn)throw kt}}return zn}}function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(Ce,ke){return Te(Ce)||ne(Ce,ke)||Vt(Ce,ke)||te()}function se(Ce,ke){if(Ce==null)return{};var _e={};for(var Ye in Ce)if({}.hasOwnProperty.call(Ce,Ye)){if(ke.indexOf(Ye)!==-1)continue;_e[Ye]=Ce[Ye]}return _e}function ge(Ce,ke){if(Ce==null)return{};var _e,Ye,kt=se(Ce,ke);if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(Ce);for(Ye=0;Ye<_t.length;Ye++)_e=_t[Ye],ke.indexOf(_e)===-1&&{}.propertyIsEnumerable.call(Ce,_e)&&(kt[_e]=Ce[_e])}return kt}function me(){return me=Object.assign?Object.assign.bind():function(Ce){for(var ke=1;ke<arguments.length;ke++){var _e=arguments[ke];for(var Ye in _e)Object.prototype.hasOwnProperty.call(_e,Ye)&&(Ce[Ye]=_e[Ye])}return Ce},me.apply(this,arguments)}function xe(Ce,ke){(ke==null||ke>Ce.length)&&(ke=Ce.length);for(var _e=0,Ye=new Array(ke);_e<ke;_e++)Ye[_e]=Ce[_e];return Ye}function Pe(Ce){if(Array.isArray(Ce))return xe(Ce)}function Ke(Ce){if(typeof Symbol!="undefined"&&Ce[Symbol.iterator]!=null||Ce["@@iterator"]!=null)return Array.from(Ce)}function qe(Ce,ke){if(Ce){if(typeof Ce=="string")return xe(Ce,ke);var _e=Object.prototype.toString.call(Ce).slice(8,-1);if(_e==="Object"&&Ce.constructor&&(_e=Ce.constructor.name),_e==="Map"||_e==="Set")return Array.from(Ce);if(_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return xe(Ce,ke)}}function ft(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function st(Ce){return Pe(Ce)||Ke(Ce)||qe(Ce)||ft()}function rt(Ce){"@babel/helpers - typeof";return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},rt(Ce)}function Tt(Ce,ke){if(rt(Ce)!=="object"||Ce===null)return Ce;var _e=Ce[Symbol.toPrimitive];if(_e!==void 0){var Ye=_e.call(Ce,ke||"default");if(rt(Ye)!=="object")return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ke==="string"?String:Number)(Ce)}function Mt(Ce){var ke=Tt(Ce,"string");return rt(ke)==="symbol"?ke:String(ke)}function yt(Ce,ke,_e){return ke=Mt(ke),ke in Ce?Object.defineProperty(Ce,ke,{value:_e,enumerable:!0,configurable:!0,writable:!0}):Ce[ke]=_e,Ce}function Dt(Ce,ke){var _e=Object.keys(Ce);if(Object.getOwnPropertySymbols){var Ye=Object.getOwnPropertySymbols(Ce);ke&&(Ye=Ye.filter(function(kt){return Object.getOwnPropertyDescriptor(Ce,kt).enumerable})),_e.push.apply(_e,Ye)}return _e}function Nt(Ce){for(var ke=1;ke<arguments.length;ke++){var _e=arguments[ke]!=null?arguments[ke]:{};ke%2?Dt(Object(_e),!0).forEach(function(Ye){yt(Ce,Ye,_e[Ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ce,Object.getOwnPropertyDescriptors(_e)):Dt(Object(_e)).forEach(function(Ye){Object.defineProperty(Ce,Ye,Object.getOwnPropertyDescriptor(_e,Ye))})}return Ce}function Bn(Ce){if(Array.isArray(Ce))return Ce}function On(Ce,ke){var _e=Ce==null?null:typeof Symbol!="undefined"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(_e!=null){var Ye,kt,_t,on,zn=[],yn=!0,Fn=!1;try{if(_t=(_e=_e.call(Ce)).next,ke===0){if(Object(_e)!==_e)return;yn=!1}else for(;!(yn=(Ye=_t.call(_e)).done)&&(zn.push(Ye.value),zn.length!==ke);yn=!0);}catch(qn){Fn=!0,kt=qn}finally{try{if(!yn&&_e.return!=null&&(on=_e.return(),Object(on)!==on))return}finally{if(Fn)throw kt}}return zn}}function Qt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vn(Ce,ke){return Bn(Ce)||On(Ce,ke)||qe(Ce,ke)||Qt()}function lt(Ce,ke){if(Ce==null)return{};var _e={},Ye=Object.keys(Ce),kt,_t;for(_t=0;_t<Ye.length;_t++)kt=Ye[_t],!(ke.indexOf(kt)>=0)&&(_e[kt]=Ce[kt]);return _e}function Ge(Ce,ke){if(Ce==null)return{};var _e=lt(Ce,ke),Ye,kt;if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(Ce);for(kt=0;kt<_t.length;kt++)Ye=_t[kt],!(ke.indexOf(Ye)>=0)&&Object.prototype.propertyIsEnumerable.call(Ce,Ye)&&(_e[Ye]=Ce[Ye])}return _e}var Ne=be(67294);function Nn(Ce){var ke=Ne.useRef();ke.current=Ce;var _e=Ne.useCallback(function(){for(var Ye,kt=arguments.length,_t=new Array(kt),on=0;on<kt;on++)_t[on]=arguments[on];return(Ye=ke.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[ke].concat(_t))},[]);return _e}function Xn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Xt=Xn()?Ne.useLayoutEffect:Ne.useEffect,ai=Xt,xn=function(ke,_e){var Ye=Ne.useRef(!0);Xt(function(){if(!Ye.current)return ke()},_e),Xt(function(){return Ye.current=!1,function(){Ye.current=!0}},[])};function gi(Ce){var ke=Ne.useRef(!1),_e=Ne.useState(Ce),Ye=vn(_e,2),kt=Ye[0],_t=Ye[1];Ne.useEffect(function(){return ke.current=!1,function(){ke.current=!0}},[]);function on(zn,yn){yn&&ke.current||_t(zn)}return[kt,on]}function Zt(Ce){return Ce!==void 0}function Ct(Ce,ke){var _e=ke||{},Ye=_e.defaultValue,kt=_e.value,_t=_e.onChange,on=_e.postState,zn=gi(function(){return Zt(kt)?kt:Zt(Ye)?typeof Ye=="function"?Ye():Ye:typeof Ce=="function"?Ce():Ce}),yn=vn(zn,2),Fn=yn[0],qn=yn[1],$n=kt!==void 0?kt:Fn,Wi=on?on($n):$n,xi=Nn(_t),li=gi([$n]),Fi=vn(li,2),Zi=Fi[0],ur=Fi[1];xn(function(){var br=Zi[0];Fn!==br&&xi(Fn,br)},[Zi]),xn(function(){Zt(kt)||qn(kt)},[kt]);var to=Nn(function(br,Sr){qn(br,Sr),ur([$n],Sr)});return[Wi,to]}var qt={};function hi(Ce,ke){}function Kt(Ce,ke){}function Xe(){qt={}}function Le(Ce,ke,_e){!ke&&!qt[_e]&&(Ce(!1,_e),qt[_e]=!0)}function Me(Ce,ke){Le(hi,Ce,ke)}function We(Ce,ke){Le(Kt,Ce,ke)}var $e=Me,Be=be(94184),ut=be.n(Be),Vn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ce=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ce)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ce==null?void 0:Ce.substr(0,4))},In=be(16357);function Cn(Ce,ke,_e){var Ye=Ne.useRef({});return(!("value"in Ye.current)||_e(Ye.current.condition,ke))&&(Ye.current.value=Ce(),Ye.current.condition=ke),Ye.current.value}function Pn(Ce,ke){typeof Ce=="function"?Ce(ke):rt(Ce)==="object"&&Ce&&"current"in Ce&&(Ce.current=ke)}function oi(){for(var Ce=arguments.length,ke=new Array(Ce),_e=0;_e<Ce;_e++)ke[_e]=arguments[_e];var Ye=ke.filter(function(kt){return kt});return Ye.length<=1?Ye[0]:function(kt){ke.forEach(function(_t){Pn(_t,kt)})}}function mn(){for(var Ce=arguments.length,ke=new Array(Ce),_e=0;_e<Ce;_e++)ke[_e]=arguments[_e];return Cn(function(){return oi.apply(void 0,ke)},ke,function(Ye,kt){return Ye.length===kt.length&&Ye.every(function(_t,on){return _t===kt[on]})})}function bi(Ce){var ke,_e,Ye=isMemo(Ce)?Ce.type.type:Ce.type;return!(typeof Ye=="function"&&!((ke=Ye.prototype)!==null&&ke!==void 0&&ke.render)||typeof Ce=="function"&&!((_e=Ce.prototype)!==null&&_e!==void 0&&_e.render))}var _i=function(ke){var _e=ke.className,Ye=ke.customizeIcon,kt=ke.customizeIconProps,_t=ke.children,on=ke.onMouseDown,zn=ke.onClick,yn=typeof Ye=="function"?Ye(kt):Ye;return Ne.createElement("span",{className:_e,onMouseDown:function(qn){qn.preventDefault(),on==null||on(qn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:zn,"aria-hidden":!0},yn!==void 0?yn:Ne.createElement("span",{className:ut()(_e.split(/\s+/).map(function(Fn){return"".concat(Fn,"-icon")}))},_t))},Br=_i,Yi=function(ke,_e,Ye,kt,_t){var on=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,zn=arguments.length>6?arguments[6]:void 0,yn=arguments.length>7?arguments[7]:void 0,Fn=Ne.useMemo(function(){if(rt(kt)==="object")return kt.clearIcon;if(_t)return _t},[kt,_t]),qn=Ne.useMemo(function(){return!!(!on&&kt&&(Ye.length||zn)&&!(yn==="combobox"&&zn===""))},[kt,on,Ye.length,zn,yn]);return{allowClear:qn,clearIcon:Ne.createElement(Br,{className:"".concat(ke,"-clear"),onMouseDown:_e,customizeIcon:Fn},"\xD7")}},ki=Ne.createContext(null);function Xr(){return Ne.useContext(ki)}function Ki(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ke=Ne.useState(!1),_e=vn(ke,2),Ye=_e[0],kt=_e[1],_t=Ne.useRef(null),on=function(){window.clearTimeout(_t.current)};Ne.useEffect(function(){return on},[]);var zn=function(Fn,qn){on(),_t.current=window.setTimeout(function(){kt(Fn),qn&&qn()},Ce)};return[Ye,zn,on]}function lr(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ke=Ne.useRef(null),_e=Ne.useRef(null);Ne.useEffect(function(){return function(){window.clearTimeout(_e.current)}},[]);function Ye(kt){(kt||ke.current===null)&&(ke.current=kt),window.clearTimeout(_e.current),_e.current=window.setTimeout(function(){ke.current=null},Ce)}return[function(){return ke.current},Ye]}function ar(Ce,ke,_e,Ye){var kt=Ne.useRef(null);kt.current={open:ke,triggerOpen:_e,customizedTrigger:Ye},Ne.useEffect(function(){function _t(on){var zn;if(!((zn=kt.current)!==null&&zn!==void 0&&zn.customizedTrigger)){var yn=on.target;yn.shadowRoot&&on.composed&&(yn=on.composedPath()[0]||yn),kt.current.open&&Ce().filter(function(Fn){return Fn}).every(function(Fn){return!Fn.contains(yn)&&Fn!==yn})&&kt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",_t),function(){return window.removeEventListener("mousedown",_t)}},[])}var kn={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(ke){var _e=ke.keyCode;if(ke.altKey&&!ke.ctrlKey||ke.metaKey||_e>=kn.F1&&_e<=kn.F12)return!1;switch(_e){case kn.ALT:case kn.CAPS_LOCK:case kn.CONTEXT_MENU:case kn.CTRL:case kn.DOWN:case kn.END:case kn.ESC:case kn.HOME:case kn.INSERT:case kn.LEFT:case kn.MAC_FF_META:case kn.META:case kn.NUMLOCK:case kn.NUM_CENTER:case kn.PAGE_DOWN:case kn.PAGE_UP:case kn.PAUSE:case kn.PRINT_SCREEN:case kn.RIGHT:case kn.SHIFT:case kn.UP:case kn.WIN_KEY:case kn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=kn.ZERO&&ke<=kn.NINE||ke>=kn.NUM_ZERO&&ke<=kn.NUM_MULTIPLY||ke>=kn.A&&ke<=kn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case kn.SPACE:case kn.QUESTION_MARK:case kn.NUM_PLUS:case kn.NUM_MINUS:case kn.NUM_PERIOD:case kn.NUM_DIVISION:case kn.SEMICOLON:case kn.DASH:case kn.EQUALS:case kn.COMMA:case kn.PERIOD:case kn.SLASH:case kn.APOSTROPHE:case kn.SINGLE_QUOTE:case kn.OPEN_SQUARE_BRACKET:case kn.BACKSLASH:case kn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Bi=kn;function ea(Ce){return Ce&&![Bi.ESC,Bi.SHIFT,Bi.BACKSPACE,Bi.TAB,Bi.WIN_KEY,Bi.ALT,Bi.META,Bi.WIN_KEY_RIGHT,Bi.CTRL,Bi.SEMICOLON,Bi.EQUALS,Bi.CAPS_LOCK,Bi.CONTEXT_MENU,Bi.F1,Bi.F2,Bi.F3,Bi.F4,Bi.F5,Bi.F6,Bi.F7,Bi.F8,Bi.F9,Bi.F10,Bi.F11,Bi.F12].includes(Ce)}var Zn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Wr=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ra="".concat(Zn," ").concat(Wr).split(/[\s\n]+/),sa="aria-",Wa="data-";function ma(Ce,ke){return Ce.indexOf(ke)===0}function Ha(Ce){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e;ke===!1?_e={aria:!0,data:!0,attr:!0}:ke===!0?_e={aria:!0}:_e=Nt({},ke);var Ye={};return Object.keys(Ce).forEach(function(kt){(_e.aria&&(kt==="role"||ma(kt,sa))||_e.data&&ma(kt,Wa)||_e.attr&&ra.includes(kt))&&(Ye[kt]=Ce[kt])}),Ye}function da(){return da=Object.assign?Object.assign.bind():function(Ce){for(var ke=1;ke<arguments.length;ke++){var _e=arguments[ke];for(var Ye in _e)Object.prototype.hasOwnProperty.call(_e,Ye)&&(Ce[Ye]=_e[Ye])}return Ce},da.apply(this,arguments)}function la(Ce){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},la(Ce)}function No(Ce,ke){if(la(Ce)!=="object"||Ce===null)return Ce;var _e=Ce[Symbol.toPrimitive];if(_e!==void 0){var Ye=_e.call(Ce,ke||"default");if(la(Ye)!=="object")return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ke==="string"?String:Number)(Ce)}function ni(Ce){var ke=No(Ce,"string");return la(ke)==="symbol"?ke:String(ke)}function Ee(Ce,ke,_e){return ke=ni(ke),ke in Ce?Object.defineProperty(Ce,ke,{value:_e,enumerable:!0,configurable:!0,writable:!0}):Ce[ke]=_e,Ce}function pn(Ce,ke){var _e=Object.keys(Ce);if(Object.getOwnPropertySymbols){var Ye=Object.getOwnPropertySymbols(Ce);ke&&(Ye=Ye.filter(function(kt){return Object.getOwnPropertyDescriptor(Ce,kt).enumerable})),_e.push.apply(_e,Ye)}return _e}function hn(Ce){for(var ke=1;ke<arguments.length;ke++){var _e=arguments[ke]!=null?arguments[ke]:{};ke%2?pn(Object(_e),!0).forEach(function(Ye){Ee(Ce,Ye,_e[Ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ce,Object.getOwnPropertyDescriptors(_e)):pn(Object(_e)).forEach(function(Ye){Object.defineProperty(Ce,Ye,Object.getOwnPropertyDescriptor(_e,Ye))})}return Ce}function ri(Ce){if(Array.isArray(Ce))return Ce}function Jn(Ce,ke){var _e=Ce==null?null:typeof Symbol!="undefined"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(_e!=null){var Ye,kt,_t,on,zn=[],yn=!0,Fn=!1;try{if(_t=(_e=_e.call(Ce)).next,ke===0){if(Object(_e)!==_e)return;yn=!1}else for(;!(yn=(Ye=_t.call(_e)).done)&&(zn.push(Ye.value),zn.length!==ke);yn=!0);}catch(qn){Fn=!0,kt=qn}finally{try{if(!yn&&_e.return!=null&&(on=_e.return(),Object(on)!==on))return}finally{if(Fn)throw kt}}return zn}}function Wn(Ce,ke){(ke==null||ke>Ce.length)&&(ke=Ce.length);for(var _e=0,Ye=new Array(ke);_e<ke;_e++)Ye[_e]=Ce[_e];return Ye}function nn(Ce,ke){if(Ce){if(typeof Ce=="string")return Wn(Ce,ke);var _e=Object.prototype.toString.call(Ce).slice(8,-1);if(_e==="Object"&&Ce.constructor&&(_e=Ce.constructor.name),_e==="Map"||_e==="Set")return Array.from(Ce);if(_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return Wn(Ce,ke)}}function ii(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wt(Ce,ke){return ri(Ce)||Jn(Ce,ke)||nn(Ce,ke)||ii()}function Gt(Ce,ke){if(Ce==null)return{};var _e={},Ye=Object.keys(Ce),kt,_t;for(_t=0;_t<Ye.length;_t++)kt=Ye[_t],!(ke.indexOf(kt)>=0)&&(_e[kt]=Ce[kt]);return _e}function Ft(Ce,ke){if(Ce==null)return{};var _e=Gt(Ce,ke),Ye,kt;if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(Ce);for(kt=0;kt<_t.length;kt++)Ye=_t[kt],!(ke.indexOf(Ye)>=0)&&Object.prototype.propertyIsEnumerable.call(Ce,Ye)&&(_e[Ye]=Ce[Ye])}return _e}var un=be(48555);function Ti(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ri=Ti()?Ne.useLayoutEffect:Ne.useEffect,di=function(ke,_e){var Ye=Ne.useRef(!0);Ri(function(){return ke(Ye.current)},_e),Ri(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},Yt=function(ke,_e){di(function(Ye){if(!Ye)return ke()},_e)},Hn=di,En=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fr=void 0;function si(Ce,ke){var _e=Ce.prefixCls,Ye=Ce.invalidate,kt=Ce.item,_t=Ce.renderItem,on=Ce.responsive,zn=Ce.responsiveDisabled,yn=Ce.registerSize,Fn=Ce.itemKey,qn=Ce.className,$n=Ce.style,Wi=Ce.children,xi=Ce.display,li=Ce.order,Fi=Ce.component,Zi=Fi===void 0?"div":Fi,ur=Ft(Ce,En),to=on&&!xi;function br(mr){yn(Fn,mr)}Ne.useEffect(function(){return function(){br(null)}},[]);var Sr=_t&&kt!==Fr?_t(kt):Wi,wo;Ye||(wo={opacity:to?0:1,height:to?0:Fr,overflowY:to?"hidden":Fr,order:on?li:Fr,pointerEvents:to?"none":Fr,position:to?"absolute":Fr});var Mi={};to&&(Mi["aria-hidden"]=!0);var Jr=Ne.createElement(Zi,da({className:ut()(!Ye&&_e,qn),style:hn(hn({},wo),$n)},Mi,ur,{ref:ke}),Sr);return on&&(Jr=Ne.createElement(un.Z,{onResize:function(ao){var po=ao.offsetWidth;br(po)},disabled:zn},Jr)),Jr}var tn=Ne.forwardRef(si);tn.displayName="Item";var Vi=tn;function Hr(Ce){var ke=Ne.useRef();ke.current=Ce;var _e=Ne.useCallback(function(){for(var Ye,kt=arguments.length,_t=new Array(kt),on=0;on<kt;on++)_t[on]=arguments[on];return(Ye=ke.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[ke].concat(_t))},[]);return _e}var Or=be(73935),wn=function(ke){return+setTimeout(ke,16)},or=function(ke){return clearTimeout(ke)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wn=function(ke){return window.requestAnimationFrame(ke)},or=function(ke){return window.cancelAnimationFrame(ke)});var Xo=0,Na=new Map;function aa(Ce){Na.delete(Ce)}var hr=function(ke){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xo+=1;var Ye=Xo;function kt(_t){if(_t===0)aa(Ye),ke();else{var on=wn(function(){kt(_t-1)});Na.set(Ye,on)}}return kt(_e),Ye};hr.cancel=function(Ce){var ke=Na.get(Ce);return aa(ke),or(ke)};var Nr=hr;function io(Ce){if(typeof MessageChannel=="undefined")Nr(Ce);else{var ke=new MessageChannel;ke.port1.onmessage=function(){return Ce()},ke.port2.postMessage(void 0)}}function va(){var Ce=Ne.useRef(null),ke=function(Ye){Ce.current||(Ce.current=[],io(function(){(0,Or.unstable_batchedUpdates)(function(){Ce.current.forEach(function(kt){kt()}),Ce.current=null})})),Ce.current.push(Ye)};return ke}function Ho(Ce,ke){var _e=Ne.useState(ke),Ye=Wt(_e,2),kt=Ye[0],_t=Ye[1],on=Hr(function(zn){Ce(function(){_t(zn)})});return[kt,on]}var vi=Ne.createContext(null),lo=["component"],al=["className"],el=["className"],Ns=function(ke,_e){var Ye=Ne.useContext(vi);if(!Ye){var kt=ke.component,_t=kt===void 0?"div":kt,on=Ft(ke,lo);return Ne.createElement(_t,da({},on,{ref:_e}))}var zn=Ye.className,yn=Ft(Ye,al),Fn=ke.className,qn=Ft(ke,el);return Ne.createElement(vi.Provider,{value:null},Ne.createElement(Vi,da({ref:_e,className:ut()(zn,Fn)},yn,qn)))},ln=Ne.forwardRef(Ns);ln.displayName="RawItem";var Yo=ln,Va=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ao="responsive",ms="invalidate";function Ba(Ce){return"+ ".concat(Ce.length," ...")}function $a(Ce,ke){var _e=Ce.prefixCls,Ye=_e===void 0?"rc-overflow":_e,kt=Ce.data,_t=kt===void 0?[]:kt,on=Ce.renderItem,zn=Ce.renderRawItem,yn=Ce.itemKey,Fn=Ce.itemWidth,qn=Fn===void 0?10:Fn,$n=Ce.ssr,Wi=Ce.style,xi=Ce.className,li=Ce.maxCount,Fi=Ce.renderRest,Zi=Ce.renderRawRest,ur=Ce.suffix,to=Ce.component,br=to===void 0?"div":to,Sr=Ce.itemComponent,wo=Ce.onVisibleChange,Mi=Ft(Ce,Va),Jr=$n==="full",mr=va(),ao=Ho(mr,null),po=Wt(ao,2),Ar=po[0],To=po[1],mo=Ar||0,zo=Ho(mr,new Map),Dr=Wt(zo,2),Co=Dr[0],ca=Dr[1],Da=Ho(mr,0),ga=Wt(Da,2),Qr=ga[0],Jo=ga[1],ua=Ho(mr,0),Ea=Wt(ua,2),es=Ea[0],ba=Ea[1],_o=Ho(mr,0),yo=Wt(_o,2),ta=yo[0],Ka=yo[1],Vo=(0,Ne.useState)(null),Zr=Wt(Vo,2),ho=Zr[0],fo=Zr[1],Mr=(0,Ne.useState)(null),Gr=Wt(Mr,2),Do=Gr[0],ye=Gr[1],Ie=Ne.useMemo(function(){return Do===null&&Jr?Number.MAX_SAFE_INTEGER:Do||0},[Do,Ar]),je=(0,Ne.useState)(!1),Ue=Wt(je,2),gt=Ue[0],Ht=Ue[1],$t="".concat(Ye,"-item"),an=Math.max(Qr,es),Tn=li===Ao,Un=_t.length&&Tn,Mn=li===ms,Ei=Un||typeof li=="number"&&_t.length>li,Ui=(0,Ne.useMemo)(function(){var Pi=_t;return Un?Ar===null&&Jr?Pi=_t:Pi=_t.slice(0,Math.min(_t.length,mo/qn)):typeof li=="number"&&(Pi=_t.slice(0,li)),Pi},[_t,qn,Ar,li,Un]),Ci=(0,Ne.useMemo)(function(){return Un?_t.slice(Ie+1):_t.slice(Ui.length)},[_t,Ui,Un,Ie]),Li=(0,Ne.useCallback)(function(Pi,qi){var Hi;return typeof yn=="function"?yn(Pi):(Hi=yn&&(Pi==null?void 0:Pi[yn]))!==null&&Hi!==void 0?Hi:qi},[yn]),Di=(0,Ne.useCallback)(on||function(Pi){return Pi},[on]);function Ni(Pi,qi,Hi){Do===Pi&&(qi===void 0||qi===ho)||(ye(Pi),Hi||(Ht(Pi<_t.length-1),wo==null||wo(Pi)),qi!==void 0&&fo(qi))}function bn(Pi,qi){To(qi.clientWidth)}function Yn(Pi,qi){ca(function(Hi){var Lr=new Map(Hi);return qi===null?Lr.delete(Pi):Lr.set(Pi,qi),Lr})}function ei(Pi,qi){ba(qi),Jo(es)}function pi(Pi,qi){Ka(qi)}function rr(Pi){return Co.get(Li(Ui[Pi],Pi))}Hn(function(){if(mo&&typeof an=="number"&&Ui){var Pi=ta,qi=Ui.length,Hi=qi-1;if(!qi){Ni(0,null);return}for(var Lr=0;Lr<qi;Lr+=1){var Eo=rr(Lr);if(Jr&&(Eo=Eo||0),Eo===void 0){Ni(Lr-1,void 0,!0);break}if(Pi+=Eo,Hi===0&&Pi<=mo||Lr===Hi-1&&Pi+rr(Hi)<=mo){Ni(Hi,null);break}else if(Pi+an>mo){Ni(Lr-1,Pi-Eo-ta+es);break}}ur&&rr(0)+ta>mo&&fo(null)}},[mo,Co,es,ta,Li,Ui]);var $i=gt&&!!Ci.length,sr={};ho!==null&&Un&&(sr={position:"absolute",left:ho,top:0});var At={prefixCls:$t,responsive:Un,component:Sr,invalidate:Mn},cr=zn?function(Pi,qi){var Hi=Li(Pi,qi);return Ne.createElement(vi.Provider,{key:Hi,value:hn(hn({},At),{},{order:qi,item:Pi,itemKey:Hi,registerSize:Yn,display:qi<=Ie})},zn(Pi,qi))}:function(Pi,qi){var Hi=Li(Pi,qi);return Ne.createElement(Vi,da({},At,{order:qi,key:Hi,item:Pi,renderItem:Di,itemKey:Hi,registerSize:Yn,display:qi<=Ie}))},Pr,Ir={order:$i?Ie:Number.MAX_SAFE_INTEGER,className:"".concat($t,"-rest"),registerSize:ei,display:$i};if(Zi)Zi&&(Pr=Ne.createElement(vi.Provider,{value:hn(hn({},At),Ir)},Zi(Ci)));else{var Oo=Fi||Ba;Pr=Ne.createElement(Vi,da({},At,Ir),typeof Oo=="function"?Oo(Ci):Oo)}var Ur=Ne.createElement(br,da({className:ut()(!Mn&&Ye,xi),style:Wi,ref:ke},Mi),Ui.map(cr),Ei?Pr:null,ur&&Ne.createElement(Vi,da({},At,{responsive:Tn,responsiveDisabled:!Un,order:Ie,className:"".concat($t,"-suffix"),registerSize:pi,display:!0,style:sr}),ur));return Tn&&(Ur=Ne.createElement(un.Z,{onResize:bn,disabled:!Un},Ur)),Ur}var Er=Ne.forwardRef($a);Er.displayName="Overflow",Er.Item=Yo,Er.RESPONSIVE=Ao,Er.INVALIDATE=ms;var uo=Er,So=uo,_n=function(ke,_e){var Ye,kt=ke.prefixCls,_t=ke.id,on=ke.inputElement,zn=ke.disabled,yn=ke.tabIndex,Fn=ke.autoFocus,qn=ke.autoComplete,$n=ke.editable,Wi=ke.activeDescendantId,xi=ke.value,li=ke.maxLength,Fi=ke.onKeyDown,Zi=ke.onMouseDown,ur=ke.onChange,to=ke.onPaste,br=ke.onCompositionStart,Sr=ke.onCompositionEnd,wo=ke.onBlur,Mi=ke.open,Jr=ke.attrs,mr=on||Ne.createElement("input",null),ao=mr,po=ao.ref,Ar=ao.props,To=Ar.onKeyDown,mo=Ar.onChange,zo=Ar.onMouseDown,Dr=Ar.onCompositionStart,Co=Ar.onCompositionEnd,ca=Ar.onBlur,Da=Ar.style;return"maxLength"in mr.props,mr=Ne.cloneElement(mr,Nt(Nt(Nt({type:"search"},Ar),{},{id:_t,ref:oi(_e,po),disabled:zn,tabIndex:yn,autoComplete:qn||"off",autoFocus:Fn,className:ut()("".concat(kt,"-selection-search-input"),(Ye=mr)===null||Ye===void 0||(Ye=Ye.props)===null||Ye===void 0?void 0:Ye.className),role:"combobox","aria-expanded":Mi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(_t,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(_t,"_list"),"aria-activedescendant":Mi?Wi:void 0},Jr),{},{value:$n?xi:"",maxLength:li,readOnly:!$n,unselectable:$n?null:"on",style:Nt(Nt({},Da),{},{opacity:$n?null:0}),onKeyDown:function(Qr){Fi(Qr),To&&To(Qr)},onMouseDown:function(Qr){Zi(Qr),zo&&zo(Qr)},onChange:function(Qr){ur(Qr),mo&&mo(Qr)},onCompositionStart:function(Qr){br(Qr),Dr&&Dr(Qr)},onCompositionEnd:function(Qr){Sr(Qr),Co&&Co(Qr)},onPaste:to,onBlur:function(Qr){wo(Qr),ca&&ca(Qr)}})),mr},ka=Ne.forwardRef(_n),An=ka;function Po(Ce){return Array.isArray(Ce)?Ce:Ce!==void 0?[Ce]:[]}var Ws=typeof window!="undefined"&&window.document&&window.document.documentElement,ds=Ws;function kl(Ce){return Ce!=null}function Ss(Ce){return!Ce&&Ce!==0}function Ua(Ce){return["string","number"].includes(rt(Ce))}function us(Ce){var ke=void 0;return Ce&&(Ua(Ce.title)?ke=Ce.title.toString():Ua(Ce.label)&&(ke=Ce.label.toString())),ke}function tl(Ce,ke){ds?Ne.useLayoutEffect(Ce,ke):Ne.useEffect(Ce,ke)}function ts(Ce){var ke;return(ke=Ce.key)!==null&&ke!==void 0?ke:Ce.value}var wr=function(ke){ke.preventDefault(),ke.stopPropagation()},at=function(ke){var _e=ke.id,Ye=ke.prefixCls,kt=ke.values,_t=ke.open,on=ke.searchValue,zn=ke.autoClearSearchValue,yn=ke.inputRef,Fn=ke.placeholder,qn=ke.disabled,$n=ke.mode,Wi=ke.showSearch,xi=ke.autoFocus,li=ke.autoComplete,Fi=ke.activeDescendantId,Zi=ke.tabIndex,ur=ke.removeIcon,to=ke.maxTagCount,br=ke.maxTagTextLength,Sr=ke.maxTagPlaceholder,wo=Sr===void 0?function(Mr){return"+ ".concat(Mr.length," ...")}:Sr,Mi=ke.tagRender,Jr=ke.onToggleOpen,mr=ke.onRemove,ao=ke.onInputChange,po=ke.onInputPaste,Ar=ke.onInputKeyDown,To=ke.onInputMouseDown,mo=ke.onInputCompositionStart,zo=ke.onInputCompositionEnd,Dr=ke.onInputBlur,Co=Ne.useRef(null),ca=(0,Ne.useState)(0),Da=vn(ca,2),ga=Da[0],Qr=Da[1],Jo=(0,Ne.useState)(!1),ua=vn(Jo,2),Ea=ua[0],es=ua[1],ba="".concat(Ye,"-selection"),_o=_t||$n==="multiple"&&zn===!1||$n==="tags"?on:"",yo=$n==="tags"||$n==="multiple"&&zn===!1||Wi&&(_t||Ea);tl(function(){Qr(Co.current.scrollWidth)},[_o]);var ta=function(Gr,Do,ye,Ie,je){return Ne.createElement("span",{title:us(Gr),className:ut()("".concat(ba,"-item"),yt({},"".concat(ba,"-item-disabled"),ye))},Ne.createElement("span",{className:"".concat(ba,"-item-content")},Do),Ie&&Ne.createElement(Br,{className:"".concat(ba,"-item-remove"),onMouseDown:wr,onClick:je,customizeIcon:ur},"\xD7"))},Ka=function(Gr,Do,ye,Ie,je,Ue){var gt=function($t){wr($t),Jr(!_t)};return Ne.createElement("span",{onMouseDown:gt},Mi({label:Do,value:Gr,disabled:ye,closable:Ie,onClose:je,isMaxTag:!!Ue}))},Vo=function(Gr){var Do=Gr.disabled,ye=Gr.label,Ie=Gr.value,je=!qn&&!Do,Ue=ye;if(typeof br=="number"&&(typeof ye=="string"||typeof ye=="number")){var gt=String(Ue);gt.length>br&&(Ue="".concat(gt.slice(0,br),"..."))}var Ht=function(an){an&&an.stopPropagation(),mr(Gr)};return typeof Mi=="function"?Ka(Ie,Ue,Do,je,Ht):ta(Gr,Ue,Do,je,Ht)},Zr=function(Gr){if(!kt.length)return null;var Do=typeof wo=="function"?wo(Gr):wo;return typeof Mi=="function"?Ka(void 0,Do,!1,!1,void 0,!0):ta({title:Do},Do,!1)},ho=Ne.createElement("div",{className:"".concat(ba,"-search"),style:{width:ga},onFocus:function(){es(!0)},onBlur:function(){es(!1)}},Ne.createElement(An,{ref:yn,open:_t,prefixCls:Ye,id:_e,inputElement:null,disabled:qn,autoFocus:xi,autoComplete:li,editable:yo,activeDescendantId:Fi,value:_o,onKeyDown:Ar,onMouseDown:To,onChange:ao,onPaste:po,onCompositionStart:mo,onCompositionEnd:zo,onBlur:Dr,tabIndex:Zi,attrs:Ha(ke,!0)}),Ne.createElement("span",{ref:Co,className:"".concat(ba,"-search-mirror"),"aria-hidden":!0},_o,"\xA0")),fo=Ne.createElement(So,{prefixCls:"".concat(ba,"-overflow"),data:kt,renderItem:Vo,renderRest:Zr,suffix:ho,itemKey:ts,maxCount:to});return Ne.createElement("span",{className:"".concat(ba,"-wrap")},fo,!kt.length&&!_o&&Ne.createElement("span",{className:"".concat(ba,"-placeholder")},Fn))},St=at,zt=function(ke){var _e=ke.inputElement,Ye=ke.prefixCls,kt=ke.id,_t=ke.inputRef,on=ke.disabled,zn=ke.autoFocus,yn=ke.autoComplete,Fn=ke.activeDescendantId,qn=ke.mode,$n=ke.open,Wi=ke.values,xi=ke.placeholder,li=ke.tabIndex,Fi=ke.showSearch,Zi=ke.searchValue,ur=ke.activeValue,to=ke.maxLength,br=ke.onInputKeyDown,Sr=ke.onInputMouseDown,wo=ke.onInputChange,Mi=ke.onInputPaste,Jr=ke.onInputCompositionStart,mr=ke.onInputCompositionEnd,ao=ke.onInputBlur,po=ke.title,Ar=Ne.useState(!1),To=vn(Ar,2),mo=To[0],zo=To[1],Dr=qn==="combobox",Co=Dr||Fi,ca=Wi[0],Da=Zi||"";Dr&&ur&&!mo&&(Da=ur),Ne.useEffect(function(){Dr&&zo(!1)},[Dr,ur]);var ga=qn!=="combobox"&&!$n&&!Fi?!1:!!Da,Qr=po===void 0?us(ca):po,Jo=Ne.useMemo(function(){return ca?null:Ne.createElement("span",{className:"".concat(Ye,"-selection-placeholder"),style:ga?{visibility:"hidden"}:void 0},xi)},[ca,ga,xi,Ye]);return Ne.createElement("span",{className:"".concat(Ye,"-selection-wrap")},Ne.createElement("span",{className:"".concat(Ye,"-selection-search")},Ne.createElement(An,{ref:_t,prefixCls:Ye,id:kt,open:$n,inputElement:_e,disabled:on,autoFocus:zn,autoComplete:yn,editable:Co,activeDescendantId:Fn,value:Da,onKeyDown:br,onMouseDown:Sr,onChange:function(Ea){zo(!0),wo(Ea)},onPaste:Mi,onCompositionStart:Jr,onCompositionEnd:mr,onBlur:ao,tabIndex:li,attrs:Ha(ke,!0),maxLength:Dr?to:void 0})),!Dr&&ca?Ne.createElement("span",{className:"".concat(Ye,"-selection-item"),title:Qr,style:ga?{visibility:"hidden"}:void 0},ca.label):null,Jo)},gn=zt,Kn=function(ke,_e){var Ye=(0,Ne.useRef)(null),kt=(0,Ne.useRef)(!1),_t=ke.prefixCls,on=ke.open,zn=ke.mode,yn=ke.showSearch,Fn=ke.tokenWithEnter,qn=ke.disabled,$n=ke.prefix,Wi=ke.autoClearSearchValue,xi=ke.onSearch,li=ke.onSearchSubmit,Fi=ke.onToggleOpen,Zi=ke.onInputKeyDown,ur=ke.onInputBlur,to=ke.domRef;Ne.useImperativeHandle(_e,function(){return{focus:function(Qr){Ye.current.focus(Qr)},blur:function(){Ye.current.blur()}}});var br=lr(0),Sr=vn(br,2),wo=Sr[0],Mi=Sr[1],Jr=function(Qr){var Jo=Qr.which,ua=Ye.current instanceof HTMLTextAreaElement;!ua&&on&&(Jo===Bi.UP||Jo===Bi.DOWN)&&Qr.preventDefault(),Zi&&Zi(Qr),Jo===Bi.ENTER&&zn==="tags"&&!kt.current&&!on&&(li==null||li(Qr.target.value)),!(ua&&!on&&~[Bi.UP,Bi.DOWN,Bi.LEFT,Bi.RIGHT].indexOf(Jo))&&ea(Jo)&&Fi(!0)},mr=function(){Mi(!0)},ao=(0,Ne.useRef)(null),po=function(Qr){xi(Qr,!0,kt.current)!==!1&&Fi(!0)},Ar=function(){kt.current=!0},To=function(Qr){kt.current=!1,zn!=="combobox"&&po(Qr.target.value)},mo=function(Qr){var Jo=Qr.target.value;if(Fn&&ao.current&&/[\r\n]/.test(ao.current)){var ua=ao.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Jo=Jo.replace(ua,ao.current)}ao.current=null,po(Jo)},zo=function(Qr){var Jo=Qr.clipboardData,ua=Jo==null?void 0:Jo.getData("text");ao.current=ua||""},Dr=function(Qr){var Jo=Qr.target;if(Jo!==Ye.current){var ua=document.body.style.msTouchAction!==void 0;ua?setTimeout(function(){Ye.current.focus()}):Ye.current.focus()}},Co=function(Qr){var Jo=wo();Qr.target!==Ye.current&&!Jo&&!(zn==="combobox"&&qn)&&Qr.preventDefault(),(zn!=="combobox"&&(!yn||!Jo)||!on)&&(on&&Wi!==!1&&xi("",!0,!1),Fi())},ca={inputRef:Ye,onInputKeyDown:Jr,onInputMouseDown:mr,onInputChange:mo,onInputPaste:zo,onInputCompositionStart:Ar,onInputCompositionEnd:To,onInputBlur:ur},Da=zn==="multiple"||zn==="tags"?Ne.createElement(St,me({},ke,ca)):Ne.createElement(gn,me({},ke,ca));return Ne.createElement("div",{ref:to,className:"".concat(_t,"-selector"),onClick:Dr,onMouseDown:Co},$n&&Ne.createElement("div",{className:"".concat(_t,"-prefix")},$n),Da)},Ii=Ne.forwardRef(Kn),Jt=Ii,Qn=be(98280),Qi=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],wi=function(ke){var _e=ke===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:_e,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:_e,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:_e,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:_e,adjustY:1},htmlRegion:"scroll"}}},nr=function(ke,_e){var Ye=ke.prefixCls,kt=ke.disabled,_t=ke.visible,on=ke.children,zn=ke.popupElement,yn=ke.animation,Fn=ke.transitionName,qn=ke.dropdownStyle,$n=ke.dropdownClassName,Wi=ke.direction,xi=Wi===void 0?"ltr":Wi,li=ke.placement,Fi=ke.builtinPlacements,Zi=ke.dropdownMatchSelectWidth,ur=ke.dropdownRender,to=ke.dropdownAlign,br=ke.getPopupContainer,Sr=ke.empty,wo=ke.getTriggerDOMNode,Mi=ke.onPopupVisibleChange,Jr=ke.onPopupMouseEnter,mr=Ge(ke,Qi),ao="".concat(Ye,"-dropdown"),po=zn;ur&&(po=ur(zn));var Ar=Ne.useMemo(function(){return Fi||wi(Zi)},[Fi,Zi]),To=yn?"".concat(ao,"-").concat(yn):Fn,mo=typeof Zi=="number",zo=Ne.useMemo(function(){return mo?null:Zi===!1?"minWidth":"width"},[Zi,mo]),Dr=qn;mo&&(Dr=Nt(Nt({},Dr),{},{width:Zi}));var Co=Ne.useRef(null);return Ne.useImperativeHandle(_e,function(){return{getPopupElement:function(){var Da;return(Da=Co.current)===null||Da===void 0?void 0:Da.popupElement}}}),Ne.createElement(Qn.Z,me({},mr,{showAction:Mi?["click"]:[],hideAction:Mi?["click"]:[],popupPlacement:li||(xi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ar,prefixCls:ao,popupTransitionName:To,popup:Ne.createElement("div",{onMouseEnter:Jr},po),ref:Co,stretch:zo,popupAlign:to,popupVisible:_t,getPopupContainer:br,popupClassName:ut()($n,yt({},"".concat(ao,"-empty"),Sr)),popupStyle:Dr,getTriggerDOMNode:wo,onPopupVisibleChange:Mi}),on)},Xi=Ne.forwardRef(nr),Si=Xi;function pr(Ce){return Bn(Ce)||Ke(Ce)||qe(Ce)||Qt()}function fn(Ce,ke){var _e=Ce.key,Ye;return"value"in Ce&&(Ye=Ce.value),_e!=null?_e:Ye!==void 0?Ye:"rc-index-key-".concat(ke)}function eo(Ce){return typeof Ce!="undefined"&&!Number.isNaN(Ce)}function so(Ce,ke){var _e=Ce||{},Ye=_e.label,kt=_e.value,_t=_e.options,on=_e.groupLabel,zn=Ye||(ke?"children":"label");return{label:zn,value:kt||"value",options:_t||"options",groupLabel:on||zn}}function ya(Ce){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=ke.fieldNames,Ye=ke.childrenAsData,kt=[],_t=so(_e,!1),on=_t.label,zn=_t.value,yn=_t.options,Fn=_t.groupLabel;function qn($n,Wi){Array.isArray($n)&&$n.forEach(function(xi){if(Wi||!(yn in xi)){var li=xi[zn];kt.push({key:fn(xi,kt.length),groupOption:Wi,data:xi,label:xi[on],value:li})}else{var Fi=xi[Fn];Fi===void 0&&Ye&&(Fi=xi.label),kt.push({key:fn(xi,kt.length),group:!0,data:xi,label:Fi}),qn(xi[yn],!0)}})}return qn(Ce,!1),kt}function fa(Ce){var ke=Nt({},Ce);return"props"in ke||Object.defineProperty(ke,"props",{get:function(){return $e(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ke}}),ke}var Ia=function(ke,_e,Ye){if(!_e||!_e.length)return null;var kt=!1,_t=function zn(yn,Fn){var qn=pr(Fn),$n=qn[0],Wi=qn.slice(1);if(!$n)return[yn];var xi=yn.split($n);return kt=kt||xi.length>1,xi.reduce(function(li,Fi){return[].concat(st(li),st(zn(Fi,Wi)))},[]).filter(Boolean)},on=_t(ke,_e);return kt?typeof Ye!="undefined"?on.slice(0,Ye):on:null},ns=Ne.createContext(null),Us=ns;function Ds(Ce){var ke=Ce.visible,_e=Ce.values;if(!ke)return null;var Ye=50;return Ne.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(_e.slice(0,Ye).map(function(kt){var _t=kt.label,on=kt.value;return["number","string"].includes(rt(_t))?_t:on}).join(", ")),_e.length>Ye?", ...":null)}var fl=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Hs=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],cn=function(ke){return ke==="tags"||ke==="multiple"},nl=Ne.forwardRef(function(Ce,ke){var _e,Ye=Ce.id,kt=Ce.prefixCls,_t=Ce.className,on=Ce.showSearch,zn=Ce.tagRender,yn=Ce.direction,Fn=Ce.omitDomProps,qn=Ce.displayValues,$n=Ce.onDisplayValuesChange,Wi=Ce.emptyOptions,xi=Ce.notFoundContent,li=xi===void 0?"Not Found":xi,Fi=Ce.onClear,Zi=Ce.mode,ur=Ce.disabled,to=Ce.loading,br=Ce.getInputElement,Sr=Ce.getRawInputElement,wo=Ce.open,Mi=Ce.defaultOpen,Jr=Ce.onDropdownVisibleChange,mr=Ce.activeValue,ao=Ce.onActiveValueChange,po=Ce.activeDescendantId,Ar=Ce.searchValue,To=Ce.autoClearSearchValue,mo=Ce.onSearch,zo=Ce.onSearchSplit,Dr=Ce.tokenSeparators,Co=Ce.allowClear,ca=Ce.prefix,Da=Ce.suffixIcon,ga=Ce.clearIcon,Qr=Ce.OptionList,Jo=Ce.animation,ua=Ce.transitionName,Ea=Ce.dropdownStyle,es=Ce.dropdownClassName,ba=Ce.dropdownMatchSelectWidth,_o=Ce.dropdownRender,yo=Ce.dropdownAlign,ta=Ce.placement,Ka=Ce.builtinPlacements,Vo=Ce.getPopupContainer,Zr=Ce.showAction,ho=Zr===void 0?[]:Zr,fo=Ce.onFocus,Mr=Ce.onBlur,Gr=Ce.onKeyUp,Do=Ce.onKeyDown,ye=Ce.onMouseDown,Ie=Ge(Ce,fl),je=cn(Zi),Ue=(on!==void 0?on:je)||Zi==="combobox",gt=Nt({},Ie);Hs.forEach(function(Uo){delete gt[Uo]}),Fn==null||Fn.forEach(function(Uo){delete gt[Uo]});var Ht=Ne.useState(!1),$t=vn(Ht,2),an=$t[0],Tn=$t[1];Ne.useEffect(function(){Tn(Vn())},[]);var Un=Ne.useRef(null),Mn=Ne.useRef(null),Ei=Ne.useRef(null),Ui=Ne.useRef(null),Ci=Ne.useRef(null),Li=Ne.useRef(!1),Di=Ki(),Ni=vn(Di,3),bn=Ni[0],Yn=Ni[1],ei=Ni[2];Ne.useImperativeHandle(ke,function(){var Uo,jr;return{focus:(Uo=Ui.current)===null||Uo===void 0?void 0:Uo.focus,blur:(jr=Ui.current)===null||jr===void 0?void 0:jr.blur,scrollTo:function(os){var vs;return(vs=Ci.current)===null||vs===void 0?void 0:vs.scrollTo(os)},nativeElement:Un.current||Mn.current}});var pi=Ne.useMemo(function(){var Uo;if(Zi!=="combobox")return Ar;var jr=(Uo=qn[0])===null||Uo===void 0?void 0:Uo.value;return typeof jr=="string"||typeof jr=="number"?String(jr):""},[Ar,Zi,qn]),rr=Zi==="combobox"&&typeof br=="function"&&br()||null,$i=typeof Sr=="function"&&Sr(),sr=mn(Mn,$i==null||(_e=$i.props)===null||_e===void 0?void 0:_e.ref),At=Ne.useState(!1),cr=vn(At,2),Pr=cr[0],Ir=cr[1];ai(function(){Ir(!0)},[]);var Oo=Ct(!1,{defaultValue:Mi,value:wo}),Ur=vn(Oo,2),Pi=Ur[0],qi=Ur[1],Hi=Pr?Pi:!1,Lr=!li&&Wi;(ur||Lr&&Hi&&Zi==="combobox")&&(Hi=!1);var Eo=Lr?!1:Hi,vr=Ne.useCallback(function(Uo){var jr=Uo!==void 0?Uo:!Hi;ur||(qi(jr),Hi!==jr&&(Jr==null||Jr(jr)))},[ur,Hi,qi,Jr]),qr=Ne.useMemo(function(){return(Dr||[]).some(function(Uo){return[`
`,`\r
`].includes(Uo)})},[Dr]),xr=Ne.useContext(Us)||{},fr=xr.maxCount,_r=xr.rawValues,Kr=function(jr,Wo,os){if(!(je&&eo(fr)&&(_r==null?void 0:_r.size)>=fr)){var vs=!0,Ps=jr;ao==null||ao(null);var bl=Ia(jr,Dr,eo(fr)?fr-_r.size:void 0),ul=os?null:bl;return Zi!=="combobox"&&ul&&(Ps="",zo==null||zo(ul),vr(!1),vs=!1),mo&&pi!==Ps&&mo(Ps,{source:Wo?"typing":"effect"}),vs}},Aa=function(jr){!jr||!jr.trim()||mo(jr,{source:"submit"})};Ne.useEffect(function(){!Hi&&!je&&Zi!=="combobox"&&Kr("",!1,!1)},[Hi]),Ne.useEffect(function(){Pi&&ur&&qi(!1),ur&&!Li.current&&Yn(!1)},[ur]);var Ya=lr(),bo=vn(Ya,2),co=bo[0],vo=bo[1],Qo=Ne.useRef(!1),xa=function(jr){var Wo=co(),os=jr.key,vs=os==="Enter";if(vs&&(Zi!=="combobox"&&jr.preventDefault(),Hi||vr(!0)),vo(!!pi),os==="Backspace"&&!Wo&&je&&!pi&&qn.length){for(var Ps=st(qn),bl=null,ul=Ps.length-1;ul>=0;ul-=1){var Nu=Ps[ul];if(!Nu.disabled){Ps.splice(ul,1),bl=Nu;break}}bl&&$n(Ps,{type:"remove",values:[bl]})}for(var Nl=arguments.length,bu=new Array(Nl>1?Nl-1:0),is=1;is<Nl;is++)bu[is-1]=arguments[is];if(Hi&&(!vs||!Qo.current)){var rl;vs&&(Qo.current=!0),(rl=Ci.current)===null||rl===void 0||rl.onKeyDown.apply(rl,[jr].concat(bu))}Do==null||Do.apply(void 0,[jr].concat(bu))},Oa=function(jr){for(var Wo=arguments.length,os=new Array(Wo>1?Wo-1:0),vs=1;vs<Wo;vs++)os[vs-1]=arguments[vs];if(Hi){var Ps;(Ps=Ci.current)===null||Ps===void 0||Ps.onKeyUp.apply(Ps,[jr].concat(os))}jr.key==="Enter"&&(Qo.current=!1),Gr==null||Gr.apply(void 0,[jr].concat(os))},no=function(jr){var Wo=qn.filter(function(os){return os!==jr});$n(Wo,{type:"remove",values:[jr]})},Rr=function(){Qo.current=!1},wa=Ne.useRef(!1),Pa=function(){Yn(!0),ur||(fo&&!wa.current&&fo.apply(void 0,arguments),ho.includes("focus")&&vr(!0)),wa.current=!0},gs=function(){Li.current=!0,Yn(!1,function(){wa.current=!1,Li.current=!1,vr(!1)}),!ur&&(pi&&(Zi==="tags"?mo(pi,{source:"submit"}):Zi==="multiple"&&mo("",{source:"blur"})),Mr&&Mr.apply(void 0,arguments))},Fa=[];Ne.useEffect(function(){return function(){Fa.forEach(function(Uo){return clearTimeout(Uo)}),Fa.splice(0,Fa.length)}},[]);var Ja=function(jr){var Wo,os=jr.target,vs=(Wo=Ei.current)===null||Wo===void 0?void 0:Wo.getPopupElement();if(vs&&vs.contains(os)){var Ps=setTimeout(function(){var Nl=Fa.indexOf(Ps);if(Nl!==-1&&Fa.splice(Nl,1),ei(),!an&&!vs.contains(document.activeElement)){var bu;(bu=Ui.current)===null||bu===void 0||bu.focus()}});Fa.push(Ps)}for(var bl=arguments.length,ul=new Array(bl>1?bl-1:0),Nu=1;Nu<bl;Nu++)ul[Nu-1]=arguments[Nu];ye==null||ye.apply(void 0,[jr].concat(ul))},Es=Ne.useState({}),Ma=vn(Es,2),Qa=Ma[1];function Ks(){Qa({})}var Xs;$i&&(Xs=function(jr){vr(jr)}),ar(function(){var Uo;return[Un.current,(Uo=Ei.current)===null||Uo===void 0?void 0:Uo.getPopupElement()]},Eo,vr,!!$i);var vl=Ne.useMemo(function(){return Nt(Nt({},Ce),{},{notFoundContent:li,open:Hi,triggerOpen:Eo,id:Ye,showSearch:Ue,multiple:je,toggleOpen:vr})},[Ce,li,Eo,Hi,Ye,Ue,je,vr]),hs=!!Da||to,Yl;hs&&(Yl=Ne.createElement(Br,{className:ut()("".concat(kt,"-arrow"),yt({},"".concat(kt,"-arrow-loading"),to)),customizeIcon:Da,customizeIconProps:{loading:to,searchValue:pi,open:Hi,focused:bn,showSearch:Ue}}));var Js=function(){var jr;Fi==null||Fi(),(jr=Ui.current)===null||jr===void 0||jr.focus(),$n([],{type:"clear",values:qn}),Kr("",!1,!1)},ws=Yi(kt,Js,qn,Co,ga,ur,pi,Zi),bs=ws.allowClear,Za=ws.clearIcon,Go=Ne.createElement(Qr,{ref:Ci}),yl=ut()(kt,_t,yt(yt(yt(yt(yt(yt(yt(yt(yt(yt({},"".concat(kt,"-focused"),bn),"".concat(kt,"-multiple"),je),"".concat(kt,"-single"),!je),"".concat(kt,"-allow-clear"),Co),"".concat(kt,"-show-arrow"),hs),"".concat(kt,"-disabled"),ur),"".concat(kt,"-loading"),to),"".concat(kt,"-open"),Hi),"".concat(kt,"-customize-input"),rr),"".concat(kt,"-show-search"),Ue)),pa=Ne.createElement(Si,{ref:Ei,disabled:ur,prefixCls:kt,visible:Eo,popupElement:Go,animation:Jo,transitionName:ua,dropdownStyle:Ea,dropdownClassName:es,direction:yn,dropdownMatchSelectWidth:ba,dropdownRender:_o,dropdownAlign:yo,placement:ta,builtinPlacements:Ka,getPopupContainer:Vo,empty:Wi,getTriggerDOMNode:function(jr){return Mn.current||jr},onPopupVisibleChange:Xs,onPopupMouseEnter:Ks},$i?Ne.cloneElement($i,{ref:sr}):Ne.createElement(Jt,me({},Ce,{domRef:Mn,prefixCls:kt,inputElement:rr,ref:Ui,id:Ye,prefix:ca,showSearch:Ue,autoClearSearchValue:To,mode:Zi,activeDescendantId:po,tagRender:zn,values:qn,open:Hi,onToggleOpen:vr,activeValue:mr,searchValue:pi,onSearch:Kr,onSearchSubmit:Aa,onRemove:no,tokenWithEnter:qr,onInputBlur:Rr}))),Lo;return $i?Lo=pa:Lo=Ne.createElement("div",me({className:yl},gt,{ref:Un,onMouseDown:Ja,onKeyDown:xa,onKeyUp:Oa,onFocus:Pa,onBlur:gs}),Ne.createElement(Ds,{visible:bn&&!Hi,values:qn}),pa,Yl,bs&&Za),Ne.createElement(ki.Provider,{value:vl},Lo)}),dl=nl,gl=function(){return null};gl.isSelectOptGroup=!0;var Ys=gl,Ul=function(){return null};Ul.isSelectOption=!0;var hu=Ul;function fc(Ce,ke){var _e=Nt({},Ce);return Array.isArray(ke)&&ke.forEach(function(Ye){delete _e[Ye]}),_e}var _s=be(73299);function il(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ra=["disabled","title","children","style","className"];function Xa(Ce){return typeof Ce=="string"||typeof Ce=="number"}var Is=function(ke,_e){var Ye=Xr(),kt=Ye.prefixCls,_t=Ye.id,on=Ye.open,zn=Ye.multiple,yn=Ye.mode,Fn=Ye.searchValue,qn=Ye.toggleOpen,$n=Ye.notFoundContent,Wi=Ye.onPopupScroll,xi=Ne.useContext(Us),li=xi.maxCount,Fi=xi.flattenOptions,Zi=xi.onActiveValue,ur=xi.defaultActiveFirstOption,to=xi.onSelect,br=xi.menuItemSelectedIcon,Sr=xi.rawValues,wo=xi.fieldNames,Mi=xi.virtual,Jr=xi.direction,mr=xi.listHeight,ao=xi.listItemHeight,po=xi.optionRender,Ar="".concat(kt,"-item"),To=Cn(function(){return Fi},[on,Fi],function(Zr,ho){return ho[0]&&Zr[1]!==ho[1]}),mo=Ne.useRef(null),zo=Ne.useMemo(function(){return zn&&eo(li)&&(Sr==null?void 0:Sr.size)>=li},[zn,li,Sr==null?void 0:Sr.size]),Dr=function(ho){ho.preventDefault()},Co=function(ho){var fo;(fo=mo.current)===null||fo===void 0||fo.scrollTo(typeof ho=="number"?{index:ho}:ho)},ca=Ne.useCallback(function(Zr){return yn==="combobox"?!1:Sr.has(Zr)},[yn,st(Sr).toString(),Sr.size]),Da=function(ho){for(var fo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Mr=To.length,Gr=0;Gr<Mr;Gr+=1){var Do=(ho+Gr*fo+Mr)%Mr,ye=To[Do]||{},Ie=ye.group,je=ye.data;if(!Ie&&!(je!=null&&je.disabled)&&(ca(je.value)||!zo))return Do}return-1},ga=Ne.useState(function(){return Da(0)}),Qr=vn(ga,2),Jo=Qr[0],ua=Qr[1],Ea=function(ho){var fo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ua(ho);var Mr={source:fo?"keyboard":"mouse"},Gr=To[ho];if(!Gr){Zi(null,-1,Mr);return}Zi(Gr.value,ho,Mr)};(0,Ne.useEffect)(function(){Ea(ur!==!1?Da(0):-1)},[To.length,Fn]);var es=Ne.useCallback(function(Zr){return yn==="combobox"?String(Zr).toLowerCase()===Fn.toLowerCase():Sr.has(Zr)},[yn,Fn,st(Sr).toString(),Sr.size]);(0,Ne.useEffect)(function(){var Zr=setTimeout(function(){if(!zn&&on&&Sr.size===1){var fo=Array.from(Sr)[0],Mr=To.findIndex(function(Gr){var Do=Gr.data;return Do.value===fo});Mr!==-1&&(Ea(Mr),Co(Mr))}});if(on){var ho;(ho=mo.current)===null||ho===void 0||ho.scrollTo(void 0)}return function(){return clearTimeout(Zr)}},[on,Fn]);var ba=function(ho){ho!==void 0&&to(ho,{selected:!Sr.has(ho)}),zn||qn(!1)};if(Ne.useImperativeHandle(_e,function(){return{onKeyDown:function(ho){var fo=ho.which,Mr=ho.ctrlKey;switch(fo){case Bi.N:case Bi.P:case Bi.UP:case Bi.DOWN:{var Gr=0;if(fo===Bi.UP?Gr=-1:fo===Bi.DOWN?Gr=1:il()&&Mr&&(fo===Bi.N?Gr=1:fo===Bi.P&&(Gr=-1)),Gr!==0){var Do=Da(Jo+Gr,Gr);Co(Do),Ea(Do,!0)}break}case Bi.TAB:case Bi.ENTER:{var ye,Ie=To[Jo];Ie&&!(Ie!=null&&(ye=Ie.data)!==null&&ye!==void 0&&ye.disabled)&&!zo?ba(Ie.value):ba(void 0),on&&ho.preventDefault();break}case Bi.ESC:qn(!1),on&&ho.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ho){Co(ho)}}}),To.length===0)return Ne.createElement("div",{role:"listbox",id:"".concat(_t,"_list"),className:"".concat(Ar,"-empty"),onMouseDown:Dr},$n);var _o=Object.keys(wo).map(function(Zr){return wo[Zr]}),yo=function(ho){return ho.label};function ta(Zr,ho){var fo=Zr.group;return{role:fo?"presentation":"option",id:"".concat(_t,"_list_").concat(ho)}}var Ka=function(ho){var fo=To[ho];if(!fo)return null;var Mr=fo.data||{},Gr=Mr.value,Do=fo.group,ye=Ha(Mr,!0),Ie=yo(fo);return fo?Ne.createElement("div",me({"aria-label":typeof Ie=="string"&&!Do?Ie:null},ye,{key:ho},ta(fo,ho),{"aria-selected":es(Gr)}),Gr):null},Vo={role:"listbox",id:"".concat(_t,"_list")};return Ne.createElement(Ne.Fragment,null,Mi&&Ne.createElement("div",me({},Vo,{style:{height:0,width:0,overflow:"hidden"}}),Ka(Jo-1),Ka(Jo),Ka(Jo+1)),Ne.createElement(_s.Z,{itemKey:"key",ref:mo,data:To,height:mr,itemHeight:ao,fullHeight:!1,onMouseDown:Dr,onScroll:Wi,virtual:Mi,direction:Jr,innerProps:Mi?null:Vo},function(Zr,ho){var fo=Zr.group,Mr=Zr.groupOption,Gr=Zr.data,Do=Zr.label,ye=Zr.value,Ie=Gr.key;if(fo){var je,Ue=(je=Gr.title)!==null&&je!==void 0?je:Xa(Do)?Do.toString():void 0;return Ne.createElement("div",{className:ut()(Ar,"".concat(Ar,"-group"),Gr.className),title:Ue},Do!==void 0?Do:Ie)}var gt=Gr.disabled,Ht=Gr.title,$t=Gr.children,an=Gr.style,Tn=Gr.className,Un=Ge(Gr,Ra),Mn=fc(Un,_o),Ei=ca(ye),Ui=gt||!Ei&&zo,Ci="".concat(Ar,"-option"),Li=ut()(Ar,Ci,Tn,yt(yt(yt(yt({},"".concat(Ci,"-grouped"),Mr),"".concat(Ci,"-active"),Jo===ho&&!Ui),"".concat(Ci,"-disabled"),Ui),"".concat(Ci,"-selected"),Ei)),Di=yo(Zr),Ni=!br||typeof br=="function"||Ei,bn=typeof Di=="number"?Di:Di||ye,Yn=Xa(bn)?bn.toString():void 0;return Ht!==void 0&&(Yn=Ht),Ne.createElement("div",me({},Ha(Mn),Mi?{}:ta(Zr,ho),{"aria-selected":es(ye),className:Li,title:Yn,onMouseMove:function(){Jo===ho||Ui||Ea(ho)},onClick:function(){Ui||ba(ye)},style:an}),Ne.createElement("div",{className:"".concat(Ci,"-content")},typeof po=="function"?po(Zr,{index:ho}):bn),Ne.isValidElement(br)||Ei,Ni&&Ne.createElement(Br,{className:"".concat(Ar,"-option-state"),customizeIcon:br,customizeIconProps:{value:ye,disabled:Ui,isSelected:Ei}},Ei?"\u2713":null))}))},pl=Ne.forwardRef(Is),Mo=pl,$u=function(Ce,ke){var _e=Ne.useRef({values:new Map,options:new Map}),Ye=Ne.useMemo(function(){var _t=_e.current,on=_t.values,zn=_t.options,yn=Ce.map(function($n){if($n.label===void 0){var Wi;return Nt(Nt({},$n),{},{label:(Wi=on.get($n.value))===null||Wi===void 0?void 0:Wi.label})}return $n}),Fn=new Map,qn=new Map;return yn.forEach(function($n){Fn.set($n.value,$n),qn.set($n.value,ke.get($n.value)||zn.get($n.value))}),_e.current.values=Fn,_e.current.options=qn,yn},[Ce,ke]),kt=Ne.useCallback(function(_t){return ke.get(_t)||_e.current.options.get(_t)},[ke]);return[Ye,kt]};function Pu(Ce,ke){return Po(Ce).join("").toUpperCase().includes(ke)}var $l=function(Ce,ke,_e,Ye,kt){return Ne.useMemo(function(){if(!_e||Ye===!1)return Ce;var _t=ke.options,on=ke.label,zn=ke.value,yn=[],Fn=typeof Ye=="function",qn=_e.toUpperCase(),$n=Fn?Ye:function(xi,li){return kt?Pu(li[kt],qn):li[_t]?Pu(li[on!=="children"?on:"label"],qn):Pu(li[zn],qn)},Wi=Fn?function(xi){return fa(xi)}:function(xi){return xi};return Ce.forEach(function(xi){if(xi[_t]){var li=$n(_e,Wi(xi));if(li)yn.push(xi);else{var Fi=xi[_t].filter(function(Zi){return $n(_e,Wi(Zi))});Fi.length&&yn.push(Nt(Nt({},xi),{},yt({},_t,Fi)))}return}$n(_e,Wi(xi))&&yn.push(xi)}),yn},[Ce,Ye,kt,_e,ke])},ou=0,gc=Xn();function kr(){var Ce;return gc?(Ce=ou,ou+=1):Ce="TEST_OR_SSR",Ce}function hl(Ce){var ke=Ne.useState(),_e=vn(ke,2),Ye=_e[0],kt=_e[1];return Ne.useEffect(function(){kt("rc_select_".concat(kr()))},[]),Ce||Ye}function Rs(Ce){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=[];return Ne.Children.forEach(Ce,function(Ye){Ye==null&&!ke.keepEmpty||(Array.isArray(Ye)?_e=_e.concat(Rs(Ye)):(0,In.isFragment)(Ye)&&Ye.props?_e=_e.concat(Rs(Ye.props.children,ke)):_e.push(Ye))}),_e}var Bu=["children","value"],zu=["children"];function Ou(Ce){var ke=Ce,_e=ke.key,Ye=ke.props,kt=Ye.children,_t=Ye.value,on=Ge(Ye,Bu);return Nt({key:_e,value:_t!==void 0?_t:_e,children:kt},on)}function Sa(Ce){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rs(Ce).map(function(_e,Ye){if(!Ne.isValidElement(_e)||!_e.type)return null;var kt=_e,_t=kt.type.isSelectOptGroup,on=kt.key,zn=kt.props,yn=zn.children,Fn=Ge(zn,zu);return ke||!_t?Ou(_e):Nt(Nt({key:"__RC_SELECT_GRP__".concat(on===null?Ye:on,"__"),label:on},Fn),{},{options:Sa(yn)})}).filter(function(_e){return _e})}var Lu=function(ke,_e,Ye,kt,_t){return Ne.useMemo(function(){var on=ke,zn=!ke;zn&&(on=Sa(_e));var yn=new Map,Fn=new Map,qn=function(xi,li,Fi){Fi&&typeof Fi=="string"&&xi.set(li[Fi],li)},$n=function Wi(xi){for(var li=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fi=0;Fi<xi.length;Fi+=1){var Zi=xi[Fi];!Zi[Ye.options]||li?(yn.set(Zi[Ye.value],Zi),qn(Fn,Zi,Ye.label),qn(Fn,Zi,kt),qn(Fn,Zi,_t)):Wi(Zi[Ye.options],!0)}};return $n(on),{options:on,valueOptions:yn,labelOptions:Fn}},[ke,_e,Ye,kt,_t])},Fl=Lu;function Il(Ce){var ke=Ne.useRef();ke.current=Ce;var _e=Ne.useCallback(function(){return ke.current.apply(ke,arguments)},[]);return _e}function eu(Ce){var ke=Ce.mode,_e=Ce.options,Ye=Ce.children,kt=Ce.backfill,_t=Ce.allowClear,on=Ce.placeholder,zn=Ce.getInputElement,yn=Ce.showSearch,Fn=Ce.onSearch,qn=Ce.defaultOpen,$n=Ce.autoFocus,Wi=Ce.labelInValue,xi=Ce.value,li=Ce.inputValue,Fi=Ce.optionLabelProp,Zi=isMultiple(ke),ur=yn!==void 0?yn:Zi||ke==="combobox",to=_e||convertChildrenToData(Ye);if(warning(ke!=="tags"||to.every(function(Mi){return!Mi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ke==="tags"||ke==="combobox"){var br=to.some(function(Mi){return Mi.options?Mi.options.some(function(Jr){return typeof("value"in Jr?Jr.value:Jr.key)=="number"}):typeof("value"in Mi?Mi.value:Mi.key)=="number"});warning(!br,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ke!=="combobox"||!Fi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ke==="combobox"||!kt,"`backfill` only works with `combobox` mode."),warning(ke==="combobox"||!zn,"`getInputElement` only work with `combobox` mode."),noteOnce(ke!=="combobox"||!zn||!_t||!on,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Fn&&!ur&&ke!=="combobox"&&ke!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!qn||$n,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),xi!=null){var Sr=toArray(xi);warning(!Wi||Sr.every(function(Mi){return _typeof(Mi)==="object"&&("key"in Mi||"value"in Mi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Zi||Array.isArray(xi),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ye){var wo=null;toNodeArray(Ye).some(function(Mi){if(!React.isValidElement(Mi)||!Mi.type)return!1;var Jr=Mi,mr=Jr.type;if(mr.isSelectOption)return!1;if(mr.isSelectOptGroup){var ao=toNodeArray(Mi.props.children).every(function(po){return!React.isValidElement(po)||!Mi.type||po.type.isSelectOption?!0:(wo=po.type,!1)});return!ao}return wo=mr,!0}),wo&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(wo.displayName||wo.name||wo,"`.")),warning(li===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Cc(Ce,ke){if(Ce){var _e=function Ye(kt){for(var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<kt.length;on++){var zn=kt[on];if(zn[ke==null?void 0:ke.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!_t&&Array.isArray(zn[ke==null?void 0:ke.options])&&Ye(zn[ke==null?void 0:ke.options],!0))break}};_e(Ce)}}var du=null,Ol=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Cu=["inputValue"];function Wc(Ce){return!Ce||rt(Ce)!=="object"}var ah=Ne.forwardRef(function(Ce,ke){var _e=Ce.id,Ye=Ce.mode,kt=Ce.prefixCls,_t=kt===void 0?"rc-select":kt,on=Ce.backfill,zn=Ce.fieldNames,yn=Ce.inputValue,Fn=Ce.searchValue,qn=Ce.onSearch,$n=Ce.autoClearSearchValue,Wi=$n===void 0?!0:$n,xi=Ce.onSelect,li=Ce.onDeselect,Fi=Ce.dropdownMatchSelectWidth,Zi=Fi===void 0?!0:Fi,ur=Ce.filterOption,to=Ce.filterSort,br=Ce.optionFilterProp,Sr=Ce.optionLabelProp,wo=Ce.options,Mi=Ce.optionRender,Jr=Ce.children,mr=Ce.defaultActiveFirstOption,ao=Ce.menuItemSelectedIcon,po=Ce.virtual,Ar=Ce.direction,To=Ce.listHeight,mo=To===void 0?200:To,zo=Ce.listItemHeight,Dr=zo===void 0?20:zo,Co=Ce.labelRender,ca=Ce.value,Da=Ce.defaultValue,ga=Ce.labelInValue,Qr=Ce.onChange,Jo=Ce.maxCount,ua=Ge(Ce,Ol),Ea=hl(_e),es=cn(Ye),ba=!!(!wo&&Jr),_o=Ne.useMemo(function(){return ur===void 0&&Ye==="combobox"?!1:ur},[ur,Ye]),yo=Ne.useMemo(function(){return so(zn,ba)},[JSON.stringify(zn),ba]),ta=Ct("",{value:Fn!==void 0?Fn:yn,postState:function(qr){return qr||""}}),Ka=vn(ta,2),Vo=Ka[0],Zr=Ka[1],ho=Fl(wo,Jr,yo,br,Sr),fo=ho.valueOptions,Mr=ho.labelOptions,Gr=ho.options,Do=Ne.useCallback(function(vr){var qr=Po(vr);return qr.map(function(xr){var fr,_r,Kr,Aa,Ya;if(Wc(xr))fr=xr;else{var bo;Kr=xr.key,_r=xr.label,fr=(bo=xr.value)!==null&&bo!==void 0?bo:Kr}var co=fo.get(fr);if(co){var vo;if(_r===void 0&&(_r=co==null?void 0:co[Sr||yo.label]),Kr===void 0&&(Kr=(vo=co==null?void 0:co.key)!==null&&vo!==void 0?vo:fr),Aa=co==null?void 0:co.disabled,Ya=co==null?void 0:co.title,0)var Qo}return{label:_r,value:fr,key:Kr,disabled:Aa,title:Ya}})},[yo,Sr,fo]),ye=Ct(Da,{value:ca}),Ie=vn(ye,2),je=Ie[0],Ue=Ie[1],gt=Ne.useMemo(function(){var vr,qr=es&&je===null?[]:je,xr=Do(qr);return Ye==="combobox"&&Ss((vr=xr[0])===null||vr===void 0?void 0:vr.value)?[]:xr},[je,Do,Ye,es]),Ht=$u(gt,fo),$t=vn(Ht,2),an=$t[0],Tn=$t[1],Un=Ne.useMemo(function(){if(!Ye&&an.length===1){var vr=an[0];if(vr.value===null&&(vr.label===null||vr.label===void 0))return[]}return an.map(function(qr){var xr;return Nt(Nt({},qr),{},{label:(xr=typeof Co=="function"?Co(qr):qr.label)!==null&&xr!==void 0?xr:qr.value})})},[Ye,an,Co]),Mn=Ne.useMemo(function(){return new Set(an.map(function(vr){return vr.value}))},[an]);Ne.useEffect(function(){if(Ye==="combobox"){var vr,qr=(vr=an[0])===null||vr===void 0?void 0:vr.value;Zr(kl(qr)?String(qr):"")}},[an]);var Ei=Il(function(vr,qr){var xr=qr!=null?qr:vr;return yt(yt({},yo.value,vr),yo.label,xr)}),Ui=Ne.useMemo(function(){if(Ye!=="tags")return Gr;var vr=st(Gr),qr=function(fr){return fo.has(fr)};return st(an).sort(function(xr,fr){return xr.value<fr.value?-1:1}).forEach(function(xr){var fr=xr.value;qr(fr)||vr.push(Ei(fr,xr.label))}),vr},[Ei,Gr,fo,an,Ye]),Ci=$l(Ui,yo,Vo,_o,br),Li=Ne.useMemo(function(){return Ye!=="tags"||!Vo||Ci.some(function(vr){return vr[br||"value"]===Vo})||Ci.some(function(vr){return vr[yo.value]===Vo})?Ci:[Ei(Vo)].concat(st(Ci))},[Ei,br,Ye,Ci,Vo,yo]),Di=function vr(qr){var xr=st(qr).sort(function(fr,_r){return to(fr,_r,{searchValue:Vo})});return xr.map(function(fr){return Array.isArray(fr.options)?Nt(Nt({},fr),{},{options:fr.options.length>0?vr(fr.options):fr.options}):fr})},Ni=Ne.useMemo(function(){return to?Di(Li):Li},[Li,to,Vo]),bn=Ne.useMemo(function(){return ya(Ni,{fieldNames:yo,childrenAsData:ba})},[Ni,yo,ba]),Yn=function(qr){var xr=Do(qr);if(Ue(xr),Qr&&(xr.length!==an.length||xr.some(function(Kr,Aa){var Ya;return((Ya=an[Aa])===null||Ya===void 0?void 0:Ya.value)!==(Kr==null?void 0:Kr.value)}))){var fr=ga?xr:xr.map(function(Kr){return Kr.value}),_r=xr.map(function(Kr){return fa(Tn(Kr.value))});Qr(es?fr:fr[0],es?_r:_r[0])}},ei=Ne.useState(null),pi=vn(ei,2),rr=pi[0],$i=pi[1],sr=Ne.useState(0),At=vn(sr,2),cr=At[0],Pr=At[1],Ir=mr!==void 0?mr:Ye!=="combobox",Oo=Ne.useCallback(function(vr,qr){var xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fr=xr.source,_r=fr===void 0?"keyboard":fr;Pr(qr),on&&Ye==="combobox"&&vr!==null&&_r==="keyboard"&&$i(String(vr))},[on,Ye]),Ur=function(qr,xr,fr){var _r=function(){var no,Rr=Tn(qr);return[ga?{label:Rr==null?void 0:Rr[yo.label],value:qr,key:(no=Rr==null?void 0:Rr.key)!==null&&no!==void 0?no:qr}:qr,fa(Rr)]};if(xr&&xi){var Kr=_r(),Aa=vn(Kr,2),Ya=Aa[0],bo=Aa[1];xi(Ya,bo)}else if(!xr&&li&&fr!=="clear"){var co=_r(),vo=vn(co,2),Qo=vo[0],xa=vo[1];li(Qo,xa)}},Pi=Il(function(vr,qr){var xr,fr=es?qr.selected:!0;fr?xr=es?[].concat(st(an),[vr]):[vr]:xr=an.filter(function(_r){return _r.value!==vr}),Yn(xr),Ur(vr,fr),Ye==="combobox"?$i(""):(!cn||Wi)&&(Zr(""),$i(""))}),qi=function(qr,xr){Yn(qr);var fr=xr.type,_r=xr.values;(fr==="remove"||fr==="clear")&&_r.forEach(function(Kr){Ur(Kr.value,!1,fr)})},Hi=function(qr,xr){if(Zr(qr),$i(null),xr.source==="submit"){var fr=(qr||"").trim();if(fr){var _r=Array.from(new Set([].concat(st(Mn),[fr])));Yn(_r),Ur(fr,!0),Zr("")}return}xr.source!=="blur"&&(Ye==="combobox"&&Yn(qr),qn==null||qn(qr))},Lr=function(qr){var xr=qr;Ye!=="tags"&&(xr=qr.map(function(_r){var Kr=Mr.get(_r);return Kr==null?void 0:Kr.value}).filter(function(_r){return _r!==void 0}));var fr=Array.from(new Set([].concat(st(Mn),st(xr))));Yn(fr),fr.forEach(function(_r){Ur(_r,!0)})},Eo=Ne.useMemo(function(){var vr=po!==!1&&Zi!==!1;return Nt(Nt({},ho),{},{flattenOptions:bn,onActiveValue:Oo,defaultActiveFirstOption:Ir,onSelect:Pi,menuItemSelectedIcon:ao,rawValues:Mn,fieldNames:yo,virtual:vr,direction:Ar,listHeight:mo,listItemHeight:Dr,childrenAsData:ba,maxCount:Jo,optionRender:Mi})},[Jo,ho,bn,Oo,Ir,Pi,ao,Mn,yo,po,Zi,Ar,mo,Dr,ba,Mi]);return Ne.createElement(Us.Provider,{value:Eo},Ne.createElement(dl,me({},ua,{id:Ea,prefixCls:_t,ref:ke,omitDomProps:Cu,mode:Ye,displayValues:Un,onDisplayValuesChange:qi,direction:Ar,searchValue:Vo,onSearch:Hi,autoClearSearchValue:Wi,onSearchSplit:Lr,dropdownMatchSelectWidth:Zi,OptionList:Mo,emptyOptions:!bn.length,activeValue:rr,activeDescendantId:"".concat(Ea,"_list_").concat(cr)})))}),Hc=ah;Hc.Option=hu,Hc.OptGroup=Ys;var Yh=null,Wu=null;function El(Ce){var ke=Ne.useRef();ke.current=Ce;var _e=Ne.useCallback(function(){for(var Ye,kt=arguments.length,_t=new Array(kt),on=0;on<kt;on++)_t[on]=arguments[on];return(Ye=ke.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[ke].concat(_t))},[]);return _e}function Hu(Ce){if(Array.isArray(Ce))return Ce}function Iu(Ce,ke){var _e=Ce==null?null:typeof Symbol!="undefined"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(_e!=null){var Ye,kt,_t,on,zn=[],yn=!0,Fn=!1;try{if(_t=(_e=_e.call(Ce)).next,ke===0){if(Object(_e)!==_e)return;yn=!1}else for(;!(yn=(Ye=_t.call(_e)).done)&&(zn.push(Ye.value),zn.length!==ke);yn=!0);}catch(qn){Fn=!0,kt=qn}finally{try{if(!yn&&_e.return!=null&&(on=_e.return(),Object(on)!==on))return}finally{if(Fn)throw kt}}return zn}}function ku(Ce,ke){(ke==null||ke>Ce.length)&&(ke=Ce.length);for(var _e=0,Ye=new Array(ke);_e<ke;_e++)Ye[_e]=Ce[_e];return Ye}function Jc(Ce,ke){if(Ce){if(typeof Ce=="string")return ku(Ce,ke);var _e=Object.prototype.toString.call(Ce).slice(8,-1);if(_e==="Object"&&Ce.constructor&&(_e=Ce.constructor.name),_e==="Map"||_e==="Set")return Array.from(Ce);if(_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return ku(Ce,ke)}}function Sh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ml(Ce,ke){return Hu(Ce)||Iu(Ce,ke)||Jc(Ce,ke)||Sh()}function sh(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var lh=sh()?Ne.useLayoutEffect:Ne.useEffect,Nc=function(ke,_e){var Ye=Ne.useRef(!0);lh(function(){return ke(Ye.current)},_e),lh(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},Ec=function(ke,_e){Nc(function(Ye){if(!Ye)return ke()},_e)},tu=null;function Vl(Ce){var ke=Ne.useRef(!1),_e=Ne.useState(Ce),Ye=ml(_e,2),kt=Ye[0],_t=Ye[1];Ne.useEffect(function(){return ke.current=!1,function(){ke.current=!0}},[]);function on(zn,yn){yn&&ke.current||_t(zn)}return[kt,on]}function xl(Ce){return Ce!==void 0}function Ts(Ce,ke){var _e=ke||{},Ye=_e.defaultValue,kt=_e.value,_t=_e.onChange,on=_e.postState,zn=Vl(function(){return xl(kt)?kt:xl(Ye)?typeof Ye=="function"?Ye():Ye:typeof Ce=="function"?Ce():Ce}),yn=ml(zn,2),Fn=yn[0],qn=yn[1],$n=kt!==void 0?kt:Fn,Wi=on?on($n):$n,xi=El(_t),li=Vl([$n]),Fi=ml(li,2),Zi=Fi[0],ur=Fi[1];Ec(function(){var br=Zi[0];Fn!==br&&xi(Fn,br)},[Zi]),Ec(function(){xl(kt)||qn(kt)},[kt]);var to=El(function(br,Sr){qn(br,Sr),ur([$n],Sr)});return[Wi,to]}var nu=Ne.createContext({}),ol=nu,Vs="__rc_cascader_search_mark__",Wl=function(ke,_e,Ye){var kt=Ye.label,_t=kt===void 0?"":kt;return _e.some(function(on){return String(on[_t]).toLowerCase().includes(ke.toLowerCase())})},fu=function(ke,_e,Ye,kt){return _e.map(function(_t){return _t[kt.label]}).join(" / ")},Ru=function(ke,_e,Ye,kt,_t,on){var zn=_t.filter,yn=zn===void 0?Wl:zn,Fn=_t.render,qn=Fn===void 0?fu:Fn,$n=_t.limit,Wi=$n===void 0?50:$n,xi=_t.sort;return Ne.useMemo(function(){var li=[];if(!ke)return[];function Fi(Zi,ur){var to=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Zi.forEach(function(br){if(!(!xi&&Wi!==!1&&Wi>0&&li.length>=Wi)){var Sr=[].concat(He(ur),[br]),wo=br[Ye.children],Mi=to||br.disabled;if((!wo||wo.length===0||on)&&yn(ke,Sr,{label:Ye.label})){var Jr;li.push(Je(Je({},br),{},(Jr={disabled:Mi},Bt(Jr,Ye.label,qn(ke,Sr,kt,Ye)),Bt(Jr,Vs,Sr),Bt(Jr,Ye.children,void 0),Jr)))}wo&&Fi(br[Ye.children],Sr,Mi)}})}return Fi(_e,[]),xi&&li.sort(function(Zi,ur){return xi(Zi[Vs],ur[Vs],ke,Ye)}),Wi!==!1&&Wi>0?li.slice(0,Wi):li},[ke,_e,Ye,kt,qn,on,yn,xi,Wi])},Fo=Ru,gu="__RC_CASCADER_SPLIT__",Rt="SHOW_PARENT",fi="SHOW_CHILD";function Kl(Ce){return Ce.join(gu)}function Yu(Ce){return Ce.map(Kl)}function ec(Ce){return Ce.split(gu)}function pu(Ce){var ke=Ce||{},_e=ke.label,Ye=ke.value,kt=ke.children,_t=Ye||"value";return{label:_e||"label",value:_t,key:_t,children:kt||"children"}}function Eu(Ce,ke){var _e,Ye;return(_e=Ce.isLeaf)!==null&&_e!==void 0?_e:!((Ye=Ce[ke.children])!==null&&Ye!==void 0&&Ye.length)}function pc(Ce){var ke=Ce.parentElement;if(ke){var _e=Ce.offsetTop-ke.offsetTop;_e-ke.scrollTop<0?ke.scrollTo({top:_e}):_e+Ce.offsetHeight-ke.scrollTop>ke.offsetHeight&&ke.scrollTo({top:_e+Ce.offsetHeight-ke.offsetHeight})}}function mc(Ce,ke){return Ce.map(function(_e){var Ye;return(Ye=_e[Vs])===null||Ye===void 0?void 0:Ye.map(function(kt){return kt[ke.value]})})}function wl(Ce){return Array.isArray(Ce)&&Array.isArray(Ce[0])}function Ca(Ce){return Ce?wl(Ce)?Ce:(Ce.length===0?[]:[Ce]).map(function(ke){return Array.isArray(ke)?ke:[ke]}):[]}function mu(Ce,ke,_e){var Ye=new Set(Ce),kt=ke();return Ce.filter(function(_t){var on=kt[_t],zn=on?on.parent:null,yn=on?on.children:null;return on&&on.node.disabled?!0:_e===fi?!(yn&&yn.some(function(Fn){return Fn.key&&Ye.has(Fn.key)})):!(zn&&!zn.node.disabled&&Ye.has(zn.key))})}function au(Ce,ke,_e){for(var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,kt=ke,_t=[],on=function(){var Fn,qn,$n,Wi=Ce[zn],xi=(Fn=kt)===null||Fn===void 0?void 0:Fn.findIndex(function(Fi){var Zi=Fi[_e.value];return Ye?String(Zi)===String(Wi):Zi===Wi}),li=xi!==-1?(qn=kt)===null||qn===void 0?void 0:qn[xi]:null;_t.push({value:($n=li==null?void 0:li[_e.value])!==null&&$n!==void 0?$n:Wi,index:xi,option:li}),kt=li==null?void 0:li[_e.children]},zn=0;zn<Ce.length;zn+=1)on();return _t}var ll=function(Ce,ke,_e,Ye,kt){return Ne.useMemo(function(){var _t=kt||function(on){var zn=Ye?on.slice(-1):on,yn=" / ";return zn.every(function(Fn){return["string","number"].includes(tt(Fn))})?zn.join(yn):zn.reduce(function(Fn,qn,$n){var Wi=Ne.isValidElement(qn)?Ne.cloneElement(qn,{key:$n}):qn;return $n===0?[Wi]:[].concat(He(Fn),[yn,Wi])},[])};return Ce.map(function(on){var zn,yn=au(on,ke,_e),Fn=_t(yn.map(function($n){var Wi,xi=$n.option,li=$n.value;return(Wi=xi==null?void 0:xi[_e.label])!==null&&Wi!==void 0?Wi:li}),yn.map(function($n){var Wi=$n.option;return Wi})),qn=Kl(on);return{label:Fn,value:qn,key:qn,valueCells:on,disabled:(zn=yn[yn.length-1])===null||zn===void 0||(zn=zn.option)===null||zn===void 0?void 0:zn.disabled}})},[Ce,ke,_e,kt,Ye])};function fs(Ce,ke){return Ne.useCallback(function(_e){var Ye=[],kt=[];return _e.forEach(function(_t){var on=au(_t,Ce,ke);on.every(function(zn){return zn.option})?kt.push(_t):Ye.push(_t)}),[kt,Ye]},[Ce,ke])}var Ml=be(1089),Fu=function(Ce,ke){var _e=Ne.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Ye=Ne.useCallback(function(){return _e.current.options!==Ce&&(_e.current.options=Ce,_e.current.info=(0,Ml.I8)(Ce,{fieldNames:ke,initWrapper:function(_t){return Je(Je({},_t),{},{pathKeyEntities:{}})},processEntity:function(_t,on){var zn=_t.nodes.map(function(yn){return yn[ke.value]}).join(gu);on.pathKeyEntities[zn]=_t,_t.key=zn}})),_e.current.info.pathKeyEntities},[ke,Ce]);return Ye};function sl(Ce,ke){var _e=Ne.useMemo(function(){return ke||[]},[ke]),Ye=Fu(_e,Ce),kt=Ne.useCallback(function(_t){var on=Ye();return _t.map(function(zn){var yn=on[zn].nodes;return yn.map(function(Fn){return Fn[Ce.value]})})},[Ye,Ce]);return[_e,Ye,kt]}var su={},Gl=[],tc=function(ke){Gl.push(ke)};function Bs(Ce,ke){if(0)var _e}function vu(Ce,ke){if(0)var _e}function As(){su={}}function Ms(Ce,ke,_e){!ke&&!su[_e]&&(Ce(!1,_e),su[_e]=!0)}function Zs(Ce,ke){Ms(Bs,Ce,ke)}function Pl(Ce,ke){Ms(vu,Ce,ke)}Zs.preMessage=tc,Zs.resetWarned=As,Zs.noteOnce=Pl;var js=null;function _c(Ce){return Ne.useMemo(function(){if(!Ce)return[!1,{}];var ke={matchInputWidth:!0,limit:50};return Ce&&tt(Ce)==="object"&&(ke=Je(Je({},ke),Ce)),ke.limit<=0&&(ke.limit=!1),[!0,ke]},[Ce])}var Vr=be(17341);function ju(Ce,ke,_e,Ye,kt,_t,on,zn){return function(yn){if(!Ce)ke(yn);else{var Fn=Kl(yn),qn=Yu(_e),$n=Yu(Ye),Wi=qn.includes(Fn),xi=kt.some(function(Mi){return Kl(Mi)===Fn}),li=_e,Fi=kt;if(xi&&!Wi)Fi=kt.filter(function(Mi){return Kl(Mi)!==Fn});else{var Zi=Wi?qn.filter(function(Mi){return Mi!==Fn}):[].concat(He(qn),[Fn]),ur=_t(),to;if(Wi){var br=(0,Vr.S)(Zi,{checked:!1,halfCheckedKeys:$n},ur);to=br.checkedKeys}else{var Sr=(0,Vr.S)(Zi,!0,ur);to=Sr.checkedKeys}var wo=mu(to,_t,zn);li=on(wo)}ke([].concat(He(Fi),He(li)))}}}function xs(Ce,ke,_e,Ye,kt){return Ne.useMemo(function(){var _t=kt(ke),on=ue(_t,2),zn=on[0],yn=on[1];if(!Ce||!ke.length)return[zn,[],yn];var Fn=Yu(zn),qn=_e(),$n=(0,Vr.S)(Fn,!0,qn),Wi=$n.checkedKeys,xi=$n.halfCheckedKeys;return[Ye(Wi),Ye(xi),yn]},[Ce,ke,_e,Ye,kt])}var sd=Ne.memo(function(Ce){var ke=Ce.children;return ke},function(Ce,ke){return!ke.open}),Vc=sd;function xh(Ce){var ke,_e=Ce.prefixCls,Ye=Ce.checked,kt=Ce.halfChecked,_t=Ce.disabled,on=Ce.onClick,zn=Ce.disableCheckbox,yn=Ne.useContext(ol),Fn=yn.checkable,qn=typeof Fn!="boolean"?Fn:null;return Ne.createElement("span",{className:ut()("".concat(_e),(ke={},Bt(ke,"".concat(_e,"-checked"),Ye),Bt(ke,"".concat(_e,"-indeterminate"),!Ye&&kt),Bt(ke,"".concat(_e,"-disabled"),_t||zn),ke)),onClick:on},qn)}var Th="__cascader_fix_label__";function _u(Ce){var ke=Ce.prefixCls,_e=Ce.multiple,Ye=Ce.options,kt=Ce.activeValue,_t=Ce.prevValuePath,on=Ce.onToggleOpen,zn=Ce.onSelect,yn=Ce.onActive,Fn=Ce.checkedSet,qn=Ce.halfCheckedSet,$n=Ce.loadingKeys,Wi=Ce.isSelectable,xi=Ce.disabled,li="".concat(ke,"-menu"),Fi="".concat(ke,"-menu-item"),Zi=Ne.useContext(ol),ur=Zi.fieldNames,to=Zi.changeOnSelect,br=Zi.expandTrigger,Sr=Zi.expandIcon,wo=Zi.loadingIcon,Mi=Zi.dropdownMenuColumnStyle,Jr=Zi.optionRender,mr=br==="hover",ao=function(To){return xi||To},po=Ne.useMemo(function(){return Ye.map(function(Ar){var To,mo=Ar.disabled,zo=Ar.disableCheckbox,Dr=Ar[Vs],Co=(To=Ar[Th])!==null&&To!==void 0?To:Ar[ur.label],ca=Ar[ur.value],Da=Eu(Ar,ur),ga=Dr?Dr.map(function(es){return es[ur.value]}):[].concat(He(_t),[ca]),Qr=Kl(ga),Jo=$n.includes(Qr),ua=Fn.has(Qr),Ea=qn.has(Qr);return{disabled:mo,label:Co,value:ca,isLeaf:Da,isLoading:Jo,checked:ua,halfChecked:Ea,option:Ar,disableCheckbox:zo,fullPath:ga,fullPathKey:Qr}})},[Ye,Fn,ur,qn,$n,_t]);return Ne.createElement("ul",{className:li,role:"menu"},po.map(function(Ar){var To,mo=Ar.disabled,zo=Ar.label,Dr=Ar.value,Co=Ar.isLeaf,ca=Ar.isLoading,Da=Ar.checked,ga=Ar.halfChecked,Qr=Ar.option,Jo=Ar.fullPath,ua=Ar.fullPathKey,Ea=Ar.disableCheckbox,es=function(){if(!ao(mo)){var ta=He(Jo);mr&&Co&&ta.pop(),yn(ta)}},ba=function(){Wi(Qr)&&!ao(mo)&&zn(Jo,Co)},_o;return typeof Qr.title=="string"?_o=Qr.title:typeof zo=="string"&&(_o=zo),Ne.createElement("li",{key:ua,className:ut()(Fi,(To={},Bt(To,"".concat(Fi,"-expand"),!Co),Bt(To,"".concat(Fi,"-active"),kt===Dr||kt===ua),Bt(To,"".concat(Fi,"-disabled"),ao(mo)),Bt(To,"".concat(Fi,"-loading"),ca),To)),style:Mi,role:"menuitemcheckbox",title:_o,"aria-checked":Da,"data-path-key":ua,onClick:function(){es(),!Ea&&(!_e||Co)&&ba()},onDoubleClick:function(){to&&on(!1)},onMouseEnter:function(){mr&&es()},onMouseDown:function(ta){ta.preventDefault()}},_e&&Ne.createElement(xh,{prefixCls:"".concat(ke,"-checkbox"),checked:Da,halfChecked:ga,disabled:ao(mo)||Ea,disableCheckbox:Ea,onClick:function(ta){Ea||(ta.stopPropagation(),ba())}}),Ne.createElement("div",{className:"".concat(Fi,"-content")},Jr?Jr(Qr):zo),!ca&&Sr&&!Co&&Ne.createElement("div",{className:"".concat(Fi,"-expand-icon")},Sr),ca&&wo&&Ne.createElement("div",{className:"".concat(Fi,"-loading-icon")},wo))}))}var Dc=function(ke,_e){var Ye=Ne.useContext(ol),kt=Ye.values,_t=kt[0],on=Ne.useState([]),zn=ue(on,2),yn=zn[0],Fn=zn[1];return Ne.useEffect(function(){ke||Fn(_t||[])},[_e,_t]),[yn,Fn]},Zu=Dc,Ko={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(ke){var _e=ke.keyCode;if(ke.altKey&&!ke.ctrlKey||ke.metaKey||_e>=Ko.F1&&_e<=Ko.F12)return!1;switch(_e){case Ko.ALT:case Ko.CAPS_LOCK:case Ko.CONTEXT_MENU:case Ko.CTRL:case Ko.DOWN:case Ko.END:case Ko.ESC:case Ko.HOME:case Ko.INSERT:case Ko.LEFT:case Ko.MAC_FF_META:case Ko.META:case Ko.NUMLOCK:case Ko.NUM_CENTER:case Ko.PAGE_DOWN:case Ko.PAGE_UP:case Ko.PAUSE:case Ko.PRINT_SCREEN:case Ko.RIGHT:case Ko.SHIFT:case Ko.UP:case Ko.WIN_KEY:case Ko.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=Ko.ZERO&&ke<=Ko.NINE||ke>=Ko.NUM_ZERO&&ke<=Ko.NUM_MULTIPLY||ke>=Ko.A&&ke<=Ko.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case Ko.SPACE:case Ko.QUESTION_MARK:case Ko.NUM_PLUS:case Ko.NUM_MINUS:case Ko.NUM_PERIOD:case Ko.NUM_DIVISION:case Ko.SEMICOLON:case Ko.DASH:case Ko.EQUALS:case Ko.COMMA:case Ko.PERIOD:case Ko.SLASH:case Ko.APOSTROPHE:case Ko.SINGLE_QUOTE:case Ko.OPEN_SQUARE_BRACKET:case Ko.BACKSLASH:case Ko.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},lu=Ko,Qe=function(Ce,ke,_e,Ye,kt,_t,on){var zn=on.direction,yn=on.searchValue,Fn=on.toggleOpen,qn=on.open,$n=zn==="rtl",Wi=Ne.useMemo(function(){for(var Mi=-1,Jr=ke,mr=[],ao=[],po=Ye.length,Ar=mc(ke,_e),To=function(ca){var Da=Jr.findIndex(function(ga,Qr){return(Ar[Qr]?Kl(Ar[Qr]):ga[_e.value])===Ye[ca]});if(Da===-1)return 1;Mi=Da,mr.push(Mi),ao.push(Ye[ca]),Jr=Jr[Mi][_e.children]},mo=0;mo<po&&Jr&&!To(mo);mo+=1);for(var zo=ke,Dr=0;Dr<mr.length-1;Dr+=1)zo=zo[mr[Dr]][_e.children];return[ao,Mi,zo,Ar]},[Ye,_e,ke]),xi=ue(Wi,4),li=xi[0],Fi=xi[1],Zi=xi[2],ur=xi[3],to=function(Jr){kt(Jr)},br=function(Jr){var mr=Zi.length,ao=Fi;ao===-1&&Jr<0&&(ao=mr);for(var po=0;po<mr;po+=1){ao=(ao+Jr+mr)%mr;var Ar=Zi[ao];if(Ar&&!Ar.disabled){var To=li.slice(0,-1).concat(ur[ao]?Kl(ur[ao]):Ar[_e.value]);to(To);return}}},Sr=function(){if(li.length>1){var Jr=li.slice(0,-1);to(Jr)}else Fn(!1)},wo=function(){var Jr,mr=((Jr=Zi[Fi])===null||Jr===void 0?void 0:Jr[_e.children])||[],ao=mr.find(function(Ar){return!Ar.disabled});if(ao){var po=[].concat(He(li),[ao[_e.value]]);to(po)}};Ne.useImperativeHandle(Ce,function(){return{onKeyDown:function(Jr){var mr=Jr.which;switch(mr){case lu.UP:case lu.DOWN:{var ao=0;mr===lu.UP?ao=-1:mr===lu.DOWN&&(ao=1),ao!==0&&br(ao);break}case lu.LEFT:{if(yn)break;$n?wo():Sr();break}case lu.RIGHT:{if(yn)break;$n?Sr():wo();break}case lu.BACKSPACE:{yn||Sr();break}case lu.ENTER:{if(li.length){var po=Zi[Fi],Ar=(po==null?void 0:po[Vs])||[];Ar.length?_t(Ar.map(function(To){return To[_e.value]}),Ar[Ar.length-1]):_t(li,Zi[Fi])}break}case lu.ESC:Fn(!1),qn&&Jr.stopPropagation()}},onKeyUp:function(){}}})},Lt=Ne.forwardRef(function(Ce,ke){var _e,Ye,kt,_t=Ce.prefixCls,on=Ce.multiple,zn=Ce.searchValue,yn=Ce.toggleOpen,Fn=Ce.notFoundContent,qn=Ce.direction,$n=Ce.open,Wi=Ce.disabled,xi=Ne.useRef(null),li=qn==="rtl",Fi=Ne.useContext(ol),Zi=Fi.options,ur=Fi.values,to=Fi.halfValues,br=Fi.fieldNames,Sr=Fi.changeOnSelect,wo=Fi.onSelect,Mi=Fi.searchOptions,Jr=Fi.dropdownPrefixCls,mr=Fi.loadData,ao=Fi.expandTrigger,po=Jr||_t,Ar=Ne.useState([]),To=ue(Ar,2),mo=To[0],zo=To[1],Dr=function(Mr){if(!(!mr||zn)){var Gr=au(Mr,Zi,br),Do=Gr.map(function(je){var Ue=je.option;return Ue}),ye=Do[Do.length-1];if(ye&&!Eu(ye,br)){var Ie=Kl(Mr);zo(function(je){return[].concat(He(je),[Ie])}),mr(Do)}}};Ne.useEffect(function(){mo.length&&mo.forEach(function(fo){var Mr=ec(fo),Gr=au(Mr,Zi,br,!0).map(function(ye){var Ie=ye.option;return Ie}),Do=Gr[Gr.length-1];(!Do||Do[br.children]||Eu(Do,br))&&zo(function(ye){return ye.filter(function(Ie){return Ie!==fo})})})},[Zi,mo,br]);var Co=Ne.useMemo(function(){return new Set(Yu(ur))},[ur]),ca=Ne.useMemo(function(){return new Set(Yu(to))},[to]),Da=Zu(on,$n),ga=ue(Da,2),Qr=ga[0],Jo=ga[1],ua=function(Mr){Jo(Mr),Dr(Mr)},Ea=function(Mr){if(Wi)return!1;var Gr=Mr.disabled,Do=Eu(Mr,br);return!Gr&&(Do||Sr||on)},es=function(Mr,Gr){var Do=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;wo(Mr),!on&&(Gr||Sr&&(ao==="hover"||Do))&&yn(!1)},ba=Ne.useMemo(function(){return zn?Mi:Zi},[zn,Mi,Zi]),_o=Ne.useMemo(function(){for(var fo=[{options:ba}],Mr=ba,Gr=mc(Mr,br),Do=function(){var je=Qr[ye],Ue=Mr.find(function(Ht,$t){return(Gr[$t]?Kl(Gr[$t]):Ht[br.value])===je}),gt=Ue==null?void 0:Ue[br.children];if(!(gt!=null&&gt.length))return 1;Mr=gt,fo.push({options:gt})},ye=0;ye<Qr.length&&!Do();ye+=1);return fo},[ba,Qr,br]),yo=function(Mr,Gr){Ea(Gr)&&es(Mr,Eu(Gr,br),!0)};Qe(ke,ba,br,Qr,ua,yo,{direction:qn,searchValue:zn,toggleOpen:yn,open:$n}),Ne.useEffect(function(){if(!zn)for(var fo=0;fo<Qr.length;fo+=1){var Mr,Gr=Qr.slice(0,fo+1),Do=Kl(Gr),ye=(Mr=xi.current)===null||Mr===void 0?void 0:Mr.querySelector('li[data-path-key="'.concat(Do.replace(/\\{0,2}"/g,'\\"'),'"]'));ye&&pc(ye)}},[Qr,zn]);var ta=!((_e=_o[0])!==null&&_e!==void 0&&(_e=_e.options)!==null&&_e!==void 0&&_e.length),Ka=[(Ye={},Bt(Ye,br.value,"__EMPTY__"),Bt(Ye,Th,Fn),Bt(Ye,"disabled",!0),Ye)],Vo=Je(Je({},Ce),{},{multiple:!ta&&on,onSelect:es,onActive:ua,onToggleOpen:yn,checkedSet:Co,halfCheckedSet:ca,loadingKeys:mo,isSelectable:Ea}),Zr=ta?[{options:Ka}]:_o,ho=Zr.map(function(fo,Mr){var Gr=Qr.slice(0,Mr),Do=Qr[Mr];return Ne.createElement(_u,ve({key:Mr},Vo,{prefixCls:po,options:fo.options,prevValuePath:Gr,activeValue:Do}))});return Ne.createElement(Vc,{open:$n},Ne.createElement("div",{className:ut()("".concat(po,"-menus"),(kt={},Bt(kt,"".concat(po,"-menu-empty"),ta),Bt(kt,"".concat(po,"-rtl"),li),kt)),ref:xi},ho))}),It=Lt,jt=Ne.forwardRef(function(Ce,ke){var _e=Xr();return Ne.createElement(It,ve({},Ce,_e,{ref:ke}))}),dn=jt,Sn=be(80705);function jn(Ce,ke,_e){var Ye=React.useRef({});return(!("value"in Ye.current)||_e(Ye.current.condition,ke))&&(Ye.current.value=Ce(),Ye.current.condition=ke),Ye.current.value}var ui=Symbol.for("react.element"),ji=Symbol.for("react.transitional.element"),Ai=Symbol.for("react.fragment");function gr(Ce){return Ce&&_typeof(Ce)==="object"&&(Ce.$$typeof===ui||Ce.$$typeof===ji)&&Ce.type===Ai}var Oi=Number(Ne.version.split(".")[0]),ir=function(ke,_e){typeof ke=="function"?ke(_e):_typeof(ke)==="object"&&ke&&"current"in ke&&(ke.current=_e)},Ji=function(){for(var ke=arguments.length,_e=new Array(ke),Ye=0;Ye<ke;Ye++)_e[Ye]=arguments[Ye];var kt=_e.filter(Boolean);return kt.length<=1?kt[0]:function(_t){_e.forEach(function(on){ir(on,_t)})}},Tr=function(){for(var ke=arguments.length,_e=new Array(ke),Ye=0;Ye<ke;Ye++)_e[Ye]=arguments[Ye];return useMemo(function(){return Ji.apply(void 0,_e)},_e,function(kt,_t){return kt.length!==_t.length||kt.every(function(on,zn){return on!==_t[zn]})})},ro=function(ke){var _e,Ye;if(!ke)return!1;if(Ro(ke)&&Oi>=19)return!0;var kt=isMemo(ke)?ke.type.type:ke.type;return!(typeof kt=="function"&&!((_e=kt.prototype)!==null&&_e!==void 0&&_e.render)&&kt.$$typeof!==ForwardRef||typeof ke=="function"&&!((Ye=ke.prototype)!==null&&Ye!==void 0&&Ye.render)&&ke.$$typeof!==ForwardRef)};function Ro(Ce){return isValidElement(Ce)&&!isFragment(Ce)}var ia=function(ke){return Ro(ke)&&ro(ke)},Yr=function(ke){if(ke&&Ro(ke)){var _e=ke;return _e.props.propertyIsEnumerable("ref")?_e.props.ref:_e.ref}return null};function ko(Ce,ke,_e,Ye){if(!ke.length)return _e;var kt=_toArray(ke),_t=kt[0],on=kt.slice(1),zn;return!Ce&&typeof _t=="number"?zn=[]:Array.isArray(Ce)?zn=_toConsumableArray(Ce):zn=_objectSpread({},Ce),Ye&&_e===void 0&&on.length===1?delete zn[_t][on[0]]:zn[_t]=ko(zn[_t],on,_e,Ye),zn}function oo(Ce,ke,_e){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ke.length&&Ye&&_e===void 0&&!get(Ce,ke.slice(0,-1))?Ce:ko(Ce,ke,_e,Ye)}function oa(Ce){return _typeof(Ce)==="object"&&Ce!==null&&Object.getPrototypeOf(Ce)===Object.prototype}function _a(Ce){return Array.isArray(Ce)?[]:{}}var qo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function cs(){for(var Ce=arguments.length,ke=new Array(Ce),_e=0;_e<Ce;_e++)ke[_e]=arguments[_e];var Ye=_a(ke[0]);return ke.forEach(function(kt){function _t(on,zn){var yn=new Set(zn),Fn=get(kt,on),qn=Array.isArray(Fn);if(qn||oa(Fn)){if(!yn.has(Fn)){yn.add(Fn);var $n=get(Ye,on);qn?Ye=oo(Ye,on,[]):(!$n||_typeof($n)!=="object")&&(Ye=oo(Ye,on,_a(Fn))),qo(Fn).forEach(function(Wi){_t([].concat(_toConsumableArray(on),[Wi]),yn)})}}else Ye=oo(Ye,on,Fn)}_t([])}),Ye}function ja(){}function rs(Ce){var ke,_e=Ce,Ye=_e.prefixCls,kt=Ye===void 0?"rc-cascader":Ye,_t=_e.style,on=_e.className,zn=_e.options,yn=_e.checkable,Fn=_e.defaultValue,qn=_e.value,$n=_e.fieldNames,Wi=_e.changeOnSelect,xi=_e.onChange,li=_e.showCheckedStrategy,Fi=_e.loadData,Zi=_e.expandTrigger,ur=_e.expandIcon,to=ur===void 0?">":ur,br=_e.loadingIcon,Sr=_e.direction,wo=_e.notFoundContent,Mi=wo===void 0?"Not Found":wo,Jr=_e.disabled,mr=!!yn,ao=Ts(Fn,{value:qn,postState:Ca}),po=ue(ao,2),Ar=po[0],To=po[1],mo=Ne.useMemo(function(){return pu($n)},[JSON.stringify($n)]),zo=sl(mo,zn),Dr=ue(zo,3),Co=Dr[0],ca=Dr[1],Da=Dr[2],ga=fs(Co,mo),Qr=xs(mr,Ar,ca,Da,ga),Jo=ue(Qr,3),ua=Jo[0],Ea=Jo[1],es=Jo[2],ba=El(function(Zr){if(To(Zr),xi){var ho=Ca(Zr),fo=ho.map(function(Do){return au(Do,Co,mo).map(function(ye){return ye.option})}),Mr=mr?ho:ho[0],Gr=mr?fo:fo[0];xi(Mr,Gr)}}),_o=ju(mr,ba,ua,Ea,es,ca,Da,li),yo=El(function(Zr){_o(Zr)}),ta=Ne.useMemo(function(){return{options:Co,fieldNames:mo,values:ua,halfValues:Ea,changeOnSelect:Wi,onSelect:yo,checkable:yn,searchOptions:[],dropdownPrefixCls:void 0,loadData:Fi,expandTrigger:Zi,expandIcon:to,loadingIcon:br,dropdownMenuColumnStyle:void 0}},[Co,mo,ua,Ea,Wi,yo,yn,Fi,Zi,to,br]),Ka="".concat(kt,"-panel"),Vo=!Co.length;return Ne.createElement(ol.Provider,{value:ta},Ne.createElement("div",{className:ut()(Ka,(ke={},Bt(ke,"".concat(Ka,"-rtl"),Sr==="rtl"),Bt(ke,"".concat(Ka,"-empty"),Vo),ke),on),style:_t},Vo?Mi:Ne.createElement(It,{prefixCls:kt,searchValue:"",multiple:mr,toggleOpen:ja,open:!0,direction:Sr,disabled:Jr})))}function qs(Ce){var ke=Ce.onPopupVisibleChange,_e=Ce.popupVisible,Ye=Ce.popupClassName,kt=Ce.popupPlacement;warning(!ke,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(_e===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Ye===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(kt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Cs(Ce,ke){if(Ce){var _e=function Ye(kt){for(var _t=0;_t<kt.length;_t++){var on=kt[_t];if(on[ke==null?void 0:ke.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(on[ke==null?void 0:ke.children])&&Ye(on[ke==null?void 0:ke.children]))return!0}};_e(Ce)}}var Oe=null,ze=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],it=Ne.forwardRef(function(Ce,ke){var _e=Ce.id,Ye=Ce.prefixCls,kt=Ye===void 0?"rc-cascader":Ye,_t=Ce.fieldNames,on=Ce.defaultValue,zn=Ce.value,yn=Ce.changeOnSelect,Fn=Ce.onChange,qn=Ce.displayRender,$n=Ce.checkable,Wi=Ce.autoClearSearchValue,xi=Wi===void 0?!0:Wi,li=Ce.searchValue,Fi=Ce.onSearch,Zi=Ce.showSearch,ur=Ce.expandTrigger,to=Ce.options,br=Ce.dropdownPrefixCls,Sr=Ce.loadData,wo=Ce.popupVisible,Mi=Ce.open,Jr=Ce.popupClassName,mr=Ce.dropdownClassName,ao=Ce.dropdownMenuColumnStyle,po=Ce.dropdownStyle,Ar=Ce.popupPlacement,To=Ce.placement,mo=Ce.onDropdownVisibleChange,zo=Ce.onPopupVisibleChange,Dr=Ce.expandIcon,Co=Dr===void 0?">":Dr,ca=Ce.loadingIcon,Da=Ce.children,ga=Ce.dropdownMatchSelectWidth,Qr=ga===void 0?!1:ga,Jo=Ce.showCheckedStrategy,ua=Jo===void 0?Rt:Jo,Ea=Ce.optionRender,es=ge(Ce,ze),ba=hl(_e),_o=!!$n,yo=Ts(on,{value:zn,postState:Ca}),ta=ue(yo,2),Ka=ta[0],Vo=ta[1],Zr=Ne.useMemo(function(){return pu(_t)},[JSON.stringify(_t)]),ho=sl(Zr,to),fo=ue(ho,3),Mr=fo[0],Gr=fo[1],Do=fo[2],ye=Ts("",{value:li,postState:function(Pi){return Pi||""}}),Ie=ue(ye,2),je=Ie[0],Ue=Ie[1],gt=function(Pi,qi){Ue(Pi),qi.source!=="blur"&&Fi&&Fi(Pi)},Ht=_c(Zi),$t=ue(Ht,2),an=$t[0],Tn=$t[1],Un=Fo(je,Mr,Zr,br||kt,Tn,yn||_o),Mn=fs(Mr,Zr),Ei=xs(_o,Ka,Gr,Do,Mn),Ui=ue(Ei,3),Ci=Ui[0],Li=Ui[1],Di=Ui[2],Ni=Ne.useMemo(function(){var Ur=Yu(Ci),Pi=mu(Ur,Gr,ua);return[].concat(He(Di),He(Do(Pi)))},[Ci,Gr,Do,Di,ua]),bn=ll(Ni,Mr,Zr,_o,qn),Yn=El(function(Ur){if(Vo(Ur),Fn){var Pi=Ca(Ur),qi=Pi.map(function(Eo){return au(Eo,Mr,Zr).map(function(vr){return vr.option})}),Hi=_o?Pi:Pi[0],Lr=_o?qi:qi[0];Fn(Hi,Lr)}}),ei=ju(_o,Yn,Ci,Li,Di,Gr,Do,ua),pi=El(function(Ur){(!_o||xi)&&Ue(""),ei(Ur)}),rr=function(Pi,qi){if(qi.type==="clear"){Yn([]);return}var Hi=qi.values[0],Lr=Hi.valueCells;pi(Lr)},$i=Mi!==void 0?Mi:wo,sr=mr||Jr,At=To||Ar,cr=function(Pi){mo==null||mo(Pi),zo==null||zo(Pi)},Pr=Ne.useMemo(function(){return{options:Mr,fieldNames:Zr,values:Ci,halfValues:Li,changeOnSelect:yn,onSelect:pi,checkable:$n,searchOptions:Un,dropdownPrefixCls:br,loadData:Sr,expandTrigger:ur,expandIcon:Co,loadingIcon:ca,dropdownMenuColumnStyle:ao,optionRender:Ea}},[Mr,Zr,Ci,Li,yn,pi,$n,Un,br,Sr,ur,Co,ca,ao,Ea]),Ir=!(je?Un:Mr).length,Oo=je&&Tn.matchInputWidth||Ir?{}:{minWidth:"auto"};return Ne.createElement(ol.Provider,{value:Pr},Ne.createElement(dl,ve({},es,{ref:ke,id:ba,prefixCls:kt,autoClearSearchValue:xi,dropdownMatchSelectWidth:Qr,dropdownStyle:Je(Je({},Oo),po),displayValues:bn,onDisplayValuesChange:rr,mode:_o?"multiple":void 0,searchValue:je,onSearch:gt,showSearch:an,OptionList:dn,emptyOptions:Ir,open:$i,dropdownClassName:sr,placement:At,onDropdownVisibleChange:cr,getRawInputElement:function(){return Da}})))});it.SHOW_PARENT=Rt,it.SHOW_CHILD=fi,it.Panel=rs;var vt=it,sn=vt},42767:function(Rn,ti){"use strict";var be;var ve=typeof Symbol=="function"&&Symbol.for,tt=ve?Symbol.for("react.element"):60103,Pt=ve?Symbol.for("react.portal"):60106,Ut=ve?Symbol.for("react.fragment"):60107,Bt=ve?Symbol.for("react.strict_mode"):60108,Re=ve?Symbol.for("react.profiler"):60114,Je=ve?Symbol.for("react.provider"):60109,pt=ve?Symbol.for("react.context"):60110,wt=ve?Symbol.for("react.async_mode"):60111,ht=ve?Symbol.for("react.concurrent_mode"):60111,Vt=ve?Symbol.for("react.forward_ref"):60112,ct=ve?Symbol.for("react.suspense"):60113,He=ve?Symbol.for("react.suspense_list"):60120,Te=ve?Symbol.for("react.memo"):60115,ne=ve?Symbol.for("react.lazy"):60116,te=ve?Symbol.for("react.block"):60121,ue=ve?Symbol.for("react.fundamental"):60117,se=ve?Symbol.for("react.responder"):60118,ge=ve?Symbol.for("react.scope"):60119;function me(Pe){if(typeof Pe=="object"&&Pe!==null){var Ke=Pe.$$typeof;switch(Ke){case tt:switch(Pe=Pe.type,Pe){case wt:case ht:case Ut:case Re:case Bt:case ct:return Pe;default:switch(Pe=Pe&&Pe.$$typeof,Pe){case pt:case Vt:case ne:case Te:case Je:return Pe;default:return Ke}}case Pt:return Ke}}}function xe(Pe){return me(Pe)===ht}be=wt,be=ht,be=pt,be=Je,be=tt,be=Vt,be=Ut,be=ne,be=Te,be=Pt,be=Re,be=Bt,be=ct,be=function(Pe){return xe(Pe)||me(Pe)===wt},be=xe,be=function(Pe){return me(Pe)===pt},be=function(Pe){return me(Pe)===Je},be=function(Pe){return typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===tt},be=function(Pe){return me(Pe)===Vt},ti.isFragment=function(Pe){return me(Pe)===Ut},be=function(Pe){return me(Pe)===ne},be=function(Pe){return me(Pe)===Te},be=function(Pe){return me(Pe)===Pt},be=function(Pe){return me(Pe)===Re},be=function(Pe){return me(Pe)===Bt},be=function(Pe){return me(Pe)===ct},be=function(Pe){return typeof Pe=="string"||typeof Pe=="function"||Pe===Ut||Pe===ht||Pe===Re||Pe===Bt||Pe===ct||Pe===He||typeof Pe=="object"&&Pe!==null&&(Pe.$$typeof===ne||Pe.$$typeof===Te||Pe.$$typeof===Je||Pe.$$typeof===pt||Pe.$$typeof===Vt||Pe.$$typeof===ue||Pe.$$typeof===se||Pe.$$typeof===ge||Pe.$$typeof===te)},be=me},16357:function(Rn,ti,be){"use strict";Rn.exports=be(42767)},16404:function(Rn,ti){"use strict";var be;var ve=Symbol.for("react.element"),tt=Symbol.for("react.portal"),Pt=Symbol.for("react.fragment"),Ut=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),wt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Te=Symbol.for("react.offscreen"),ne;ne=Symbol.for("react.module.reference");function te(ue){if(typeof ue=="object"&&ue!==null){var se=ue.$$typeof;switch(se){case ve:switch(ue=ue.type,ue){case Pt:case Bt:case Ut:case ht:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case wt:case He:case ct:case Re:return ue;default:return se}}case tt:return se}}}be=Je,be=Re,be=ve,be=wt,be=Pt,be=He,be=ct,be=tt,be=Bt,be=Ut,be=ht,be=Vt,be=function(){return!1},be=function(){return!1},be=function(ue){return te(ue)===Je},be=function(ue){return te(ue)===Re},be=function(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===ve},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===Pt},be=function(ue){return te(ue)===He},be=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===tt},be=function(ue){return te(ue)===Bt},be=function(ue){return te(ue)===Ut},be=function(ue){return te(ue)===ht},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===Pt||ue===Bt||ue===Ut||ue===ht||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===He||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===wt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},80705:function(Rn,ti,be){"use strict";be(16404)},31457:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return qt}});var ve=be(4942),tt=be(87462),Pt=be(71002),Ut=be(1413),Bt=be(97685),Re=be(94184),Je=be.n(Re),pt=be(67294);function wt(hi){var Kt=pt.useRef();Kt.current=hi;var Xe=pt.useCallback(function(){for(var Le,Me=arguments.length,We=new Array(Me),$e=0;$e<Me;$e++)We[$e]=arguments[$e];return(Le=Kt.current)===null||Le===void 0?void 0:Le.call.apply(Le,[Kt].concat(We))},[]);return Xe}function ht(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Vt=ht()?pt.useLayoutEffect:pt.useEffect,ct=function(Kt,Xe){var Le=pt.useRef(!0);Vt(function(){return Kt(Le.current)},Xe),Vt(function(){return Le.current=!1,function(){Le.current=!0}},[])},He=function(Kt,Xe){ct(function(Le){if(!Le)return Kt()},Xe)},Te=null;function ne(hi){var Kt=pt.useRef(!1),Xe=pt.useState(hi),Le=(0,Bt.Z)(Xe,2),Me=Le[0],We=Le[1];pt.useEffect(function(){return Kt.current=!1,function(){Kt.current=!0}},[]);function $e(Be,ut){ut&&Kt.current||We(Be)}return[Me,$e]}function te(hi){return hi!==void 0}function ue(hi,Kt){var Xe=Kt||{},Le=Xe.defaultValue,Me=Xe.value,We=Xe.onChange,$e=Xe.postState,Be=ne(function(){return te(Me)?Me:te(Le)?typeof Le=="function"?Le():Le:typeof hi=="function"?hi():hi}),ut=(0,Bt.Z)(Be,2),Vn=ut[0],In=ut[1],Cn=Me!==void 0?Me:Vn,Pn=$e?$e(Cn):Cn,oi=wt(We),mn=ne([Cn]),bi=(0,Bt.Z)(mn,2),_i=bi[0],Br=bi[1];He(function(){var ki=_i[0];Vn!==ki&&oi(Vn,ki)},[_i]),He(function(){te(Me)||In(Me)},[Me]);var Yi=wt(function(ki,Xr){In(ki,Xr),Br([Cn],Xr)});return[Pn,Yi]}var se={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(Kt){var Xe=Kt.keyCode;if(Kt.altKey&&!Kt.ctrlKey||Kt.metaKey||Xe>=se.F1&&Xe<=se.F12)return!1;switch(Xe){case se.ALT:case se.CAPS_LOCK:case se.CONTEXT_MENU:case se.CTRL:case se.DOWN:case se.END:case se.ESC:case se.HOME:case se.INSERT:case se.LEFT:case se.MAC_FF_META:case se.META:case se.NUMLOCK:case se.NUM_CENTER:case se.PAGE_DOWN:case se.PAGE_UP:case se.PAUSE:case se.PRINT_SCREEN:case se.RIGHT:case se.SHIFT:case se.UP:case se.WIN_KEY:case se.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Kt){if(Kt>=se.ZERO&&Kt<=se.NINE||Kt>=se.NUM_ZERO&&Kt<=se.NUM_MULTIPLY||Kt>=se.A&&Kt<=se.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Kt===0)return!0;switch(Kt){case se.SPACE:case se.QUESTION_MARK:case se.NUM_PLUS:case se.NUM_MINUS:case se.NUM_PERIOD:case se.NUM_DIVISION:case se.SEMICOLON:case se.DASH:case se.EQUALS:case se.COMMA:case se.PERIOD:case se.SLASH:case se.APOSTROPHE:case se.SINGLE_QUOTE:case se.OPEN_SQUARE_BRACKET:case se.BACKSLASH:case se.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ge=se,me=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,xe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Pe="".concat(me," ").concat(xe).split(/[\s\n]+/),Ke="aria-",qe="data-";function ft(hi,Kt){return hi.indexOf(Kt)===0}function st(hi){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe;Kt===!1?Xe={aria:!0,data:!0,attr:!0}:Kt===!0?Xe={aria:!0}:Xe=(0,Ut.Z)({},Kt);var Le={};return Object.keys(hi).forEach(function(Me){(Xe.aria&&(Me==="role"||ft(Me,Ke))||Xe.data&&ft(Me,qe)||Xe.attr&&Pe.includes(Me))&&(Le[Me]=hi[Me])}),Le}var rt={},Tt=[],Mt=function(Kt){Tt.push(Kt)};function yt(hi,Kt){if(0)var Xe}function Dt(hi,Kt){if(0)var Xe}function Nt(){rt={}}function Bn(hi,Kt,Xe){!Kt&&!rt[Xe]&&(hi(!1,Xe),rt[Xe]=!0)}function On(hi,Kt){Bn(yt,hi,Kt)}function Qt(hi,Kt){Bn(Dt,hi,Kt)}On.preMessage=Mt,On.resetWarned=Nt,On.noteOnce=Qt;var vn=null,lt=be(81626),Ge=[10,20,50,100],Ne=function(Kt){var Xe=Kt.pageSizeOptions,Le=Xe===void 0?Ge:Xe,Me=Kt.locale,We=Kt.changeSize,$e=Kt.pageSize,Be=Kt.goButton,ut=Kt.quickGo,Vn=Kt.rootPrefixCls,In=Kt.disabled,Cn=Kt.buildOptionText,Pn=Kt.showSizeChanger,oi=Kt.sizeChangerRender,mn=pt.useState(""),bi=(0,Bt.Z)(mn,2),_i=bi[0],Br=bi[1],Yi=function(){return!_i||Number.isNaN(_i)?void 0:Number(_i)},ki=typeof Cn=="function"?Cn:function(Wr){return"".concat(Wr," ").concat(Me.items_per_page)},Xr=function(ra){Br(ra.target.value)},Ki=function(ra){Be||_i===""||(Br(""),!(ra.relatedTarget&&(ra.relatedTarget.className.indexOf("".concat(Vn,"-item-link"))>=0||ra.relatedTarget.className.indexOf("".concat(Vn,"-item"))>=0))&&(ut==null||ut(Yi())))},lr=function(ra){_i!==""&&(ra.keyCode===ge.ENTER||ra.type==="click")&&(Br(""),ut==null||ut(Yi()))},ar=function(){return Le.some(function(ra){return ra.toString()===$e.toString()})?Le:Le.concat([$e]).sort(function(ra,sa){var Wa=Number.isNaN(Number(ra))?0:Number(ra),ma=Number.isNaN(Number(sa))?0:Number(sa);return Wa-ma})},kn="".concat(Vn,"-options");if(!Pn&&!ut)return null;var Bi=null,ea=null,Zn=null;return Pn&&oi&&(Bi=oi({disabled:In,size:$e,onSizeChange:function(ra){We==null||We(Number(ra))},"aria-label":Me.page_size,className:"".concat(kn,"-size-changer"),options:ar().map(function(Wr){return{label:ki(Wr),value:Wr}})})),ut&&(Be&&(Zn=typeof Be=="boolean"?pt.createElement("button",{type:"button",onClick:lr,onKeyUp:lr,disabled:In,className:"".concat(kn,"-quick-jumper-button")},Me.jump_to_confirm):pt.createElement("span",{onClick:lr,onKeyUp:lr},Be)),ea=pt.createElement("div",{className:"".concat(kn,"-quick-jumper")},Me.jump_to,pt.createElement("input",{disabled:In,type:"text",value:_i,onChange:Xr,onKeyUp:lr,onBlur:Ki,"aria-label":Me.page}),Me.page,Zn)),pt.createElement("li",{className:kn},Bi,ea)},Nn=Ne,Xn=function(Kt){var Xe=Kt.rootPrefixCls,Le=Kt.page,Me=Kt.active,We=Kt.className,$e=Kt.showTitle,Be=Kt.onClick,ut=Kt.onKeyPress,Vn=Kt.itemRender,In="".concat(Xe,"-item"),Cn=Je()(In,"".concat(In,"-").concat(Le),(0,ve.Z)((0,ve.Z)({},"".concat(In,"-active"),Me),"".concat(In,"-disabled"),!Le),We),Pn=function(){Be(Le)},oi=function(_i){ut(_i,Be,Le)},mn=Vn(Le,"page",pt.createElement("a",{rel:"nofollow"},Le));return mn?pt.createElement("li",{title:$e?String(Le):null,className:Cn,onClick:Pn,onKeyDown:oi,tabIndex:0},mn):null},Xt=Xn,ai=function(Kt,Xe,Le){return Le};function xn(){}function gi(hi){var Kt=Number(hi);return typeof Kt=="number"&&!Number.isNaN(Kt)&&isFinite(Kt)&&Math.floor(Kt)===Kt}function Zt(hi,Kt,Xe){var Le=typeof hi=="undefined"?Kt:hi;return Math.floor((Xe-1)/Le)+1}var Ct=function(Kt){var Xe=Kt.prefixCls,Le=Xe===void 0?"rc-pagination":Xe,Me=Kt.selectPrefixCls,We=Me===void 0?"rc-select":Me,$e=Kt.className,Be=Kt.current,ut=Kt.defaultCurrent,Vn=ut===void 0?1:ut,In=Kt.total,Cn=In===void 0?0:In,Pn=Kt.pageSize,oi=Kt.defaultPageSize,mn=oi===void 0?10:oi,bi=Kt.onChange,_i=bi===void 0?xn:bi,Br=Kt.hideOnSinglePage,Yi=Kt.align,ki=Kt.showPrevNextJumpers,Xr=ki===void 0?!0:ki,Ki=Kt.showQuickJumper,lr=Kt.showLessItems,ar=Kt.showTitle,kn=ar===void 0?!0:ar,Bi=Kt.onShowSizeChange,ea=Bi===void 0?xn:Bi,Zn=Kt.locale,Wr=Zn===void 0?lt.Z:Zn,ra=Kt.style,sa=Kt.totalBoundaryShowSizeChanger,Wa=sa===void 0?50:sa,ma=Kt.disabled,Ha=Kt.simple,da=Kt.showTotal,la=Kt.showSizeChanger,No=la===void 0?Cn>Wa:la,ni=Kt.sizeChangerRender,Ee=Kt.pageSizeOptions,pn=Kt.itemRender,hn=pn===void 0?ai:pn,ri=Kt.jumpPrevIcon,Jn=Kt.jumpNextIcon,Wn=Kt.prevIcon,nn=Kt.nextIcon,ii=pt.useRef(null),Wt=ue(10,{value:Pn,defaultValue:mn}),Gt=(0,Bt.Z)(Wt,2),Ft=Gt[0],un=Gt[1],Ti=ue(1,{value:Be,defaultValue:Vn,postState:function(eo){return Math.max(1,Math.min(eo,Zt(void 0,Ft,Cn)))}}),Ri=(0,Bt.Z)(Ti,2),di=Ri[0],Yt=Ri[1],Hn=pt.useState(di),En=(0,Bt.Z)(Hn,2),Fr=En[0],si=En[1];(0,pt.useEffect)(function(){si(di)},[di]);var tn=_i!==xn,Vi="current"in Kt,Hr=Math.max(1,di-(lr?3:5)),Or=Math.min(Zt(void 0,Ft,Cn),di+(lr?3:5));function wn(fn,eo){var so=fn||pt.createElement("button",{type:"button","aria-label":eo,className:"".concat(Le,"-item-link")});return typeof fn=="function"&&(so=pt.createElement(fn,(0,Ut.Z)({},Kt))),so}function or(fn){var eo=fn.target.value,so=Zt(void 0,Ft,Cn),ya;return eo===""?ya=eo:Number.isNaN(Number(eo))?ya=Fr:eo>=so?ya=so:ya=Number(eo),ya}function Xo(fn){return gi(fn)&&fn!==di&&gi(Cn)&&Cn>0}var Na=Cn>Ft?Ki:!1;function aa(fn){(fn.keyCode===ge.UP||fn.keyCode===ge.DOWN)&&fn.preventDefault()}function hr(fn){var eo=or(fn);switch(eo!==Fr&&si(eo),fn.keyCode){case ge.ENTER:va(eo);break;case ge.UP:va(eo-1);break;case ge.DOWN:va(eo+1);break;default:break}}function Nr(fn){va(or(fn))}function io(fn){var eo=Zt(fn,Ft,Cn),so=di>eo&&eo!==0?eo:di;un(fn),si(so),ea==null||ea(di,fn),Yt(so),_i==null||_i(so,fn)}function va(fn){if(Xo(fn)&&!ma){var eo=Zt(void 0,Ft,Cn),so=fn;return fn>eo?so=eo:fn<1&&(so=1),so!==Fr&&si(so),Yt(so),_i==null||_i(so,Ft),so}return di}var Ho=di>1,vi=di<Zt(void 0,Ft,Cn);function lo(){Ho&&va(di-1)}function al(){vi&&va(di+1)}function el(){va(Hr)}function Ns(){va(Or)}function ln(fn,eo){if(fn.key==="Enter"||fn.charCode===ge.ENTER||fn.keyCode===ge.ENTER){for(var so=arguments.length,ya=new Array(so>2?so-2:0),fa=2;fa<so;fa++)ya[fa-2]=arguments[fa];eo.apply(void 0,ya)}}function Yo(fn){ln(fn,lo)}function Va(fn){ln(fn,al)}function Ao(fn){ln(fn,el)}function ms(fn){ln(fn,Ns)}function Ba(fn){var eo=hn(fn,"prev",wn(Wn,"prev page"));return pt.isValidElement(eo)?pt.cloneElement(eo,{disabled:!Ho}):eo}function $a(fn){var eo=hn(fn,"next",wn(nn,"next page"));return pt.isValidElement(eo)?pt.cloneElement(eo,{disabled:!vi}):eo}function Er(fn){(fn.type==="click"||fn.keyCode===ge.ENTER)&&va(Fr)}var uo=null,So=st(Kt,{aria:!0,data:!0}),_n=da&&pt.createElement("li",{className:"".concat(Le,"-total-text")},da(Cn,[Cn===0?0:(di-1)*Ft+1,di*Ft>Cn?Cn:di*Ft])),ka=null,An=Zt(void 0,Ft,Cn);if(Br&&Cn<=Ft)return null;var Po=[],Ws={rootPrefixCls:Le,onClick:va,onKeyPress:ln,showTitle:kn,itemRender:hn,page:-1},ds=di-1>0?di-1:0,kl=di+1<An?di+1:An,Ss=Ki&&Ki.goButton,Ua=(0,Pt.Z)(Ha)==="object"?Ha.readOnly:!Ha,us=Ss,tl=null;Ha&&(Ss&&(typeof Ss=="boolean"?us=pt.createElement("button",{type:"button",onClick:Er,onKeyUp:Er},Wr.jump_to_confirm):us=pt.createElement("span",{onClick:Er,onKeyUp:Er},Ss),us=pt.createElement("li",{title:kn?"".concat(Wr.jump_to).concat(di,"/").concat(An):null,className:"".concat(Le,"-simple-pager")},us)),tl=pt.createElement("li",{title:kn?"".concat(di,"/").concat(An):null,className:"".concat(Le,"-simple-pager")},Ua?Fr:pt.createElement("input",{type:"text","aria-label":Wr.jump_to,value:Fr,disabled:ma,onKeyDown:aa,onKeyUp:hr,onChange:hr,onBlur:Nr,size:3}),pt.createElement("span",{className:"".concat(Le,"-slash")},"/"),An));var ts=lr?1:2;if(An<=3+ts*2){An||Po.push(pt.createElement(Xt,(0,tt.Z)({},Ws,{key:"noPager",page:1,className:"".concat(Le,"-item-disabled")})));for(var wr=1;wr<=An;wr+=1)Po.push(pt.createElement(Xt,(0,tt.Z)({},Ws,{key:wr,page:wr,active:di===wr})))}else{var at=lr?Wr.prev_3:Wr.prev_5,St=lr?Wr.next_3:Wr.next_5,zt=hn(Hr,"jump-prev",wn(ri,"prev page")),gn=hn(Or,"jump-next",wn(Jn,"next page"));Xr&&(uo=zt?pt.createElement("li",{title:kn?at:null,key:"prev",onClick:el,tabIndex:0,onKeyDown:Ao,className:Je()("".concat(Le,"-jump-prev"),(0,ve.Z)({},"".concat(Le,"-jump-prev-custom-icon"),!!ri))},zt):null,ka=gn?pt.createElement("li",{title:kn?St:null,key:"next",onClick:Ns,tabIndex:0,onKeyDown:ms,className:Je()("".concat(Le,"-jump-next"),(0,ve.Z)({},"".concat(Le,"-jump-next-custom-icon"),!!Jn))},gn):null);var Kn=Math.max(1,di-ts),Ii=Math.min(di+ts,An);di-1<=ts&&(Ii=1+ts*2),An-di<=ts&&(Kn=An-ts*2);for(var Jt=Kn;Jt<=Ii;Jt+=1)Po.push(pt.createElement(Xt,(0,tt.Z)({},Ws,{key:Jt,page:Jt,active:di===Jt})));if(di-1>=ts*2&&di!==3&&(Po[0]=pt.cloneElement(Po[0],{className:Je()("".concat(Le,"-item-after-jump-prev"),Po[0].props.className)}),Po.unshift(uo)),An-di>=ts*2&&di!==An-2){var Qn=Po[Po.length-1];Po[Po.length-1]=pt.cloneElement(Qn,{className:Je()("".concat(Le,"-item-before-jump-next"),Qn.props.className)}),Po.push(ka)}Kn!==1&&Po.unshift(pt.createElement(Xt,(0,tt.Z)({},Ws,{key:1,page:1}))),Ii!==An&&Po.push(pt.createElement(Xt,(0,tt.Z)({},Ws,{key:An,page:An})))}var Qi=Ba(ds);if(Qi){var wi=!Ho||!An;Qi=pt.createElement("li",{title:kn?Wr.prev_page:null,onClick:lo,tabIndex:wi?null:0,onKeyDown:Yo,className:Je()("".concat(Le,"-prev"),(0,ve.Z)({},"".concat(Le,"-disabled"),wi)),"aria-disabled":wi},Qi)}var nr=$a(kl);if(nr){var Xi,Si;Ha?(Xi=!vi,Si=Ho?0:null):(Xi=!vi||!An,Si=Xi?null:0),nr=pt.createElement("li",{title:kn?Wr.next_page:null,onClick:al,tabIndex:Si,onKeyDown:Va,className:Je()("".concat(Le,"-next"),(0,ve.Z)({},"".concat(Le,"-disabled"),Xi)),"aria-disabled":Xi},nr)}var pr=Je()(Le,$e,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(Le,"-start"),Yi==="start"),"".concat(Le,"-center"),Yi==="center"),"".concat(Le,"-end"),Yi==="end"),"".concat(Le,"-simple"),Ha),"".concat(Le,"-disabled"),ma));return pt.createElement("ul",(0,tt.Z)({className:pr,style:ra,ref:ii},So),_n,Qi,Ha?tl:Po,nr,pt.createElement(Nn,{locale:Wr,rootPrefixCls:Le,disabled:ma,selectPrefixCls:We,changeSize:io,pageSize:Ft,pageSizeOptions:Ee,quickGo:Na?va:null,goButton:us,showSizeChanger:No,sizeChangerRender:ni}))},qt=Ct},63697:function(Rn,ti,be){"use strict";var ve=be(27484),tt=be.n(ve),Pt=be(6833),Ut=be.n(Pt),Bt=be(96036),Re=be.n(Bt),Je=be(55183),pt=be.n(Je),wt=be(172),ht=be.n(wt),Vt=be(28734),ct=be.n(Vt),He=be(10285),Te=be.n(He);tt().extend(Te()),tt().extend(ct()),tt().extend(Ut()),tt().extend(Re()),tt().extend(pt()),tt().extend(ht()),tt().extend(function(ge,me){var xe=me.prototype,Pe=xe.format;xe.format=function(qe){var ft=(qe||"").replace("Wo","wo");return Pe.bind(this)(ft)}});var ne={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},te=function(me){var xe=ne[me];return xe||me.split("_")[0]},ue=function(){},se={getNow:function(){var me=tt()();return typeof me.tz=="function"?me.tz():me},getFixedDate:function(me){return tt()(me,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(me){return me.endOf("month")},getWeekDay:function(me){var xe=me.locale("en");return xe.weekday()+xe.localeData().firstDayOfWeek()},getYear:function(me){return me.year()},getMonth:function(me){return me.month()},getDate:function(me){return me.date()},getHour:function(me){return me.hour()},getMinute:function(me){return me.minute()},getSecond:function(me){return me.second()},getMillisecond:function(me){return me.millisecond()},addYear:function(me,xe){return me.add(xe,"year")},addMonth:function(me,xe){return me.add(xe,"month")},addDate:function(me,xe){return me.add(xe,"day")},setYear:function(me,xe){return me.year(xe)},setMonth:function(me,xe){return me.month(xe)},setDate:function(me,xe){return me.date(xe)},setHour:function(me,xe){return me.hour(xe)},setMinute:function(me,xe){return me.minute(xe)},setSecond:function(me,xe){return me.second(xe)},setMillisecond:function(me,xe){return me.millisecond(xe)},isAfter:function(me,xe){return me.isAfter(xe)},isValidate:function(me){return me.isValid()},locale:{getWeekFirstDay:function(me){return tt()().locale(te(me)).localeData().firstDayOfWeek()},getWeekFirstDate:function(me,xe){return xe.locale(te(me)).weekday(0)},getWeek:function(me,xe){return xe.locale(te(me)).week()},getShortWeekDays:function(me){return tt()().locale(te(me)).localeData().weekdaysMin()},getShortMonths:function(me){return tt()().locale(te(me)).localeData().monthsShort()},format:function(me,xe,Pe){return xe.locale(te(me)).format(Pe)},parse:function(me,xe,Pe){for(var Ke=te(me),qe=0;qe<Pe.length;qe+=1){var ft=Pe[qe],st=xe;if(ft.includes("wo")||ft.includes("Wo")){for(var rt=st.split("-")[0],Tt=st.split("-")[1],Mt=tt()(rt,"YYYY").startOf("year").locale(Ke),yt=0;yt<=52;yt+=1){var Dt=Mt.add(yt,"week");if(Dt.format("Wo")===Tt)return Dt}return ue(),null}var Nt=tt()(st,ft,!0).locale(Ke);if(Nt.isValid())return Nt}return xe&&ue(),null}}};ti.Z=se},24465:function(Rn,ti,be){"use strict";be.d(ti,{Sq:function(){return As},ZP:function(){return Do}});function ve(){return ve=Object.assign?Object.assign.bind():function(ye){for(var Ie=1;Ie<arguments.length;Ie++){var je=arguments[Ie];for(var Ue in je)({}).hasOwnProperty.call(je,Ue)&&(ye[Ue]=je[Ue])}return ye},ve.apply(null,arguments)}function tt(ye,Ie){(Ie==null||Ie>ye.length)&&(Ie=ye.length);for(var je=0,Ue=Array(Ie);je<Ie;je++)Ue[je]=ye[je];return Ue}function Pt(ye){if(Array.isArray(ye))return tt(ye)}function Ut(ye){if(typeof Symbol!="undefined"&&ye[Symbol.iterator]!=null||ye["@@iterator"]!=null)return Array.from(ye)}function Bt(ye,Ie){if(ye){if(typeof ye=="string")return tt(ye,Ie);var je={}.toString.call(ye).slice(8,-1);return je==="Object"&&ye.constructor&&(je=ye.constructor.name),je==="Map"||je==="Set"?Array.from(ye):je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je)?tt(ye,Ie):void 0}}function Re(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Je(ye){return Pt(ye)||Ut(ye)||Bt(ye)||Re()}var pt=be(46394);function wt(ye){if(Array.isArray(ye))return ye}function ht(ye,Ie){var je=ye==null?null:typeof Symbol!="undefined"&&ye[Symbol.iterator]||ye["@@iterator"];if(je!=null){var Ue,gt,Ht,$t,an=[],Tn=!0,Un=!1;try{if(Ht=(je=je.call(ye)).next,Ie===0){if(Object(je)!==je)return;Tn=!1}else for(;!(Tn=(Ue=Ht.call(je)).done)&&(an.push(Ue.value),an.length!==Ie);Tn=!0);}catch(Mn){Un=!0,gt=Mn}finally{try{if(!Tn&&je.return!=null&&($t=je.return(),Object($t)!==$t))return}finally{if(Un)throw gt}}return an}}function Vt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ct(ye,Ie){return wt(ye)||ht(ye,Ie)||Bt(ye,Ie)||Vt()}var He=be(67294);function Te(ye){var Ie=He.useRef();Ie.current=ye;var je=He.useCallback(function(){for(var Ue,gt=arguments.length,Ht=new Array(gt),$t=0;$t<gt;$t++)Ht[$t]=arguments[$t];return(Ue=Ie.current)===null||Ue===void 0?void 0:Ue.call.apply(Ue,[Ie].concat(Ht))},[]);return je}function ne(ye){if(Array.isArray(ye))return ye}function te(ye,Ie){var je=ye==null?null:typeof Symbol!="undefined"&&ye[Symbol.iterator]||ye["@@iterator"];if(je!=null){var Ue,gt,Ht,$t,an=[],Tn=!0,Un=!1;try{if(Ht=(je=je.call(ye)).next,Ie===0){if(Object(je)!==je)return;Tn=!1}else for(;!(Tn=(Ue=Ht.call(je)).done)&&(an.push(Ue.value),an.length!==Ie);Tn=!0);}catch(Mn){Un=!0,gt=Mn}finally{try{if(!Tn&&je.return!=null&&($t=je.return(),Object($t)!==$t))return}finally{if(Un)throw gt}}return an}}function ue(ye,Ie){(Ie==null||Ie>ye.length)&&(Ie=ye.length);for(var je=0,Ue=new Array(Ie);je<Ie;je++)Ue[je]=ye[je];return Ue}function se(ye,Ie){if(ye){if(typeof ye=="string")return ue(ye,Ie);var je=Object.prototype.toString.call(ye).slice(8,-1);if(je==="Object"&&ye.constructor&&(je=ye.constructor.name),je==="Map"||je==="Set")return Array.from(ye);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return ue(ye,Ie)}}function ge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(ye,Ie){return ne(ye)||te(ye,Ie)||se(ye,Ie)||ge()}function xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Pe=xe()?He.useLayoutEffect:He.useEffect,Ke=function(Ie,je){var Ue=He.useRef(!0);Pe(function(){return Ie(Ue.current)},je),Pe(function(){return Ue.current=!1,function(){Ue.current=!0}},[])},qe=function(Ie,je){Ke(function(Ue){if(!Ue)return Ie()},je)},ft=Ke;function st(ye){var Ie=He.useRef(!1),je=He.useState(ye),Ue=me(je,2),gt=Ue[0],Ht=Ue[1];He.useEffect(function(){return Ie.current=!1,function(){Ie.current=!0}},[]);function $t(an,Tn){Tn&&Ie.current||Ht(an)}return[gt,$t]}function rt(ye){return ye!==void 0}function Tt(ye,Ie){var je=Ie||{},Ue=je.defaultValue,gt=je.value,Ht=je.onChange,$t=je.postState,an=st(function(){return rt(gt)?gt:rt(Ue)?typeof Ue=="function"?Ue():Ue:typeof ye=="function"?ye():ye}),Tn=me(an,2),Un=Tn[0],Mn=Tn[1],Ei=gt!==void 0?gt:Un,Ui=$t?$t(Ei):Ei,Ci=Te(Ht),Li=st([Ei]),Di=me(Li,2),Ni=Di[0],bn=Di[1];qe(function(){var ei=Ni[0];Un!==ei&&Ci(Un,ei)},[Ni]),qe(function(){rt(gt)||Mn(gt)},[gt]);var Yn=Te(function(ei,pi){Mn(ei,pi),bn([Ei],pi)});return[Ui,Yn]}function Mt(ye){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},Mt(ye)}var yt=be(17756);function Dt(ye,Ie,je){var Ue=He.useRef({});return(!("value"in Ue.current)||je(Ue.current.condition,Ie))&&(Ue.current.value=ye(),Ue.current.condition=Ie),Ue.current.value}var Nt=Symbol.for("react.element"),Bn=Symbol.for("react.transitional.element"),On=Symbol.for("react.fragment");function Qt(ye){return ye&&Mt(ye)==="object"&&(ye.$$typeof===Nt||ye.$$typeof===Bn)&&ye.type===On}var vn=Number(He.version.split(".")[0]),lt=function(Ie,je){typeof Ie=="function"?Ie(je):Mt(Ie)==="object"&&Ie&&"current"in Ie&&(Ie.current=je)},Ge=function(){for(var Ie=arguments.length,je=new Array(Ie),Ue=0;Ue<Ie;Ue++)je[Ue]=arguments[Ue];var gt=je.filter(Boolean);return gt.length<=1?gt[0]:function(Ht){je.forEach(function($t){lt($t,Ht)})}},Ne=function(){for(var Ie=arguments.length,je=new Array(Ie),Ue=0;Ue<Ie;Ue++)je[Ue]=arguments[Ue];return Dt(function(){return Ge.apply(void 0,je)},je,function(gt,Ht){return gt.length!==Ht.length||gt.every(function($t,an){return $t!==Ht[an]})})},Nn=function(Ie){var je,Ue;if(!Ie)return!1;if(Xn(Ie)&&vn>=19)return!0;var gt=(0,yt.isMemo)(Ie)?Ie.type.type:Ie.type;return!(typeof gt=="function"&&!((je=gt.prototype)!==null&&je!==void 0&&je.render)&&gt.$$typeof!==yt.ForwardRef||typeof Ie=="function"&&!((Ue=Ie.prototype)!==null&&Ue!==void 0&&Ue.render)&&Ie.$$typeof!==yt.ForwardRef)};function Xn(ye){return(0,He.isValidElement)(ye)&&!Qt(ye)}var Xt=function(Ie){return Xn(Ie)&&Nn(Ie)},ai=function(Ie){if(Ie&&Xn(Ie)){var je=Ie;return je.props.propertyIsEnumerable("ref")?je.props.ref:je.ref}return null};function xn(ye,Ie,je,Ue){if(!Ie.length)return je;var gt=_toArray(Ie),Ht=gt[0],$t=gt.slice(1),an;return!ye&&typeof Ht=="number"?an=[]:Array.isArray(ye)?an=_toConsumableArray(ye):an=_objectSpread({},ye),Ue&&je===void 0&&$t.length===1?delete an[Ht][$t[0]]:an[Ht]=xn(an[Ht],$t,je,Ue),an}function gi(ye,Ie,je){var Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ie.length&&Ue&&je===void 0&&!get(ye,Ie.slice(0,-1))?ye:xn(ye,Ie,je,Ue)}function Zt(ye){return _typeof(ye)==="object"&&ye!==null&&Object.getPrototypeOf(ye)===Object.prototype}function Ct(ye){return Array.isArray(ye)?[]:{}}var qt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function hi(){for(var ye=arguments.length,Ie=new Array(ye),je=0;je<ye;je++)Ie[je]=arguments[je];var Ue=Ct(Ie[0]);return Ie.forEach(function(gt){function Ht($t,an){var Tn=new Set(an),Un=get(gt,$t),Mn=Array.isArray(Un);if(Mn||Zt(Un)){if(!Tn.has(Un)){Tn.add(Un);var Ei=get(Ue,$t);Mn?Ue=gi(Ue,$t,[]):(!Ei||_typeof(Ei)!=="object")&&(Ue=gi(Ue,$t,Ct(Un))),qt(Un).forEach(function(Ui){Ht([].concat(_toConsumableArray($t),[Ui]),Tn)})}}else Ue=gi(Ue,$t,Un)}Ht([])}),Ue}var Kt={},Xe=[],Le=function(Ie){Xe.push(Ie)};function Me(ye,Ie){if(0)var je}function We(ye,Ie){if(0)var je}function $e(){Kt={}}function Be(ye,Ie,je){!Ie&&!Kt[je]&&(ye(!1,je),Kt[je]=!0)}function ut(ye,Ie){Be(Me,ye,Ie)}function Vn(ye,Ie){Be(We,ye,Ie)}ut.preMessage=Le,ut.resetWarned=$e,ut.noteOnce=Vn;var In=ut;function Cn(ye,Ie){var je=Object.assign({},ye);return Array.isArray(Ie)&&Ie.forEach(function(Ue){delete je[Ue]}),je}function Pn(ye,Ie){if(Mt(ye)!=="object"||ye===null)return ye;var je=ye[Symbol.toPrimitive];if(je!==void 0){var Ue=je.call(ye,Ie||"default");if(Mt(Ue)!=="object")return Ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ie==="string"?String:Number)(ye)}function oi(ye){var Ie=Pn(ye,"string");return Mt(Ie)==="symbol"?Ie:String(Ie)}function mn(ye,Ie,je){return Ie=oi(Ie),Ie in ye?Object.defineProperty(ye,Ie,{value:je,enumerable:!0,configurable:!0,writable:!0}):ye[Ie]=je,ye}function bi(ye,Ie){var je=Object.keys(ye);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(ye);Ie&&(Ue=Ue.filter(function(gt){return Object.getOwnPropertyDescriptor(ye,gt).enumerable})),je.push.apply(je,Ue)}return je}function _i(ye){for(var Ie=1;Ie<arguments.length;Ie++){var je=arguments[Ie]!=null?arguments[Ie]:{};Ie%2?bi(Object(je),!0).forEach(function(Ue){mn(ye,Ue,je[Ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ye,Object.getOwnPropertyDescriptors(je)):bi(Object(je)).forEach(function(Ue){Object.defineProperty(ye,Ue,Object.getOwnPropertyDescriptor(je,Ue))})}return ye}var Br=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Yi=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ki="".concat(Br," ").concat(Yi).split(/[\s\n]+/),Xr="aria-",Ki="data-";function lr(ye,Ie){return ye.indexOf(Ie)===0}function ar(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je;Ie===!1?je={aria:!0,data:!0,attr:!0}:Ie===!0?je={aria:!0}:je=_i({},Ie);var Ue={};return Object.keys(ye).forEach(function(gt){(je.aria&&(gt==="role"||lr(gt,Xr))||je.data&&lr(gt,Ki)||je.attr&&ki.includes(gt))&&(Ue[gt]=ye[gt])}),Ue}var kn=be(53550),Bi=be(98280),ea=be(94184),Zn=be.n(ea);function Wr(ye,Ie){return ye!==void 0?ye:Ie?"bottomRight":"bottomLeft"}var ra=He.createContext(null),sa=ra,Wa={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function ma(ye){var Ie=ye.popupElement,je=ye.popupStyle,Ue=ye.popupClassName,gt=ye.popupAlign,Ht=ye.transitionName,$t=ye.getPopupContainer,an=ye.children,Tn=ye.range,Un=ye.placement,Mn=ye.builtinPlacements,Ei=Mn===void 0?Wa:Mn,Ui=ye.direction,Ci=ye.visible,Li=ye.onClose,Di=He.useContext(sa),Ni=Di.prefixCls,bn="".concat(Ni,"-dropdown"),Yn=Wr(Un,Ui==="rtl");return He.createElement(Bi.Z,{showAction:[],hideAction:["click"],popupPlacement:Yn,builtinPlacements:Ei,prefixCls:bn,popupTransitionName:Ht,popup:Ie,popupAlign:gt,popupVisible:Ci,popupClassName:Zn()(Ue,(0,kn.Z)((0,kn.Z)({},"".concat(bn,"-range"),Tn),"".concat(bn,"-rtl"),Ui==="rtl")),popupStyle:je,stretch:"minWidth",getPopupContainer:$t,onPopupVisibleChange:function(pi){pi||Li()}},an)}var Ha=ma;function da(ye,Ie){for(var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Ue=String(ye);Ue.length<Ie;)Ue="".concat(je).concat(Ue);return Ue}function la(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function No(ye,Ie,je){var Ue=Je(ye);return Ue[Ie]=je,Ue}function ni(ye,Ie){var je={},Ue=Ie||Object.keys(ye);return Ue.forEach(function(gt){ye[gt]!==void 0&&(je[gt]=ye[gt])}),je}function Ee(ye,Ie,je){if(je)return je;switch(ye){case"time":return Ie.fieldTimeFormat;case"datetime":return Ie.fieldDateTimeFormat;case"month":return Ie.fieldMonthFormat;case"year":return Ie.fieldYearFormat;case"quarter":return Ie.fieldQuarterFormat;case"week":return Ie.fieldWeekFormat;default:return Ie.fieldDateFormat}}function pn(ye,Ie,je){var Ue=je!==void 0?je:Ie[Ie.length-1],gt=Ie.find(function(Ht){return ye[Ht]});return Ue!==gt?ye[gt]:void 0}function hn(ye){return ni(ye,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ri(ye,Ie,je,Ue){var gt=He.useMemo(function(){return ye||function($t,an){var Tn=$t;return Ie&&an.type==="date"?Ie(Tn,an.today):je&&an.type==="month"?je(Tn,an.locale):an.originNode}},[ye,je,Ie]),Ht=He.useCallback(function($t,an){return gt($t,(0,pt.Z)((0,pt.Z)({},an),{},{range:Ue}))},[gt,Ue]);return Ht}function Jn(ye,Ie){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ue=He.useState([!1,!1]),gt=ct(Ue,2),Ht=gt[0],$t=gt[1],an=function(Mn,Ei){$t(function(Ui){return No(Ui,Ei,Mn)})},Tn=He.useMemo(function(){return Ht.map(function(Un,Mn){if(Un)return!0;var Ei=ye[Mn];return Ei?!!(!je[Mn]&&!Ei||Ei&&Ie(Ei,{activeIndex:Mn})):!1})},[ye,Ht,Ie,je]);return[Tn,an]}function Wn(ye,Ie,je,Ue,gt){var Ht="",$t=[];return ye&&$t.push(gt?"hh":"HH"),Ie&&$t.push("mm"),je&&$t.push("ss"),Ht=$t.join(":"),Ue&&(Ht+=".SSS"),gt&&(Ht+=" A"),Ht}function nn(ye,Ie,je,Ue,gt,Ht){var $t=ye.fieldDateTimeFormat,an=ye.fieldDateFormat,Tn=ye.fieldTimeFormat,Un=ye.fieldMonthFormat,Mn=ye.fieldYearFormat,Ei=ye.fieldWeekFormat,Ui=ye.fieldQuarterFormat,Ci=ye.yearFormat,Li=ye.cellYearFormat,Di=ye.cellQuarterFormat,Ni=ye.dayFormat,bn=ye.cellDateFormat,Yn=Wn(Ie,je,Ue,gt,Ht);return(0,pt.Z)((0,pt.Z)({},ye),{},{fieldDateTimeFormat:$t||"YYYY-MM-DD ".concat(Yn),fieldDateFormat:an||"YYYY-MM-DD",fieldTimeFormat:Tn||Yn,fieldMonthFormat:Un||"YYYY-MM",fieldYearFormat:Mn||"YYYY",fieldWeekFormat:Ei||"gggg-wo",fieldQuarterFormat:Ui||"YYYY-[Q]Q",yearFormat:Ci||"YYYY",cellYearFormat:Li||"YYYY",cellQuarterFormat:Di||"[Q]Q",cellDateFormat:bn||Ni||"D"})}function ii(ye,Ie){var je=Ie.showHour,Ue=Ie.showMinute,gt=Ie.showSecond,Ht=Ie.showMillisecond,$t=Ie.use12Hours;return He.useMemo(function(){return nn(ye,je,Ue,gt,Ht,$t)},[ye,je,Ue,gt,Ht,$t])}var Wt=be(19706);function Gt(ye,Ie,je){return je!=null?je:Ie.some(function(Ue){return ye.includes(Ue)})}var Ft=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function un(ye){var Ie=ni(ye,Ft),je=ye.format,Ue=ye.picker,gt=null;return je&&(gt=je,Array.isArray(gt)&&(gt=gt[0]),gt=(0,Wt.Z)(gt)==="object"?gt.format:gt),Ue==="time"&&(Ie.format=gt),[Ie,gt]}function Ti(ye){return ye&&typeof ye=="string"}function Ri(ye,Ie,je,Ue){return[ye,Ie,je,Ue].some(function(gt){return gt!==void 0})}function di(ye,Ie,je,Ue,gt){var Ht=Ie,$t=je,an=Ue;if(!ye&&!Ht&&!$t&&!an&&!gt)Ht=!0,$t=!0,an=!0;else if(ye){var Tn,Un,Mn,Ei=[Ht,$t,an].some(function(Li){return Li===!1}),Ui=[Ht,$t,an].some(function(Li){return Li===!0}),Ci=Ei?!0:!Ui;Ht=(Tn=Ht)!==null&&Tn!==void 0?Tn:Ci,$t=(Un=$t)!==null&&Un!==void 0?Un:Ci,an=(Mn=an)!==null&&Mn!==void 0?Mn:Ci}return[Ht,$t,an,gt]}function Yt(ye){var Ie=ye.showTime,je=un(ye),Ue=ct(je,2),gt=Ue[0],Ht=Ue[1],$t=Ie&&(0,Wt.Z)(Ie)==="object"?Ie:{},an=(0,pt.Z)((0,pt.Z)({defaultOpenValue:$t.defaultOpenValue||$t.defaultValue},gt),$t),Tn=an.showMillisecond,Un=an.showHour,Mn=an.showMinute,Ei=an.showSecond,Ui=Ri(Un,Mn,Ei,Tn),Ci=di(Ui,Un,Mn,Ei,Tn),Li=ct(Ci,3);return Un=Li[0],Mn=Li[1],Ei=Li[2],[an,(0,pt.Z)((0,pt.Z)({},an),{},{showHour:Un,showMinute:Mn,showSecond:Ei,showMillisecond:Tn}),an.format,Ht]}function Hn(ye,Ie,je,Ue,gt){var Ht=ye==="time";if(ye==="datetime"||Ht){for(var $t=Ue,an=Ee(ye,gt,null),Tn=an,Un=[Ie,je],Mn=0;Mn<Un.length;Mn+=1){var Ei=la(Un[Mn])[0];if(Ti(Ei)){Tn=Ei;break}}var Ui=$t.showHour,Ci=$t.showMinute,Li=$t.showSecond,Di=$t.showMillisecond,Ni=$t.use12Hours,bn=Gt(Tn,["a","A","LT","LLL","LTS"],Ni),Yn=Ri(Ui,Ci,Li,Di);Yn||(Ui=Gt(Tn,["H","h","k","LT","LLL"]),Ci=Gt(Tn,["m","LT","LLL"]),Li=Gt(Tn,["s","LTS"]),Di=Gt(Tn,["SSS"]));var ei=di(Yn,Ui,Ci,Li,Di),pi=ct(ei,3);Ui=pi[0],Ci=pi[1],Li=pi[2];var rr=Ie||Wn(Ui,Ci,Li,Di,bn);return(0,pt.Z)((0,pt.Z)({},$t),{},{format:rr,showHour:Ui,showMinute:Ci,showSecond:Li,showMillisecond:Di,use12Hours:bn})}return null}function En(ye,Ie,je){if(Ie===!1)return null;var Ue=Ie&&(0,Wt.Z)(Ie)==="object"?Ie:{};return Ue.clearIcon||je||He.createElement("span",{className:"".concat(ye,"-clear-btn")})}var Fr=7;function si(ye,Ie,je){return!ye&&!Ie||ye===Ie?!0:!ye||!Ie?!1:je()}function tn(ye,Ie,je){return si(Ie,je,function(){var Ue=Math.floor(ye.getYear(Ie)/10),gt=Math.floor(ye.getYear(je)/10);return Ue===gt})}function Vi(ye,Ie,je){return si(Ie,je,function(){return ye.getYear(Ie)===ye.getYear(je)})}function Hr(ye,Ie){var je=Math.floor(ye.getMonth(Ie)/3);return je+1}function Or(ye,Ie,je){return si(Ie,je,function(){return Vi(ye,Ie,je)&&Hr(ye,Ie)===Hr(ye,je)})}function wn(ye,Ie,je){return si(Ie,je,function(){return Vi(ye,Ie,je)&&ye.getMonth(Ie)===ye.getMonth(je)})}function or(ye,Ie,je){return si(Ie,je,function(){return Vi(ye,Ie,je)&&wn(ye,Ie,je)&&ye.getDate(Ie)===ye.getDate(je)})}function Xo(ye,Ie,je){return si(Ie,je,function(){return ye.getHour(Ie)===ye.getHour(je)&&ye.getMinute(Ie)===ye.getMinute(je)&&ye.getSecond(Ie)===ye.getSecond(je)})}function Na(ye,Ie,je){return si(Ie,je,function(){return or(ye,Ie,je)&&Xo(ye,Ie,je)&&ye.getMillisecond(Ie)===ye.getMillisecond(je)})}function aa(ye,Ie,je,Ue){return si(je,Ue,function(){var gt=ye.locale.getWeekFirstDate(Ie,je),Ht=ye.locale.getWeekFirstDate(Ie,Ue);return Vi(ye,gt,Ht)&&ye.locale.getWeek(Ie,je)===ye.locale.getWeek(Ie,Ue)})}function hr(ye,Ie,je,Ue,gt){switch(gt){case"date":return or(ye,je,Ue);case"week":return aa(ye,Ie.locale,je,Ue);case"month":return wn(ye,je,Ue);case"quarter":return Or(ye,je,Ue);case"year":return Vi(ye,je,Ue);case"decade":return tn(ye,je,Ue);case"time":return Xo(ye,je,Ue);default:return Na(ye,je,Ue)}}function Nr(ye,Ie,je,Ue){return!Ie||!je||!Ue?!1:ye.isAfter(Ue,Ie)&&ye.isAfter(je,Ue)}function io(ye,Ie,je,Ue,gt){return hr(ye,Ie,je,Ue,gt)?!0:ye.isAfter(je,Ue)}function va(ye,Ie,je){var Ue=Ie.locale.getWeekFirstDay(ye),gt=Ie.setDate(je,1),Ht=Ie.getWeekDay(gt),$t=Ie.addDate(gt,Ue-Ht);return Ie.getMonth($t)===Ie.getMonth(je)&&Ie.getDate($t)>1&&($t=Ie.addDate($t,-7)),$t}function Ho(ye,Ie){var je=Ie.generateConfig,Ue=Ie.locale,gt=Ie.format;return ye?typeof gt=="function"?gt(ye):je.locale.format(Ue.locale,ye,gt):""}function vi(ye,Ie,je){var Ue=Ie,gt=["getHour","getMinute","getSecond","getMillisecond"],Ht=["setHour","setMinute","setSecond","setMillisecond"];return Ht.forEach(function($t,an){je?Ue=ye[$t](Ue,ye[gt[an]](je)):Ue=ye[$t](Ue,0)}),Ue}function lo(ye,Ie,je,Ue,gt){var Ht=Te(function($t,an){return!!(je&&je($t,an)||Ue&&ye.isAfter(Ue,$t)&&!hr(ye,Ie,Ue,$t,an.type)||gt&&ye.isAfter($t,gt)&&!hr(ye,Ie,gt,$t,an.type))});return Ht}function al(ye,Ie,je){return He.useMemo(function(){var Ue=Ee(ye,Ie,je),gt=la(Ue),Ht=gt[0],$t=(0,Wt.Z)(Ht)==="object"&&Ht.type==="mask"?Ht.format:null;return[gt.map(function(an){return typeof an=="string"||typeof an=="function"?an:an.format}),$t]},[ye,Ie,je])}function el(ye,Ie,je){return typeof ye[0]=="function"||je?!0:Ie}function Ns(ye,Ie,je,Ue){var gt=Te(function(Ht,$t){var an=(0,pt.Z)({type:Ie},$t);if(delete an.activeIndex,!ye.isValidate(Ht)||je&&je(Ht,an))return!0;if((Ie==="date"||Ie==="time")&&Ue){var Tn,Un=$t&&$t.activeIndex===1?"end":"start",Mn=((Tn=Ue.disabledTime)===null||Tn===void 0?void 0:Tn.call(Ue,Ht,Un,{from:an.from}))||{},Ei=Mn.disabledHours,Ui=Mn.disabledMinutes,Ci=Mn.disabledSeconds,Li=Mn.disabledMilliseconds,Di=Ue.disabledHours,Ni=Ue.disabledMinutes,bn=Ue.disabledSeconds,Yn=Ei||Di,ei=Ui||Ni,pi=Ci||bn,rr=ye.getHour(Ht),$i=ye.getMinute(Ht),sr=ye.getSecond(Ht),At=ye.getMillisecond(Ht);if(Yn&&Yn().includes(rr)||ei&&ei(rr).includes($i)||pi&&pi(rr,$i).includes(sr)||Li&&Li(rr,$i,sr).includes(At))return!0}return!1});return gt}function ln(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=He.useMemo(function(){var Ue=ye&&la(ye);return Ie&&Ue&&(Ue[1]=Ue[1]||Ue[0]),Ue},[ye,Ie]);return je}function Yo(ye,Ie){var je=ye.generateConfig,Ue=ye.locale,gt=ye.picker,Ht=gt===void 0?"date":gt,$t=ye.prefixCls,an=$t===void 0?"rc-picker":$t,Tn=ye.styles,Un=Tn===void 0?{}:Tn,Mn=ye.classNames,Ei=Mn===void 0?{}:Mn,Ui=ye.order,Ci=Ui===void 0?!0:Ui,Li=ye.components,Di=Li===void 0?{}:Li,Ni=ye.inputRender,bn=ye.allowClear,Yn=ye.clearIcon,ei=ye.needConfirm,pi=ye.multiple,rr=ye.format,$i=ye.inputReadOnly,sr=ye.disabledDate,At=ye.minDate,cr=ye.maxDate,Pr=ye.showTime,Ir=ye.value,Oo=ye.defaultValue,Ur=ye.pickerValue,Pi=ye.defaultPickerValue,qi=ln(Ir),Hi=ln(Oo),Lr=ln(Ur),Eo=ln(Pi),vr=Ht==="date"&&Pr?"datetime":Ht,qr=vr==="time"||vr==="datetime",xr=qr||pi,fr=ei!=null?ei:qr,_r=Yt(ye),Kr=ct(_r,4),Aa=Kr[0],Ya=Kr[1],bo=Kr[2],co=Kr[3],vo=ii(Ue,Ya),Qo=He.useMemo(function(){return Hn(vr,bo,co,Aa,vo)},[vr,bo,co,Aa,vo]),xa=He.useMemo(function(){return(0,pt.Z)((0,pt.Z)({},ye),{},{prefixCls:an,locale:vo,picker:Ht,styles:Un,classNames:Ei,order:Ci,components:(0,pt.Z)({input:Ni},Di),clearIcon:En(an,bn,Yn),showTime:Qo,value:qi,defaultValue:Hi,pickerValue:Lr,defaultPickerValue:Eo},Ie==null?void 0:Ie())},[ye]),Oa=al(vr,vo,rr),no=ct(Oa,2),Rr=no[0],wa=no[1],Pa=el(Rr,$i,pi),gs=lo(je,Ue,sr,At,cr),Fa=Ns(je,Ht,gs,Qo),Ja=He.useMemo(function(){return(0,pt.Z)((0,pt.Z)({},xa),{},{needConfirm:fr,inputReadOnly:Pa,disabledDate:gs})},[xa,fr,Pa,gs]);return[Ja,vr,xr,Rr,wa,Fa]}var Va=function(Ie){return+setTimeout(Ie,16)},Ao=function(Ie){return clearTimeout(Ie)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Va=function(Ie){return window.requestAnimationFrame(Ie)},Ao=function(Ie){return window.cancelAnimationFrame(Ie)});var ms=0,Ba=new Map;function $a(ye){Ba.delete(ye)}var Er=function(Ie){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ms+=1;var Ue=ms;function gt(Ht){if(Ht===0)$a(Ue),Ie();else{var $t=Va(function(){gt(Ht-1)});Ba.set(Ue,$t)}}return gt(je),Ue};Er.cancel=function(ye){var Ie=Ba.get(ye);return $a(ye),Ao(Ie)};var uo=Er;function So(ye,Ie,je){var Ue=Tt(Ie,{value:ye}),gt=ct(Ue,2),Ht=gt[0],$t=gt[1],an=He.useRef(ye),Tn=He.useRef(),Un=function(){uo.cancel(Tn.current)},Mn=Te(function(){$t(an.current),je&&Ht!==an.current&&je(an.current)}),Ei=Te(function(Ui,Ci){Un(),an.current=Ui,Ui||Ci?Mn():Tn.current=uo(Mn)});return He.useEffect(function(){return Un},[]),[Ht,Ei]}function _n(ye,Ie){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ue=arguments.length>3?arguments[3]:void 0,gt=je.every(function(Mn){return Mn})?!1:ye,Ht=So(gt,Ie||!1,Ue),$t=ct(Ht,2),an=$t[0],Tn=$t[1];function Un(Mn){var Ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!Ei.inherit||an)&&Tn(Mn,Ei.force)}return[an,Un]}function ka(ye){var Ie=He.useRef();return He.useImperativeHandle(ye,function(){var je;return{nativeElement:(je=Ie.current)===null||je===void 0?void 0:je.nativeElement,focus:function(gt){var Ht;(Ht=Ie.current)===null||Ht===void 0||Ht.focus(gt)},blur:function(){var gt;(gt=Ie.current)===null||gt===void 0||gt.blur()}}}),Ie}function An(ye,Ie){return He.useMemo(function(){return ye||(Ie?(In(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ie).map(function(je){var Ue=ct(je,2),gt=Ue[0],Ht=Ue[1];return{label:gt,value:Ht}})):[])},[ye,Ie])}function Po(ye,Ie){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ue=He.useRef(Ie);Ue.current=Ie,qe(function(){if(ye)Ue.current(ye);else{var gt=uo(function(){Ue.current(ye)},je);return function(){uo.cancel(gt)}}},[ye])}function Ws(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ue=He.useState(0),gt=ct(Ue,2),Ht=gt[0],$t=gt[1],an=He.useState(!1),Tn=ct(an,2),Un=Tn[0],Mn=Tn[1],Ei=He.useRef([]),Ui=He.useRef(null),Ci=He.useRef(null),Li=function(pi){Ui.current=pi},Di=function(pi){return Ui.current===pi},Ni=function(pi){Mn(pi)},bn=function(pi){return pi&&(Ci.current=pi),Ci.current},Yn=function(pi){var rr=Ei.current,$i=new Set(rr.filter(function(At){return pi[At]||Ie[At]})),sr=rr[rr.length-1]===0?1:0;return $i.size>=2||ye[sr]?null:sr};return Po(Un||je,function(){Un||(Ei.current=[],Li(null))}),He.useEffect(function(){Un&&Ei.current.push(Ht)},[Un,Ht]),[Un,Ni,bn,Ht,$t,Yn,Ei.current,Li,Di]}function ds(ye,Ie,je,Ue,gt,Ht){var $t=je[je.length-1],an=function(Un,Mn){var Ei=ct(ye,2),Ui=Ei[0],Ci=Ei[1],Li=(0,pt.Z)((0,pt.Z)({},Mn),{},{from:pn(ye,je)});return $t===1&&Ie[0]&&Ui&&!hr(Ue,gt,Ui,Un,Li.type)&&Ue.isAfter(Ui,Un)||$t===0&&Ie[1]&&Ci&&!hr(Ue,gt,Ci,Un,Li.type)&&Ue.isAfter(Un,Ci)?!0:Ht==null?void 0:Ht(Un,Li)};return an}function kl(ye,Ie,je,Ue){switch(Ie){case"date":case"week":return ye.addMonth(je,Ue);case"month":case"quarter":return ye.addYear(je,Ue);case"year":return ye.addYear(je,Ue*10);case"decade":return ye.addYear(je,Ue*100);default:return je}}var Ss=[];function Ua(ye,Ie,je,Ue,gt,Ht,$t,an){var Tn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Ss,Un=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Ss,Mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Ss,Ei=arguments.length>11?arguments[11]:void 0,Ui=arguments.length>12?arguments[12]:void 0,Ci=arguments.length>13?arguments[13]:void 0,Li=$t==="time",Di=Ht||0,Ni=function(Lr){var Eo=ye.getNow();return Li&&(Eo=vi(ye,Eo)),Tn[Lr]||je[Lr]||Eo},bn=ct(Un,2),Yn=bn[0],ei=bn[1],pi=Tt(function(){return Ni(0)},{value:Yn}),rr=ct(pi,2),$i=rr[0],sr=rr[1],At=Tt(function(){return Ni(1)},{value:ei}),cr=ct(At,2),Pr=cr[0],Ir=cr[1],Oo=He.useMemo(function(){var Hi=[$i,Pr][Di];return Li?Hi:vi(ye,Hi,Mn[Di])},[Li,$i,Pr,Di,ye,Mn]),Ur=function(Lr){var Eo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",vr=[sr,Ir][Di];vr(Lr);var qr=[$i,Pr];qr[Di]=Lr,Ei&&(!hr(ye,Ie,$i,qr[0],$t)||!hr(ye,Ie,Pr,qr[1],$t))&&Ei(qr,{source:Eo,range:Di===1?"end":"start",mode:Ue})},Pi=function(Lr,Eo){if(an){var vr={date:"month",week:"month",month:"year",quarter:"year"},qr=vr[$t];if(qr&&!hr(ye,Ie,Lr,Eo,qr))return kl(ye,$t,Eo,-1);if($t==="year"&&Lr){var xr=Math.floor(ye.getYear(Lr)/10),fr=Math.floor(ye.getYear(Eo)/10);if(xr!==fr)return kl(ye,$t,Eo,-1)}}return Eo},qi=He.useRef(null);return ft(function(){if(gt&&!Tn[Di]){var Hi=Li?null:ye.getNow();if(qi.current!==null&&qi.current!==Di?Hi=[$i,Pr][Di^1]:je[Di]?Hi=Di===0?je[0]:Pi(je[0],je[1]):je[Di^1]&&(Hi=je[Di^1]),Hi){Ui&&ye.isAfter(Ui,Hi)&&(Hi=Ui);var Lr=an?kl(ye,$t,Hi,1):Hi;Ci&&ye.isAfter(Lr,Ci)&&(Hi=an?kl(ye,$t,Ci,-1):Ci),Ur(Hi,"reset")}}},[gt,Di,je[Di]]),He.useEffect(function(){gt?qi.current=Di:qi.current=null},[gt,Di]),ft(function(){gt&&Tn&&Tn[Di]&&Ur(Tn[Di],"reset")},[gt,Di]),[Oo,Ur]}function us(ye,Ie){var je=He.useRef(ye),Ue=He.useState({}),gt=ct(Ue,2),Ht=gt[1],$t=function(Un){return Un&&Ie!==void 0?Ie:je.current},an=function(Un){je.current=Un,Ht({})};return[$t,an,$t(!0)]}var tl=[];function ts(ye,Ie,je){var Ue=function($t){return $t.map(function(an){return Ho(an,{generateConfig:ye,locale:Ie,format:je[0]})})},gt=function($t,an){for(var Tn=Math.max($t.length,an.length),Un=-1,Mn=0;Mn<Tn;Mn+=1){var Ei=$t[Mn]||null,Ui=an[Mn]||null;if(Ei!==Ui&&!Na(ye,Ei,Ui)){Un=Mn;break}}return[Un<0,Un!==0]};return[Ue,gt]}function wr(ye,Ie){return Je(ye).sort(function(je,Ue){return Ie.isAfter(je,Ue)?1:-1})}function at(ye){var Ie=us(ye),je=ct(Ie,2),Ue=je[0],gt=je[1],Ht=Te(function(){gt(ye)});return He.useEffect(function(){Ht()},[ye]),[Ue,gt]}function St(ye,Ie,je,Ue,gt,Ht,$t,an,Tn){var Un=Tt(Ht,{value:$t}),Mn=ct(Un,2),Ei=Mn[0],Ui=Mn[1],Ci=Ei||tl,Li=at(Ci),Di=ct(Li,2),Ni=Di[0],bn=Di[1],Yn=ts(ye,Ie,je),ei=ct(Yn,2),pi=ei[0],rr=ei[1],$i=Te(function(At){var cr=Je(At);if(Ue)for(var Pr=0;Pr<2;Pr+=1)cr[Pr]=cr[Pr]||null;else gt&&(cr=wr(cr.filter(function(Hi){return Hi}),ye));var Ir=rr(Ni(),cr),Oo=ct(Ir,2),Ur=Oo[0],Pi=Oo[1];if(!Ur&&(bn(cr),an)){var qi=pi(cr);an(cr,qi,{range:Pi?"end":"start"})}}),sr=function(){Tn&&Tn(Ni())};return[Ci,Ui,Ni,$i,sr]}function zt(ye,Ie,je,Ue,gt,Ht,$t,an,Tn,Un){var Mn=ye.generateConfig,Ei=ye.locale,Ui=ye.picker,Ci=ye.onChange,Li=ye.allowEmpty,Di=ye.order,Ni=Ht.some(function(Ur){return Ur})?!1:Di,bn=ts(Mn,Ei,$t),Yn=ct(bn,2),ei=Yn[0],pi=Yn[1],rr=us(Ie),$i=ct(rr,2),sr=$i[0],At=$i[1],cr=Te(function(){At(Ie)});He.useEffect(function(){cr()},[Ie]);var Pr=Te(function(Ur){var Pi=Ur===null,qi=Je(Ur||sr());if(Pi)for(var Hi=Math.max(Ht.length,qi.length),Lr=0;Lr<Hi;Lr+=1)Ht[Lr]||(qi[Lr]=null);Ni&&qi[0]&&qi[1]&&(qi=wr(qi,Mn)),gt(qi);var Eo=qi,vr=ct(Eo,2),qr=vr[0],xr=vr[1],fr=!qr,_r=!xr,Kr=Li?(!fr||Li[0])&&(!_r||Li[1]):!0,Aa=!Di||fr||_r||hr(Mn,Ei,qr,xr,Ui)||Mn.isAfter(xr,qr),Ya=(Ht[0]||!qr||!Un(qr,{activeIndex:0}))&&(Ht[1]||!xr||!Un(xr,{from:qr,activeIndex:1})),bo=Pi||Kr&&Aa&&Ya;if(bo){je(qi);var co=pi(qi,Ie),vo=ct(co,1),Qo=vo[0];Ci&&!Qo&&Ci(Pi&&qi.every(function(xa){return!xa})?null:qi,ei(qi))}return bo}),Ir=Te(function(Ur,Pi){var qi=No(sr(),Ur,Ue()[Ur]);At(qi),Pi&&Pr()}),Oo=!an&&!Tn;return Po(!Oo,function(){Oo&&(Pr(),gt(Ie),cr())},2),[Ir,Pr]}function gn(ye,Ie,je,Ue,gt){return Ie!=="date"&&Ie!=="time"?!1:je!==void 0?je:Ue!==void 0?Ue:!gt&&(ye==="date"||ye==="time")}function Kn(){return Kn=Object.assign?Object.assign.bind():function(ye){for(var Ie=1;Ie<arguments.length;Ie++){var je=arguments[Ie];for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&(ye[Ue]=je[Ue])}return ye},Kn.apply(this,arguments)}function Ii(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=[];return He.Children.forEach(ye,function(Ue){Ue==null&&!Ie.keepEmpty||(Array.isArray(Ue)?je=je.concat(Ii(Ue)):Qt(Ue)&&Ue.props?je=je.concat(Ii(Ue.props.children,Ie)):je.push(Ue))}),je}function Jt(ye){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},Jt(ye)}function Qn(ye,Ie){if(Jt(ye)!=="object"||ye===null)return ye;var je=ye[Symbol.toPrimitive];if(je!==void 0){var Ue=je.call(ye,Ie||"default");if(Jt(Ue)!=="object")return Ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ie==="string"?String:Number)(ye)}function Qi(ye){var Ie=Qn(ye,"string");return Jt(Ie)==="symbol"?Ie:String(Ie)}function wi(ye,Ie,je){return Ie=Qi(Ie),Ie in ye?Object.defineProperty(ye,Ie,{value:je,enumerable:!0,configurable:!0,writable:!0}):ye[Ie]=je,ye}function nr(ye,Ie){var je=Object.keys(ye);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(ye);Ie&&(Ue=Ue.filter(function(gt){return Object.getOwnPropertyDescriptor(ye,gt).enumerable})),je.push.apply(je,Ue)}return je}function Xi(ye){for(var Ie=1;Ie<arguments.length;Ie++){var je=arguments[Ie]!=null?arguments[Ie]:{};Ie%2?nr(Object(je),!0).forEach(function(Ue){wi(ye,Ue,je[Ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ye,Object.getOwnPropertyDescriptors(je)):nr(Object(je)).forEach(function(Ue){Object.defineProperty(ye,Ue,Object.getOwnPropertyDescriptor(je,Ue))})}return ye}var Si=be(73935);function pr(ye){return ye instanceof HTMLElement||ye instanceof SVGElement}function fn(ye){return ye&&Mt(ye)==="object"&&pr(ye.nativeElement)?ye.nativeElement:pr(ye)?ye:null}function eo(ye){var Ie=fn(ye);if(Ie)return Ie;if(ye instanceof He.Component){var je;return(je=Si.findDOMNode)===null||je===void 0?void 0:je.call(Si,ye)}return null}var so=He.createContext(null);function ya(ye){var Ie=ye.children,je=ye.onBatchResize,Ue=He.useRef(0),gt=He.useRef([]),Ht=He.useContext(so),$t=He.useCallback(function(an,Tn,Un){Ue.current+=1;var Mn=Ue.current;gt.current.push({size:an,element:Tn,data:Un}),Promise.resolve().then(function(){Mn===Ue.current&&(je==null||je(gt.current),gt.current=[])}),Ht==null||Ht(an,Tn,Un)},[je,Ht]);return He.createElement(so.Provider,{value:$t},Ie)}var fa=be(91033),Ia=new Map;function ns(ye){ye.forEach(function(Ie){var je,Ue=Ie.target;(je=Ia.get(Ue))===null||je===void 0||je.forEach(function(gt){return gt(Ue)})})}var Us=new fa.Z(ns),Ds=null,fl=null;function Hs(ye,Ie){Ia.has(ye)||(Ia.set(ye,new Set),Us.observe(ye)),Ia.get(ye).add(Ie)}function cn(ye,Ie){Ia.has(ye)&&(Ia.get(ye).delete(Ie),Ia.get(ye).size||(Us.unobserve(ye),Ia.delete(ye)))}function nl(ye,Ie){if(!(ye instanceof Ie))throw new TypeError("Cannot call a class as a function")}function dl(ye,Ie){for(var je=0;je<Ie.length;je++){var Ue=Ie[je];Ue.enumerable=Ue.enumerable||!1,Ue.configurable=!0,"value"in Ue&&(Ue.writable=!0),Object.defineProperty(ye,Qi(Ue.key),Ue)}}function gl(ye,Ie,je){return Ie&&dl(ye.prototype,Ie),je&&dl(ye,je),Object.defineProperty(ye,"prototype",{writable:!1}),ye}function Ys(ye,Ie){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ue,gt){return Ue.__proto__=gt,Ue},Ys(ye,Ie)}function Ul(ye,Ie){if(typeof Ie!="function"&&Ie!==null)throw new TypeError("Super expression must either be null or a function");ye.prototype=Object.create(Ie&&Ie.prototype,{constructor:{value:ye,writable:!0,configurable:!0}}),Object.defineProperty(ye,"prototype",{writable:!1}),Ie&&Ys(ye,Ie)}function hu(ye){return hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(je){return je.__proto__||Object.getPrototypeOf(je)},hu(ye)}function fc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(ye){return!1}}function _s(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}function il(ye,Ie){if(Ie&&(Jt(Ie)==="object"||typeof Ie=="function"))return Ie;if(Ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _s(ye)}function Ra(ye){var Ie=fc();return function(){var Ue=hu(ye),gt;if(Ie){var Ht=hu(this).constructor;gt=Reflect.construct(Ue,arguments,Ht)}else gt=Ue.apply(this,arguments);return il(this,gt)}}var Xa=function(ye){Ul(je,ye);var Ie=Ra(je);function je(){return nl(this,je),Ie.apply(this,arguments)}return gl(je,[{key:"render",value:function(){return this.props.children}}]),je}(He.Component);function Is(ye,Ie){var je=ye.children,Ue=ye.disabled,gt=He.useRef(null),Ht=He.useRef(null),$t=He.useContext(so),an=typeof je=="function",Tn=an?je(gt):je,Un=He.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Mn=!an&&He.isValidElement(Tn)&&Nn(Tn),Ei=Mn?ai(Tn):null,Ui=Ne(Ei,gt),Ci=function(){var bn;return eo(gt.current)||(gt.current&&Jt(gt.current)==="object"?eo((bn=gt.current)===null||bn===void 0?void 0:bn.nativeElement):null)||eo(Ht.current)};He.useImperativeHandle(Ie,function(){return Ci()});var Li=He.useRef(ye);Li.current=ye;var Di=He.useCallback(function(Ni){var bn=Li.current,Yn=bn.onResize,ei=bn.data,pi=Ni.getBoundingClientRect(),rr=pi.width,$i=pi.height,sr=Ni.offsetWidth,At=Ni.offsetHeight,cr=Math.floor(rr),Pr=Math.floor($i);if(Un.current.width!==cr||Un.current.height!==Pr||Un.current.offsetWidth!==sr||Un.current.offsetHeight!==At){var Ir={width:cr,height:Pr,offsetWidth:sr,offsetHeight:At};Un.current=Ir;var Oo=sr===Math.round(rr)?rr:sr,Ur=At===Math.round($i)?$i:At,Pi=Xi(Xi({},Ir),{},{offsetWidth:Oo,offsetHeight:Ur});$t==null||$t(Pi,Ni,ei),Yn&&Promise.resolve().then(function(){Yn(Pi,Ni)})}},[]);return He.useEffect(function(){var Ni=Ci();return Ni&&!Ue&&Hs(Ni,Di),function(){return cn(Ni,Di)}},[gt.current,Ue]),He.createElement(Xa,{ref:Ht},Mn?He.cloneElement(Tn,{ref:Ui}):Tn)}var pl=He.forwardRef(Is),Mo=pl,$u="rc-observer-key";function Pu(ye,Ie){var je=ye.children,Ue=typeof je=="function"?[je]:Ii(je);return Ue.map(function(gt,Ht){var $t=(gt==null?void 0:gt.key)||"".concat($u,"-").concat(Ht);return He.createElement(Mo,Kn({},ye,{key:$t,ref:Ht===0?Ie:void 0}),gt)})}var $l=He.forwardRef(Pu);$l.Collection=ya;var ou=$l;function gc(ye,Ie,je,Ue,gt,Ht){var $t=ye;function an(Ei,Ui,Ci){var Li=Ht[Ei]($t),Di=Ci.find(function(ei){return ei.value===Li});if(!Di||Di.disabled){var Ni=Ci.filter(function(ei){return!ei.disabled}),bn=Je(Ni).reverse(),Yn=bn.find(function(ei){return ei.value<=Li})||Ni[0];Yn&&(Li=Yn.value,$t=Ht[Ui]($t,Li))}return Li}var Tn=an("getHour","setHour",Ie()),Un=an("getMinute","setMinute",je(Tn)),Mn=an("getSecond","setSecond",Ue(Tn,Un));return an("getMillisecond","setMillisecond",gt(Tn,Un,Mn)),$t}function kr(){return[]}function hl(ye,Ie){for(var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,gt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Ht=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,$t=[],an=je>=1?je|0:1,Tn=ye;Tn<=Ie;Tn+=an){var Un=gt.includes(Tn);(!Un||!Ue)&&$t.push({label:da(Tn,Ht),value:Tn,disabled:Un})}return $t}function Rs(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2?arguments[2]:void 0,Ue=Ie||{},gt=Ue.use12Hours,Ht=Ue.hourStep,$t=Ht===void 0?1:Ht,an=Ue.minuteStep,Tn=an===void 0?1:an,Un=Ue.secondStep,Mn=Un===void 0?1:Un,Ei=Ue.millisecondStep,Ui=Ei===void 0?100:Ei,Ci=Ue.hideDisabledOptions,Li=Ue.disabledTime,Di=Ue.disabledHours,Ni=Ue.disabledMinutes,bn=Ue.disabledSeconds,Yn=He.useMemo(function(){return je||ye.getNow()},[je,ye]);if(0)var ei,pi,rr;var $i=He.useCallback(function(xr){var fr=(Li==null?void 0:Li(xr))||{};return[fr.disabledHours||Di||kr,fr.disabledMinutes||Ni||kr,fr.disabledSeconds||bn||kr,fr.disabledMilliseconds||kr]},[Li,Di,Ni,bn]),sr=He.useMemo(function(){return $i(Yn)},[Yn,$i]),At=ct(sr,4),cr=At[0],Pr=At[1],Ir=At[2],Oo=At[3],Ur=He.useCallback(function(xr,fr,_r,Kr){var Aa=hl(0,23,$t,Ci,xr()),Ya=gt?Aa.map(function(Qo){return(0,pt.Z)((0,pt.Z)({},Qo),{},{label:da(Qo.value%12||12,2)})}):Aa,bo=function(xa){return hl(0,59,Tn,Ci,fr(xa))},co=function(xa,Oa){return hl(0,59,Mn,Ci,_r(xa,Oa))},vo=function(xa,Oa,no){return hl(0,999,Ui,Ci,Kr(xa,Oa,no),3)};return[Ya,bo,co,vo]},[Ci,$t,gt,Ui,Tn,Mn]),Pi=He.useMemo(function(){return Ur(cr,Pr,Ir,Oo)},[Ur,cr,Pr,Ir,Oo]),qi=ct(Pi,4),Hi=qi[0],Lr=qi[1],Eo=qi[2],vr=qi[3],qr=function(fr,_r){var Kr=function(){return Hi},Aa=Lr,Ya=Eo,bo=vr;if(_r){var co=$i(_r),vo=ct(co,4),Qo=vo[0],xa=vo[1],Oa=vo[2],no=vo[3],Rr=Ur(Qo,xa,Oa,no),wa=ct(Rr,4),Pa=wa[0],gs=wa[1],Fa=wa[2],Ja=wa[3];Kr=function(){return Pa},Aa=gs,Ya=Fa,bo=Ja}var Es=gc(fr,Kr,Aa,Ya,bo,ye);return Es};return[qr,Hi,Lr,Eo,vr]}function Bu(ye){var Ie=ye.mode,je=ye.internalMode,Ue=ye.renderExtraFooter,gt=ye.showNow,Ht=ye.showTime,$t=ye.onSubmit,an=ye.onNow,Tn=ye.invalid,Un=ye.needConfirm,Mn=ye.generateConfig,Ei=ye.disabledDate,Ui=He.useContext(sa),Ci=Ui.prefixCls,Li=Ui.locale,Di=Ui.button,Ni=Di===void 0?"button":Di,bn=Mn.getNow(),Yn=Rs(Mn,Ht,bn),ei=ct(Yn,1),pi=ei[0],rr=Ue==null?void 0:Ue(Ie),$i=Ei(bn,{type:Ie}),sr=function(){if(!$i){var Pi=pi(bn);an(Pi)}},At="".concat(Ci,"-now"),cr="".concat(At,"-btn"),Pr=gt&&He.createElement("li",{className:At},He.createElement("a",{className:Zn()(cr,$i&&"".concat(cr,"-disabled")),"aria-disabled":$i,onClick:sr},je==="date"?Li.today:Li.now)),Ir=Un&&He.createElement("li",{className:"".concat(Ci,"-ok")},He.createElement(Ni,{disabled:Tn,onClick:$t},Li.ok)),Oo=(Pr||Ir)&&He.createElement("ul",{className:"".concat(Ci,"-ranges")},Pr,Ir);return!rr&&!Oo?null:He.createElement("div",{className:"".concat(Ci,"-footer")},rr&&He.createElement("div",{className:"".concat(Ci,"-footer-extra")},rr),Oo)}function zu(ye,Ie,je){function Ue(gt,Ht){var $t=gt.findIndex(function(Tn){return hr(ye,Ie,Tn,Ht,je)});if($t===-1)return[].concat(Je(gt),[Ht]);var an=Je(gt);return an.splice($t,1),an}return Ue}var Ou=He.createContext(null);function Sa(){return He.useContext(Ou)}function Lu(ye,Ie){var je=ye.prefixCls,Ue=ye.generateConfig,gt=ye.locale,Ht=ye.disabledDate,$t=ye.minDate,an=ye.maxDate,Tn=ye.cellRender,Un=ye.hoverValue,Mn=ye.hoverRangeValue,Ei=ye.onHover,Ui=ye.values,Ci=ye.pickerValue,Li=ye.onSelect,Di=ye.prevIcon,Ni=ye.nextIcon,bn=ye.superPrevIcon,Yn=ye.superNextIcon,ei=Ue.getNow(),pi={now:ei,values:Ui,pickerValue:Ci,prefixCls:je,disabledDate:Ht,minDate:$t,maxDate:an,cellRender:Tn,hoverValue:Un,hoverRangeValue:Mn,onHover:Ei,locale:gt,generateConfig:Ue,onSelect:Li,panelType:Ie,prevIcon:Di,nextIcon:Ni,superPrevIcon:bn,superNextIcon:Yn};return[pi,ei]}var Fl=He.createContext({});function Il(ye){for(var Ie=ye.rowNum,je=ye.colNum,Ue=ye.baseDate,gt=ye.getCellDate,Ht=ye.prefixColumn,$t=ye.rowClassName,an=ye.titleFormat,Tn=ye.getCellText,Un=ye.getCellClassName,Mn=ye.headerCells,Ei=ye.cellSelection,Ui=Ei===void 0?!0:Ei,Ci=ye.disabledDate,Li=Sa(),Di=Li.prefixCls,Ni=Li.panelType,bn=Li.now,Yn=Li.disabledDate,ei=Li.cellRender,pi=Li.onHover,rr=Li.hoverValue,$i=Li.hoverRangeValue,sr=Li.generateConfig,At=Li.values,cr=Li.locale,Pr=Li.onSelect,Ir=Ci||Yn,Oo="".concat(Di,"-cell"),Ur=He.useContext(Fl),Pi=Ur.onCellDblClick,qi=function(_r){return At.some(function(Kr){return Kr&&hr(sr,cr,_r,Kr,Ni)})},Hi=[],Lr=0;Lr<Ie;Lr+=1){for(var Eo=[],vr=void 0,qr=function(){var _r=Lr*je+xr,Kr=gt(Ue,_r),Aa=Ir==null?void 0:Ir(Kr,{type:Ni});xr===0&&(vr=Kr,Ht&&Eo.push(Ht(vr)));var Ya=!1,bo=!1,co=!1;if(Ui&&$i){var vo=ct($i,2),Qo=vo[0],xa=vo[1];Ya=Nr(sr,Qo,xa,Kr),bo=hr(sr,cr,Kr,Qo,Ni),co=hr(sr,cr,Kr,xa,Ni)}var Oa=an?Ho(Kr,{locale:cr,format:an,generateConfig:sr}):void 0,no=He.createElement("div",{className:"".concat(Oo,"-inner")},Tn(Kr));Eo.push(He.createElement("td",{key:xr,title:Oa,className:Zn()(Oo,(0,pt.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)({},"".concat(Oo,"-disabled"),Aa),"".concat(Oo,"-hover"),(rr||[]).some(function(Rr){return hr(sr,cr,Kr,Rr,Ni)})),"".concat(Oo,"-in-range"),Ya&&!bo&&!co),"".concat(Oo,"-range-start"),bo),"".concat(Oo,"-range-end"),co),"".concat(Di,"-cell-selected"),!$i&&Ni!=="week"&&qi(Kr)),Un(Kr))),onClick:function(){Aa||Pr(Kr)},onDoubleClick:function(){!Aa&&Pi&&Pi()},onMouseEnter:function(){Aa||pi==null||pi(Kr)},onMouseLeave:function(){Aa||pi==null||pi(null)}},ei?ei(Kr,{prefixCls:Di,originNode:no,today:bn,type:Ni,locale:cr}):no))},xr=0;xr<je;xr+=1)qr();Hi.push(He.createElement("tr",{key:Lr,className:$t==null?void 0:$t(vr)},Eo))}return He.createElement("div",{className:"".concat(Di,"-body")},He.createElement("table",{className:"".concat(Di,"-content")},Mn&&He.createElement("thead",null,He.createElement("tr",null,Mn)),He.createElement("tbody",null,Hi)))}var eu={visibility:"hidden"};function Cc(ye){var Ie=ye.offset,je=ye.superOffset,Ue=ye.onChange,gt=ye.getStart,Ht=ye.getEnd,$t=ye.children,an=Sa(),Tn=an.prefixCls,Un=an.prevIcon,Mn=Un===void 0?"\u2039":Un,Ei=an.nextIcon,Ui=Ei===void 0?"\u203A":Ei,Ci=an.superPrevIcon,Li=Ci===void 0?"\xAB":Ci,Di=an.superNextIcon,Ni=Di===void 0?"\xBB":Di,bn=an.minDate,Yn=an.maxDate,ei=an.generateConfig,pi=an.locale,rr=an.pickerValue,$i=an.panelType,sr="".concat(Tn,"-header"),At=He.useContext(Fl),cr=At.hidePrev,Pr=At.hideNext,Ir=At.hideHeader,Oo=He.useMemo(function(){if(!bn||!Ie||!Ht)return!1;var fr=Ht(Ie(-1,rr));return!io(ei,pi,fr,bn,$i)},[bn,Ie,rr,Ht,ei,pi,$i]),Ur=He.useMemo(function(){if(!bn||!je||!Ht)return!1;var fr=Ht(je(-1,rr));return!io(ei,pi,fr,bn,$i)},[bn,je,rr,Ht,ei,pi,$i]),Pi=He.useMemo(function(){if(!Yn||!Ie||!gt)return!1;var fr=gt(Ie(1,rr));return!io(ei,pi,Yn,fr,$i)},[Yn,Ie,rr,gt,ei,pi,$i]),qi=He.useMemo(function(){if(!Yn||!je||!gt)return!1;var fr=gt(je(1,rr));return!io(ei,pi,Yn,fr,$i)},[Yn,je,rr,gt,ei,pi,$i]),Hi=function(_r){Ie&&Ue(Ie(_r,rr))},Lr=function(_r){je&&Ue(je(_r,rr))};if(Ir)return null;var Eo="".concat(sr,"-prev-btn"),vr="".concat(sr,"-next-btn"),qr="".concat(sr,"-super-prev-btn"),xr="".concat(sr,"-super-next-btn");return He.createElement("div",{className:sr},je&&He.createElement("button",{type:"button","aria-label":pi.previousYear,onClick:function(){return Lr(-1)},tabIndex:-1,className:Zn()(qr,Ur&&"".concat(qr,"-disabled")),disabled:Ur,style:cr?eu:{}},Li),Ie&&He.createElement("button",{type:"button","aria-label":pi.previousMonth,onClick:function(){return Hi(-1)},tabIndex:-1,className:Zn()(Eo,Oo&&"".concat(Eo,"-disabled")),disabled:Oo,style:cr?eu:{}},Mn),He.createElement("div",{className:"".concat(sr,"-view")},$t),Ie&&He.createElement("button",{type:"button","aria-label":pi.nextMonth,onClick:function(){return Hi(1)},tabIndex:-1,className:Zn()(vr,Pi&&"".concat(vr,"-disabled")),disabled:Pi,style:Pr?eu:{}},Ui),je&&He.createElement("button",{type:"button","aria-label":pi.nextYear,onClick:function(){return Lr(1)},tabIndex:-1,className:Zn()(xr,qi&&"".concat(xr,"-disabled")),disabled:qi,style:Pr?eu:{}},Ni))}var du=Cc;function Ol(ye){var Ie=ye.prefixCls,je=ye.panelName,Ue=je===void 0?"date":je,gt=ye.locale,Ht=ye.generateConfig,$t=ye.pickerValue,an=ye.onPickerValueChange,Tn=ye.onModeChange,Un=ye.mode,Mn=Un===void 0?"date":Un,Ei=ye.disabledDate,Ui=ye.onSelect,Ci=ye.onHover,Li=ye.showWeek,Di="".concat(Ie,"-").concat(Ue,"-panel"),Ni="".concat(Ie,"-cell"),bn=Mn==="week",Yn=Lu(ye,Mn),ei=ct(Yn,2),pi=ei[0],rr=ei[1],$i=Ht.locale.getWeekFirstDay(gt.locale),sr=Ht.setDate($t,1),At=va(gt.locale,Ht,sr),cr=Ht.getMonth($t),Pr=Li===void 0?bn:Li,Ir=Pr?function(fr){var _r=Ei==null?void 0:Ei(fr,{type:"week"});return He.createElement("td",{key:"week",className:Zn()(Ni,"".concat(Ni,"-week"),(0,kn.Z)({},"".concat(Ni,"-disabled"),_r)),onClick:function(){_r||Ui(fr)},onMouseEnter:function(){_r||Ci==null||Ci(fr)},onMouseLeave:function(){_r||Ci==null||Ci(null)}},He.createElement("div",{className:"".concat(Ni,"-inner")},Ht.locale.getWeek(gt.locale,fr)))}:null,Oo=[],Ur=gt.shortWeekDays||(Ht.locale.getShortWeekDays?Ht.locale.getShortWeekDays(gt.locale):[]);Ir&&Oo.push(He.createElement("th",{key:"empty"},He.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},gt.week)));for(var Pi=0;Pi<Fr;Pi+=1)Oo.push(He.createElement("th",{key:Pi},Ur[(Pi+$i)%Fr]));var qi=function(_r,Kr){return Ht.addDate(_r,Kr)},Hi=function(_r){return Ho(_r,{locale:gt,format:gt.cellDateFormat,generateConfig:Ht})},Lr=function(_r){var Kr=(0,kn.Z)((0,kn.Z)({},"".concat(Ie,"-cell-in-view"),wn(Ht,_r,$t)),"".concat(Ie,"-cell-today"),or(Ht,_r,rr));return Kr},Eo=gt.shortMonths||(Ht.locale.getShortMonths?Ht.locale.getShortMonths(gt.locale):[]),vr=He.createElement("button",{type:"button","aria-label":gt.yearSelect,key:"year",onClick:function(){Tn("year",$t)},tabIndex:-1,className:"".concat(Ie,"-year-btn")},Ho($t,{locale:gt,format:gt.yearFormat,generateConfig:Ht})),qr=He.createElement("button",{type:"button","aria-label":gt.monthSelect,key:"month",onClick:function(){Tn("month",$t)},tabIndex:-1,className:"".concat(Ie,"-month-btn")},gt.monthFormat?Ho($t,{locale:gt,format:gt.monthFormat,generateConfig:Ht}):Eo[cr]),xr=gt.monthBeforeYear?[qr,vr]:[vr,qr];return He.createElement(Ou.Provider,{value:pi},He.createElement("div",{className:Zn()(Di,Li&&"".concat(Di,"-show-week"))},He.createElement(du,{offset:function(_r){return Ht.addMonth($t,_r)},superOffset:function(_r){return Ht.addYear($t,_r)},onChange:an,getStart:function(_r){return Ht.setDate(_r,1)},getEnd:function(_r){var Kr=Ht.setDate(_r,1);return Kr=Ht.addMonth(Kr,1),Ht.addDate(Kr,-1)}},xr),He.createElement(Il,ve({titleFormat:gt.fieldDateFormat},ye,{colNum:Fr,rowNum:6,baseDate:At,headerCells:Oo,getCellDate:qi,getCellText:Hi,getCellClassName:Lr,prefixColumn:Ir,cellSelection:!bn}))))}var Cu=function(ye){if(!ye)return!1;if(ye instanceof Element){if(ye.offsetParent)return!0;if(ye.getBBox){var Ie=ye.getBBox(),je=Ie.width,Ue=Ie.height;if(je||Ue)return!0}if(ye.getBoundingClientRect){var gt=ye.getBoundingClientRect(),Ht=gt.width,$t=gt.height;if(Ht||$t)return!0}}return!1},Wc=1/3;function ah(ye,Ie){var je=He.useRef(!1),Ue=He.useRef(null),gt=He.useRef(null),Ht=function(){return je.current},$t=function(){uo.cancel(Ue.current),je.current=!1},an=He.useRef(),Tn=function(){var Ei=ye.current;if(gt.current=null,an.current=0,Ei){var Ui=Ei.querySelector('[data-value="'.concat(Ie,'"]')),Ci=Ei.querySelector("li"),Li=function Di(){$t(),je.current=!0,an.current+=1;var Ni=Ei.scrollTop,bn=Ci.offsetTop,Yn=Ui.offsetTop,ei=Yn-bn;if(Yn===0&&Ui!==Ci||!Cu(Ei)){an.current<=5&&(Ue.current=uo(Di));return}var pi=Ni+(ei-Ni)*Wc,rr=Math.abs(ei-pi);if(gt.current!==null&&gt.current<rr){$t();return}if(gt.current=rr,rr<=1){Ei.scrollTop=ei,$t();return}Ei.scrollTop=pi,Ue.current=uo(Di)};Ui&&Ci&&Li()}},Un=Te(Tn);return[Un,$t,Ht]}var Hc=300;function Yh(ye){return ye.map(function(Ie){var je=Ie.value,Ue=Ie.label,gt=Ie.disabled;return[je,Ue,gt].join(",")}).join(";")}function Wu(ye){var Ie=ye.units,je=ye.value,Ue=ye.optionalValue,gt=ye.type,Ht=ye.onChange,$t=ye.onHover,an=ye.onDblClick,Tn=ye.changeOnScroll,Un=Sa(),Mn=Un.prefixCls,Ei=Un.cellRender,Ui=Un.now,Ci=Un.locale,Li="".concat(Mn,"-time-panel"),Di="".concat(Mn,"-time-panel-cell"),Ni=He.useRef(null),bn=He.useRef(),Yn=function(){clearTimeout(bn.current)},ei=ah(Ni,je!=null?je:Ue),pi=ct(ei,3),rr=pi[0],$i=pi[1],sr=pi[2];ft(function(){return rr(),Yn(),function(){$i(),Yn()}},[je,Ue,Yh(Ie)]);var At=function(Ir){Yn();var Oo=Ir.target;!sr()&&Tn&&(bn.current=setTimeout(function(){var Ur=Ni.current,Pi=Ur.querySelector("li").offsetTop,qi=Array.from(Ur.querySelectorAll("li")),Hi=qi.map(function(xr){return xr.offsetTop-Pi}),Lr=Hi.map(function(xr,fr){return Ie[fr].disabled?Number.MAX_SAFE_INTEGER:Math.abs(xr-Oo.scrollTop)}),Eo=Math.min.apply(Math,Je(Lr)),vr=Lr.findIndex(function(xr){return xr===Eo}),qr=Ie[vr];qr&&!qr.disabled&&Ht(qr.value)},Hc))},cr="".concat(Li,"-column");return He.createElement("ul",{className:cr,ref:Ni,"data-type":gt,onScroll:At},Ie.map(function(Pr){var Ir=Pr.label,Oo=Pr.value,Ur=Pr.disabled,Pi=He.createElement("div",{className:"".concat(Di,"-inner")},Ir);return He.createElement("li",{key:Oo,className:Zn()(Di,(0,kn.Z)((0,kn.Z)({},"".concat(Di,"-selected"),je===Oo),"".concat(Di,"-disabled"),Ur)),onClick:function(){Ur||Ht(Oo)},onDoubleClick:function(){!Ur&&an&&an()},onMouseEnter:function(){$t(Oo)},onMouseLeave:function(){$t(null)},"data-value":Oo},Ei?Ei(Oo,{prefixCls:Mn,originNode:Pi,today:Ui,type:"time",subType:gt,locale:Ci}):Pi)}))}function El(ye){return ye<12}function Hu(ye){var Ie=ye.showHour,je=ye.showMinute,Ue=ye.showSecond,gt=ye.showMillisecond,Ht=ye.use12Hours,$t=ye.changeOnScroll,an=Sa(),Tn=an.prefixCls,Un=an.values,Mn=an.generateConfig,Ei=an.locale,Ui=an.onSelect,Ci=an.onHover,Li=Ci===void 0?function(){}:Ci,Di=an.pickerValue,Ni=(Un==null?void 0:Un[0])||null,bn=He.useContext(Fl),Yn=bn.onCellDblClick,ei=Rs(Mn,ye,Ni),pi=ct(ei,5),rr=pi[0],$i=pi[1],sr=pi[2],At=pi[3],cr=pi[4],Pr=function(Wo){var os=Ni&&Mn[Wo](Ni),vs=Di&&Mn[Wo](Di);return[os,vs]},Ir=Pr("getHour"),Oo=ct(Ir,2),Ur=Oo[0],Pi=Oo[1],qi=Pr("getMinute"),Hi=ct(qi,2),Lr=Hi[0],Eo=Hi[1],vr=Pr("getSecond"),qr=ct(vr,2),xr=qr[0],fr=qr[1],_r=Pr("getMillisecond"),Kr=ct(_r,2),Aa=Kr[0],Ya=Kr[1],bo=Ur===null?null:El(Ur)?"am":"pm",co=He.useMemo(function(){return Ht?El(Ur)?$i.filter(function(jr){return El(jr.value)}):$i.filter(function(jr){return!El(jr.value)}):$i},[Ur,$i,Ht]),vo=function(Wo,os){var vs,Ps=Wo.filter(function(bl){return!bl.disabled});return os!=null?os:Ps==null||(vs=Ps[0])===null||vs===void 0?void 0:vs.value},Qo=vo($i,Ur),xa=He.useMemo(function(){return sr(Qo)},[sr,Qo]),Oa=vo(xa,Lr),no=He.useMemo(function(){return At(Qo,Oa)},[At,Qo,Oa]),Rr=vo(no,xr),wa=He.useMemo(function(){return cr(Qo,Oa,Rr)},[cr,Qo,Oa,Rr]),Pa=vo(wa,Aa),gs=He.useMemo(function(){if(!Ht)return[];var jr=Mn.getNow(),Wo=Mn.setHour(jr,6),os=Mn.setHour(jr,18),vs=function(bl,ul){var Nu=Ei.cellMeridiemFormat;return Nu?Ho(bl,{generateConfig:Mn,locale:Ei,format:Nu}):ul};return[{label:vs(Wo,"AM"),value:"am",disabled:$i.every(function(Ps){return Ps.disabled||!El(Ps.value)})},{label:vs(os,"PM"),value:"pm",disabled:$i.every(function(Ps){return Ps.disabled||El(Ps.value)})}]},[$i,Ht,Mn,Ei]),Fa=function(Wo){var os=rr(Wo);Ui(os)},Ja=He.useMemo(function(){var jr=Ni||Di||Mn.getNow(),Wo=function(vs){return vs!=null};return Wo(Ur)?(jr=Mn.setHour(jr,Ur),jr=Mn.setMinute(jr,Lr),jr=Mn.setSecond(jr,xr),jr=Mn.setMillisecond(jr,Aa)):Wo(Pi)?(jr=Mn.setHour(jr,Pi),jr=Mn.setMinute(jr,Eo),jr=Mn.setSecond(jr,fr),jr=Mn.setMillisecond(jr,Ya)):Wo(Qo)&&(jr=Mn.setHour(jr,Qo),jr=Mn.setMinute(jr,Oa),jr=Mn.setSecond(jr,Rr),jr=Mn.setMillisecond(jr,Pa)),jr},[Ni,Di,Ur,Lr,xr,Aa,Qo,Oa,Rr,Pa,Pi,Eo,fr,Ya,Mn]),Es=function(Wo,os){return Wo===null?null:Mn[os](Ja,Wo)},Ma=function(Wo){return Es(Wo,"setHour")},Qa=function(Wo){return Es(Wo,"setMinute")},Ks=function(Wo){return Es(Wo,"setSecond")},Xs=function(Wo){return Es(Wo,"setMillisecond")},vl=function(Wo){return Wo===null?null:Wo==="am"&&!El(Ur)?Mn.setHour(Ja,Ur-12):Wo==="pm"&&El(Ur)?Mn.setHour(Ja,Ur+12):Ja},hs=function(Wo){Fa(Ma(Wo))},Yl=function(Wo){Fa(Qa(Wo))},Js=function(Wo){Fa(Ks(Wo))},ws=function(Wo){Fa(Xs(Wo))},bs=function(Wo){Fa(vl(Wo))},Za=function(Wo){Li(Ma(Wo))},Go=function(Wo){Li(Qa(Wo))},yl=function(Wo){Li(Ks(Wo))},pa=function(Wo){Li(Xs(Wo))},Lo=function(Wo){Li(vl(Wo))},Uo={onDblClick:Yn,changeOnScroll:$t};return He.createElement("div",{className:"".concat(Tn,"-content")},Ie&&He.createElement(Wu,ve({units:co,value:Ur,optionalValue:Pi,type:"hour",onChange:hs,onHover:Za},Uo)),je&&He.createElement(Wu,ve({units:xa,value:Lr,optionalValue:Eo,type:"minute",onChange:Yl,onHover:Go},Uo)),Ue&&He.createElement(Wu,ve({units:no,value:xr,optionalValue:fr,type:"second",onChange:Js,onHover:yl},Uo)),gt&&He.createElement(Wu,ve({units:wa,value:Aa,optionalValue:Ya,type:"millisecond",onChange:ws,onHover:pa},Uo)),Ht&&He.createElement(Wu,ve({units:gs,value:bo,type:"meridiem",onChange:bs,onHover:Lo},Uo)))}function Iu(ye){var Ie=ye.prefixCls,je=ye.value,Ue=ye.locale,gt=ye.generateConfig,Ht=ye.showTime,$t=Ht||{},an=$t.format,Tn="".concat(Ie,"-time-panel"),Un=Lu(ye,"time"),Mn=ct(Un,1),Ei=Mn[0];return He.createElement(Ou.Provider,{value:Ei},He.createElement("div",{className:Zn()(Tn)},He.createElement(du,null,je?Ho(je,{locale:Ue,format:an,generateConfig:gt}):"\xA0"),He.createElement(Hu,Ht)))}function ku(ye){var Ie=ye.prefixCls,je=ye.generateConfig,Ue=ye.showTime,gt=ye.onSelect,Ht=ye.value,$t=ye.pickerValue,an=ye.onHover,Tn="".concat(Ie,"-datetime-panel"),Un=Rs(je,Ue),Mn=ct(Un,1),Ei=Mn[0],Ui=function(Ni){return Ht?vi(je,Ni,Ht):vi(je,Ni,$t)},Ci=function(Ni){an==null||an(Ni&&Ui(Ni))},Li=function(Ni){var bn=Ui(Ni);gt(Ei(bn,bn))};return He.createElement("div",{className:Tn},He.createElement(Ol,ve({},ye,{onSelect:Li,onHover:Ci})),He.createElement(Iu,ye))}function Jc(ye){var Ie=ye.prefixCls,je=ye.locale,Ue=ye.generateConfig,gt=ye.pickerValue,Ht=ye.disabledDate,$t=ye.onPickerValueChange,an="".concat(Ie,"-decade-panel"),Tn=Lu(ye,"decade"),Un=ct(Tn,1),Mn=Un[0],Ei=function($i){var sr=Math.floor(Ue.getYear($i)/100)*100;return Ue.setYear($i,sr)},Ui=function($i){var sr=Ei($i);return Ue.addYear(sr,99)},Ci=Ei(gt),Li=Ui(gt),Di=Ue.addYear(Ci,-10),Ni=function($i,sr){return Ue.addYear($i,sr*10)},bn=function($i){var sr=je.cellYearFormat,At=Ho($i,{locale:je,format:sr,generateConfig:Ue}),cr=Ho(Ue.addYear($i,9),{locale:je,format:sr,generateConfig:Ue});return"".concat(At,"-").concat(cr)},Yn=function($i){return(0,kn.Z)({},"".concat(Ie,"-cell-in-view"),tn(Ue,$i,Ci)||tn(Ue,$i,Li)||Nr(Ue,Ci,Li,$i))},ei=Ht?function(rr,$i){var sr=Ue.setDate(rr,1),At=Ue.setMonth(sr,0),cr=Ue.setYear(At,Math.floor(Ue.getYear(At)/10)*10),Pr=Ue.addYear(cr,10),Ir=Ue.addDate(Pr,-1);return Ht(cr,$i)&&Ht(Ir,$i)}:null,pi="".concat(Ho(Ci,{locale:je,format:je.yearFormat,generateConfig:Ue}),"-").concat(Ho(Li,{locale:je,format:je.yearFormat,generateConfig:Ue}));return He.createElement(Ou.Provider,{value:Mn},He.createElement("div",{className:an},He.createElement(du,{superOffset:function($i){return Ue.addYear(gt,$i*100)},onChange:$t,getStart:Ei,getEnd:Ui},pi),He.createElement(Il,ve({},ye,{disabledDate:ei,colNum:3,rowNum:4,baseDate:Di,getCellDate:Ni,getCellText:bn,getCellClassName:Yn}))))}function Sh(ye){var Ie=ye.prefixCls,je=ye.locale,Ue=ye.generateConfig,gt=ye.pickerValue,Ht=ye.disabledDate,$t=ye.onPickerValueChange,an=ye.onModeChange,Tn="".concat(Ie,"-month-panel"),Un=Lu(ye,"month"),Mn=ct(Un,1),Ei=Mn[0],Ui=Ue.setMonth(gt,0),Ci=je.shortMonths||(Ue.locale.getShortMonths?Ue.locale.getShortMonths(je.locale):[]),Li=function(pi,rr){return Ue.addMonth(pi,rr)},Di=function(pi){var rr=Ue.getMonth(pi);return je.monthFormat?Ho(pi,{locale:je,format:je.monthFormat,generateConfig:Ue}):Ci[rr]},Ni=function(){return(0,kn.Z)({},"".concat(Ie,"-cell-in-view"),!0)},bn=Ht?function(ei,pi){var rr=Ue.setDate(ei,1),$i=Ue.setMonth(rr,Ue.getMonth(rr)+1),sr=Ue.addDate($i,-1);return Ht(rr,pi)&&Ht(sr,pi)}:null,Yn=He.createElement("button",{type:"button",key:"year","aria-label":je.yearSelect,onClick:function(){an("year")},tabIndex:-1,className:"".concat(Ie,"-year-btn")},Ho(gt,{locale:je,format:je.yearFormat,generateConfig:Ue}));return He.createElement(Ou.Provider,{value:Ei},He.createElement("div",{className:Tn},He.createElement(du,{superOffset:function(pi){return Ue.addYear(gt,pi)},onChange:$t,getStart:function(pi){return Ue.setMonth(pi,0)},getEnd:function(pi){return Ue.setMonth(pi,11)}},Yn),He.createElement(Il,ve({},ye,{disabledDate:bn,titleFormat:je.fieldMonthFormat,colNum:3,rowNum:4,baseDate:Ui,getCellDate:Li,getCellText:Di,getCellClassName:Ni}))))}function ml(ye){var Ie=ye.prefixCls,je=ye.locale,Ue=ye.generateConfig,gt=ye.pickerValue,Ht=ye.onPickerValueChange,$t=ye.onModeChange,an="".concat(Ie,"-quarter-panel"),Tn=Lu(ye,"quarter"),Un=ct(Tn,1),Mn=Un[0],Ei=Ue.setMonth(gt,0),Ui=function(bn,Yn){return Ue.addMonth(bn,Yn*3)},Ci=function(bn){return Ho(bn,{locale:je,format:je.cellQuarterFormat,generateConfig:Ue})},Li=function(){return(0,kn.Z)({},"".concat(Ie,"-cell-in-view"),!0)},Di=He.createElement("button",{type:"button",key:"year","aria-label":je.yearSelect,onClick:function(){$t("year")},tabIndex:-1,className:"".concat(Ie,"-year-btn")},Ho(gt,{locale:je,format:je.yearFormat,generateConfig:Ue}));return He.createElement(Ou.Provider,{value:Mn},He.createElement("div",{className:an},He.createElement(du,{superOffset:function(bn){return Ue.addYear(gt,bn)},onChange:Ht,getStart:function(bn){return Ue.setMonth(bn,0)},getEnd:function(bn){return Ue.setMonth(bn,11)}},Di),He.createElement(Il,ve({},ye,{titleFormat:je.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:Ei,getCellDate:Ui,getCellText:Ci,getCellClassName:Li}))))}function sh(ye){var Ie=ye.prefixCls,je=ye.generateConfig,Ue=ye.locale,gt=ye.value,Ht=ye.hoverValue,$t=ye.hoverRangeValue,an=Ue.locale,Tn="".concat(Ie,"-week-panel-row"),Un=function(Ei){var Ui={};if($t){var Ci=ct($t,2),Li=Ci[0],Di=Ci[1],Ni=aa(je,an,Li,Ei),bn=aa(je,an,Di,Ei);Ui["".concat(Tn,"-range-start")]=Ni,Ui["".concat(Tn,"-range-end")]=bn,Ui["".concat(Tn,"-range-hover")]=!Ni&&!bn&&Nr(je,Li,Di,Ei)}return Ht&&(Ui["".concat(Tn,"-hover")]=Ht.some(function(Yn){return aa(je,an,Ei,Yn)})),Zn()(Tn,(0,kn.Z)({},"".concat(Tn,"-selected"),!$t&&aa(je,an,gt,Ei)),Ui)};return He.createElement(Ol,ve({},ye,{mode:"week",panelName:"week",rowClassName:Un}))}function lh(ye){var Ie=ye.prefixCls,je=ye.locale,Ue=ye.generateConfig,gt=ye.pickerValue,Ht=ye.disabledDate,$t=ye.onPickerValueChange,an=ye.onModeChange,Tn="".concat(Ie,"-year-panel"),Un=Lu(ye,"year"),Mn=ct(Un,1),Ei=Mn[0],Ui=function(sr){var At=Math.floor(Ue.getYear(sr)/10)*10;return Ue.setYear(sr,At)},Ci=function(sr){var At=Ui(sr);return Ue.addYear(At,9)},Li=Ui(gt),Di=Ci(gt),Ni=Ue.addYear(Li,-1),bn=function(sr,At){return Ue.addYear(sr,At)},Yn=function(sr){return Ho(sr,{locale:je,format:je.cellYearFormat,generateConfig:Ue})},ei=function(sr){return(0,kn.Z)({},"".concat(Ie,"-cell-in-view"),Vi(Ue,sr,Li)||Vi(Ue,sr,Di)||Nr(Ue,Li,Di,sr))},pi=Ht?function($i,sr){var At=Ue.setMonth($i,0),cr=Ue.setDate(At,1),Pr=Ue.addYear(cr,1),Ir=Ue.addDate(Pr,-1);return Ht(cr,sr)&&Ht(Ir,sr)}:null,rr=He.createElement("button",{type:"button",key:"decade","aria-label":je.decadeSelect,onClick:function(){an("decade")},tabIndex:-1,className:"".concat(Ie,"-decade-btn")},Ho(Li,{locale:je,format:je.yearFormat,generateConfig:Ue}),"-",Ho(Di,{locale:je,format:je.yearFormat,generateConfig:Ue}));return He.createElement(Ou.Provider,{value:Ei},He.createElement("div",{className:Tn},He.createElement(du,{superOffset:function(sr){return Ue.addYear(gt,sr*10)},onChange:$t,getStart:Ui,getEnd:Ci},rr),He.createElement(Il,ve({},ye,{disabledDate:pi,titleFormat:je.fieldYearFormat,colNum:3,rowNum:4,baseDate:Ni,getCellDate:bn,getCellText:Yn,getCellClassName:ei}))))}var Nc={date:Ol,datetime:ku,week:sh,month:Sh,quarter:ml,year:lh,decade:Jc,time:Iu};function Ec(ye,Ie){var je,Ue=ye.locale,gt=ye.generateConfig,Ht=ye.direction,$t=ye.prefixCls,an=ye.tabIndex,Tn=an===void 0?0:an,Un=ye.multiple,Mn=ye.defaultValue,Ei=ye.value,Ui=ye.onChange,Ci=ye.onSelect,Li=ye.defaultPickerValue,Di=ye.pickerValue,Ni=ye.onPickerValueChange,bn=ye.mode,Yn=ye.onPanelChange,ei=ye.picker,pi=ei===void 0?"date":ei,rr=ye.showTime,$i=ye.hoverValue,sr=ye.hoverRangeValue,At=ye.cellRender,cr=ye.dateRender,Pr=ye.monthCellRender,Ir=ye.components,Oo=Ir===void 0?{}:Ir,Ur=ye.hideHeader,Pi=((je=He.useContext(sa))===null||je===void 0?void 0:je.prefixCls)||$t||"rc-picker",qi=He.useRef();He.useImperativeHandle(Ie,function(){return{nativeElement:qi.current}});var Hi=Yt(ye),Lr=ct(Hi,4),Eo=Lr[0],vr=Lr[1],qr=Lr[2],xr=Lr[3],fr=ii(Ue,vr),_r=pi==="date"&&rr?"datetime":pi,Kr=He.useMemo(function(){return Hn(_r,qr,xr,Eo,fr)},[_r,qr,xr,Eo,fr]),Aa=gt.getNow(),Ya=Tt(pi,{value:bn,postState:function(Lo){return Lo||"date"}}),bo=ct(Ya,2),co=bo[0],vo=bo[1],Qo=co==="date"&&Kr?"datetime":co,xa=zu(gt,Ue,_r),Oa=Tt(Mn,{value:Ei}),no=ct(Oa,2),Rr=no[0],wa=no[1],Pa=He.useMemo(function(){var pa=la(Rr).filter(function(Lo){return Lo});return Un?pa:pa.slice(0,1)},[Rr,Un]),gs=Te(function(pa){wa(pa),Ui&&(pa===null||Pa.length!==pa.length||Pa.some(function(Lo,Uo){return!hr(gt,Ue,Lo,pa[Uo],_r)}))&&(Ui==null||Ui(Un?pa:pa[0]))}),Fa=Te(function(pa){if(Ci==null||Ci(pa),co===pi){var Lo=Un?xa(Pa,pa):[pa];gs(Lo)}}),Ja=Tt(Li||Pa[0]||Aa,{value:Di}),Es=ct(Ja,2),Ma=Es[0],Qa=Es[1];He.useEffect(function(){Pa[0]&&!Di&&Qa(Pa[0])},[Pa[0]]);var Ks=function(Lo,Uo){Yn==null||Yn(Lo||Di,Uo||co)},Xs=function(Lo){var Uo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Qa(Lo),Ni==null||Ni(Lo),Uo&&Ks(Lo)},vl=function(Lo,Uo){vo(Lo),Uo&&Xs(Uo),Ks(Uo,Lo)},hs=function(Lo){if(Fa(Lo),Xs(Lo),co!==pi){var Uo=["decade","year"],jr=[].concat(Uo,["month"]),Wo={quarter:[].concat(Uo,["quarter"]),week:[].concat(Je(jr),["week"]),date:[].concat(Je(jr),["date"])},os=Wo[pi]||jr,vs=os.indexOf(co),Ps=os[vs+1];Ps&&vl(Ps,Lo)}},Yl=He.useMemo(function(){var pa,Lo;if(Array.isArray(sr)){var Uo=ct(sr,2);pa=Uo[0],Lo=Uo[1]}else pa=sr;return!pa&&!Lo?null:(pa=pa||Lo,Lo=Lo||pa,gt.isAfter(pa,Lo)?[Lo,pa]:[pa,Lo])},[sr,gt]),Js=ri(At,cr,Pr),ws=Oo[Qo]||Nc[Qo]||Ol,bs=He.useContext(Fl),Za=He.useMemo(function(){return(0,pt.Z)((0,pt.Z)({},bs),{},{hideHeader:Ur})},[bs,Ur]),Go="".concat(Pi,"-panel"),yl=ni(ye,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return He.createElement(Fl.Provider,{value:Za},He.createElement("div",{ref:qi,tabIndex:Tn,className:Zn()(Go,(0,kn.Z)({},"".concat(Go,"-rtl"),Ht==="rtl"))},He.createElement(ws,ve({},yl,{showTime:Kr,prefixCls:Pi,locale:fr,generateConfig:gt,onModeChange:vl,pickerValue:Ma,onPickerValueChange:function(Lo){Xs(Lo,!0)},value:Pa[0],onSelect:hs,values:Pa,cellRender:Js,hoverRangeValue:Yl,hoverValue:$i}))))}var tu=He.memo(He.forwardRef(Ec)),Vl=tu;function xl(ye){var Ie=ye.picker,je=ye.multiplePanel,Ue=ye.pickerValue,gt=ye.onPickerValueChange,Ht=ye.needConfirm,$t=ye.onSubmit,an=ye.range,Tn=ye.hoverValue,Un=He.useContext(sa),Mn=Un.prefixCls,Ei=Un.generateConfig,Ui=He.useCallback(function(Yn,ei){return kl(Ei,Ie,Yn,ei)},[Ei,Ie]),Ci=He.useMemo(function(){return Ui(Ue,1)},[Ue,Ui]),Li=function(ei){gt(Ui(ei,-1))},Di={onCellDblClick:function(){Ht&&$t()}},Ni=Ie==="time",bn=(0,pt.Z)((0,pt.Z)({},ye),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Ni});return an?bn.hoverRangeValue=Tn:bn.hoverValue=Tn,je?He.createElement("div",{className:"".concat(Mn,"-panels")},He.createElement(Fl.Provider,{value:(0,pt.Z)((0,pt.Z)({},Di),{},{hideNext:!0})},He.createElement(Vl,bn)),He.createElement(Fl.Provider,{value:(0,pt.Z)((0,pt.Z)({},Di),{},{hidePrev:!0})},He.createElement(Vl,ve({},bn,{pickerValue:Ci,onPickerValueChange:Li})))):He.createElement(Fl.Provider,{value:(0,pt.Z)({},Di)},He.createElement(Vl,bn))}function Ts(ye){return typeof ye=="function"?ye():ye}function nu(ye){var Ie=ye.prefixCls,je=ye.presets,Ue=ye.onClick,gt=ye.onHover;return je.length?He.createElement("div",{className:"".concat(Ie,"-presets")},He.createElement("ul",null,je.map(function(Ht,$t){var an=Ht.label,Tn=Ht.value;return He.createElement("li",{key:$t,onClick:function(){Ue(Ts(Tn))},onMouseEnter:function(){gt(Ts(Tn))},onMouseLeave:function(){gt(null)}},an)}))):null}function ol(ye){var Ie=ye.panelRender,je=ye.internalMode,Ue=ye.picker,gt=ye.showNow,Ht=ye.range,$t=ye.multiple,an=ye.activeInfo,Tn=an===void 0?[0,0,0]:an,Un=ye.presets,Mn=ye.onPresetHover,Ei=ye.onPresetSubmit,Ui=ye.onFocus,Ci=ye.onBlur,Li=ye.onPanelMouseDown,Di=ye.direction,Ni=ye.value,bn=ye.onSelect,Yn=ye.isInvalid,ei=ye.defaultOpenValue,pi=ye.onOk,rr=ye.onSubmit,$i=He.useContext(sa),sr=$i.prefixCls,At="".concat(sr,"-panel"),cr=Di==="rtl",Pr=He.useRef(null),Ir=He.useRef(null),Oo=He.useState(0),Ur=ct(Oo,2),Pi=Ur[0],qi=Ur[1],Hi=He.useState(0),Lr=ct(Hi,2),Eo=Lr[0],vr=Lr[1],qr=He.useState(0),xr=ct(qr,2),fr=xr[0],_r=xr[1],Kr=function(hs){hs.width&&qi(hs.width)},Aa=ct(Tn,3),Ya=Aa[0],bo=Aa[1],co=Aa[2],vo=He.useState(0),Qo=ct(vo,2),xa=Qo[0],Oa=Qo[1];He.useEffect(function(){Oa(10)},[Ya]),He.useEffect(function(){if(Ht&&Ir.current){var vl,hs=((vl=Pr.current)===null||vl===void 0?void 0:vl.offsetWidth)||0,Yl=Ir.current.getBoundingClientRect();if(!Yl.height||Yl.right<0){Oa(function(Za){return Math.max(0,Za-1)});return}var Js=(cr?bo-hs:Ya)-Yl.left;if(_r(Js),Pi&&Pi<co){var ws=cr?Yl.right-(bo-hs+Pi):Ya+hs-Yl.left-Pi,bs=Math.max(0,ws);vr(bs)}else vr(0)}},[xa,cr,Pi,Ya,bo,co,Ht]);function no(vl){return vl.filter(function(hs){return hs})}var Rr=He.useMemo(function(){return no(la(Ni))},[Ni]),wa=Ue==="time"&&!Rr.length,Pa=He.useMemo(function(){return wa?no([ei]):Rr},[wa,Rr,ei]),gs=wa?ei:Rr,Fa=He.useMemo(function(){return Pa.length?Pa.some(function(vl){return Yn(vl)}):!0},[Pa,Yn]),Ja=function(){wa&&bn(ei),pi(),rr()},Es=He.createElement("div",{className:"".concat(sr,"-panel-layout")},He.createElement(nu,{prefixCls:sr,presets:Un,onClick:Ei,onHover:Mn}),He.createElement("div",null,He.createElement(xl,ve({},ye,{value:gs})),He.createElement(Bu,ve({},ye,{showNow:$t?!1:gt,invalid:Fa,onSubmit:Ja}))));Ie&&(Es=Ie(Es));var Ma="".concat(At,"-container"),Qa="marginLeft",Ks="marginRight",Xs=He.createElement("div",{onMouseDown:Li,tabIndex:-1,className:Zn()(Ma,"".concat(sr,"-").concat(je,"-panel-container")),style:(0,kn.Z)((0,kn.Z)({},cr?Ks:Qa,Eo),cr?Qa:Ks,"auto"),onFocus:Ui,onBlur:Ci},Es);return Ht&&(Xs=He.createElement("div",{onMouseDown:Li,ref:Ir,className:Zn()("".concat(sr,"-range-wrapper"),"".concat(sr,"-").concat(Ue,"-range-wrapper"))},He.createElement("div",{ref:Pr,className:"".concat(sr,"-range-arrow"),style:{left:fr}}),He.createElement(ou,{onResize:Kr},Xs))),Xs}function Vs(ye,Ie){if(ye==null)return{};var je={};for(var Ue in ye)if({}.hasOwnProperty.call(ye,Ue)){if(Ie.indexOf(Ue)!==-1)continue;je[Ue]=ye[Ue]}return je}function Wl(ye,Ie){if(ye==null)return{};var je,Ue,gt=Vs(ye,Ie);if(Object.getOwnPropertySymbols){var Ht=Object.getOwnPropertySymbols(ye);for(Ue=0;Ue<Ht.length;Ue++)je=Ht[Ue],Ie.indexOf(je)===-1&&{}.propertyIsEnumerable.call(ye,je)&&(gt[je]=ye[je])}return gt}function fu(ye,Ie){var je=ye.format,Ue=ye.maskFormat,gt=ye.generateConfig,Ht=ye.locale,$t=ye.preserveInvalidOnBlur,an=ye.inputReadOnly,Tn=ye.required,Un=ye["aria-required"],Mn=ye.onSubmit,Ei=ye.onFocus,Ui=ye.onBlur,Ci=ye.onInputChange,Li=ye.onInvalid,Di=ye.open,Ni=ye.onOpenChange,bn=ye.onKeyDown,Yn=ye.onChange,ei=ye.activeHelp,pi=ye.name,rr=ye.autoComplete,$i=ye.id,sr=ye.value,At=ye.invalid,cr=ye.placeholder,Pr=ye.disabled,Ir=ye.activeIndex,Oo=ye.allHelp,Ur=ye.picker,Pi=function(fr,_r){var Kr=gt.locale.parse(Ht.locale,fr,[_r]);return Kr&&gt.isValidate(Kr)?Kr:null},qi=je[0],Hi=He.useCallback(function(xr){return Ho(xr,{locale:Ht,format:qi,generateConfig:gt})},[Ht,gt,qi]),Lr=He.useMemo(function(){return sr.map(Hi)},[sr,Hi]),Eo=He.useMemo(function(){var xr=Ur==="time"?8:10,fr=typeof qi=="function"?qi(gt.getNow()).length:qi.length;return Math.max(xr,fr)+2},[qi,Ur,gt]),vr=function(fr){for(var _r=0;_r<je.length;_r+=1){var Kr=je[_r];if(typeof Kr=="string"){var Aa=Pi(fr,Kr);if(Aa)return Aa}}return!1},qr=function(fr){function _r(Ya){return fr!==void 0?Ya[fr]:Ya}var Kr=ar(ye,{aria:!0,data:!0}),Aa=(0,pt.Z)((0,pt.Z)({},Kr),{},{format:Ue,validateFormat:function(bo){return!!vr(bo)},preserveInvalidOnBlur:$t,readOnly:an,required:Tn,"aria-required":Un,name:pi,autoComplete:rr,size:Eo,id:_r($i),value:_r(Lr)||"",invalid:_r(At),placeholder:_r(cr),active:Ir===fr,helped:Oo||ei&&Ir===fr,disabled:_r(Pr),onFocus:function(bo){Ei(bo,fr)},onBlur:function(bo){Ui(bo,fr)},onSubmit:Mn,onChange:function(bo){Ci();var co=vr(bo);if(co){Li(!1,fr),Yn(co,fr);return}Li(!!bo,fr)},onHelp:function(){Ni(!0,{index:fr})},onKeyDown:function(bo){var co=!1;if(bn==null||bn(bo,function(){co=!0}),!bo.defaultPrevented&&!co)switch(bo.key){case"Escape":Ni(!1,{index:fr});break;case"Enter":Di||Ni(!0);break}}},Ie==null?void 0:Ie({valueTexts:Lr}));return Object.keys(Aa).forEach(function(Ya){Aa[Ya]===void 0&&delete Aa[Ya]}),Aa};return[qr,Hi]}var Ru=["onMouseEnter","onMouseLeave"];function Fo(ye){return He.useMemo(function(){return ni(ye,Ru)},[ye])}var gu=["icon","type"],Rt=["onClear"];function fi(ye){var Ie=ye.icon,je=ye.type,Ue=Wl(ye,gu),gt=He.useContext(sa),Ht=gt.prefixCls;return Ie?He.createElement("span",ve({className:"".concat(Ht,"-").concat(je)},Ue),Ie):null}function Kl(ye){var Ie=ye.onClear,je=Wl(ye,Rt);return He.createElement(fi,ve({},je,{type:"clear",role:"button",onMouseDown:function(gt){gt.preventDefault()},onClick:function(gt){gt.stopPropagation(),Ie()}}))}function Yu(ye,Ie){if(!(ye instanceof Ie))throw new TypeError("Cannot call a class as a function")}var ec=be(69847);function pu(ye,Ie){for(var je=0;je<Ie.length;je++){var Ue=Ie[je];Ue.enumerable=Ue.enumerable||!1,Ue.configurable=!0,"value"in Ue&&(Ue.writable=!0),Object.defineProperty(ye,(0,ec.Z)(Ue.key),Ue)}}function Eu(ye,Ie,je){return Ie&&pu(ye.prototype,Ie),je&&pu(ye,je),Object.defineProperty(ye,"prototype",{writable:!1}),ye}var pc=["YYYY","MM","DD","HH","mm","ss","SSS"],mc="\u9867",wl=function(){function ye(Ie){Yu(this,ye),(0,kn.Z)(this,"format",void 0),(0,kn.Z)(this,"maskFormat",void 0),(0,kn.Z)(this,"cells",void 0),(0,kn.Z)(this,"maskCells",void 0),this.format=Ie;var je=pc.map(function(an){return"(".concat(an,")")}).join("|"),Ue=new RegExp(je,"g");this.maskFormat=Ie.replace(Ue,function(an){return mc.repeat(an.length)});var gt=new RegExp("(".concat(pc.join("|"),")")),Ht=(Ie.split(gt)||[]).filter(function(an){return an}),$t=0;this.cells=Ht.map(function(an){var Tn=pc.includes(an),Un=$t,Mn=$t+an.length;return $t=Mn,{text:an,mask:Tn,start:Un,end:Mn}}),this.maskCells=this.cells.filter(function(an){return an.mask})}return Eu(ye,[{key:"getSelection",value:function(je){var Ue=this.maskCells[je]||{},gt=Ue.start,Ht=Ue.end;return[gt||0,Ht||0]}},{key:"match",value:function(je){for(var Ue=0;Ue<this.maskFormat.length;Ue+=1){var gt=this.maskFormat[Ue],Ht=je[Ue];if(!Ht||gt!==mc&&gt!==Ht)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(je){for(var Ue=Number.MAX_SAFE_INTEGER,gt=0,Ht=0;Ht<this.maskCells.length;Ht+=1){var $t=this.maskCells[Ht],an=$t.start,Tn=$t.end;if(je>=an&&je<=Tn)return Ht;var Un=Math.min(Math.abs(je-an),Math.abs(je-Tn));Un<Ue&&(Ue=Un,gt=Ht)}return gt}}]),ye}();function Ca(ye){var Ie={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return Ie[ye]}var mu=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],au=He.forwardRef(function(ye,Ie){var je=ye.active,Ue=ye.showActiveCls,gt=Ue===void 0?!0:Ue,Ht=ye.suffixIcon,$t=ye.format,an=ye.validateFormat,Tn=ye.onChange,Un=ye.onInput,Mn=ye.helped,Ei=ye.onHelp,Ui=ye.onSubmit,Ci=ye.onKeyDown,Li=ye.preserveInvalidOnBlur,Di=Li===void 0?!1:Li,Ni=ye.invalid,bn=ye.clearIcon,Yn=Wl(ye,mu),ei=ye.value,pi=ye.onFocus,rr=ye.onBlur,$i=ye.onMouseUp,sr=He.useContext(sa),At=sr.prefixCls,cr=sr.input,Pr=cr===void 0?"input":cr,Ir="".concat(At,"-input"),Oo=He.useState(!1),Ur=ct(Oo,2),Pi=Ur[0],qi=Ur[1],Hi=He.useState(ei),Lr=ct(Hi,2),Eo=Lr[0],vr=Lr[1],qr=He.useState(""),xr=ct(qr,2),fr=xr[0],_r=xr[1],Kr=He.useState(null),Aa=ct(Kr,2),Ya=Aa[0],bo=Aa[1],co=He.useState(null),vo=ct(co,2),Qo=vo[0],xa=vo[1],Oa=Eo||"";He.useEffect(function(){vr(ei)},[ei]);var no=He.useRef(),Rr=He.useRef();He.useImperativeHandle(Ie,function(){return{nativeElement:no.current,inputElement:Rr.current,focus:function(Lo){Rr.current.focus(Lo)},blur:function(){Rr.current.blur()}}});var wa=He.useMemo(function(){return new wl($t||"")},[$t]),Pa=He.useMemo(function(){return Mn?[0,0]:wa.getSelection(Ya)},[wa,Ya,Mn]),gs=ct(Pa,2),Fa=gs[0],Ja=gs[1],Es=function(Lo){Lo&&Lo!==$t&&Lo!==ei&&Ei()},Ma=Te(function(pa){an(pa)&&Tn(pa),vr(pa),Es(pa)}),Qa=function(Lo){if(!$t){var Uo=Lo.target.value;Es(Uo),vr(Uo),Tn(Uo)}},Ks=function(Lo){var Uo=Lo.clipboardData.getData("text");an(Uo)&&Ma(Uo)},Xs=He.useRef(!1),vl=function(){Xs.current=!0},hs=function(Lo){var Uo=Lo.target,jr=Uo.selectionStart,Wo=wa.getMaskCellIndex(jr);bo(Wo),xa({}),$i==null||$i(Lo),Xs.current=!1},Yl=function(Lo){qi(!0),bo(0),_r(""),pi(Lo)},Js=function(Lo){rr(Lo)},ws=function(Lo){qi(!1),Js(Lo)};Po(je,function(){!je&&!Di&&vr(ei)});var bs=function(Lo){Lo.key==="Enter"&&an(Oa)&&Ui(),Ci==null||Ci(Lo)},Za=function(Lo){bs(Lo);var Uo=Lo.key,jr=null,Wo=null,os=Ja-Fa,vs=$t.slice(Fa,Ja),Ps=function(Nl){bo(function(bu){var is=bu+Nl;return is=Math.max(is,0),is=Math.min(is,wa.size()-1),is})},bl=function(Nl){var bu=Ca(vs),is=ct(bu,3),rl=is[0],Zl=is[1],Du=is[2],uh=Oa.slice(Fa,Ja),Zh=Number(uh);if(isNaN(Zh))return String(Du||(Nl>0?rl:Zl));var Xh=Zh+Nl,Jh=Zl-rl+1;return String(rl+(Jh+Xh-rl)%Jh)};switch(Uo){case"Backspace":case"Delete":jr="",Wo=vs;break;case"ArrowLeft":jr="",Ps(-1);break;case"ArrowRight":jr="",Ps(1);break;case"ArrowUp":jr="",Wo=bl(1);break;case"ArrowDown":jr="",Wo=bl(-1);break;default:isNaN(Number(Uo))||(jr=fr+Uo,Wo=jr);break}if(jr!==null&&(_r(jr),jr.length>=os&&(Ps(1),_r(""))),Wo!==null){var ul=Oa.slice(0,Fa)+da(Wo,os)+Oa.slice(Ja);Ma(ul.slice(0,$t.length))}xa({})},Go=He.useRef();ft(function(){if(!(!Pi||!$t||Xs.current)){if(!wa.match(Oa)){Ma($t);return}return Rr.current.setSelectionRange(Fa,Ja),Go.current=uo(function(){Rr.current.setSelectionRange(Fa,Ja)}),function(){uo.cancel(Go.current)}}},[wa,$t,Pi,Oa,Ya,Fa,Ja,Qo,Ma]);var yl=$t?{onFocus:Yl,onBlur:ws,onKeyDown:Za,onMouseDown:vl,onMouseUp:hs,onPaste:Ks}:{};return He.createElement("div",{ref:no,className:Zn()(Ir,(0,kn.Z)((0,kn.Z)({},"".concat(Ir,"-active"),je&&gt),"".concat(Ir,"-placeholder"),Mn))},He.createElement(Pr,ve({ref:Rr,"aria-invalid":Ni,autoComplete:"off"},Yn,{onKeyDown:bs,onBlur:Js},yl,{value:Oa,onChange:Qa})),He.createElement(fi,{type:"suffix",icon:Ht}),bn)}),ll=au,fs=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Ml=["index"];function Fu(ye,Ie){var je=ye.id,Ue=ye.prefix,gt=ye.clearIcon,Ht=ye.suffixIcon,$t=ye.separator,an=$t===void 0?"~":$t,Tn=ye.activeIndex,Un=ye.activeHelp,Mn=ye.allHelp,Ei=ye.focused,Ui=ye.onFocus,Ci=ye.onBlur,Li=ye.onKeyDown,Di=ye.locale,Ni=ye.generateConfig,bn=ye.placeholder,Yn=ye.className,ei=ye.style,pi=ye.onClick,rr=ye.onClear,$i=ye.value,sr=ye.onChange,At=ye.onSubmit,cr=ye.onInputChange,Pr=ye.format,Ir=ye.maskFormat,Oo=ye.preserveInvalidOnBlur,Ur=ye.onInvalid,Pi=ye.disabled,qi=ye.invalid,Hi=ye.inputReadOnly,Lr=ye.direction,Eo=ye.onOpenChange,vr=ye.onActiveInfo,qr=ye.placement,xr=ye.onMouseDown,fr=ye.required,_r=ye["aria-required"],Kr=ye.autoFocus,Aa=ye.tabIndex,Ya=Wl(ye,fs),bo=Lr==="rtl",co=He.useContext(sa),vo=co.prefixCls,Qo=He.useMemo(function(){if(typeof je=="string")return[je];var Js=je||{};return[Js.start,Js.end]},[je]),xa=He.useRef(),Oa=He.useRef(),no=He.useRef(),Rr=function(ws){var bs;return(bs=[Oa,no][ws])===null||bs===void 0?void 0:bs.current};He.useImperativeHandle(Ie,function(){return{nativeElement:xa.current,focus:function(ws){if((0,Wt.Z)(ws)==="object"){var bs,Za=ws||{},Go=Za.index,yl=Go===void 0?0:Go,pa=Wl(Za,Ml);(bs=Rr(yl))===null||bs===void 0||bs.focus(pa)}else{var Lo;(Lo=Rr(ws!=null?ws:0))===null||Lo===void 0||Lo.focus()}},blur:function(){var ws,bs;(ws=Rr(0))===null||ws===void 0||ws.blur(),(bs=Rr(1))===null||bs===void 0||bs.blur()}}});var wa=Fo(Ya),Pa=He.useMemo(function(){return Array.isArray(bn)?bn:[bn,bn]},[bn]),gs=fu((0,pt.Z)((0,pt.Z)({},ye),{},{id:Qo,placeholder:Pa})),Fa=ct(gs,1),Ja=Fa[0],Es=He.useState({position:"absolute",width:0}),Ma=ct(Es,2),Qa=Ma[0],Ks=Ma[1],Xs=Te(function(){var Js=Rr(Tn);if(Js){var ws=Js.nativeElement.getBoundingClientRect(),bs=xa.current.getBoundingClientRect(),Za=ws.left-bs.left;Ks(function(Go){return(0,pt.Z)((0,pt.Z)({},Go),{},{width:ws.width,left:Za})}),vr([ws.left,ws.right,bs.width])}});He.useEffect(function(){Xs()},[Tn]);var vl=gt&&($i[0]&&!Pi[0]||$i[1]&&!Pi[1]),hs=Kr&&!Pi[0],Yl=Kr&&!hs&&!Pi[1];return He.createElement(ou,{onResize:Xs},He.createElement("div",ve({},wa,{className:Zn()(vo,"".concat(vo,"-range"),(0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)({},"".concat(vo,"-focused"),Ei),"".concat(vo,"-disabled"),Pi.every(function(Js){return Js})),"".concat(vo,"-invalid"),qi.some(function(Js){return Js})),"".concat(vo,"-rtl"),bo),Yn),style:ei,ref:xa,onClick:pi,onMouseDown:function(ws){var bs=ws.target;bs!==Oa.current.inputElement&&bs!==no.current.inputElement&&ws.preventDefault(),xr==null||xr(ws)}}),Ue&&He.createElement("div",{className:"".concat(vo,"-prefix")},Ue),He.createElement(ll,ve({ref:Oa},Ja(0),{autoFocus:hs,tabIndex:Aa,"date-range":"start"})),He.createElement("div",{className:"".concat(vo,"-range-separator")},an),He.createElement(ll,ve({ref:no},Ja(1),{autoFocus:Yl,tabIndex:Aa,"date-range":"end"})),He.createElement("div",{className:"".concat(vo,"-active-bar"),style:Qa}),He.createElement(fi,{type:"suffix",icon:Ht}),vl&&He.createElement(Kl,{icon:gt,onClear:rr})))}var sl=He.forwardRef(Fu),su=sl;function Gl(ye,Ie){var je=ye!=null?ye:Ie;return Array.isArray(je)?je:[je,je]}function tc(ye){return ye===1?"end":"start"}function Bs(ye,Ie){var je=Yo(ye,function(){var rn=ye.disabled,bt=ye.allowEmpty,Ln=Gl(rn,!1),Dn=Gl(bt,!1);return{disabled:Ln,allowEmpty:Dn}}),Ue=ct(je,6),gt=Ue[0],Ht=Ue[1],$t=Ue[2],an=Ue[3],Tn=Ue[4],Un=Ue[5],Mn=gt.prefixCls,Ei=gt.styles,Ui=gt.classNames,Ci=gt.defaultValue,Li=gt.value,Di=gt.needConfirm,Ni=gt.onKeyDown,bn=gt.disabled,Yn=gt.allowEmpty,ei=gt.disabledDate,pi=gt.minDate,rr=gt.maxDate,$i=gt.defaultOpen,sr=gt.open,At=gt.onOpenChange,cr=gt.locale,Pr=gt.generateConfig,Ir=gt.picker,Oo=gt.showNow,Ur=gt.showToday,Pi=gt.showTime,qi=gt.mode,Hi=gt.onPanelChange,Lr=gt.onCalendarChange,Eo=gt.onOk,vr=gt.defaultPickerValue,qr=gt.pickerValue,xr=gt.onPickerValueChange,fr=gt.inputReadOnly,_r=gt.suffixIcon,Kr=gt.onFocus,Aa=gt.onBlur,Ya=gt.presets,bo=gt.ranges,co=gt.components,vo=gt.cellRender,Qo=gt.dateRender,xa=gt.monthCellRender,Oa=gt.onClick,no=ka(Ie),Rr=_n(sr,$i,bn,At),wa=ct(Rr,2),Pa=wa[0],gs=wa[1],Fa=function(bt,Ln){(bn.some(function(Dn){return!Dn})||!bt)&&gs(bt,Ln)},Ja=St(Pr,cr,an,!0,!1,Ci,Li,Lr,Eo),Es=ct(Ja,5),Ma=Es[0],Qa=Es[1],Ks=Es[2],Xs=Es[3],vl=Es[4],hs=Ks(),Yl=Ws(bn,Yn,Pa),Js=ct(Yl,9),ws=Js[0],bs=Js[1],Za=Js[2],Go=Js[3],yl=Js[4],pa=Js[5],Lo=Js[6],Uo=Js[7],jr=Js[8],Wo=function(bt,Ln){bs(!0),Kr==null||Kr(bt,{range:tc(Ln!=null?Ln:Go)})},os=function(bt,Ln){bs(!1),Aa==null||Aa(bt,{range:tc(Ln!=null?Ln:Go)})},vs=He.useMemo(function(){if(!Pi)return null;var rn=Pi.disabledTime,bt=rn?function(Ln){var Dn=tc(Go),er=pn(hs,Lo,Go);return rn(Ln,Dn,{from:er})}:void 0;return(0,pt.Z)((0,pt.Z)({},Pi),{},{disabledTime:bt})},[Pi,Go,hs,Lo]),Ps=Tt([Ir,Ir],{value:qi}),bl=ct(Ps,2),ul=bl[0],Nu=bl[1],Nl=ul[Go]||Ir,bu=Nl==="date"&&vs?"datetime":Nl,is=bu===Ir&&bu!=="time",rl=gn(Ir,Nl,Oo,Ur,!0),Zl=zt(gt,Ma,Qa,Ks,Xs,bn,an,ws,Pa,Un),Du=ct(Zl,2),uh=Du[0],Zh=Du[1],Xh=ds(hs,bn,Lo,Pr,cr,ei),Jh=Jn(hs,Un,Yn),Ld=ct(Jh,2),_f=Ld[0],Gd=Ld[1],wh=Ua(Pr,cr,hs,ul,Pa,Go,Ht,is,vr,qr,vs==null?void 0:vs.defaultOpenValue,xr,pi,rr),Ud=ct(wh,2),kd=Ud[0],yf=Ud[1],ch=Te(function(rn,bt,Ln){var Dn=No(ul,Go,bt);if((Dn[0]!==ul[0]||Dn[1]!==ul[1])&&Nu(Dn),Hi&&Ln!==!1){var er=Je(hs);rn&&(er[Go]=rn),Hi(er,Dn)}}),Yd=function(bt,Ln){return No(hs,Ln,bt)},zs=function(bt,Ln){var Dn=hs;bt&&(Dn=Yd(bt,Go)),Uo(Go);var er=pa(Dn);Xs(Dn),uh(Go,er===null),er===null?Fa(!1,{force:!0}):Ln||no.current.focus({index:er})},ld=function(bt){var Ln,Dn=bt.target.getRootNode();if(!no.current.nativeElement.contains((Ln=Dn.activeElement)!==null&&Ln!==void 0?Ln:document.activeElement)){var er=bn.findIndex(function(Cr){return!Cr});er>=0&&no.current.focus({index:er})}Fa(!0),Oa==null||Oa(bt)},Bh=function(){Zh(null),Fa(!1,{force:!0})},Au=He.useState(null),Vu=ct(Au,2),Qh=Vu[0],qh=Vu[1],Ph=He.useState(null),ud=ct(Ph,2),cd=ud[0],Fd=ud[1],Zd=He.useMemo(function(){return cd||hs},[hs,cd]);He.useEffect(function(){Pa||Fd(null)},[Pa]);var Oh=He.useState([0,0,0]),$h=ct(Oh,2),Ih=$h[0],Al=$h[1],Xd=An(Ya,bo),Sf=function(bt){Fd(bt),qh("preset")},hd=function(bt){var Ln=Zh(bt);Ln&&Fa(!1,{force:!0})},dd=function(bt){zs(bt)},Nd=function(bt){Fd(bt?Yd(bt,Go):null),qh("cell")},Vf=function(bt){Fa(!0),Wo(bt)},yu=function(){Za("panel")},Kf=function(bt){var Ln=No(hs,Go,bt);Xs(Ln),!Di&&!$t&&Ht===bu&&zs(bt)},fd=function(){Fa(!1)},Ch=ri(vo,Qo,xa,tc(Go)),Dd=hs[Go]||null,ie=Te(function(rn){return Un(rn,{activeIndex:Go})}),oe=He.useMemo(function(){var rn=ar(gt,!1),bt=Cn(gt,[].concat(Je(Object.keys(rn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return bt},[gt]),he=He.createElement(ol,ve({},oe,{showNow:rl,showTime:vs,range:!0,multiplePanel:is,activeInfo:Ih,disabledDate:Xh,onFocus:Vf,onBlur:os,onPanelMouseDown:yu,picker:Ir,mode:Nl,internalMode:bu,onPanelChange:ch,format:Tn,value:Dd,isInvalid:ie,onChange:null,onSelect:Kf,pickerValue:kd,defaultOpenValue:la(Pi==null?void 0:Pi.defaultOpenValue)[Go],onPickerValueChange:yf,hoverValue:Zd,onHover:Nd,needConfirm:Di,onSubmit:zs,onOk:vl,presets:Xd,onPresetHover:Sf,onPresetSubmit:hd,onNow:dd,cellRender:Ch})),de=function(bt,Ln){var Dn=Yd(bt,Ln);Xs(Dn)},pe=function(){Za("input")},Fe=function(bt,Ln){var Dn=Lo.length,er=Lo[Dn-1];if(Dn&&er!==Ln&&Di&&!Yn[er]&&!jr(er)&&hs[er]){no.current.focus({index:er});return}Za("input"),Fa(!0,{inherit:!0}),Go!==Ln&&Pa&&!Di&&$t&&zs(null,!0),yl(Ln),Wo(bt,Ln)},Ve=function(bt,Ln){if(Fa(!1),!Di&&Za()==="input"){var Dn=pa(hs);uh(Go,Dn===null)}os(bt,Ln)},ot=function(bt,Ln){bt.key==="Tab"&&zs(null,!0),Ni==null||Ni(bt,Ln)},et=He.useMemo(function(){return{prefixCls:Mn,locale:cr,generateConfig:Pr,button:co.button,input:co.input}},[Mn,cr,Pr,co.button,co.input]);if(ft(function(){Pa&&Go!==void 0&&ch(null,Ir,!1)},[Pa,Go,Ir]),ft(function(){var rn=Za();!Pa&&rn==="input"&&(Fa(!1),zs(null,!0)),!Pa&&$t&&!Di&&rn==="panel"&&(Fa(!0),zs())},[Pa]),0)var Et;return He.createElement(sa.Provider,{value:et},He.createElement(Ha,ve({},hn(gt),{popupElement:he,popupStyle:Ei.popup,popupClassName:Ui.popup,visible:Pa,onClose:fd,range:!0}),He.createElement(su,ve({},gt,{ref:no,suffixIcon:_r,activeIndex:ws||Pa?Go:null,activeHelp:!!cd,allHelp:!!cd&&Qh==="preset",focused:ws,onFocus:Fe,onBlur:Ve,onKeyDown:ot,onSubmit:zs,value:Zd,maskFormat:Tn,onChange:de,onInputChange:pe,format:an,inputReadOnly:fr,disabled:bn,open:Pa,onOpenChange:Fa,onClick:ld,onClear:Bh,invalid:_f,onInvalid:Gd,onActiveInfo:Al}))))}var vu=He.forwardRef(Bs),As=vu;function Ms(){return Ms=Object.assign?Object.assign.bind():function(ye){for(var Ie=1;Ie<arguments.length;Ie++){var je=arguments[Ie];for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&(ye[Ue]=je[Ue])}return ye},Ms.apply(this,arguments)}function Zs(ye){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},Zs(ye)}function Pl(ye,Ie){if(Zs(ye)!=="object"||ye===null)return ye;var je=ye[Symbol.toPrimitive];if(je!==void 0){var Ue=je.call(ye,Ie||"default");if(Zs(Ue)!=="object")return Ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ie==="string"?String:Number)(ye)}function js(ye){var Ie=Pl(ye,"string");return Zs(Ie)==="symbol"?Ie:String(Ie)}function _c(ye,Ie,je){return Ie=js(Ie),Ie in ye?Object.defineProperty(ye,Ie,{value:je,enumerable:!0,configurable:!0,writable:!0}):ye[Ie]=je,ye}function Vr(ye,Ie){var je=Object.keys(ye);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(ye);Ie&&(Ue=Ue.filter(function(gt){return Object.getOwnPropertyDescriptor(ye,gt).enumerable})),je.push.apply(je,Ue)}return je}function ju(ye){for(var Ie=1;Ie<arguments.length;Ie++){var je=arguments[Ie]!=null?arguments[Ie]:{};Ie%2?Vr(Object(je),!0).forEach(function(Ue){_c(ye,Ue,je[Ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ye,Object.getOwnPropertyDescriptors(je)):Vr(Object(je)).forEach(function(Ue){Object.defineProperty(ye,Ue,Object.getOwnPropertyDescriptor(je,Ue))})}return ye}function xs(ye){if(Array.isArray(ye))return ye}function sd(ye,Ie){var je=ye==null?null:typeof Symbol!="undefined"&&ye[Symbol.iterator]||ye["@@iterator"];if(je!=null){var Ue,gt,Ht,$t,an=[],Tn=!0,Un=!1;try{if(Ht=(je=je.call(ye)).next,Ie===0){if(Object(je)!==je)return;Tn=!1}else for(;!(Tn=(Ue=Ht.call(je)).done)&&(an.push(Ue.value),an.length!==Ie);Tn=!0);}catch(Mn){Un=!0,gt=Mn}finally{try{if(!Tn&&je.return!=null&&($t=je.return(),Object($t)!==$t))return}finally{if(Un)throw gt}}return an}}function Vc(ye,Ie){(Ie==null||Ie>ye.length)&&(Ie=ye.length);for(var je=0,Ue=new Array(Ie);je<Ie;je++)Ue[je]=ye[je];return Ue}function xh(ye,Ie){if(ye){if(typeof ye=="string")return Vc(ye,Ie);var je=Object.prototype.toString.call(ye).slice(8,-1);if(je==="Object"&&ye.constructor&&(je=ye.constructor.name),je==="Map"||je==="Set")return Array.from(ye);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Vc(ye,Ie)}}function Th(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _u(ye,Ie){return xs(ye)||sd(ye,Ie)||xh(ye,Ie)||Th()}function Dc(ye,Ie){if(ye==null)return{};var je={},Ue=Object.keys(ye),gt,Ht;for(Ht=0;Ht<Ue.length;Ht++)gt=Ue[Ht],!(Ie.indexOf(gt)>=0)&&(je[gt]=ye[gt]);return je}function Zu(ye,Ie){if(ye==null)return{};var je=Dc(ye,Ie),Ue,gt;if(Object.getOwnPropertySymbols){var Ht=Object.getOwnPropertySymbols(ye);for(gt=0;gt<Ht.length;gt++)Ue=Ht[gt],!(Ie.indexOf(Ue)>=0)&&Object.prototype.propertyIsEnumerable.call(ye,Ue)&&(je[Ue]=ye[Ue])}return je}var Ko=be(64363);function lu(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=[];return He.Children.forEach(ye,function(Ue){Ue==null&&!Ie.keepEmpty||(Array.isArray(Ue)?je=je.concat(lu(Ue)):(0,Ko.isFragment)(Ue)&&Ue.props?je=je.concat(lu(Ue.props.children,Ie)):je.push(Ue))}),je}var Qe={};function Lt(ye,Ie){}function It(ye,Ie){}function jt(){Qe={}}function dn(ye,Ie,je){!Ie&&!Qe[je]&&(ye(!1,je),Qe[je]=!0)}function Sn(ye,Ie){dn(Lt,ye,Ie)}function jn(ye,Ie){dn(It,ye,Ie)}var ui=null;function ji(ye,Ie,je){var Ue=React.useRef({});return(!("value"in Ue.current)||je(Ue.current.condition,Ie))&&(Ue.current.value=ye(),Ue.current.condition=Ie),Ue.current.value}function Ai(ye,Ie){typeof ye=="function"?ye(Ie):Zs(ye)==="object"&&ye&&"current"in ye&&(ye.current=Ie)}function gr(){for(var ye=arguments.length,Ie=new Array(ye),je=0;je<ye;je++)Ie[je]=arguments[je];var Ue=Ie.filter(function(gt){return gt});return Ue.length<=1?Ue[0]:function(gt){Ie.forEach(function(Ht){Ai(Ht,gt)})}}function Oi(){for(var ye=arguments.length,Ie=new Array(ye),je=0;je<ye;je++)Ie[je]=arguments[je];return useMemo(function(){return gr.apply(void 0,Ie)},Ie,function(Ue,gt){return Ue.length===gt.length&&Ue.every(function(Ht,$t){return Ht===gt[$t]})})}function ir(ye){var Ie,je,Ue=(0,Ko.isMemo)(ye)?ye.type.type:ye.type;return!(typeof Ue=="function"&&!((Ie=Ue.prototype)!==null&&Ie!==void 0&&Ie.render)||typeof ye=="function"&&!((je=ye.prototype)!==null&&je!==void 0&&je.render))}function Ji(ye){return ye instanceof HTMLElement||ye instanceof SVGElement}function Tr(ye){return Ji(ye)?ye:ye instanceof He.Component?Si.findDOMNode(ye):null}var ro=new Map;function Ro(ye){ye.forEach(function(Ie){var je,Ue=Ie.target;(je=ro.get(Ue))===null||je===void 0||je.forEach(function(gt){return gt(Ue)})})}var ia=new fa.Z(Ro),Yr=null,ko=null;function oo(ye,Ie){ro.has(ye)||(ro.set(ye,new Set),ia.observe(ye)),ro.get(ye).add(Ie)}function oa(ye,Ie){ro.has(ye)&&(ro.get(ye).delete(Ie),ro.get(ye).size||(ia.unobserve(ye),ro.delete(ye)))}function _a(ye,Ie){if(!(ye instanceof Ie))throw new TypeError("Cannot call a class as a function")}function qo(ye,Ie){for(var je=0;je<Ie.length;je++){var Ue=Ie[je];Ue.enumerable=Ue.enumerable||!1,Ue.configurable=!0,"value"in Ue&&(Ue.writable=!0),Object.defineProperty(ye,js(Ue.key),Ue)}}function cs(ye,Ie,je){return Ie&&qo(ye.prototype,Ie),je&&qo(ye,je),Object.defineProperty(ye,"prototype",{writable:!1}),ye}function ja(ye,Ie){return ja=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ue,gt){return Ue.__proto__=gt,Ue},ja(ye,Ie)}function rs(ye,Ie){if(typeof Ie!="function"&&Ie!==null)throw new TypeError("Super expression must either be null or a function");ye.prototype=Object.create(Ie&&Ie.prototype,{constructor:{value:ye,writable:!0,configurable:!0}}),Object.defineProperty(ye,"prototype",{writable:!1}),Ie&&ja(ye,Ie)}function qs(ye){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(je){return je.__proto__||Object.getPrototypeOf(je)},qs(ye)}function Cs(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(ye){return!1}}function Oe(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}function ze(ye,Ie){if(Ie&&(Zs(Ie)==="object"||typeof Ie=="function"))return Ie;if(Ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oe(ye)}function it(ye){var Ie=Cs();return function(){var Ue=qs(ye),gt;if(Ie){var Ht=qs(this).constructor;gt=Reflect.construct(Ue,arguments,Ht)}else gt=Ue.apply(this,arguments);return ze(this,gt)}}var vt=function(ye){rs(je,ye);var Ie=it(je);function je(){return _a(this,je),Ie.apply(this,arguments)}return cs(je,[{key:"render",value:function(){return this.props.children}}]),je}(He.Component),sn=He.createContext(null);function Ce(ye){var Ie=ye.children,je=ye.onBatchResize,Ue=He.useRef(0),gt=He.useRef([]),Ht=He.useContext(sn),$t=He.useCallback(function(an,Tn,Un){Ue.current+=1;var Mn=Ue.current;gt.current.push({size:an,element:Tn,data:Un}),Promise.resolve().then(function(){Mn===Ue.current&&(je==null||je(gt.current),gt.current=[])}),Ht==null||Ht(an,Tn,Un)},[je,Ht]);return He.createElement(sn.Provider,{value:$t},Ie)}function ke(ye,Ie){var je=ye.children,Ue=ye.disabled,gt=He.useRef(null),Ht=He.useRef(null),$t=He.useContext(sn),an=typeof je=="function",Tn=an?je(gt):je,Un=He.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Mn=!an&&He.isValidElement(Tn)&&ir(Tn),Ei=Mn?Tn.ref:null,Ui=He.useMemo(function(){return gr(Ei,gt)},[Ei,gt]),Ci=function(){return Tr(gt.current)||Tr(Ht.current)};He.useImperativeHandle(Ie,function(){return Ci()});var Li=He.useRef(ye);Li.current=ye;var Di=He.useCallback(function(Ni){var bn=Li.current,Yn=bn.onResize,ei=bn.data,pi=Ni.getBoundingClientRect(),rr=pi.width,$i=pi.height,sr=Ni.offsetWidth,At=Ni.offsetHeight,cr=Math.floor(rr),Pr=Math.floor($i);if(Un.current.width!==cr||Un.current.height!==Pr||Un.current.offsetWidth!==sr||Un.current.offsetHeight!==At){var Ir={width:cr,height:Pr,offsetWidth:sr,offsetHeight:At};Un.current=Ir;var Oo=sr===Math.round(rr)?rr:sr,Ur=At===Math.round($i)?$i:At,Pi=ju(ju({},Ir),{},{offsetWidth:Oo,offsetHeight:Ur});$t==null||$t(Pi,Ni,ei),Yn&&Promise.resolve().then(function(){Yn(Pi,Ni)})}},[]);return He.useEffect(function(){var Ni=Ci();return Ni&&!Ue&&oo(Ni,Di),function(){return oa(Ni,Di)}},[gt.current,Ue]),He.createElement(vt,{ref:Ht},Mn?He.cloneElement(Tn,{ref:Ui}):Tn)}var _e=He.forwardRef(ke),Ye=_e,kt="rc-observer-key";function _t(ye,Ie){var je=ye.children,Ue=typeof je=="function"?[je]:lu(je);return Ue.map(function(gt,Ht){var $t=(gt==null?void 0:gt.key)||"".concat(kt,"-").concat(Ht);return He.createElement(Ye,Ms({},ye,{key:$t,ref:Ht===0?Ie:void 0}),gt)})}var on=He.forwardRef(_t);on.Collection=Ce;var zn=on;function yn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Fn=yn()?He.useLayoutEffect:He.useEffect,qn=function(Ie,je){var Ue=He.useRef(!0);Fn(function(){return Ie(Ue.current)},je),Fn(function(){return Ue.current=!1,function(){Ue.current=!0}},[])},$n=function(Ie,je){qn(function(Ue){if(!Ue)return Ie()},je)},Wi=qn,xi=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],li=void 0;function Fi(ye,Ie){var je=ye.prefixCls,Ue=ye.invalidate,gt=ye.item,Ht=ye.renderItem,$t=ye.responsive,an=ye.responsiveDisabled,Tn=ye.registerSize,Un=ye.itemKey,Mn=ye.className,Ei=ye.style,Ui=ye.children,Ci=ye.display,Li=ye.order,Di=ye.component,Ni=Di===void 0?"div":Di,bn=Zu(ye,xi),Yn=$t&&!Ci;function ei(At){Tn(Un,At)}He.useEffect(function(){return function(){ei(null)}},[]);var pi=Ht&&gt!==li?Ht(gt,{index:Li}):Ui,rr;Ue||(rr={opacity:Yn?0:1,height:Yn?0:li,overflowY:Yn?"hidden":li,order:$t?Li:li,pointerEvents:Yn?"none":li,position:Yn?"absolute":li});var $i={};Yn&&($i["aria-hidden"]=!0);var sr=He.createElement(Ni,Ms({className:Zn()(!Ue&&je,Mn),style:ju(ju({},rr),Ei)},$i,bn,{ref:Ie}),pi);return $t&&(sr=He.createElement(zn,{onResize:function(cr){var Pr=cr.offsetWidth;ei(Pr)},disabled:an},sr)),sr}var Zi=He.forwardRef(Fi);Zi.displayName="Item";var ur=Zi;function to(ye){var Ie=He.useRef();Ie.current=ye;var je=He.useCallback(function(){for(var Ue,gt=arguments.length,Ht=new Array(gt),$t=0;$t<gt;$t++)Ht[$t]=arguments[$t];return(Ue=Ie.current)===null||Ue===void 0?void 0:Ue.call.apply(Ue,[Ie].concat(Ht))},[]);return je}var br=function(Ie){return+setTimeout(Ie,16)},Sr=function(Ie){return clearTimeout(Ie)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(br=function(Ie){return window.requestAnimationFrame(Ie)},Sr=function(Ie){return window.cancelAnimationFrame(Ie)});var wo=0,Mi=new Map;function Jr(ye){Mi.delete(ye)}var mr=function(Ie){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;wo+=1;var Ue=wo;function gt(Ht){if(Ht===0)Jr(Ue),Ie();else{var $t=br(function(){gt(Ht-1)});Mi.set(Ue,$t)}}return gt(je),Ue};mr.cancel=function(ye){var Ie=Mi.get(ye);return Jr(Ie),Sr(Ie)};var ao=mr;function po(ye){if(typeof MessageChannel=="undefined")ao(ye);else{var Ie=new MessageChannel;Ie.port1.onmessage=function(){return ye()},Ie.port2.postMessage(void 0)}}function Ar(){var ye=He.useRef(null),Ie=function(Ue){ye.current||(ye.current=[],po(function(){(0,Si.unstable_batchedUpdates)(function(){ye.current.forEach(function(gt){gt()}),ye.current=null})})),ye.current.push(Ue)};return Ie}function To(ye,Ie){var je=He.useState(Ie),Ue=_u(je,2),gt=Ue[0],Ht=Ue[1],$t=to(function(an){ye(function(){Ht(an)})});return[gt,$t]}var mo=He.createContext(null),zo=["component"],Dr=["className"],Co=["className"],ca=function(Ie,je){var Ue=He.useContext(mo);if(!Ue){var gt=Ie.component,Ht=gt===void 0?"div":gt,$t=Zu(Ie,zo);return He.createElement(Ht,Ms({},$t,{ref:je}))}var an=Ue.className,Tn=Zu(Ue,Dr),Un=Ie.className,Mn=Zu(Ie,Co);return He.createElement(mo.Provider,{value:null},He.createElement(ur,Ms({ref:je,className:Zn()(an,Un)},Tn,Mn)))},Da=He.forwardRef(ca);Da.displayName="RawItem";var ga=Da,Qr=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Jo="responsive",ua="invalidate";function Ea(ye){return"+ ".concat(ye.length," ...")}function es(ye,Ie){var je=ye.prefixCls,Ue=je===void 0?"rc-overflow":je,gt=ye.data,Ht=gt===void 0?[]:gt,$t=ye.renderItem,an=ye.renderRawItem,Tn=ye.itemKey,Un=ye.itemWidth,Mn=Un===void 0?10:Un,Ei=ye.ssr,Ui=ye.style,Ci=ye.className,Li=ye.maxCount,Di=ye.renderRest,Ni=ye.renderRawRest,bn=ye.suffix,Yn=ye.component,ei=Yn===void 0?"div":Yn,pi=ye.itemComponent,rr=ye.onVisibleChange,$i=Zu(ye,Qr),sr=Ei==="full",At=Ar(),cr=To(At,null),Pr=_u(cr,2),Ir=Pr[0],Oo=Pr[1],Ur=Ir||0,Pi=To(At,new Map),qi=_u(Pi,2),Hi=qi[0],Lr=qi[1],Eo=To(At,0),vr=_u(Eo,2),qr=vr[0],xr=vr[1],fr=To(At,0),_r=_u(fr,2),Kr=_r[0],Aa=_r[1],Ya=To(At,0),bo=_u(Ya,2),co=bo[0],vo=bo[1],Qo=(0,He.useState)(null),xa=_u(Qo,2),Oa=xa[0],no=xa[1],Rr=(0,He.useState)(null),wa=_u(Rr,2),Pa=wa[0],gs=wa[1],Fa=He.useMemo(function(){return Pa===null&&sr?Number.MAX_SAFE_INTEGER:Pa||0},[Pa,Ir]),Ja=(0,He.useState)(!1),Es=_u(Ja,2),Ma=Es[0],Qa=Es[1],Ks="".concat(Ue,"-item"),Xs=Math.max(qr,Kr),vl=Li===Jo,hs=Ht.length&&vl,Yl=Li===ua,Js=hs||typeof Li=="number"&&Ht.length>Li,ws=(0,He.useMemo)(function(){var is=Ht;return hs?Ir===null&&sr?is=Ht:is=Ht.slice(0,Math.min(Ht.length,Ur/Mn)):typeof Li=="number"&&(is=Ht.slice(0,Li)),is},[Ht,Mn,Ir,Li,hs]),bs=(0,He.useMemo)(function(){return hs?Ht.slice(Fa+1):Ht.slice(ws.length)},[Ht,ws,hs,Fa]),Za=(0,He.useCallback)(function(is,rl){var Zl;return typeof Tn=="function"?Tn(is):(Zl=Tn&&(is==null?void 0:is[Tn]))!==null&&Zl!==void 0?Zl:rl},[Tn]),Go=(0,He.useCallback)($t||function(is){return is},[$t]);function yl(is,rl,Zl){Pa===is&&(rl===void 0||rl===Oa)||(gs(is),Zl||(Qa(is<Ht.length-1),rr==null||rr(is)),rl!==void 0&&no(rl))}function pa(is,rl){Oo(rl.clientWidth)}function Lo(is,rl){Lr(function(Zl){var Du=new Map(Zl);return rl===null?Du.delete(is):Du.set(is,rl),Du})}function Uo(is,rl){Aa(rl),xr(Kr)}function jr(is,rl){vo(rl)}function Wo(is){return Hi.get(Za(ws[is],is))}Wi(function(){if(Ur&&typeof Xs=="number"&&ws){var is=co,rl=ws.length,Zl=rl-1;if(!rl){yl(0,null);return}for(var Du=0;Du<rl;Du+=1){var uh=Wo(Du);if(sr&&(uh=uh||0),uh===void 0){yl(Du-1,void 0,!0);break}if(is+=uh,Zl===0&&is<=Ur||Du===Zl-1&&is+Wo(Zl)<=Ur){yl(Zl,null);break}else if(is+Xs>Ur){yl(Du-1,is-uh-co+Kr);break}}bn&&Wo(0)+co>Ur&&no(null)}},[Ur,Hi,Kr,co,Za,ws]);var os=Ma&&!!bs.length,vs={};Oa!==null&&hs&&(vs={position:"absolute",left:Oa,top:0});var Ps={prefixCls:Ks,responsive:hs,component:pi,invalidate:Yl},bl=an?function(is,rl){var Zl=Za(is,rl);return He.createElement(mo.Provider,{key:Zl,value:ju(ju({},Ps),{},{order:rl,item:is,itemKey:Zl,registerSize:Lo,display:rl<=Fa})},an(is,rl))}:function(is,rl){var Zl=Za(is,rl);return He.createElement(ur,Ms({},Ps,{order:rl,key:Zl,item:is,renderItem:Go,itemKey:Zl,registerSize:Lo,display:rl<=Fa}))},ul={order:os?Fa:Number.MAX_SAFE_INTEGER,className:"".concat(Ks,"-rest"),registerSize:Uo,display:os},Nu=Di||Ea,Nl=Ni?He.createElement(mo.Provider,{value:ju(ju({},Ps),ul)},Ni(bs)):He.createElement(ur,Ms({},Ps,ul),typeof Nu=="function"?Nu(bs):Nu),bu=He.createElement(ei,Ms({className:Zn()(!Yl&&Ue,Ci),style:Ui,ref:Ie},$i),ws.map(bl),Js?Nl:null,bn&&He.createElement(ur,Ms({},Ps,{responsive:vl,responsiveDisabled:!hs,order:Fa,className:"".concat(Ks,"-suffix"),registerSize:jr,display:!0,style:vs}),bn));return vl?He.createElement(zn,{onResize:pa,disabled:!hs},bu):bu}var ba=He.forwardRef(es);ba.displayName="Overflow",ba.Item=ga,ba.RESPONSIVE=Jo,ba.INVALIDATE=ua;var _o=ba,yo=_o;function ta(ye){var Ie=ye.prefixCls,je=ye.value,Ue=ye.onRemove,gt=ye.removeIcon,Ht=gt===void 0?"\xD7":gt,$t=ye.formatDate,an=ye.disabled,Tn=ye.maxTagCount,Un=ye.placeholder,Mn="".concat(Ie,"-selector"),Ei="".concat(Ie,"-selection"),Ui="".concat(Ei,"-overflow");function Ci(Ni,bn){return He.createElement("span",{className:Zn()("".concat(Ei,"-item")),title:typeof Ni=="string"?Ni:null},He.createElement("span",{className:"".concat(Ei,"-item-content")},Ni),!an&&bn&&He.createElement("span",{onMouseDown:function(ei){ei.preventDefault()},onClick:bn,className:"".concat(Ei,"-item-remove")},Ht))}function Li(Ni){var bn=$t(Ni),Yn=function(pi){pi&&pi.stopPropagation(),Ue(Ni)};return Ci(bn,Yn)}function Di(Ni){var bn="+ ".concat(Ni.length," ...");return Ci(bn)}return He.createElement("div",{className:Mn},He.createElement(yo,{prefixCls:Ui,data:je,renderItem:Li,renderRest:Di,itemKey:function(bn){return $t(bn)},maxCount:Tn}),!je.length&&He.createElement("span",{className:"".concat(Ie,"-selection-placeholder")},Un))}var Ka=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Vo(ye,Ie){var je=ye.id,Ue=ye.open,gt=ye.prefix,Ht=ye.clearIcon,$t=ye.suffixIcon,an=ye.activeHelp,Tn=ye.allHelp,Un=ye.focused,Mn=ye.onFocus,Ei=ye.onBlur,Ui=ye.onKeyDown,Ci=ye.locale,Li=ye.generateConfig,Di=ye.placeholder,Ni=ye.className,bn=ye.style,Yn=ye.onClick,ei=ye.onClear,pi=ye.internalPicker,rr=ye.value,$i=ye.onChange,sr=ye.onSubmit,At=ye.onInputChange,cr=ye.multiple,Pr=ye.maxTagCount,Ir=ye.format,Oo=ye.maskFormat,Ur=ye.preserveInvalidOnBlur,Pi=ye.onInvalid,qi=ye.disabled,Hi=ye.invalid,Lr=ye.inputReadOnly,Eo=ye.direction,vr=ye.onOpenChange,qr=ye.onMouseDown,xr=ye.required,fr=ye["aria-required"],_r=ye.autoFocus,Kr=ye.tabIndex,Aa=ye.removeIcon,Ya=Wl(ye,Ka),bo=Eo==="rtl",co=He.useContext(sa),vo=co.prefixCls,Qo=He.useRef(),xa=He.useRef();He.useImperativeHandle(Ie,function(){return{nativeElement:Qo.current,focus:function(Qa){var Ks;(Ks=xa.current)===null||Ks===void 0||Ks.focus(Qa)},blur:function(){var Qa;(Qa=xa.current)===null||Qa===void 0||Qa.blur()}}});var Oa=Fo(Ya),no=function(Qa){$i([Qa])},Rr=function(Qa){var Ks=rr.filter(function(Xs){return Xs&&!hr(Li,Ci,Xs,Qa,pi)});$i(Ks),Ue||sr()},wa=fu((0,pt.Z)((0,pt.Z)({},ye),{},{onChange:no}),function(Ma){var Qa=Ma.valueTexts;return{value:Qa[0]||"",active:Un}}),Pa=ct(wa,2),gs=Pa[0],Fa=Pa[1],Ja=!!(Ht&&rr.length&&!qi),Es=cr?He.createElement(He.Fragment,null,He.createElement(ta,{prefixCls:vo,value:rr,onRemove:Rr,formatDate:Fa,maxTagCount:Pr,disabled:qi,removeIcon:Aa,placeholder:Di}),He.createElement("input",{className:"".concat(vo,"-multiple-input"),value:rr.map(Fa).join(","),ref:xa,readOnly:!0,autoFocus:_r,tabIndex:Kr}),He.createElement(fi,{type:"suffix",icon:$t}),Ja&&He.createElement(Kl,{icon:Ht,onClear:ei})):He.createElement(ll,ve({ref:xa},gs(),{autoFocus:_r,tabIndex:Kr,suffixIcon:$t,clearIcon:Ja&&He.createElement(Kl,{icon:Ht,onClear:ei}),showActiveCls:!1}));return He.createElement("div",ve({},Oa,{className:Zn()(vo,(0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)({},"".concat(vo,"-multiple"),cr),"".concat(vo,"-focused"),Un),"".concat(vo,"-disabled"),qi),"".concat(vo,"-invalid"),Hi),"".concat(vo,"-rtl"),bo),Ni),style:bn,ref:Qo,onClick:Yn,onMouseDown:function(Qa){var Ks,Xs=Qa.target;Xs!==((Ks=xa.current)===null||Ks===void 0?void 0:Ks.inputElement)&&Qa.preventDefault(),qr==null||qr(Qa)}}),gt&&He.createElement("div",{className:"".concat(vo,"-prefix")},gt),Es)}var Zr=He.forwardRef(Vo),ho=Zr;function fo(ye,Ie){var je=Yo(ye),Ue=ct(je,6),gt=Ue[0],Ht=Ue[1],$t=Ue[2],an=Ue[3],Tn=Ue[4],Un=Ue[5],Mn=gt,Ei=Mn.prefixCls,Ui=Mn.styles,Ci=Mn.classNames,Li=Mn.order,Di=Mn.defaultValue,Ni=Mn.value,bn=Mn.needConfirm,Yn=Mn.onChange,ei=Mn.onKeyDown,pi=Mn.disabled,rr=Mn.disabledDate,$i=Mn.minDate,sr=Mn.maxDate,At=Mn.defaultOpen,cr=Mn.open,Pr=Mn.onOpenChange,Ir=Mn.locale,Oo=Mn.generateConfig,Ur=Mn.picker,Pi=Mn.showNow,qi=Mn.showToday,Hi=Mn.showTime,Lr=Mn.mode,Eo=Mn.onPanelChange,vr=Mn.onCalendarChange,qr=Mn.onOk,xr=Mn.multiple,fr=Mn.defaultPickerValue,_r=Mn.pickerValue,Kr=Mn.onPickerValueChange,Aa=Mn.inputReadOnly,Ya=Mn.suffixIcon,bo=Mn.removeIcon,co=Mn.onFocus,vo=Mn.onBlur,Qo=Mn.presets,xa=Mn.components,Oa=Mn.cellRender,no=Mn.dateRender,Rr=Mn.monthCellRender,wa=Mn.onClick,Pa=ka(Ie);function gs(oe){return oe===null?null:xr?oe:oe[0]}var Fa=zu(Oo,Ir,Ht),Ja=_n(cr,At,[pi],Pr),Es=ct(Ja,2),Ma=Es[0],Qa=Es[1],Ks=function(he,de,pe){if(vr){var Fe=(0,pt.Z)({},pe);delete Fe.range,vr(gs(he),gs(de),Fe)}},Xs=function(he){qr==null||qr(gs(he))},vl=St(Oo,Ir,an,!1,Li,Di,Ni,Ks,Xs),hs=ct(vl,5),Yl=hs[0],Js=hs[1],ws=hs[2],bs=hs[3],Za=hs[4],Go=ws(),yl=Ws([pi]),pa=ct(yl,4),Lo=pa[0],Uo=pa[1],jr=pa[2],Wo=pa[3],os=function(he){Uo(!0),co==null||co(he,{})},vs=function(he){Uo(!1),vo==null||vo(he,{})},Ps=Tt(Ur,{value:Lr}),bl=ct(Ps,2),ul=bl[0],Nu=bl[1],Nl=ul==="date"&&Hi?"datetime":ul,bu=gn(Ur,ul,Pi,qi),is=Yn&&function(oe,he){Yn(gs(oe),gs(he))},rl=zt((0,pt.Z)((0,pt.Z)({},gt),{},{onChange:is}),Yl,Js,ws,bs,[],an,Lo,Ma,Un),Zl=ct(rl,2),Du=Zl[1],uh=Jn(Go,Un),Zh=ct(uh,2),Xh=Zh[0],Jh=Zh[1],Ld=He.useMemo(function(){return Xh.some(function(oe){return oe})},[Xh]),_f=function(he,de){if(Kr){var pe=(0,pt.Z)((0,pt.Z)({},de),{},{mode:de.mode[0]});delete pe.range,Kr(he[0],pe)}},Gd=Ua(Oo,Ir,Go,[ul],Ma,Wo,Ht,!1,fr,_r,la(Hi==null?void 0:Hi.defaultOpenValue),_f,$i,sr),wh=ct(Gd,2),Ud=wh[0],kd=wh[1],yf=Te(function(oe,he,de){if(Nu(he),Eo&&de!==!1){var pe=oe||Go[Go.length-1];Eo(pe,he)}}),ch=function(){Du(ws()),Qa(!1,{force:!0})},Yd=function(he){!pi&&!Pa.current.nativeElement.contains(document.activeElement)&&Pa.current.focus(),Qa(!0),wa==null||wa(he)},zs=function(){Du(null),Qa(!1,{force:!0})},ld=He.useState(null),Bh=ct(ld,2),Au=Bh[0],Vu=Bh[1],Qh=He.useState(null),qh=ct(Qh,2),Ph=qh[0],ud=qh[1],cd=He.useMemo(function(){var oe=[Ph].concat(Je(Go)).filter(function(he){return he});return xr?oe:oe.slice(0,1)},[Go,Ph,xr]),Fd=He.useMemo(function(){return!xr&&Ph?[Ph]:Go.filter(function(oe){return oe})},[Go,Ph,xr]);He.useEffect(function(){Ma||ud(null)},[Ma]);var Zd=An(Qo),Oh=function(he){ud(he),Vu("preset")},$h=function(he){var de=xr?Fa(ws(),he):[he],pe=Du(de);pe&&!xr&&Qa(!1,{force:!0})},Ih=function(he){$h(he)},Al=function(he){ud(he),Vu("cell")},Xd=function(he){Qa(!0),os(he)},Sf=function(he){if(jr("panel"),!(xr&&Nl!==Ur)){var de=xr?Fa(ws(),he):[he];bs(de),!bn&&!$t&&Ht===Nl&&ch()}},hd=function(){Qa(!1)},dd=ri(Oa,no,Rr),Nd=He.useMemo(function(){var oe=ar(gt,!1),he=Cn(gt,[].concat(Je(Object.keys(oe)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,pt.Z)((0,pt.Z)({},he),{},{multiple:gt.multiple})},[gt]),Vf=He.createElement(ol,ve({},Nd,{showNow:bu,showTime:Hi,disabledDate:rr,onFocus:Xd,onBlur:vs,picker:Ur,mode:ul,internalMode:Nl,onPanelChange:yf,format:Tn,value:Go,isInvalid:Un,onChange:null,onSelect:Sf,pickerValue:Ud,defaultOpenValue:Hi==null?void 0:Hi.defaultOpenValue,onPickerValueChange:kd,hoverValue:cd,onHover:Al,needConfirm:bn,onSubmit:ch,onOk:Za,presets:Zd,onPresetHover:Oh,onPresetSubmit:$h,onNow:Ih,cellRender:dd})),yu=function(he){bs(he)},Kf=function(){jr("input")},fd=function(he){jr("input"),Qa(!0,{inherit:!0}),os(he)},Ch=function(he){Qa(!1),vs(he)},Dd=function(he,de){he.key==="Tab"&&ch(),ei==null||ei(he,de)},ie=He.useMemo(function(){return{prefixCls:Ei,locale:Ir,generateConfig:Oo,button:xa.button,input:xa.input}},[Ei,Ir,Oo,xa.button,xa.input]);return ft(function(){Ma&&Wo!==void 0&&yf(null,Ur,!1)},[Ma,Wo,Ur]),ft(function(){var oe=jr();!Ma&&oe==="input"&&(Qa(!1),ch()),!Ma&&$t&&!bn&&oe==="panel"&&ch()},[Ma]),He.createElement(sa.Provider,{value:ie},He.createElement(Ha,ve({},hn(gt),{popupElement:Vf,popupStyle:Ui.popup,popupClassName:Ci.popup,visible:Ma,onClose:hd}),He.createElement(ho,ve({},gt,{ref:Pa,suffixIcon:Ya,removeIcon:bo,activeHelp:!!Ph,allHelp:!!Ph&&Au==="preset",focused:Lo,onFocus:fd,onBlur:Ch,onKeyDown:Dd,onSubmit:ch,value:Fd,maskFormat:Tn,onChange:yu,onInputChange:Kf,internalPicker:Ht,format:an,inputReadOnly:Aa,disabled:pi,open:Ma,onOpenChange:Qa,onClick:Yd,onClear:zs,invalid:Ld,onInvalid:function(he){Jh(he,0)}}))))}var Mr=He.forwardRef(fo),Gr=Mr,Do=Gr},50538:function(Rn,ti){"use strict";var be;var ve=typeof Symbol=="function"&&Symbol.for,tt=ve?Symbol.for("react.element"):60103,Pt=ve?Symbol.for("react.portal"):60106,Ut=ve?Symbol.for("react.fragment"):60107,Bt=ve?Symbol.for("react.strict_mode"):60108,Re=ve?Symbol.for("react.profiler"):60114,Je=ve?Symbol.for("react.provider"):60109,pt=ve?Symbol.for("react.context"):60110,wt=ve?Symbol.for("react.async_mode"):60111,ht=ve?Symbol.for("react.concurrent_mode"):60111,Vt=ve?Symbol.for("react.forward_ref"):60112,ct=ve?Symbol.for("react.suspense"):60113,He=ve?Symbol.for("react.suspense_list"):60120,Te=ve?Symbol.for("react.memo"):60115,ne=ve?Symbol.for("react.lazy"):60116,te=ve?Symbol.for("react.block"):60121,ue=ve?Symbol.for("react.fundamental"):60117,se=ve?Symbol.for("react.responder"):60118,ge=ve?Symbol.for("react.scope"):60119;function me(Pe){if(typeof Pe=="object"&&Pe!==null){var Ke=Pe.$$typeof;switch(Ke){case tt:switch(Pe=Pe.type,Pe){case wt:case ht:case Ut:case Re:case Bt:case ct:return Pe;default:switch(Pe=Pe&&Pe.$$typeof,Pe){case pt:case Vt:case ne:case Te:case Je:return Pe;default:return Ke}}case Pt:return Ke}}}function xe(Pe){return me(Pe)===ht}be=wt,be=ht,be=pt,be=Je,be=tt,be=Vt,be=Ut,be=ne,be=Te,be=Pt,be=Re,be=Bt,be=ct,be=function(Pe){return xe(Pe)||me(Pe)===wt},be=xe,be=function(Pe){return me(Pe)===pt},be=function(Pe){return me(Pe)===Je},be=function(Pe){return typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===tt},be=function(Pe){return me(Pe)===Vt},ti.isFragment=function(Pe){return me(Pe)===Ut},be=function(Pe){return me(Pe)===ne},ti.isMemo=function(Pe){return me(Pe)===Te},be=function(Pe){return me(Pe)===Pt},be=function(Pe){return me(Pe)===Re},be=function(Pe){return me(Pe)===Bt},be=function(Pe){return me(Pe)===ct},be=function(Pe){return typeof Pe=="string"||typeof Pe=="function"||Pe===Ut||Pe===ht||Pe===Re||Pe===Bt||Pe===ct||Pe===He||typeof Pe=="object"&&Pe!==null&&(Pe.$$typeof===ne||Pe.$$typeof===Te||Pe.$$typeof===Je||Pe.$$typeof===pt||Pe.$$typeof===Vt||Pe.$$typeof===ue||Pe.$$typeof===se||Pe.$$typeof===ge||Pe.$$typeof===te)},be=me},64363:function(Rn,ti,be){"use strict";Rn.exports=be(50538)},36963:function(Rn,ti){"use strict";var be;var ve=Symbol.for("react.element"),tt=Symbol.for("react.portal"),Pt=Symbol.for("react.fragment"),Ut=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),wt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Te=Symbol.for("react.offscreen"),ne;ne=Symbol.for("react.module.reference");function te(ue){if(typeof ue=="object"&&ue!==null){var se=ue.$$typeof;switch(se){case ve:switch(ue=ue.type,ue){case Pt:case Bt:case Ut:case ht:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case wt:case He:case ct:case Re:return ue;default:return se}}case tt:return se}}}be=Je,be=Re,be=ve,ti.ForwardRef=wt,be=Pt,be=He,be=ct,be=tt,be=Bt,be=Ut,be=ht,be=Vt,be=function(){return!1},be=function(){return!1},be=function(ue){return te(ue)===Je},be=function(ue){return te(ue)===Re},be=function(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===ve},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===Pt},be=function(ue){return te(ue)===He},ti.isMemo=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===tt},be=function(ue){return te(ue)===Bt},be=function(ue){return te(ue)===Ut},be=function(ue){return te(ue)===ht},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===Pt||ue===Bt||ue===Ut||ue===ht||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===He||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===wt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},17756:function(Rn,ti,be){"use strict";Rn.exports=be(36963)},43579:function(Rn,ti,be){"use strict";be.d(ti,{Cd:function(){return Tt}});var ve=be(87462),tt=be(1413),Pt=be(45987),Ut=be(67294),Bt=be(94184),Re=be.n(Bt),Je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},pt=function(){var Dt=(0,Ut.useRef)([]),Nt=(0,Ut.useRef)(null);return(0,Ut.useEffect)(function(){var Bn=Date.now(),On=!1;Dt.current.forEach(function(Qt){if(Qt){On=!0;var vn=Qt.style;vn.transitionDuration=".3s, .3s, .3s, .06s",Nt.current&&Bn-Nt.current<100&&(vn.transitionDuration="0s, 0s")}}),On&&(Nt.current=Date.now())}),Dt.current},wt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ht=function(Dt){var Nt=(0,tt.Z)((0,tt.Z)({},Je),Dt),Bn=Nt.className,On=Nt.percent,Qt=Nt.prefixCls,vn=Nt.strokeColor,lt=Nt.strokeLinecap,Ge=Nt.strokeWidth,Ne=Nt.style,Nn=Nt.trailColor,Xn=Nt.trailWidth,Xt=Nt.transition,ai=(0,Pt.Z)(Nt,wt);delete ai.gapPosition;var xn=Array.isArray(On)?On:[On],gi=Array.isArray(vn)?vn:[vn],Zt=pt(),Ct=Ge/2,qt=100-Ge/2,hi="M ".concat(lt==="round"?Ct:0,",").concat(Ct,`
L `).concat(lt==="round"?qt:100,",").concat(Ct),Kt="0 0 100 ".concat(Ge),Xe=0;return Ut.createElement("svg",(0,ve.Z)({className:Re()("".concat(Qt,"-line"),Bn),viewBox:Kt,preserveAspectRatio:"none",style:Ne},ai),Ut.createElement("path",{className:"".concat(Qt,"-line-trail"),d:hi,strokeLinecap:lt,stroke:Nn,strokeWidth:Xn||Ge,fillOpacity:"0"}),xn.map(function(Le,Me){var We=1;switch(lt){case"round":We=1-Ge/100;break;case"square":We=1-Ge/2/100;break;default:We=1;break}var $e={strokeDasharray:"".concat(Le*We,"px, 100px"),strokeDashoffset:"-".concat(Xe,"px"),transition:Xt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Be=gi[Me]||gi[gi.length-1];return Xe+=Le,Ut.createElement("path",{key:Me,className:"".concat(Qt,"-line-path"),d:hi,strokeLinecap:lt,stroke:Be,strokeWidth:Ge,fillOpacity:"0",ref:function(Vn){Zt[Me]=Vn},style:$e})}))},Vt=ht,ct=be(71002),He=be(97685),Te=be(98924),ne=0,te=(0,Te.Z)();function ue(){var yt;return te?(yt=ne,ne+=1):yt="TEST_OR_SSR",yt}var se=function(yt){var Dt=Ut.useState(),Nt=(0,He.Z)(Dt,2),Bn=Nt[0],On=Nt[1];return Ut.useEffect(function(){On("rc_progress_".concat(ue()))},[]),yt||Bn},ge=function(Dt){var Nt=Dt.bg,Bn=Dt.children;return Ut.createElement("div",{style:{width:"100%",height:"100%",background:Nt}},Bn)};function me(yt,Dt){return Object.keys(yt).map(function(Nt){var Bn=parseFloat(Nt),On="".concat(Math.floor(Bn*Dt),"%");return"".concat(yt[Nt]," ").concat(On)})}var xe=Ut.forwardRef(function(yt,Dt){var Nt=yt.prefixCls,Bn=yt.color,On=yt.gradientId,Qt=yt.radius,vn=yt.style,lt=yt.ptg,Ge=yt.strokeLinecap,Ne=yt.strokeWidth,Nn=yt.size,Xn=yt.gapDegree,Xt=Bn&&(0,ct.Z)(Bn)==="object",ai=Xt?"#FFF":void 0,xn=Nn/2,gi=Ut.createElement("circle",{className:"".concat(Nt,"-circle-path"),r:Qt,cx:xn,cy:xn,stroke:ai,strokeLinecap:Ge,strokeWidth:Ne,opacity:lt===0?0:1,style:vn,ref:Dt});if(!Xt)return gi;var Zt="".concat(On,"-conic"),Ct=Xn?"".concat(180+Xn/2,"deg"):"0deg",qt=me(Bn,(360-Xn)/360),hi=me(Bn,1),Kt="conic-gradient(from ".concat(Ct,", ").concat(qt.join(", "),")"),Xe="linear-gradient(to ".concat(Xn?"bottom":"top",", ").concat(hi.join(", "),")");return Ut.createElement(Ut.Fragment,null,Ut.createElement("mask",{id:Zt},gi),Ut.createElement("foreignObject",{x:0,y:0,width:Nn,height:Nn,mask:"url(#".concat(Zt,")")},Ut.createElement(ge,{bg:Xe},Ut.createElement(ge,{bg:Kt}))))}),Pe=xe,Ke=100,qe=function(Dt,Nt,Bn,On,Qt,vn,lt,Ge,Ne,Nn){var Xn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Xt=Bn/100*360*((360-vn)/360),ai=vn===0?0:{bottom:0,top:180,left:90,right:-90}[lt],xn=(100-On)/100*Nt;Ne==="round"&&On!==100&&(xn+=Nn/2,xn>=Nt&&(xn=Nt-.01));var gi=Ke/2;return{stroke:typeof Ge=="string"?Ge:void 0,strokeDasharray:"".concat(Nt,"px ").concat(Dt),strokeDashoffset:xn+Xn,transform:"rotate(".concat(Qt+Xt+ai,"deg)"),transformOrigin:"".concat(gi,"px ").concat(gi,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ft=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function st(yt){var Dt=yt!=null?yt:[];return Array.isArray(Dt)?Dt:[Dt]}var rt=function(Dt){var Nt=(0,tt.Z)((0,tt.Z)({},Je),Dt),Bn=Nt.id,On=Nt.prefixCls,Qt=Nt.steps,vn=Nt.strokeWidth,lt=Nt.trailWidth,Ge=Nt.gapDegree,Ne=Ge===void 0?0:Ge,Nn=Nt.gapPosition,Xn=Nt.trailColor,Xt=Nt.strokeLinecap,ai=Nt.style,xn=Nt.className,gi=Nt.strokeColor,Zt=Nt.percent,Ct=(0,Pt.Z)(Nt,ft),qt=Ke/2,hi=se(Bn),Kt="".concat(hi,"-gradient"),Xe=qt-vn/2,Le=Math.PI*2*Xe,Me=Ne>0?90+Ne/2:-90,We=Le*((360-Ne)/360),$e=(0,ct.Z)(Qt)==="object"?Qt:{count:Qt,gap:2},Be=$e.count,ut=$e.gap,Vn=st(Zt),In=st(gi),Cn=In.find(function(Yi){return Yi&&(0,ct.Z)(Yi)==="object"}),Pn=Cn&&(0,ct.Z)(Cn)==="object",oi=Pn?"butt":Xt,mn=qe(Le,We,0,100,Me,Ne,Nn,Xn,oi,vn),bi=pt(),_i=function(){var ki=0;return Vn.map(function(Xr,Ki){var lr=In[Ki]||In[In.length-1],ar=qe(Le,We,ki,Xr,Me,Ne,Nn,lr,oi,vn);return ki+=Xr,Ut.createElement(Pe,{key:Ki,color:lr,ptg:Xr,radius:Xe,prefixCls:On,gradientId:Kt,style:ar,strokeLinecap:oi,strokeWidth:vn,gapDegree:Ne,ref:function(Bi){bi[Ki]=Bi},size:Ke})}).reverse()},Br=function(){var ki=Math.round(Be*(Vn[0]/100)),Xr=100/Be,Ki=0;return new Array(Be).fill(null).map(function(lr,ar){var kn=ar<=ki-1?In[0]:Xn,Bi=kn&&(0,ct.Z)(kn)==="object"?"url(#".concat(Kt,")"):void 0,ea=qe(Le,We,Ki,Xr,Me,Ne,Nn,kn,"butt",vn,ut);return Ki+=(We-ea.strokeDashoffset+ut)*100/We,Ut.createElement("circle",{key:ar,className:"".concat(On,"-circle-path"),r:Xe,cx:qt,cy:qt,stroke:Bi,strokeWidth:vn,opacity:1,style:ea,ref:function(Wr){bi[ar]=Wr}})})};return Ut.createElement("svg",(0,ve.Z)({className:Re()("".concat(On,"-circle"),xn),viewBox:"0 0 ".concat(Ke," ").concat(Ke),style:ai,id:Bn,role:"presentation"},Ct),!Be&&Ut.createElement("circle",{className:"".concat(On,"-circle-trail"),r:Xe,cx:qt,cy:qt,stroke:Xn,strokeLinecap:oi,strokeWidth:lt||vn,style:mn}),Be?Br():_i())},Tt=rt,Mt={Line:Vt,Circle:Tt}},71032:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return me}});var ve=be(87462),tt=be(4942),Pt=be(97685),Ut=be(45987),Bt=be(94184),Re=be.n(Bt),Je=be(21770),pt=be(15105),wt=be(64217),ht=be(67294);function Vt(xe,Pe){var Ke=xe.disabled,qe=xe.prefixCls,ft=xe.character,st=xe.characterRender,rt=xe.index,Tt=xe.count,Mt=xe.value,yt=xe.allowHalf,Dt=xe.focused,Nt=xe.onHover,Bn=xe.onClick,On=function(Xt){Nt(Xt,rt)},Qt=function(Xt){Bn(Xt,rt)},vn=function(Xt){Xt.keyCode===pt.Z.ENTER&&Bn(Xt,rt)},lt=rt+1,Ge=new Set([qe]);Mt===0&&rt===0&&Dt?Ge.add("".concat(qe,"-focused")):yt&&Mt+.5>=lt&&Mt<lt?(Ge.add("".concat(qe,"-half")),Ge.add("".concat(qe,"-active")),Dt&&Ge.add("".concat(qe,"-focused"))):(lt<=Mt?Ge.add("".concat(qe,"-full")):Ge.add("".concat(qe,"-zero")),lt===Mt&&Dt&&Ge.add("".concat(qe,"-focused")));var Ne=typeof ft=="function"?ft(xe):ft,Nn=ht.createElement("li",{className:Re()(Array.from(Ge)),ref:Pe},ht.createElement("div",{onClick:Ke?null:Qt,onKeyDown:Ke?null:vn,onMouseMove:Ke?null:On,role:"radio","aria-checked":Mt>rt?"true":"false","aria-posinset":rt+1,"aria-setsize":Tt,tabIndex:Ke?-1:0},ht.createElement("div",{className:"".concat(qe,"-first")},Ne),ht.createElement("div",{className:"".concat(qe,"-second")},Ne)));return st&&(Nn=st(Nn,xe)),Nn}var ct=ht.forwardRef(Vt);function He(){var xe=ht.useRef({});function Pe(qe){return xe.current[qe]}function Ke(qe){return function(ft){xe.current[qe]=ft}}return[Pe,Ke]}function Te(xe){var Pe=xe.pageXOffset,Ke="scrollLeft";if(typeof Pe!="number"){var qe=xe.document;Pe=qe.documentElement[Ke],typeof Pe!="number"&&(Pe=qe.body[Ke])}return Pe}function ne(xe){var Pe,Ke,qe=xe.ownerDocument,ft=qe.body,st=qe&&qe.documentElement,rt=xe.getBoundingClientRect();return Pe=rt.left,Ke=rt.top,Pe-=st.clientLeft||ft.clientLeft||0,Ke-=st.clientTop||ft.clientTop||0,{left:Pe,top:Ke}}function te(xe){var Pe=ne(xe),Ke=xe.ownerDocument,qe=Ke.defaultView||Ke.parentWindow;return Pe.left+=Te(qe),Pe.left}var ue=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(xe,Pe){var Ke=xe.prefixCls,qe=Ke===void 0?"rc-rate":Ke,ft=xe.className,st=xe.defaultValue,rt=xe.value,Tt=xe.count,Mt=Tt===void 0?5:Tt,yt=xe.allowHalf,Dt=yt===void 0?!1:yt,Nt=xe.allowClear,Bn=Nt===void 0?!0:Nt,On=xe.keyboard,Qt=On===void 0?!0:On,vn=xe.character,lt=vn===void 0?"\u2605":vn,Ge=xe.characterRender,Ne=xe.disabled,Nn=xe.direction,Xn=Nn===void 0?"ltr":Nn,Xt=xe.tabIndex,ai=Xt===void 0?0:Xt,xn=xe.autoFocus,gi=xe.onHoverChange,Zt=xe.onChange,Ct=xe.onFocus,qt=xe.onBlur,hi=xe.onKeyDown,Kt=xe.onMouseLeave,Xe=(0,Ut.Z)(xe,ue),Le=He(),Me=(0,Pt.Z)(Le,2),We=Me[0],$e=Me[1],Be=ht.useRef(null),ut=function(){if(!Ne){var No;(No=Be.current)===null||No===void 0||No.focus()}};ht.useImperativeHandle(Pe,function(){return{focus:ut,blur:function(){if(!Ne){var No;(No=Be.current)===null||No===void 0||No.blur()}}}});var Vn=(0,Je.Z)(st||0,{value:rt}),In=(0,Pt.Z)(Vn,2),Cn=In[0],Pn=In[1],oi=(0,Je.Z)(null),mn=(0,Pt.Z)(oi,2),bi=mn[0],_i=mn[1],Br=function(No,ni){var Ee=Xn==="rtl",pn=No+1;if(Dt){var hn=We(No),ri=te(hn),Jn=hn.clientWidth;(Ee&&ni-ri>Jn/2||!Ee&&ni-ri<Jn/2)&&(pn-=.5)}return pn},Yi=function(No){Pn(No),Zt==null||Zt(No)},ki=ht.useState(!1),Xr=(0,Pt.Z)(ki,2),Ki=Xr[0],lr=Xr[1],ar=function(){lr(!0),Ct==null||Ct()},kn=function(){lr(!1),qt==null||qt()},Bi=ht.useState(null),ea=(0,Pt.Z)(Bi,2),Zn=ea[0],Wr=ea[1],ra=function(No,ni){var Ee=Br(ni,No.pageX);Ee!==bi&&(Wr(Ee),_i(null)),gi==null||gi(Ee)},sa=function(No){Ne||(Wr(null),_i(null),gi==null||gi(void 0)),No&&(Kt==null||Kt(No))},Wa=function(No,ni){var Ee=Br(ni,No.pageX),pn=!1;Bn&&(pn=Ee===Cn),sa(),Yi(pn?0:Ee),_i(pn?Ee:null)},ma=function(No){var ni=No.keyCode,Ee=Xn==="rtl",pn=Dt?.5:1;Qt&&(ni===pt.Z.RIGHT&&Cn<Mt&&!Ee?(Yi(Cn+pn),No.preventDefault()):ni===pt.Z.LEFT&&Cn>0&&!Ee||ni===pt.Z.RIGHT&&Cn>0&&Ee?(Yi(Cn-pn),No.preventDefault()):ni===pt.Z.LEFT&&Cn<Mt&&Ee&&(Yi(Cn+pn),No.preventDefault())),hi==null||hi(No)};ht.useEffect(function(){xn&&!Ne&&ut()},[]);var Ha=new Array(Mt).fill(0).map(function(la,No){return ht.createElement(ct,{ref:$e(No),index:No,count:Mt,disabled:Ne,prefixCls:"".concat(qe,"-star"),allowHalf:Dt,value:Zn===null?Cn:Zn,onClick:Wa,onHover:ra,key:la||No,character:lt,characterRender:Ge,focused:Ki})}),da=Re()(qe,ft,(0,tt.Z)((0,tt.Z)({},"".concat(qe,"-disabled"),Ne),"".concat(qe,"-rtl"),Xn==="rtl"));return ht.createElement("ul",(0,ve.Z)({className:da,onMouseLeave:sa,tabIndex:Ne?-1:ai,onFocus:Ne?null:ar,onBlur:Ne?null:kn,onKeyDown:Ne?null:ma,ref:Be},(0,wt.Z)(Xe,{aria:!0,data:!0,attr:!0})),Ha)}var ge=ht.forwardRef(se),me=ge},58212:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return vn}});function ve(){return ve=Object.assign?Object.assign.bind():function(lt){for(var Ge=1;Ge<arguments.length;Ge++){var Ne=arguments[Ge];for(var Nn in Ne)Object.prototype.hasOwnProperty.call(Ne,Nn)&&(lt[Nn]=Ne[Nn])}return lt},ve.apply(this,arguments)}function tt(lt){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge},tt(lt)}function Pt(lt,Ge){if(tt(lt)!=="object"||lt===null)return lt;var Ne=lt[Symbol.toPrimitive];if(Ne!==void 0){var Nn=Ne.call(lt,Ge||"default");if(tt(Nn)!=="object")return Nn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ge==="string"?String:Number)(lt)}function Ut(lt){var Ge=Pt(lt,"string");return tt(Ge)==="symbol"?Ge:String(Ge)}function Bt(lt,Ge,Ne){return Ge=Ut(Ge),Ge in lt?Object.defineProperty(lt,Ge,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):lt[Ge]=Ne,lt}function Re(lt){if(Array.isArray(lt))return lt}function Je(lt,Ge){var Ne=lt==null?null:typeof Symbol!="undefined"&&lt[Symbol.iterator]||lt["@@iterator"];if(Ne!=null){var Nn,Xn,Xt,ai,xn=[],gi=!0,Zt=!1;try{if(Xt=(Ne=Ne.call(lt)).next,Ge===0){if(Object(Ne)!==Ne)return;gi=!1}else for(;!(gi=(Nn=Xt.call(Ne)).done)&&(xn.push(Nn.value),xn.length!==Ge);gi=!0);}catch(Ct){Zt=!0,Xn=Ct}finally{try{if(!gi&&Ne.return!=null&&(ai=Ne.return(),Object(ai)!==ai))return}finally{if(Zt)throw Xn}}return xn}}function pt(lt,Ge){(Ge==null||Ge>lt.length)&&(Ge=lt.length);for(var Ne=0,Nn=new Array(Ge);Ne<Ge;Ne++)Nn[Ne]=lt[Ne];return Nn}function wt(lt,Ge){if(lt){if(typeof lt=="string")return pt(lt,Ge);var Ne=Object.prototype.toString.call(lt).slice(8,-1);if(Ne==="Object"&&lt.constructor&&(Ne=lt.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(lt);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return pt(lt,Ge)}}function ht(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vt(lt,Ge){return Re(lt)||Je(lt,Ge)||wt(lt,Ge)||ht()}function ct(lt,Ge){if(lt==null)return{};var Ne={},Nn=Object.keys(lt),Xn,Xt;for(Xt=0;Xt<Nn.length;Xt++)Xn=Nn[Xt],!(Ge.indexOf(Xn)>=0)&&(Ne[Xn]=lt[Xn]);return Ne}function He(lt,Ge){if(lt==null)return{};var Ne=ct(lt,Ge),Nn,Xn;if(Object.getOwnPropertySymbols){var Xt=Object.getOwnPropertySymbols(lt);for(Xn=0;Xn<Xt.length;Xn++)Nn=Xt[Xn],!(Ge.indexOf(Nn)>=0)&&Object.prototype.propertyIsEnumerable.call(lt,Nn)&&(Ne[Nn]=lt[Nn])}return Ne}var Te=be(67294),ne=be(94184),te=be.n(ne);function ue(lt){if(Array.isArray(lt))return lt}function se(lt,Ge){var Ne=lt==null?null:typeof Symbol!="undefined"&&lt[Symbol.iterator]||lt["@@iterator"];if(Ne!=null){var Nn,Xn,Xt,ai,xn=[],gi=!0,Zt=!1;try{if(Xt=(Ne=Ne.call(lt)).next,Ge===0){if(Object(Ne)!==Ne)return;gi=!1}else for(;!(gi=(Nn=Xt.call(Ne)).done)&&(xn.push(Nn.value),xn.length!==Ge);gi=!0);}catch(Ct){Zt=!0,Xn=Ct}finally{try{if(!gi&&Ne.return!=null&&(ai=Ne.return(),Object(ai)!==ai))return}finally{if(Zt)throw Xn}}return xn}}function ge(lt,Ge){(Ge==null||Ge>lt.length)&&(Ge=lt.length);for(var Ne=0,Nn=new Array(Ge);Ne<Ge;Ne++)Nn[Ne]=lt[Ne];return Nn}function me(lt,Ge){if(lt){if(typeof lt=="string")return ge(lt,Ge);var Ne=Object.prototype.toString.call(lt).slice(8,-1);if(Ne==="Object"&&lt.constructor&&(Ne=lt.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(lt);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return ge(lt,Ge)}}function xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pe(lt,Ge){return ue(lt)||se(lt,Ge)||me(lt,Ge)||xe()}function Ke(lt){var Ge=Te.useRef();Ge.current=lt;var Ne=Te.useCallback(function(){for(var Nn,Xn=arguments.length,Xt=new Array(Xn),ai=0;ai<Xn;ai++)Xt[ai]=arguments[ai];return(Nn=Ge.current)===null||Nn===void 0?void 0:Nn.call.apply(Nn,[Ge].concat(Xt))},[]);return Ne}function qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ft=qe()?Te.useLayoutEffect:Te.useEffect,st=function(Ge,Ne){var Nn=Te.useRef(!0);ft(function(){return Ge(Nn.current)},Ne),ft(function(){return Nn.current=!1,function(){Nn.current=!0}},[])},rt=function(Ge,Ne){st(function(Nn){if(!Nn)return Ge()},Ne)},Tt=null;function Mt(lt){var Ge=Te.useRef(!1),Ne=Te.useState(lt),Nn=Pe(Ne,2),Xn=Nn[0],Xt=Nn[1];Te.useEffect(function(){return Ge.current=!1,function(){Ge.current=!0}},[]);function ai(xn,gi){gi&&Ge.current||Xt(xn)}return[Xn,ai]}function yt(lt){return lt!==void 0}function Dt(lt,Ge){var Ne=Ge||{},Nn=Ne.defaultValue,Xn=Ne.value,Xt=Ne.onChange,ai=Ne.postState,xn=Mt(function(){return yt(Xn)?Xn:yt(Nn)?typeof Nn=="function"?Nn():Nn:typeof lt=="function"?lt():lt}),gi=Pe(xn,2),Zt=gi[0],Ct=gi[1],qt=Xn!==void 0?Xn:Zt,hi=ai?ai(qt):qt,Kt=Ke(Xt),Xe=Mt([qt]),Le=Pe(Xe,2),Me=Le[0],We=Le[1];rt(function(){var Be=Me[0];Zt!==Be&&Kt(Zt,Be)},[Me]),rt(function(){yt(Xn)||Ct(Xn)},[Xn]);var $e=Ke(function(Be,ut){Ct(Be,ut),We([qt],ut)});return[hi,$e]}var Nt={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(Ge){var Ne=Ge.keyCode;if(Ge.altKey&&!Ge.ctrlKey||Ge.metaKey||Ne>=Nt.F1&&Ne<=Nt.F12)return!1;switch(Ne){case Nt.ALT:case Nt.CAPS_LOCK:case Nt.CONTEXT_MENU:case Nt.CTRL:case Nt.DOWN:case Nt.END:case Nt.ESC:case Nt.HOME:case Nt.INSERT:case Nt.LEFT:case Nt.MAC_FF_META:case Nt.META:case Nt.NUMLOCK:case Nt.NUM_CENTER:case Nt.PAGE_DOWN:case Nt.PAGE_UP:case Nt.PAUSE:case Nt.PRINT_SCREEN:case Nt.RIGHT:case Nt.SHIFT:case Nt.UP:case Nt.WIN_KEY:case Nt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ge){if(Ge>=Nt.ZERO&&Ge<=Nt.NINE||Ge>=Nt.NUM_ZERO&&Ge<=Nt.NUM_MULTIPLY||Ge>=Nt.A&&Ge<=Nt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ge===0)return!0;switch(Ge){case Nt.SPACE:case Nt.QUESTION_MARK:case Nt.NUM_PLUS:case Nt.NUM_MINUS:case Nt.NUM_PERIOD:case Nt.NUM_DIVISION:case Nt.SEMICOLON:case Nt.DASH:case Nt.EQUALS:case Nt.COMMA:case Nt.PERIOD:case Nt.SLASH:case Nt.APOSTROPHE:case Nt.SINGLE_QUOTE:case Nt.OPEN_SQUARE_BRACKET:case Nt.BACKSLASH:case Nt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Bn=Nt,On=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Qt=Te.forwardRef(function(lt,Ge){var Ne,Nn=lt.prefixCls,Xn=Nn===void 0?"rc-switch":Nn,Xt=lt.className,ai=lt.checked,xn=lt.defaultChecked,gi=lt.disabled,Zt=lt.loadingIcon,Ct=lt.checkedChildren,qt=lt.unCheckedChildren,hi=lt.onClick,Kt=lt.onChange,Xe=lt.onKeyDown,Le=He(lt,On),Me=Dt(!1,{value:ai,defaultValue:xn}),We=Vt(Me,2),$e=We[0],Be=We[1];function ut(Pn,oi){var mn=$e;return gi||(mn=Pn,Be(mn),Kt==null||Kt(mn,oi)),mn}function Vn(Pn){Pn.which===Bn.LEFT?ut(!1,Pn):Pn.which===Bn.RIGHT&&ut(!0,Pn),Xe==null||Xe(Pn)}function In(Pn){var oi=ut(!$e,Pn);hi==null||hi(oi,Pn)}var Cn=te()(Xn,Xt,(Ne={},Bt(Ne,"".concat(Xn,"-checked"),$e),Bt(Ne,"".concat(Xn,"-disabled"),gi),Ne));return Te.createElement("button",ve({},Le,{type:"button",role:"switch","aria-checked":$e,disabled:gi,className:Cn,ref:Ge,onKeyDown:Vn,onClick:In}),Zt,Te.createElement("span",{className:"".concat(Xn,"-inner")},Te.createElement("span",{className:"".concat(Xn,"-inner-checked")},Ct),Te.createElement("span",{className:"".concat(Xn,"-inner-unchecked")},qt)))});Qt.displayName="Switch";var vn=Qt},45233:function(Rn,ti,be){"use strict";be.d(ti,{R:function(){return tt},w:function(){return ve}});var ve={},tt="rc-table-internal-hook"},54768:function(Rn,ti,be){"use strict";be.d(ti,{L:function(){return ue},Z:function(){return Pe}});var ve=be(97685),tt=be(4942),Pt=be(74902),Ut=be(71002),Bt=be(1413),Re=be(45987),Je=be(63295),pt=be(67294);function wt(Ke){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=[];return pt.Children.forEach(Ke,function(st){st==null&&!qe.keepEmpty||(Array.isArray(st)?ft=ft.concat(wt(st)):(0,Je.Z)(st)&&st.props?ft=ft.concat(wt(st.props.children,qe)):ft.push(st))}),ft}var ht=be(40830),Vt=be(45233),ct=be(62978);function He(Ke){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof qe=="number"?qe:qe.endsWith("%")?Ke*parseFloat(qe)/100:null}function Te(Ke,qe,ft){return pt.useMemo(function(){if(qe&&qe>0){var st=0,rt=0;Ke.forEach(function(Qt){var vn=He(qe,Qt.width);vn?st+=vn:rt+=1});var Tt=Math.max(qe,ft),Mt=Math.max(Tt-st,rt),yt=rt,Dt=Mt/rt,Nt=0,Bn=Ke.map(function(Qt){var vn=(0,Bt.Z)({},Qt),lt=He(qe,vn.width);if(lt)vn.width=lt;else{var Ge=Math.floor(Dt);vn.width=yt===1?Mt:Ge,Mt-=Ge,yt-=1}return Nt+=vn.width,vn});if(Nt<Tt){var On=Tt/Nt;Mt=Tt,Bn.forEach(function(Qt,vn){var lt=Math.floor(Qt.width*On);Qt.width=vn===Bn.length-1?Mt:lt,Mt-=lt})}return[Bn,Math.max(Nt,Tt)]}return[Ke,qe]},[Ke,qe,ft])}var ne=["children"],te=["fixed"];function ue(Ke){return wt(Ke).filter(function(qe){return pt.isValidElement(qe)}).map(function(qe){var ft=qe.key,st=qe.props,rt=st.children,Tt=(0,Re.Z)(st,ne),Mt=(0,Bt.Z)({key:ft},Tt);return rt&&(Mt.children=ue(rt)),Mt})}function se(Ke){return Ke.filter(function(qe){return qe&&(0,Ut.Z)(qe)==="object"&&!qe.hidden}).map(function(qe){var ft=qe.children;return ft&&ft.length>0?(0,Bt.Z)((0,Bt.Z)({},qe),{},{children:se(ft)}):qe})}function ge(Ke){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ke.filter(function(ft){return ft&&(0,Ut.Z)(ft)==="object"}).reduce(function(ft,st,rt){var Tt=st.fixed,Mt=Tt===!0?"left":Tt,yt="".concat(qe,"-").concat(rt),Dt=st.children;return Dt&&Dt.length>0?[].concat((0,Pt.Z)(ft),(0,Pt.Z)(ge(Dt,yt).map(function(Nt){return(0,Bt.Z)({fixed:Mt},Nt)}))):[].concat((0,Pt.Z)(ft),[(0,Bt.Z)((0,Bt.Z)({key:yt},st),{},{fixed:Mt})])},[])}function me(Ke){return Ke.map(function(qe){var ft=qe.fixed,st=(0,Re.Z)(qe,te),rt=ft;return ft==="left"?rt="right":ft==="right"&&(rt="left"),(0,Bt.Z)({fixed:rt},st)})}function xe(Ke,qe){var ft=Ke.prefixCls,st=Ke.columns,rt=Ke.children,Tt=Ke.expandable,Mt=Ke.expandedKeys,yt=Ke.columnTitle,Dt=Ke.getRowKey,Nt=Ke.onTriggerExpand,Bn=Ke.expandIcon,On=Ke.rowExpandable,Qt=Ke.expandIconColumnIndex,vn=Ke.direction,lt=Ke.expandRowByClick,Ge=Ke.columnWidth,Ne=Ke.fixed,Nn=Ke.scrollWidth,Xn=Ke.clientWidth,Xt=pt.useMemo(function(){var Xe=st||ue(rt)||[];return se(Xe.slice())},[st,rt]),ai=pt.useMemo(function(){if(Tt){var Xe=Xt.slice();if(!Xe.includes(Vt.w)){var Le=Qt||0;Le>=0&&(Le||Ne==="left"||!Ne)&&Xe.splice(Le,0,Vt.w),Ne==="right"&&Xe.splice(Xt.length,0,Vt.w)}var Me=Xe.indexOf(Vt.w);Xe=Xe.filter(function(ut,Vn){return ut!==Vt.w||Vn===Me});var We=Xt[Me],$e;Ne?$e=Ne:$e=We?We.fixed:null;var Be=(0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)({},ct.v,{className:"".concat(ft,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",yt),"fixed",$e),"className","".concat(ft,"-row-expand-icon-cell")),"width",Ge),"render",function(Vn,In,Cn){var Pn=Dt(In,Cn),oi=Mt.has(Pn),mn=On?On(In):!0,bi=Bn({prefixCls:ft,expanded:oi,expandable:mn,record:In,onExpand:Nt});return lt?pt.createElement("span",{onClick:function(Br){return Br.stopPropagation()}},bi):bi});return Xe.map(function(ut){return ut===Vt.w?Be:ut})}return Xt.filter(function(ut){return ut!==Vt.w})},[Tt,Xt,Dt,Mt,Bn,vn]),xn=pt.useMemo(function(){var Xe=ai;return qe&&(Xe=qe(Xe)),Xe.length||(Xe=[{render:function(){return null}}]),Xe},[qe,ai,vn]),gi=pt.useMemo(function(){return vn==="rtl"?me(ge(xn)):ge(xn)},[xn,vn,Nn]),Zt=pt.useMemo(function(){for(var Xe=-1,Le=gi.length-1;Le>=0;Le-=1){var Me=gi[Le].fixed;if(Me==="left"||Me===!0){Xe=Le;break}}if(Xe>=0)for(var We=0;We<=Xe;We+=1){var $e=gi[We].fixed;if($e!=="left"&&$e!==!0)return!0}var Be=gi.findIndex(function(In){var Cn=In.fixed;return Cn==="right"});if(Be>=0)for(var ut=Be;ut<gi.length;ut+=1){var Vn=gi[ut].fixed;if(Vn!=="right")return!0}return!1},[gi]),Ct=Te(gi,Nn,Xn),qt=(0,ve.Z)(Ct,2),hi=qt[0],Kt=qt[1];return[xn,hi,Kt,Zt]}var Pe=xe},29104:function(Rn,ti,be){"use strict";be.d(ti,{w2:function(){return ve.w},vP:function(){return Er.v},RQ:function(){return ve.R},ER:function(){return ni},Q$:function(){return il},TN:function(){return Zu}});var ve=be(45233),tt=be(97685),Pt=be(66680),Ut=be(8410),Bt=be(91881),Re=be(67294),Je=be(73935);function pt(Qe){var Lt=Re.createContext(void 0),It=function(dn){var Sn=dn.value,jn=dn.children,ui=Re.useRef(Sn);ui.current=Sn;var ji=Re.useState(function(){return{getValue:function(){return ui.current},listeners:new Set}}),Ai=(0,tt.Z)(ji,1),gr=Ai[0];return(0,Ut.Z)(function(){(0,Je.unstable_batchedUpdates)(function(){gr.listeners.forEach(function(Oi){Oi(Sn)})})},[Sn]),Re.createElement(Lt.Provider,{value:gr},jn)};return{Context:Lt,Provider:It,defaultValue:Qe}}function wt(Qe,Lt){var It=(0,Pt.Z)(typeof Lt=="function"?Lt:function(Oi){if(Lt===void 0)return Oi;if(!Array.isArray(Lt))return Oi[Lt];var ir={};return Lt.forEach(function(Ji){ir[Ji]=Oi[Ji]}),ir}),jt=Re.useContext(Qe==null?void 0:Qe.Context),dn=jt||{},Sn=dn.listeners,jn=dn.getValue,ui=Re.useRef();ui.current=It(jt?jn():Qe==null?void 0:Qe.defaultValue);var ji=Re.useState({}),Ai=(0,tt.Z)(ji,2),gr=Ai[1];return(0,Ut.Z)(function(){if(!jt)return;function Oi(ir){var Ji=It(ir);(0,Bt.Z)(ui.current,Ji,!0)||gr({})}return Sn.add(Oi),function(){Sn.delete(Oi)}},[jt]),ui.current}var ht=be(87462),Vt=be(42550);function ct(){var Qe=Re.createContext(null);function Lt(){return Re.useContext(Qe)}function It(dn,Sn){var jn=(0,Vt.Yr)(dn),ui=function(Ai,gr){var Oi=jn?{ref:gr}:{},ir=Re.useRef(0),Ji=Re.useRef(Ai),Tr=Lt();return Tr!==null?Re.createElement(dn,(0,ht.Z)({},Ai,Oi)):((!Sn||Sn(Ji.current,Ai))&&(ir.current+=1),Ji.current=Ai,Re.createElement(Qe.Provider,{value:ir.current},Re.createElement(dn,(0,ht.Z)({},Ai,Oi))))};return jn?Re.forwardRef(ui):ui}function jt(dn,Sn){var jn=(0,Vt.Yr)(dn),ui=function(Ai,gr){var Oi=jn?{ref:gr}:{};return Lt(),Re.createElement(dn,(0,ht.Z)({},Ai,Oi))};return jn?Re.memo(Re.forwardRef(ui),Sn):Re.memo(ui,Sn)}return{makeImmutable:It,responseImmutable:jt,useImmutableMark:Lt}}var He=ct(),Te=He.makeImmutable,ne=He.responseImmutable,te=He.useImmutableMark,ue=ct(),se=ue.makeImmutable,ge=ue.responseImmutable,me=ue.useImmutableMark,xe=pt(),Pe=xe;function Ke(Qe,Lt){var It=React.useRef(0);It.current+=1;var jt=React.useRef(Qe),dn=[];Object.keys(Qe||{}).map(function(jn){var ui;(Qe==null?void 0:Qe[jn])!==((ui=jt.current)===null||ui===void 0?void 0:ui[jn])&&dn.push(jn)}),jt.current=Qe;var Sn=React.useRef([]);return dn.length&&(Sn.current=dn),React.useDebugValue(It.current),React.useDebugValue(Sn.current.join(", ")),Lt&&console.log("".concat(Lt,":"),It.current,Sn.current),It.current}var qe=null,ft=null,st=be(71002),rt=be(1413),Tt=be(4942),Mt=be(94184),yt=be.n(Mt);function Dt(Qe,Lt,It){var jt=Re.useRef({});return(!("value"in jt.current)||It(jt.current.condition,Lt))&&(jt.current.value=Qe(),jt.current.condition=Lt),jt.current.value}var Nt=be(40830);function Bn(Qe,Lt){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,jt=new Set;function dn(Sn,jn){var ui=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ji=jt.has(Sn);if((0,Nt.ZP)(!ji,"Warning: There may be circular references"),ji)return!1;if(Sn===jn)return!0;if(It&&ui>1)return!1;jt.add(Sn);var Ai=ui+1;if(Array.isArray(Sn)){if(!Array.isArray(jn)||Sn.length!==jn.length)return!1;for(var gr=0;gr<Sn.length;gr++)if(!dn(Sn[gr],jn[gr],Ai))return!1;return!0}if(Sn&&jn&&(0,st.Z)(Sn)==="object"&&(0,st.Z)(jn)==="object"){var Oi=Object.keys(Sn);return Oi.length!==Object.keys(jn).length?!1:Oi.every(function(ir){return dn(Sn[ir],jn[ir],Ai)})}return!1}return dn(Qe,Lt)}var On=Bn;function Qt(Qe,Lt){for(var It=Qe,jt=0;jt<Lt.length;jt+=1){if(It==null)return;It=It[Lt[jt]]}return It}var vn=Re.createContext({renderWithProps:!1}),lt=vn,Ge="RC_TABLE_KEY";function Ne(Qe){return Qe==null?[]:Array.isArray(Qe)?Qe:[Qe]}function Nn(Qe){var Lt=[],It={};return Qe.forEach(function(jt){for(var dn=jt||{},Sn=dn.key,jn=dn.dataIndex,ui=Sn||Ne(jn).join("-")||Ge;It[ui];)ui="".concat(ui,"_next");It[ui]=!0,Lt.push(ui)}),Lt}function Xn(Qe){return Qe!=null}function Xt(Qe){return typeof Qe=="number"&&!Number.isNaN(Qe)}function ai(Qe){return Qe&&(0,st.Z)(Qe)==="object"&&!Array.isArray(Qe)&&!Re.isValidElement(Qe)}function xn(Qe,Lt,It,jt,dn,Sn){var jn=Re.useContext(lt),ui=me(),ji=Dt(function(){if(Xn(jt))return[jt];var Ai=Lt==null||Lt===""?[]:Array.isArray(Lt)?Lt:[Lt],gr=Qt(Qe,Ai),Oi=gr,ir=void 0;if(dn){var Ji=dn(gr,Qe,It);ai(Ji)?(Oi=Ji.children,ir=Ji.props,jn.renderWithProps=!0):Oi=Ji}return[Oi,ir]},[ui,Qe,jt,Lt,dn,It],function(Ai,gr){if(Sn){var Oi=(0,tt.Z)(Ai,2),ir=Oi[1],Ji=(0,tt.Z)(gr,2),Tr=Ji[1];return Sn(Tr,ir)}return jn.renderWithProps?!0:!On(Ai,gr,!0)});return ji}function gi(Qe,Lt,It,jt){var dn=Qe+Lt-1;return Qe<=jt&&dn>=It}function Zt(Qe,Lt){return wt(Pe,function(It){var jt=gi(Qe,Lt||1,It.hoverStartRow,It.hoverEndRow);return[jt,It.onHover]})}function Ct(Qe){var Lt=Re.useRef();Lt.current=Qe;var It=Re.useCallback(function(){for(var jt,dn=arguments.length,Sn=new Array(dn),jn=0;jn<dn;jn++)Sn[jn]=arguments[jn];return(jt=Lt.current)===null||jt===void 0?void 0:jt.call.apply(jt,[Lt].concat(Sn))},[]);return It}function qt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var hi=qt()?Re.useLayoutEffect:Re.useEffect,Kt=function(Lt,It){var jt=React.useRef(!0);hi(function(){return Lt(jt.current)},It),hi(function(){return jt.current=!1,function(){jt.current=!0}},[])},Xe=function(Lt,It){Kt(function(jt){if(!jt)return Lt()},It)},Le=null;function Me(Qe){var Lt=React.useRef(!1),It=React.useState(Qe),jt=_slicedToArray(It,2),dn=jt[0],Sn=jt[1];React.useEffect(function(){return Lt.current=!1,function(){Lt.current=!0}},[]);function jn(ui,ji){ji&&Lt.current||Sn(ui)}return[dn,jn]}function We(Qe){return Qe!==void 0}function $e(Qe,Lt){var It=Lt||{},jt=It.defaultValue,dn=It.value,Sn=It.onChange,jn=It.postState,ui=useState(function(){return We(dn)?dn:We(jt)?typeof jt=="function"?jt():jt:typeof Qe=="function"?Qe():Qe}),ji=_slicedToArray(ui,2),Ai=ji[0],gr=ji[1],Oi=dn!==void 0?dn:Ai,ir=jn?jn(Oi):Oi,Ji=useEvent(Sn),Tr=useState([Oi]),ro=_slicedToArray(Tr,2),Ro=ro[0],ia=ro[1];useLayoutUpdateEffect(function(){var ko=Ro[0];Ai!==ko&&Ji(Ai,ko)},[Ro]),useLayoutUpdateEffect(function(){We(dn)||gr(dn)},[dn]);var Yr=useEvent(function(ko,oo){gr(ko,oo),ia([Oi],oo)});return[ir,Yr]}var Be=be(35110),ut=be(63295),Vn=Number(Re.version.split(".")[0]),In=function(Lt,It){typeof Lt=="function"?Lt(It):(0,st.Z)(Lt)==="object"&&Lt&&"current"in Lt&&(Lt.current=It)},Cn=function(){for(var Lt=arguments.length,It=new Array(Lt),jt=0;jt<Lt;jt++)It[jt]=arguments[jt];var dn=It.filter(Boolean);return dn.length<=1?dn[0]:function(Sn){It.forEach(function(jn){In(jn,Sn)})}},Pn=function(){for(var Lt=arguments.length,It=new Array(Lt),jt=0;jt<Lt;jt++)It[jt]=arguments[jt];return useMemo(function(){return Cn.apply(void 0,It)},It,function(dn,Sn){return dn.length!==Sn.length||dn.every(function(jn,ui){return jn!==Sn[ui]})})},oi=function(Lt){var It,jt;if(!Lt)return!1;if(mn(Lt)&&Vn>=19)return!0;var dn=isMemo(Lt)?Lt.type.type:Lt.type;return!(typeof dn=="function"&&!((It=dn.prototype)!==null&&It!==void 0&&It.render)&&dn.$$typeof!==ForwardRef||typeof Lt=="function"&&!((jt=Lt.prototype)!==null&&jt!==void 0&&jt.render)&&Lt.$$typeof!==ForwardRef)};function mn(Qe){return isValidElement(Qe)&&!isFragment(Qe)}var bi=function(Lt){return mn(Lt)&&oi(Lt)},_i=function(Lt){if(Lt&&mn(Lt)){var It=Lt;return It.props.propertyIsEnumerable("ref")?It.props.ref:It.ref}return null};function Br(Qe,Lt,It,jt){if(!Lt.length)return It;var dn=_toArray(Lt),Sn=dn[0],jn=dn.slice(1),ui;return!Qe&&typeof Sn=="number"?ui=[]:Array.isArray(Qe)?ui=_toConsumableArray(Qe):ui=_objectSpread({},Qe),jt&&It===void 0&&jn.length===1?delete ui[Sn][jn[0]]:ui[Sn]=Br(ui[Sn],jn,It,jt),ui}function Yi(Qe,Lt,It){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Lt.length&&jt&&It===void 0&&!get(Qe,Lt.slice(0,-1))?Qe:Br(Qe,Lt,It,jt)}function ki(Qe){return _typeof(Qe)==="object"&&Qe!==null&&Object.getPrototypeOf(Qe)===Object.prototype}function Xr(Qe){return Array.isArray(Qe)?[]:{}}var Ki=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function lr(){for(var Qe=arguments.length,Lt=new Array(Qe),It=0;It<Qe;It++)Lt[It]=arguments[It];var jt=Xr(Lt[0]);return Lt.forEach(function(dn){function Sn(jn,ui){var ji=new Set(ui),Ai=get(dn,jn),gr=Array.isArray(Ai);if(gr||ki(Ai)){if(!ji.has(Ai)){ji.add(Ai);var Oi=get(jt,jn);gr?jt=Yi(jt,jn,[]):(!Oi||_typeof(Oi)!=="object")&&(jt=Yi(jt,jn,Xr(Ai))),Ki(Ai).forEach(function(ir){Sn([].concat(_toConsumableArray(jn),[ir]),ji)})}}else jt=Yi(jt,jn,Ai)}Sn([])}),jt}var ar=function(Lt){var It=Lt.ellipsis,jt=Lt.rowType,dn=Lt.children,Sn,jn=It===!0?{showTitle:!0}:It;return jn&&(jn.showTitle||jt==="header")&&(typeof dn=="string"||typeof dn=="number"?Sn=dn.toString():Re.isValidElement(dn)&&typeof dn.props.children=="string"&&(Sn=dn.props.children)),Sn};function kn(Qe){var Lt,It,jt,dn,Sn,jn,ui,ji,Ai=Qe.component,gr=Qe.children,Oi=Qe.ellipsis,ir=Qe.scope,Ji=Qe.prefixCls,Tr=Qe.className,ro=Qe.align,Ro=Qe.record,ia=Qe.render,Yr=Qe.dataIndex,ko=Qe.renderIndex,oo=Qe.shouldCellUpdate,oa=Qe.index,_a=Qe.rowType,qo=Qe.colSpan,cs=Qe.rowSpan,ja=Qe.fixLeft,rs=Qe.fixRight,qs=Qe.firstFixLeft,Cs=Qe.lastFixLeft,Oe=Qe.firstFixRight,ze=Qe.lastFixRight,it=Qe.appendNode,vt=Qe.additionalProps,sn=vt===void 0?{}:vt,Ce=Qe.isSticky,ke="".concat(Ji,"-cell"),_e=wt(Pe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ye=_e.supportSticky,kt=_e.allColumnsFixedLeft,_t=_e.rowHoverable,on=xn(Ro,Yr,ko,gr,ia,oo),zn=(0,tt.Z)(on,2),yn=zn[0],Fn=zn[1],qn={},$n=typeof ja=="number"&&Ye,Wi=typeof rs=="number"&&Ye;$n&&(qn.position="sticky",qn.left=ja),Wi&&(qn.position="sticky",qn.right=rs);var xi=(Lt=(It=(jt=Fn==null?void 0:Fn.colSpan)!==null&&jt!==void 0?jt:sn.colSpan)!==null&&It!==void 0?It:qo)!==null&&Lt!==void 0?Lt:1,li=(dn=(Sn=(jn=Fn==null?void 0:Fn.rowSpan)!==null&&jn!==void 0?jn:sn.rowSpan)!==null&&Sn!==void 0?Sn:cs)!==null&&dn!==void 0?dn:1,Fi=Zt(oa,li),Zi=(0,tt.Z)(Fi,2),ur=Zi[0],to=Zi[1],br=Ct(function(po){var Ar;Ro&&to(oa,oa+li-1),sn==null||(Ar=sn.onMouseEnter)===null||Ar===void 0||Ar.call(sn,po)}),Sr=Ct(function(po){var Ar;Ro&&to(-1,-1),sn==null||(Ar=sn.onMouseLeave)===null||Ar===void 0||Ar.call(sn,po)});if(xi===0||li===0)return null;var wo=(ui=sn.title)!==null&&ui!==void 0?ui:ar({rowType:_a,ellipsis:Oi,children:yn}),Mi=yt()(ke,Tr,(ji={},(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)(ji,"".concat(ke,"-fix-left"),$n&&Ye),"".concat(ke,"-fix-left-first"),qs&&Ye),"".concat(ke,"-fix-left-last"),Cs&&Ye),"".concat(ke,"-fix-left-all"),Cs&&kt&&Ye),"".concat(ke,"-fix-right"),Wi&&Ye),"".concat(ke,"-fix-right-first"),Oe&&Ye),"".concat(ke,"-fix-right-last"),ze&&Ye),"".concat(ke,"-ellipsis"),Oi),"".concat(ke,"-with-append"),it),"".concat(ke,"-fix-sticky"),($n||Wi)&&Ce&&Ye),(0,Tt.Z)(ji,"".concat(ke,"-row-hover"),!Fn&&ur)),sn.className,Fn==null?void 0:Fn.className),Jr={};ro&&(Jr.textAlign=ro);var mr=(0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)({},Fn==null?void 0:Fn.style),qn),Jr),sn.style),ao=yn;return(0,st.Z)(ao)==="object"&&!Array.isArray(ao)&&!Re.isValidElement(ao)&&(ao=null),Oi&&(Cs||Oe)&&(ao=Re.createElement("span",{className:"".concat(ke,"-content")},ao)),Re.createElement(Ai,(0,ht.Z)({},Fn,sn,{className:Mi,style:mr,title:wo,scope:ir,onMouseEnter:_t?br:void 0,onMouseLeave:_t?Sr:void 0,colSpan:xi!==1?xi:null,rowSpan:li!==1?li:null}),it,ao)}var Bi=Re.memo(kn);function ea(Qe,Lt,It,jt,dn){var Sn=It[Qe]||{},jn=It[Lt]||{},ui,ji;Sn.fixed==="left"?ui=jt.left[dn==="rtl"?Lt:Qe]:jn.fixed==="right"&&(ji=jt.right[dn==="rtl"?Qe:Lt]);var Ai=!1,gr=!1,Oi=!1,ir=!1,Ji=It[Lt+1],Tr=It[Qe-1],ro=Ji&&!Ji.fixed||Tr&&!Tr.fixed||It.every(function(oo){return oo.fixed==="left"});if(dn==="rtl"){if(ui!==void 0){var Ro=Tr&&Tr.fixed==="left";ir=!Ro&&ro}else if(ji!==void 0){var ia=Ji&&Ji.fixed==="right";Oi=!ia&&ro}}else if(ui!==void 0){var Yr=Ji&&Ji.fixed==="left";Ai=!Yr&&ro}else if(ji!==void 0){var ko=Tr&&Tr.fixed==="right";gr=!ko&&ro}return{fixLeft:ui,fixRight:ji,lastFixLeft:Ai,firstFixRight:gr,lastFixRight:Oi,firstFixLeft:ir,isSticky:jt.isSticky}}var Zn=Re.createContext({}),Wr=Zn;function ra(Qe){var Lt=Qe.className,It=Qe.index,jt=Qe.children,dn=Qe.colSpan,Sn=dn===void 0?1:dn,jn=Qe.rowSpan,ui=Qe.align,ji=wt(Pe,["prefixCls","direction"]),Ai=ji.prefixCls,gr=ji.direction,Oi=Re.useContext(Wr),ir=Oi.scrollColumnIndex,Ji=Oi.stickyOffsets,Tr=Oi.flattenColumns,ro=It+Sn-1,Ro=ro+1===ir?Sn+1:Sn,ia=ea(It,It+Ro-1,Tr,Ji,gr);return Re.createElement(Bi,(0,ht.Z)({className:Lt,index:It,component:"td",prefixCls:Ai,record:null,dataIndex:null,align:ui,colSpan:Ro,rowSpan:jn,render:function(){return jt}},ia))}var sa=be(45987),Wa=["children"];function ma(Qe){var Lt=Qe.children,It=(0,sa.Z)(Qe,Wa);return Re.createElement("tr",It,Lt)}function Ha(Qe){var Lt=Qe.children;return Lt}Ha.Row=ma,Ha.Cell=ra;var da=Ha;function la(Qe){var Lt=Qe.children,It=Qe.stickyOffsets,jt=Qe.flattenColumns,dn=wt(Pe,"prefixCls"),Sn=jt.length-1,jn=jt[Sn],ui=Re.useMemo(function(){return{stickyOffsets:It,flattenColumns:jt,scrollColumnIndex:jn!=null&&jn.scrollbar?Sn:null}},[jn,jt,Sn,It]);return Re.createElement(Wr.Provider,{value:ui},Re.createElement("tfoot",{className:"".concat(dn,"-summary")},Lt))}var No=ge(la),ni=da,Ee=be(48555),pn=function(Qe){if(!Qe)return!1;if(Qe instanceof Element){if(Qe.offsetParent)return!0;if(Qe.getBBox){var Lt=Qe.getBBox(),It=Lt.width,jt=Lt.height;if(It||jt)return!0}if(Qe.getBoundingClientRect){var dn=Qe.getBoundingClientRect(),Sn=dn.width,jn=dn.height;if(Sn||jn)return!0}}return!1},hn=function(Lt){if(qt()&&window.document.documentElement){var It=Array.isArray(Lt)?Lt:[Lt],jt=window.document.documentElement;return It.some(function(dn){return dn in jt.style})}return!1},ri=function(Lt,It){if(!hn(Lt))return!1;var jt=document.createElement("div"),dn=jt.style[Lt];return jt.style[Lt]=It,jt.style[Lt]!==dn};function Jn(Qe,Lt){return!Array.isArray(Qe)&&Lt!==void 0?ri(Qe,Lt):hn(Qe)}function Wn(Qe,Lt){if(!Qe)return!1;if(Qe.contains)return Qe.contains(Lt);for(var It=Lt;It;){if(It===Qe)return!0;It=It.parentNode}return!1}var nn="data-rc-order",ii="data-rc-priority",Wt="rc-util-key",Gt=new Map;function Ft(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Lt=Qe.mark;return Lt?Lt.startsWith("data-")?Lt:"data-".concat(Lt):Wt}function un(Qe){if(Qe.attachTo)return Qe.attachTo;var Lt=document.querySelector("head");return Lt||document.body}function Ti(Qe){return Qe==="queue"?"prependQueue":Qe?"prepend":"append"}function Ri(Qe){return Array.from((Gt.get(Qe)||Qe).children).filter(function(Lt){return Lt.tagName==="STYLE"})}function di(Qe){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!qt())return null;var It=Lt.csp,jt=Lt.prepend,dn=Lt.priority,Sn=dn===void 0?0:dn,jn=Ti(jt),ui=jn==="prependQueue",ji=document.createElement("style");ji.setAttribute(nn,jn),ui&&Sn&&ji.setAttribute(ii,"".concat(Sn)),It!=null&&It.nonce&&(ji.nonce=It==null?void 0:It.nonce),ji.innerHTML=Qe;var Ai=un(Lt),gr=Ai.firstChild;if(jt){if(ui){var Oi=(Lt.styles||Ri(Ai)).filter(function(ir){if(!["prepend","prependQueue"].includes(ir.getAttribute(nn)))return!1;var Ji=Number(ir.getAttribute(ii)||0);return Sn>=Ji});if(Oi.length)return Ai.insertBefore(ji,Oi[Oi.length-1].nextSibling),ji}Ai.insertBefore(ji,gr)}else Ai.appendChild(ji);return ji}function Yt(Qe){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=un(Lt);return(Lt.styles||Ri(It)).find(function(jt){return jt.getAttribute(Ft(Lt))===Qe})}function Hn(Qe){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=Yt(Qe,Lt);if(It){var jt=un(Lt);jt.removeChild(It)}}function En(Qe,Lt){var It=Gt.get(Qe);if(!It||!Wn(document,It)){var jt=di("",Lt),dn=jt.parentNode;Gt.set(Qe,dn),Qe.removeChild(jt)}}function Fr(){Gt.clear()}function si(Qe,Lt){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jt=un(It),dn=Ri(jt),Sn=(0,rt.Z)((0,rt.Z)({},It),{},{styles:dn});En(jt,Sn);var jn=Yt(Lt,Sn);if(jn){var ui,ji;if((ui=Sn.csp)!==null&&ui!==void 0&&ui.nonce&&jn.nonce!==((ji=Sn.csp)===null||ji===void 0?void 0:ji.nonce)){var Ai;jn.nonce=(Ai=Sn.csp)===null||Ai===void 0?void 0:Ai.nonce}return jn.innerHTML!==Qe&&(jn.innerHTML=Qe),jn}var gr=di(Qe,Sn);return gr.setAttribute(Ft(Sn),Lt),gr}var tn;function Vi(Qe){var Lt="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),It=document.createElement("div");It.id=Lt;var jt=It.style;jt.position="absolute",jt.left="0",jt.top="0",jt.width="100px",jt.height="100px",jt.overflow="scroll";var dn,Sn;if(Qe){var jn=getComputedStyle(Qe);jt.scrollbarColor=jn.scrollbarColor,jt.scrollbarWidth=jn.scrollbarWidth;var ui=getComputedStyle(Qe,"::-webkit-scrollbar"),ji=parseInt(ui.width,10),Ai=parseInt(ui.height,10);try{var gr=ji?"width: ".concat(ui.width,";"):"",Oi=Ai?"height: ".concat(ui.height,";"):"";si(`
#`.concat(Lt,`::-webkit-scrollbar {
`).concat(gr,`
`).concat(Oi,`
}`),Lt)}catch(Tr){console.error(Tr),dn=ji,Sn=Ai}}document.body.appendChild(It);var ir=Qe&&dn&&!isNaN(dn)?dn:It.offsetWidth-It.clientWidth,Ji=Qe&&Sn&&!isNaN(Sn)?Sn:It.offsetHeight-It.clientHeight;return document.body.removeChild(It),Hn(Lt),{width:ir,height:Ji}}function Hr(Qe){return typeof document=="undefined"?0:((Qe||tn===void 0)&&(tn=Vi()),tn.width)}function Or(Qe){return typeof document=="undefined"||!Qe||!(Qe instanceof Element)?{width:0,height:0}:Vi(Qe)}var wn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,or=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Xo="".concat(wn," ").concat(or).split(/[\s\n]+/),Na="aria-",aa="data-";function hr(Qe,Lt){return Qe.indexOf(Lt)===0}function Nr(Qe){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It;Lt===!1?It={aria:!0,data:!0,attr:!0}:Lt===!0?It={aria:!0}:It=(0,rt.Z)({},Lt);var jt={};return Object.keys(Qe).forEach(function(dn){(It.aria&&(dn==="role"||hr(dn,Na))||It.data&&hr(dn,aa)||It.attr&&Xo.includes(dn))&&(jt[dn]=Qe[dn])}),jt}function io(Qe,Lt,It,jt,dn,Sn,jn){Qe.push({record:Lt,indent:It,index:jn});var ui=Sn(Lt),ji=dn==null?void 0:dn.has(ui);if(Lt&&Array.isArray(Lt[jt])&&ji)for(var Ai=0;Ai<Lt[jt].length;Ai+=1)io(Qe,Lt[jt][Ai],It+1,jt,dn,Sn,Ai)}function va(Qe,Lt,It,jt){var dn=Re.useMemo(function(){if(It!=null&&It.size){for(var Sn=[],jn=0;jn<(Qe==null?void 0:Qe.length);jn+=1){var ui=Qe[jn];io(Sn,ui,0,Lt,It,jt,jn)}return Sn}return Qe==null?void 0:Qe.map(function(ji,Ai){return{record:ji,indent:0,index:Ai}})},[Qe,Lt,It,jt]);return dn}function Ho(Qe,Lt,It,jt){var dn=wt(Pe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Sn=dn.flattenColumns,jn=dn.expandableType,ui=dn.expandedKeys,ji=dn.childrenColumnName,Ai=dn.onTriggerExpand,gr=dn.rowExpandable,Oi=dn.onRow,ir=dn.expandRowByClick,Ji=dn.rowClassName,Tr=jn==="nest",ro=jn==="row"&&(!gr||gr(Qe)),Ro=ro||Tr,ia=ui&&ui.has(Lt),Yr=ji&&Qe&&Qe[ji],ko=Ct(Ai),oo=Oi==null?void 0:Oi(Qe,It),oa=oo==null?void 0:oo.onClick,_a=function(rs){ir&&Ro&&Ai(Qe,rs);for(var qs=arguments.length,Cs=new Array(qs>1?qs-1:0),Oe=1;Oe<qs;Oe++)Cs[Oe-1]=arguments[Oe];oa==null||oa.apply(void 0,[rs].concat(Cs))},qo;typeof Ji=="string"?qo=Ji:typeof Ji=="function"&&(qo=Ji(Qe,It,jt));var cs=Nn(Sn);return(0,rt.Z)((0,rt.Z)({},dn),{},{columnsKey:cs,nestExpandable:Tr,expanded:ia,hasNestChildren:Yr,record:Qe,onTriggerExpand:ko,rowSupportExpand:ro,expandable:Ro,rowProps:(0,rt.Z)((0,rt.Z)({},oo),{},{className:yt()(qo,oo==null?void 0:oo.className),onClick:_a})})}function vi(Qe){var Lt=Qe.prefixCls,It=Qe.children,jt=Qe.component,dn=Qe.cellComponent,Sn=Qe.className,jn=Qe.expanded,ui=Qe.colSpan,ji=Qe.isEmpty,Ai=wt(Pe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),gr=Ai.scrollbarSize,Oi=Ai.fixHeader,ir=Ai.fixColumn,Ji=Ai.componentWidth,Tr=Ai.horizonScroll,ro=It;return(ji?Tr&&Ji:ir)&&(ro=Re.createElement("div",{style:{width:Ji-(Oi&&!ji?gr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Lt,"-expanded-row-fixed")},ro)),Re.createElement(jt,{className:Sn,style:{display:jn?null:"none"}},Re.createElement(Bi,{component:dn,prefixCls:Lt,colSpan:ui},ro))}var lo=vi;function al(Qe){var Lt=Qe.prefixCls,It=Qe.record,jt=Qe.onExpand,dn=Qe.expanded,Sn=Qe.expandable,jn="".concat(Lt,"-row-expand-icon");if(!Sn)return Re.createElement("span",{className:yt()(jn,"".concat(Lt,"-row-spaced"))});var ui=function(Ai){jt(It,Ai),Ai.stopPropagation()};return Re.createElement("span",{className:yt()(jn,(0,Tt.Z)((0,Tt.Z)({},"".concat(Lt,"-row-expanded"),dn),"".concat(Lt,"-row-collapsed"),!dn)),onClick:ui})}function el(Qe,Lt,It){var jt=[];function dn(Sn){(Sn||[]).forEach(function(jn,ui){jt.push(Lt(jn,ui)),dn(jn[It])})}return dn(Qe),jt}function Ns(Qe,Lt,It,jt){return typeof Qe=="string"?Qe:typeof Qe=="function"?Qe(Lt,It,jt):""}function ln(Qe,Lt,It,jt,dn){var Sn=Qe.record,jn=Qe.prefixCls,ui=Qe.columnsKey,ji=Qe.fixedInfoList,Ai=Qe.expandIconColumnIndex,gr=Qe.nestExpandable,Oi=Qe.indentSize,ir=Qe.expandIcon,Ji=Qe.expanded,Tr=Qe.hasNestChildren,ro=Qe.onTriggerExpand,Ro=ui[It],ia=ji[It],Yr;It===(Ai||0)&&gr&&(Yr=Re.createElement(Re.Fragment,null,Re.createElement("span",{style:{paddingLeft:"".concat(Oi*jt,"px")},className:"".concat(jn,"-row-indent indent-level-").concat(jt)}),ir({prefixCls:jn,expanded:Ji,expandable:Tr,record:Sn,onExpand:ro})));var ko;return Lt.onCell&&(ko=Lt.onCell(Sn,dn)),{key:Ro,fixedInfo:ia,appendCellNode:Yr,additionalCellProps:ko||{}}}function Yo(Qe){var Lt=Qe.className,It=Qe.style,jt=Qe.record,dn=Qe.index,Sn=Qe.renderIndex,jn=Qe.rowKey,ui=Qe.indent,ji=ui===void 0?0:ui,Ai=Qe.rowComponent,gr=Qe.cellComponent,Oi=Qe.scopeCellComponent,ir=Ho(jt,jn,dn,ji),Ji=ir.prefixCls,Tr=ir.flattenColumns,ro=ir.expandedRowClassName,Ro=ir.expandedRowRender,ia=ir.rowProps,Yr=ir.expanded,ko=ir.rowSupportExpand,oo=Re.useRef(!1);oo.current||(oo.current=Yr);var oa=Ns(ro,jt,dn,ji),_a=Re.createElement(Ai,(0,ht.Z)({},ia,{"data-row-key":jn,className:yt()(Lt,"".concat(Ji,"-row"),"".concat(Ji,"-row-level-").concat(ji),ia==null?void 0:ia.className,(0,Tt.Z)({},oa,ji>=1)),style:(0,rt.Z)((0,rt.Z)({},It),ia==null?void 0:ia.style)}),Tr.map(function(ja,rs){var qs=ja.render,Cs=ja.dataIndex,Oe=ja.className,ze=ln(ir,ja,rs,ji,dn),it=ze.key,vt=ze.fixedInfo,sn=ze.appendCellNode,Ce=ze.additionalCellProps;return Re.createElement(Bi,(0,ht.Z)({className:Oe,ellipsis:ja.ellipsis,align:ja.align,scope:ja.rowScope,component:ja.rowScope?Oi:gr,prefixCls:Ji,key:it,record:jt,index:dn,renderIndex:Sn,dataIndex:Cs,render:qs,shouldCellUpdate:ja.shouldCellUpdate},vt,{appendNode:sn,additionalProps:Ce}))})),qo;if(ko&&(oo.current||Yr)){var cs=Ro(jt,dn,ji+1,Yr);qo=Re.createElement(lo,{expanded:Yr,className:yt()("".concat(Ji,"-expanded-row"),"".concat(Ji,"-expanded-row-level-").concat(ji+1),oa),prefixCls:Ji,component:Ai,cellComponent:gr,colSpan:Tr.length,isEmpty:!1},cs)}return Re.createElement(Re.Fragment,null,_a,qo)}var Va=ge(Yo);function Ao(Qe){var Lt=Qe.columnKey,It=Qe.onColumnResize,jt=Re.useRef();return Re.useEffect(function(){jt.current&&It(Lt,jt.current.offsetWidth)},[]),Re.createElement(Ee.Z,{data:Lt},Re.createElement("td",{ref:jt,style:{padding:0,border:0,height:0}},Re.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ms(Qe){var Lt=Qe.prefixCls,It=Qe.columnsKey,jt=Qe.onColumnResize;return Re.createElement("tr",{"aria-hidden":"true",className:"".concat(Lt,"-measure-row"),style:{height:0,fontSize:0}},Re.createElement(Ee.Z.Collection,{onBatchResize:function(Sn){Sn.forEach(function(jn){var ui=jn.data,ji=jn.size;jt(ui,ji.offsetWidth)})}},It.map(function(dn){return Re.createElement(Ao,{key:dn,columnKey:dn,onColumnResize:jt})})))}function Ba(Qe){var Lt=Qe.data,It=Qe.measureColumnWidth,jt=wt(Pe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),dn=jt.prefixCls,Sn=jt.getComponent,jn=jt.onColumnResize,ui=jt.flattenColumns,ji=jt.getRowKey,Ai=jt.expandedKeys,gr=jt.childrenColumnName,Oi=jt.emptyNode,ir=va(Lt,gr,Ai,ji),Ji=Re.useRef({renderWithProps:!1}),Tr=Sn(["body","wrapper"],"tbody"),ro=Sn(["body","row"],"tr"),Ro=Sn(["body","cell"],"td"),ia=Sn(["body","cell"],"th"),Yr;Lt.length?Yr=ir.map(function(oo,oa){var _a=oo.record,qo=oo.indent,cs=oo.index,ja=ji(_a,oa);return Re.createElement(Va,{key:ja,rowKey:ja,record:_a,index:oa,renderIndex:cs,rowComponent:ro,cellComponent:Ro,scopeCellComponent:ia,indent:qo})}):Yr=Re.createElement(lo,{expanded:!0,className:"".concat(dn,"-placeholder"),prefixCls:dn,component:ro,cellComponent:Ro,colSpan:ui.length,isEmpty:!0},Oi);var ko=Nn(ui);return Re.createElement(lt.Provider,{value:Ji.current},Re.createElement(Tr,{className:"".concat(dn,"-tbody")},It&&Re.createElement(ms,{prefixCls:dn,columnsKey:ko,onColumnResize:jn}),Yr))}var $a=ge(Ba),Er=be(62978),uo=["columnType"];function So(Qe){for(var Lt=Qe.colWidths,It=Qe.columns,jt=Qe.columCount,dn=wt(Pe,["tableLayout"]),Sn=dn.tableLayout,jn=[],ui=jt||It.length,ji=!1,Ai=ui-1;Ai>=0;Ai-=1){var gr=Lt[Ai],Oi=It&&It[Ai],ir=void 0,Ji=void 0;if(Oi&&(ir=Oi[Er.v],Sn==="auto"&&(Ji=Oi.minWidth)),gr||Ji||ir||ji){var Tr=ir||{},ro=Tr.columnType,Ro=(0,sa.Z)(Tr,uo);jn.unshift(Re.createElement("col",(0,ht.Z)({key:Ai,style:{width:gr,minWidth:Ji}},Ro))),ji=!0}}return Re.createElement("colgroup",null,jn)}var _n=So,ka=be(74902),An=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Po(Qe,Lt){return(0,Re.useMemo)(function(){for(var It=[],jt=0;jt<Lt;jt+=1){var dn=Qe[jt];if(dn!==void 0)It[jt]=dn;else return null}return It},[Qe.join("_"),Lt])}var Ws=Re.forwardRef(function(Qe,Lt){var It=Qe.className,jt=Qe.noData,dn=Qe.columns,Sn=Qe.flattenColumns,jn=Qe.colWidths,ui=Qe.columCount,ji=Qe.stickyOffsets,Ai=Qe.direction,gr=Qe.fixHeader,Oi=Qe.stickyTopOffset,ir=Qe.stickyBottomOffset,Ji=Qe.stickyClassName,Tr=Qe.onScroll,ro=Qe.maxContentScroll,Ro=Qe.children,ia=(0,sa.Z)(Qe,An),Yr=wt(Pe,["prefixCls","scrollbarSize","isSticky","getComponent"]),ko=Yr.prefixCls,oo=Yr.scrollbarSize,oa=Yr.isSticky,_a=Yr.getComponent,qo=_a(["header","table"],"table"),cs=oa&&!gr?0:oo,ja=Re.useRef(null),rs=Re.useCallback(function(Ce){In(Lt,Ce),In(ja,Ce)},[]);Re.useEffect(function(){var Ce;function ke(_e){var Ye=_e,kt=Ye.currentTarget,_t=Ye.deltaX;_t&&(Tr({currentTarget:kt,scrollLeft:kt.scrollLeft+_t}),_e.preventDefault())}return(Ce=ja.current)===null||Ce===void 0||Ce.addEventListener("wheel",ke,{passive:!1}),function(){var _e;(_e=ja.current)===null||_e===void 0||_e.removeEventListener("wheel",ke)}},[]);var qs=Re.useMemo(function(){return Sn.every(function(Ce){return Ce.width})},[Sn]),Cs=Sn[Sn.length-1],Oe={fixed:Cs?Cs.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ko,"-cell-scrollbar")}}},ze=(0,Re.useMemo)(function(){return cs?[].concat((0,ka.Z)(dn),[Oe]):dn},[cs,dn]),it=(0,Re.useMemo)(function(){return cs?[].concat((0,ka.Z)(Sn),[Oe]):Sn},[cs,Sn]),vt=(0,Re.useMemo)(function(){var Ce=ji.right,ke=ji.left;return(0,rt.Z)((0,rt.Z)({},ji),{},{left:Ai==="rtl"?[].concat((0,ka.Z)(ke.map(function(_e){return _e+cs})),[0]):ke,right:Ai==="rtl"?Ce:[].concat((0,ka.Z)(Ce.map(function(_e){return _e+cs})),[0]),isSticky:oa})},[cs,ji,oa]),sn=Po(jn,ui);return Re.createElement("div",{style:(0,rt.Z)({overflow:"hidden"},oa?{top:Oi,bottom:ir}:{}),ref:rs,className:yt()(It,(0,Tt.Z)({},Ji,!!Ji))},Re.createElement(qo,{style:{tableLayout:"fixed",visibility:jt||sn?null:"hidden"}},(!jt||!ro||qs)&&Re.createElement(_n,{colWidths:sn?[].concat((0,ka.Z)(sn),[cs]):[],columCount:ui+1,columns:it}),Ro((0,rt.Z)((0,rt.Z)({},ia),{},{stickyOffsets:vt,columns:ze,flattenColumns:it}))))}),ds=Re.memo(Ws),kl=function(Lt){var It=Lt.cells,jt=Lt.stickyOffsets,dn=Lt.flattenColumns,Sn=Lt.rowComponent,jn=Lt.cellComponent,ui=Lt.onHeaderRow,ji=Lt.index,Ai=wt(Pe,["prefixCls","direction"]),gr=Ai.prefixCls,Oi=Ai.direction,ir;ui&&(ir=ui(It.map(function(Tr){return Tr.column}),ji));var Ji=Nn(It.map(function(Tr){return Tr.column}));return Re.createElement(Sn,ir,It.map(function(Tr,ro){var Ro=Tr.column,ia=ea(Tr.colStart,Tr.colEnd,dn,jt,Oi),Yr;return Ro&&Ro.onHeaderCell&&(Yr=Tr.column.onHeaderCell(Ro)),Re.createElement(Bi,(0,ht.Z)({},Tr,{scope:Ro.title?Tr.colSpan>1?"colgroup":"col":null,ellipsis:Ro.ellipsis,align:Ro.align,component:jn,prefixCls:gr,key:Ji[ro]},ia,{additionalProps:Yr,rowType:"header"}))}))},Ss=kl;function Ua(Qe){var Lt=[];function It(jn,ui){var ji=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Lt[ji]=Lt[ji]||[];var Ai=ui,gr=jn.filter(Boolean).map(function(Oi){var ir={key:Oi.key,className:Oi.className||"",children:Oi.title,column:Oi,colStart:Ai},Ji=1,Tr=Oi.children;return Tr&&Tr.length>0&&(Ji=It(Tr,Ai,ji+1).reduce(function(ro,Ro){return ro+Ro},0),ir.hasSubColumns=!0),"colSpan"in Oi&&(Ji=Oi.colSpan),"rowSpan"in Oi&&(ir.rowSpan=Oi.rowSpan),ir.colSpan=Ji,ir.colEnd=ir.colStart+Ji-1,Lt[ji].push(ir),Ai+=Ji,Ji});return gr}It(Qe,0);for(var jt=Lt.length,dn=function(ui){Lt[ui].forEach(function(ji){!("rowSpan"in ji)&&!ji.hasSubColumns&&(ji.rowSpan=jt-ui)})},Sn=0;Sn<jt;Sn+=1)dn(Sn);return Lt}var us=function(Lt){var It=Lt.stickyOffsets,jt=Lt.columns,dn=Lt.flattenColumns,Sn=Lt.onHeaderRow,jn=wt(Pe,["prefixCls","getComponent"]),ui=jn.prefixCls,ji=jn.getComponent,Ai=Re.useMemo(function(){return Ua(jt)},[jt]),gr=ji(["header","wrapper"],"thead"),Oi=ji(["header","row"],"tr"),ir=ji(["header","cell"],"th");return Re.createElement(gr,{className:"".concat(ui,"-thead")},Ai.map(function(Ji,Tr){var ro=Re.createElement(Ss,{key:Tr,flattenColumns:dn,cells:Ji,stickyOffsets:It,rowComponent:Oi,cellComponent:ir,onHeaderRow:Sn,index:Tr});return ro}))},tl=ge(us),ts=be(54768);function wr(Qe,Lt,It){var jt=(0,Er.g)(Qe),dn=jt.expandIcon,Sn=jt.expandedRowKeys,jn=jt.defaultExpandedRowKeys,ui=jt.defaultExpandAllRows,ji=jt.expandedRowRender,Ai=jt.onExpand,gr=jt.onExpandedRowsChange,Oi=jt.childrenColumnName,ir=dn||al,Ji=Oi||"children",Tr=Re.useMemo(function(){return ji?"row":Qe.expandable&&Qe.internalHooks===ve.R&&Qe.expandable.__PARENT_RENDER_ICON__||Lt.some(function(oa){return oa&&(0,st.Z)(oa)==="object"&&oa[Ji]})?"nest":!1},[!!ji,Lt]),ro=Re.useState(function(){return jn||(ui?el(Lt,It,Ji):[])}),Ro=(0,tt.Z)(ro,2),ia=Ro[0],Yr=Ro[1],ko=Re.useMemo(function(){return new Set(Sn||ia||[])},[Sn,ia]),oo=Re.useCallback(function(oa){var _a=It(oa,Lt.indexOf(oa)),qo,cs=ko.has(_a);cs?(ko.delete(_a),qo=(0,ka.Z)(ko)):qo=[].concat((0,ka.Z)(ko),[_a]),Yr(qo),Ai&&Ai(!cs,oa),gr&&gr(qo)},[It,ko,Lt,Ai,gr]);return[jt,Tr,ko,ir,Ji,oo]}function at(Qe,Lt,It){var jt=Qe.map(function(dn,Sn){return ea(Sn,Sn,Qe,Lt,It)});return Dt(function(){return jt},[jt],function(dn,Sn){return!On(dn,Sn)})}function St(Qe){var Lt=(0,Re.useRef)(Qe),It=(0,Re.useState)({}),jt=(0,tt.Z)(It,2),dn=jt[1],Sn=(0,Re.useRef)(null),jn=(0,Re.useRef)([]);function ui(ji){jn.current.push(ji);var Ai=Promise.resolve();Sn.current=Ai,Ai.then(function(){if(Sn.current===Ai){var gr=jn.current,Oi=Lt.current;jn.current=[],gr.forEach(function(ir){Lt.current=ir(Lt.current)}),Sn.current=null,Oi!==Lt.current&&dn({})}})}return(0,Re.useEffect)(function(){return function(){Sn.current=null}},[]),[Lt.current,ui]}function zt(Qe){var Lt=(0,Re.useRef)(Qe||null),It=(0,Re.useRef)();function jt(){window.clearTimeout(It.current)}function dn(jn){Lt.current=jn,jt(),It.current=window.setTimeout(function(){Lt.current=null,It.current=void 0},100)}function Sn(){return Lt.current}return(0,Re.useEffect)(function(){return jt},[]),[dn,Sn]}function gn(){var Qe=Re.useState(-1),Lt=(0,tt.Z)(Qe,2),It=Lt[0],jt=Lt[1],dn=Re.useState(-1),Sn=(0,tt.Z)(dn,2),jn=Sn[0],ui=Sn[1],ji=Re.useCallback(function(Ai,gr){jt(Ai),ui(gr)},[]);return[It,jn,ji]}var Kn=qt()?window:null;function Ii(Qe,Lt){var It=(0,st.Z)(Qe)==="object"?Qe:{},jt=It.offsetHeader,dn=jt===void 0?0:jt,Sn=It.offsetSummary,jn=Sn===void 0?0:Sn,ui=It.offsetScroll,ji=ui===void 0?0:ui,Ai=It.getContainer,gr=Ai===void 0?function(){return Kn}:Ai,Oi=gr()||Kn,ir=!!Qe;return Re.useMemo(function(){return{isSticky:ir,stickyClassName:ir?"".concat(Lt,"-sticky-holder"):"",offsetHeader:dn,offsetSummary:jn,offsetScroll:ji,container:Oi}},[ir,ji,dn,jn,Lt,Oi])}function Jt(Qe,Lt,It){var jt=(0,Re.useMemo)(function(){var dn=Lt.length,Sn=function(Ai,gr,Oi){for(var ir=[],Ji=0,Tr=Ai;Tr!==gr;Tr+=Oi)ir.push(Ji),Lt[Tr].fixed&&(Ji+=Qe[Tr]||0);return ir},jn=Sn(0,dn,1),ui=Sn(dn-1,-1,-1).reverse();return It==="rtl"?{left:ui,right:jn}:{left:jn,right:ui}},[Qe,Lt,It]);return jt}var Qn=Jt;function Qi(Qe){var Lt=Qe.className,It=Qe.children;return Re.createElement("div",{className:Lt},It)}var wi=Qi;function nr(Qe,Lt,It,jt){var dn=Je.unstable_batchedUpdates?function(jn){Je.unstable_batchedUpdates(It,jn)}:It;return Qe!=null&&Qe.addEventListener&&Qe.addEventListener(Lt,dn,jt),{remove:function(){Qe!=null&&Qe.removeEventListener&&Qe.removeEventListener(Lt,dn,jt)}}}var Xi=function(Lt){return+setTimeout(Lt,16)},Si=function(Lt){return clearTimeout(Lt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Xi=function(Lt){return window.requestAnimationFrame(Lt)},Si=function(Lt){return window.cancelAnimationFrame(Lt)});var pr=0,fn=new Map;function eo(Qe){fn.delete(Qe)}var so=function(Lt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;pr+=1;var jt=pr;function dn(Sn){if(Sn===0)eo(jt),Lt();else{var jn=Xi(function(){dn(Sn-1)});fn.set(jt,jn)}}return dn(It),jt};so.cancel=function(Qe){var Lt=fn.get(Qe);return eo(Qe),Si(Lt)};var ya=so;function fa(Qe){return Qe instanceof HTMLElement||Qe instanceof SVGElement}function Ia(Qe){return Qe&&(0,st.Z)(Qe)==="object"&&fa(Qe.nativeElement)?Qe.nativeElement:fa(Qe)?Qe:null}function ns(Qe){var Lt=Ia(Qe);if(Lt)return Lt;if(Qe instanceof React.Component){var It;return(It=ReactDOM.findDOMNode)===null||It===void 0?void 0:It.call(ReactDOM,Qe)}return null}function Us(Qe){var Lt=Ia(Qe),It=Lt.getBoundingClientRect(),jt=document.documentElement;return{left:It.left+(window.pageXOffset||jt.scrollLeft)-(jt.clientLeft||document.body.clientLeft||0),top:It.top+(window.pageYOffset||jt.scrollTop)-(jt.clientTop||document.body.clientTop||0)}}var Ds=function(Lt,It){var jt,dn,Sn=Lt.scrollBodyRef,jn=Lt.onScroll,ui=Lt.offsetScroll,ji=Lt.container,Ai=Lt.direction,gr=wt(Pe,"prefixCls"),Oi=((jt=Sn.current)===null||jt===void 0?void 0:jt.scrollWidth)||0,ir=((dn=Sn.current)===null||dn===void 0?void 0:dn.clientWidth)||0,Ji=Oi&&ir*(ir/Oi),Tr=Re.useRef(),ro=St({scrollLeft:0,isHiddenScrollBar:!0}),Ro=(0,tt.Z)(ro,2),ia=Ro[0],Yr=Ro[1],ko=Re.useRef({delta:0,x:0}),oo=Re.useState(!1),oa=(0,tt.Z)(oo,2),_a=oa[0],qo=oa[1],cs=Re.useRef(null);Re.useEffect(function(){return function(){ya.cancel(cs.current)}},[]);var ja=function(){qo(!1)},rs=function(it){it.persist(),ko.current.delta=it.pageX-ia.scrollLeft,ko.current.x=0,qo(!0),it.preventDefault()},qs=function(it){var vt,sn=it||((vt=window)===null||vt===void 0?void 0:vt.event),Ce=sn.buttons;if(!_a||Ce===0){_a&&qo(!1);return}var ke=ko.current.x+it.pageX-ko.current.x-ko.current.delta,_e=Ai==="rtl";ke=Math.max(_e?Ji-ir:0,Math.min(_e?0:ir-Ji,ke));var Ye=!_e||Math.abs(ke)+Math.abs(Ji)<ir;Ye&&(jn({scrollLeft:ke/ir*(Oi+2)}),ko.current.x=it.pageX)},Cs=function(){ya.cancel(cs.current),cs.current=ya(function(){if(Sn.current){var it=Us(Sn.current).top,vt=it+Sn.current.offsetHeight,sn=ji===window?document.documentElement.scrollTop+window.innerHeight:Us(ji).top+ji.clientHeight;vt-Hr()<=sn||it>=sn-ui?Yr(function(Ce){return(0,rt.Z)((0,rt.Z)({},Ce),{},{isHiddenScrollBar:!0})}):Yr(function(Ce){return(0,rt.Z)((0,rt.Z)({},Ce),{},{isHiddenScrollBar:!1})})}})},Oe=function(it){Yr(function(vt){return(0,rt.Z)((0,rt.Z)({},vt),{},{scrollLeft:it/Oi*ir||0})})};return Re.useImperativeHandle(It,function(){return{setScrollLeft:Oe,checkScrollBarVisible:Cs}}),Re.useEffect(function(){var ze=nr(document.body,"mouseup",ja,!1),it=nr(document.body,"mousemove",qs,!1);return Cs(),function(){ze.remove(),it.remove()}},[Ji,_a]),Re.useEffect(function(){if(Sn.current){for(var ze=[],it=Ia(Sn.current);it;)ze.push(it),it=it.parentElement;return ze.forEach(function(vt){return vt.addEventListener("scroll",Cs,!1)}),window.addEventListener("resize",Cs,!1),window.addEventListener("scroll",Cs,!1),ji.addEventListener("scroll",Cs,!1),function(){ze.forEach(function(vt){return vt.removeEventListener("scroll",Cs)}),window.removeEventListener("resize",Cs),window.removeEventListener("scroll",Cs),ji.removeEventListener("scroll",Cs)}}},[ji]),Re.useEffect(function(){ia.isHiddenScrollBar||Yr(function(ze){var it=Sn.current;return it?(0,rt.Z)((0,rt.Z)({},ze),{},{scrollLeft:it.scrollLeft/it.scrollWidth*it.clientWidth}):ze})},[ia.isHiddenScrollBar]),Oi<=ir||!Ji||ia.isHiddenScrollBar?null:Re.createElement("div",{style:{height:Hr(),width:ir,bottom:ui},className:"".concat(gr,"-sticky-scroll")},Re.createElement("div",{onMouseDown:rs,ref:Tr,className:yt()("".concat(gr,"-sticky-scroll-bar"),(0,Tt.Z)({},"".concat(gr,"-sticky-scroll-bar-active"),_a)),style:{width:"".concat(Ji,"px"),transform:"translate3d(".concat(ia.scrollLeft,"px, 0, 0)")}}))},fl=Re.forwardRef(Ds);function Hs(Qe){return null}var cn=Hs;function nl(Qe){return null}var dl=nl,gl="rc-table",Ys=[],Ul={};function hu(){return"No Data"}function fc(Qe,Lt){var It=(0,rt.Z)({rowKey:"key",prefixCls:gl,emptyText:hu},Qe),jt=It.prefixCls,dn=It.className,Sn=It.rowClassName,jn=It.style,ui=It.data,ji=It.rowKey,Ai=It.scroll,gr=It.tableLayout,Oi=It.direction,ir=It.title,Ji=It.footer,Tr=It.summary,ro=It.caption,Ro=It.id,ia=It.showHeader,Yr=It.components,ko=It.emptyText,oo=It.onRow,oa=It.onHeaderRow,_a=It.onScroll,qo=It.internalHooks,cs=It.transformColumns,ja=It.internalRefs,rs=It.tailor,qs=It.getContainerWidth,Cs=It.sticky,Oe=It.rowHoverable,ze=Oe===void 0?!0:Oe,it=ui||Ys,vt=!!it.length,sn=qo===ve.R,Ce=Re.useCallback(function(no,Rr){return Qt(Yr,no)||Rr},[Yr]),ke=Re.useMemo(function(){return typeof ji=="function"?ji:function(no){var Rr=no&&no[ji];return Rr}},[ji]),_e=Ce(["body"]),Ye=gn(),kt=(0,tt.Z)(Ye,3),_t=kt[0],on=kt[1],zn=kt[2],yn=wr(It,it,ke),Fn=(0,tt.Z)(yn,6),qn=Fn[0],$n=Fn[1],Wi=Fn[2],xi=Fn[3],li=Fn[4],Fi=Fn[5],Zi=Ai==null?void 0:Ai.x,ur=Re.useState(0),to=(0,tt.Z)(ur,2),br=to[0],Sr=to[1],wo=(0,ts.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)({},It),qn),{},{expandable:!!qn.expandedRowRender,columnTitle:qn.columnTitle,expandedKeys:Wi,getRowKey:ke,onTriggerExpand:Fi,expandIcon:xi,expandIconColumnIndex:qn.expandIconColumnIndex,direction:Oi,scrollWidth:sn&&rs&&typeof Zi=="number"?Zi:null,clientWidth:br}),sn?cs:null),Mi=(0,tt.Z)(wo,4),Jr=Mi[0],mr=Mi[1],ao=Mi[2],po=Mi[3],Ar=ao!=null?ao:Zi,To=Re.useMemo(function(){return{columns:Jr,flattenColumns:mr}},[Jr,mr]),mo=Re.useRef(),zo=Re.useRef(),Dr=Re.useRef(),Co=Re.useRef();Re.useImperativeHandle(Lt,function(){return{nativeElement:mo.current,scrollTo:function(Rr){var wa;if(Dr.current instanceof HTMLElement){var Pa=Rr.index,gs=Rr.top,Fa=Rr.key;if(Xt(gs)){var Ja;(Ja=Dr.current)===null||Ja===void 0||Ja.scrollTo({top:gs})}else{var Es,Ma=Fa!=null?Fa:ke(it[Pa]);(Es=Dr.current.querySelector('[data-row-key="'.concat(Ma,'"]')))===null||Es===void 0||Es.scrollIntoView()}}else(wa=Dr.current)!==null&&wa!==void 0&&wa.scrollTo&&Dr.current.scrollTo(Rr)}}});var ca=Re.useRef(),Da=Re.useState(!1),ga=(0,tt.Z)(Da,2),Qr=ga[0],Jo=ga[1],ua=Re.useState(!1),Ea=(0,tt.Z)(ua,2),es=Ea[0],ba=Ea[1],_o=St(new Map),yo=(0,tt.Z)(_o,2),ta=yo[0],Ka=yo[1],Vo=Nn(mr),Zr=Vo.map(function(no){return ta.get(no)}),ho=Re.useMemo(function(){return Zr},[Zr.join("_")]),fo=Qn(ho,mr,Oi),Mr=Ai&&Xn(Ai.y),Gr=Ai&&Xn(Ar)||!!qn.fixed,Do=Gr&&mr.some(function(no){var Rr=no.fixed;return Rr}),ye=Re.useRef(),Ie=Ii(Cs,jt),je=Ie.isSticky,Ue=Ie.offsetHeader,gt=Ie.offsetSummary,Ht=Ie.offsetScroll,$t=Ie.stickyClassName,an=Ie.container,Tn=Re.useMemo(function(){return Tr==null?void 0:Tr(it)},[Tr,it]),Un=(Mr||je)&&Re.isValidElement(Tn)&&Tn.type===da&&Tn.props.fixed,Mn,Ei,Ui;Mr&&(Ei={overflowY:vt?"scroll":"auto",maxHeight:Ai.y}),Gr&&(Mn={overflowX:"auto"},Mr||(Ei={overflowY:"hidden"}),Ui={width:Ar===!0?"auto":Ar,minWidth:"100%"});var Ci=Re.useCallback(function(no,Rr){pn(mo.current)&&Ka(function(wa){if(wa.get(no)!==Rr){var Pa=new Map(wa);return Pa.set(no,Rr),Pa}return wa})},[]),Li=zt(null),Di=(0,tt.Z)(Li,2),Ni=Di[0],bn=Di[1];function Yn(no,Rr){Rr&&(typeof Rr=="function"?Rr(no):Rr.scrollLeft!==no&&(Rr.scrollLeft=no,Rr.scrollLeft!==no&&setTimeout(function(){Rr.scrollLeft=no},0)))}var ei=Ct(function(no){var Rr=no.currentTarget,wa=no.scrollLeft,Pa=Oi==="rtl",gs=typeof wa=="number"?wa:Rr.scrollLeft,Fa=Rr||Ul;if(!bn()||bn()===Fa){var Ja;Ni(Fa),Yn(gs,zo.current),Yn(gs,Dr.current),Yn(gs,ca.current),Yn(gs,(Ja=ye.current)===null||Ja===void 0?void 0:Ja.setScrollLeft)}var Es=Rr||zo.current;if(Es){var Ma=sn&&rs&&typeof Ar=="number"?Ar:Es.scrollWidth,Qa=Es.clientWidth;if(Ma===Qa){Jo(!1),ba(!1);return}Pa?(Jo(-gs<Ma-Qa),ba(-gs>0)):(Jo(gs>0),ba(gs<Ma-Qa))}}),pi=Ct(function(no){ei(no),_a==null||_a(no)}),rr=function(){if(Gr&&Dr.current){var Rr;ei({currentTarget:Ia(Dr.current),scrollLeft:(Rr=Dr.current)===null||Rr===void 0?void 0:Rr.scrollLeft})}else Jo(!1),ba(!1)},$i=function(Rr){var wa,Pa=Rr.width;(wa=ye.current)===null||wa===void 0||wa.checkScrollBarVisible();var gs=mo.current?mo.current.offsetWidth:Pa;sn&&qs&&mo.current&&(gs=qs(mo.current,gs)||gs),gs!==br&&(rr(),Sr(gs))},sr=Re.useRef(!1);Re.useEffect(function(){sr.current&&rr()},[Gr,ui,Jr.length]),Re.useEffect(function(){sr.current=!0},[]);var At=Re.useState(0),cr=(0,tt.Z)(At,2),Pr=cr[0],Ir=cr[1],Oo=Re.useState(!0),Ur=(0,tt.Z)(Oo,2),Pi=Ur[0],qi=Ur[1];Re.useEffect(function(){(!rs||!sn)&&(Dr.current instanceof Element?Ir(Or(Dr.current).width):Ir(Or(Co.current).width)),qi(Jn("position","sticky"))},[]),Re.useEffect(function(){sn&&ja&&(ja.body.current=Dr.current)});var Hi=Re.useCallback(function(no){return Re.createElement(Re.Fragment,null,Re.createElement(tl,no),Un==="top"&&Re.createElement(No,no,Tn))},[Un,Tn]),Lr=Re.useCallback(function(no){return Re.createElement(No,no,Tn)},[Tn]),Eo=Ce(["table"],"table"),vr=Re.useMemo(function(){return gr||(Do?Ar==="max-content"?"auto":"fixed":Mr||je||mr.some(function(no){var Rr=no.ellipsis;return Rr})?"fixed":"auto")},[Mr,Do,mr,gr,je]),qr,xr={colWidths:ho,columCount:mr.length,stickyOffsets:fo,onHeaderRow:oa,fixHeader:Mr,scroll:Ai},fr=Re.useMemo(function(){return vt?null:typeof ko=="function"?ko():ko},[vt,ko]),_r=Re.createElement($a,{data:it,measureColumnWidth:Mr||Gr||je}),Kr=Re.createElement(_n,{colWidths:mr.map(function(no){var Rr=no.width;return Rr}),columns:mr}),Aa=ro!=null?Re.createElement("caption",{className:"".concat(jt,"-caption")},ro):void 0,Ya=Nr(It,{data:!0}),bo=Nr(It,{aria:!0});if(Mr||je){var co;typeof _e=="function"?(co=_e(it,{scrollbarSize:Pr,ref:Dr,onScroll:ei}),xr.colWidths=mr.map(function(no,Rr){var wa=no.width,Pa=Rr===mr.length-1?wa-Pr:wa;return typeof Pa=="number"&&!Number.isNaN(Pa)?Pa:0})):co=Re.createElement("div",{style:(0,rt.Z)((0,rt.Z)({},Mn),Ei),onScroll:pi,ref:Dr,className:yt()("".concat(jt,"-body"))},Re.createElement(Eo,(0,ht.Z)({style:(0,rt.Z)((0,rt.Z)({},Ui),{},{tableLayout:vr})},bo),Aa,Kr,_r,!Un&&Tn&&Re.createElement(No,{stickyOffsets:fo,flattenColumns:mr},Tn)));var vo=(0,rt.Z)((0,rt.Z)((0,rt.Z)({noData:!it.length,maxContentScroll:Gr&&Ar==="max-content"},xr),To),{},{direction:Oi,stickyClassName:$t,onScroll:ei});qr=Re.createElement(Re.Fragment,null,ia!==!1&&Re.createElement(ds,(0,ht.Z)({},vo,{stickyTopOffset:Ue,className:"".concat(jt,"-header"),ref:zo}),Hi),co,Un&&Un!=="top"&&Re.createElement(ds,(0,ht.Z)({},vo,{stickyBottomOffset:gt,className:"".concat(jt,"-summary"),ref:ca}),Lr),je&&Dr.current&&Dr.current instanceof Element&&Re.createElement(fl,{ref:ye,offsetScroll:Ht,scrollBodyRef:Dr,onScroll:ei,container:an,direction:Oi}))}else qr=Re.createElement("div",{style:(0,rt.Z)((0,rt.Z)({},Mn),Ei),className:yt()("".concat(jt,"-content")),onScroll:ei,ref:Dr},Re.createElement(Eo,(0,ht.Z)({style:(0,rt.Z)((0,rt.Z)({},Ui),{},{tableLayout:vr})},bo),Aa,Kr,ia!==!1&&Re.createElement(tl,(0,ht.Z)({},xr,To)),_r,Tn&&Re.createElement(No,{stickyOffsets:fo,flattenColumns:mr},Tn)));var Qo=Re.createElement("div",(0,ht.Z)({className:yt()(jt,dn,(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({},"".concat(jt,"-rtl"),Oi==="rtl"),"".concat(jt,"-ping-left"),Qr),"".concat(jt,"-ping-right"),es),"".concat(jt,"-layout-fixed"),gr==="fixed"),"".concat(jt,"-fixed-header"),Mr),"".concat(jt,"-fixed-column"),Do),"".concat(jt,"-fixed-column-gapped"),Do&&po),"".concat(jt,"-scroll-horizontal"),Gr),"".concat(jt,"-has-fix-left"),mr[0]&&mr[0].fixed),"".concat(jt,"-has-fix-right"),mr[mr.length-1]&&mr[mr.length-1].fixed==="right")),style:jn,id:Ro,ref:mo},Ya),ir&&Re.createElement(wi,{className:"".concat(jt,"-title")},ir(it)),Re.createElement("div",{ref:Co,className:"".concat(jt,"-container")},qr),Ji&&Re.createElement(wi,{className:"".concat(jt,"-footer")},Ji(it)));Gr&&(Qo=Re.createElement(Ee.Z,{onResize:$i},Qo));var xa=at(mr,fo,Oi),Oa=Re.useMemo(function(){return{scrollX:Ar,prefixCls:jt,getComponent:Ce,scrollbarSize:Pr,direction:Oi,fixedInfoList:xa,isSticky:je,supportSticky:Pi,componentWidth:br,fixHeader:Mr,fixColumn:Do,horizonScroll:Gr,tableLayout:vr,rowClassName:Sn,expandedRowClassName:qn.expandedRowClassName,expandIcon:xi,expandableType:$n,expandRowByClick:qn.expandRowByClick,expandedRowRender:qn.expandedRowRender,onTriggerExpand:Fi,expandIconColumnIndex:qn.expandIconColumnIndex,indentSize:qn.indentSize,allColumnsFixedLeft:mr.every(function(no){return no.fixed==="left"}),emptyNode:fr,columns:Jr,flattenColumns:mr,onColumnResize:Ci,hoverStartRow:_t,hoverEndRow:on,onHover:zn,rowExpandable:qn.rowExpandable,onRow:oo,getRowKey:ke,expandedKeys:Wi,childrenColumnName:li,rowHoverable:ze}},[Ar,jt,Ce,Pr,Oi,xa,je,Pi,br,Mr,Do,Gr,vr,Sn,qn.expandedRowClassName,xi,$n,qn.expandRowByClick,qn.expandedRowRender,Fi,qn.expandIconColumnIndex,qn.indentSize,fr,Jr,mr,Ci,_t,on,zn,qn.rowExpandable,oo,ke,Wi,li,ze]);return Re.createElement(Pe.Provider,{value:Oa},Qo)}var _s=Re.forwardRef(fc);function il(Qe){return se(_s,Qe)}var Ra=il();Ra.EXPAND_COLUMN=ve.w,Ra.INTERNAL_HOOKS=ve.R,Ra.Column=cn,Ra.ColumnGroup=dl,Ra.Summary=ni;var Xa=Ra;function Is(Qe){var Lt=Re.useRef();Lt.current=Qe;var It=Re.useCallback(function(){for(var jt,dn=arguments.length,Sn=new Array(dn),jn=0;jn<dn;jn++)Sn[jn]=arguments[jn];return(jt=Lt.current)===null||jt===void 0?void 0:jt.call.apply(jt,[Lt].concat(Sn))},[]);return It}function pl(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Mo=pl()?Re.useLayoutEffect:Re.useEffect,$u=function(Lt,It){var jt=Re.useRef(!0);Mo(function(){return Lt(jt.current)},It),Mo(function(){return jt.current=!1,function(){jt.current=!0}},[])},Pu=function(Lt,It){$u(function(jt){if(!jt)return Lt()},It)},$l=$u;function ou(Qe){var Lt=React.useRef(!1),It=React.useState(Qe),jt=_slicedToArray(It,2),dn=jt[0],Sn=jt[1];React.useEffect(function(){return Lt.current=!1,function(){Lt.current=!0}},[]);function jn(ui,ji){ji&&Lt.current||Sn(ui)}return[dn,jn]}function gc(Qe){return Qe!==void 0}function kr(Qe,Lt){var It=Lt||{},jt=It.defaultValue,dn=It.value,Sn=It.onChange,jn=It.postState,ui=useState(function(){return gc(dn)?dn:gc(jt)?typeof jt=="function"?jt():jt:typeof Qe=="function"?Qe():Qe}),ji=_slicedToArray(ui,2),Ai=ji[0],gr=ji[1],Oi=dn!==void 0?dn:Ai,ir=jn?jn(Oi):Oi,Ji=useEvent(Sn),Tr=useState([Oi]),ro=_slicedToArray(Tr,2),Ro=ro[0],ia=ro[1];useLayoutUpdateEffect(function(){var ko=Ro[0];Ai!==ko&&Ji(Ai,ko)},[Ro]),useLayoutUpdateEffect(function(){gc(dn)||gr(dn)},[dn]);var Yr=useEvent(function(ko,oo){gr(ko,oo),ia([Oi],oo)});return[ir,Yr]}function hl(Qe,Lt,It){var jt=React.useRef({});return(!("value"in jt.current)||It(jt.current.condition,Lt))&&(jt.current.value=Qe(),jt.current.condition=Lt),jt.current.value}function Rs(Qe,Lt){typeof Qe=="function"?Qe(Lt):_typeof(Qe)==="object"&&Qe&&"current"in Qe&&(Qe.current=Lt)}function Bu(){for(var Qe=arguments.length,Lt=new Array(Qe),It=0;It<Qe;It++)Lt[It]=arguments[It];var jt=Lt.filter(function(dn){return dn});return jt.length<=1?jt[0]:function(dn){Lt.forEach(function(Sn){Rs(Sn,dn)})}}function zu(){for(var Qe=arguments.length,Lt=new Array(Qe),It=0;It<Qe;It++)Lt[It]=arguments[It];return useMemo(function(){return Bu.apply(void 0,Lt)},Lt,function(jt,dn){return jt.length!==dn.length||jt.every(function(Sn,jn){return Sn!==dn[jn]})})}function Ou(Qe){var Lt,It,jt=isMemo(Qe)?Qe.type.type:Qe.type;return!(typeof jt=="function"&&!((Lt=jt.prototype)!==null&&Lt!==void 0&&Lt.render)||typeof Qe=="function"&&!((It=Qe.prototype)!==null&&It!==void 0&&It.render))}function Sa(Qe){return!isValidElement(Qe)||isFragment(Qe)?!1:Ou(Qe)}function Lu(Qe,Lt,It,jt){if(!Lt.length)return It;var dn=_toArray(Lt),Sn=dn[0],jn=dn.slice(1),ui;return!Qe&&typeof Sn=="number"?ui=[]:Array.isArray(Qe)?ui=_toConsumableArray(Qe):ui=_objectSpread({},Qe),jt&&It===void 0&&jn.length===1?delete ui[Sn][jn[0]]:ui[Sn]=Lu(ui[Sn],jn,It,jt),ui}function Fl(Qe,Lt,It){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Lt.length&&jt&&It===void 0&&!get(Qe,Lt.slice(0,-1))?Qe:Lu(Qe,Lt,It,jt)}function Il(Qe){return _typeof(Qe)==="object"&&Qe!==null&&Object.getPrototypeOf(Qe)===Object.prototype}function eu(Qe){return Array.isArray(Qe)?[]:{}}var Cc=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function du(){for(var Qe=arguments.length,Lt=new Array(Qe),It=0;It<Qe;It++)Lt[It]=arguments[It];var jt=eu(Lt[0]);return Lt.forEach(function(dn){function Sn(jn,ui){var ji=new Set(ui),Ai=get(dn,jn),gr=Array.isArray(Ai);if(gr||Il(Ai)){if(!ji.has(Ai)){ji.add(Ai);var Oi=get(jt,jn);gr?jt=Fl(jt,jn,[]):(!Oi||_typeof(Oi)!=="object")&&(jt=Fl(jt,jn,eu(Ai))),Cc(Ai).forEach(function(ir){Sn([].concat(_toConsumableArray(jn),[ir]),ji)})}}else jt=Fl(jt,jn,Ai)}Sn([])}),jt}var Ol={},Cu=[],Wc=function(Lt){Cu.push(Lt)};function ah(Qe,Lt){if(0)var It}function Hc(Qe,Lt){if(0)var It}function Yh(){Ol={}}function Wu(Qe,Lt,It){!Lt&&!Ol[It]&&(Qe(!1,It),Ol[It]=!0)}function El(Qe,Lt){Wu(ah,Qe,Lt)}function Hu(Qe,Lt){Wu(Hc,Qe,Lt)}El.preMessage=Wc,El.resetWarned=Yh,El.noteOnce=Hu;var Iu=null,ku=Re.forwardRef(function(Qe,Lt){var It=Qe.height,jt=Qe.offsetY,dn=Qe.offsetX,Sn=Qe.children,jn=Qe.prefixCls,ui=Qe.onInnerResize,ji=Qe.innerProps,Ai=Qe.rtl,gr=Qe.extra,Oi={},ir={display:"flex",flexDirection:"column"};return jt!==void 0&&(Oi={height:It,position:"relative",overflow:"hidden"},ir=(0,rt.Z)((0,rt.Z)({},ir),{},(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({transform:"translateY(".concat(jt,"px)")},Ai?"marginRight":"marginLeft",-dn),"position","absolute"),"left",0),"right",0),"top",0))),Re.createElement("div",{style:Oi},Re.createElement(Ee.Z,{onResize:function(Tr){var ro=Tr.offsetHeight;ro&&ui&&ui()}},Re.createElement("div",(0,ht.Z)({style:ir,className:yt()((0,Tt.Z)({},"".concat(jn,"-holder-inner"),jn)),ref:Lt},ji),Sn,gr)))});ku.displayName="Filler";var Jc=ku;function Sh(Qe){var Lt=Qe.children,It=Qe.setRef,jt=Re.useCallback(function(dn){It(dn)},[]);return Re.cloneElement(Lt,{ref:jt})}function ml(Qe,Lt,It,jt,dn,Sn,jn,ui){var ji=ui.getKey;return Qe.slice(Lt,It+1).map(function(Ai,gr){var Oi=Lt+gr,ir=jn(Ai,Oi,{style:{width:jt},offsetX:dn}),Ji=ji(Ai);return Re.createElement(Sh,{key:Ji,setRef:function(ro){return Sn(Ai,ro)}},ir)})}function sh(Qe,Lt,It,jt){var dn=It-Qe,Sn=Lt-It,jn=Math.min(dn,Sn)*2;if(jt<=jn){var ui=Math.floor(jt/2);return jt%2?It+ui+1:It-ui}return dn>Sn?It-(jt-Sn):It+(jt-dn)}function lh(Qe,Lt,It){var jt=Qe.length,dn=Lt.length,Sn,jn;if(jt===0&&dn===0)return null;jt<dn?(Sn=Qe,jn=Lt):(Sn=Lt,jn=Qe);var ui={__EMPTY_ITEM__:!0};function ji(Tr){return Tr!==void 0?It(Tr):ui}for(var Ai=null,gr=Math.abs(jt-dn)!==1,Oi=0;Oi<jn.length;Oi+=1){var ir=ji(Sn[Oi]),Ji=ji(jn[Oi]);if(ir!==Ji){Ai=Oi,gr=gr||ir!==ji(jn[Oi+1]);break}}return Ai===null?null:{index:Ai,multiple:gr}}function Nc(Qe,Lt,It){var jt=Re.useState(Qe),dn=(0,tt.Z)(jt,2),Sn=dn[0],jn=dn[1],ui=Re.useState(null),ji=(0,tt.Z)(ui,2),Ai=ji[0],gr=ji[1];return Re.useEffect(function(){var Oi=lh(Sn||[],Qe||[],Lt);(Oi==null?void 0:Oi.index)!==void 0&&(It==null||It(Oi.index),gr(Qe[Oi.index])),jn(Qe)},[Qe]),[Ai]}var Ec=function(Lt){return+setTimeout(Lt,16)},tu=function(Lt){return clearTimeout(Lt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ec=function(Lt){return window.requestAnimationFrame(Lt)},tu=function(Lt){return window.cancelAnimationFrame(Lt)});var Vl=0,xl=new Map;function Ts(Qe){xl.delete(Qe)}var nu=function(Lt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vl+=1;var jt=Vl;function dn(Sn){if(Sn===0)Ts(jt),Lt();else{var jn=Ec(function(){dn(Sn-1)});xl.set(jt,jn)}}return dn(It),jt};nu.cancel=function(Qe){var Lt=xl.get(Qe);return Ts(Lt),tu(Lt)};var ol=nu,Vs=(typeof navigator=="undefined"?"undefined":(0,st.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Wl=Vs,fu=function(Qe,Lt,It,jt){var dn=(0,Re.useRef)(!1),Sn=(0,Re.useRef)(null);function jn(){clearTimeout(Sn.current),dn.current=!0,Sn.current=setTimeout(function(){dn.current=!1},50)}var ui=(0,Re.useRef)({top:Qe,bottom:Lt,left:It,right:jt});return ui.current.top=Qe,ui.current.bottom=Lt,ui.current.left=It,ui.current.right=jt,function(ji,Ai){var gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Oi=ji?Ai<0&&ui.current.left||Ai>0&&ui.current.right:Ai<0&&ui.current.top||Ai>0&&ui.current.bottom;return gr&&Oi?(clearTimeout(Sn.current),dn.current=!1):(!Oi||dn.current)&&jn(),!dn.current&&Oi}};function Ru(Qe,Lt,It,jt,dn,Sn,jn){var ui=(0,Re.useRef)(0),ji=(0,Re.useRef)(null),Ai=(0,Re.useRef)(null),gr=(0,Re.useRef)(!1),Oi=fu(Lt,It,jt,dn);function ir(Yr,ko){if(ol.cancel(ji.current),!Oi(!1,ko)){var oo=Yr;if(!oo._virtualHandled)oo._virtualHandled=!0;else return;ui.current+=ko,Ai.current=ko,Wl||oo.preventDefault(),ji.current=ol(function(){var oa=gr.current?10:1;jn(ui.current*oa,!1),ui.current=0})}}function Ji(Yr,ko){jn(ko,!0),Wl||Yr.preventDefault()}var Tr=(0,Re.useRef)(null),ro=(0,Re.useRef)(null);function Ro(Yr){if(Qe){ol.cancel(ro.current),ro.current=ol(function(){Tr.current=null},2);var ko=Yr.deltaX,oo=Yr.deltaY,oa=Yr.shiftKey,_a=ko,qo=oo;(Tr.current==="sx"||!Tr.current&&oa&&oo&&!ko)&&(_a=oo,qo=0,Tr.current="sx");var cs=Math.abs(_a),ja=Math.abs(qo);Tr.current===null&&(Tr.current=Sn&&cs>ja?"x":"y"),Tr.current==="y"?ir(Yr,qo):Ji(Yr,_a)}}function ia(Yr){Qe&&(gr.current=Yr.detail===Ai.current)}return[Ro,ia]}function Fo(Qe,Lt,It,jt){var dn=Re.useMemo(function(){return[new Map,[]]},[Qe,It.id,jt]),Sn=(0,tt.Z)(dn,2),jn=Sn[0],ui=Sn[1],ji=function(gr){var Oi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gr,ir=jn.get(gr),Ji=jn.get(Oi);if(ir===void 0||Ji===void 0)for(var Tr=Qe.length,ro=ui.length;ro<Tr;ro+=1){var Ro,ia=Qe[ro],Yr=Lt(ia);jn.set(Yr,ro);var ko=(Ro=It.get(Yr))!==null&&Ro!==void 0?Ro:jt;if(ui[ro]=(ui[ro-1]||0)+ko,Yr===gr&&(ir=ro),Yr===Oi&&(Ji=ro),ir!==void 0&&Ji!==void 0)break}return{top:ui[ir-1]||0,bottom:ui[Ji]}};return ji}var gu=be(15671),Rt=be(43144),fi=function(){function Qe(){(0,gu.Z)(this,Qe),(0,Tt.Z)(this,"maps",void 0),(0,Tt.Z)(this,"id",0),(0,Tt.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Rt.Z)(Qe,[{key:"set",value:function(It,jt){this.maps[It]=jt,this.id+=1,this.diffKeys.add(It)}},{key:"get",value:function(It){return this.maps[It]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Qe}(),Kl=fi;function Yu(Qe){var Lt=parseFloat(Qe);return isNaN(Lt)?0:Lt}function ec(Qe,Lt,It){var jt=Re.useState(0),dn=(0,tt.Z)(jt,2),Sn=dn[0],jn=dn[1],ui=(0,Re.useRef)(new Map),ji=(0,Re.useRef)(new Kl),Ai=(0,Re.useRef)(0);function gr(){Ai.current+=1}function Oi(){var Ji=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gr();var Tr=function(){var ia=!1;ui.current.forEach(function(Yr,ko){if(Yr&&Yr.offsetParent){var oo=Yr.offsetHeight,oa=getComputedStyle(Yr),_a=oa.marginTop,qo=oa.marginBottom,cs=Yu(_a),ja=Yu(qo),rs=oo+cs+ja;ji.current.get(ko)!==rs&&(ji.current.set(ko,rs),ia=!0)}}),ia&&jn(function(Yr){return Yr+1})};if(Ji)Tr();else{Ai.current+=1;var ro=Ai.current;Promise.resolve().then(function(){ro===Ai.current&&Tr()})}}function ir(Ji,Tr){var ro=Qe(Ji),Ro=ui.current.get(ro);Tr?(ui.current.set(ro,Tr),Oi()):ui.current.delete(ro),!Ro!=!Tr&&(Tr?Lt==null||Lt(Ji):It==null||It(Ji))}return(0,Re.useEffect)(function(){return gr},[]),[ir,Oi,ji.current,Sn]}var pu=14/15;function Eu(Qe,Lt,It){var jt=(0,Re.useRef)(!1),dn=(0,Re.useRef)(0),Sn=(0,Re.useRef)(0),jn=(0,Re.useRef)(null),ui=(0,Re.useRef)(null),ji,Ai=function(Ji){if(jt.current){var Tr=Math.ceil(Ji.touches[0].pageX),ro=Math.ceil(Ji.touches[0].pageY),Ro=dn.current-Tr,ia=Sn.current-ro,Yr=Math.abs(Ro)>Math.abs(ia);Yr?dn.current=Tr:Sn.current=ro;var ko=It(Yr,Yr?Ro:ia,!1,Ji);ko&&Ji.preventDefault(),clearInterval(ui.current),ko&&(ui.current=setInterval(function(){Yr?Ro*=pu:ia*=pu;var oo=Math.floor(Yr?Ro:ia);(!It(Yr,oo,!0)||Math.abs(oo)<=.1)&&clearInterval(ui.current)},16))}},gr=function(){jt.current=!1,ji()},Oi=function(Ji){ji(),Ji.touches.length===1&&!jt.current&&(jt.current=!0,dn.current=Math.ceil(Ji.touches[0].pageX),Sn.current=Math.ceil(Ji.touches[0].pageY),jn.current=Ji.target,jn.current.addEventListener("touchmove",Ai,{passive:!1}),jn.current.addEventListener("touchend",gr,{passive:!0}))};ji=function(){jn.current&&(jn.current.removeEventListener("touchmove",Ai),jn.current.removeEventListener("touchend",gr))},$l(function(){return Qe&&Lt.current.addEventListener("touchstart",Oi,{passive:!0}),function(){var ir;(ir=Lt.current)===null||ir===void 0||ir.removeEventListener("touchstart",Oi),ji(),clearInterval(ui.current)}},[Qe])}function pc(Qe){return Math.floor(Math.pow(Qe,.5))}function mc(Qe,Lt){var It="touches"in Qe?Qe.touches[0]:Qe;return It[Lt?"pageX":"pageY"]-window[Lt?"scrollX":"scrollY"]}function wl(Qe,Lt,It){Re.useEffect(function(){var jt=Lt.current;if(Qe&&jt){var dn=!1,Sn,jn,ui=function(){ol.cancel(Sn)},ji=function ir(){ui(),Sn=ol(function(){It(jn),ir()})},Ai=function(Ji){if(!(Ji.target.draggable||Ji.button!==0)){var Tr=Ji;Tr._virtualHandled||(Tr._virtualHandled=!0,dn=!0)}},gr=function(){dn=!1,ui()},Oi=function(Ji){if(dn){var Tr=mc(Ji,!1),ro=jt.getBoundingClientRect(),Ro=ro.top,ia=ro.bottom;if(Tr<=Ro){var Yr=Ro-Tr;jn=-pc(Yr),ji()}else if(Tr>=ia){var ko=Tr-ia;jn=pc(ko),ji()}else ui()}};return jt.addEventListener("mousedown",Ai),jt.ownerDocument.addEventListener("mouseup",gr),jt.ownerDocument.addEventListener("mousemove",Oi),function(){jt.removeEventListener("mousedown",Ai),jt.ownerDocument.removeEventListener("mouseup",gr),jt.ownerDocument.removeEventListener("mousemove",Oi),ui()}}},[Qe])}var Ca=10;function mu(Qe,Lt,It,jt,dn,Sn,jn,ui){var ji=Re.useRef(),Ai=Re.useState(null),gr=(0,tt.Z)(Ai,2),Oi=gr[0],ir=gr[1];return $l(function(){if(Oi&&Oi.times<Ca){if(!Qe.current){ir(function(ke){return(0,rt.Z)({},ke)});return}Sn();var Ji=Oi.targetAlign,Tr=Oi.originAlign,ro=Oi.index,Ro=Oi.offset,ia=Qe.current.clientHeight,Yr=!1,ko=Ji,oo=null;if(ia){for(var oa=Ji||Tr,_a=0,qo=0,cs=0,ja=Math.min(Lt.length-1,ro),rs=0;rs<=ja;rs+=1){var qs=dn(Lt[rs]);qo=_a;var Cs=It.get(qs);cs=qo+(Cs===void 0?jt:Cs),_a=cs}for(var Oe=oa==="top"?Ro:ia-Ro,ze=ja;ze>=0;ze-=1){var it=dn(Lt[ze]),vt=It.get(it);if(vt===void 0){Yr=!0;break}if(Oe-=vt,Oe<=0)break}switch(oa){case"top":oo=qo-Ro;break;case"bottom":oo=cs-ia+Ro;break;default:{var sn=Qe.current.scrollTop,Ce=sn+ia;qo<sn?ko="top":cs>Ce&&(ko="bottom")}}oo!==null&&jn(oo),oo!==Oi.lastTop&&(Yr=!0)}Yr&&ir((0,rt.Z)((0,rt.Z)({},Oi),{},{times:Oi.times+1,targetAlign:ko,lastTop:oo}))}},[Oi,Qe.current]),function(Ji){if(Ji==null){ui();return}if(ol.cancel(ji.current),typeof Ji=="number")jn(Ji);else if(Ji&&(0,st.Z)(Ji)==="object"){var Tr,ro=Ji.align;"index"in Ji?Tr=Ji.index:Tr=Lt.findIndex(function(Yr){return dn(Yr)===Ji.key});var Ro=Ji.offset,ia=Ro===void 0?0:Ro;ir({times:0,index:Tr,offset:ia,originAlign:ro})}}}var au=Re.forwardRef(function(Qe,Lt){var It=Qe.prefixCls,jt=Qe.rtl,dn=Qe.scrollOffset,Sn=Qe.scrollRange,jn=Qe.onStartMove,ui=Qe.onStopMove,ji=Qe.onScroll,Ai=Qe.horizontal,gr=Qe.spinSize,Oi=Qe.containerSize,ir=Qe.style,Ji=Qe.thumbStyle,Tr=Qe.showScrollBar,ro=Re.useState(!1),Ro=(0,tt.Z)(ro,2),ia=Ro[0],Yr=Ro[1],ko=Re.useState(null),oo=(0,tt.Z)(ko,2),oa=oo[0],_a=oo[1],qo=Re.useState(null),cs=(0,tt.Z)(qo,2),ja=cs[0],rs=cs[1],qs=!jt,Cs=Re.useRef(),Oe=Re.useRef(),ze=Re.useState(Tr),it=(0,tt.Z)(ze,2),vt=it[0],sn=it[1],Ce=Re.useRef(),ke=function(){Tr===!0||Tr===!1||(clearTimeout(Ce.current),sn(!0),Ce.current=setTimeout(function(){sn(!1)},3e3))},_e=Sn-Oi||0,Ye=Oi-gr||0,kt=Re.useMemo(function(){if(dn===0||_e===0)return 0;var xi=dn/_e;return xi*Ye},[dn,_e,Ye]),_t=function(li){li.stopPropagation(),li.preventDefault()},on=Re.useRef({top:kt,dragging:ia,pageY:oa,startTop:ja});on.current={top:kt,dragging:ia,pageY:oa,startTop:ja};var zn=function(li){Yr(!0),_a(mc(li,Ai)),rs(on.current.top),jn(),li.stopPropagation(),li.preventDefault()};Re.useEffect(function(){var xi=function(ur){ur.preventDefault()},li=Cs.current,Fi=Oe.current;return li.addEventListener("touchstart",xi,{passive:!1}),Fi.addEventListener("touchstart",zn,{passive:!1}),function(){li.removeEventListener("touchstart",xi),Fi.removeEventListener("touchstart",zn)}},[]);var yn=Re.useRef();yn.current=_e;var Fn=Re.useRef();Fn.current=Ye,Re.useEffect(function(){if(ia){var xi,li=function(ur){var to=on.current,br=to.dragging,Sr=to.pageY,wo=to.startTop;ol.cancel(xi);var Mi=Cs.current.getBoundingClientRect(),Jr=Oi/(Ai?Mi.width:Mi.height);if(br){var mr=(mc(ur,Ai)-Sr)*Jr,ao=wo;!qs&&Ai?ao-=mr:ao+=mr;var po=yn.current,Ar=Fn.current,To=Ar?ao/Ar:0,mo=Math.ceil(To*po);mo=Math.max(mo,0),mo=Math.min(mo,po),xi=ol(function(){ji(mo,Ai)})}},Fi=function(){Yr(!1),ui()};return window.addEventListener("mousemove",li,{passive:!0}),window.addEventListener("touchmove",li,{passive:!0}),window.addEventListener("mouseup",Fi,{passive:!0}),window.addEventListener("touchend",Fi,{passive:!0}),function(){window.removeEventListener("mousemove",li),window.removeEventListener("touchmove",li),window.removeEventListener("mouseup",Fi),window.removeEventListener("touchend",Fi),ol.cancel(xi)}}},[ia]),Re.useEffect(function(){return ke(),function(){clearTimeout(Ce.current)}},[dn]),Re.useImperativeHandle(Lt,function(){return{delayHidden:ke}});var qn="".concat(It,"-scrollbar"),$n={position:"absolute",visibility:vt?null:"hidden"},Wi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ai?($n.height=8,$n.left=0,$n.right=0,$n.bottom=0,Wi.height="100%",Wi.width=gr,qs?Wi.left=kt:Wi.right=kt):($n.width=8,$n.top=0,$n.bottom=0,qs?$n.right=0:$n.left=0,Wi.width="100%",Wi.height=gr,Wi.top=kt),Re.createElement("div",{ref:Cs,className:yt()(qn,(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({},"".concat(qn,"-horizontal"),Ai),"".concat(qn,"-vertical"),!Ai),"".concat(qn,"-visible"),vt)),style:(0,rt.Z)((0,rt.Z)({},$n),ir),onMouseDown:_t,onMouseMove:ke},Re.createElement("div",{ref:Oe,className:yt()("".concat(qn,"-thumb"),(0,Tt.Z)({},"".concat(qn,"-thumb-moving"),ia)),style:(0,rt.Z)((0,rt.Z)({},Wi),Ji),onMouseDown:zn}))}),ll=au,fs=20;function Ml(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,It=Qe/Lt*Qe;return isNaN(It)&&(It=0),It=Math.max(It,fs),Math.floor(It)}var Fu=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],sl=[],su={overflowY:"auto",overflowAnchor:"none"};function Gl(Qe,Lt){var It=Qe.prefixCls,jt=It===void 0?"rc-virtual-list":It,dn=Qe.className,Sn=Qe.height,jn=Qe.itemHeight,ui=Qe.fullHeight,ji=ui===void 0?!0:ui,Ai=Qe.style,gr=Qe.data,Oi=Qe.children,ir=Qe.itemKey,Ji=Qe.virtual,Tr=Qe.direction,ro=Qe.scrollWidth,Ro=Qe.component,ia=Ro===void 0?"div":Ro,Yr=Qe.onScroll,ko=Qe.onVirtualScroll,oo=Qe.onVisibleChange,oa=Qe.innerProps,_a=Qe.extraRender,qo=Qe.styles,cs=Qe.showScrollBar,ja=cs===void 0?"optional":cs,rs=(0,sa.Z)(Qe,Fu),qs=Re.useCallback(function(bn){return typeof ir=="function"?ir(bn):bn==null?void 0:bn[ir]},[ir]),Cs=ec(qs,null,null),Oe=(0,tt.Z)(Cs,4),ze=Oe[0],it=Oe[1],vt=Oe[2],sn=Oe[3],Ce=!!(Ji!==!1&&Sn&&jn),ke=Re.useMemo(function(){return Object.values(vt.maps).reduce(function(bn,Yn){return bn+Yn},0)},[vt.id,vt.maps]),_e=Ce&&gr&&(Math.max(jn*gr.length,ke)>Sn||!!ro),Ye=Tr==="rtl",kt=yt()(jt,(0,Tt.Z)({},"".concat(jt,"-rtl"),Ye),dn),_t=gr||sl,on=(0,Re.useRef)(),zn=(0,Re.useRef)(),yn=(0,Re.useRef)(),Fn=(0,Re.useState)(0),qn=(0,tt.Z)(Fn,2),$n=qn[0],Wi=qn[1],xi=(0,Re.useState)(0),li=(0,tt.Z)(xi,2),Fi=li[0],Zi=li[1],ur=(0,Re.useState)(!1),to=(0,tt.Z)(ur,2),br=to[0],Sr=to[1],wo=function(){Sr(!0)},Mi=function(){Sr(!1)},Jr={getKey:qs};function mr(bn){Wi(function(Yn){var ei;typeof bn=="function"?ei=bn(Yn):ei=bn;var pi=Vo(ei);return on.current.scrollTop=pi,pi})}var ao=(0,Re.useRef)({start:0,end:_t.length}),po=(0,Re.useRef)(),Ar=Nc(_t,qs),To=(0,tt.Z)(Ar,1),mo=To[0];po.current=mo;var zo=Re.useMemo(function(){if(!Ce)return{scrollHeight:void 0,start:0,end:_t.length-1,offset:void 0};if(!_e){var bn;return{scrollHeight:((bn=zn.current)===null||bn===void 0?void 0:bn.offsetHeight)||0,start:0,end:_t.length-1,offset:void 0}}for(var Yn=0,ei,pi,rr,$i=_t.length,sr=0;sr<$i;sr+=1){var At=_t[sr],cr=qs(At),Pr=vt.get(cr),Ir=Yn+(Pr===void 0?jn:Pr);Ir>=$n&&ei===void 0&&(ei=sr,pi=Yn),Ir>$n+Sn&&rr===void 0&&(rr=sr),Yn=Ir}return ei===void 0&&(ei=0,pi=0,rr=Math.ceil(Sn/jn)),rr===void 0&&(rr=_t.length-1),rr=Math.min(rr+1,_t.length-1),{scrollHeight:Yn,start:ei,end:rr,offset:pi}},[_e,Ce,$n,_t,sn,Sn]),Dr=zo.scrollHeight,Co=zo.start,ca=zo.end,Da=zo.offset;ao.current.start=Co,ao.current.end=ca,Re.useLayoutEffect(function(){var bn=vt.getRecord();if(bn.size===1){var Yn=Array.from(bn)[0],ei=_t[Co];if(ei){var pi=qs(ei);if(pi===Yn){var rr=vt.get(Yn),$i=rr-jn;mr(function(sr){return sr+$i})}}}vt.resetRecord()},[Dr]);var ga=Re.useState({width:0,height:Sn}),Qr=(0,tt.Z)(ga,2),Jo=Qr[0],ua=Qr[1],Ea=function(Yn){ua({width:Yn.offsetWidth,height:Yn.offsetHeight})},es=(0,Re.useRef)(),ba=(0,Re.useRef)(),_o=Re.useMemo(function(){return Ml(Jo.width,ro)},[Jo.width,ro]),yo=Re.useMemo(function(){return Ml(Jo.height,Dr)},[Jo.height,Dr]),ta=Dr-Sn,Ka=(0,Re.useRef)(ta);Ka.current=ta;function Vo(bn){var Yn=bn;return Number.isNaN(Ka.current)||(Yn=Math.min(Yn,Ka.current)),Yn=Math.max(Yn,0),Yn}var Zr=$n<=0,ho=$n>=ta,fo=Fi<=0,Mr=Fi>=ro,Gr=fu(Zr,ho,fo,Mr),Do=function(){return{x:Ye?-Fi:Fi,y:$n}},ye=(0,Re.useRef)(Do()),Ie=Is(function(bn){if(ko){var Yn=(0,rt.Z)((0,rt.Z)({},Do()),bn);(ye.current.x!==Yn.x||ye.current.y!==Yn.y)&&(ko(Yn),ye.current=Yn)}});function je(bn,Yn){var ei=bn;Yn?((0,Je.flushSync)(function(){Zi(ei)}),Ie()):mr(ei)}function Ue(bn){var Yn=bn.currentTarget.scrollTop;Yn!==$n&&mr(Yn),Yr==null||Yr(bn),Ie()}var gt=function(Yn){var ei=Yn,pi=ro?ro-Jo.width:0;return ei=Math.max(ei,0),ei=Math.min(ei,pi),ei},Ht=Is(function(bn,Yn){Yn?((0,Je.flushSync)(function(){Zi(function(ei){var pi=ei+(Ye?-bn:bn);return gt(pi)})}),Ie()):mr(function(ei){var pi=ei+bn;return pi})}),$t=Ru(Ce,Zr,ho,fo,Mr,!!ro,Ht),an=(0,tt.Z)($t,2),Tn=an[0],Un=an[1];Eu(Ce,on,function(bn,Yn,ei,pi){var rr=pi;return Gr(bn,Yn,ei)?!1:!rr||!rr._virtualHandled?(rr&&(rr._virtualHandled=!0),Tn({preventDefault:function(){},deltaX:bn?Yn:0,deltaY:bn?0:Yn}),!0):!1}),wl(_e,on,function(bn){mr(function(Yn){return Yn+bn})}),$l(function(){function bn(ei){var pi=Zr&&ei.detail<0,rr=ho&&ei.detail>0;Ce&&!pi&&!rr&&ei.preventDefault()}var Yn=on.current;return Yn.addEventListener("wheel",Tn,{passive:!1}),Yn.addEventListener("DOMMouseScroll",Un,{passive:!0}),Yn.addEventListener("MozMousePixelScroll",bn,{passive:!1}),function(){Yn.removeEventListener("wheel",Tn),Yn.removeEventListener("DOMMouseScroll",Un),Yn.removeEventListener("MozMousePixelScroll",bn)}},[Ce,Zr,ho]),$l(function(){if(ro){var bn=gt(Fi);Zi(bn),Ie({x:bn})}},[Jo.width,ro]);var Mn=function(){var Yn,ei;(Yn=es.current)===null||Yn===void 0||Yn.delayHidden(),(ei=ba.current)===null||ei===void 0||ei.delayHidden()},Ei=mu(on,_t,vt,jn,qs,function(){return it(!0)},mr,Mn);Re.useImperativeHandle(Lt,function(){return{nativeElement:yn.current,getScrollInfo:Do,scrollTo:function(Yn){function ei(pi){return pi&&(0,st.Z)(pi)==="object"&&("left"in pi||"top"in pi)}ei(Yn)?(Yn.left!==void 0&&Zi(gt(Yn.left)),Ei(Yn.top)):Ei(Yn)}}}),$l(function(){if(oo){var bn=_t.slice(Co,ca+1);oo(bn,_t)}},[Co,ca,_t]);var Ui=Fo(_t,qs,vt,jn),Ci=_a==null?void 0:_a({start:Co,end:ca,virtual:_e,offsetX:Fi,offsetY:Da,rtl:Ye,getSize:Ui}),Li=ml(_t,Co,ca,ro,Fi,ze,Oi,Jr),Di=null;Sn&&(Di=(0,rt.Z)((0,Tt.Z)({},ji?"height":"maxHeight",Sn),su),Ce&&(Di.overflowY="hidden",ro&&(Di.overflowX="hidden"),br&&(Di.pointerEvents="none")));var Ni={};return Ye&&(Ni.dir="rtl"),Re.createElement("div",(0,ht.Z)({ref:yn,style:(0,rt.Z)((0,rt.Z)({},Ai),{},{position:"relative"}),className:kt},Ni,rs),Re.createElement(Ee.Z,{onResize:Ea},Re.createElement(ia,{className:"".concat(jt,"-holder"),style:Di,ref:on,onScroll:Ue,onMouseEnter:Mn},Re.createElement(Jc,{prefixCls:jt,height:Dr,offsetX:Fi,offsetY:Da,scrollWidth:ro,onInnerResize:it,ref:zn,innerProps:oa,rtl:Ye,extra:Ci},Li))),_e&&Dr>Sn&&Re.createElement(ll,{ref:es,prefixCls:jt,scrollOffset:$n,scrollRange:Dr,rtl:Ye,onScroll:je,onStartMove:wo,onStopMove:Mi,spinSize:yo,containerSize:Jo.height,style:qo==null?void 0:qo.verticalScrollBar,thumbStyle:qo==null?void 0:qo.verticalScrollBarThumb,showScrollBar:ja}),_e&&ro>Jo.width&&Re.createElement(ll,{ref:ba,prefixCls:jt,scrollOffset:Fi,scrollRange:ro,rtl:Ye,onScroll:je,onStartMove:wo,onStopMove:Mi,spinSize:_o,containerSize:Jo.width,horizontal:!0,style:qo==null?void 0:qo.horizontalScrollBar,thumbStyle:qo==null?void 0:qo.horizontalScrollBarThumb,showScrollBar:ja}))}var tc=Re.forwardRef(Gl);tc.displayName="List";var Bs=tc,vu=Bs,As=pt(null),Ms=pt(null);function Zs(Qe,Lt,It){var jt=Lt||1;return It[Qe+jt]-(It[Qe]||0)}function Pl(Qe){var Lt=Qe.rowInfo,It=Qe.column,jt=Qe.colIndex,dn=Qe.indent,Sn=Qe.index,jn=Qe.component,ui=Qe.renderIndex,ji=Qe.record,Ai=Qe.style,gr=Qe.className,Oi=Qe.inverse,ir=Qe.getHeight,Ji=It.render,Tr=It.dataIndex,ro=It.className,Ro=It.width,ia=wt(Ms,["columnsOffset"]),Yr=ia.columnsOffset,ko=ln(Lt,It,jt,dn,Sn),oo=ko.key,oa=ko.fixedInfo,_a=ko.appendCellNode,qo=ko.additionalCellProps,cs=qo.style,ja=qo.colSpan,rs=ja===void 0?1:ja,qs=qo.rowSpan,Cs=qs===void 0?1:qs,Oe=jt-1,ze=Zs(Oe,rs,Yr),it=rs>1?Ro-ze:0,vt=(0,rt.Z)((0,rt.Z)((0,rt.Z)({},cs),Ai),{},{flex:"0 0 ".concat(ze,"px"),width:"".concat(ze,"px"),marginRight:it,pointerEvents:"auto"}),sn=Re.useMemo(function(){return Oi?Cs<=1:rs===0||Cs===0||Cs>1},[Cs,rs,Oi]);sn?vt.visibility="hidden":Oi&&(vt.height=ir==null?void 0:ir(Cs));var Ce=sn?function(){return null}:Ji,ke={};return(Cs===0||rs===0)&&(ke.rowSpan=1,ke.colSpan=1),Re.createElement(Bi,(0,ht.Z)({className:yt()(ro,gr),ellipsis:It.ellipsis,align:It.align,scope:It.rowScope,component:jn,prefixCls:Lt.prefixCls,key:oo,record:ji,index:Sn,renderIndex:ui,dataIndex:Tr,render:Ce,shouldCellUpdate:It.shouldCellUpdate},oa,{appendNode:_a,additionalProps:(0,rt.Z)((0,rt.Z)({},qo),{},{style:vt},ke)}))}var js=Pl,_c=["data","index","className","rowKey","style","extra","getHeight"],Vr=Re.forwardRef(function(Qe,Lt){var It=Qe.data,jt=Qe.index,dn=Qe.className,Sn=Qe.rowKey,jn=Qe.style,ui=Qe.extra,ji=Qe.getHeight,Ai=(0,sa.Z)(Qe,_c),gr=It.record,Oi=It.indent,ir=It.index,Ji=wt(Pe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Tr=Ji.scrollX,ro=Ji.flattenColumns,Ro=Ji.prefixCls,ia=Ji.fixColumn,Yr=Ji.componentWidth,ko=wt(As,["getComponent"]),oo=ko.getComponent,oa=Ho(gr,Sn,jt,Oi),_a=oo(["body","row"],"div"),qo=oo(["body","cell"],"div"),cs=oa.rowSupportExpand,ja=oa.expanded,rs=oa.rowProps,qs=oa.expandedRowRender,Cs=oa.expandedRowClassName,Oe;if(cs&&ja){var ze=qs(gr,jt,Oi+1,ja),it=Ns(Cs,gr,jt,Oi),vt={};ia&&(vt={style:(0,Tt.Z)({},"--virtual-width","".concat(Yr,"px"))});var sn="".concat(Ro,"-expanded-row-cell");Oe=Re.createElement(_a,{className:yt()("".concat(Ro,"-expanded-row"),"".concat(Ro,"-expanded-row-level-").concat(Oi+1),it)},Re.createElement(Bi,{component:qo,prefixCls:Ro,className:yt()(sn,(0,Tt.Z)({},"".concat(sn,"-fixed"),ia)),additionalProps:vt},ze))}var Ce=(0,rt.Z)((0,rt.Z)({},jn),{},{width:Tr});ui&&(Ce.position="absolute",Ce.pointerEvents="none");var ke=Re.createElement(_a,(0,ht.Z)({},rs,Ai,{"data-row-key":Sn,ref:cs?null:Lt,className:yt()(dn,"".concat(Ro,"-row"),rs==null?void 0:rs.className,(0,Tt.Z)({},"".concat(Ro,"-row-extra"),ui)),style:(0,rt.Z)((0,rt.Z)({},Ce),rs==null?void 0:rs.style)}),ro.map(function(_e,Ye){return Re.createElement(js,{key:Ye,component:qo,rowInfo:oa,column:_e,colIndex:Ye,indent:Oi,index:jt,renderIndex:ir,record:gr,inverse:ui,getHeight:ji})}));return cs?Re.createElement("div",{ref:Lt},ke,Oe):ke}),ju=ge(Vr),xs=ju,sd=Re.forwardRef(function(Qe,Lt){var It=Qe.data,jt=Qe.onScroll,dn=wt(Pe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Sn=dn.flattenColumns,jn=dn.onColumnResize,ui=dn.getRowKey,ji=dn.expandedKeys,Ai=dn.prefixCls,gr=dn.childrenColumnName,Oi=dn.scrollX,ir=dn.direction,Ji=wt(As),Tr=Ji.sticky,ro=Ji.scrollY,Ro=Ji.listItemHeight,ia=Ji.getComponent,Yr=Ji.onScroll,ko=Re.useRef(),oo=va(It,gr,ji,ui),oa=Re.useMemo(function(){var Oe=0;return Sn.map(function(ze){var it=ze.width,vt=ze.key;return Oe+=it,[vt,it,Oe]})},[Sn]),_a=Re.useMemo(function(){return oa.map(function(Oe){return Oe[2]})},[oa]);Re.useEffect(function(){oa.forEach(function(Oe){var ze=(0,tt.Z)(Oe,2),it=ze[0],vt=ze[1];jn(it,vt)})},[oa]),Re.useImperativeHandle(Lt,function(){var Oe,ze={scrollTo:function(vt){var sn;(sn=ko.current)===null||sn===void 0||sn.scrollTo(vt)},nativeElement:(Oe=ko.current)===null||Oe===void 0?void 0:Oe.nativeElement};return Object.defineProperty(ze,"scrollLeft",{get:function(){var vt;return((vt=ko.current)===null||vt===void 0?void 0:vt.getScrollInfo().x)||0},set:function(vt){var sn;(sn=ko.current)===null||sn===void 0||sn.scrollTo({left:vt})}}),ze});var qo=function(ze,it){var vt,sn=(vt=oo[it])===null||vt===void 0?void 0:vt.record,Ce=ze.onCell;if(Ce){var ke,_e=Ce(sn,it);return(ke=_e==null?void 0:_e.rowSpan)!==null&&ke!==void 0?ke:1}return 1},cs=function(ze){var it=ze.start,vt=ze.end,sn=ze.getSize,Ce=ze.offsetY;if(vt<0)return null;for(var ke=Sn.filter(function(xi){return qo(xi,it)===0}),_e=it,Ye=function(li){if(ke=ke.filter(function(Fi){return qo(Fi,li)===0}),!ke.length)return _e=li,1},kt=it;kt>=0&&!Ye(kt);kt-=1);for(var _t=Sn.filter(function(xi){return qo(xi,vt)!==1}),on=vt,zn=function(li){if(_t=_t.filter(function(Fi){return qo(Fi,li)!==1}),!_t.length)return on=Math.max(li-1,vt),1},yn=vt;yn<oo.length&&!zn(yn);yn+=1);for(var Fn=[],qn=function(li){var Fi=oo[li];if(!Fi)return 1;Sn.some(function(Zi){return qo(Zi,li)>1})&&Fn.push(li)},$n=_e;$n<=on;$n+=1)qn($n);var Wi=Fn.map(function(xi){var li=oo[xi],Fi=ui(li.record,xi),Zi=function(br){var Sr=xi+br-1,wo=ui(oo[Sr].record,Sr),Mi=sn(Fi,wo);return Mi.bottom-Mi.top},ur=sn(Fi);return Re.createElement(xs,{key:xi,data:li,rowKey:Fi,index:xi,style:{top:-Ce+ur.top},extra:!0,getHeight:Zi})});return Wi},ja=Re.useMemo(function(){return{columnsOffset:_a}},[_a]),rs="".concat(Ai,"-tbody"),qs=ia(["body","wrapper"]),Cs={};return Tr&&(Cs.position="sticky",Cs.bottom=0,(0,st.Z)(Tr)==="object"&&Tr.offsetScroll&&(Cs.bottom=Tr.offsetScroll)),Re.createElement(Ms.Provider,{value:ja},Re.createElement(vu,{fullHeight:!1,ref:ko,prefixCls:"".concat(rs,"-virtual"),styles:{horizontalScrollBar:Cs},className:rs,height:ro,itemHeight:Ro||24,data:oo,itemKey:function(ze){return ui(ze.record)},component:qs,scrollWidth:Oi,direction:ir,onVirtualScroll:function(ze){var it,vt=ze.x;jt({currentTarget:(it=ko.current)===null||it===void 0?void 0:it.nativeElement,scrollLeft:vt})},onScroll:Yr,extraRender:cs},function(Oe,ze,it){var vt=ui(Oe.record,ze);return Re.createElement(xs,{data:Oe,rowKey:vt,index:ze,style:it.style})}))}),Vc=ge(sd),xh=Vc,Th=function(Lt,It){var jt=It.ref,dn=It.onScroll;return Re.createElement(xh,{ref:jt,data:Lt,onScroll:dn})};function _u(Qe,Lt){var It=Qe.data,jt=Qe.columns,dn=Qe.scroll,Sn=Qe.sticky,jn=Qe.prefixCls,ui=jn===void 0?gl:jn,ji=Qe.className,Ai=Qe.listItemHeight,gr=Qe.components,Oi=Qe.onScroll,ir=dn||{},Ji=ir.x,Tr=ir.y;typeof Ji!="number"&&(Ji=1),typeof Tr!="number"&&(Tr=500);var ro=Ct(function(Yr,ko){return Qt(gr,Yr)||ko}),Ro=Ct(Oi),ia=Re.useMemo(function(){return{sticky:Sn,scrollY:Tr,listItemHeight:Ai,getComponent:ro,onScroll:Ro}},[Sn,Tr,Ai,ro,Ro]);return Re.createElement(As.Provider,{value:ia},Re.createElement(Xa,(0,ht.Z)({},Qe,{className:yt()(ji,"".concat(ui,"-virtual")),scroll:(0,rt.Z)((0,rt.Z)({},dn),{},{x:Ji}),components:(0,rt.Z)((0,rt.Z)({},gr),{},{body:It!=null&&It.length?Th:void 0}),columns:jt,internalHooks:ve.R,tailor:!0,ref:Lt})))}var Dc=Re.forwardRef(_u);function Zu(Qe){return se(Dc,Qe)}var Ko=Zu(),lu=null},62978:function(Rn,ti,be){"use strict";be.d(ti,{g:function(){return Re},v:function(){return Bt}});var ve=be(1413),tt=be(45987),Pt=be(40830),Ut=["expandable"],Bt="RC_TABLE_INTERNAL_COL_DEFINE";function Re(Je){var pt=Je.expandable,wt=(0,tt.Z)(Je,Ut),ht;return"expandable"in Je?ht=(0,ve.Z)((0,ve.Z)({},wt),pt):ht=wt,ht.showExpandColumn===!1&&(ht.expandIconColumnIndex=-1),ht}},63295:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return Bt}});var ve=be(71002),tt=Symbol.for("react.element"),Pt=Symbol.for("react.transitional.element"),Ut=Symbol.for("react.fragment");function Bt(Re){return Re&&(0,ve.Z)(Re)==="object"&&(Re.$$typeof===tt||Re.$$typeof===Pt)&&Re.type===Ut}},40830:function(Rn,ti,be){"use strict";var ve={},tt=[],Pt=function(Vt){tt.push(Vt)};function Ut(ht,Vt){if(0)var ct}function Bt(ht,Vt){if(0)var ct}function Re(){ve={}}function Je(ht,Vt,ct){!Vt&&!ve[ct]&&(ht(!1,ct),ve[ct]=!0)}function pt(ht,Vt){Je(Ut,ht,Vt)}function wt(ht,Vt){Je(Bt,ht,Vt)}pt.preMessage=Pt,pt.resetWarned=Re,pt.noteOnce=wt,ti.ZP=pt},46762:function(Rn,ti){"use strict";var be;var ve=Symbol.for("react.element"),tt=Symbol.for("react.portal"),Pt=Symbol.for("react.fragment"),Ut=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),wt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Te=Symbol.for("react.offscreen"),ne;ne=Symbol.for("react.module.reference");function te(ue){if(typeof ue=="object"&&ue!==null){var se=ue.$$typeof;switch(se){case ve:switch(ue=ue.type,ue){case Pt:case Bt:case Ut:case ht:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case wt:case He:case ct:case Re:return ue;default:return se}}case tt:return se}}}be=Je,be=Re,be=ve,be=wt,be=Pt,be=He,be=ct,be=tt,be=Bt,be=Ut,be=ht,be=Vt,be=function(){return!1},be=function(){return!1},be=function(ue){return te(ue)===Je},be=function(ue){return te(ue)===Re},be=function(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===ve},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===Pt},be=function(ue){return te(ue)===He},be=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===tt},be=function(ue){return te(ue)===Bt},be=function(ue){return te(ue)===Ut},be=function(ue){return te(ue)===ht},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===Pt||ue===Bt||ue===Ut||ue===ht||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===He||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===wt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},35110:function(Rn,ti,be){"use strict";be(46762)},48387:function(Rn,ti,be){"use strict";be.d(ti,{Qw:function(){return ia},FJ:function(){return ko},hT:function(){return Yr},OF:function(){return Ml},ZP:function(){return Cs}});function ve(){return ve=Object.assign?Object.assign.bind():function(Oe){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze];for(var vt in it)({}).hasOwnProperty.call(it,vt)&&(Oe[vt]=it[vt])}return Oe},ve.apply(null,arguments)}function tt(Oe,ze){(ze==null||ze>Oe.length)&&(ze=Oe.length);for(var it=0,vt=Array(ze);it<ze;it++)vt[it]=Oe[it];return vt}function Pt(Oe){if(Array.isArray(Oe))return tt(Oe)}function Ut(Oe){if(typeof Symbol!="undefined"&&Oe[Symbol.iterator]!=null||Oe["@@iterator"]!=null)return Array.from(Oe)}function Bt(Oe,ze){if(Oe){if(typeof Oe=="string")return tt(Oe,ze);var it={}.toString.call(Oe).slice(8,-1);return it==="Object"&&Oe.constructor&&(it=Oe.constructor.name),it==="Map"||it==="Set"?Array.from(Oe):it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it)?tt(Oe,ze):void 0}}function Re(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Je(Oe){return Pt(Oe)||Ut(Oe)||Bt(Oe)||Re()}function pt(Oe){"@babel/helpers - typeof";return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},pt(Oe)}function wt(Oe,ze){if(pt(Oe)!="object"||!Oe)return Oe;var it=Oe[Symbol.toPrimitive];if(it!==void 0){var vt=it.call(Oe,ze||"default");if(pt(vt)!="object")return vt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ze==="string"?String:Number)(Oe)}function ht(Oe){var ze=wt(Oe,"string");return pt(ze)=="symbol"?ze:ze+""}function Vt(Oe,ze,it){return(ze=ht(ze))in Oe?Object.defineProperty(Oe,ze,{value:it,enumerable:!0,configurable:!0,writable:!0}):Oe[ze]=it,Oe}function ct(Oe,ze){var it=Object.keys(Oe);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Oe);ze&&(vt=vt.filter(function(sn){return Object.getOwnPropertyDescriptor(Oe,sn).enumerable})),it.push.apply(it,vt)}return it}function He(Oe){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze]!=null?arguments[ze]:{};ze%2?ct(Object(it),!0).forEach(function(vt){Vt(Oe,vt,it[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Oe,Object.getOwnPropertyDescriptors(it)):ct(Object(it)).forEach(function(vt){Object.defineProperty(Oe,vt,Object.getOwnPropertyDescriptor(it,vt))})}return Oe}function Te(Oe){if(Array.isArray(Oe))return Oe}function ne(Oe,ze){var it=Oe==null?null:typeof Symbol!="undefined"&&Oe[Symbol.iterator]||Oe["@@iterator"];if(it!=null){var vt,sn,Ce,ke,_e=[],Ye=!0,kt=!1;try{if(Ce=(it=it.call(Oe)).next,ze===0){if(Object(it)!==it)return;Ye=!1}else for(;!(Ye=(vt=Ce.call(it)).done)&&(_e.push(vt.value),_e.length!==ze);Ye=!0);}catch(_t){kt=!0,sn=_t}finally{try{if(!Ye&&it.return!=null&&(ke=it.return(),Object(ke)!==ke))return}finally{if(kt)throw sn}}return _e}}function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(Oe,ze){return Te(Oe)||ne(Oe,ze)||Bt(Oe,ze)||te()}function se(Oe,ze){if(Oe==null)return{};var it={};for(var vt in Oe)if({}.hasOwnProperty.call(Oe,vt)){if(ze.indexOf(vt)!==-1)continue;it[vt]=Oe[vt]}return it}function ge(Oe,ze){if(Oe==null)return{};var it,vt,sn=se(Oe,ze);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(Oe);for(vt=0;vt<Ce.length;vt++)it=Ce[vt],ze.indexOf(it)===-1&&{}.propertyIsEnumerable.call(Oe,it)&&(sn[it]=Oe[it])}return sn}function me(){return me=Object.assign?Object.assign.bind():function(Oe){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze];for(var vt in it)Object.prototype.hasOwnProperty.call(it,vt)&&(Oe[vt]=it[vt])}return Oe},me.apply(this,arguments)}function xe(Oe,ze){(ze==null||ze>Oe.length)&&(ze=Oe.length);for(var it=0,vt=new Array(ze);it<ze;it++)vt[it]=Oe[it];return vt}function Pe(Oe){if(Array.isArray(Oe))return xe(Oe)}function Ke(Oe){if(typeof Symbol!="undefined"&&Oe[Symbol.iterator]!=null||Oe["@@iterator"]!=null)return Array.from(Oe)}function qe(Oe,ze){if(Oe){if(typeof Oe=="string")return xe(Oe,ze);var it=Object.prototype.toString.call(Oe).slice(8,-1);if(it==="Object"&&Oe.constructor&&(it=Oe.constructor.name),it==="Map"||it==="Set")return Array.from(Oe);if(it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it))return xe(Oe,ze)}}function ft(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function st(Oe){return Pe(Oe)||Ke(Oe)||qe(Oe)||ft()}function rt(Oe){"@babel/helpers - typeof";return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},rt(Oe)}function Tt(Oe,ze){if(rt(Oe)!=="object"||Oe===null)return Oe;var it=Oe[Symbol.toPrimitive];if(it!==void 0){var vt=it.call(Oe,ze||"default");if(rt(vt)!=="object")return vt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ze==="string"?String:Number)(Oe)}function Mt(Oe){var ze=Tt(Oe,"string");return rt(ze)==="symbol"?ze:String(ze)}function yt(Oe,ze,it){return ze=Mt(ze),ze in Oe?Object.defineProperty(Oe,ze,{value:it,enumerable:!0,configurable:!0,writable:!0}):Oe[ze]=it,Oe}function Dt(Oe,ze){var it=Object.keys(Oe);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Oe);ze&&(vt=vt.filter(function(sn){return Object.getOwnPropertyDescriptor(Oe,sn).enumerable})),it.push.apply(it,vt)}return it}function Nt(Oe){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze]!=null?arguments[ze]:{};ze%2?Dt(Object(it),!0).forEach(function(vt){yt(Oe,vt,it[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Oe,Object.getOwnPropertyDescriptors(it)):Dt(Object(it)).forEach(function(vt){Object.defineProperty(Oe,vt,Object.getOwnPropertyDescriptor(it,vt))})}return Oe}function Bn(Oe){if(Array.isArray(Oe))return Oe}function On(Oe,ze){var it=Oe==null?null:typeof Symbol!="undefined"&&Oe[Symbol.iterator]||Oe["@@iterator"];if(it!=null){var vt,sn,Ce,ke,_e=[],Ye=!0,kt=!1;try{if(Ce=(it=it.call(Oe)).next,ze===0){if(Object(it)!==it)return;Ye=!1}else for(;!(Ye=(vt=Ce.call(it)).done)&&(_e.push(vt.value),_e.length!==ze);Ye=!0);}catch(_t){kt=!0,sn=_t}finally{try{if(!Ye&&it.return!=null&&(ke=it.return(),Object(ke)!==ke))return}finally{if(kt)throw sn}}return _e}}function Qt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vn(Oe,ze){return Bn(Oe)||On(Oe,ze)||qe(Oe,ze)||Qt()}function lt(Oe,ze){if(Oe==null)return{};var it={},vt=Object.keys(Oe),sn,Ce;for(Ce=0;Ce<vt.length;Ce++)sn=vt[Ce],!(ze.indexOf(sn)>=0)&&(it[sn]=Oe[sn]);return it}function Ge(Oe,ze){if(Oe==null)return{};var it=lt(Oe,ze),vt,sn;if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(Oe);for(sn=0;sn<Ce.length;sn++)vt=Ce[sn],!(ze.indexOf(vt)>=0)&&Object.prototype.propertyIsEnumerable.call(Oe,vt)&&(it[vt]=Oe[vt])}return it}var Ne=be(67294);function Nn(Oe){var ze=Ne.useRef();ze.current=Oe;var it=Ne.useCallback(function(){for(var vt,sn=arguments.length,Ce=new Array(sn),ke=0;ke<sn;ke++)Ce[ke]=arguments[ke];return(vt=ze.current)===null||vt===void 0?void 0:vt.call.apply(vt,[ze].concat(Ce))},[]);return it}function Xn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Xt=Xn()?Ne.useLayoutEffect:Ne.useEffect,ai=Xt,xn=function(ze,it){var vt=Ne.useRef(!0);Xt(function(){if(!vt.current)return ze()},it),Xt(function(){return vt.current=!1,function(){vt.current=!0}},[])};function gi(Oe){var ze=Ne.useRef(!1),it=Ne.useState(Oe),vt=vn(it,2),sn=vt[0],Ce=vt[1];Ne.useEffect(function(){return ze.current=!1,function(){ze.current=!0}},[]);function ke(_e,Ye){Ye&&ze.current||Ce(_e)}return[sn,ke]}function Zt(Oe){return Oe!==void 0}function Ct(Oe,ze){var it=ze||{},vt=it.defaultValue,sn=it.value,Ce=it.onChange,ke=it.postState,_e=gi(function(){return Zt(sn)?sn:Zt(vt)?typeof vt=="function"?vt():vt:typeof Oe=="function"?Oe():Oe}),Ye=vn(_e,2),kt=Ye[0],_t=Ye[1],on=sn!==void 0?sn:kt,zn=ke?ke(on):on,yn=Nn(Ce),Fn=gi([on]),qn=vn(Fn,2),$n=qn[0],Wi=qn[1];xn(function(){var li=$n[0];kt!==li&&yn(kt,li)},[$n]),xn(function(){Zt(sn)||_t(sn)},[sn]);var xi=Nn(function(li,Fi){_t(li,Fi),Wi([on],Fi)});return[zn,xi]}var qt={};function hi(Oe,ze){}function Kt(Oe,ze){}function Xe(){qt={}}function Le(Oe,ze,it){!ze&&!qt[it]&&(Oe(!1,it),qt[it]=!0)}function Me(Oe,ze){Le(hi,Oe,ze)}function We(Oe,ze){Le(Kt,Oe,ze)}var $e=Me,Be=be(94184),ut=be.n(Be),Vn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Oe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Oe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Oe==null?void 0:Oe.substr(0,4))},In=be(95936);function Cn(Oe,ze,it){var vt=Ne.useRef({});return(!("value"in vt.current)||it(vt.current.condition,ze))&&(vt.current.value=Oe(),vt.current.condition=ze),vt.current.value}function Pn(Oe,ze){typeof Oe=="function"?Oe(ze):rt(Oe)==="object"&&Oe&&"current"in Oe&&(Oe.current=ze)}function oi(){for(var Oe=arguments.length,ze=new Array(Oe),it=0;it<Oe;it++)ze[it]=arguments[it];var vt=ze.filter(function(sn){return sn});return vt.length<=1?vt[0]:function(sn){ze.forEach(function(Ce){Pn(Ce,sn)})}}function mn(){for(var Oe=arguments.length,ze=new Array(Oe),it=0;it<Oe;it++)ze[it]=arguments[it];return Cn(function(){return oi.apply(void 0,ze)},ze,function(vt,sn){return vt.length===sn.length&&vt.every(function(Ce,ke){return Ce===sn[ke]})})}function bi(Oe){var ze,it,vt=isMemo(Oe)?Oe.type.type:Oe.type;return!(typeof vt=="function"&&!((ze=vt.prototype)!==null&&ze!==void 0&&ze.render)||typeof Oe=="function"&&!((it=Oe.prototype)!==null&&it!==void 0&&it.render))}var _i=function(ze){var it=ze.className,vt=ze.customizeIcon,sn=ze.customizeIconProps,Ce=ze.children,ke=ze.onMouseDown,_e=ze.onClick,Ye=typeof vt=="function"?vt(sn):vt;return Ne.createElement("span",{className:it,onMouseDown:function(_t){_t.preventDefault(),ke==null||ke(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:_e,"aria-hidden":!0},Ye!==void 0?Ye:Ne.createElement("span",{className:ut()(it.split(/\s+/).map(function(kt){return"".concat(kt,"-icon")}))},Ce))},Br=_i,Yi=function(ze,it,vt,sn,Ce){var ke=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,_e=arguments.length>6?arguments[6]:void 0,Ye=arguments.length>7?arguments[7]:void 0,kt=Ne.useMemo(function(){if(rt(sn)==="object")return sn.clearIcon;if(Ce)return Ce},[sn,Ce]),_t=Ne.useMemo(function(){return!!(!ke&&sn&&(vt.length||_e)&&!(Ye==="combobox"&&_e===""))},[sn,ke,vt.length,_e,Ye]);return{allowClear:_t,clearIcon:Ne.createElement(Br,{className:"".concat(ze,"-clear"),onMouseDown:it,customizeIcon:kt},"\xD7")}},ki=Ne.createContext(null);function Xr(){return Ne.useContext(ki)}function Ki(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ze=Ne.useState(!1),it=vn(ze,2),vt=it[0],sn=it[1],Ce=Ne.useRef(null),ke=function(){window.clearTimeout(Ce.current)};Ne.useEffect(function(){return ke},[]);var _e=function(kt,_t){ke(),Ce.current=window.setTimeout(function(){sn(kt),_t&&_t()},Oe)};return[vt,_e,ke]}function lr(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ze=Ne.useRef(null),it=Ne.useRef(null);Ne.useEffect(function(){return function(){window.clearTimeout(it.current)}},[]);function vt(sn){(sn||ze.current===null)&&(ze.current=sn),window.clearTimeout(it.current),it.current=window.setTimeout(function(){ze.current=null},Oe)}return[function(){return ze.current},vt]}function ar(Oe,ze,it,vt){var sn=Ne.useRef(null);sn.current={open:ze,triggerOpen:it,customizedTrigger:vt},Ne.useEffect(function(){function Ce(ke){var _e;if(!((_e=sn.current)!==null&&_e!==void 0&&_e.customizedTrigger)){var Ye=ke.target;Ye.shadowRoot&&ke.composed&&(Ye=ke.composedPath()[0]||Ye),sn.current.open&&Oe().filter(function(kt){return kt}).every(function(kt){return!kt.contains(Ye)&&kt!==Ye})&&sn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ce),function(){return window.removeEventListener("mousedown",Ce)}},[])}var kn={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(ze){var it=ze.keyCode;if(ze.altKey&&!ze.ctrlKey||ze.metaKey||it>=kn.F1&&it<=kn.F12)return!1;switch(it){case kn.ALT:case kn.CAPS_LOCK:case kn.CONTEXT_MENU:case kn.CTRL:case kn.DOWN:case kn.END:case kn.ESC:case kn.HOME:case kn.INSERT:case kn.LEFT:case kn.MAC_FF_META:case kn.META:case kn.NUMLOCK:case kn.NUM_CENTER:case kn.PAGE_DOWN:case kn.PAGE_UP:case kn.PAUSE:case kn.PRINT_SCREEN:case kn.RIGHT:case kn.SHIFT:case kn.UP:case kn.WIN_KEY:case kn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ze){if(ze>=kn.ZERO&&ze<=kn.NINE||ze>=kn.NUM_ZERO&&ze<=kn.NUM_MULTIPLY||ze>=kn.A&&ze<=kn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ze===0)return!0;switch(ze){case kn.SPACE:case kn.QUESTION_MARK:case kn.NUM_PLUS:case kn.NUM_MINUS:case kn.NUM_PERIOD:case kn.NUM_DIVISION:case kn.SEMICOLON:case kn.DASH:case kn.EQUALS:case kn.COMMA:case kn.PERIOD:case kn.SLASH:case kn.APOSTROPHE:case kn.SINGLE_QUOTE:case kn.OPEN_SQUARE_BRACKET:case kn.BACKSLASH:case kn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Bi=kn;function ea(Oe){return Oe&&![Bi.ESC,Bi.SHIFT,Bi.BACKSPACE,Bi.TAB,Bi.WIN_KEY,Bi.ALT,Bi.META,Bi.WIN_KEY_RIGHT,Bi.CTRL,Bi.SEMICOLON,Bi.EQUALS,Bi.CAPS_LOCK,Bi.CONTEXT_MENU,Bi.F1,Bi.F2,Bi.F3,Bi.F4,Bi.F5,Bi.F6,Bi.F7,Bi.F8,Bi.F9,Bi.F10,Bi.F11,Bi.F12].includes(Oe)}var Zn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Wr=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ra="".concat(Zn," ").concat(Wr).split(/[\s\n]+/),sa="aria-",Wa="data-";function ma(Oe,ze){return Oe.indexOf(ze)===0}function Ha(Oe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it;ze===!1?it={aria:!0,data:!0,attr:!0}:ze===!0?it={aria:!0}:it=Nt({},ze);var vt={};return Object.keys(Oe).forEach(function(sn){(it.aria&&(sn==="role"||ma(sn,sa))||it.data&&ma(sn,Wa)||it.attr&&ra.includes(sn))&&(vt[sn]=Oe[sn])}),vt}function da(){return da=Object.assign?Object.assign.bind():function(Oe){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze];for(var vt in it)Object.prototype.hasOwnProperty.call(it,vt)&&(Oe[vt]=it[vt])}return Oe},da.apply(this,arguments)}function la(Oe){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},la(Oe)}function No(Oe,ze){if(la(Oe)!=="object"||Oe===null)return Oe;var it=Oe[Symbol.toPrimitive];if(it!==void 0){var vt=it.call(Oe,ze||"default");if(la(vt)!=="object")return vt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ze==="string"?String:Number)(Oe)}function ni(Oe){var ze=No(Oe,"string");return la(ze)==="symbol"?ze:String(ze)}function Ee(Oe,ze,it){return ze=ni(ze),ze in Oe?Object.defineProperty(Oe,ze,{value:it,enumerable:!0,configurable:!0,writable:!0}):Oe[ze]=it,Oe}function pn(Oe,ze){var it=Object.keys(Oe);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Oe);ze&&(vt=vt.filter(function(sn){return Object.getOwnPropertyDescriptor(Oe,sn).enumerable})),it.push.apply(it,vt)}return it}function hn(Oe){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze]!=null?arguments[ze]:{};ze%2?pn(Object(it),!0).forEach(function(vt){Ee(Oe,vt,it[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Oe,Object.getOwnPropertyDescriptors(it)):pn(Object(it)).forEach(function(vt){Object.defineProperty(Oe,vt,Object.getOwnPropertyDescriptor(it,vt))})}return Oe}function ri(Oe){if(Array.isArray(Oe))return Oe}function Jn(Oe,ze){var it=Oe==null?null:typeof Symbol!="undefined"&&Oe[Symbol.iterator]||Oe["@@iterator"];if(it!=null){var vt,sn,Ce,ke,_e=[],Ye=!0,kt=!1;try{if(Ce=(it=it.call(Oe)).next,ze===0){if(Object(it)!==it)return;Ye=!1}else for(;!(Ye=(vt=Ce.call(it)).done)&&(_e.push(vt.value),_e.length!==ze);Ye=!0);}catch(_t){kt=!0,sn=_t}finally{try{if(!Ye&&it.return!=null&&(ke=it.return(),Object(ke)!==ke))return}finally{if(kt)throw sn}}return _e}}function Wn(Oe,ze){(ze==null||ze>Oe.length)&&(ze=Oe.length);for(var it=0,vt=new Array(ze);it<ze;it++)vt[it]=Oe[it];return vt}function nn(Oe,ze){if(Oe){if(typeof Oe=="string")return Wn(Oe,ze);var it=Object.prototype.toString.call(Oe).slice(8,-1);if(it==="Object"&&Oe.constructor&&(it=Oe.constructor.name),it==="Map"||it==="Set")return Array.from(Oe);if(it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it))return Wn(Oe,ze)}}function ii(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wt(Oe,ze){return ri(Oe)||Jn(Oe,ze)||nn(Oe,ze)||ii()}function Gt(Oe,ze){if(Oe==null)return{};var it={},vt=Object.keys(Oe),sn,Ce;for(Ce=0;Ce<vt.length;Ce++)sn=vt[Ce],!(ze.indexOf(sn)>=0)&&(it[sn]=Oe[sn]);return it}function Ft(Oe,ze){if(Oe==null)return{};var it=Gt(Oe,ze),vt,sn;if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(Oe);for(sn=0;sn<Ce.length;sn++)vt=Ce[sn],!(ze.indexOf(vt)>=0)&&Object.prototype.propertyIsEnumerable.call(Oe,vt)&&(it[vt]=Oe[vt])}return it}var un=be(48555);function Ti(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ri=Ti()?Ne.useLayoutEffect:Ne.useEffect,di=function(ze,it){var vt=Ne.useRef(!0);Ri(function(){return ze(vt.current)},it),Ri(function(){return vt.current=!1,function(){vt.current=!0}},[])},Yt=function(ze,it){di(function(vt){if(!vt)return ze()},it)},Hn=di,En=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fr=void 0;function si(Oe,ze){var it=Oe.prefixCls,vt=Oe.invalidate,sn=Oe.item,Ce=Oe.renderItem,ke=Oe.responsive,_e=Oe.responsiveDisabled,Ye=Oe.registerSize,kt=Oe.itemKey,_t=Oe.className,on=Oe.style,zn=Oe.children,yn=Oe.display,Fn=Oe.order,qn=Oe.component,$n=qn===void 0?"div":qn,Wi=Ft(Oe,En),xi=ke&&!yn;function li(br){Ye(kt,br)}Ne.useEffect(function(){return function(){li(null)}},[]);var Fi=Ce&&sn!==Fr?Ce(sn):zn,Zi;vt||(Zi={opacity:xi?0:1,height:xi?0:Fr,overflowY:xi?"hidden":Fr,order:ke?Fn:Fr,pointerEvents:xi?"none":Fr,position:xi?"absolute":Fr});var ur={};xi&&(ur["aria-hidden"]=!0);var to=Ne.createElement($n,da({className:ut()(!vt&&it,_t),style:hn(hn({},Zi),on)},ur,Wi,{ref:ze}),Fi);return ke&&(to=Ne.createElement(un.Z,{onResize:function(Sr){var wo=Sr.offsetWidth;li(wo)},disabled:_e},to)),to}var tn=Ne.forwardRef(si);tn.displayName="Item";var Vi=tn;function Hr(Oe){var ze=Ne.useRef();ze.current=Oe;var it=Ne.useCallback(function(){for(var vt,sn=arguments.length,Ce=new Array(sn),ke=0;ke<sn;ke++)Ce[ke]=arguments[ke];return(vt=ze.current)===null||vt===void 0?void 0:vt.call.apply(vt,[ze].concat(Ce))},[]);return it}var Or=be(73935),wn=function(ze){return+setTimeout(ze,16)},or=function(ze){return clearTimeout(ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wn=function(ze){return window.requestAnimationFrame(ze)},or=function(ze){return window.cancelAnimationFrame(ze)});var Xo=0,Na=new Map;function aa(Oe){Na.delete(Oe)}var hr=function(ze){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xo+=1;var vt=Xo;function sn(Ce){if(Ce===0)aa(vt),ze();else{var ke=wn(function(){sn(Ce-1)});Na.set(vt,ke)}}return sn(it),vt};hr.cancel=function(Oe){var ze=Na.get(Oe);return aa(ze),or(ze)};var Nr=hr;function io(Oe){if(typeof MessageChannel=="undefined")Nr(Oe);else{var ze=new MessageChannel;ze.port1.onmessage=function(){return Oe()},ze.port2.postMessage(void 0)}}function va(){var Oe=Ne.useRef(null),ze=function(vt){Oe.current||(Oe.current=[],io(function(){(0,Or.unstable_batchedUpdates)(function(){Oe.current.forEach(function(sn){sn()}),Oe.current=null})})),Oe.current.push(vt)};return ze}function Ho(Oe,ze){var it=Ne.useState(ze),vt=Wt(it,2),sn=vt[0],Ce=vt[1],ke=Hr(function(_e){Oe(function(){Ce(_e)})});return[sn,ke]}var vi=Ne.createContext(null),lo=["component"],al=["className"],el=["className"],Ns=function(ze,it){var vt=Ne.useContext(vi);if(!vt){var sn=ze.component,Ce=sn===void 0?"div":sn,ke=Ft(ze,lo);return Ne.createElement(Ce,da({},ke,{ref:it}))}var _e=vt.className,Ye=Ft(vt,al),kt=ze.className,_t=Ft(ze,el);return Ne.createElement(vi.Provider,{value:null},Ne.createElement(Vi,da({ref:it,className:ut()(_e,kt)},Ye,_t)))},ln=Ne.forwardRef(Ns);ln.displayName="RawItem";var Yo=ln,Va=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ao="responsive",ms="invalidate";function Ba(Oe){return"+ ".concat(Oe.length," ...")}function $a(Oe,ze){var it=Oe.prefixCls,vt=it===void 0?"rc-overflow":it,sn=Oe.data,Ce=sn===void 0?[]:sn,ke=Oe.renderItem,_e=Oe.renderRawItem,Ye=Oe.itemKey,kt=Oe.itemWidth,_t=kt===void 0?10:kt,on=Oe.ssr,zn=Oe.style,yn=Oe.className,Fn=Oe.maxCount,qn=Oe.renderRest,$n=Oe.renderRawRest,Wi=Oe.suffix,xi=Oe.component,li=xi===void 0?"div":xi,Fi=Oe.itemComponent,Zi=Oe.onVisibleChange,ur=Ft(Oe,Va),to=on==="full",br=va(),Sr=Ho(br,null),wo=Wt(Sr,2),Mi=wo[0],Jr=wo[1],mr=Mi||0,ao=Ho(br,new Map),po=Wt(ao,2),Ar=po[0],To=po[1],mo=Ho(br,0),zo=Wt(mo,2),Dr=zo[0],Co=zo[1],ca=Ho(br,0),Da=Wt(ca,2),ga=Da[0],Qr=Da[1],Jo=Ho(br,0),ua=Wt(Jo,2),Ea=ua[0],es=ua[1],ba=(0,Ne.useState)(null),_o=Wt(ba,2),yo=_o[0],ta=_o[1],Ka=(0,Ne.useState)(null),Vo=Wt(Ka,2),Zr=Vo[0],ho=Vo[1],fo=Ne.useMemo(function(){return Zr===null&&to?Number.MAX_SAFE_INTEGER:Zr||0},[Zr,Mi]),Mr=(0,Ne.useState)(!1),Gr=Wt(Mr,2),Do=Gr[0],ye=Gr[1],Ie="".concat(vt,"-item"),je=Math.max(Dr,ga),Ue=Fn===Ao,gt=Ce.length&&Ue,Ht=Fn===ms,$t=gt||typeof Fn=="number"&&Ce.length>Fn,an=(0,Ne.useMemo)(function(){var cr=Ce;return gt?Mi===null&&to?cr=Ce:cr=Ce.slice(0,Math.min(Ce.length,mr/_t)):typeof Fn=="number"&&(cr=Ce.slice(0,Fn)),cr},[Ce,_t,Mi,Fn,gt]),Tn=(0,Ne.useMemo)(function(){return gt?Ce.slice(fo+1):Ce.slice(an.length)},[Ce,an,gt,fo]),Un=(0,Ne.useCallback)(function(cr,Pr){var Ir;return typeof Ye=="function"?Ye(cr):(Ir=Ye&&(cr==null?void 0:cr[Ye]))!==null&&Ir!==void 0?Ir:Pr},[Ye]),Mn=(0,Ne.useCallback)(ke||function(cr){return cr},[ke]);function Ei(cr,Pr,Ir){Zr===cr&&(Pr===void 0||Pr===yo)||(ho(cr),Ir||(ye(cr<Ce.length-1),Zi==null||Zi(cr)),Pr!==void 0&&ta(Pr))}function Ui(cr,Pr){Jr(Pr.clientWidth)}function Ci(cr,Pr){To(function(Ir){var Oo=new Map(Ir);return Pr===null?Oo.delete(cr):Oo.set(cr,Pr),Oo})}function Li(cr,Pr){Qr(Pr),Co(ga)}function Di(cr,Pr){es(Pr)}function Ni(cr){return Ar.get(Un(an[cr],cr))}Hn(function(){if(mr&&typeof je=="number"&&an){var cr=Ea,Pr=an.length,Ir=Pr-1;if(!Pr){Ei(0,null);return}for(var Oo=0;Oo<Pr;Oo+=1){var Ur=Ni(Oo);if(to&&(Ur=Ur||0),Ur===void 0){Ei(Oo-1,void 0,!0);break}if(cr+=Ur,Ir===0&&cr<=mr||Oo===Ir-1&&cr+Ni(Ir)<=mr){Ei(Ir,null);break}else if(cr+je>mr){Ei(Oo-1,cr-Ur-Ea+ga);break}}Wi&&Ni(0)+Ea>mr&&ta(null)}},[mr,Ar,ga,Ea,Un,an]);var bn=Do&&!!Tn.length,Yn={};yo!==null&&gt&&(Yn={position:"absolute",left:yo,top:0});var ei={prefixCls:Ie,responsive:gt,component:Fi,invalidate:Ht},pi=_e?function(cr,Pr){var Ir=Un(cr,Pr);return Ne.createElement(vi.Provider,{key:Ir,value:hn(hn({},ei),{},{order:Pr,item:cr,itemKey:Ir,registerSize:Ci,display:Pr<=fo})},_e(cr,Pr))}:function(cr,Pr){var Ir=Un(cr,Pr);return Ne.createElement(Vi,da({},ei,{order:Pr,key:Ir,item:cr,renderItem:Mn,itemKey:Ir,registerSize:Ci,display:Pr<=fo}))},rr,$i={order:bn?fo:Number.MAX_SAFE_INTEGER,className:"".concat(Ie,"-rest"),registerSize:Li,display:bn};if($n)$n&&(rr=Ne.createElement(vi.Provider,{value:hn(hn({},ei),$i)},$n(Tn)));else{var sr=qn||Ba;rr=Ne.createElement(Vi,da({},ei,$i),typeof sr=="function"?sr(Tn):sr)}var At=Ne.createElement(li,da({className:ut()(!Ht&&vt,yn),style:zn,ref:ze},ur),an.map(pi),$t?rr:null,Wi&&Ne.createElement(Vi,da({},ei,{responsive:Ue,responsiveDisabled:!gt,order:fo,className:"".concat(Ie,"-suffix"),registerSize:Di,display:!0,style:Yn}),Wi));return Ue&&(At=Ne.createElement(un.Z,{onResize:Ui,disabled:!gt},At)),At}var Er=Ne.forwardRef($a);Er.displayName="Overflow",Er.Item=Yo,Er.RESPONSIVE=Ao,Er.INVALIDATE=ms;var uo=Er,So=uo,_n=function(ze,it){var vt,sn=ze.prefixCls,Ce=ze.id,ke=ze.inputElement,_e=ze.disabled,Ye=ze.tabIndex,kt=ze.autoFocus,_t=ze.autoComplete,on=ze.editable,zn=ze.activeDescendantId,yn=ze.value,Fn=ze.maxLength,qn=ze.onKeyDown,$n=ze.onMouseDown,Wi=ze.onChange,xi=ze.onPaste,li=ze.onCompositionStart,Fi=ze.onCompositionEnd,Zi=ze.onBlur,ur=ze.open,to=ze.attrs,br=ke||Ne.createElement("input",null),Sr=br,wo=Sr.ref,Mi=Sr.props,Jr=Mi.onKeyDown,mr=Mi.onChange,ao=Mi.onMouseDown,po=Mi.onCompositionStart,Ar=Mi.onCompositionEnd,To=Mi.onBlur,mo=Mi.style;return"maxLength"in br.props,br=Ne.cloneElement(br,Nt(Nt(Nt({type:"search"},Mi),{},{id:Ce,ref:oi(it,wo),disabled:_e,tabIndex:Ye,autoComplete:_t||"off",autoFocus:kt,className:ut()("".concat(sn,"-selection-search-input"),(vt=br)===null||vt===void 0||(vt=vt.props)===null||vt===void 0?void 0:vt.className),role:"combobox","aria-expanded":ur||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ce,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ce,"_list"),"aria-activedescendant":ur?zn:void 0},to),{},{value:on?yn:"",maxLength:Fn,readOnly:!on,unselectable:on?null:"on",style:Nt(Nt({},mo),{},{opacity:on?null:0}),onKeyDown:function(Dr){qn(Dr),Jr&&Jr(Dr)},onMouseDown:function(Dr){$n(Dr),ao&&ao(Dr)},onChange:function(Dr){Wi(Dr),mr&&mr(Dr)},onCompositionStart:function(Dr){li(Dr),po&&po(Dr)},onCompositionEnd:function(Dr){Fi(Dr),Ar&&Ar(Dr)},onPaste:xi,onBlur:function(Dr){Zi(Dr),To&&To(Dr)}})),br},ka=Ne.forwardRef(_n),An=ka;function Po(Oe){return Array.isArray(Oe)?Oe:Oe!==void 0?[Oe]:[]}var Ws=typeof window!="undefined"&&window.document&&window.document.documentElement,ds=Ws;function kl(Oe){return Oe!=null}function Ss(Oe){return!Oe&&Oe!==0}function Ua(Oe){return["string","number"].includes(rt(Oe))}function us(Oe){var ze=void 0;return Oe&&(Ua(Oe.title)?ze=Oe.title.toString():Ua(Oe.label)&&(ze=Oe.label.toString())),ze}function tl(Oe,ze){ds?Ne.useLayoutEffect(Oe,ze):Ne.useEffect(Oe,ze)}function ts(Oe){var ze;return(ze=Oe.key)!==null&&ze!==void 0?ze:Oe.value}var wr=function(ze){ze.preventDefault(),ze.stopPropagation()},at=function(ze){var it=ze.id,vt=ze.prefixCls,sn=ze.values,Ce=ze.open,ke=ze.searchValue,_e=ze.autoClearSearchValue,Ye=ze.inputRef,kt=ze.placeholder,_t=ze.disabled,on=ze.mode,zn=ze.showSearch,yn=ze.autoFocus,Fn=ze.autoComplete,qn=ze.activeDescendantId,$n=ze.tabIndex,Wi=ze.removeIcon,xi=ze.maxTagCount,li=ze.maxTagTextLength,Fi=ze.maxTagPlaceholder,Zi=Fi===void 0?function(Ka){return"+ ".concat(Ka.length," ...")}:Fi,ur=ze.tagRender,to=ze.onToggleOpen,br=ze.onRemove,Sr=ze.onInputChange,wo=ze.onInputPaste,Mi=ze.onInputKeyDown,Jr=ze.onInputMouseDown,mr=ze.onInputCompositionStart,ao=ze.onInputCompositionEnd,po=ze.onInputBlur,Ar=Ne.useRef(null),To=(0,Ne.useState)(0),mo=vn(To,2),zo=mo[0],Dr=mo[1],Co=(0,Ne.useState)(!1),ca=vn(Co,2),Da=ca[0],ga=ca[1],Qr="".concat(vt,"-selection"),Jo=Ce||on==="multiple"&&_e===!1||on==="tags"?ke:"",ua=on==="tags"||on==="multiple"&&_e===!1||zn&&(Ce||Da);tl(function(){Dr(Ar.current.scrollWidth)},[Jo]);var Ea=function(Vo,Zr,ho,fo,Mr){return Ne.createElement("span",{title:us(Vo),className:ut()("".concat(Qr,"-item"),yt({},"".concat(Qr,"-item-disabled"),ho))},Ne.createElement("span",{className:"".concat(Qr,"-item-content")},Zr),fo&&Ne.createElement(Br,{className:"".concat(Qr,"-item-remove"),onMouseDown:wr,onClick:Mr,customizeIcon:Wi},"\xD7"))},es=function(Vo,Zr,ho,fo,Mr,Gr){var Do=function(Ie){wr(Ie),to(!Ce)};return Ne.createElement("span",{onMouseDown:Do},ur({label:Zr,value:Vo,disabled:ho,closable:fo,onClose:Mr,isMaxTag:!!Gr}))},ba=function(Vo){var Zr=Vo.disabled,ho=Vo.label,fo=Vo.value,Mr=!_t&&!Zr,Gr=ho;if(typeof li=="number"&&(typeof ho=="string"||typeof ho=="number")){var Do=String(Gr);Do.length>li&&(Gr="".concat(Do.slice(0,li),"..."))}var ye=function(je){je&&je.stopPropagation(),br(Vo)};return typeof ur=="function"?es(fo,Gr,Zr,Mr,ye):Ea(Vo,Gr,Zr,Mr,ye)},_o=function(Vo){if(!sn.length)return null;var Zr=typeof Zi=="function"?Zi(Vo):Zi;return typeof ur=="function"?es(void 0,Zr,!1,!1,void 0,!0):Ea({title:Zr},Zr,!1)},yo=Ne.createElement("div",{className:"".concat(Qr,"-search"),style:{width:zo},onFocus:function(){ga(!0)},onBlur:function(){ga(!1)}},Ne.createElement(An,{ref:Ye,open:Ce,prefixCls:vt,id:it,inputElement:null,disabled:_t,autoFocus:yn,autoComplete:Fn,editable:ua,activeDescendantId:qn,value:Jo,onKeyDown:Mi,onMouseDown:Jr,onChange:Sr,onPaste:wo,onCompositionStart:mr,onCompositionEnd:ao,onBlur:po,tabIndex:$n,attrs:Ha(ze,!0)}),Ne.createElement("span",{ref:Ar,className:"".concat(Qr,"-search-mirror"),"aria-hidden":!0},Jo,"\xA0")),ta=Ne.createElement(So,{prefixCls:"".concat(Qr,"-overflow"),data:sn,renderItem:ba,renderRest:_o,suffix:yo,itemKey:ts,maxCount:xi});return Ne.createElement("span",{className:"".concat(Qr,"-wrap")},ta,!sn.length&&!Jo&&Ne.createElement("span",{className:"".concat(Qr,"-placeholder")},kt))},St=at,zt=function(ze){var it=ze.inputElement,vt=ze.prefixCls,sn=ze.id,Ce=ze.inputRef,ke=ze.disabled,_e=ze.autoFocus,Ye=ze.autoComplete,kt=ze.activeDescendantId,_t=ze.mode,on=ze.open,zn=ze.values,yn=ze.placeholder,Fn=ze.tabIndex,qn=ze.showSearch,$n=ze.searchValue,Wi=ze.activeValue,xi=ze.maxLength,li=ze.onInputKeyDown,Fi=ze.onInputMouseDown,Zi=ze.onInputChange,ur=ze.onInputPaste,to=ze.onInputCompositionStart,br=ze.onInputCompositionEnd,Sr=ze.onInputBlur,wo=ze.title,Mi=Ne.useState(!1),Jr=vn(Mi,2),mr=Jr[0],ao=Jr[1],po=_t==="combobox",Ar=po||qn,To=zn[0],mo=$n||"";po&&Wi&&!mr&&(mo=Wi),Ne.useEffect(function(){po&&ao(!1)},[po,Wi]);var zo=_t!=="combobox"&&!on&&!qn?!1:!!mo,Dr=wo===void 0?us(To):wo,Co=Ne.useMemo(function(){return To?null:Ne.createElement("span",{className:"".concat(vt,"-selection-placeholder"),style:zo?{visibility:"hidden"}:void 0},yn)},[To,zo,yn,vt]);return Ne.createElement("span",{className:"".concat(vt,"-selection-wrap")},Ne.createElement("span",{className:"".concat(vt,"-selection-search")},Ne.createElement(An,{ref:Ce,prefixCls:vt,id:sn,open:on,inputElement:it,disabled:ke,autoFocus:_e,autoComplete:Ye,editable:Ar,activeDescendantId:kt,value:mo,onKeyDown:li,onMouseDown:Fi,onChange:function(Da){ao(!0),Zi(Da)},onPaste:ur,onCompositionStart:to,onCompositionEnd:br,onBlur:Sr,tabIndex:Fn,attrs:Ha(ze,!0),maxLength:po?xi:void 0})),!po&&To?Ne.createElement("span",{className:"".concat(vt,"-selection-item"),title:Dr,style:zo?{visibility:"hidden"}:void 0},To.label):null,Co)},gn=zt,Kn=function(ze,it){var vt=(0,Ne.useRef)(null),sn=(0,Ne.useRef)(!1),Ce=ze.prefixCls,ke=ze.open,_e=ze.mode,Ye=ze.showSearch,kt=ze.tokenWithEnter,_t=ze.disabled,on=ze.prefix,zn=ze.autoClearSearchValue,yn=ze.onSearch,Fn=ze.onSearchSubmit,qn=ze.onToggleOpen,$n=ze.onInputKeyDown,Wi=ze.onInputBlur,xi=ze.domRef;Ne.useImperativeHandle(it,function(){return{focus:function(Dr){vt.current.focus(Dr)},blur:function(){vt.current.blur()}}});var li=lr(0),Fi=vn(li,2),Zi=Fi[0],ur=Fi[1],to=function(Dr){var Co=Dr.which,ca=vt.current instanceof HTMLTextAreaElement;!ca&&ke&&(Co===Bi.UP||Co===Bi.DOWN)&&Dr.preventDefault(),$n&&$n(Dr),Co===Bi.ENTER&&_e==="tags"&&!sn.current&&!ke&&(Fn==null||Fn(Dr.target.value)),!(ca&&!ke&&~[Bi.UP,Bi.DOWN,Bi.LEFT,Bi.RIGHT].indexOf(Co))&&ea(Co)&&qn(!0)},br=function(){ur(!0)},Sr=(0,Ne.useRef)(null),wo=function(Dr){yn(Dr,!0,sn.current)!==!1&&qn(!0)},Mi=function(){sn.current=!0},Jr=function(Dr){sn.current=!1,_e!=="combobox"&&wo(Dr.target.value)},mr=function(Dr){var Co=Dr.target.value;if(kt&&Sr.current&&/[\r\n]/.test(Sr.current)){var ca=Sr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Co=Co.replace(ca,Sr.current)}Sr.current=null,wo(Co)},ao=function(Dr){var Co=Dr.clipboardData,ca=Co==null?void 0:Co.getData("text");Sr.current=ca||""},po=function(Dr){var Co=Dr.target;if(Co!==vt.current){var ca=document.body.style.msTouchAction!==void 0;ca?setTimeout(function(){vt.current.focus()}):vt.current.focus()}},Ar=function(Dr){var Co=Zi();Dr.target!==vt.current&&!Co&&!(_e==="combobox"&&_t)&&Dr.preventDefault(),(_e!=="combobox"&&(!Ye||!Co)||!ke)&&(ke&&zn!==!1&&yn("",!0,!1),qn())},To={inputRef:vt,onInputKeyDown:to,onInputMouseDown:br,onInputChange:mr,onInputPaste:ao,onInputCompositionStart:Mi,onInputCompositionEnd:Jr,onInputBlur:Wi},mo=_e==="multiple"||_e==="tags"?Ne.createElement(St,me({},ze,To)):Ne.createElement(gn,me({},ze,To));return Ne.createElement("div",{ref:xi,className:"".concat(Ce,"-selector"),onClick:po,onMouseDown:Ar},on&&Ne.createElement("div",{className:"".concat(Ce,"-prefix")},on),mo)},Ii=Ne.forwardRef(Kn),Jt=Ii,Qn=be(98280),Qi=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],wi=function(ze){var it=ze===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:it,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:it,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:it,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:it,adjustY:1},htmlRegion:"scroll"}}},nr=function(ze,it){var vt=ze.prefixCls,sn=ze.disabled,Ce=ze.visible,ke=ze.children,_e=ze.popupElement,Ye=ze.animation,kt=ze.transitionName,_t=ze.dropdownStyle,on=ze.dropdownClassName,zn=ze.direction,yn=zn===void 0?"ltr":zn,Fn=ze.placement,qn=ze.builtinPlacements,$n=ze.dropdownMatchSelectWidth,Wi=ze.dropdownRender,xi=ze.dropdownAlign,li=ze.getPopupContainer,Fi=ze.empty,Zi=ze.getTriggerDOMNode,ur=ze.onPopupVisibleChange,to=ze.onPopupMouseEnter,br=Ge(ze,Qi),Sr="".concat(vt,"-dropdown"),wo=_e;Wi&&(wo=Wi(_e));var Mi=Ne.useMemo(function(){return qn||wi($n)},[qn,$n]),Jr=Ye?"".concat(Sr,"-").concat(Ye):kt,mr=typeof $n=="number",ao=Ne.useMemo(function(){return mr?null:$n===!1?"minWidth":"width"},[$n,mr]),po=_t;mr&&(po=Nt(Nt({},po),{},{width:$n}));var Ar=Ne.useRef(null);return Ne.useImperativeHandle(it,function(){return{getPopupElement:function(){var mo;return(mo=Ar.current)===null||mo===void 0?void 0:mo.popupElement}}}),Ne.createElement(Qn.Z,me({},br,{showAction:ur?["click"]:[],hideAction:ur?["click"]:[],popupPlacement:Fn||(yn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Mi,prefixCls:Sr,popupTransitionName:Jr,popup:Ne.createElement("div",{onMouseEnter:to},wo),ref:Ar,stretch:ao,popupAlign:xi,popupVisible:Ce,getPopupContainer:li,popupClassName:ut()(on,yt({},"".concat(Sr,"-empty"),Fi)),popupStyle:po,getTriggerDOMNode:Zi,onPopupVisibleChange:ur}),ke)},Xi=Ne.forwardRef(nr),Si=Xi;function pr(Oe){return Bn(Oe)||Ke(Oe)||qe(Oe)||Qt()}function fn(Oe,ze){var it=Oe.key,vt;return"value"in Oe&&(vt=Oe.value),it!=null?it:vt!==void 0?vt:"rc-index-key-".concat(ze)}function eo(Oe){return typeof Oe!="undefined"&&!Number.isNaN(Oe)}function so(Oe,ze){var it=Oe||{},vt=it.label,sn=it.value,Ce=it.options,ke=it.groupLabel,_e=vt||(ze?"children":"label");return{label:_e,value:sn||"value",options:Ce||"options",groupLabel:ke||_e}}function ya(Oe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=ze.fieldNames,vt=ze.childrenAsData,sn=[],Ce=so(it,!1),ke=Ce.label,_e=Ce.value,Ye=Ce.options,kt=Ce.groupLabel;function _t(on,zn){Array.isArray(on)&&on.forEach(function(yn){if(zn||!(Ye in yn)){var Fn=yn[_e];sn.push({key:fn(yn,sn.length),groupOption:zn,data:yn,label:yn[ke],value:Fn})}else{var qn=yn[kt];qn===void 0&&vt&&(qn=yn.label),sn.push({key:fn(yn,sn.length),group:!0,data:yn,label:qn}),_t(yn[Ye],!0)}})}return _t(Oe,!1),sn}function fa(Oe){var ze=Nt({},Oe);return"props"in ze||Object.defineProperty(ze,"props",{get:function(){return $e(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ze}}),ze}var Ia=function(ze,it,vt){if(!it||!it.length)return null;var sn=!1,Ce=function _e(Ye,kt){var _t=pr(kt),on=_t[0],zn=_t.slice(1);if(!on)return[Ye];var yn=Ye.split(on);return sn=sn||yn.length>1,yn.reduce(function(Fn,qn){return[].concat(st(Fn),st(_e(qn,zn)))},[]).filter(Boolean)},ke=Ce(ze,it);return sn?typeof vt!="undefined"?ke.slice(0,vt):ke:null},ns=Ne.createContext(null),Us=ns;function Ds(Oe){var ze=Oe.visible,it=Oe.values;if(!ze)return null;var vt=50;return Ne.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(it.slice(0,vt).map(function(sn){var Ce=sn.label,ke=sn.value;return["number","string"].includes(rt(Ce))?Ce:ke}).join(", ")),it.length>vt?", ...":null)}var fl=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Hs=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],cn=function(ze){return ze==="tags"||ze==="multiple"},nl=Ne.forwardRef(function(Oe,ze){var it,vt=Oe.id,sn=Oe.prefixCls,Ce=Oe.className,ke=Oe.showSearch,_e=Oe.tagRender,Ye=Oe.direction,kt=Oe.omitDomProps,_t=Oe.displayValues,on=Oe.onDisplayValuesChange,zn=Oe.emptyOptions,yn=Oe.notFoundContent,Fn=yn===void 0?"Not Found":yn,qn=Oe.onClear,$n=Oe.mode,Wi=Oe.disabled,xi=Oe.loading,li=Oe.getInputElement,Fi=Oe.getRawInputElement,Zi=Oe.open,ur=Oe.defaultOpen,to=Oe.onDropdownVisibleChange,br=Oe.activeValue,Sr=Oe.onActiveValueChange,wo=Oe.activeDescendantId,Mi=Oe.searchValue,Jr=Oe.autoClearSearchValue,mr=Oe.onSearch,ao=Oe.onSearchSplit,po=Oe.tokenSeparators,Ar=Oe.allowClear,To=Oe.prefix,mo=Oe.suffixIcon,zo=Oe.clearIcon,Dr=Oe.OptionList,Co=Oe.animation,ca=Oe.transitionName,Da=Oe.dropdownStyle,ga=Oe.dropdownClassName,Qr=Oe.dropdownMatchSelectWidth,Jo=Oe.dropdownRender,ua=Oe.dropdownAlign,Ea=Oe.placement,es=Oe.builtinPlacements,ba=Oe.getPopupContainer,_o=Oe.showAction,yo=_o===void 0?[]:_o,ta=Oe.onFocus,Ka=Oe.onBlur,Vo=Oe.onKeyUp,Zr=Oe.onKeyDown,ho=Oe.onMouseDown,fo=Ge(Oe,fl),Mr=cn($n),Gr=(ke!==void 0?ke:Mr)||$n==="combobox",Do=Nt({},fo);Hs.forEach(function(Za){delete Do[Za]}),kt==null||kt.forEach(function(Za){delete Do[Za]});var ye=Ne.useState(!1),Ie=vn(ye,2),je=Ie[0],Ue=Ie[1];Ne.useEffect(function(){Ue(Vn())},[]);var gt=Ne.useRef(null),Ht=Ne.useRef(null),$t=Ne.useRef(null),an=Ne.useRef(null),Tn=Ne.useRef(null),Un=Ne.useRef(!1),Mn=Ki(),Ei=vn(Mn,3),Ui=Ei[0],Ci=Ei[1],Li=Ei[2];Ne.useImperativeHandle(ze,function(){var Za,Go;return{focus:(Za=an.current)===null||Za===void 0?void 0:Za.focus,blur:(Go=an.current)===null||Go===void 0?void 0:Go.blur,scrollTo:function(pa){var Lo;return(Lo=Tn.current)===null||Lo===void 0?void 0:Lo.scrollTo(pa)},nativeElement:gt.current||Ht.current}});var Di=Ne.useMemo(function(){var Za;if($n!=="combobox")return Mi;var Go=(Za=_t[0])===null||Za===void 0?void 0:Za.value;return typeof Go=="string"||typeof Go=="number"?String(Go):""},[Mi,$n,_t]),Ni=$n==="combobox"&&typeof li=="function"&&li()||null,bn=typeof Fi=="function"&&Fi(),Yn=mn(Ht,bn==null||(it=bn.props)===null||it===void 0?void 0:it.ref),ei=Ne.useState(!1),pi=vn(ei,2),rr=pi[0],$i=pi[1];ai(function(){$i(!0)},[]);var sr=Ct(!1,{defaultValue:ur,value:Zi}),At=vn(sr,2),cr=At[0],Pr=At[1],Ir=rr?cr:!1,Oo=!Fn&&zn;(Wi||Oo&&Ir&&$n==="combobox")&&(Ir=!1);var Ur=Oo?!1:Ir,Pi=Ne.useCallback(function(Za){var Go=Za!==void 0?Za:!Ir;Wi||(Pr(Go),Ir!==Go&&(to==null||to(Go)))},[Wi,Ir,Pr,to]),qi=Ne.useMemo(function(){return(po||[]).some(function(Za){return[`
`,`\r
`].includes(Za)})},[po]),Hi=Ne.useContext(Us)||{},Lr=Hi.maxCount,Eo=Hi.rawValues,vr=function(Go,yl,pa){if(!(Mr&&eo(Lr)&&(Eo==null?void 0:Eo.size)>=Lr)){var Lo=!0,Uo=Go;Sr==null||Sr(null);var jr=Ia(Go,po,eo(Lr)?Lr-Eo.size:void 0),Wo=pa?null:jr;return $n!=="combobox"&&Wo&&(Uo="",ao==null||ao(Wo),Pi(!1),Lo=!1),mr&&Di!==Uo&&mr(Uo,{source:yl?"typing":"effect"}),Lo}},qr=function(Go){!Go||!Go.trim()||mr(Go,{source:"submit"})};Ne.useEffect(function(){!Ir&&!Mr&&$n!=="combobox"&&vr("",!1,!1)},[Ir]),Ne.useEffect(function(){cr&&Wi&&Pr(!1),Wi&&!Un.current&&Ci(!1)},[Wi]);var xr=lr(),fr=vn(xr,2),_r=fr[0],Kr=fr[1],Aa=Ne.useRef(!1),Ya=function(Go){var yl=_r(),pa=Go.key,Lo=pa==="Enter";if(Lo&&($n!=="combobox"&&Go.preventDefault(),Ir||Pi(!0)),Kr(!!Di),pa==="Backspace"&&!yl&&Mr&&!Di&&_t.length){for(var Uo=st(_t),jr=null,Wo=Uo.length-1;Wo>=0;Wo-=1){var os=Uo[Wo];if(!os.disabled){Uo.splice(Wo,1),jr=os;break}}jr&&on(Uo,{type:"remove",values:[jr]})}for(var vs=arguments.length,Ps=new Array(vs>1?vs-1:0),bl=1;bl<vs;bl++)Ps[bl-1]=arguments[bl];if(Ir&&(!Lo||!Aa.current)){var ul;Lo&&(Aa.current=!0),(ul=Tn.current)===null||ul===void 0||ul.onKeyDown.apply(ul,[Go].concat(Ps))}Zr==null||Zr.apply(void 0,[Go].concat(Ps))},bo=function(Go){for(var yl=arguments.length,pa=new Array(yl>1?yl-1:0),Lo=1;Lo<yl;Lo++)pa[Lo-1]=arguments[Lo];if(Ir){var Uo;(Uo=Tn.current)===null||Uo===void 0||Uo.onKeyUp.apply(Uo,[Go].concat(pa))}Go.key==="Enter"&&(Aa.current=!1),Vo==null||Vo.apply(void 0,[Go].concat(pa))},co=function(Go){var yl=_t.filter(function(pa){return pa!==Go});on(yl,{type:"remove",values:[Go]})},vo=function(){Aa.current=!1},Qo=Ne.useRef(!1),xa=function(){Ci(!0),Wi||(ta&&!Qo.current&&ta.apply(void 0,arguments),yo.includes("focus")&&Pi(!0)),Qo.current=!0},Oa=function(){Un.current=!0,Ci(!1,function(){Qo.current=!1,Un.current=!1,Pi(!1)}),!Wi&&(Di&&($n==="tags"?mr(Di,{source:"submit"}):$n==="multiple"&&mr("",{source:"blur"})),Ka&&Ka.apply(void 0,arguments))},no=[];Ne.useEffect(function(){return function(){no.forEach(function(Za){return clearTimeout(Za)}),no.splice(0,no.length)}},[]);var Rr=function(Go){var yl,pa=Go.target,Lo=(yl=$t.current)===null||yl===void 0?void 0:yl.getPopupElement();if(Lo&&Lo.contains(pa)){var Uo=setTimeout(function(){var vs=no.indexOf(Uo);if(vs!==-1&&no.splice(vs,1),Li(),!je&&!Lo.contains(document.activeElement)){var Ps;(Ps=an.current)===null||Ps===void 0||Ps.focus()}});no.push(Uo)}for(var jr=arguments.length,Wo=new Array(jr>1?jr-1:0),os=1;os<jr;os++)Wo[os-1]=arguments[os];ho==null||ho.apply(void 0,[Go].concat(Wo))},wa=Ne.useState({}),Pa=vn(wa,2),gs=Pa[1];function Fa(){gs({})}var Ja;bn&&(Ja=function(Go){Pi(Go)}),ar(function(){var Za;return[gt.current,(Za=$t.current)===null||Za===void 0?void 0:Za.getPopupElement()]},Ur,Pi,!!bn);var Es=Ne.useMemo(function(){return Nt(Nt({},Oe),{},{notFoundContent:Fn,open:Ir,triggerOpen:Ur,id:vt,showSearch:Gr,multiple:Mr,toggleOpen:Pi})},[Oe,Fn,Ur,Ir,vt,Gr,Mr,Pi]),Ma=!!mo||xi,Qa;Ma&&(Qa=Ne.createElement(Br,{className:ut()("".concat(sn,"-arrow"),yt({},"".concat(sn,"-arrow-loading"),xi)),customizeIcon:mo,customizeIconProps:{loading:xi,searchValue:Di,open:Ir,focused:Ui,showSearch:Gr}}));var Ks=function(){var Go;qn==null||qn(),(Go=an.current)===null||Go===void 0||Go.focus(),on([],{type:"clear",values:_t}),vr("",!1,!1)},Xs=Yi(sn,Ks,_t,Ar,zo,Wi,Di,$n),vl=Xs.allowClear,hs=Xs.clearIcon,Yl=Ne.createElement(Dr,{ref:Tn}),Js=ut()(sn,Ce,yt(yt(yt(yt(yt(yt(yt(yt(yt(yt({},"".concat(sn,"-focused"),Ui),"".concat(sn,"-multiple"),Mr),"".concat(sn,"-single"),!Mr),"".concat(sn,"-allow-clear"),Ar),"".concat(sn,"-show-arrow"),Ma),"".concat(sn,"-disabled"),Wi),"".concat(sn,"-loading"),xi),"".concat(sn,"-open"),Ir),"".concat(sn,"-customize-input"),Ni),"".concat(sn,"-show-search"),Gr)),ws=Ne.createElement(Si,{ref:$t,disabled:Wi,prefixCls:sn,visible:Ur,popupElement:Yl,animation:Co,transitionName:ca,dropdownStyle:Da,dropdownClassName:ga,direction:Ye,dropdownMatchSelectWidth:Qr,dropdownRender:Jo,dropdownAlign:ua,placement:Ea,builtinPlacements:es,getPopupContainer:ba,empty:zn,getTriggerDOMNode:function(Go){return Ht.current||Go},onPopupVisibleChange:Ja,onPopupMouseEnter:Fa},bn?Ne.cloneElement(bn,{ref:Yn}):Ne.createElement(Jt,me({},Oe,{domRef:Ht,prefixCls:sn,inputElement:Ni,ref:an,id:vt,prefix:To,showSearch:Gr,autoClearSearchValue:Jr,mode:$n,activeDescendantId:wo,tagRender:_e,values:_t,open:Ir,onToggleOpen:Pi,activeValue:br,searchValue:Di,onSearch:vr,onSearchSubmit:qr,onRemove:co,tokenWithEnter:qi,onInputBlur:vo}))),bs;return bn?bs=ws:bs=Ne.createElement("div",me({className:Js},Do,{ref:gt,onMouseDown:Rr,onKeyDown:Ya,onKeyUp:bo,onFocus:xa,onBlur:Oa}),Ne.createElement(Ds,{visible:Ui&&!Ir,values:_t}),ws,Qa,vl&&hs),Ne.createElement(ki.Provider,{value:Es},bs)}),dl=nl,gl=function(){return null};gl.isSelectOptGroup=!0;var Ys=gl,Ul=function(){return null};Ul.isSelectOption=!0;var hu=Ul;function fc(Oe,ze){var it=Nt({},Oe);return Array.isArray(ze)&&ze.forEach(function(vt){delete it[vt]}),it}var _s=be(73299);function il(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ra=["disabled","title","children","style","className"];function Xa(Oe){return typeof Oe=="string"||typeof Oe=="number"}var Is=function(ze,it){var vt=Xr(),sn=vt.prefixCls,Ce=vt.id,ke=vt.open,_e=vt.multiple,Ye=vt.mode,kt=vt.searchValue,_t=vt.toggleOpen,on=vt.notFoundContent,zn=vt.onPopupScroll,yn=Ne.useContext(Us),Fn=yn.maxCount,qn=yn.flattenOptions,$n=yn.onActiveValue,Wi=yn.defaultActiveFirstOption,xi=yn.onSelect,li=yn.menuItemSelectedIcon,Fi=yn.rawValues,Zi=yn.fieldNames,ur=yn.virtual,to=yn.direction,br=yn.listHeight,Sr=yn.listItemHeight,wo=yn.optionRender,Mi="".concat(sn,"-item"),Jr=Cn(function(){return qn},[ke,qn],function(_o,yo){return yo[0]&&_o[1]!==yo[1]}),mr=Ne.useRef(null),ao=Ne.useMemo(function(){return _e&&eo(Fn)&&(Fi==null?void 0:Fi.size)>=Fn},[_e,Fn,Fi==null?void 0:Fi.size]),po=function(yo){yo.preventDefault()},Ar=function(yo){var ta;(ta=mr.current)===null||ta===void 0||ta.scrollTo(typeof yo=="number"?{index:yo}:yo)},To=Ne.useCallback(function(_o){return Ye==="combobox"?!1:Fi.has(_o)},[Ye,st(Fi).toString(),Fi.size]),mo=function(yo){for(var ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ka=Jr.length,Vo=0;Vo<Ka;Vo+=1){var Zr=(yo+Vo*ta+Ka)%Ka,ho=Jr[Zr]||{},fo=ho.group,Mr=ho.data;if(!fo&&!(Mr!=null&&Mr.disabled)&&(To(Mr.value)||!ao))return Zr}return-1},zo=Ne.useState(function(){return mo(0)}),Dr=vn(zo,2),Co=Dr[0],ca=Dr[1],Da=function(yo){var ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ca(yo);var Ka={source:ta?"keyboard":"mouse"},Vo=Jr[yo];if(!Vo){$n(null,-1,Ka);return}$n(Vo.value,yo,Ka)};(0,Ne.useEffect)(function(){Da(Wi!==!1?mo(0):-1)},[Jr.length,kt]);var ga=Ne.useCallback(function(_o){return Ye==="combobox"?String(_o).toLowerCase()===kt.toLowerCase():Fi.has(_o)},[Ye,kt,st(Fi).toString(),Fi.size]);(0,Ne.useEffect)(function(){var _o=setTimeout(function(){if(!_e&&ke&&Fi.size===1){var ta=Array.from(Fi)[0],Ka=Jr.findIndex(function(Vo){var Zr=Vo.data;return Zr.value===ta});Ka!==-1&&(Da(Ka),Ar(Ka))}});if(ke){var yo;(yo=mr.current)===null||yo===void 0||yo.scrollTo(void 0)}return function(){return clearTimeout(_o)}},[ke,kt]);var Qr=function(yo){yo!==void 0&&xi(yo,{selected:!Fi.has(yo)}),_e||_t(!1)};if(Ne.useImperativeHandle(it,function(){return{onKeyDown:function(yo){var ta=yo.which,Ka=yo.ctrlKey;switch(ta){case Bi.N:case Bi.P:case Bi.UP:case Bi.DOWN:{var Vo=0;if(ta===Bi.UP?Vo=-1:ta===Bi.DOWN?Vo=1:il()&&Ka&&(ta===Bi.N?Vo=1:ta===Bi.P&&(Vo=-1)),Vo!==0){var Zr=mo(Co+Vo,Vo);Ar(Zr),Da(Zr,!0)}break}case Bi.TAB:case Bi.ENTER:{var ho,fo=Jr[Co];fo&&!(fo!=null&&(ho=fo.data)!==null&&ho!==void 0&&ho.disabled)&&!ao?Qr(fo.value):Qr(void 0),ke&&yo.preventDefault();break}case Bi.ESC:_t(!1),ke&&yo.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yo){Ar(yo)}}}),Jr.length===0)return Ne.createElement("div",{role:"listbox",id:"".concat(Ce,"_list"),className:"".concat(Mi,"-empty"),onMouseDown:po},on);var Jo=Object.keys(Zi).map(function(_o){return Zi[_o]}),ua=function(yo){return yo.label};function Ea(_o,yo){var ta=_o.group;return{role:ta?"presentation":"option",id:"".concat(Ce,"_list_").concat(yo)}}var es=function(yo){var ta=Jr[yo];if(!ta)return null;var Ka=ta.data||{},Vo=Ka.value,Zr=ta.group,ho=Ha(Ka,!0),fo=ua(ta);return ta?Ne.createElement("div",me({"aria-label":typeof fo=="string"&&!Zr?fo:null},ho,{key:yo},Ea(ta,yo),{"aria-selected":ga(Vo)}),Vo):null},ba={role:"listbox",id:"".concat(Ce,"_list")};return Ne.createElement(Ne.Fragment,null,ur&&Ne.createElement("div",me({},ba,{style:{height:0,width:0,overflow:"hidden"}}),es(Co-1),es(Co),es(Co+1)),Ne.createElement(_s.Z,{itemKey:"key",ref:mr,data:Jr,height:br,itemHeight:Sr,fullHeight:!1,onMouseDown:po,onScroll:zn,virtual:ur,direction:to,innerProps:ur?null:ba},function(_o,yo){var ta=_o.group,Ka=_o.groupOption,Vo=_o.data,Zr=_o.label,ho=_o.value,fo=Vo.key;if(ta){var Mr,Gr=(Mr=Vo.title)!==null&&Mr!==void 0?Mr:Xa(Zr)?Zr.toString():void 0;return Ne.createElement("div",{className:ut()(Mi,"".concat(Mi,"-group"),Vo.className),title:Gr},Zr!==void 0?Zr:fo)}var Do=Vo.disabled,ye=Vo.title,Ie=Vo.children,je=Vo.style,Ue=Vo.className,gt=Ge(Vo,Ra),Ht=fc(gt,Jo),$t=To(ho),an=Do||!$t&&ao,Tn="".concat(Mi,"-option"),Un=ut()(Mi,Tn,Ue,yt(yt(yt(yt({},"".concat(Tn,"-grouped"),Ka),"".concat(Tn,"-active"),Co===yo&&!an),"".concat(Tn,"-disabled"),an),"".concat(Tn,"-selected"),$t)),Mn=ua(_o),Ei=!li||typeof li=="function"||$t,Ui=typeof Mn=="number"?Mn:Mn||ho,Ci=Xa(Ui)?Ui.toString():void 0;return ye!==void 0&&(Ci=ye),Ne.createElement("div",me({},Ha(Ht),ur?{}:Ea(_o,yo),{"aria-selected":ga(ho),className:Un,title:Ci,onMouseMove:function(){Co===yo||an||Da(yo)},onClick:function(){an||Qr(ho)},style:je}),Ne.createElement("div",{className:"".concat(Tn,"-content")},typeof wo=="function"?wo(_o,{index:yo}):Ui),Ne.isValidElement(li)||$t,Ei&&Ne.createElement(Br,{className:"".concat(Mi,"-option-state"),customizeIcon:li,customizeIconProps:{value:ho,disabled:an,isSelected:$t}},$t?"\u2713":null))}))},pl=Ne.forwardRef(Is),Mo=pl,$u=function(Oe,ze){var it=Ne.useRef({values:new Map,options:new Map}),vt=Ne.useMemo(function(){var Ce=it.current,ke=Ce.values,_e=Ce.options,Ye=Oe.map(function(on){if(on.label===void 0){var zn;return Nt(Nt({},on),{},{label:(zn=ke.get(on.value))===null||zn===void 0?void 0:zn.label})}return on}),kt=new Map,_t=new Map;return Ye.forEach(function(on){kt.set(on.value,on),_t.set(on.value,ze.get(on.value)||_e.get(on.value))}),it.current.values=kt,it.current.options=_t,Ye},[Oe,ze]),sn=Ne.useCallback(function(Ce){return ze.get(Ce)||it.current.options.get(Ce)},[ze]);return[vt,sn]};function Pu(Oe,ze){return Po(Oe).join("").toUpperCase().includes(ze)}var $l=function(Oe,ze,it,vt,sn){return Ne.useMemo(function(){if(!it||vt===!1)return Oe;var Ce=ze.options,ke=ze.label,_e=ze.value,Ye=[],kt=typeof vt=="function",_t=it.toUpperCase(),on=kt?vt:function(yn,Fn){return sn?Pu(Fn[sn],_t):Fn[Ce]?Pu(Fn[ke!=="children"?ke:"label"],_t):Pu(Fn[_e],_t)},zn=kt?function(yn){return fa(yn)}:function(yn){return yn};return Oe.forEach(function(yn){if(yn[Ce]){var Fn=on(it,zn(yn));if(Fn)Ye.push(yn);else{var qn=yn[Ce].filter(function($n){return on(it,zn($n))});qn.length&&Ye.push(Nt(Nt({},yn),{},yt({},Ce,qn)))}return}on(it,zn(yn))&&Ye.push(yn)}),Ye},[Oe,vt,sn,it,ze])},ou=0,gc=Xn();function kr(){var Oe;return gc?(Oe=ou,ou+=1):Oe="TEST_OR_SSR",Oe}function hl(Oe){var ze=Ne.useState(),it=vn(ze,2),vt=it[0],sn=it[1];return Ne.useEffect(function(){sn("rc_select_".concat(kr()))},[]),Oe||vt}function Rs(Oe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=[];return Ne.Children.forEach(Oe,function(vt){vt==null&&!ze.keepEmpty||(Array.isArray(vt)?it=it.concat(Rs(vt)):(0,In.isFragment)(vt)&&vt.props?it=it.concat(Rs(vt.props.children,ze)):it.push(vt))}),it}var Bu=["children","value"],zu=["children"];function Ou(Oe){var ze=Oe,it=ze.key,vt=ze.props,sn=vt.children,Ce=vt.value,ke=Ge(vt,Bu);return Nt({key:it,value:Ce!==void 0?Ce:it,children:sn},ke)}function Sa(Oe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rs(Oe).map(function(it,vt){if(!Ne.isValidElement(it)||!it.type)return null;var sn=it,Ce=sn.type.isSelectOptGroup,ke=sn.key,_e=sn.props,Ye=_e.children,kt=Ge(_e,zu);return ze||!Ce?Ou(it):Nt(Nt({key:"__RC_SELECT_GRP__".concat(ke===null?vt:ke,"__"),label:ke},kt),{},{options:Sa(Ye)})}).filter(function(it){return it})}var Lu=function(ze,it,vt,sn,Ce){return Ne.useMemo(function(){var ke=ze,_e=!ze;_e&&(ke=Sa(it));var Ye=new Map,kt=new Map,_t=function(yn,Fn,qn){qn&&typeof qn=="string"&&yn.set(Fn[qn],Fn)},on=function zn(yn){for(var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qn=0;qn<yn.length;qn+=1){var $n=yn[qn];!$n[vt.options]||Fn?(Ye.set($n[vt.value],$n),_t(kt,$n,vt.label),_t(kt,$n,sn),_t(kt,$n,Ce)):zn($n[vt.options],!0)}};return on(ke),{options:ke,valueOptions:Ye,labelOptions:kt}},[ze,it,vt,sn,Ce])},Fl=Lu;function Il(Oe){var ze=Ne.useRef();ze.current=Oe;var it=Ne.useCallback(function(){return ze.current.apply(ze,arguments)},[]);return it}function eu(Oe){var ze=Oe.mode,it=Oe.options,vt=Oe.children,sn=Oe.backfill,Ce=Oe.allowClear,ke=Oe.placeholder,_e=Oe.getInputElement,Ye=Oe.showSearch,kt=Oe.onSearch,_t=Oe.defaultOpen,on=Oe.autoFocus,zn=Oe.labelInValue,yn=Oe.value,Fn=Oe.inputValue,qn=Oe.optionLabelProp,$n=isMultiple(ze),Wi=Ye!==void 0?Ye:$n||ze==="combobox",xi=it||convertChildrenToData(vt);if(warning(ze!=="tags"||xi.every(function(ur){return!ur.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ze==="tags"||ze==="combobox"){var li=xi.some(function(ur){return ur.options?ur.options.some(function(to){return typeof("value"in to?to.value:to.key)=="number"}):typeof("value"in ur?ur.value:ur.key)=="number"});warning(!li,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ze!=="combobox"||!qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ze==="combobox"||!sn,"`backfill` only works with `combobox` mode."),warning(ze==="combobox"||!_e,"`getInputElement` only work with `combobox` mode."),noteOnce(ze!=="combobox"||!_e||!Ce||!ke,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),kt&&!Wi&&ze!=="combobox"&&ze!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!_t||on,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),yn!=null){var Fi=toArray(yn);warning(!zn||Fi.every(function(ur){return _typeof(ur)==="object"&&("key"in ur||"value"in ur)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!$n||Array.isArray(yn),"`value` should be array when `mode` is `multiple` or `tags`")}if(vt){var Zi=null;toNodeArray(vt).some(function(ur){if(!React.isValidElement(ur)||!ur.type)return!1;var to=ur,br=to.type;if(br.isSelectOption)return!1;if(br.isSelectOptGroup){var Sr=toNodeArray(ur.props.children).every(function(wo){return!React.isValidElement(wo)||!ur.type||wo.type.isSelectOption?!0:(Zi=wo.type,!1)});return!Sr}return Zi=br,!0}),Zi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Zi.displayName||Zi.name||Zi,"`.")),warning(Fn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Cc(Oe,ze){if(Oe){var it=function vt(sn){for(var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=0;ke<sn.length;ke++){var _e=sn[ke];if(_e[ze==null?void 0:ze.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ce&&Array.isArray(_e[ze==null?void 0:ze.options])&&vt(_e[ze==null?void 0:ze.options],!0))break}};it(Oe)}}var du=null,Ol=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Cu=["inputValue"];function Wc(Oe){return!Oe||rt(Oe)!=="object"}var ah=Ne.forwardRef(function(Oe,ze){var it=Oe.id,vt=Oe.mode,sn=Oe.prefixCls,Ce=sn===void 0?"rc-select":sn,ke=Oe.backfill,_e=Oe.fieldNames,Ye=Oe.inputValue,kt=Oe.searchValue,_t=Oe.onSearch,on=Oe.autoClearSearchValue,zn=on===void 0?!0:on,yn=Oe.onSelect,Fn=Oe.onDeselect,qn=Oe.dropdownMatchSelectWidth,$n=qn===void 0?!0:qn,Wi=Oe.filterOption,xi=Oe.filterSort,li=Oe.optionFilterProp,Fi=Oe.optionLabelProp,Zi=Oe.options,ur=Oe.optionRender,to=Oe.children,br=Oe.defaultActiveFirstOption,Sr=Oe.menuItemSelectedIcon,wo=Oe.virtual,Mi=Oe.direction,Jr=Oe.listHeight,mr=Jr===void 0?200:Jr,ao=Oe.listItemHeight,po=ao===void 0?20:ao,Ar=Oe.labelRender,To=Oe.value,mo=Oe.defaultValue,zo=Oe.labelInValue,Dr=Oe.onChange,Co=Oe.maxCount,ca=Ge(Oe,Ol),Da=hl(it),ga=cn(vt),Qr=!!(!Zi&&to),Jo=Ne.useMemo(function(){return Wi===void 0&&vt==="combobox"?!1:Wi},[Wi,vt]),ua=Ne.useMemo(function(){return so(_e,Qr)},[JSON.stringify(_e),Qr]),Ea=Ct("",{value:kt!==void 0?kt:Ye,postState:function(qi){return qi||""}}),es=vn(Ea,2),ba=es[0],_o=es[1],yo=Fl(Zi,to,ua,li,Fi),ta=yo.valueOptions,Ka=yo.labelOptions,Vo=yo.options,Zr=Ne.useCallback(function(Pi){var qi=Po(Pi);return qi.map(function(Hi){var Lr,Eo,vr,qr,xr;if(Wc(Hi))Lr=Hi;else{var fr;vr=Hi.key,Eo=Hi.label,Lr=(fr=Hi.value)!==null&&fr!==void 0?fr:vr}var _r=ta.get(Lr);if(_r){var Kr;if(Eo===void 0&&(Eo=_r==null?void 0:_r[Fi||ua.label]),vr===void 0&&(vr=(Kr=_r==null?void 0:_r.key)!==null&&Kr!==void 0?Kr:Lr),qr=_r==null?void 0:_r.disabled,xr=_r==null?void 0:_r.title,0)var Aa}return{label:Eo,value:Lr,key:vr,disabled:qr,title:xr}})},[ua,Fi,ta]),ho=Ct(mo,{value:To}),fo=vn(ho,2),Mr=fo[0],Gr=fo[1],Do=Ne.useMemo(function(){var Pi,qi=ga&&Mr===null?[]:Mr,Hi=Zr(qi);return vt==="combobox"&&Ss((Pi=Hi[0])===null||Pi===void 0?void 0:Pi.value)?[]:Hi},[Mr,Zr,vt,ga]),ye=$u(Do,ta),Ie=vn(ye,2),je=Ie[0],Ue=Ie[1],gt=Ne.useMemo(function(){if(!vt&&je.length===1){var Pi=je[0];if(Pi.value===null&&(Pi.label===null||Pi.label===void 0))return[]}return je.map(function(qi){var Hi;return Nt(Nt({},qi),{},{label:(Hi=typeof Ar=="function"?Ar(qi):qi.label)!==null&&Hi!==void 0?Hi:qi.value})})},[vt,je,Ar]),Ht=Ne.useMemo(function(){return new Set(je.map(function(Pi){return Pi.value}))},[je]);Ne.useEffect(function(){if(vt==="combobox"){var Pi,qi=(Pi=je[0])===null||Pi===void 0?void 0:Pi.value;_o(kl(qi)?String(qi):"")}},[je]);var $t=Il(function(Pi,qi){var Hi=qi!=null?qi:Pi;return yt(yt({},ua.value,Pi),ua.label,Hi)}),an=Ne.useMemo(function(){if(vt!=="tags")return Vo;var Pi=st(Vo),qi=function(Lr){return ta.has(Lr)};return st(je).sort(function(Hi,Lr){return Hi.value<Lr.value?-1:1}).forEach(function(Hi){var Lr=Hi.value;qi(Lr)||Pi.push($t(Lr,Hi.label))}),Pi},[$t,Vo,ta,je,vt]),Tn=$l(an,ua,ba,Jo,li),Un=Ne.useMemo(function(){return vt!=="tags"||!ba||Tn.some(function(Pi){return Pi[li||"value"]===ba})||Tn.some(function(Pi){return Pi[ua.value]===ba})?Tn:[$t(ba)].concat(st(Tn))},[$t,li,vt,Tn,ba,ua]),Mn=function Pi(qi){var Hi=st(qi).sort(function(Lr,Eo){return xi(Lr,Eo,{searchValue:ba})});return Hi.map(function(Lr){return Array.isArray(Lr.options)?Nt(Nt({},Lr),{},{options:Lr.options.length>0?Pi(Lr.options):Lr.options}):Lr})},Ei=Ne.useMemo(function(){return xi?Mn(Un):Un},[Un,xi,ba]),Ui=Ne.useMemo(function(){return ya(Ei,{fieldNames:ua,childrenAsData:Qr})},[Ei,ua,Qr]),Ci=function(qi){var Hi=Zr(qi);if(Gr(Hi),Dr&&(Hi.length!==je.length||Hi.some(function(vr,qr){var xr;return((xr=je[qr])===null||xr===void 0?void 0:xr.value)!==(vr==null?void 0:vr.value)}))){var Lr=zo?Hi:Hi.map(function(vr){return vr.value}),Eo=Hi.map(function(vr){return fa(Ue(vr.value))});Dr(ga?Lr:Lr[0],ga?Eo:Eo[0])}},Li=Ne.useState(null),Di=vn(Li,2),Ni=Di[0],bn=Di[1],Yn=Ne.useState(0),ei=vn(Yn,2),pi=ei[0],rr=ei[1],$i=br!==void 0?br:vt!=="combobox",sr=Ne.useCallback(function(Pi,qi){var Hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lr=Hi.source,Eo=Lr===void 0?"keyboard":Lr;rr(qi),ke&&vt==="combobox"&&Pi!==null&&Eo==="keyboard"&&bn(String(Pi))},[ke,vt]),At=function(qi,Hi,Lr){var Eo=function(){var co,vo=Ue(qi);return[zo?{label:vo==null?void 0:vo[ua.label],value:qi,key:(co=vo==null?void 0:vo.key)!==null&&co!==void 0?co:qi}:qi,fa(vo)]};if(Hi&&yn){var vr=Eo(),qr=vn(vr,2),xr=qr[0],fr=qr[1];yn(xr,fr)}else if(!Hi&&Fn&&Lr!=="clear"){var _r=Eo(),Kr=vn(_r,2),Aa=Kr[0],Ya=Kr[1];Fn(Aa,Ya)}},cr=Il(function(Pi,qi){var Hi,Lr=ga?qi.selected:!0;Lr?Hi=ga?[].concat(st(je),[Pi]):[Pi]:Hi=je.filter(function(Eo){return Eo.value!==Pi}),Ci(Hi),At(Pi,Lr),vt==="combobox"?bn(""):(!cn||zn)&&(_o(""),bn(""))}),Pr=function(qi,Hi){Ci(qi);var Lr=Hi.type,Eo=Hi.values;(Lr==="remove"||Lr==="clear")&&Eo.forEach(function(vr){At(vr.value,!1,Lr)})},Ir=function(qi,Hi){if(_o(qi),bn(null),Hi.source==="submit"){var Lr=(qi||"").trim();if(Lr){var Eo=Array.from(new Set([].concat(st(Ht),[Lr])));Ci(Eo),At(Lr,!0),_o("")}return}Hi.source!=="blur"&&(vt==="combobox"&&Ci(qi),_t==null||_t(qi))},Oo=function(qi){var Hi=qi;vt!=="tags"&&(Hi=qi.map(function(Eo){var vr=Ka.get(Eo);return vr==null?void 0:vr.value}).filter(function(Eo){return Eo!==void 0}));var Lr=Array.from(new Set([].concat(st(Ht),st(Hi))));Ci(Lr),Lr.forEach(function(Eo){At(Eo,!0)})},Ur=Ne.useMemo(function(){var Pi=wo!==!1&&$n!==!1;return Nt(Nt({},yo),{},{flattenOptions:Ui,onActiveValue:sr,defaultActiveFirstOption:$i,onSelect:cr,menuItemSelectedIcon:Sr,rawValues:Ht,fieldNames:ua,virtual:Pi,direction:Mi,listHeight:mr,listItemHeight:po,childrenAsData:Qr,maxCount:Co,optionRender:ur})},[Co,yo,Ui,sr,$i,cr,Sr,Ht,ua,wo,$n,Mi,mr,po,Qr,ur]);return Ne.createElement(Us.Provider,{value:Ur},Ne.createElement(dl,me({},ca,{id:Da,prefixCls:Ce,ref:ze,omitDomProps:Cu,mode:vt,displayValues:gt,onDisplayValuesChange:Pr,direction:Mi,searchValue:ba,onSearch:Ir,autoClearSearchValue:zn,onSearchSplit:Oo,dropdownMatchSelectWidth:$n,OptionList:Mo,emptyOptions:!Ui.length,activeValue:Ni,activeDescendantId:"".concat(Da,"_list_").concat(pi)})))}),Hc=ah;Hc.Option=hu,Hc.OptGroup=Ys;var Yh=null,Wu=null,El=be(17341);function Hu(Oe){if(Array.isArray(Oe))return Oe}function Iu(Oe,ze){var it=Oe==null?null:typeof Symbol!="undefined"&&Oe[Symbol.iterator]||Oe["@@iterator"];if(it!=null){var vt,sn,Ce,ke,_e=[],Ye=!0,kt=!1;try{if(Ce=(it=it.call(Oe)).next,ze===0){if(Object(it)!==it)return;Ye=!1}else for(;!(Ye=(vt=Ce.call(it)).done)&&(_e.push(vt.value),_e.length!==ze);Ye=!0);}catch(_t){kt=!0,sn=_t}finally{try{if(!Ye&&it.return!=null&&(ke=it.return(),Object(ke)!==ke))return}finally{if(kt)throw sn}}return _e}}function ku(Oe,ze){(ze==null||ze>Oe.length)&&(ze=Oe.length);for(var it=0,vt=new Array(ze);it<ze;it++)vt[it]=Oe[it];return vt}function Jc(Oe,ze){if(Oe){if(typeof Oe=="string")return ku(Oe,ze);var it=Object.prototype.toString.call(Oe).slice(8,-1);if(it==="Object"&&Oe.constructor&&(it=Oe.constructor.name),it==="Map"||it==="Set")return Array.from(Oe);if(it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it))return ku(Oe,ze)}}function Sh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ml(Oe,ze){return Hu(Oe)||Iu(Oe,ze)||Jc(Oe,ze)||Sh()}function sh(Oe){var ze=Ne.useRef();ze.current=Oe;var it=Ne.useCallback(function(){for(var vt,sn=arguments.length,Ce=new Array(sn),ke=0;ke<sn;ke++)Ce[ke]=arguments[ke];return(vt=ze.current)===null||vt===void 0?void 0:vt.call.apply(vt,[ze].concat(Ce))},[]);return it}function lh(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Nc=lh()?Ne.useLayoutEffect:Ne.useEffect,Ec=function(ze,it){var vt=Ne.useRef(!0);Nc(function(){return ze(vt.current)},it),Nc(function(){return vt.current=!1,function(){vt.current=!0}},[])},tu=function(ze,it){Ec(function(vt){if(!vt)return ze()},it)},Vl=null;function xl(Oe){var ze=Ne.useRef(!1),it=Ne.useState(Oe),vt=ml(it,2),sn=vt[0],Ce=vt[1];Ne.useEffect(function(){return ze.current=!1,function(){ze.current=!0}},[]);function ke(_e,Ye){Ye&&ze.current||Ce(_e)}return[sn,ke]}function Ts(Oe){return Oe!==void 0}function nu(Oe,ze){var it=ze||{},vt=it.defaultValue,sn=it.value,Ce=it.onChange,ke=it.postState,_e=xl(function(){return Ts(sn)?sn:Ts(vt)?typeof vt=="function"?vt():vt:typeof Oe=="function"?Oe():Oe}),Ye=ml(_e,2),kt=Ye[0],_t=Ye[1],on=sn!==void 0?sn:kt,zn=ke?ke(on):on,yn=sh(Ce),Fn=xl([on]),qn=ml(Fn,2),$n=qn[0],Wi=qn[1];tu(function(){var li=$n[0];kt!==li&&yn(kt,li)},[$n]),tu(function(){Ts(sn)||_t(sn)},[sn]);var xi=sh(function(li,Fi){_t(li,Fi),Wi([on],Fi)});return[zn,xi]}var ol={},Vs=[],Wl=function(ze){Vs.push(ze)};function fu(Oe,ze){if(0)var it}function Ru(Oe,ze){if(0)var it}function Fo(){ol={}}function gu(Oe,ze,it){!ze&&!ol[it]&&(Oe(!1,it),ol[it]=!0)}function Rt(Oe,ze){gu(fu,Oe,ze)}function fi(Oe,ze){gu(Ru,Oe,ze)}Rt.preMessage=Wl,Rt.resetWarned=Fo,Rt.noteOnce=fi;var Kl=Rt,Yu=function(Oe){var ze=Ne.useRef({valueLabels:new Map});return Ne.useMemo(function(){var it=ze.current.valueLabels,vt=new Map,sn=Oe.map(function(Ce){var ke=Ce.value,_e=Ce.label,Ye=_e!=null?_e:it.get(ke);return vt.set(ke,Ye),He(He({},Ce),{},{label:Ye})});return ze.current.valueLabels=vt,[sn]},[Oe])},ec=function(ze,it,vt,sn){return Ne.useMemo(function(){var Ce=function(yn){return yn.map(function(Fn){var qn=Fn.value;return qn})},ke=Ce(ze),_e=Ce(it),Ye=ke.filter(function(zn){return!sn[zn]}),kt=ke,_t=_e;if(vt){var on=(0,El.S)(ke,!0,sn);kt=on.checkedKeys,_t=on.halfCheckedKeys}return[Array.from(new Set([].concat(Je(Ye),Je(kt)))),_t]},[ze,it,vt,sn])},pu=ec,Eu=be(1089),pc=function(Oe,ze){return Ne.useMemo(function(){var it=(0,Eu.I8)(Oe,{fieldNames:ze,initWrapper:function(sn){return He(He({},sn),{},{valueEntities:new Map})},processEntity:function(sn,Ce){var ke=sn.node[ze.value];if(0)var _e;Ce.valueEntities.set(ke,sn)}});return it},[Oe,ze])};function mc(Oe){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},mc(Oe)}var wl=Symbol.for("react.element"),Ca=Symbol.for("react.transitional.element"),mu=Symbol.for("react.fragment");function au(Oe){return Oe&&mc(Oe)==="object"&&(Oe.$$typeof===wl||Oe.$$typeof===Ca)&&Oe.type===mu}function ll(Oe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=[];return Ne.Children.forEach(Oe,function(vt){vt==null&&!ze.keepEmpty||(Array.isArray(vt)?it=it.concat(ll(vt)):au(vt)&&vt.props?it=it.concat(ll(vt.props.children,ze)):it.push(vt))}),it}var fs=function(){return null},Ml=fs,Fu=["children","value"];function sl(Oe){return ll(Oe).map(function(ze){if(!Ne.isValidElement(ze)||!ze.type)return null;var it=ze,vt=it.key,sn=it.props,Ce=sn.children,ke=sn.value,_e=ge(sn,Fu),Ye=He({key:vt,value:ke},_e),kt=sl(Ce);return kt.length&&(Ye.children=kt),Ye}).filter(function(ze){return ze})}function su(Oe){if(!Oe)return Oe;var ze=He({},Oe);return"props"in ze||Object.defineProperty(ze,"props",{get:function(){return Kl(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),ze}}),ze}function Gl(Oe,ze,it,vt,sn,Ce){var ke=null,_e=null;function Ye(){function kt(_t){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _t.map(function(yn,Fn){var qn="".concat(on,"-").concat(Fn),$n=yn[Ce.value],Wi=it.includes($n),xi=kt(yn[Ce.children]||[],qn,Wi),li=Ne.createElement(Ml,yn,xi.map(function(Zi){return Zi.node}));if(ze===$n&&(ke=li),Wi){var Fi={pos:qn,node:li,children:xi};return zn||_e.push(Fi),Fi}return null}).filter(function(yn){return yn})}_e||(_e=[],kt(vt),_e.sort(function(_t,on){var zn=_t.node.props.value,yn=on.node.props.value,Fn=it.indexOf(zn),qn=it.indexOf(yn);return Fn-qn}))}Object.defineProperty(Oe,"triggerNode",{get:function(){return Kl(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ye(),ke}}),Object.defineProperty(Oe,"allCheckedNodes",{get:function(){return Kl(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ye(),sn?_e:_e.map(function(_t){var on=_t.node;return on})}})}var tc=function(ze,it,vt){var sn=vt.fieldNames,Ce=vt.treeNodeFilterProp,ke=vt.filterTreeNode,_e=sn.children;return Ne.useMemo(function(){if(!it||ke===!1)return ze;var Ye=typeof ke=="function"?ke:function(_t,on){return String(on[Ce]).toUpperCase().includes(it.toUpperCase())},kt=function _t(on){var zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return on.reduce(function(yn,Fn){var qn=Fn[_e],$n=zn||Ye(it,su(Fn)),Wi=_t(qn||[],$n);return($n||Wi.length)&&yn.push(He(He({},Fn),{},Vt({isLeaf:void 0},_e,Wi))),yn},[])};return kt(ze)},[ze,it,_e,Ce,ke])},Bs=tc;function vu(Oe){var ze=Ne.useRef();ze.current=Oe;var it=Ne.useCallback(function(){return ze.current.apply(ze,arguments)},[]);return it}function As(Oe,ze){var it=ze.id,vt=ze.pId,sn=ze.rootPId,Ce=new Map,ke=[];return Oe.forEach(function(_e){var Ye=_e[it],kt=He(He({},_e),{},{key:_e.key||Ye});Ce.set(Ye,kt)}),Ce.forEach(function(_e){var Ye=_e[vt],kt=Ce.get(Ye);kt?(kt.children=kt.children||[],kt.children.push(_e)):(Ye===sn||sn===null)&&ke.push(_e)}),ke}function Ms(Oe,ze,it){return Ne.useMemo(function(){if(Oe){if(it){var vt=He({id:"id",pId:"pId",rootPId:null},pt(it)==="object"?it:{});return As(Oe,vt)}return Oe}return sl(ze)},[ze,it,Oe])}var Zs=Ne.createContext(null),Pl=Zs;function js(Oe,ze){var it=typeof Symbol!="undefined"&&Oe[Symbol.iterator]||Oe["@@iterator"];if(!it){if(Array.isArray(Oe)||(it=Bt(Oe))||ze&&Oe&&typeof Oe.length=="number"){it&&(Oe=it);var vt=0,sn=function(){};return{s:sn,n:function(){return vt>=Oe.length?{done:!0}:{done:!1,value:Oe[vt++]}},e:function(kt){throw kt},f:sn}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ce,ke=!0,_e=!1;return{s:function(){it=it.call(Oe)},n:function(){var kt=it.next();return ke=kt.done,kt},e:function(kt){_e=!0,Ce=kt},f:function(){try{ke||it.return==null||it.return()}finally{if(_e)throw Ce}}}}var _c=be(70593),Vr={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(ze){var it=ze.keyCode;if(ze.altKey&&!ze.ctrlKey||ze.metaKey||it>=Vr.F1&&it<=Vr.F12)return!1;switch(it){case Vr.ALT:case Vr.CAPS_LOCK:case Vr.CONTEXT_MENU:case Vr.CTRL:case Vr.DOWN:case Vr.END:case Vr.ESC:case Vr.HOME:case Vr.INSERT:case Vr.LEFT:case Vr.MAC_FF_META:case Vr.META:case Vr.NUMLOCK:case Vr.NUM_CENTER:case Vr.PAGE_DOWN:case Vr.PAGE_UP:case Vr.PAUSE:case Vr.PRINT_SCREEN:case Vr.RIGHT:case Vr.SHIFT:case Vr.UP:case Vr.WIN_KEY:case Vr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ze){if(ze>=Vr.ZERO&&ze<=Vr.NINE||ze>=Vr.NUM_ZERO&&ze<=Vr.NUM_MULTIPLY||ze>=Vr.A&&ze<=Vr.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ze===0)return!0;switch(ze){case Vr.SPACE:case Vr.QUESTION_MARK:case Vr.NUM_PLUS:case Vr.NUM_MINUS:case Vr.NUM_PERIOD:case Vr.NUM_DIVISION:case Vr.SEMICOLON:case Vr.DASH:case Vr.EQUALS:case Vr.COMMA:case Vr.PERIOD:case Vr.SLASH:case Vr.APOSTROPHE:case Vr.SINGLE_QUOTE:case Vr.OPEN_SQUARE_BRACKET:case Vr.BACKSLASH:case Vr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ju=Vr;function xs(Oe,ze,it){var vt=Ne.useRef({});return(!("value"in vt.current)||it(vt.current.condition,ze))&&(vt.current.value=Oe(),vt.current.condition=ze),vt.current.value}var sd=Ne.createContext(null),Vc=sd,xh=function(ze){return Array.isArray(ze)?ze:ze!==void 0?[ze]:[]},Th=function(ze){var it=ze||{},vt=it.label,sn=it.value,Ce=it.children;return{_title:vt?[vt]:["title","label"],value:sn||"value",key:sn||"value",children:Ce||"children"}},_u=function(ze){return!ze||ze.disabled||ze.disableCheckbox||ze.checkable===!1},Dc=function(ze,it){var vt=[],sn=function Ce(ke){ke.forEach(function(_e){var Ye=_e[it.children];Ye&&(vt.push(_e[it.value]),Ce(Ye))})};return sn(ze),vt},Zu=function(ze){return ze==null},Ko=be(66133),lu=Number(Ne.version.split(".")[0]),Qe=function(ze,it){typeof ze=="function"?ze(it):_typeof(ze)==="object"&&ze&&"current"in ze&&(ze.current=it)},Lt=function(){for(var ze=arguments.length,it=new Array(ze),vt=0;vt<ze;vt++)it[vt]=arguments[vt];var sn=it.filter(Boolean);return sn.length<=1?sn[0]:function(Ce){it.forEach(function(ke){Qe(ke,Ce)})}},It=function(){for(var ze=arguments.length,it=new Array(ze),vt=0;vt<ze;vt++)it[vt]=arguments[vt];return useMemo(function(){return Lt.apply(void 0,it)},it,function(sn,Ce){return sn.length!==Ce.length||sn.every(function(ke,_e){return ke!==Ce[_e]})})},jt=function(ze){var it,vt;if(!ze)return!1;if(dn(ze)&&lu>=19)return!0;var sn=isMemo(ze)?ze.type.type:ze.type;return!(typeof sn=="function"&&!((it=sn.prototype)!==null&&it!==void 0&&it.render)&&sn.$$typeof!==ForwardRef||typeof ze=="function"&&!((vt=ze.prototype)!==null&&vt!==void 0&&vt.render)&&ze.$$typeof!==ForwardRef)};function dn(Oe){return isValidElement(Oe)&&!isFragment(Oe)}var Sn=function(ze){return dn(ze)&&jt(ze)},jn=function(ze){if(ze&&dn(ze)){var it=ze;return it.props.propertyIsEnumerable("ref")?it.props.ref:it.ref}return null};function ui(Oe,ze,it,vt){if(!ze.length)return it;var sn=_toArray(ze),Ce=sn[0],ke=sn.slice(1),_e;return!Oe&&typeof Ce=="number"?_e=[]:Array.isArray(Oe)?_e=_toConsumableArray(Oe):_e=_objectSpread({},Oe),vt&&it===void 0&&ke.length===1?delete _e[Ce][ke[0]]:_e[Ce]=ui(_e[Ce],ke,it,vt),_e}function ji(Oe,ze,it){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ze.length&&vt&&it===void 0&&!get(Oe,ze.slice(0,-1))?Oe:ui(Oe,ze,it,vt)}function Ai(Oe){return _typeof(Oe)==="object"&&Oe!==null&&Object.getPrototypeOf(Oe)===Object.prototype}function gr(Oe){return Array.isArray(Oe)?[]:{}}var Oi=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ir(){for(var Oe=arguments.length,ze=new Array(Oe),it=0;it<Oe;it++)ze[it]=arguments[it];var vt=gr(ze[0]);return ze.forEach(function(sn){function Ce(ke,_e){var Ye=new Set(_e),kt=get(sn,ke),_t=Array.isArray(kt);if(_t||Ai(kt)){if(!Ye.has(kt)){Ye.add(kt);var on=get(vt,ke);_t?vt=ji(vt,ke,[]):(!on||_typeof(on)!=="object")&&(vt=ji(vt,ke,gr(kt))),Oi(kt).forEach(function(zn){Ce([].concat(_toConsumableArray(ke),[zn]),Ye)})}}else vt=ji(vt,ke,kt)}Ce([])}),vt}var Ji={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Tr=function(ze,it){var vt=Xr(),sn=vt.prefixCls,Ce=vt.multiple,ke=vt.searchValue,_e=vt.toggleOpen,Ye=vt.open,kt=vt.notFoundContent,_t=Ne.useContext(Vc),on=_t.virtual,zn=_t.listHeight,yn=_t.listItemHeight,Fn=_t.listItemScrollOffset,qn=_t.treeData,$n=_t.fieldNames,Wi=_t.onSelect,xi=_t.dropdownMatchSelectWidth,li=_t.treeExpandAction,Fi=_t.treeTitleRender,Zi=_t.onPopupScroll,ur=_t.leftMaxCount,to=_t.leafCountOnly,br=_t.valueEntities,Sr=Ne.useContext(Pl),wo=Sr.checkable,Mi=Sr.checkedKeys,Jr=Sr.halfCheckedKeys,mr=Sr.treeExpandedKeys,ao=Sr.treeDefaultExpandAll,po=Sr.treeDefaultExpandedKeys,Ar=Sr.onTreeExpand,To=Sr.treeIcon,mo=Sr.showTreeIcon,zo=Sr.switcherIcon,Dr=Sr.treeLine,Co=Sr.treeNodeFilterProp,ca=Sr.loadData,Da=Sr.treeLoadedKeys,ga=Sr.treeMotion,Qr=Sr.onTreeLoad,Jo=Sr.keyEntities,ua=Ne.useRef(),Ea=xs(function(){return qn},[Ye,qn],function(bn,Yn){return Yn[0]&&bn[1]!==Yn[1]}),es=Ne.useMemo(function(){return wo?{checked:Mi,halfChecked:Jr}:null},[wo,Mi,Jr]);Ne.useEffect(function(){if(Ye&&!Ce&&Mi.length){var bn;(bn=ua.current)===null||bn===void 0||bn.scrollTo({key:Mi[0]})}},[Ye]);var ba=function(Yn){Yn.preventDefault()},_o=function(Yn,ei){var pi=ei.node;wo&&_u(pi)||(Wi(pi.key,{selected:!Mi.includes(pi.key)}),Ce||_e(!1))},yo=Ne.useState(po),ta=ue(yo,2),Ka=ta[0],Vo=ta[1],Zr=Ne.useState(null),ho=ue(Zr,2),fo=ho[0],Mr=ho[1],Gr=Ne.useMemo(function(){return mr?Je(mr):ke?fo:Ka},[Ka,fo,mr,ke]),Do=function(Yn){Vo(Yn),Mr(Yn),Ar&&Ar(Yn)},ye=String(ke).toLowerCase(),Ie=function(Yn){return ye?String(Yn[Co]).toLowerCase().includes(ye):!1};Ne.useEffect(function(){ke&&Mr(Dc(qn,$n))},[ke]);var je=Ne.useState(function(){return new Map}),Ue=ue(je,2),gt=Ue[0],Ht=Ue[1];Ne.useEffect(function(){ur&&Ht(new Map)},[ur]);function $t(bn){var Yn=bn[$n.value];if(!gt.has(Yn)){var ei=br.get(Yn),pi=(ei.children||[]).length===0;if(pi)gt.set(Yn,!1);else{var rr=ei.children.filter(function(sr){return!sr.node.disabled&&!sr.node.disableCheckbox&&!Mi.includes(sr.node[$n.value])}),$i=rr.length;gt.set(Yn,$i>ur)}}return gt.get(Yn)}var an=sh(function(bn){var Yn=bn[$n.value];return Mi.includes(Yn)||ur===null?!1:ur<=0?!0:to&&ur?$t(bn):!1}),Tn=function bn(Yn){var ei=js(Yn),pi;try{for(ei.s();!(pi=ei.n()).done;){var rr=pi.value;if(!(rr.disabled||rr.selectable===!1)){if(ke){if(Ie(rr))return rr}else return rr;if(rr[$n.children]){var $i=bn(rr[$n.children]);if($i)return $i}}}}catch(sr){ei.e(sr)}finally{ei.f()}return null},Un=Ne.useState(null),Mn=ue(Un,2),Ei=Mn[0],Ui=Mn[1],Ci=Jo[Ei];Ne.useEffect(function(){if(Ye){var bn=null,Yn=function(){var pi=Tn(Ea);return pi?pi[$n.value]:null};!Ce&&Mi.length&&!ke?bn=Mi[0]:bn=Yn(),Ui(bn)}},[Ye,ke]),Ne.useImperativeHandle(it,function(){var bn;return{scrollTo:(bn=ua.current)===null||bn===void 0?void 0:bn.scrollTo,onKeyDown:function(ei){var pi,rr=ei.which;switch(rr){case ju.UP:case ju.DOWN:case ju.LEFT:case ju.RIGHT:(pi=ua.current)===null||pi===void 0||pi.onKeyDown(ei);break;case ju.ENTER:{if(Ci){var $i=an(Ci.node),sr=(Ci==null?void 0:Ci.node)||{},At=sr.selectable,cr=sr.value,Pr=sr.disabled;At!==!1&&!Pr&&!$i&&_o(null,{node:{key:Ei},selected:!Mi.includes(cr)})}break}case ju.ESC:_e(!1)}},onKeyUp:function(){}}});var Li=xs(function(){return!ke},[ke,mr||Ka],function(bn,Yn){var ei=ue(bn,1),pi=ei[0],rr=ue(Yn,2),$i=rr[0],sr=rr[1];return pi!==$i&&!!($i||sr)}),Di=Li?ca:null;if(Ea.length===0)return Ne.createElement("div",{role:"listbox",className:"".concat(sn,"-empty"),onMouseDown:ba},kt);var Ni={fieldNames:$n};return Da&&(Ni.loadedKeys=Da),Gr&&(Ni.expandedKeys=Gr),Ne.createElement("div",{onMouseDown:ba},Ci&&Ye&&Ne.createElement("span",{style:Ji,"aria-live":"assertive"},Ci.node.value),Ne.createElement(_c.y6.Provider,{value:{nodeDisabled:an}},Ne.createElement(_c.ZP,ve({ref:ua,focusable:!1,prefixCls:"".concat(sn,"-tree"),treeData:Ea,height:zn,itemHeight:yn,itemScrollOffset:Fn,virtual:on!==!1&&xi!==!1,multiple:Ce,icon:To,showIcon:mo,switcherIcon:zo,showLine:Dr,loadData:Di,motion:ga,activeKey:Ei,checkable:wo,checkStrictly:!0,checkedKeys:es,selectedKeys:wo?[]:Mi,defaultExpandAll:ao,titleRender:Fi},Ni,{onActiveChange:Ui,onSelect:_o,onCheck:_o,onExpand:Do,onLoad:Qr,filterTreeNode:Ie,expandAction:li,onScroll:Zi}))))},ro=Ne.forwardRef(Tr),Ro=ro,ia="SHOW_ALL",Yr="SHOW_PARENT",ko="SHOW_CHILD";function oo(Oe,ze,it,vt){var sn=new Set(Oe);return ze===ko?Oe.filter(function(Ce){var ke=it[Ce];return!ke||!ke.children||!ke.children.some(function(_e){var Ye=_e.node;return sn.has(Ye[vt.value])})||!ke.children.every(function(_e){var Ye=_e.node;return _u(Ye)||sn.has(Ye[vt.value])})}):ze===Yr?Oe.filter(function(Ce){var ke=it[Ce],_e=ke?ke.parent:null;return!_e||_u(_e.node)||!sn.has(_e.key)}):Oe}function oa(Oe){var ze=Oe.searchPlaceholder,it=Oe.treeCheckStrictly,vt=Oe.treeCheckable,sn=Oe.labelInValue,Ce=Oe.value,ke=Oe.multiple,_e=Oe.showCheckedStrategy,Ye=Oe.maxCount;warning(!ze,"`searchPlaceholder` has been removed."),it&&sn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(sn||it)&&warning(toArray(Ce).every(function(kt){return kt&&_typeof(kt)==="object"&&"value"in kt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),it||ke||vt?warning(!Ce||Array.isArray(Ce),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Ce),"`value` should not be array when `TreeSelect` is single mode."),Ye&&(_e==="SHOW_ALL"&&!it||_e==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var _a=null,qo=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function cs(Oe){return!Oe||pt(Oe)!=="object"}var ja=Ne.forwardRef(function(Oe,ze){var it=Oe.id,vt=Oe.prefixCls,sn=vt===void 0?"rc-tree-select":vt,Ce=Oe.value,ke=Oe.defaultValue,_e=Oe.onChange,Ye=Oe.onSelect,kt=Oe.onDeselect,_t=Oe.searchValue,on=Oe.inputValue,zn=Oe.onSearch,yn=Oe.autoClearSearchValue,Fn=yn===void 0?!0:yn,qn=Oe.filterTreeNode,$n=Oe.treeNodeFilterProp,Wi=$n===void 0?"value":$n,xi=Oe.showCheckedStrategy,li=Oe.treeNodeLabelProp,Fi=Oe.multiple,Zi=Oe.treeCheckable,ur=Oe.treeCheckStrictly,to=Oe.labelInValue,br=Oe.maxCount,Sr=Oe.fieldNames,wo=Oe.treeDataSimpleMode,Mi=Oe.treeData,Jr=Oe.children,mr=Oe.loadData,ao=Oe.treeLoadedKeys,po=Oe.onTreeLoad,Ar=Oe.treeDefaultExpandAll,To=Oe.treeExpandedKeys,mo=Oe.treeDefaultExpandedKeys,zo=Oe.onTreeExpand,Dr=Oe.treeExpandAction,Co=Oe.virtual,ca=Oe.listHeight,Da=ca===void 0?200:ca,ga=Oe.listItemHeight,Qr=ga===void 0?20:ga,Jo=Oe.listItemScrollOffset,ua=Jo===void 0?0:Jo,Ea=Oe.onDropdownVisibleChange,es=Oe.dropdownMatchSelectWidth,ba=es===void 0?!0:es,_o=Oe.treeLine,yo=Oe.treeIcon,ta=Oe.showTreeIcon,Ka=Oe.switcherIcon,Vo=Oe.treeMotion,Zr=Oe.treeTitleRender,ho=Oe.onPopupScroll,fo=ge(Oe,qo),Mr=hl(it),Gr=Zi&&!ur,Do=Zi||ur,ye=ur||to,Ie=Do||Fi,je=nu(ke,{value:Ce}),Ue=ue(je,2),gt=Ue[0],Ht=Ue[1],$t=Ne.useMemo(function(){return Zi?xi||ko:ia},[xi,Zi]),an=Ne.useMemo(function(){return Th(Sr)},[JSON.stringify(Sr)]),Tn=nu("",{value:_t!==void 0?_t:on,postState:function(co){return co||""}}),Un=ue(Tn,2),Mn=Un[0],Ei=Un[1],Ui=function(co){Ei(co),zn==null||zn(co)},Ci=Ms(Mi,Jr,wo),Li=pc(Ci,an),Di=Li.keyEntities,Ni=Li.valueEntities,bn=Ne.useCallback(function(bo){var co=[],vo=[];return bo.forEach(function(Qo){Ni.has(Qo)?vo.push(Qo):co.push(Qo)}),{missingRawValues:co,existRawValues:vo}},[Ni]),Yn=Bs(Ci,Mn,{fieldNames:an,treeNodeFilterProp:Wi,filterTreeNode:qn}),ei=Ne.useCallback(function(bo){if(bo){if(li)return bo[li];for(var co=an._title,vo=0;vo<co.length;vo+=1){var Qo=bo[co[vo]];if(Qo!==void 0)return Qo}}},[an,li]),pi=Ne.useCallback(function(bo){var co=xh(bo);return co.map(function(vo){return cs(vo)?{value:vo}:vo})},[]),rr=Ne.useCallback(function(bo){var co=pi(bo);return co.map(function(vo){var Qo=vo.label,xa=vo.value,Oa=vo.halfChecked,no,Rr=Ni.get(xa);if(Rr){var wa;Qo=Zr?Zr(Rr.node):(wa=Qo)!==null&&wa!==void 0?wa:ei(Rr.node),no=Rr.node.disabled}else if(Qo===void 0){var Pa=pi(gt).find(function(gs){return gs.value===xa});Qo=Pa.label}return{label:Qo,value:xa,halfChecked:Oa,disabled:no}})},[Ni,ei,pi,gt]),$i=Ne.useMemo(function(){return pi(gt===null?[]:gt)},[pi,gt]),sr=Ne.useMemo(function(){var bo=[],co=[];return $i.forEach(function(vo){vo.halfChecked?co.push(vo):bo.push(vo)}),[bo,co]},[$i]),At=ue(sr,2),cr=At[0],Pr=At[1],Ir=Ne.useMemo(function(){return cr.map(function(bo){return bo.value})},[cr]),Oo=pu(cr,Pr,Gr,Di),Ur=ue(Oo,2),Pi=Ur[0],qi=Ur[1],Hi=Ne.useMemo(function(){var bo=oo(Pi,$t,Di,an),co=bo.map(function(Oa){var no,Rr;return(no=(Rr=Di[Oa])===null||Rr===void 0||(Rr=Rr.node)===null||Rr===void 0?void 0:Rr[an.value])!==null&&no!==void 0?no:Oa}),vo=co.map(function(Oa){var no=cr.find(function(wa){return wa.value===Oa}),Rr=to?no==null?void 0:no.label:Zr==null?void 0:Zr(no);return{value:Oa,label:Rr}}),Qo=rr(vo),xa=Qo[0];return!Ie&&xa&&Zu(xa.value)&&Zu(xa.label)?[]:Qo.map(function(Oa){var no;return He(He({},Oa),{},{label:(no=Oa.label)!==null&&no!==void 0?no:Oa.value})})},[an,Ie,Pi,cr,rr,$t,Di]),Lr=Yu(Hi),Eo=ue(Lr,1),vr=Eo[0],qr=Ne.useMemo(function(){return Ie&&($t==="SHOW_CHILD"||ur||!Zi)?br:null},[br,Ie,ur,$t,Zi]),xr=vu(function(bo,co,vo){var Qo=oo(bo,$t,Di,an);if(!(qr&&Qo.length>qr)){var xa=rr(bo);if(Ht(xa),Fn&&Ei(""),_e){var Oa=bo;Gr&&(Oa=Qo.map(function(Qa){var Ks=Ni.get(Qa);return Ks?Ks.node[an.value]:Qa}));var no=co||{triggerValue:void 0,selected:void 0},Rr=no.triggerValue,wa=no.selected,Pa=Oa;if(ur){var gs=Pr.filter(function(Qa){return!Oa.includes(Qa.value)});Pa=[].concat(Je(Pa),Je(gs))}var Fa=rr(Pa),Ja={preValue:cr,triggerValue:Rr},Es=!0;(ur||vo==="selection"&&!wa)&&(Es=!1),Gl(Ja,Rr,bo,Ci,Es,an),Do?Ja.checked=wa:Ja.selected=wa;var Ma=ye?Fa:Fa.map(function(Qa){return Qa.value});_e(Ie?Ma:Ma[0],ye?null:Fa.map(function(Qa){return Qa.label}),Ja)}}}),fr=Ne.useCallback(function(bo,co){var vo,Qo=co.selected,xa=co.source,Oa=Di[bo],no=Oa==null?void 0:Oa.node,Rr=(vo=no==null?void 0:no[an.value])!==null&&vo!==void 0?vo:bo;if(!Ie)xr([Rr],{selected:!0,triggerValue:Rr},"option");else{var wa=Qo?[].concat(Je(Ir),[Rr]):Pi.filter(function(Ks){return Ks!==Rr});if(Gr){var Pa=bn(wa),gs=Pa.missingRawValues,Fa=Pa.existRawValues,Ja=Fa.map(function(Ks){return Ni.get(Ks).key}),Es;if(Qo){var Ma=(0,El.S)(Ja,!0,Di);Es=Ma.checkedKeys}else{var Qa=(0,El.S)(Ja,{checked:!1,halfCheckedKeys:qi},Di);Es=Qa.checkedKeys}wa=[].concat(Je(gs),Je(Es.map(function(Ks){return Di[Ks].node[an.value]})))}xr(wa,{selected:Qo,triggerValue:Rr},xa||"option")}Qo||!Ie?Ye==null||Ye(Rr,su(no)):kt==null||kt(Rr,su(no))},[bn,Ni,Di,an,Ie,Ir,xr,Gr,Ye,kt,Pi,qi,br]),_r=Ne.useCallback(function(bo){if(Ea){var co={};Object.defineProperty(co,"documentClickClose",{get:function(){return Kl(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Ea(bo,co)}},[Ea]),Kr=vu(function(bo,co){var vo=bo.map(function(Qo){return Qo.value});if(co.type==="clear"){xr(vo,{},"selection");return}co.values.length&&fr(co.values[0].value,{selected:!1,source:"selection"})}),Aa=Ne.useMemo(function(){return{virtual:Co,dropdownMatchSelectWidth:ba,listHeight:Da,listItemHeight:Qr,listItemScrollOffset:ua,treeData:Yn,fieldNames:an,onSelect:fr,treeExpandAction:Dr,treeTitleRender:Zr,onPopupScroll:ho,leftMaxCount:br===void 0?null:br-vr.length,leafCountOnly:$t==="SHOW_CHILD"&&!ur&&!!Zi,valueEntities:Ni}},[Co,ba,Da,Qr,ua,Yn,an,fr,Dr,Zr,ho,br,vr.length,$t,ur,Zi,Ni]),Ya=Ne.useMemo(function(){return{checkable:Do,loadData:mr,treeLoadedKeys:ao,onTreeLoad:po,checkedKeys:Pi,halfCheckedKeys:qi,treeDefaultExpandAll:Ar,treeExpandedKeys:To,treeDefaultExpandedKeys:mo,onTreeExpand:zo,treeIcon:yo,treeMotion:Vo,showTreeIcon:ta,switcherIcon:Ka,treeLine:_o,treeNodeFilterProp:Wi,keyEntities:Di}},[Do,mr,ao,po,Pi,qi,Ar,To,mo,zo,yo,Vo,ta,Ka,_o,Wi,Di]);return Ne.createElement(Vc.Provider,{value:Aa},Ne.createElement(Pl.Provider,{value:Ya},Ne.createElement(dl,ve({ref:ze},fo,{id:Mr,prefixCls:sn,mode:Ie?"multiple":void 0,displayValues:vr,onDisplayValuesChange:Kr,searchValue:Mn,onSearch:Ui,OptionList:Ro,emptyOptions:!Ci.length,onDropdownVisibleChange:_r,dropdownMatchSelectWidth:ba}))))}),rs=ja;rs.TreeNode=Ml,rs.SHOW_ALL=ia,rs.SHOW_PARENT=Yr,rs.SHOW_CHILD=ko;var qs=rs,Cs=qs},18798:function(Rn,ti){"use strict";var be;var ve=typeof Symbol=="function"&&Symbol.for,tt=ve?Symbol.for("react.element"):60103,Pt=ve?Symbol.for("react.portal"):60106,Ut=ve?Symbol.for("react.fragment"):60107,Bt=ve?Symbol.for("react.strict_mode"):60108,Re=ve?Symbol.for("react.profiler"):60114,Je=ve?Symbol.for("react.provider"):60109,pt=ve?Symbol.for("react.context"):60110,wt=ve?Symbol.for("react.async_mode"):60111,ht=ve?Symbol.for("react.concurrent_mode"):60111,Vt=ve?Symbol.for("react.forward_ref"):60112,ct=ve?Symbol.for("react.suspense"):60113,He=ve?Symbol.for("react.suspense_list"):60120,Te=ve?Symbol.for("react.memo"):60115,ne=ve?Symbol.for("react.lazy"):60116,te=ve?Symbol.for("react.block"):60121,ue=ve?Symbol.for("react.fundamental"):60117,se=ve?Symbol.for("react.responder"):60118,ge=ve?Symbol.for("react.scope"):60119;function me(Pe){if(typeof Pe=="object"&&Pe!==null){var Ke=Pe.$$typeof;switch(Ke){case tt:switch(Pe=Pe.type,Pe){case wt:case ht:case Ut:case Re:case Bt:case ct:return Pe;default:switch(Pe=Pe&&Pe.$$typeof,Pe){case pt:case Vt:case ne:case Te:case Je:return Pe;default:return Ke}}case Pt:return Ke}}}function xe(Pe){return me(Pe)===ht}be=wt,be=ht,be=pt,be=Je,be=tt,be=Vt,be=Ut,be=ne,be=Te,be=Pt,be=Re,be=Bt,be=ct,be=function(Pe){return xe(Pe)||me(Pe)===wt},be=xe,be=function(Pe){return me(Pe)===pt},be=function(Pe){return me(Pe)===Je},be=function(Pe){return typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===tt},be=function(Pe){return me(Pe)===Vt},ti.isFragment=function(Pe){return me(Pe)===Ut},be=function(Pe){return me(Pe)===ne},be=function(Pe){return me(Pe)===Te},be=function(Pe){return me(Pe)===Pt},be=function(Pe){return me(Pe)===Re},be=function(Pe){return me(Pe)===Bt},be=function(Pe){return me(Pe)===ct},be=function(Pe){return typeof Pe=="string"||typeof Pe=="function"||Pe===Ut||Pe===ht||Pe===Re||Pe===Bt||Pe===ct||Pe===He||typeof Pe=="object"&&Pe!==null&&(Pe.$$typeof===ne||Pe.$$typeof===Te||Pe.$$typeof===Je||Pe.$$typeof===pt||Pe.$$typeof===Vt||Pe.$$typeof===ue||Pe.$$typeof===se||Pe.$$typeof===ge||Pe.$$typeof===te)},be=me},95936:function(Rn,ti,be){"use strict";Rn.exports=be(18798)},39988:function(Rn,ti){"use strict";var be;var ve=Symbol.for("react.element"),tt=Symbol.for("react.portal"),Pt=Symbol.for("react.fragment"),Ut=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),wt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Te=Symbol.for("react.offscreen"),ne;ne=Symbol.for("react.module.reference");function te(ue){if(typeof ue=="object"&&ue!==null){var se=ue.$$typeof;switch(se){case ve:switch(ue=ue.type,ue){case Pt:case Bt:case Ut:case ht:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case wt:case He:case ct:case Re:return ue;default:return se}}case tt:return se}}}be=Je,be=Re,be=ve,be=wt,be=Pt,be=He,be=ct,be=tt,be=Bt,be=Ut,be=ht,be=Vt,be=function(){return!1},be=function(){return!1},be=function(ue){return te(ue)===Je},be=function(ue){return te(ue)===Re},be=function(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===ve},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===Pt},be=function(ue){return te(ue)===He},be=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===tt},be=function(ue){return te(ue)===Bt},be=function(ue){return te(ue)===Ut},be=function(ue){return te(ue)===ht},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===Pt||ue===Bt||ue===Ut||ue===ht||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===He||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===wt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},66133:function(Rn,ti,be){"use strict";be(39988)},86128:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return me}});var ve=be(87462),tt=be(4942),Pt=be(1413),Ut=be(97685),Bt=be(45987),Re=be(67294),Je=be(94184),pt=be.n(Je),wt=be(64217),ht=be(27822),Vt=function(Pe){for(var Ke=Pe.prefixCls,qe=Pe.level,ft=Pe.isStart,st=Pe.isEnd,rt="".concat(Ke,"-indent-unit"),Tt=[],Mt=0;Mt<qe;Mt+=1)Tt.push(Re.createElement("span",{key:Mt,className:pt()(rt,(0,tt.Z)((0,tt.Z)({},"".concat(rt,"-start"),ft[Mt]),"".concat(rt,"-end"),st[Mt]))}));return Re.createElement("span",{"aria-hidden":"true",className:"".concat(Ke,"-indent")},Tt)},ct=Re.memo(Vt),He=be(35381),Te=be(1089),ne=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",ue="close",se="---",ge=function(Pe){var Ke,qe,ft,st=Pe.eventKey,rt=Pe.className,Tt=Pe.style,Mt=Pe.dragOver,yt=Pe.dragOverGapTop,Dt=Pe.dragOverGapBottom,Nt=Pe.isLeaf,Bn=Pe.isStart,On=Pe.isEnd,Qt=Pe.expanded,vn=Pe.selected,lt=Pe.checked,Ge=Pe.halfChecked,Ne=Pe.loading,Nn=Pe.domRef,Xn=Pe.active,Xt=Pe.data,ai=Pe.onMouseMove,xn=Pe.selectable,gi=(0,Bt.Z)(Pe,ne),Zt=Re.useContext(ht.k),Ct=Re.useContext(ht.y),qt=Re.useRef(null),hi=Re.useState(!1),Kt=(0,Ut.Z)(hi,2),Xe=Kt[0],Le=Kt[1],Me=!!(Zt.disabled||Pe.disabled||(Ke=Ct.nodeDisabled)!==null&&Ke!==void 0&&Ke.call(Ct,Xt)),We=Re.useMemo(function(){return!Zt.checkable||Pe.checkable===!1?!1:Zt.checkable},[Zt.checkable,Pe.checkable]),$e=function(hn){Me||Zt.onNodeSelect(hn,(0,Te.F)(Pe))},Be=function(hn){Me||!We||Pe.disableCheckbox||Zt.onNodeCheck(hn,(0,Te.F)(Pe),!lt)},ut=Re.useMemo(function(){return typeof xn=="boolean"?xn:Zt.selectable},[xn,Zt.selectable]),Vn=function(hn){Zt.onNodeClick(hn,(0,Te.F)(Pe)),ut?$e(hn):Be(hn)},In=function(hn){Zt.onNodeDoubleClick(hn,(0,Te.F)(Pe))},Cn=function(hn){Zt.onNodeMouseEnter(hn,(0,Te.F)(Pe))},Pn=function(hn){Zt.onNodeMouseLeave(hn,(0,Te.F)(Pe))},oi=function(hn){Zt.onNodeContextMenu(hn,(0,Te.F)(Pe))},mn=Re.useMemo(function(){return!!(Zt.draggable&&(!Zt.draggable.nodeDraggable||Zt.draggable.nodeDraggable(Xt)))},[Zt.draggable,Xt]),bi=function(hn){hn.stopPropagation(),Le(!0),Zt.onNodeDragStart(hn,Pe);try{hn.dataTransfer.setData("text/plain","")}catch(ri){}},_i=function(hn){hn.preventDefault(),hn.stopPropagation(),Zt.onNodeDragEnter(hn,Pe)},Br=function(hn){hn.preventDefault(),hn.stopPropagation(),Zt.onNodeDragOver(hn,Pe)},Yi=function(hn){hn.stopPropagation(),Zt.onNodeDragLeave(hn,Pe)},ki=function(hn){hn.stopPropagation(),Le(!1),Zt.onNodeDragEnd(hn,Pe)},Xr=function(hn){hn.preventDefault(),hn.stopPropagation(),Le(!1),Zt.onNodeDrop(hn,Pe)},Ki=function(hn){Ne||Zt.onNodeExpand(hn,(0,Te.F)(Pe))},lr=Re.useMemo(function(){var pn=(0,He.Z)(Zt.keyEntities,st)||{},hn=pn.children;return!!(hn||[]).length},[Zt.keyEntities,st]),ar=Re.useMemo(function(){return Nt===!1?!1:Nt||!Zt.loadData&&!lr||Zt.loadData&&Pe.loaded&&!lr},[Nt,Zt.loadData,lr,Pe.loaded]);Re.useEffect(function(){Ne||typeof Zt.loadData=="function"&&Qt&&!ar&&!Pe.loaded&&Zt.onNodeLoad((0,Te.F)(Pe))},[Ne,Zt.loadData,Zt.onNodeLoad,Qt,ar,Pe]);var kn=Re.useMemo(function(){var pn;return(pn=Zt.draggable)!==null&&pn!==void 0&&pn.icon?Re.createElement("span",{className:"".concat(Zt.prefixCls,"-draggable-icon")},Zt.draggable.icon):null},[Zt.draggable]),Bi=function(hn){var ri=Pe.switcherIcon||Zt.switcherIcon;return typeof ri=="function"?ri((0,Pt.Z)((0,Pt.Z)({},Pe),{},{isLeaf:hn})):ri},ea=function(){if(ar){var hn=Bi(!0);return hn!==!1?Re.createElement("span",{className:pt()("".concat(Zt.prefixCls,"-switcher"),"".concat(Zt.prefixCls,"-switcher-noop"))},hn):null}var ri=Bi(!1);return ri!==!1?Re.createElement("span",{onClick:Ki,className:pt()("".concat(Zt.prefixCls,"-switcher"),"".concat(Zt.prefixCls,"-switcher_").concat(Qt?te:ue))},ri):null},Zn=Re.useMemo(function(){if(!We)return null;var pn=typeof We!="boolean"?We:null;return Re.createElement("span",{className:pt()("".concat(Zt.prefixCls,"-checkbox"),(0,tt.Z)((0,tt.Z)((0,tt.Z)({},"".concat(Zt.prefixCls,"-checkbox-checked"),lt),"".concat(Zt.prefixCls,"-checkbox-indeterminate"),!lt&&Ge),"".concat(Zt.prefixCls,"-checkbox-disabled"),Me||Pe.disableCheckbox)),onClick:Be,role:"checkbox","aria-checked":Ge?"mixed":lt,"aria-disabled":Me||Pe.disableCheckbox,"aria-label":"Select ".concat(typeof Pe.title=="string"?Pe.title:"tree node")},pn)},[We,lt,Ge,Me,Pe.disableCheckbox,Pe.title]),Wr=Re.useMemo(function(){return ar?null:Qt?te:ue},[ar,Qt]),ra=Re.useMemo(function(){return Re.createElement("span",{className:pt()("".concat(Zt.prefixCls,"-iconEle"),"".concat(Zt.prefixCls,"-icon__").concat(Wr||"docu"),(0,tt.Z)({},"".concat(Zt.prefixCls,"-icon_loading"),Ne))})},[Zt.prefixCls,Wr,Ne]),sa=Re.useMemo(function(){var pn=!!Zt.draggable,hn=!Pe.disabled&&pn&&Zt.dragOverNodeKey===st;return hn?Zt.dropIndicatorRender({dropPosition:Zt.dropPosition,dropLevelOffset:Zt.dropLevelOffset,indent:Zt.indent,prefixCls:Zt.prefixCls,direction:Zt.direction}):null},[Zt.dropPosition,Zt.dropLevelOffset,Zt.indent,Zt.prefixCls,Zt.direction,Zt.draggable,Zt.dragOverNodeKey,Zt.dropIndicatorRender]),Wa=Re.useMemo(function(){var pn=Pe.title,hn=pn===void 0?se:pn,ri="".concat(Zt.prefixCls,"-node-content-wrapper"),Jn;if(Zt.showIcon){var Wn=Pe.icon||Zt.icon;Jn=Wn?Re.createElement("span",{className:pt()("".concat(Zt.prefixCls,"-iconEle"),"".concat(Zt.prefixCls,"-icon__customize"))},typeof Wn=="function"?Wn(Pe):Wn):ra}else Zt.loadData&&Ne&&(Jn=ra);var nn;return typeof hn=="function"?nn=hn(Xt):Zt.titleRender?nn=Zt.titleRender(Xt):nn=hn,Re.createElement("span",{ref:qt,title:typeof hn=="string"?hn:"",className:pt()(ri,"".concat(ri,"-").concat(Wr||"normal"),(0,tt.Z)({},"".concat(Zt.prefixCls,"-node-selected"),!Me&&(vn||Xe))),onMouseEnter:Cn,onMouseLeave:Pn,onContextMenu:oi,onClick:Vn,onDoubleClick:In},Jn,Re.createElement("span",{className:"".concat(Zt.prefixCls,"-title")},nn),sa)},[Zt.prefixCls,Zt.showIcon,Pe,Zt.icon,ra,Zt.titleRender,Xt,Wr,Cn,Pn,oi,Vn,In]),ma=(0,wt.Z)(gi,{aria:!0,data:!0}),Ha=(0,He.Z)(Zt.keyEntities,st)||{},da=Ha.level,la=On[On.length-1],No=!Me&&mn,ni=Zt.draggingNodeKey===st,Ee=xn!==void 0?{"aria-selected":!!xn}:void 0;return Re.createElement("div",(0,ve.Z)({ref:Nn,role:"treeitem","aria-expanded":Nt?void 0:Qt,className:pt()(rt,"".concat(Zt.prefixCls,"-treenode"),(ft={},(0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)(ft,"".concat(Zt.prefixCls,"-treenode-disabled"),Me),"".concat(Zt.prefixCls,"-treenode-switcher-").concat(Qt?"open":"close"),!Nt),"".concat(Zt.prefixCls,"-treenode-checkbox-checked"),lt),"".concat(Zt.prefixCls,"-treenode-checkbox-indeterminate"),Ge),"".concat(Zt.prefixCls,"-treenode-selected"),vn),"".concat(Zt.prefixCls,"-treenode-loading"),Ne),"".concat(Zt.prefixCls,"-treenode-active"),Xn),"".concat(Zt.prefixCls,"-treenode-leaf-last"),la),"".concat(Zt.prefixCls,"-treenode-draggable"),mn),"dragging",ni),(0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)(ft,"drop-target",Zt.dropTargetKey===st),"drop-container",Zt.dropContainerKey===st),"drag-over",!Me&&Mt),"drag-over-gap-top",!Me&&yt),"drag-over-gap-bottom",!Me&&Dt),"filter-node",(qe=Zt.filterTreeNode)===null||qe===void 0?void 0:qe.call(Zt,(0,Te.F)(Pe))),"".concat(Zt.prefixCls,"-treenode-leaf"),ar))),style:Tt,draggable:No,onDragStart:No?bi:void 0,onDragEnter:mn?_i:void 0,onDragOver:mn?Br:void 0,onDragLeave:mn?Yi:void 0,onDrop:mn?Xr:void 0,onDragEnd:mn?ki:void 0,onMouseMove:ai},Ee,ma),Re.createElement(ct,{prefixCls:Zt.prefixCls,level:da,isStart:Bn,isEnd:On}),kn,ea(),Zn,Wa)};ge.isTreeNode=1;var me=ge},27822:function(Rn,ti,be){"use strict";be.d(ti,{k:function(){return tt},y:function(){return Pt}});var ve=be(67294),tt=ve.createContext(null),Pt=ve.createContext({})},70593:function(Rn,ti,be){"use strict";be.d(ti,{OF:function(){return st.Z},y6:function(){return ue.y},ZP:function(){return Me}});var ve=be(87462),tt=be(71002),Pt=be(1413),Ut=be(74902),Bt=be(15671),Re=be(43144),Je=be(97326),pt=be(60136),wt=be(29388),ht=be(4942),Vt=be(94184),ct=be.n(Vt),He=be(15105),Te=be(64217),ne=be(80334),te=be(67294),ue=be(27822),se=function($e){var Be=$e.dropPosition,ut=$e.dropLevelOffset,Vn=$e.indent,In={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Be){case-1:In.top=0,In.left=-ut*Vn;break;case 1:In.bottom=0,In.left=-ut*Vn;break;case 0:In.bottom=0,In.left=Vn;break}return te.createElement("div",{style:In})},ge=se;function me(We){if(We==null)throw new TypeError("Cannot destructure "+We)}var xe=be(97685),Pe=be(45987),Ke=be(8410),qe=be(73299),ft=be(62874),st=be(86128);function rt(We,$e){var Be=te.useState(!1),ut=(0,xe.Z)(Be,2),Vn=ut[0],In=ut[1];(0,Ke.Z)(function(){if(Vn)return We(),function(){$e()}},[Vn]),(0,Ke.Z)(function(){return In(!0),function(){In(!1)}},[])}var Tt=rt,Mt=be(1089),yt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Dt=te.forwardRef(function(We,$e){var Be=We.className,ut=We.style,Vn=We.motion,In=We.motionNodes,Cn=We.motionType,Pn=We.onMotionStart,oi=We.onMotionEnd,mn=We.active,bi=We.treeNodeRequiredProps,_i=(0,Pe.Z)(We,yt),Br=te.useState(!0),Yi=(0,xe.Z)(Br,2),ki=Yi[0],Xr=Yi[1],Ki=te.useContext(ue.k),lr=Ki.prefixCls,ar=In&&Cn!=="hide";(0,Ke.Z)(function(){In&&ar!==ki&&Xr(ar)},[In]);var kn=function(){In&&Pn()},Bi=te.useRef(!1),ea=function(){In&&!Bi.current&&(Bi.current=!0,oi())};Tt(kn,ea);var Zn=function(ra){ar===ra&&ea()};return In?te.createElement(ft.Z,(0,ve.Z)({ref:$e,visible:ki},Vn,{motionAppear:Cn==="show",onVisibleChanged:Zn}),function(Wr,ra){var sa=Wr.className,Wa=Wr.style;return te.createElement("div",{ref:ra,className:ct()("".concat(lr,"-treenode-motion"),sa),style:Wa},In.map(function(ma){var Ha=Object.assign({},(me(ma.data),ma.data)),da=ma.title,la=ma.key,No=ma.isStart,ni=ma.isEnd;delete Ha.children;var Ee=(0,Mt.H8)(la,bi);return te.createElement(st.Z,(0,ve.Z)({},Ha,Ee,{title:da,active:mn,data:ma.data,key:la,isStart:No,isEnd:ni}))}))}):te.createElement(st.Z,(0,ve.Z)({domRef:$e,className:Be,style:ut},_i,{active:mn}))}),Nt=Dt;function Bn(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Be=We.length,ut=$e.length;if(Math.abs(Be-ut)!==1)return{add:!1,key:null};function Vn(In,Cn){var Pn=new Map;In.forEach(function(mn){Pn.set(mn,!0)});var oi=Cn.filter(function(mn){return!Pn.has(mn)});return oi.length===1?oi[0]:null}return Be<ut?{add:!0,key:Vn(We,$e)}:{add:!1,key:Vn($e,We)}}function On(We,$e,Be){var ut=We.findIndex(function(Pn){return Pn.key===Be}),Vn=We[ut+1],In=$e.findIndex(function(Pn){return Pn.key===Be});if(Vn){var Cn=$e.findIndex(function(Pn){return Pn.key===Vn.key});return $e.slice(In+1,Cn)}return $e.slice(In+1)}var Qt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],vn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},lt=function(){},Ge="RC_TREE_MOTION_".concat(Math.random()),Ne={key:Ge},Nn={key:Ge,level:0,index:0,pos:"0",node:Ne,nodes:[Ne]},Xn={parent:null,children:[],pos:Nn.pos,data:Ne,title:null,key:Ge,isStart:[],isEnd:[]};function Xt(We,$e,Be,ut){return $e===!1||!Be?We:We.slice(0,Math.ceil(Be/ut)+1)}function ai(We){var $e=We.key,Be=We.pos;return(0,Mt.km)($e,Be)}function xn(We){for(var $e=String(We.data.key),Be=We;Be.parent;)Be=Be.parent,$e="".concat(Be.data.key," > ").concat($e);return $e}var gi=te.forwardRef(function(We,$e){var Be=We.prefixCls,ut=We.data,Vn=We.selectable,In=We.checkable,Cn=We.expandedKeys,Pn=We.selectedKeys,oi=We.checkedKeys,mn=We.loadedKeys,bi=We.loadingKeys,_i=We.halfCheckedKeys,Br=We.keyEntities,Yi=We.disabled,ki=We.dragging,Xr=We.dragOverNodeKey,Ki=We.dropPosition,lr=We.motion,ar=We.height,kn=We.itemHeight,Bi=We.virtual,ea=We.scrollWidth,Zn=We.focusable,Wr=We.activeItem,ra=We.focused,sa=We.tabIndex,Wa=We.onKeyDown,ma=We.onFocus,Ha=We.onBlur,da=We.onActiveChange,la=We.onListChangeStart,No=We.onListChangeEnd,ni=(0,Pe.Z)(We,Qt),Ee=te.useRef(null),pn=te.useRef(null);te.useImperativeHandle($e,function(){return{scrollTo:function(Na){Ee.current.scrollTo(Na)},getIndentWidth:function(){return pn.current.offsetWidth}}});var hn=te.useState(Cn),ri=(0,xe.Z)(hn,2),Jn=ri[0],Wn=ri[1],nn=te.useState(ut),ii=(0,xe.Z)(nn,2),Wt=ii[0],Gt=ii[1],Ft=te.useState(ut),un=(0,xe.Z)(Ft,2),Ti=un[0],Ri=un[1],di=te.useState([]),Yt=(0,xe.Z)(di,2),Hn=Yt[0],En=Yt[1],Fr=te.useState(null),si=(0,xe.Z)(Fr,2),tn=si[0],Vi=si[1],Hr=te.useRef(ut);Hr.current=ut;function Or(){var Xo=Hr.current;Gt(Xo),Ri(Xo),En([]),Vi(null),No()}(0,Ke.Z)(function(){Wn(Cn);var Xo=Bn(Jn,Cn);if(Xo.key!==null)if(Xo.add){var Na=Wt.findIndex(function(Ho){var vi=Ho.key;return vi===Xo.key}),aa=Xt(On(Wt,ut,Xo.key),Bi,ar,kn),hr=Wt.slice();hr.splice(Na+1,0,Xn),Ri(hr),En(aa),Vi("show")}else{var Nr=ut.findIndex(function(Ho){var vi=Ho.key;return vi===Xo.key}),io=Xt(On(ut,Wt,Xo.key),Bi,ar,kn),va=ut.slice();va.splice(Nr+1,0,Xn),Ri(va),En(io),Vi("hide")}else Wt!==ut&&(Gt(ut),Ri(ut))},[Cn,ut]),te.useEffect(function(){ki||Or()},[ki]);var wn=lr?Ti:ut,or={expandedKeys:Cn,selectedKeys:Pn,loadedKeys:mn,loadingKeys:bi,checkedKeys:oi,halfCheckedKeys:_i,dragOverNodeKey:Xr,dropPosition:Ki,keyEntities:Br};return te.createElement(te.Fragment,null,ra&&Wr&&te.createElement("span",{style:vn,"aria-live":"assertive"},xn(Wr)),te.createElement("div",null,te.createElement("input",{style:vn,disabled:Zn===!1||Yi,tabIndex:Zn!==!1?sa:null,onKeyDown:Wa,onFocus:ma,onBlur:Ha,value:"",onChange:lt,"aria-label":"for screen reader"})),te.createElement("div",{className:"".concat(Be,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},te.createElement("div",{className:"".concat(Be,"-indent")},te.createElement("div",{ref:pn,className:"".concat(Be,"-indent-unit")}))),te.createElement(qe.Z,(0,ve.Z)({},ni,{data:wn,itemKey:ai,height:ar,fullHeight:!1,virtual:Bi,itemHeight:kn,scrollWidth:ea,prefixCls:"".concat(Be,"-list"),ref:Ee,role:"tree",onVisibleChange:function(Na){Na.every(function(aa){return ai(aa)!==Ge})&&Or()}}),function(Xo){var Na=Xo.pos,aa=Object.assign({},(me(Xo.data),Xo.data)),hr=Xo.title,Nr=Xo.key,io=Xo.isStart,va=Xo.isEnd,Ho=(0,Mt.km)(Nr,Na);delete aa.key,delete aa.children;var vi=(0,Mt.H8)(Ho,or);return te.createElement(Nt,(0,ve.Z)({},aa,vi,{title:hr,active:!!Wr&&Nr===Wr.key,pos:Na,data:Xo.data,isStart:io,isEnd:va,motion:lr,motionNodes:Nr===Ge?Hn:null,motionType:tn,onMotionStart:la,onMotionEnd:Or,treeNodeRequiredProps:or,onMouseMove:function(){da(null)}}))}))}),Zt=gi,Ct=be(10225),qt=be(17341),hi=be(35381),Kt=10,Xe=function(We){(0,pt.Z)(Be,We);var $e=(0,wt.Z)(Be);function Be(){var ut;(0,Bt.Z)(this,Be);for(var Vn=arguments.length,In=new Array(Vn),Cn=0;Cn<Vn;Cn++)In[Cn]=arguments[Cn];return ut=$e.call.apply($e,[this].concat(In)),(0,ht.Z)((0,Je.Z)(ut),"destroyed",!1),(0,ht.Z)((0,Je.Z)(ut),"delayedDragEnterLogic",void 0),(0,ht.Z)((0,Je.Z)(ut),"loadingRetryTimes",{}),(0,ht.Z)((0,Je.Z)(ut),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,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,fieldNames:(0,Mt.w$)()}),(0,ht.Z)((0,Je.Z)(ut),"dragStartMousePosition",null),(0,ht.Z)((0,Je.Z)(ut),"dragNodeProps",null),(0,ht.Z)((0,Je.Z)(ut),"currentMouseOverDroppableNodeKey",null),(0,ht.Z)((0,Je.Z)(ut),"listRef",te.createRef()),(0,ht.Z)((0,Je.Z)(ut),"onNodeDragStart",function(Pn,oi){var mn=ut.state,bi=mn.expandedKeys,_i=mn.keyEntities,Br=ut.props.onDragStart,Yi=oi.eventKey;ut.dragNodeProps=oi,ut.dragStartMousePosition={x:Pn.clientX,y:Pn.clientY};var ki=(0,Ct._5)(bi,Yi);ut.setState({draggingNodeKey:Yi,dragChildrenKeys:(0,Ct.wA)(Yi,_i),indent:ut.listRef.current.getIndentWidth()}),ut.setExpandedKeys(ki),window.addEventListener("dragend",ut.onWindowDragEnd),Br==null||Br({event:Pn,node:(0,Mt.F)(oi)})}),(0,ht.Z)((0,Je.Z)(ut),"onNodeDragEnter",function(Pn,oi){var mn=ut.state,bi=mn.expandedKeys,_i=mn.keyEntities,Br=mn.dragChildrenKeys,Yi=mn.flattenNodes,ki=mn.indent,Xr=ut.props,Ki=Xr.onDragEnter,lr=Xr.onExpand,ar=Xr.allowDrop,kn=Xr.direction,Bi=oi.pos,ea=oi.eventKey;if(ut.currentMouseOverDroppableNodeKey!==ea&&(ut.currentMouseOverDroppableNodeKey=ea),!ut.dragNodeProps){ut.resetDragState();return}var Zn=(0,Ct.OM)(Pn,ut.dragNodeProps,oi,ki,ut.dragStartMousePosition,ar,Yi,_i,bi,kn),Wr=Zn.dropPosition,ra=Zn.dropLevelOffset,sa=Zn.dropTargetKey,Wa=Zn.dropContainerKey,ma=Zn.dropTargetPos,Ha=Zn.dropAllowed,da=Zn.dragOverNodeKey;if(Br.includes(sa)||!Ha){ut.resetDragState();return}if(ut.delayedDragEnterLogic||(ut.delayedDragEnterLogic={}),Object.keys(ut.delayedDragEnterLogic).forEach(function(la){clearTimeout(ut.delayedDragEnterLogic[la])}),ut.dragNodeProps.eventKey!==oi.eventKey&&(Pn.persist(),ut.delayedDragEnterLogic[Bi]=window.setTimeout(function(){if(ut.state.draggingNodeKey!==null){var la=(0,Ut.Z)(bi),No=(0,hi.Z)(_i,oi.eventKey);No&&(No.children||[]).length&&(la=(0,Ct.L0)(bi,oi.eventKey)),ut.props.hasOwnProperty("expandedKeys")||ut.setExpandedKeys(la),lr==null||lr(la,{node:(0,Mt.F)(oi),expanded:!0,nativeEvent:Pn.nativeEvent})}},800)),ut.dragNodeProps.eventKey===sa&&ra===0){ut.resetDragState();return}ut.setState({dragOverNodeKey:da,dropPosition:Wr,dropLevelOffset:ra,dropTargetKey:sa,dropContainerKey:Wa,dropTargetPos:ma,dropAllowed:Ha}),Ki==null||Ki({event:Pn,node:(0,Mt.F)(oi),expandedKeys:bi})}),(0,ht.Z)((0,Je.Z)(ut),"onNodeDragOver",function(Pn,oi){var mn=ut.state,bi=mn.dragChildrenKeys,_i=mn.flattenNodes,Br=mn.keyEntities,Yi=mn.expandedKeys,ki=mn.indent,Xr=ut.props,Ki=Xr.onDragOver,lr=Xr.allowDrop,ar=Xr.direction;if(ut.dragNodeProps){var kn=(0,Ct.OM)(Pn,ut.dragNodeProps,oi,ki,ut.dragStartMousePosition,lr,_i,Br,Yi,ar),Bi=kn.dropPosition,ea=kn.dropLevelOffset,Zn=kn.dropTargetKey,Wr=kn.dropContainerKey,ra=kn.dropTargetPos,sa=kn.dropAllowed,Wa=kn.dragOverNodeKey;bi.includes(Zn)||!sa||(ut.dragNodeProps.eventKey===Zn&&ea===0?ut.state.dropPosition===null&&ut.state.dropLevelOffset===null&&ut.state.dropTargetKey===null&&ut.state.dropContainerKey===null&&ut.state.dropTargetPos===null&&ut.state.dropAllowed===!1&&ut.state.dragOverNodeKey===null||ut.resetDragState():Bi===ut.state.dropPosition&&ea===ut.state.dropLevelOffset&&Zn===ut.state.dropTargetKey&&Wr===ut.state.dropContainerKey&&ra===ut.state.dropTargetPos&&sa===ut.state.dropAllowed&&Wa===ut.state.dragOverNodeKey||ut.setState({dropPosition:Bi,dropLevelOffset:ea,dropTargetKey:Zn,dropContainerKey:Wr,dropTargetPos:ra,dropAllowed:sa,dragOverNodeKey:Wa}),Ki==null||Ki({event:Pn,node:(0,Mt.F)(oi)}))}}),(0,ht.Z)((0,Je.Z)(ut),"onNodeDragLeave",function(Pn,oi){ut.currentMouseOverDroppableNodeKey===oi.eventKey&&!Pn.currentTarget.contains(Pn.relatedTarget)&&(ut.resetDragState(),ut.currentMouseOverDroppableNodeKey=null);var mn=ut.props.onDragLeave;mn==null||mn({event:Pn,node:(0,Mt.F)(oi)})}),(0,ht.Z)((0,Je.Z)(ut),"onWindowDragEnd",function(Pn){ut.onNodeDragEnd(Pn,null,!0),window.removeEventListener("dragend",ut.onWindowDragEnd)}),(0,ht.Z)((0,Je.Z)(ut),"onNodeDragEnd",function(Pn,oi){var mn=ut.props.onDragEnd;ut.setState({dragOverNodeKey:null}),ut.cleanDragState(),mn==null||mn({event:Pn,node:(0,Mt.F)(oi)}),ut.dragNodeProps=null,window.removeEventListener("dragend",ut.onWindowDragEnd)}),(0,ht.Z)((0,Je.Z)(ut),"onNodeDrop",function(Pn,oi){var mn,bi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_i=ut.state,Br=_i.dragChildrenKeys,Yi=_i.dropPosition,ki=_i.dropTargetKey,Xr=_i.dropTargetPos,Ki=_i.dropAllowed;if(Ki){var lr=ut.props.onDrop;if(ut.setState({dragOverNodeKey:null}),ut.cleanDragState(),ki!==null){var ar=(0,Pt.Z)((0,Pt.Z)({},(0,Mt.H8)(ki,ut.getTreeNodeRequiredProps())),{},{active:((mn=ut.getActiveItem())===null||mn===void 0?void 0:mn.key)===ki,data:(0,hi.Z)(ut.state.keyEntities,ki).node}),kn=Br.includes(ki);(0,ne.ZP)(!kn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Bi=(0,Ct.yx)(Xr),ea={event:Pn,node:(0,Mt.F)(ar),dragNode:ut.dragNodeProps?(0,Mt.F)(ut.dragNodeProps):null,dragNodesKeys:[ut.dragNodeProps.eventKey].concat(Br),dropToGap:Yi!==0,dropPosition:Yi+Number(Bi[Bi.length-1])};bi||lr==null||lr(ea),ut.dragNodeProps=null}}}),(0,ht.Z)((0,Je.Z)(ut),"cleanDragState",function(){var Pn=ut.state.draggingNodeKey;Pn!==null&&ut.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ut.dragStartMousePosition=null,ut.currentMouseOverDroppableNodeKey=null}),(0,ht.Z)((0,Je.Z)(ut),"triggerExpandActionExpand",function(Pn,oi){var mn=ut.state,bi=mn.expandedKeys,_i=mn.flattenNodes,Br=oi.expanded,Yi=oi.key,ki=oi.isLeaf;if(!(ki||Pn.shiftKey||Pn.metaKey||Pn.ctrlKey)){var Xr=_i.filter(function(lr){return lr.key===Yi})[0],Ki=(0,Mt.F)((0,Pt.Z)((0,Pt.Z)({},(0,Mt.H8)(Yi,ut.getTreeNodeRequiredProps())),{},{data:Xr.data}));ut.setExpandedKeys(Br?(0,Ct._5)(bi,Yi):(0,Ct.L0)(bi,Yi)),ut.onNodeExpand(Pn,Ki)}}),(0,ht.Z)((0,Je.Z)(ut),"onNodeClick",function(Pn,oi){var mn=ut.props,bi=mn.onClick,_i=mn.expandAction;_i==="click"&&ut.triggerExpandActionExpand(Pn,oi),bi==null||bi(Pn,oi)}),(0,ht.Z)((0,Je.Z)(ut),"onNodeDoubleClick",function(Pn,oi){var mn=ut.props,bi=mn.onDoubleClick,_i=mn.expandAction;_i==="doubleClick"&&ut.triggerExpandActionExpand(Pn,oi),bi==null||bi(Pn,oi)}),(0,ht.Z)((0,Je.Z)(ut),"onNodeSelect",function(Pn,oi){var mn=ut.state.selectedKeys,bi=ut.state,_i=bi.keyEntities,Br=bi.fieldNames,Yi=ut.props,ki=Yi.onSelect,Xr=Yi.multiple,Ki=oi.selected,lr=oi[Br.key],ar=!Ki;ar?Xr?mn=(0,Ct.L0)(mn,lr):mn=[lr]:mn=(0,Ct._5)(mn,lr);var kn=mn.map(function(Bi){var ea=(0,hi.Z)(_i,Bi);return ea?ea.node:null}).filter(Boolean);ut.setUncontrolledState({selectedKeys:mn}),ki==null||ki(mn,{event:"select",selected:ar,node:oi,selectedNodes:kn,nativeEvent:Pn.nativeEvent})}),(0,ht.Z)((0,Je.Z)(ut),"onNodeCheck",function(Pn,oi,mn){var bi=ut.state,_i=bi.keyEntities,Br=bi.checkedKeys,Yi=bi.halfCheckedKeys,ki=ut.props,Xr=ki.checkStrictly,Ki=ki.onCheck,lr=oi.key,ar,kn={event:"check",node:oi,checked:mn,nativeEvent:Pn.nativeEvent};if(Xr){var Bi=mn?(0,Ct.L0)(Br,lr):(0,Ct._5)(Br,lr),ea=(0,Ct._5)(Yi,lr);ar={checked:Bi,halfChecked:ea},kn.checkedNodes=Bi.map(function(ma){return(0,hi.Z)(_i,ma)}).filter(Boolean).map(function(ma){return ma.node}),ut.setUncontrolledState({checkedKeys:Bi})}else{var Zn=(0,qt.S)([].concat((0,Ut.Z)(Br),[lr]),!0,_i),Wr=Zn.checkedKeys,ra=Zn.halfCheckedKeys;if(!mn){var sa=new Set(Wr);sa.delete(lr);var Wa=(0,qt.S)(Array.from(sa),{checked:!1,halfCheckedKeys:ra},_i);Wr=Wa.checkedKeys,ra=Wa.halfCheckedKeys}ar=Wr,kn.checkedNodes=[],kn.checkedNodesPositions=[],kn.halfCheckedKeys=ra,Wr.forEach(function(ma){var Ha=(0,hi.Z)(_i,ma);if(Ha){var da=Ha.node,la=Ha.pos;kn.checkedNodes.push(da),kn.checkedNodesPositions.push({node:da,pos:la})}}),ut.setUncontrolledState({checkedKeys:Wr},!1,{halfCheckedKeys:ra})}Ki==null||Ki(ar,kn)}),(0,ht.Z)((0,Je.Z)(ut),"onNodeLoad",function(Pn){var oi,mn=Pn.key,bi=ut.state.keyEntities,_i=(0,hi.Z)(bi,mn);if(!(_i!=null&&(oi=_i.children)!==null&&oi!==void 0&&oi.length)){var Br=new Promise(function(Yi,ki){ut.setState(function(Xr){var Ki=Xr.loadedKeys,lr=Ki===void 0?[]:Ki,ar=Xr.loadingKeys,kn=ar===void 0?[]:ar,Bi=ut.props,ea=Bi.loadData,Zn=Bi.onLoad;if(!ea||lr.includes(mn)||kn.includes(mn))return null;var Wr=ea(Pn);return Wr.then(function(){var ra=ut.state.loadedKeys,sa=(0,Ct.L0)(ra,mn);Zn==null||Zn(sa,{event:"load",node:Pn}),ut.setUncontrolledState({loadedKeys:sa}),ut.setState(function(Wa){return{loadingKeys:(0,Ct._5)(Wa.loadingKeys,mn)}}),Yi()}).catch(function(ra){if(ut.setState(function(Wa){return{loadingKeys:(0,Ct._5)(Wa.loadingKeys,mn)}}),ut.loadingRetryTimes[mn]=(ut.loadingRetryTimes[mn]||0)+1,ut.loadingRetryTimes[mn]>=Kt){var sa=ut.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ut.setUncontrolledState({loadedKeys:(0,Ct.L0)(sa,mn)}),Yi()}ki(ra)}),{loadingKeys:(0,Ct.L0)(kn,mn)}})});return Br.catch(function(){}),Br}}),(0,ht.Z)((0,Je.Z)(ut),"onNodeMouseEnter",function(Pn,oi){var mn=ut.props.onMouseEnter;mn==null||mn({event:Pn,node:oi})}),(0,ht.Z)((0,Je.Z)(ut),"onNodeMouseLeave",function(Pn,oi){var mn=ut.props.onMouseLeave;mn==null||mn({event:Pn,node:oi})}),(0,ht.Z)((0,Je.Z)(ut),"onNodeContextMenu",function(Pn,oi){var mn=ut.props.onRightClick;mn&&(Pn.preventDefault(),mn({event:Pn,node:oi}))}),(0,ht.Z)((0,Je.Z)(ut),"onFocus",function(){var Pn=ut.props.onFocus;ut.setState({focused:!0});for(var oi=arguments.length,mn=new Array(oi),bi=0;bi<oi;bi++)mn[bi]=arguments[bi];Pn==null||Pn.apply(void 0,mn)}),(0,ht.Z)((0,Je.Z)(ut),"onBlur",function(){var Pn=ut.props.onBlur;ut.setState({focused:!1}),ut.onActiveChange(null);for(var oi=arguments.length,mn=new Array(oi),bi=0;bi<oi;bi++)mn[bi]=arguments[bi];Pn==null||Pn.apply(void 0,mn)}),(0,ht.Z)((0,Je.Z)(ut),"getTreeNodeRequiredProps",function(){var Pn=ut.state,oi=Pn.expandedKeys,mn=Pn.selectedKeys,bi=Pn.loadedKeys,_i=Pn.loadingKeys,Br=Pn.checkedKeys,Yi=Pn.halfCheckedKeys,ki=Pn.dragOverNodeKey,Xr=Pn.dropPosition,Ki=Pn.keyEntities;return{expandedKeys:oi||[],selectedKeys:mn||[],loadedKeys:bi||[],loadingKeys:_i||[],checkedKeys:Br||[],halfCheckedKeys:Yi||[],dragOverNodeKey:ki,dropPosition:Xr,keyEntities:Ki}}),(0,ht.Z)((0,Je.Z)(ut),"setExpandedKeys",function(Pn){var oi=ut.state,mn=oi.treeData,bi=oi.fieldNames,_i=(0,Mt.oH)(mn,Pn,bi);ut.setUncontrolledState({expandedKeys:Pn,flattenNodes:_i},!0)}),(0,ht.Z)((0,Je.Z)(ut),"onNodeExpand",function(Pn,oi){var mn=ut.state.expandedKeys,bi=ut.state,_i=bi.listChanging,Br=bi.fieldNames,Yi=ut.props,ki=Yi.onExpand,Xr=Yi.loadData,Ki=oi.expanded,lr=oi[Br.key];if(!_i){var ar=mn.includes(lr),kn=!Ki;if((0,ne.ZP)(Ki&&ar||!Ki&&!ar,"Expand state not sync with index check"),mn=kn?(0,Ct.L0)(mn,lr):(0,Ct._5)(mn,lr),ut.setExpandedKeys(mn),ki==null||ki(mn,{node:oi,expanded:kn,nativeEvent:Pn.nativeEvent}),kn&&Xr){var Bi=ut.onNodeLoad(oi);Bi&&Bi.then(function(){var ea=(0,Mt.oH)(ut.state.treeData,mn,Br);ut.setUncontrolledState({flattenNodes:ea})}).catch(function(){var ea=ut.state.expandedKeys,Zn=(0,Ct._5)(ea,lr);ut.setExpandedKeys(Zn)})}}}),(0,ht.Z)((0,Je.Z)(ut),"onListChangeStart",function(){ut.setUncontrolledState({listChanging:!0})}),(0,ht.Z)((0,Je.Z)(ut),"onListChangeEnd",function(){setTimeout(function(){ut.setUncontrolledState({listChanging:!1})})}),(0,ht.Z)((0,Je.Z)(ut),"onActiveChange",function(Pn){var oi=ut.state.activeKey,mn=ut.props,bi=mn.onActiveChange,_i=mn.itemScrollOffset,Br=_i===void 0?0:_i;oi!==Pn&&(ut.setState({activeKey:Pn}),Pn!==null&&ut.scrollTo({key:Pn,offset:Br}),bi==null||bi(Pn))}),(0,ht.Z)((0,Je.Z)(ut),"getActiveItem",function(){var Pn=ut.state,oi=Pn.activeKey,mn=Pn.flattenNodes;return oi===null?null:mn.find(function(bi){var _i=bi.key;return _i===oi})||null}),(0,ht.Z)((0,Je.Z)(ut),"offsetActiveKey",function(Pn){var oi=ut.state,mn=oi.flattenNodes,bi=oi.activeKey,_i=mn.findIndex(function(ki){var Xr=ki.key;return Xr===bi});_i===-1&&Pn<0&&(_i=mn.length),_i=(_i+Pn+mn.length)%mn.length;var Br=mn[_i];if(Br){var Yi=Br.key;ut.onActiveChange(Yi)}else ut.onActiveChange(null)}),(0,ht.Z)((0,Je.Z)(ut),"onKeyDown",function(Pn){var oi=ut.state,mn=oi.activeKey,bi=oi.expandedKeys,_i=oi.checkedKeys,Br=oi.fieldNames,Yi=ut.props,ki=Yi.onKeyDown,Xr=Yi.checkable,Ki=Yi.selectable;switch(Pn.which){case He.Z.UP:{ut.offsetActiveKey(-1),Pn.preventDefault();break}case He.Z.DOWN:{ut.offsetActiveKey(1),Pn.preventDefault();break}}var lr=ut.getActiveItem();if(lr&&lr.data){var ar=ut.getTreeNodeRequiredProps(),kn=lr.data.isLeaf===!1||!!(lr.data[Br.children]||[]).length,Bi=(0,Mt.F)((0,Pt.Z)((0,Pt.Z)({},(0,Mt.H8)(mn,ar)),{},{data:lr.data,active:!0}));switch(Pn.which){case He.Z.LEFT:{kn&&bi.includes(mn)?ut.onNodeExpand({},Bi):lr.parent&&ut.onActiveChange(lr.parent.key),Pn.preventDefault();break}case He.Z.RIGHT:{kn&&!bi.includes(mn)?ut.onNodeExpand({},Bi):lr.children&&lr.children.length&&ut.onActiveChange(lr.children[0].key),Pn.preventDefault();break}case He.Z.ENTER:case He.Z.SPACE:{Xr&&!Bi.disabled&&Bi.checkable!==!1&&!Bi.disableCheckbox?ut.onNodeCheck({},Bi,!_i.includes(mn)):!Xr&&Ki&&!Bi.disabled&&Bi.selectable!==!1&&ut.onNodeSelect({},Bi);break}}}ki==null||ki(Pn)}),(0,ht.Z)((0,Je.Z)(ut),"setUncontrolledState",function(Pn){var oi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ut.destroyed){var bi=!1,_i=!0,Br={};Object.keys(Pn).forEach(function(Yi){if(ut.props.hasOwnProperty(Yi)){_i=!1;return}bi=!0,Br[Yi]=Pn[Yi]}),bi&&(!oi||_i)&&ut.setState((0,Pt.Z)((0,Pt.Z)({},Br),mn))}}),(0,ht.Z)((0,Je.Z)(ut),"scrollTo",function(Pn){ut.listRef.current.scrollTo(Pn)}),ut}return(0,Re.Z)(Be,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Vn=this.props,In=Vn.activeKey,Cn=Vn.itemScrollOffset,Pn=Cn===void 0?0:Cn;In!==void 0&&In!==this.state.activeKey&&(this.setState({activeKey:In}),In!==null&&this.scrollTo({key:In,offset:Pn}))}},{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 Vn=this.state,In=Vn.focused,Cn=Vn.flattenNodes,Pn=Vn.keyEntities,oi=Vn.draggingNodeKey,mn=Vn.activeKey,bi=Vn.dropLevelOffset,_i=Vn.dropContainerKey,Br=Vn.dropTargetKey,Yi=Vn.dropPosition,ki=Vn.dragOverNodeKey,Xr=Vn.indent,Ki=this.props,lr=Ki.prefixCls,ar=Ki.className,kn=Ki.style,Bi=Ki.showLine,ea=Ki.focusable,Zn=Ki.tabIndex,Wr=Zn===void 0?0:Zn,ra=Ki.selectable,sa=Ki.showIcon,Wa=Ki.icon,ma=Ki.switcherIcon,Ha=Ki.draggable,da=Ki.checkable,la=Ki.checkStrictly,No=Ki.disabled,ni=Ki.motion,Ee=Ki.loadData,pn=Ki.filterTreeNode,hn=Ki.height,ri=Ki.itemHeight,Jn=Ki.scrollWidth,Wn=Ki.virtual,nn=Ki.titleRender,ii=Ki.dropIndicatorRender,Wt=Ki.onContextMenu,Gt=Ki.onScroll,Ft=Ki.direction,un=Ki.rootClassName,Ti=Ki.rootStyle,Ri=(0,Te.Z)(this.props,{aria:!0,data:!0}),di;Ha&&((0,tt.Z)(Ha)==="object"?di=Ha:typeof Ha=="function"?di={nodeDraggable:Ha}:di={});var Yt={prefixCls:lr,selectable:ra,showIcon:sa,icon:Wa,switcherIcon:ma,draggable:di,draggingNodeKey:oi,checkable:da,checkStrictly:la,disabled:No,keyEntities:Pn,dropLevelOffset:bi,dropContainerKey:_i,dropTargetKey:Br,dropPosition:Yi,dragOverNodeKey:ki,indent:Xr,direction:Ft,dropIndicatorRender:ii,loadData:Ee,filterTreeNode:pn,titleRender:nn,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};return te.createElement(ue.k.Provider,{value:Yt},te.createElement("div",{className:ct()(lr,ar,un,(0,ht.Z)((0,ht.Z)((0,ht.Z)({},"".concat(lr,"-show-line"),Bi),"".concat(lr,"-focused"),In),"".concat(lr,"-active-focused"),mn!==null)),style:Ti},te.createElement(Zt,(0,ve.Z)({ref:this.listRef,prefixCls:lr,style:kn,data:Cn,disabled:No,selectable:ra,checkable:!!da,motion:ni,dragging:oi!==null,height:hn,itemHeight:ri,virtual:Wn,focusable:ea,focused:In,tabIndex:Wr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Wt,onScroll:Gt,scrollWidth:Jn},this.getTreeNodeRequiredProps(),Ri))))}}],[{key:"getDerivedStateFromProps",value:function(Vn,In){var Cn=In.prevProps,Pn={prevProps:Vn};function oi(Wr){return!Cn&&Vn.hasOwnProperty(Wr)||Cn&&Cn[Wr]!==Vn[Wr]}var mn,bi=In.fieldNames;if(oi("fieldNames")&&(bi=(0,Mt.w$)(Vn.fieldNames),Pn.fieldNames=bi),oi("treeData")?mn=Vn.treeData:oi("children")&&((0,ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),mn=(0,Mt.zn)(Vn.children)),mn){Pn.treeData=mn;var _i=(0,Mt.I8)(mn,{fieldNames:bi});Pn.keyEntities=(0,Pt.Z)((0,ht.Z)({},Ge,Nn),_i.keyEntities)}var Br=Pn.keyEntities||In.keyEntities;if(oi("expandedKeys")||Cn&&oi("autoExpandParent"))Pn.expandedKeys=Vn.autoExpandParent||!Cn&&Vn.defaultExpandParent?(0,Ct.r7)(Vn.expandedKeys,Br):Vn.expandedKeys;else if(!Cn&&Vn.defaultExpandAll){var Yi=(0,Pt.Z)({},Br);delete Yi[Ge];var ki=[];Object.keys(Yi).forEach(function(Wr){var ra=Yi[Wr];ra.children&&ra.children.length&&ki.push(ra.key)}),Pn.expandedKeys=ki}else!Cn&&Vn.defaultExpandedKeys&&(Pn.expandedKeys=Vn.autoExpandParent||Vn.defaultExpandParent?(0,Ct.r7)(Vn.defaultExpandedKeys,Br):Vn.defaultExpandedKeys);if(Pn.expandedKeys||delete Pn.expandedKeys,mn||Pn.expandedKeys){var Xr=(0,Mt.oH)(mn||In.treeData,Pn.expandedKeys||In.expandedKeys,bi);Pn.flattenNodes=Xr}if(Vn.selectable&&(oi("selectedKeys")?Pn.selectedKeys=(0,Ct.BT)(Vn.selectedKeys,Vn):!Cn&&Vn.defaultSelectedKeys&&(Pn.selectedKeys=(0,Ct.BT)(Vn.defaultSelectedKeys,Vn))),Vn.checkable){var Ki;if(oi("checkedKeys")?Ki=(0,Ct.E6)(Vn.checkedKeys)||{}:!Cn&&Vn.defaultCheckedKeys?Ki=(0,Ct.E6)(Vn.defaultCheckedKeys)||{}:mn&&(Ki=(0,Ct.E6)(Vn.checkedKeys)||{checkedKeys:In.checkedKeys,halfCheckedKeys:In.halfCheckedKeys}),Ki){var lr=Ki,ar=lr.checkedKeys,kn=ar===void 0?[]:ar,Bi=lr.halfCheckedKeys,ea=Bi===void 0?[]:Bi;if(!Vn.checkStrictly){var Zn=(0,qt.S)(kn,!0,Br);kn=Zn.checkedKeys,ea=Zn.halfCheckedKeys}Pn.checkedKeys=kn,Pn.halfCheckedKeys=ea}}return oi("loadedKeys")&&(Pn.loadedKeys=Vn.loadedKeys),Pn}}]),Be}(te.Component);(0,ht.Z)(Xe,"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:ge,allowDrop:function(){return!0},expandAction:!1}),(0,ht.Z)(Xe,"TreeNode",st.Z);var Le=Xe,Me=Le},10225:function(Rn,ti,be){"use strict";be.d(ti,{BT:function(){return te},E6:function(){return ge},L0:function(){return ht},OM:function(){return ne},_5:function(){return wt},r7:function(){return me},wA:function(){return ct},yx:function(){return Vt}});var ve=be(74902),tt=be(71002),Pt=be(80334),Ut=be(67294),Bt=be(86128),Re=be(35381),Je=be(1089),pt=null;function wt(xe,Pe){if(!xe)return[];var Ke=xe.slice(),qe=Ke.indexOf(Pe);return qe>=0&&Ke.splice(qe,1),Ke}function ht(xe,Pe){var Ke=(xe||[]).slice();return Ke.indexOf(Pe)===-1&&Ke.push(Pe),Ke}function Vt(xe){return xe.split("-")}function ct(xe,Pe){var Ke=[],qe=(0,Re.Z)(Pe,xe);function ft(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];st.forEach(function(rt){var Tt=rt.key,Mt=rt.children;Ke.push(Tt),ft(Mt)})}return ft(qe.children),Ke}function He(xe){if(xe.parent){var Pe=Vt(xe.pos);return Number(Pe[Pe.length-1])===xe.parent.children.length-1}return!1}function Te(xe){var Pe=Vt(xe.pos);return Number(Pe[Pe.length-1])===0}function ne(xe,Pe,Ke,qe,ft,st,rt,Tt,Mt,yt){var Dt,Nt=xe.clientX,Bn=xe.clientY,On=xe.target.getBoundingClientRect(),Qt=On.top,vn=On.height,lt=(yt==="rtl"?-1:1)*(((ft==null?void 0:ft.x)||0)-Nt),Ge=(lt-12)/qe,Ne=Mt.filter(function(Me){var We;return(We=Tt[Me])===null||We===void 0||(We=We.children)===null||We===void 0?void 0:We.length}),Nn=(0,Re.Z)(Tt,Ke.eventKey);if(Bn<Qt+vn/2){var Xn=rt.findIndex(function(Me){return Me.key===Nn.key}),Xt=Xn<=0?0:Xn-1,ai=rt[Xt].key;Nn=(0,Re.Z)(Tt,ai)}var xn=Nn.key,gi=Nn,Zt=Nn.key,Ct=0,qt=0;if(!Ne.includes(xn))for(var hi=0;hi<Ge&&He(Nn);hi+=1)Nn=Nn.parent,qt+=1;var Kt=Pe.data,Xe=Nn.node,Le=!0;return Te(Nn)&&Nn.level===0&&Bn<Qt+vn/2&&st({dragNode:Kt,dropNode:Xe,dropPosition:-1})&&Nn.key===Ke.eventKey?Ct=-1:(gi.children||[]).length&&Ne.includes(Zt)?st({dragNode:Kt,dropNode:Xe,dropPosition:0})?Ct=0:Le=!1:qt===0?Ge>-1.5?st({dragNode:Kt,dropNode:Xe,dropPosition:1})?Ct=1:Le=!1:st({dragNode:Kt,dropNode:Xe,dropPosition:0})?Ct=0:st({dragNode:Kt,dropNode:Xe,dropPosition:1})?Ct=1:Le=!1:st({dragNode:Kt,dropNode:Xe,dropPosition:1})?Ct=1:Le=!1,{dropPosition:Ct,dropLevelOffset:qt,dropTargetKey:Nn.key,dropTargetPos:Nn.pos,dragOverNodeKey:Zt,dropContainerKey:Ct===0?null:((Dt=Nn.parent)===null||Dt===void 0?void 0:Dt.key)||null,dropAllowed:Le}}function te(xe,Pe){if(xe){var Ke=Pe.multiple;return Ke?xe.slice():xe.length?[xe[0]]:xe}}var ue=function(Pe){return Pe};function se(xe,Pe){if(!xe)return[];var Ke=Pe||{},qe=Ke.processProps,ft=qe===void 0?ue:qe,st=Array.isArray(xe)?xe:[xe];return st.map(function(rt){var Tt=rt.children,Mt=_objectWithoutProperties(rt,pt),yt=se(Tt,Pe);return React.createElement(TreeNode,_extends({key:Mt.key},ft(Mt)),yt)})}function ge(xe){if(!xe)return null;var Pe;if(Array.isArray(xe))Pe={checkedKeys:xe,halfCheckedKeys:void 0};else if((0,tt.Z)(xe)==="object")Pe={checkedKeys:xe.checked||void 0,halfCheckedKeys:xe.halfChecked||void 0};else return(0,Pt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Pe}function me(xe,Pe){var Ke=new Set;function qe(ft){if(!Ke.has(ft)){var st=(0,Re.Z)(Pe,ft);if(st){Ke.add(ft);var rt=st.parent,Tt=st.node;Tt.disabled||rt&&qe(rt.key)}}}return(xe||[]).forEach(function(ft){qe(ft)}),(0,ve.Z)(Ke)}},17341:function(Rn,ti,be){"use strict";be.d(ti,{S:function(){return Je}});var ve=be(80334),tt=be(35381);function Pt(pt,wt){var ht=new Set;return pt.forEach(function(Vt){wt.has(Vt)||ht.add(Vt)}),ht}function Ut(pt){var wt=pt||{},ht=wt.disabled,Vt=wt.disableCheckbox,ct=wt.checkable;return!!(ht||Vt)||ct===!1}function Bt(pt,wt,ht,Vt){for(var ct=new Set(pt),He=new Set,Te=0;Te<=ht;Te+=1){var ne=wt.get(Te)||new Set;ne.forEach(function(ge){var me=ge.key,xe=ge.node,Pe=ge.children,Ke=Pe===void 0?[]:Pe;ct.has(me)&&!Vt(xe)&&Ke.filter(function(qe){return!Vt(qe.node)}).forEach(function(qe){ct.add(qe.key)})})}for(var te=new Set,ue=ht;ue>=0;ue-=1){var se=wt.get(ue)||new Set;se.forEach(function(ge){var me=ge.parent,xe=ge.node;if(!(Vt(xe)||!ge.parent||te.has(ge.parent.key))){if(Vt(ge.parent.node)){te.add(me.key);return}var Pe=!0,Ke=!1;(me.children||[]).filter(function(qe){return!Vt(qe.node)}).forEach(function(qe){var ft=qe.key,st=ct.has(ft);Pe&&!st&&(Pe=!1),!Ke&&(st||He.has(ft))&&(Ke=!0)}),Pe&&ct.add(me.key),Ke&&He.add(me.key),te.add(me.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(Pt(He,ct))}}function Re(pt,wt,ht,Vt,ct){for(var He=new Set(pt),Te=new Set(wt),ne=0;ne<=Vt;ne+=1){var te=ht.get(ne)||new Set;te.forEach(function(me){var xe=me.key,Pe=me.node,Ke=me.children,qe=Ke===void 0?[]:Ke;!He.has(xe)&&!Te.has(xe)&&!ct(Pe)&&qe.filter(function(ft){return!ct(ft.node)}).forEach(function(ft){He.delete(ft.key)})})}Te=new Set;for(var ue=new Set,se=Vt;se>=0;se-=1){var ge=ht.get(se)||new Set;ge.forEach(function(me){var xe=me.parent,Pe=me.node;if(!(ct(Pe)||!me.parent||ue.has(me.parent.key))){if(ct(me.parent.node)){ue.add(xe.key);return}var Ke=!0,qe=!1;(xe.children||[]).filter(function(ft){return!ct(ft.node)}).forEach(function(ft){var st=ft.key,rt=He.has(st);Ke&&!rt&&(Ke=!1),!qe&&(rt||Te.has(st))&&(qe=!0)}),Ke||He.delete(xe.key),qe&&Te.add(xe.key),ue.add(xe.key)}})}return{checkedKeys:Array.from(He),halfCheckedKeys:Array.from(Pt(Te,He))}}function Je(pt,wt,ht,Vt){var ct=[],He;Vt?He=Vt:He=Ut;var Te=new Set(pt.filter(function(se){var ge=!!(0,tt.Z)(ht,se);return ge||ct.push(se),ge})),ne=new Map,te=0;Object.keys(ht).forEach(function(se){var ge=ht[se],me=ge.level,xe=ne.get(me);xe||(xe=new Set,ne.set(me,xe)),xe.add(ge),te=Math.max(te,me)}),(0,ve.ZP)(!ct.length,"Tree missing follow keys: ".concat(ct.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var ue;return wt===!0?ue=Bt(Te,ne,te,He):ue=Re(Te,wt.halfCheckedKeys,ne,te,He),ue}},35381:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return ve}});function ve(tt,Pt){return tt[Pt]}},1089:function(Rn,ti,be){"use strict";be.d(ti,{F:function(){return me},H8:function(){return ge},I8:function(){return se},km:function(){return ct},oH:function(){return te},w$:function(){return He},zn:function(){return ne}});var ve=be(71002),tt=be(74902),Pt=be(1413),Ut=be(45987),Bt=be(50344),Re=be(98423),Je=be(80334),pt=be(35381),wt=["children"];function ht(xe,Pe){return"".concat(xe,"-").concat(Pe)}function Vt(xe){return xe&&xe.type&&xe.type.isTreeNode}function ct(xe,Pe){return xe!=null?xe:Pe}function He(xe){var Pe=xe||{},Ke=Pe.title,qe=Pe._title,ft=Pe.key,st=Pe.children,rt=Ke||"title";return{title:rt,_title:qe||[rt],key:ft||"key",children:st||"children"}}function Te(xe,Pe){var Ke=new Map;function qe(ft){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ft||[]).forEach(function(rt){var Tt=rt[Pe.key],Mt=rt[Pe.children];warning(Tt!=null,"Tree node must have a certain key: [".concat(st).concat(Tt,"]"));var yt=String(Tt);warning(!Ke.has(yt)||Tt===null||Tt===void 0,"Same 'key' exist in the Tree: ".concat(yt)),Ke.set(yt,!0),qe(Mt,"".concat(st).concat(yt," > "))})}qe(xe)}function ne(xe){function Pe(Ke){var qe=(0,Bt.Z)(Ke);return qe.map(function(ft){if(!Vt(ft))return(0,Je.ZP)(!ft,"Tree/TreeNode can only accept TreeNode as children."),null;var st=ft.key,rt=ft.props,Tt=rt.children,Mt=(0,Ut.Z)(rt,wt),yt=(0,Pt.Z)({key:st},Mt),Dt=Pe(Tt);return Dt.length&&(yt.children=Dt),yt}).filter(function(ft){return ft})}return Pe(xe)}function te(xe,Pe,Ke){var qe=He(Ke),ft=qe._title,st=qe.key,rt=qe.children,Tt=new Set(Pe===!0?[]:Pe),Mt=[];function yt(Dt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Dt.map(function(Bn,On){for(var Qt=ht(Nt?Nt.pos:"0",On),vn=ct(Bn[st],Qt),lt,Ge=0;Ge<ft.length;Ge+=1){var Ne=ft[Ge];if(Bn[Ne]!==void 0){lt=Bn[Ne];break}}var Nn=Object.assign((0,Re.Z)(Bn,[].concat((0,tt.Z)(ft),[st,rt])),{title:lt,key:vn,parent:Nt,pos:Qt,children:null,data:Bn,isStart:[].concat((0,tt.Z)(Nt?Nt.isStart:[]),[On===0]),isEnd:[].concat((0,tt.Z)(Nt?Nt.isEnd:[]),[On===Dt.length-1])});return Mt.push(Nn),Pe===!0||Tt.has(vn)?Nn.children=yt(Bn[rt]||[],Nn):Nn.children=[],Nn})}return yt(xe),Mt}function ue(xe,Pe,Ke){var qe={};(0,ve.Z)(Ke)==="object"?qe=Ke:qe={externalGetKey:Ke},qe=qe||{};var ft=qe,st=ft.childrenPropName,rt=ft.externalGetKey,Tt=ft.fieldNames,Mt=He(Tt),yt=Mt.key,Dt=Mt.children,Nt=st||Dt,Bn;rt?typeof rt=="string"?Bn=function(vn){return vn[rt]}:typeof rt=="function"&&(Bn=function(vn){return rt(vn)}):Bn=function(vn,lt){return ct(vn[yt],lt)};function On(Qt,vn,lt,Ge){var Ne=Qt?Qt[Nt]:xe,Nn=Qt?ht(lt.pos,vn):"0",Xn=Qt?[].concat((0,tt.Z)(Ge),[Qt]):[];if(Qt){var Xt=Bn(Qt,Nn),ai={node:Qt,index:vn,pos:Nn,key:Xt,parentPos:lt.node?lt.pos:null,level:lt.level+1,nodes:Xn};Pe(ai)}Ne&&Ne.forEach(function(xn,gi){On(xn,gi,{node:Qt,pos:Nn,level:lt?lt.level+1:-1},Xn)})}On(null)}function se(xe){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=Pe.initWrapper,qe=Pe.processEntity,ft=Pe.onProcessFinished,st=Pe.externalGetKey,rt=Pe.childrenPropName,Tt=Pe.fieldNames,Mt=arguments.length>2?arguments[2]:void 0,yt=st||Mt,Dt={},Nt={},Bn={posEntities:Dt,keyEntities:Nt};return Ke&&(Bn=Ke(Bn)||Bn),ue(xe,function(On){var Qt=On.node,vn=On.index,lt=On.pos,Ge=On.key,Ne=On.parentPos,Nn=On.level,Xn=On.nodes,Xt={node:Qt,nodes:Xn,index:vn,key:Ge,pos:lt,level:Nn},ai=ct(Ge,lt);Dt[lt]=Xt,Nt[ai]=Xt,Xt.parent=Dt[Ne],Xt.parent&&(Xt.parent.children=Xt.parent.children||[],Xt.parent.children.push(Xt)),qe&&qe(Xt,Bn)},{externalGetKey:yt,childrenPropName:rt,fieldNames:Tt}),ft&&ft(Bn),Bn}function ge(xe,Pe){var Ke=Pe.expandedKeys,qe=Pe.selectedKeys,ft=Pe.loadedKeys,st=Pe.loadingKeys,rt=Pe.checkedKeys,Tt=Pe.halfCheckedKeys,Mt=Pe.dragOverNodeKey,yt=Pe.dropPosition,Dt=Pe.keyEntities,Nt=(0,pt.Z)(Dt,xe),Bn={eventKey:xe,expanded:Ke.indexOf(xe)!==-1,selected:qe.indexOf(xe)!==-1,loaded:ft.indexOf(xe)!==-1,loading:st.indexOf(xe)!==-1,checked:rt.indexOf(xe)!==-1,halfChecked:Tt.indexOf(xe)!==-1,pos:String(Nt?Nt.pos:""),dragOver:Mt===xe&&yt===0,dragOverGapTop:Mt===xe&&yt===-1,dragOverGapBottom:Mt===xe&&yt===1};return Bn}function me(xe){var Pe=xe.data,Ke=xe.expanded,qe=xe.selected,ft=xe.checked,st=xe.loaded,rt=xe.loading,Tt=xe.halfChecked,Mt=xe.dragOver,yt=xe.dragOverGapTop,Dt=xe.dragOverGapBottom,Nt=xe.pos,Bn=xe.active,On=xe.eventKey,Qt=(0,Pt.Z)((0,Pt.Z)({},Pe),{},{expanded:Ke,selected:qe,checked:ft,loaded:st,loading:rt,halfChecked:Tt,dragOver:Mt,dragOverGapTop:yt,dragOverGapBottom:Dt,pos:Nt,active:Bn,key:On});return"props"in Qt||Object.defineProperty(Qt,"props",{get:function(){return(0,Je.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),xe}}),Qt}},73299:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return No}});var ve=be(87462),tt=be(1413),Pt=be(71002),Ut=be(97685),Bt=be(4942),Re=be(45987),Je=be(67294),pt=be(73935),wt=be(94184),ht=be.n(wt),Vt=be(48555),ct=Je.forwardRef(function(ni,Ee){var pn=ni.height,hn=ni.offsetY,ri=ni.offsetX,Jn=ni.children,Wn=ni.prefixCls,nn=ni.onInnerResize,ii=ni.innerProps,Wt=ni.rtl,Gt=ni.extra,Ft={},un={display:"flex",flexDirection:"column"};if(hn!==void 0){var Ti;Ft={height:pn,position:"relative",overflow:"hidden"},un=(0,tt.Z)((0,tt.Z)({},un),{},(Ti={transform:"translateY(".concat(hn,"px)")},(0,Bt.Z)(Ti,Wt?"marginRight":"marginLeft",-ri),(0,Bt.Z)(Ti,"position","absolute"),(0,Bt.Z)(Ti,"left",0),(0,Bt.Z)(Ti,"right",0),(0,Bt.Z)(Ti,"top",0),Ti))}return Je.createElement("div",{style:Ft},Je.createElement(Vt.Z,{onResize:function(di){var Yt=di.offsetHeight;Yt&&nn&&nn()}},Je.createElement("div",(0,ve.Z)({style:un,className:ht()((0,Bt.Z)({},"".concat(Wn,"-holder-inner"),Wn)),ref:Ee},ii),Jn,Gt)))});ct.displayName="Filler";var He=ct,Te=function(Ee){return+setTimeout(Ee,16)},ne=function(Ee){return clearTimeout(Ee)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Te=function(Ee){return window.requestAnimationFrame(Ee)},ne=function(Ee){return window.cancelAnimationFrame(Ee)});var te=0,ue=new Map;function se(ni){ue.delete(ni)}var ge=function(Ee){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;te+=1;var hn=te;function ri(Jn){if(Jn===0)se(hn),Ee();else{var Wn=Te(function(){ri(Jn-1)});ue.set(hn,Wn)}}return ri(pn),hn};ge.cancel=function(ni){var Ee=ue.get(ni);return se(Ee),ne(Ee)};var me=ge;function xe(ni,Ee){var pn="touches"in ni?ni.touches[0]:ni;return pn[Ee?"pageX":"pageY"]}var Pe=Je.forwardRef(function(ni,Ee){var pn,hn=ni.prefixCls,ri=ni.rtl,Jn=ni.scrollOffset,Wn=ni.scrollRange,nn=ni.onStartMove,ii=ni.onStopMove,Wt=ni.onScroll,Gt=ni.horizontal,Ft=ni.spinSize,un=ni.containerSize,Ti=ni.style,Ri=ni.thumbStyle,di=Je.useState(!1),Yt=(0,Ut.Z)(di,2),Hn=Yt[0],En=Yt[1],Fr=Je.useState(null),si=(0,Ut.Z)(Fr,2),tn=si[0],Vi=si[1],Hr=Je.useState(null),Or=(0,Ut.Z)(Hr,2),wn=Or[0],or=Or[1],Xo=!ri,Na=Je.useRef(),aa=Je.useRef(),hr=Je.useState(!1),Nr=(0,Ut.Z)(hr,2),io=Nr[0],va=Nr[1],Ho=Je.useRef(),vi=function(){clearTimeout(Ho.current),va(!0),Ho.current=setTimeout(function(){va(!1)},3e3)},lo=Wn-un||0,al=un-Ft||0,el=lo>0,Ns=Je.useMemo(function(){if(Jn===0||lo===0)return 0;var uo=Jn/lo;return uo*al},[Jn,lo,al]),ln=function(So){So.stopPropagation(),So.preventDefault()},Yo=Je.useRef({top:Ns,dragging:Hn,pageY:tn,startTop:wn});Yo.current={top:Ns,dragging:Hn,pageY:tn,startTop:wn};var Va=function(So){En(!0),Vi(xe(So,Gt)),or(Yo.current.top),nn(),So.stopPropagation(),So.preventDefault()};Je.useEffect(function(){var uo=function(An){An.preventDefault()},So=Na.current,_n=aa.current;return So.addEventListener("touchstart",uo),_n.addEventListener("touchstart",Va),function(){So.removeEventListener("touchstart",uo),_n.removeEventListener("touchstart",Va)}},[]);var Ao=Je.useRef();Ao.current=lo;var ms=Je.useRef();ms.current=al,Je.useEffect(function(){if(Hn){var uo,So=function(An){var Po=Yo.current,Ws=Po.dragging,ds=Po.pageY,kl=Po.startTop;if(me.cancel(uo),Ws){var Ss=xe(An,Gt)-ds,Ua=kl;!Xo&&Gt?Ua-=Ss:Ua+=Ss;var us=Ao.current,tl=ms.current,ts=tl?Ua/tl:0,wr=Math.ceil(ts*us);wr=Math.max(wr,0),wr=Math.min(wr,us),uo=me(function(){Wt(wr,Gt)})}},_n=function(){En(!1),ii()};return window.addEventListener("mousemove",So),window.addEventListener("touchmove",So),window.addEventListener("mouseup",_n),window.addEventListener("touchend",_n),function(){window.removeEventListener("mousemove",So),window.removeEventListener("touchmove",So),window.removeEventListener("mouseup",_n),window.removeEventListener("touchend",_n),me.cancel(uo)}}},[Hn]),Je.useEffect(function(){vi()},[Jn]),Je.useImperativeHandle(Ee,function(){return{delayHidden:vi}});var Ba="".concat(hn,"-scrollbar"),$a={position:"absolute",visibility:io&&el?null:"hidden"},Er={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Gt?($a.height=8,$a.left=0,$a.right=0,$a.bottom=0,Er.height="100%",Er.width=Ft,Xo?Er.left=Ns:Er.right=Ns):($a.width=8,$a.top=0,$a.bottom=0,Xo?$a.right=0:$a.left=0,Er.width="100%",Er.height=Ft,Er.top=Ns),Je.createElement("div",{ref:Na,className:ht()(Ba,(pn={},(0,Bt.Z)(pn,"".concat(Ba,"-horizontal"),Gt),(0,Bt.Z)(pn,"".concat(Ba,"-vertical"),!Gt),(0,Bt.Z)(pn,"".concat(Ba,"-visible"),io),pn)),style:(0,tt.Z)((0,tt.Z)({},$a),Ti),onMouseDown:ln,onMouseMove:vi},Je.createElement("div",{ref:aa,className:ht()("".concat(Ba,"-thumb"),(0,Bt.Z)({},"".concat(Ba,"-thumb-moving"),Hn)),style:(0,tt.Z)((0,tt.Z)({},Er),Ri),onMouseDown:Va}))}),Ke=Pe;function qe(ni){var Ee=ni.children,pn=ni.setRef,hn=Je.useCallback(function(ri){pn(ri)},[]);return Je.cloneElement(Ee,{ref:hn})}function ft(ni,Ee,pn,hn,ri,Jn,Wn){var nn=Wn.getKey;return ni.slice(Ee,pn+1).map(function(ii,Wt){var Gt=Ee+Wt,Ft=Jn(ii,Gt,{style:{width:hn}}),un=nn(ii);return Je.createElement(qe,{key:un,setRef:function(Ri){return ri(ii,Ri)}},Ft)})}function st(ni){return ni instanceof HTMLElement||ni instanceof SVGElement}function rt(ni){return st(ni)?ni:ni instanceof Je.Component?pt.findDOMNode(ni):null}var Tt=be(15671),Mt=be(43144),yt=function(){function ni(){(0,Tt.Z)(this,ni),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Mt.Z)(ni,[{key:"set",value:function(pn,hn){this.maps[pn]=hn,this.id+=1}},{key:"get",value:function(pn){return this.maps[pn]}}]),ni}(),Dt=yt;function Nt(ni,Ee,pn){var hn=Je.useState(0),ri=(0,Ut.Z)(hn,2),Jn=ri[0],Wn=ri[1],nn=(0,Je.useRef)(new Map),ii=(0,Je.useRef)(new Dt),Wt=(0,Je.useRef)();function Gt(){me.cancel(Wt.current)}function Ft(){var Ti=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Gt();var Ri=function(){nn.current.forEach(function(Yt,Hn){if(Yt&&Yt.offsetParent){var En=rt(Yt),Fr=En.offsetHeight;ii.current.get(Hn)!==Fr&&ii.current.set(Hn,En.offsetHeight)}}),Wn(function(Yt){return Yt+1})};Ti?Ri():Wt.current=me(Ri)}function un(Ti,Ri){var di=ni(Ti),Yt=nn.current.get(di);Ri?(nn.current.set(di,Ri),Ft()):nn.current.delete(di),!Yt!=!Ri&&(Ri?Ee==null||Ee(Ti):pn==null||pn(Ti))}return(0,Je.useEffect)(function(){return Gt},[]),[un,Ft,ii.current,Jn]}function Bn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var On=Bn()?Je.useLayoutEffect:Je.useEffect,Qt=function(Ee,pn){var hn=Je.useRef(!0);On(function(){return Ee(hn.current)},pn),On(function(){return hn.current=!1,function(){hn.current=!0}},[])},vn=function(Ee,pn){Qt(function(hn){if(!hn)return Ee()},pn)},lt=Qt;function Ge(ni){var Ee=Je.useRef();Ee.current=ni;var pn=Je.useCallback(function(){for(var hn,ri=arguments.length,Jn=new Array(ri),Wn=0;Wn<ri;Wn++)Jn[Wn]=arguments[Wn];return(hn=Ee.current)===null||hn===void 0?void 0:hn.call.apply(hn,[Ee].concat(Jn))},[]);return pn}function Ne(ni){var Ee=React.useRef(!1),pn=React.useState(ni),hn=_slicedToArray(pn,2),ri=hn[0],Jn=hn[1];React.useEffect(function(){return Ee.current=!1,function(){Ee.current=!0}},[]);function Wn(nn,ii){ii&&Ee.current||Jn(nn)}return[ri,Wn]}function Nn(ni){return ni!==void 0}function Xn(ni,Ee){var pn=Ee||{},hn=pn.defaultValue,ri=pn.value,Jn=pn.onChange,Wn=pn.postState,nn=useState(function(){return Nn(ri)?ri:Nn(hn)?typeof hn=="function"?hn():hn:typeof ni=="function"?ni():ni}),ii=_slicedToArray(nn,2),Wt=ii[0],Gt=ii[1],Ft=ri!==void 0?ri:Wt,un=Wn?Wn(Ft):Ft,Ti=useEvent(Jn),Ri=useState([Ft]),di=_slicedToArray(Ri,2),Yt=di[0],Hn=di[1];useLayoutUpdateEffect(function(){var Fr=Yt[0];Wt!==Fr&&Ti(Wt,Fr)},[Yt]),useLayoutUpdateEffect(function(){Nn(ri)||Gt(ri)},[ri]);var En=useEvent(function(Fr,si){Gt(Fr,si),Hn([Ft],si)});return[un,En]}var Xt=be(31461);function ai(ni,Ee,pn){var hn=React.useRef({});return(!("value"in hn.current)||pn(hn.current.condition,Ee))&&(hn.current.value=ni(),hn.current.condition=Ee),hn.current.value}function xn(ni,Ee){typeof ni=="function"?ni(Ee):_typeof(ni)==="object"&&ni&&"current"in ni&&(ni.current=Ee)}function gi(){for(var ni=arguments.length,Ee=new Array(ni),pn=0;pn<ni;pn++)Ee[pn]=arguments[pn];var hn=Ee.filter(function(ri){return ri});return hn.length<=1?hn[0]:function(ri){Ee.forEach(function(Jn){xn(Jn,ri)})}}function Zt(){for(var ni=arguments.length,Ee=new Array(ni),pn=0;pn<ni;pn++)Ee[pn]=arguments[pn];return useMemo(function(){return gi.apply(void 0,Ee)},Ee,function(hn,ri){return hn.length!==ri.length||hn.every(function(Jn,Wn){return Jn!==ri[Wn]})})}function Ct(ni){var Ee,pn,hn=isMemo(ni)?ni.type.type:ni.type;return!(typeof hn=="function"&&!((Ee=hn.prototype)!==null&&Ee!==void 0&&Ee.render)||typeof ni=="function"&&!((pn=ni.prototype)!==null&&pn!==void 0&&pn.render))}function qt(ni){return!isValidElement(ni)||isFragment(ni)?!1:Ct(ni)}function hi(ni,Ee,pn,hn){if(!Ee.length)return pn;var ri=_toArray(Ee),Jn=ri[0],Wn=ri.slice(1),nn;return!ni&&typeof Jn=="number"?nn=[]:Array.isArray(ni)?nn=_toConsumableArray(ni):nn=_objectSpread({},ni),hn&&pn===void 0&&Wn.length===1?delete nn[Jn][Wn[0]]:nn[Jn]=hi(nn[Jn],Wn,pn,hn),nn}function Kt(ni,Ee,pn){var hn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ee.length&&hn&&pn===void 0&&!get(ni,Ee.slice(0,-1))?ni:hi(ni,Ee,pn,hn)}function Xe(ni){return _typeof(ni)==="object"&&ni!==null&&Object.getPrototypeOf(ni)===Object.prototype}function Le(ni){return Array.isArray(ni)?[]:{}}var Me=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function We(){for(var ni=arguments.length,Ee=new Array(ni),pn=0;pn<ni;pn++)Ee[pn]=arguments[pn];var hn=Le(Ee[0]);return Ee.forEach(function(ri){function Jn(Wn,nn){var ii=new Set(nn),Wt=get(ri,Wn),Gt=Array.isArray(Wt);if(Gt||Xe(Wt)){if(!ii.has(Wt)){ii.add(Wt);var Ft=get(hn,Wn);Gt?hn=Kt(hn,Wn,[]):(!Ft||_typeof(Ft)!=="object")&&(hn=Kt(hn,Wn,Le(Wt))),Me(Wt).forEach(function(un){Jn([].concat(_toConsumableArray(Wn),[un]),ii)})}}else hn=Kt(hn,Wn,Wt)}Jn([])}),hn}var $e={},Be=[],ut=function(Ee){Be.push(Ee)};function Vn(ni,Ee){if(0)var pn}function In(ni,Ee){if(0)var pn}function Cn(){$e={}}function Pn(ni,Ee,pn){!Ee&&!$e[pn]&&(ni(!1,pn),$e[pn]=!0)}function oi(ni,Ee){Pn(Vn,ni,Ee)}function mn(ni,Ee){Pn(In,ni,Ee)}oi.preMessage=ut,oi.resetWarned=Cn,oi.noteOnce=mn;var bi=null,_i=10;function Br(ni,Ee,pn,hn,ri,Jn,Wn,nn){var ii=Je.useRef(),Wt=Je.useState(null),Gt=(0,Ut.Z)(Wt,2),Ft=Gt[0],un=Gt[1];return lt(function(){if(Ft&&Ft.times<_i){if(!ni.current){un(function(vi){return(0,tt.Z)({},vi)});return}Jn();var Ti=Ft.targetAlign,Ri=Ft.originAlign,di=Ft.index,Yt=Ft.offset,Hn=ni.current.clientHeight,En=!1,Fr=Ti,si=null;if(Hn){for(var tn=Ti||Ri,Vi=0,Hr=0,Or=0,wn=Math.min(Ee.length-1,di),or=0;or<=wn;or+=1){var Xo=ri(Ee[or]);Hr=Vi;var Na=pn.get(Xo);Or=Hr+(Na===void 0?hn:Na),Vi=Or}for(var aa=tn==="top"?Yt:Hn-Yt,hr=wn;hr>=0;hr-=1){var Nr=ri(Ee[hr]),io=pn.get(Nr);if(io===void 0){En=!0;break}if(aa-=io,aa<=0)break}switch(tn){case"top":si=Hr-Yt;break;case"bottom":si=Or-Hn+Yt;break;default:{var va=ni.current.scrollTop,Ho=va+Hn;Hr<va?Fr="top":Or>Ho&&(Fr="bottom")}}si!==null&&Wn(si),si!==Ft.lastTop&&(En=!0)}En&&un(function(vi){return(0,tt.Z)((0,tt.Z)({},vi),{},{times:vi.times+1,targetAlign:Fr,lastTop:si})})}},[Ft,ni.current]),function(Ti){if(Ti==null){nn();return}if(me.cancel(ii.current),typeof Ti=="number")Wn(Ti);else if(Ti&&(0,Pt.Z)(Ti)==="object"){var Ri,di=Ti.align;"index"in Ti?Ri=Ti.index:Ri=Ee.findIndex(function(En){return ri(En)===Ti.key});var Yt=Ti.offset,Hn=Yt===void 0?0:Yt;un({times:0,index:Ri,offset:Hn,originAlign:di})}}}function Yi(ni,Ee,pn,hn){var ri=pn-ni,Jn=Ee-pn,Wn=Math.min(ri,Jn)*2;if(hn<=Wn){var nn=Math.floor(hn/2);return hn%2?pn+nn+1:pn-nn}return ri>Jn?pn-(hn-Jn):pn+(hn-ri)}function ki(ni,Ee,pn){var hn=ni.length,ri=Ee.length,Jn,Wn;if(hn===0&&ri===0)return null;hn<ri?(Jn=ni,Wn=Ee):(Jn=Ee,Wn=ni);var nn={__EMPTY_ITEM__:!0};function ii(Ri){return Ri!==void 0?pn(Ri):nn}for(var Wt=null,Gt=Math.abs(hn-ri)!==1,Ft=0;Ft<Wn.length;Ft+=1){var un=ii(Jn[Ft]),Ti=ii(Wn[Ft]);if(un!==Ti){Wt=Ft,Gt=Gt||un!==ii(Wn[Ft+1]);break}}return Wt===null?null:{index:Wt,multiple:Gt}}function Xr(ni,Ee,pn){var hn=Je.useState(ni),ri=(0,Ut.Z)(hn,2),Jn=ri[0],Wn=ri[1],nn=Je.useState(null),ii=(0,Ut.Z)(nn,2),Wt=ii[0],Gt=ii[1];return Je.useEffect(function(){var Ft=ki(Jn||[],ni||[],Ee);(Ft==null?void 0:Ft.index)!==void 0&&(pn==null||pn(Ft.index),Gt(ni[Ft.index])),Wn(ni)},[ni]),[Wt]}var Ki=(typeof navigator=="undefined"?"undefined":(0,Pt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),lr=Ki,ar=function(ni,Ee){var pn=(0,Je.useRef)(!1),hn=(0,Je.useRef)(null);function ri(){clearTimeout(hn.current),pn.current=!0,hn.current=setTimeout(function(){pn.current=!1},50)}var Jn=(0,Je.useRef)({top:ni,bottom:Ee});return Jn.current.top=ni,Jn.current.bottom=Ee,function(Wn){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ii=Wn<0&&Jn.current.top||Wn>0&&Jn.current.bottom;return nn&&ii?(clearTimeout(hn.current),pn.current=!1):(!ii||pn.current)&&ri(),!pn.current&&ii}};function kn(ni,Ee,pn,hn,ri){var Jn=(0,Je.useRef)(0),Wn=(0,Je.useRef)(null),nn=(0,Je.useRef)(null),ii=(0,Je.useRef)(!1),Wt=ar(Ee,pn);function Gt(Yt,Hn){me.cancel(Wn.current),Jn.current+=Hn,nn.current=Hn,!Wt(Hn)&&(lr||Yt.preventDefault(),Wn.current=me(function(){var En=ii.current?10:1;ri(Jn.current*En),Jn.current=0}))}function Ft(Yt,Hn){ri(Hn,!0),lr||Yt.preventDefault()}var un=(0,Je.useRef)(null),Ti=(0,Je.useRef)(null);function Ri(Yt){if(ni){me.cancel(Ti.current),Ti.current=me(function(){un.current=null},2);var Hn=Yt.deltaX,En=Yt.deltaY,Fr=Yt.shiftKey,si=Hn,tn=En;(un.current==="sx"||!un.current&&Fr&&En&&!Hn)&&(si=En,tn=0,un.current="sx");var Vi=Math.abs(si),Hr=Math.abs(tn);un.current===null&&(un.current=hn&&Vi>Hr?"x":"y"),un.current==="y"?Gt(Yt,tn):Ft(Yt,si)}}function di(Yt){ni&&(ii.current=Yt.detail===nn.current)}return[Ri,di]}var Bi=14/15;function ea(ni,Ee,pn){var hn=(0,Je.useRef)(!1),ri=(0,Je.useRef)(0),Jn=(0,Je.useRef)(null),Wn=(0,Je.useRef)(null),nn,ii=function(un){if(hn.current){var Ti=Math.ceil(un.touches[0].pageY),Ri=ri.current-Ti;ri.current=Ti,pn(Ri)&&un.preventDefault(),clearInterval(Wn.current),Wn.current=setInterval(function(){Ri*=Bi,(!pn(Ri,!0)||Math.abs(Ri)<=.1)&&clearInterval(Wn.current)},16)}},Wt=function(){hn.current=!1,nn()},Gt=function(un){nn(),un.touches.length===1&&!hn.current&&(hn.current=!0,ri.current=Math.ceil(un.touches[0].pageY),Jn.current=un.target,Jn.current.addEventListener("touchmove",ii),Jn.current.addEventListener("touchend",Wt))};nn=function(){Jn.current&&(Jn.current.removeEventListener("touchmove",ii),Jn.current.removeEventListener("touchend",Wt))},lt(function(){return ni&&Ee.current.addEventListener("touchstart",Gt),function(){var Ft;(Ft=Ee.current)===null||Ft===void 0||Ft.removeEventListener("touchstart",Gt),nn(),clearInterval(Wn.current)}},[ni])}var Zn=20;function Wr(){var ni=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,pn=ni/Ee*100;return isNaN(pn)&&(pn=0),pn=Math.max(pn,Zn),pn=Math.min(pn,ni/2),Math.floor(pn)}function ra(ni,Ee,pn,hn){var ri=Je.useMemo(function(){return[new Map,[]]},[ni,pn.id,hn]),Jn=(0,Ut.Z)(ri,2),Wn=Jn[0],nn=Jn[1],ii=function(Gt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gt,un=Wn.get(Gt),Ti=Wn.get(Ft);if(un===void 0||Ti===void 0)for(var Ri=ni.length,di=nn.length;di<Ri;di+=1){var Yt,Hn=ni[di],En=Ee(Hn);Wn.set(En,di);var Fr=(Yt=pn.get(En))!==null&&Yt!==void 0?Yt:hn;if(nn[di]=(nn[di-1]||0)+Fr,En===Gt&&(un=di),En===Ft&&(Ti=di),un!==void 0&&Ti!==void 0)break}return{top:nn[un-1]||0,bottom:nn[Ti]}};return ii}var sa=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Wa=[],ma={overflowY:"auto",overflowAnchor:"none"};function Ha(ni,Ee){var pn=ni.prefixCls,hn=pn===void 0?"rc-virtual-list":pn,ri=ni.className,Jn=ni.height,Wn=ni.itemHeight,nn=ni.fullHeight,ii=nn===void 0?!0:nn,Wt=ni.style,Gt=ni.data,Ft=ni.children,un=ni.itemKey,Ti=ni.virtual,Ri=ni.direction,di=ni.scrollWidth,Yt=ni.component,Hn=Yt===void 0?"div":Yt,En=ni.onScroll,Fr=ni.onVirtualScroll,si=ni.onVisibleChange,tn=ni.innerProps,Vi=ni.extraRender,Hr=ni.styles,Or=(0,Re.Z)(ni,sa),wn=!!(Ti!==!1&&Jn&&Wn),or=wn&&Gt&&(Wn*Gt.length>Jn||!!di),Xo=Ri==="rtl",Na=ht()(hn,(0,Bt.Z)({},"".concat(hn,"-rtl"),Xo),ri),aa=Gt||Wa,hr=(0,Je.useRef)(),Nr=(0,Je.useRef)(),io=(0,Je.useState)(0),va=(0,Ut.Z)(io,2),Ho=va[0],vi=va[1],lo=(0,Je.useState)(0),al=(0,Ut.Z)(lo,2),el=al[0],Ns=al[1],ln=(0,Je.useState)(!1),Yo=(0,Ut.Z)(ln,2),Va=Yo[0],Ao=Yo[1],ms=function(){Ao(!0)},Ba=function(){Ao(!1)},$a=Je.useCallback(function(Ra){return typeof un=="function"?un(Ra):Ra==null?void 0:Ra[un]},[un]),Er={getKey:$a};function uo(Ra){vi(function(Xa){var Is;typeof Ra=="function"?Is=Ra(Xa):Is=Ra;var pl=pr(Is);return hr.current.scrollTop=pl,pl})}var So=(0,Je.useRef)({start:0,end:aa.length}),_n=(0,Je.useRef)(),ka=Xr(aa,$a),An=(0,Ut.Z)(ka,1),Po=An[0];_n.current=Po;var Ws=Nt($a,null,null),ds=(0,Ut.Z)(Ws,4),kl=ds[0],Ss=ds[1],Ua=ds[2],us=ds[3],tl=Je.useMemo(function(){if(!wn)return{scrollHeight:void 0,start:0,end:aa.length-1,offset:void 0};if(!or){var Ra;return{scrollHeight:((Ra=Nr.current)===null||Ra===void 0?void 0:Ra.offsetHeight)||0,start:0,end:aa.length-1,offset:void 0}}for(var Xa=0,Is,pl,Mo,$u=aa.length,Pu=0;Pu<$u;Pu+=1){var $l=aa[Pu],ou=$a($l),gc=Ua.get(ou),kr=Xa+(gc===void 0?Wn:gc);kr>=Ho&&Is===void 0&&(Is=Pu,pl=Xa),kr>Ho+Jn&&Mo===void 0&&(Mo=Pu),Xa=kr}return Is===void 0&&(Is=0,pl=0,Mo=Math.ceil(Jn/Wn)),Mo===void 0&&(Mo=aa.length-1),Mo=Math.min(Mo+1,aa.length-1),{scrollHeight:Xa,start:Is,end:Mo,offset:pl}},[or,wn,Ho,aa,us,Jn]),ts=tl.scrollHeight,wr=tl.start,at=tl.end,St=tl.offset;So.current.start=wr,So.current.end=at;var zt=Je.useState({width:0,height:Jn}),gn=(0,Ut.Z)(zt,2),Kn=gn[0],Ii=gn[1],Jt=function(Xa){Ii({width:Xa.width||Xa.offsetWidth,height:Xa.height||Xa.offsetHeight})},Qn=(0,Je.useRef)(),Qi=(0,Je.useRef)(),wi=Je.useMemo(function(){return Wr(Kn.width,di)},[Kn.width,di]),nr=Je.useMemo(function(){return Wr(Kn.height,ts)},[Kn.height,ts]),Xi=ts-Jn,Si=(0,Je.useRef)(Xi);Si.current=Xi;function pr(Ra){var Xa=Ra;return Number.isNaN(Si.current)||(Xa=Math.min(Xa,Si.current)),Xa=Math.max(Xa,0),Xa}var fn=Ho<=0,eo=Ho>=Xi,so=ar(fn,eo),ya=function(){return{x:Xo?-el:el,y:Ho}},fa=(0,Je.useRef)(ya()),Ia=Ge(function(){if(Fr){var Ra=ya();(fa.current.x!==Ra.x||fa.current.y!==Ra.y)&&(Fr(Ra),fa.current=Ra)}});function ns(Ra,Xa){var Is=Ra;Xa?((0,pt.flushSync)(function(){Ns(Is)}),Ia()):uo(Is)}function Us(Ra){var Xa=Ra.currentTarget.scrollTop;Xa!==Ho&&uo(Xa),En==null||En(Ra),Ia()}var Ds=function(Xa){var Is=Xa,pl=di-Kn.width;return Is=Math.max(Is,0),Is=Math.min(Is,pl),Is},fl=Ge(function(Ra,Xa){Xa?((0,pt.flushSync)(function(){Ns(function(Is){var pl=Is+(Xo?-Ra:Ra);return Ds(pl)})}),Ia()):uo(function(Is){var pl=Is+Ra;return pl})}),Hs=kn(wn,fn,eo,!!di,fl),cn=(0,Ut.Z)(Hs,2),nl=cn[0],dl=cn[1];ea(wn,hr,function(Ra,Xa){return so(Ra,Xa)?!1:(nl({preventDefault:function(){},deltaY:Ra}),!0)}),lt(function(){function Ra(Is){wn&&Is.preventDefault()}var Xa=hr.current;return Xa.addEventListener("wheel",nl),Xa.addEventListener("DOMMouseScroll",dl),Xa.addEventListener("MozMousePixelScroll",Ra),function(){Xa.removeEventListener("wheel",nl),Xa.removeEventListener("DOMMouseScroll",dl),Xa.removeEventListener("MozMousePixelScroll",Ra)}},[wn]),lt(function(){di&&Ns(function(Ra){return Ds(Ra)})},[Kn.width,di]);var gl=function(){var Xa,Is;(Xa=Qn.current)===null||Xa===void 0||Xa.delayHidden(),(Is=Qi.current)===null||Is===void 0||Is.delayHidden()},Ys=Br(hr,aa,Ua,Wn,$a,function(){return Ss(!0)},uo,gl);Je.useImperativeHandle(Ee,function(){return{getScrollInfo:ya,scrollTo:function(Xa){function Is(pl){return pl&&(0,Pt.Z)(pl)==="object"&&("left"in pl||"top"in pl)}Is(Xa)?(Xa.left!==void 0&&Ns(Ds(Xa.left)),Ys(Xa.top)):Ys(Xa)}}}),lt(function(){if(si){var Ra=aa.slice(wr,at+1);si(Ra,aa)}},[wr,at,aa]);var Ul=ra(aa,$a,Ua,Wn),hu=Vi==null?void 0:Vi({start:wr,end:at,virtual:or,offsetX:el,offsetY:St,rtl:Xo,getSize:Ul}),fc=ft(aa,wr,at,di,kl,Ft,Er),_s=null;Jn&&(_s=(0,tt.Z)((0,Bt.Z)({},ii?"height":"maxHeight",Jn),ma),wn&&(_s.overflowY="hidden",di&&(_s.overflowX="hidden"),Va&&(_s.pointerEvents="none")));var il={};return Xo&&(il.dir="rtl"),Je.createElement("div",(0,ve.Z)({style:(0,tt.Z)((0,tt.Z)({},Wt),{},{position:"relative"}),className:Na},il,Or),Je.createElement(Vt.Z,{onResize:Jt},Je.createElement(Hn,{className:"".concat(hn,"-holder"),style:_s,ref:hr,onScroll:Us,onMouseEnter:gl},Je.createElement(He,{prefixCls:hn,height:ts,offsetX:el,offsetY:St,scrollWidth:di,onInnerResize:Ss,ref:Nr,innerProps:tn,rtl:Xo,extra:hu},fc))),or&&ts>Jn&&Je.createElement(Ke,{ref:Qn,prefixCls:hn,scrollOffset:Ho,scrollRange:ts,rtl:Xo,onScroll:ns,onStartMove:ms,onStopMove:Ba,spinSize:nr,containerSize:Kn.height,style:Hr==null?void 0:Hr.verticalScrollBar,thumbStyle:Hr==null?void 0:Hr.verticalScrollBarThumb}),or&&di&&Je.createElement(Ke,{ref:Qi,prefixCls:hn,scrollOffset:el,scrollRange:di,rtl:Xo,onScroll:ns,onStartMove:ms,onStopMove:Ba,spinSize:wi,containerSize:Kn.width,horizontal:!0,style:Hr==null?void 0:Hr.horizontalScrollBar,thumbStyle:Hr==null?void 0:Hr.horizontalScrollBarThumb}))}var da=Je.forwardRef(Ha);da.displayName="List";var la=da,No=la},66392:function(Rn,ti){"use strict";var be;var ve=Symbol.for("react.element"),tt=Symbol.for("react.portal"),Pt=Symbol.for("react.fragment"),Ut=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),wt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Te=Symbol.for("react.offscreen"),ne;ne=Symbol.for("react.module.reference");function te(ue){if(typeof ue=="object"&&ue!==null){var se=ue.$$typeof;switch(se){case ve:switch(ue=ue.type,ue){case Pt:case Bt:case Ut:case ht:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case wt:case He:case ct:case Re:return ue;default:return se}}case tt:return se}}}be=Je,be=Re,be=ve,be=wt,be=Pt,be=He,be=ct,be=tt,be=Bt,be=Ut,be=ht,be=Vt,be=function(){return!1},be=function(){return!1},be=function(ue){return te(ue)===Je},be=function(ue){return te(ue)===Re},be=function(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===ve},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===Pt},be=function(ue){return te(ue)===He},be=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===tt},be=function(ue){return te(ue)===Bt},be=function(ue){return te(ue)===Ut},be=function(ue){return te(ue)===ht},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===Pt||ue===Bt||ue===Ut||ue===ht||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===He||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===wt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},31461:function(Rn,ti,be){"use strict";be(66392)},25510:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZ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vOOu/2jv/cAH7P27vc/m2Ov2u4vOtyuuuNyO+eY3bez4Cbbi8svbqy/PtJf+9oLNnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF9t3n31svWlr28GHHWIPPPhX22STje1HJ59iyyy7jL362iy7//4HbM899rQ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AASUVORK5CYII="},32637:function(Rn,ti,be){"use strict";Rn.exports=be.p+"static/AssistantCode3.a8740efb.jpeg"},4977:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utz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gHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},17423:function(Rn,ti,be){"use strict";be.d(ti,{Z:function(){return pt}});const ve=wt=>typeof wt=="object"&&wt!=null&&wt.nodeType===1,tt=(wt,ht)=>(!ht||wt!=="hidden")&&wt!=="visible"&&wt!=="clip",Pt=(wt,ht)=>{if(wt.clientHeight<wt.scrollHeight||wt.clientWidth<wt.scrollWidth){const Vt=getComputedStyle(wt,null);return tt(Vt.overflowY,ht)||tt(Vt.overflowX,ht)||(ct=>{const He=(Te=>{if(!Te.ownerDocument||!Te.ownerDocument.defaultView)return null;try{return Te.ownerDocument.defaultView.frameElement}catch(ne){return null}})(ct);return!!He&&(He.clientHeight<ct.scrollHeight||He.clientWidth<ct.scrollWidth)})(wt)}return!1},Ut=(wt,ht,Vt,ct,He,Te,ne,te)=>Te<wt&&ne>ht||Te>wt&&ne<ht?0:Te<=wt&&te<=Vt||ne>=ht&&te>=Vt?Te-wt-ct:ne>ht&&te<Vt||Te<wt&&te>Vt?ne-ht+He:0,Bt=wt=>{const ht=wt.parentElement;return ht==null?wt.getRootNode().host||null:ht},Re=(wt,ht)=>{var Vt,ct,He,Te;if(typeof document=="undefined")return[];const{scrollMode:ne,block:te,inline:ue,boundary:se,skipOverflowHiddenElements:ge}=ht,me=typeof se=="function"?se:Xn=>Xn!==se;if(!ve(wt))throw new TypeError("Invalid target");const xe=document.scrollingElement||document.documentElement,Pe=[];let Ke=wt;for(;ve(Ke)&&me(Ke);){if(Ke=Bt(Ke),Ke===xe){Pe.push(Ke);break}Ke!=null&&Ke===document.body&&Pt(Ke)&&!Pt(document.documentElement)||Ke!=null&&Pt(Ke,ge)&&Pe.push(Ke)}const qe=(ct=(Vt=window.visualViewport)==null?void 0:Vt.width)!=null?ct:innerWidth,ft=(Te=(He=window.visualViewport)==null?void 0:He.height)!=null?Te:innerHeight,{scrollX:st,scrollY:rt}=window,{height:Tt,width:Mt,top:yt,right:Dt,bottom:Nt,left:Bn}=wt.getBoundingClientRect(),{top:On,right:Qt,bottom:vn,left:lt}=(Xn=>{const Xt=window.getComputedStyle(Xn);return{top:parseFloat(Xt.scrollMarginTop)||0,right:parseFloat(Xt.scrollMarginRight)||0,bottom:parseFloat(Xt.scrollMarginBottom)||0,left:parseFloat(Xt.scrollMarginLeft)||0}})(wt);let Ge=te==="start"||te==="nearest"?yt-On:te==="end"?Nt+vn:yt+Tt/2-On+vn,Ne=ue==="center"?Bn+Mt/2-lt+Qt:ue==="end"?Dt+Qt:Bn-lt;const Nn=[];for(let Xn=0;Xn<Pe.length;Xn++){const Xt=Pe[Xn],{height:ai,width:xn,top:gi,right:Zt,bottom:Ct,left:qt}=Xt.getBoundingClientRect();if(ne==="if-needed"&&yt>=0&&Bn>=0&&Nt<=ft&&Dt<=qe&&yt>=gi&&Nt<=Ct&&Bn>=qt&&Dt<=Zt)return Nn;const hi=getComputedStyle(Xt),Kt=parseInt(hi.borderLeftWidth,10),Xe=parseInt(hi.borderTopWidth,10),Le=parseInt(hi.borderRightWidth,10),Me=parseInt(hi.borderBottomWidth,10);let We=0,$e=0;const Be="offsetWidth"in Xt?Xt.offsetWidth-Xt.clientWidth-Kt-Le:0,ut="offsetHeight"in Xt?Xt.offsetHeight-Xt.clientHeight-Xe-Me:0,Vn="offsetWidth"in Xt?Xt.offsetWidth===0?0:xn/Xt.offsetWidth:0,In="offsetHeight"in Xt?Xt.offsetHeight===0?0:ai/Xt.offsetHeight:0;if(xe===Xt)We=te==="start"?Ge:te==="end"?Ge-ft:te==="nearest"?Ut(rt,rt+ft,ft,Xe,Me,rt+Ge,rt+Ge+Tt,Tt):Ge-ft/2,$e=ue==="start"?Ne:ue==="center"?Ne-qe/2:ue==="end"?Ne-qe:Ut(st,st+qe,qe,Kt,Le,st+Ne,st+Ne+Mt,Mt),We=Math.max(0,We+rt),$e=Math.max(0,$e+st);else{We=te==="start"?Ge-gi-Xe:te==="end"?Ge-Ct+Me+ut:te==="nearest"?Ut(gi,Ct,ai,Xe,Me+ut,Ge,Ge+Tt,Tt):Ge-(gi+ai/2)+ut/2,$e=ue==="start"?Ne-qt-Kt:ue==="center"?Ne-(qt+xn/2)+Be/2:ue==="end"?Ne-Zt+Le+Be:Ut(qt,Zt,xn,Kt,Le+Be,Ne,Ne+Mt,Mt);const{scrollLeft:Cn,scrollTop:Pn}=Xt;We=In===0?0:Math.max(0,Math.min(Pn+We/In,Xt.scrollHeight-ai/In+ut)),$e=Vn===0?0:Math.max(0,Math.min(Cn+$e/Vn,Xt.scrollWidth-xn/Vn+Be)),Ge+=Pn-We,Ne+=Cn-$e}Nn.push({el:Xt,top:We,left:$e})}return Nn},Je=wt=>wt===!1?{block:"end",inline:"nearest"}:(ht=>ht===Object(ht)&&Object.keys(ht).length!==0)(wt)?wt:{block:"start",inline:"nearest"};function pt(wt,ht){if(!wt.isConnected||!(He=>{let Te=He;for(;Te&&Te.parentNode;){if(Te.parentNode===document)return!0;Te=Te.parentNode instanceof ShadowRoot?Te.parentNode.host:Te.parentNode}return!1})(wt))return;const Vt=(He=>{const Te=window.getComputedStyle(He);return{top:parseFloat(Te.scrollMarginTop)||0,right:parseFloat(Te.scrollMarginRight)||0,bottom:parseFloat(Te.scrollMarginBottom)||0,left:parseFloat(Te.scrollMarginLeft)||0}})(wt);if((He=>typeof He=="object"&&typeof He.behavior=="function")(ht))return ht.behavior(Re(wt,ht));const ct=typeof ht=="boolean"||ht==null?void 0:ht.behavior;for(const{el:He,top:Te,left:ne}of Re(wt,Je(ht))){const te=Te-Vt.top+Vt.bottom,ue=ne-Vt.left+Vt.right;He.scroll({top:te,left:ue,behavior:ct})}}}}]);
}());