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.
1279 lines
2.5 MiB
1279 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=(Dn,ei,be)=>ei in Dn?lw(Dn,ei,{enumerable:!0,configurable:!0,writable:!0,value:be}):Dn[ei]=be,ys=(Dn,ei)=>{for(var be in ei||(ei={}))wx.call(ei,be)&&xx(Dn,be,ei[be]);if(r0)for(var be of r0(ei))Px.call(ei,be)&&xx(Dn,be,ei[be]);return Dn},ql=(Dn,ei)=>uw(Dn,cw(ei));var o0=(Dn,ei)=>{var be={};for(var ve in Dn)wx.call(Dn,ve)&&ei.indexOf(ve)<0&&(be[ve]=Dn[ve]);if(Dn!=null&&r0)for(var ve of r0(Dn))ei.indexOf(ve)<0&&Px.call(Dn,ve)&&(be[ve]=Dn[ve]);return be};var Cx=(Dn,ei,be)=>new Promise((ve,ot)=>{var wt=Re=>{try{Nt(be.next(Re))}catch(Je){ot(Je)}},Qt=Re=>{try{Nt(be.throw(Re))}catch(Je){ot(Je)}},Nt=Re=>Re.done?ve(Re.value):Promise.resolve(Re.value).then(wt,Qt);Nt((be=be.apply(Dn,ei)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{50881:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return Je}});var ve=be(87462),ot=be(67294),wt={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"},Qt=wt,Nt=be(17207),Re=function(mt,yt){return ot.createElement(Nt.Z,(0,ve.Z)({},mt,{ref:yt,icon:Qt}))},Je=ot.forwardRef(Re)},60887:function(Dn,ei,be){"use strict";be.d(ei,{LB:function(){return Yo},g4:function(){return Di},VK:function(){return Ne},Cj:function(){return $a},O1:function(){return Ba},Zj:function(){return So}});var ve=be(67294),ot=be(73935),wt=be(24285);const Qt={display:"none"};function Nt(St){let{id:Rt,value:gn}=St;return ve.createElement("div",{id:Rt,style:Qt},gn)}function Re(St){let{id:Rt,announcement:gn,ariaLiveType:Hn="assertive"}=St;const Oi={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:Rt,style:Oi,role:"status","aria-live":Hn,"aria-atomic":!0},gn)}function Je(){const[St,Rt]=(0,ve.useState)("");return{announce:(0,ve.useCallback)(Hn=>{Hn!=null&&Rt(Hn)},[]),announcement:St}}const pt=(0,ve.createContext)(null);function mt(St){const Rt=(0,ve.useContext)(pt);(0,ve.useEffect)(()=>{if(!Rt)throw new Error("useDndMonitor must be used within a children of <DndContext>");return Rt(St)},[St,Rt])}function yt(){const[St]=(0,ve.useState)(()=>new Set),Rt=(0,ve.useCallback)(Hn=>(St.add(Hn),()=>St.delete(Hn)),[St]);return[(0,ve.useCallback)(Hn=>{let{type:Oi,event:Yt}=Hn;St.forEach(Zn=>{var Ji;return(Ji=Zn[Oi])==null?void 0:Ji.call(Zn,Yt)})},[St]),Rt]}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:Rt}=St;return"Picked up draggable item "+Rt.id+"."},onDragOver(St){let{active:Rt,over:gn}=St;return gn?"Draggable item "+Rt.id+" was moved over droppable area "+gn.id+".":"Draggable item "+Rt.id+" is no longer over a droppable area."},onDragEnd(St){let{active:Rt,over:gn}=St;return gn?"Draggable item "+Rt.id+" was dropped over droppable area "+gn.id:"Draggable item "+Rt.id+" was dropped."},onDragCancel(St){let{active:Rt}=St;return"Dragging was cancelled. Draggable item "+Rt.id+" was dropped."}};function We(St){let{announcements:Rt=ct,container:gn,hiddenTextDescribedById:Hn,screenReaderInstructions:Oi=Vt}=St;const{announce:Yt,announcement:Zn}=Je(),Ji=(0,wt.Ld)("DndLiveRegion"),[xi,nr]=(0,ve.useState)(!1);if((0,ve.useEffect)(()=>{nr(!0)},[]),mt((0,ve.useMemo)(()=>({onDragStart(vi){let{active:pr}=vi;Yt(Rt.onDragStart({active:pr}))},onDragMove(vi){let{active:pr,over:fn}=vi;Rt.onDragMove&&Yt(Rt.onDragMove({active:pr,over:fn}))},onDragOver(vi){let{active:pr,over:fn}=vi;Yt(Rt.onDragOver({active:pr,over:fn}))},onDragEnd(vi){let{active:pr,over:fn}=vi;Yt(Rt.onDragEnd({active:pr,over:fn}))},onDragCancel(vi){let{active:pr,over:fn}=vi;Yt(Rt.onDragCancel({active:pr,over:fn}))}}),[Yt,Rt])),!xi)return null;const Zi=ve.createElement(ve.Fragment,null,ve.createElement(Nt,{id:Hn,value:Oi.draggable}),ve.createElement(Re,{id:Ji,announcement:Zn}));return gn?(0,ot.createPortal)(Zi,gn):Zi}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,Rt){return useMemo(()=>({sensor:St,options:Rt!=null?Rt:{}}),[St,Rt])}function ue(){for(var St=arguments.length,Rt=new Array(St),gn=0;gn<St;gn++)Rt[gn]=arguments[gn];return useMemo(()=>[...Rt].filter(Hn=>Hn!=null),[...Rt])}const se=Object.freeze({x:0,y:0});function ge(St,Rt){return Math.sqrt(Math.pow(St.x-Rt.x,2)+Math.pow(St.y-Rt.y,2))}function me(St,Rt){const gn=getEventCoordinates(St);if(!gn)return"0 0";const Hn={x:(gn.x-Rt.left)/Rt.width*100,y:(gn.y-Rt.top)/Rt.height*100};return Hn.x+"% "+Hn.y+"%"}function xe(St,Rt){let{data:{value:gn}}=St,{data:{value:Hn}}=Rt;return gn-Hn}function Pe(St,Rt){let{data:{value:gn}}=St,{data:{value:Hn}}=Rt;return Hn-gn}function Ke(St){let{left:Rt,top:gn,height:Hn,width:Oi}=St;return[{x:Rt,y:gn},{x:Rt+Oi,y:gn},{x:Rt,y:gn+Hn},{x:Rt+Oi,y:gn+Hn}]}function nt(St,Rt){if(!St||St.length===0)return null;const[gn]=St;return Rt?gn[Rt]:gn}function ft(St,Rt,gn){return Rt===void 0&&(Rt=St.left),gn===void 0&&(gn=St.top),{x:Rt+St.width*.5,y:gn+St.height*.5}}const qe=St=>{let{collisionRect:Rt,droppableRects:gn,droppableContainers:Hn}=St;const Oi=ft(Rt,Rt.left,Rt.top),Yt=[];for(const Zn of Hn){const{id:Ji}=Zn,xi=gn.get(Ji);if(xi){const nr=ge(ft(xi),Oi);Yt.push({id:Ji,data:{droppableContainer:Zn,value:nr}})}}return Yt.sort(xe)},at=St=>{let{collisionRect:Rt,droppableRects:gn,droppableContainers:Hn}=St;const Oi=Ke(Rt),Yt=[];for(const Zn of Hn){const{id:Ji}=Zn,xi=gn.get(Ji);if(xi){const nr=Ke(xi),Zi=Oi.reduce((pr,fn,eo)=>pr+ge(nr[eo],fn),0),vi=Number((Zi/4).toFixed(4));Yt.push({id:Ji,data:{droppableContainer:Zn,value:vi}})}}return Yt.sort(xe)};function jt(St,Rt){const gn=Math.max(Rt.top,St.top),Hn=Math.max(Rt.left,St.left),Oi=Math.min(Rt.left+Rt.width,St.left+St.width),Yt=Math.min(Rt.top+Rt.height,St.top+St.height),Zn=Oi-Hn,Ji=Yt-gn;if(Hn<Oi&&gn<Yt){const xi=Rt.width*Rt.height,nr=St.width*St.height,Zi=Zn*Ji,vi=Zi/(xi+nr-Zi);return Number(vi.toFixed(4))}return 0}const Mt=St=>{let{collisionRect:Rt,droppableRects:gn,droppableContainers:Hn}=St;const Oi=[];for(const Yt of Hn){const{id:Zn}=Yt,Ji=gn.get(Zn);if(Ji){const xi=jt(Ji,Rt);xi>0&&Oi.push({id:Zn,data:{droppableContainer:Yt,value:xi}})}}return Oi.sort(Pe)};function bt(St,Rt){const{top:gn,left:Hn,bottom:Oi,right:Yt}=Rt;return gn<=St.y&&St.y<=Oi&&Hn<=St.x&&St.x<=Yt}const Bt=St=>{let{droppableContainers:Rt,droppableRects:gn,pointerCoordinates:Hn}=St;if(!Hn)return[];const Oi=[];for(const Yt of Rt){const{id:Zn}=Yt,Ji=gn.get(Zn);if(Ji&&bt(Hn,Ji)){const nr=Ke(Ji).reduce((vi,pr)=>vi+ge(Hn,pr),0),Zi=Number((nr/4).toFixed(4));Oi.push({id:Zn,data:{droppableContainer:Yt,value:Zi}})}}return Oi.sort(xe)};function Ht(St,Rt,gn){return ql(ys({},St),{scaleX:Rt&&gn?Rt.width/gn.width:1,scaleY:Rt&&gn?Rt.height/gn.height:1})}function Jn(St,Rt){return St&&Rt?{x:St.left-Rt.left,y:St.top-Rt.top}:se}function qn(St){return function(gn){for(var Hn=arguments.length,Oi=new Array(Hn>1?Hn-1:0),Yt=1;Yt<Hn;Yt++)Oi[Yt-1]=arguments[Yt];return Oi.reduce((Zn,Ji)=>ql(ys({},Zn),{top:Zn.top+St*Ji.y,bottom:Zn.bottom+St*Ji.y,left:Zn.left+St*Ji.x,right:Zn.right+St*Ji.x}),ys({},gn))}}const sn=qn(1);function Nn(St){if(St.startsWith("matrix3d(")){const Rt=St.slice(9,-1).split(/, /);return{x:+Rt[12],y:+Rt[13],scaleX:+Rt[0],scaleY:+Rt[5]}}else if(St.startsWith("matrix(")){const Rt=St.slice(7,-1).split(/, /);return{x:+Rt[4],y:+Rt[5],scaleX:+Rt[0],scaleY:+Rt[3]}}return null}function lt(St,Rt,gn){const Hn=Nn(Rt);if(!Hn)return St;const{scaleX:Oi,scaleY:Yt,x:Zn,y:Ji}=Hn,xi=St.left-Zn-(1-Oi)*parseFloat(gn),nr=St.top-Ji-(1-Yt)*parseFloat(gn.slice(gn.indexOf(" ")+1)),Zi=Oi?St.width/Oi:St.width,vi=Yt?St.height/Yt:St.height;return{width:Zi,height:vi,top:nr,right:xi+Zi,bottom:nr+vi,left:xi}}const Ge={ignoreTransform:!1};function Ne(St,Rt){Rt===void 0&&(Rt=Ge);let gn=St.getBoundingClientRect();if(Rt.ignoreTransform){const{transform:nr,transformOrigin:Zi}=(0,wt.Jj)(St).getComputedStyle(St);nr&&(gn=lt(gn,nr,Zi))}const{top:Hn,left:Oi,width:Yt,height:Zn,bottom:Ji,right:xi}=gn;return{top:Hn,left:Oi,width:Yt,height:Zn,bottom:Ji,right:xi}}function Rn(St){return Ne(St,{ignoreTransform:!0})}function ai(St){const Rt=St.innerWidth,gn=St.innerHeight;return{top:0,left:0,right:Rt,bottom:gn,width:Rt,height:gn}}function Zt(St,Rt){return Rt===void 0&&(Rt=(0,wt.Jj)(St).getComputedStyle(St)),Rt.position==="fixed"}function ci(St,Rt){Rt===void 0&&(Rt=(0,wt.Jj)(St).getComputedStyle(St));const gn=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(Oi=>{const Yt=Rt[Oi];return typeof Yt=="string"?gn.test(Yt):!1})}function On(St,Rt){const gn=[];function Hn(Oi){if(Rt!=null&&gn.length>=Rt||!Oi)return gn;if((0,wt.qk)(Oi)&&Oi.scrollingElement!=null&&!gn.includes(Oi.scrollingElement))return gn.push(Oi.scrollingElement),gn;if(!(0,wt.Re)(Oi)||(0,wt.vZ)(Oi)||gn.includes(Oi))return gn;const Yt=(0,wt.Jj)(St).getComputedStyle(Oi);return Oi!==St&&ci(Oi,Yt)&&gn.push(Oi),Zt(Oi,Yt)?gn:Hn(Oi.parentNode)}return St?Hn(St):gn}function Mi(St){const[Rt]=On(St,1);return Rt!=null?Rt:null}function Xt(St){return!wt.Nq||!St?null:(0,wt.FJ)(St)?St:(0,wt.UG)(St)?(0,wt.qk)(St)||St===(0,wt.r3)(St).scrollingElement?window:(0,wt.Re)(St)?St:null:null}function At(St){return(0,wt.FJ)(St)?St.scrollX:St.scrollLeft}function on(St){return(0,wt.FJ)(St)?St.scrollY:St.scrollTop}function Si(St){return{x:At(St),y:on(St)}}var Gt;(function(St){St[St.Forward=1]="Forward",St[St.Backward=-1]="Backward"})(Gt||(Gt={}));function Xe(St){return!wt.Nq||!St?!1:St===document.scrollingElement}function ke(St){const Rt={x:0,y:0},gn=Xe(St)?{height:window.innerHeight,width:window.innerWidth}:{height:St.clientHeight,width:St.clientWidth},Hn={x:St.scrollWidth-gn.width,y:St.scrollHeight-gn.height},Oi=St.scrollTop<=Rt.y,Yt=St.scrollLeft<=Rt.x,Zn=St.scrollTop>=Hn.y,Ji=St.scrollLeft>=Hn.x;return{isTop:Oi,isLeft:Yt,isBottom:Zn,isRight:Ji,maxScroll:Hn,minScroll:Rt}}const Me={x:.2,y:.2};function He(St,Rt,gn,Hn,Oi){let{top:Yt,left:Zn,right:Ji,bottom:xi}=gn;Hn===void 0&&(Hn=10),Oi===void 0&&(Oi=Me);const{isTop:nr,isBottom:Zi,isLeft:vi,isRight:pr}=ke(St),fn={x:0,y:0},eo={x:0,y:0},so={height:Rt.height*Oi.y,width:Rt.width*Oi.x};return!nr&&Yt<=Rt.top+so.height?(fn.y=Gt.Backward,eo.y=Hn*Math.abs((Rt.top+so.height-Yt)/so.height)):!Zi&&xi>=Rt.bottom-so.height&&(fn.y=Gt.Forward,eo.y=Hn*Math.abs((Rt.bottom-so.height-xi)/so.height)),!pr&&Ji>=Rt.right-so.width?(fn.x=Gt.Forward,eo.x=Hn*Math.abs((Rt.right-so.width-Ji)/so.width)):!vi&&Zn<=Rt.left+so.width&&(fn.x=Gt.Backward,eo.x=Hn*Math.abs((Rt.left+so.width-Zn)/so.width)),{direction:fn,speed:eo}}function et(St){if(St===document.scrollingElement){const{innerWidth:Yt,innerHeight:Zn}=window;return{top:0,left:0,right:Yt,bottom:Zn,width:Yt,height:Zn}}const{top:Rt,left:gn,right:Hn,bottom:Oi}=St.getBoundingClientRect();return{top:Rt,left:gn,right:Hn,bottom:Oi,width:St.clientWidth,height:St.clientHeight}}function Oe(St){return St.reduce((Rt,gn)=>(0,wt.IH)(Rt,Si(gn)),se)}function ut(St){return St.reduce((Rt,gn)=>Rt+At(gn),0)}function Vn(St){return St.reduce((Rt,gn)=>Rt+on(gn),0)}function jn(St,Rt){if(Rt===void 0&&(Rt=Ne),!St)return;const{top:gn,left:Hn,bottom:Oi,right:Yt}=Rt(St);Mi(St)&&(Oi<=0||Yt<=0||gn>=window.innerHeight||Hn>=window.innerWidth)&&St.scrollIntoView({block:"center",inline:"center"})}const An=[["x",["left","right"],ut],["y",["top","bottom"],Vn]];class Pn{constructor(Rt,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 Hn=On(gn),Oi=Oe(Hn);this.rect=ys({},Rt),this.width=Rt.width,this.height=Rt.height;for(const[Yt,Zn,Ji]of An)for(const xi of Zn)Object.defineProperty(this,xi,{get:()=>{const nr=Ji(Hn),Zi=Oi[Yt]-nr;return this.rect[xi]+Zi},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class si{constructor(Rt){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(gn=>{var Hn;return(Hn=this.target)==null?void 0:Hn.removeEventListener(...gn)})},this.target=Rt}add(Rt,gn,Hn){var Oi;(Oi=this.target)==null||Oi.addEventListener(Rt,gn,Hn),this.listeners.push([Rt,gn,Hn])}}function mn(St){const{EventTarget:Rt}=(0,wt.Jj)(St);return St instanceof Rt?St:(0,wt.r3)(St)}function Fi(St,Rt){const gn=Math.abs(St.x),Hn=Math.abs(St.y);return typeof Rt=="number"?Math.sqrt(Qy(gn,2)+Qy(Hn,2))>Rt:"x"in Rt&&"y"in Rt?gn>Rt.x&&Hn>Rt.y:"x"in Rt?gn>Rt.x:"y"in Rt?Hn>Rt.y:!1}var Vi;(function(St){St.Click="click",St.DragStart="dragstart",St.Keydown="keydown",St.ContextMenu="contextmenu",St.Resize="resize",St.SelectionChange="selectionchange",St.VisibilityChange="visibilitychange"})(Vi||(Vi={}));function Ir(St){St.preventDefault()}function Qi(St){St.stopPropagation()}var Di;(function(St){St.Space="Space",St.Down="ArrowDown",St.Right="ArrowRight",St.Left="ArrowLeft",St.Up="ArrowUp",St.Esc="Escape",St.Enter="Enter"})(Di||(Di={}));const $r={start:[Di.Space,Di.Enter],cancel:[Di.Esc],end:[Di.Space,Di.Enter]},Yi=(St,Rt)=>{let{currentCoordinates:gn}=Rt;switch(St.code){case Di.Right:return ql(ys({},gn),{x:gn.x+25});case Di.Left:return ql(ys({},gn),{x:gn.x-25});case Di.Down:return ql(ys({},gn),{y:gn.y+25});case Di.Up:return ql(ys({},gn),{y:gn.y-25})}};class hr{constructor(Rt){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=Rt;const{event:{target:gn}}=Rt;this.props=Rt,this.listeners=new si((0,wt.r3)(gn)),this.windowListeners=new si((0,wt.Jj)(gn)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Vi.Resize,this.handleCancel),this.windowListeners.add(Vi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Vi.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:Rt,onStart:gn}=this.props,Hn=Rt.node.current;Hn&&jn(Hn),gn(se)}handleKeyDown(Rt){if((0,wt.vd)(Rt)){const{active:gn,context:Hn,options:Oi}=this.props,{keyboardCodes:Yt=$r,coordinateGetter:Zn=Yi,scrollBehavior:Ji="smooth"}=Oi,{code:xi}=Rt;if(Yt.end.includes(xi)){this.handleEnd(Rt);return}if(Yt.cancel.includes(xi)){this.handleCancel(Rt);return}const{collisionRect:nr}=Hn.current,Zi=nr?{x:nr.left,y:nr.top}:se;this.referenceCoordinates||(this.referenceCoordinates=Zi);const vi=Zn(Rt,{active:gn,context:Hn.current,currentCoordinates:Zi});if(vi){const pr=(0,wt.$X)(vi,Zi),fn={x:0,y:0},{scrollableAncestors:eo}=Hn.current;for(const so of eo){const ya=Rt.code,{isTop:fa,isRight:Ia,isLeft:ns,isBottom:Us,maxScroll:Ds,minScroll:fl}=ke(so),Hs=et(so),cn={x:Math.min(ya===Di.Right?Hs.right-Hs.width/2:Hs.right,Math.max(ya===Di.Right?Hs.left:Hs.left+Hs.width/2,vi.x)),y:Math.min(ya===Di.Down?Hs.bottom-Hs.height/2:Hs.bottom,Math.max(ya===Di.Down?Hs.top:Hs.top+Hs.height/2,vi.y))},nl=ya===Di.Right&&!Ia||ya===Di.Left&&!ns,dl=ya===Di.Down&&!Us||ya===Di.Up&&!fa;if(nl&&cn.x!==vi.x){const gl=so.scrollLeft+pr.x,Ys=ya===Di.Right&&gl<=Ds.x||ya===Di.Left&&gl>=fl.x;if(Ys&&!pr.y){so.scrollTo({left:gl,behavior:Ji});return}Ys?fn.x=so.scrollLeft-gl:fn.x=ya===Di.Right?so.scrollLeft-Ds.x:so.scrollLeft-fl.x,fn.x&&so.scrollBy({left:-fn.x,behavior:Ji});break}else if(dl&&cn.y!==vi.y){const gl=so.scrollTop+pr.y,Ys=ya===Di.Down&&gl<=Ds.y||ya===Di.Up&&gl>=fl.y;if(Ys&&!pr.x){so.scrollTo({top:gl,behavior:Ji});return}Ys?fn.y=so.scrollTop-gl:fn.y=ya===Di.Down?so.scrollTop-Ds.y:so.scrollTop-fl.y,fn.y&&so.scrollBy({top:-fn.y,behavior:Ji});break}}this.handleMove(Rt,(0,wt.IH)((0,wt.$X)(vi,this.referenceCoordinates),fn))}}}handleMove(Rt,gn){const{onMove:Hn}=this.props;Rt.preventDefault(),Hn(gn)}handleEnd(Rt){const{onEnd:gn}=this.props;Rt.preventDefault(),this.detach(),gn()}handleCancel(Rt){const{onCancel:gn}=this.props;Rt.preventDefault(),this.detach(),gn()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}hr.activators=[{eventName:"onKeyDown",handler:(St,Rt,gn)=>{let{keyboardCodes:Hn=$r,onActivation:Oi}=Rt,{active:Yt}=gn;const{code:Zn}=St.nativeEvent;if(Hn.start.includes(Zn)){const Ji=Yt.activatorNode.current;return Ji&&St.target!==Ji?!1:(St.preventDefault(),Oi==null||Oi({event:St.nativeEvent}),!0)}return!1}}];function dr(St){return!!(St&&"distance"in St)}function kn(St){return!!(St&&"delay"in St)}class Ii{constructor(Rt,gn,Hn){var Oi;Hn===void 0&&(Hn=mn(Rt.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=Rt,this.events=gn;const{event:Yt}=Rt,{target:Zn}=Yt;this.props=Rt,this.events=gn,this.document=(0,wt.r3)(Zn),this.documentListeners=new si(this.document),this.listeners=new si(Hn),this.windowListeners=new si((0,wt.Jj)(Zn)),this.initialCoordinates=(Oi=(0,wt.DC)(Yt))!=null?Oi: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:Rt,props:{options:{activationConstraint:gn,bypassActivationConstraint:Hn}}}=this;if(this.listeners.add(Rt.move.name,this.handleMove,{passive:!1}),this.listeners.add(Rt.end.name,this.handleEnd),this.windowListeners.add(Vi.Resize,this.handleCancel),this.windowListeners.add(Vi.DragStart,Ir),this.windowListeners.add(Vi.VisibilityChange,this.handleCancel),this.windowListeners.add(Vi.ContextMenu,Ir),this.documentListeners.add(Vi.Keydown,this.handleKeydown),gn){if(Hn!=null&&Hn({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(dr(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:Rt}=this,{onStart:gn}=this.props;Rt&&(this.activated=!0,this.documentListeners.add(Vi.Click,Qi,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Vi.SelectionChange,this.removeTextSelection),gn(Rt))}handleMove(Rt){var gn;const{activated:Hn,initialCoordinates:Oi,props:Yt}=this,{onMove:Zn,options:{activationConstraint:Ji}}=Yt;if(!Oi)return;const xi=(gn=(0,wt.DC)(Rt))!=null?gn:se,nr=(0,wt.$X)(Oi,xi);if(!Hn&&Ji){if(dr(Ji)){if(Ji.tolerance!=null&&Fi(nr,Ji.tolerance))return this.handleCancel();if(Fi(nr,Ji.distance))return this.handleStart()}return kn(Ji)&&Fi(nr,Ji.tolerance)?this.handleCancel():void 0}Rt.cancelable&&Rt.preventDefault(),Zn(xi)}handleEnd(){const{onEnd:Rt}=this.props;this.detach(),Rt()}handleCancel(){const{onCancel:Rt}=this.props;this.detach(),Rt()}handleKeydown(Rt){Rt.code===Di.Esc&&this.handleCancel()}removeTextSelection(){var Rt;(Rt=this.document.getSelection())==null||Rt.removeAllRanges()}}const ra={move:{name:"pointermove"},end:{name:"pointerup"}};class Un extends Ii{constructor(Rt){const{event:gn}=Rt,Hn=(0,wt.r3)(gn.target);super(Rt,ra,Hn)}}Un.activators=[{eventName:"onPointerDown",handler:(St,Rt)=>{let{nativeEvent:gn}=St,{onActivation:Hn}=Rt;return!gn.isPrimary||gn.button!==0?!1:(Hn==null||Hn({event:gn}),!0)}}];const Kr={move:{name:"mousemove"},end:{name:"mouseup"}};var ia;(function(St){St[St.RightClick=2]="RightClick"})(ia||(ia={}));class sa extends Ii{constructor(Rt){super(Rt,Kr,(0,wt.r3)(Rt.event.target))}}sa.activators=[{eventName:"onMouseDown",handler:(St,Rt)=>{let{nativeEvent:gn}=St,{onActivation:Hn}=Rt;return gn.button===ia.RightClick?!1:(Hn==null||Hn({event:gn}),!0)}}];const Wa={move:{name:"touchmove"},end:{name:"touchend"}};class ma extends Ii{constructor(Rt){super(Rt,Wa)}static setup(){return window.addEventListener(Wa.move.name,Rt,{capture:!1,passive:!1}),function(){window.removeEventListener(Wa.move.name,Rt)};function Rt(){}}}ma.activators=[{eventName:"onTouchStart",handler:(St,Rt)=>{let{nativeEvent:gn}=St,{onActivation:Hn}=Rt;const{touches:Oi}=gn;return Oi.length>1?!1:(Hn==null||Hn({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:Rt,activator:gn=Ha.Pointer,canScroll:Hn,draggingRect:Oi,enabled:Yt,interval:Zn=5,order:Ji=da.TreeOrder,pointerCoordinates:xi,scrollableAncestors:nr,scrollableAncestorRects:Zi,delta:vi,threshold:pr}=St;const fn=ti({delta:vi,disabled:!Yt}),[eo,so]=(0,wt.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 xi?{top:xi.y,bottom:xi.y,left:xi.x,right:xi.x}:null;case Ha.DraggableRect:return Oi}},[gn,Oi,xi]),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)(()=>Ji===da.TreeOrder?[...nr].reverse():nr,[Ji,nr]);(0,ve.useEffect)(()=>{if(!Yt||!nr.length||!Ia){so();return}for(const fl of Ds){if((Hn==null?void 0:Hn(fl))===!1)continue;const Hs=nr.indexOf(fl),cn=Zi[Hs];if(!cn)continue;const{direction:nl,speed:dl}=He(fl,cn,Ia,Rt,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,Zn),ya.current=dl,fa.current=nl;return}}ya.current={x:0,y:0},fa.current={x:0,y:0},so()},[Rt,Us,Hn,so,Yt,Zn,JSON.stringify(Ia),JSON.stringify(fn),eo,nr,Ds,Zi,JSON.stringify(pr)])}const No={x:{[Gt.Backward]:!1,[Gt.Forward]:!1},y:{[Gt.Backward]:!1,[Gt.Forward]:!1}};function ti(St){let{delta:Rt,disabled:gn}=St;const Hn=(0,wt.D9)(Rt);return(0,wt.Gj)(Oi=>{if(gn||!Hn||!Oi)return No;const Yt={x:Math.sign(Rt.x-Hn.x),y:Math.sign(Rt.y-Hn.y)};return{x:{[Gt.Backward]:Oi.x[Gt.Backward]||Yt.x===-1,[Gt.Forward]:Oi.x[Gt.Forward]||Yt.x===1},y:{[Gt.Backward]:Oi.y[Gt.Backward]||Yt.y===-1,[Gt.Forward]:Oi.y[Gt.Forward]||Yt.y===1}}},[gn,Rt,Hn])}function Ee(St,Rt){const gn=Rt!==null?St.get(Rt):void 0,Hn=gn?gn.node.current:null;return(0,wt.Gj)(Oi=>{var Yt;return Rt===null?null:(Yt=Hn!=null?Hn:Oi)!=null?Yt:null},[Hn,Rt])}function pn(St,Rt){return(0,ve.useMemo)(()=>St.reduce((gn,Hn)=>{const{sensor:Oi}=Hn,Yt=Oi.activators.map(Zn=>({eventName:Zn.eventName,handler:Rt(Zn.handler,Hn)}));return[...gn,...Yt]},[]),[St,Rt])}var hn;(function(St){St[St.Always=0]="Always",St[St.BeforeDragging=1]="BeforeDragging",St[St.WhileDragging=2]="WhileDragging"})(hn||(hn={}));var ii;(function(St){St.Optimized="optimized"})(ii||(ii={}));const Yn=new Map;function In(St,Rt){let{dragging:gn,dependencies:Hn,config:Oi}=Rt;const[Yt,Zn]=(0,ve.useState)(null),{frequency:Ji,measure:xi,strategy:nr}=Oi,Zi=(0,ve.useRef)(St),vi=ya(),pr=(0,wt.Ey)(vi),fn=(0,ve.useCallback)(function(fa){fa===void 0&&(fa=[]),!pr.current&&Zn(Ia=>Ia===null?fa:Ia.concat(fa.filter(ns=>!Ia.includes(ns))))},[pr]),eo=(0,ve.useRef)(null),so=(0,wt.Gj)(fa=>{if(vi&&!gn)return Yn;if(!fa||fa===Yn||Zi.current!==St||Yt!=null){const Ia=new Map;for(let ns of St){if(!ns)continue;if(Yt&&Yt.length>0&&!Yt.includes(ns.id)&&ns.rect.current){Ia.set(ns.id,ns.rect.current);continue}const Us=ns.node.current,Ds=Us?new Pn(xi(Us),Us):null;ns.rect.current=Ds,Ds&&Ia.set(ns.id,Ds)}return Ia}return fa},[St,Yt,gn,vi,xi]);return(0,ve.useEffect)(()=>{Zi.current=St},[St]),(0,ve.useEffect)(()=>{vi||fn()},[gn,vi]),(0,ve.useEffect)(()=>{Yt&&Yt.length>0&&Zn(null)},[JSON.stringify(Yt)]),(0,ve.useEffect)(()=>{vi||typeof Ji!="number"||eo.current!==null||(eo.current=setTimeout(()=>{fn(),eo.current=null},Ji))},[Ji,vi,fn,...Hn]),{droppableRects:so,measureDroppableContainers:fn,measuringScheduled:Yt!=null};function ya(){switch(nr){case hn.Always:return!1;case hn.BeforeDragging:return gn;default:return!gn}}}function en(St,Rt){return(0,wt.Gj)(gn=>St?gn||(typeof Rt=="function"?Rt(St):St):null,[Rt,St])}function ni(St,Rt){return en(St,Rt)}function zt(St){let{callback:Rt,disabled:gn}=St;const Hn=(0,wt.zX)(Rt),Oi=(0,ve.useMemo)(()=>{if(gn||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:Yt}=window;return new Yt(Hn)},[Hn,gn]);return(0,ve.useEffect)(()=>()=>Oi==null?void 0:Oi.disconnect(),[Oi]),Oi}function Kt(St){let{callback:Rt,disabled:gn}=St;const Hn=(0,wt.zX)(Rt),Oi=(0,ve.useMemo)(()=>{if(gn||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:Yt}=window;return new Yt(Hn)},[gn]);return(0,ve.useEffect)(()=>()=>Oi==null?void 0:Oi.disconnect(),[Oi]),Oi}function Ft(St){return new Pn(Ne(St),St)}function un(St,Rt,gn){Rt===void 0&&(Rt=Ft);const[Hn,Oi]=(0,ve.useReducer)(Ji,null),Yt=zt({callback(xi){if(St)for(const nr of xi){const{type:Zi,target:vi}=nr;if(Zi==="childList"&&vi instanceof HTMLElement&&vi.contains(St)){Oi();break}}}}),Zn=Kt({callback:Oi});return(0,wt.LI)(()=>{Oi(),St?(Zn==null||Zn.observe(St),Yt==null||Yt.observe(document.body,{childList:!0,subtree:!0})):(Zn==null||Zn.disconnect(),Yt==null||Yt.disconnect())},[St]),Hn;function Ji(xi){if(!St)return null;if(St.isConnected===!1){var nr;return(nr=xi!=null?xi:gn)!=null?nr:null}const Zi=Rt(St);return JSON.stringify(xi)===JSON.stringify(Zi)?xi:Zi}}function Ti(St){const Rt=en(St);return Jn(St,Rt)}const Ri=[];function hi(St){const Rt=(0,ve.useRef)(St),gn=(0,wt.Gj)(Hn=>St?Hn&&Hn!==Ri&&St&&Rt.current&&St.parentNode===Rt.current.parentNode?Hn:On(St):Ri,[St]);return(0,ve.useEffect)(()=>{Rt.current=St},[St]),gn}function Ut(St){const[Rt,gn]=(0,ve.useState)(null),Hn=(0,ve.useRef)(St),Oi=(0,ve.useCallback)(Yt=>{const Zn=Xt(Yt.target);Zn&&gn(Ji=>Ji?(Ji.set(Zn,Si(Zn)),new Map(Ji)):null)},[]);return(0,ve.useEffect)(()=>{const Yt=Hn.current;if(St!==Yt){Zn(Yt);const Ji=St.map(xi=>{const nr=Xt(xi);return nr?(nr.addEventListener("scroll",Oi,{passive:!0}),[nr,Si(nr)]):null}).filter(xi=>xi!=null);gn(Ji.length?new Map(Ji):null),Hn.current=St}return()=>{Zn(St),Zn(Yt)};function Zn(Ji){Ji.forEach(xi=>{const nr=Xt(xi);nr==null||nr.removeEventListener("scroll",Oi)})}},[Oi,St]),(0,ve.useMemo)(()=>St.length?Rt?Array.from(Rt.values()).reduce((Yt,Zn)=>(0,wt.IH)(Yt,Zn),se):Oe(St):se,[St,Rt])}function zn(St,Rt){Rt===void 0&&(Rt=[]);const gn=(0,ve.useRef)(null);return(0,ve.useEffect)(()=>{gn.current=null},Rt),(0,ve.useEffect)(()=>{const Hn=St!==se;Hn&&!gn.current&&(gn.current=St),!Hn&&gn.current&&(gn.current=null)},[St]),gn.current?(0,wt.$X)(St,gn.current):se}function xn(St){(0,ve.useEffect)(()=>{if(!wt.Nq)return;const Rt=St.map(gn=>{let{sensor:Hn}=gn;return Hn.setup==null?void 0:Hn.setup()});return()=>{for(const gn of Rt)gn==null||gn()}},St.map(Rt=>{let{sensor:gn}=Rt;return gn}))}function Fr(St,Rt){return(0,ve.useMemo)(()=>St.reduce((gn,Hn)=>{let{eventName:Oi,handler:Yt}=Hn;return gn[Oi]=Zn=>{Yt(Zn,Rt)},gn},{}),[St,Rt])}function ri(St){return(0,ve.useMemo)(()=>St?ai(St):null,[St])}const $t=[];function _i(St,Rt){Rt===void 0&&(Rt=Ne);const[gn]=St,Hn=ri(gn?(0,wt.Jj)(gn):null),[Oi,Yt]=(0,ve.useReducer)(Ji,$t),Zn=Kt({callback:Yt});return St.length>0&&Oi===$t&&Yt(),(0,wt.LI)(()=>{St.length?St.forEach(xi=>Zn==null?void 0:Zn.observe(xi)):(Zn==null||Zn.disconnect(),Yt())},[St]),Oi;function Ji(){return St.length?St.map(xi=>Xe(xi)?Hn:new Pn(Rt(xi),xi)):$t}}function Wr(St){if(!St)return null;if(St.children.length>1)return St;const Rt=St.children[0];return(0,wt.Re)(Rt)?Rt:St}function Br(St){let{measure:Rt}=St;const[gn,Hn]=(0,ve.useState)(null),Oi=(0,ve.useCallback)(nr=>{for(const{target:Zi}of nr)if((0,wt.Re)(Zi)){Hn(vi=>{const pr=Rt(Zi);return vi?ql(ys({},vi),{width:pr.width,height:pr.height}):pr});break}},[Rt]),Yt=Kt({callback:Oi}),Zn=(0,ve.useCallback)(nr=>{const Zi=Wr(nr);Yt==null||Yt.disconnect(),Zi&&(Yt==null||Yt.observe(Zi)),Hn(Zi?Rt(Zi):null)},[Rt,Yt]),[Ji,xi]=(0,wt.wm)(Zn);return(0,ve.useMemo)(()=>({nodeRef:Ji,rect:gn,setRef:xi}),[gn,Ji,xi])}const Sn=[{sensor:Un,options:{}},{sensor:hr,options:{}}],or={current:{}},Xo={draggable:{measure:Rn},droppable:{measure:Rn,strategy:hn.WhileDragging,frequency:ii.Optimized},dragOverlay:{measure:Ne}};class Na extends Map{get(Rt){var gn;return Rt!=null&&(gn=super.get(Rt))!=null?gn:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(Rt=>{let{disabled:gn}=Rt;return!gn})}getNodeFor(Rt){var gn,Hn;return(gn=(Hn=this.get(Rt))==null?void 0:Hn.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},ur={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ne,draggableNodes:new Map,over:null,measureDroppableContainers:ne},Nr=(0,ve.createContext)(ur),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,Rt){switch(Rt.type){case Te.DragStart:return ql(ys({},St),{draggable:ql(ys({},St.draggable),{initialCoordinates:Rt.initialCoordinates,active:Rt.active})});case Te.DragMove:return St.draggable.active?ql(ys({},St),{draggable:ql(ys({},St.draggable),{translate:{x:Rt.coordinates.x-St.draggable.initialCoordinates.x,y:Rt.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}=Rt,{id:Hn}=gn,Oi=new Na(St.droppable.containers);return Oi.set(Hn,gn),ql(ys({},St),{droppable:ql(ys({},St.droppable),{containers:Oi})})}case Te.SetDroppableDisabled:{const{id:gn,key:Hn,disabled:Oi}=Rt,Yt=St.droppable.containers.get(gn);if(!Yt||Hn!==Yt.key)return St;const Zn=new Na(St.droppable.containers);return Zn.set(gn,ql(ys({},Yt),{disabled:Oi})),ql(ys({},St),{droppable:ql(ys({},St.droppable),{containers:Zn})})}case Te.UnregisterDroppable:{const{id:gn,key:Hn}=Rt,Oi=St.droppable.containers.get(gn);if(!Oi||Hn!==Oi.key)return St;const Yt=new Na(St.droppable.containers);return Yt.delete(gn),ql(ys({},St),{droppable:ql(ys({},St.droppable),{containers:Yt})})}default:return St}}function pi(St){let{disabled:Rt}=St;const{active:gn,activatorEvent:Hn,draggableNodes:Oi}=(0,ve.useContext)(Nr),Yt=(0,wt.D9)(Hn),Zn=(0,wt.D9)(gn==null?void 0:gn.id);return(0,ve.useEffect)(()=>{if(!Rt&&!Hn&&Yt&&Zn!=null){if(!(0,wt.vd)(Yt)||document.activeElement===Yt.target)return;const Ji=Oi.get(Zn);if(!Ji)return;const{activatorNode:xi,node:nr}=Ji;if(!xi.current&&!nr.current)return;requestAnimationFrame(()=>{for(const Zi of[xi.current,nr.current]){if(!Zi)continue;const vi=(0,wt.so)(Zi);if(vi){vi.focus();break}}})}},[Hn,Rt,Oi,Zn,Yt]),null}function lo(St,Rt){let Oi=Rt,{transform:gn}=Oi,Hn=o0(Oi,["transform"]);return St!=null&&St.length?St.reduce((Yt,Zn)=>Zn(ys({transform:Yt},Hn)),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:Rt,measure:gn,initialRect:Hn,config:Oi=!0}=St;const Yt=(0,ve.useRef)(!1),{x:Zn,y:Ji}=typeof Oi=="boolean"?{x:Oi,y:Oi}:Oi;(0,wt.LI)(()=>{if(!Zn&&!Ji||!Rt){Yt.current=!1;return}if(Yt.current||!Hn)return;const nr=Rt==null?void 0:Rt.node.current;if(!nr||nr.isConnected===!1)return;const Zi=gn(nr),vi=Jn(Zi,Hn);if(Zn||(vi.x=0),Ji||(vi.y=0),Yt.current=!0,Math.abs(vi.x)>0||Math.abs(vi.y)>0){const pr=Mi(nr);pr&&pr.scrollBy({top:vi.y,left:vi.x})}},[Rt,Zn,Ji,Hn,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(Rt){var gn,Hn,Oi,Yt;let xl=Rt,{id:Zn,accessibility:Ji,autoScroll:xi=!0,children:nr,sensors:Zi=Sn,collisionDetection:vi=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]=yt(),[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,wt.Ey)(eo,Object.values(eo)),Is=(0,wt.Ld)("DndDescribedBy",Zn),pl=(0,ve.useMemo)(()=>dl.getEnabled(),[dl]),Mo=al(pr),{droppableRects:$u,measureDroppableContainers:Pu,measuringScheduled:$l}=In(pl,{dragging:fl,dependencies:[nl.x,nl.y],config:Mo.droppable}),ou=Ee(cn,Hs),gc=(0,ve.useMemo)(()=>il?(0,wt.DC)(il):null,[il]),kr=Vl(),hl=ni(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=Br({measure:Mo.dragOverlay.measure}),Lu=(Hn=Sa.nodeRef.current)!=null?Hn:ou,Fl=fl?(Oi=Sa.rect)!=null?Oi:Rs:null,Il=!!(Sa.nodeRef.current&&Sa.rect),eu=Ti(Il?null:Rs),Cc=ri(Lu?(0,wt.Jj)(Lu):null),du=hi(fl?Ou!=null?Ou:ou:null),Ol=_i(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,wt.IH)(gc,nl):null,ah=Ut(du),Hc=zn(ah),Yh=zn(ah,[Rs]),Wu=(0,wt.IH)(Cu,Hc),El=Fl?sn(Fl,Cu):null,Hu=Ul&&El?vi({active:Ul,collisionRect:El,droppableRects:$u,droppableContainers:pl,pointerCoordinates:Wc}):null,Iu=nt(Hu,"id"),[ku,Jc]=(0,ve.useState)(null),Sh=Il?Cu:(0,wt.IH)(Cu,Yh),ml=Ht(Sh,(Yt=ku==null?void 0:ku.rect)!=null?Yt: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 Ot=hu.current;if(Ot==null)return;const di=cn.get(Ot);if(!di)return;const{onDragStart:Kl}=Xa.current,Yu={active:{id:Ot,data:di.data,rect:Ys}};(0,ot.unstable_batchedUpdates)(()=>{Kl==null||Kl(Yu),Ds(ln.Initializing),fa({type:Te.DragStart,initialCoordinates:gu,active:Ot}),Ia({type:"onDragStart",event:Yu})})},onMove(gu){fa({type:Te.DragMove,coordinates:gu})},onEnd:Fo(Te.DragEnd),onCancel:Fo(Te.DragCancel)});(0,ot.unstable_batchedUpdates)(()=>{_s(Ru),Ra(Ts.nativeEvent)});function Fo(gu){return function(){return Cx(this,null,function*(){const{active:di,collisions:Kl,over:Yu,scrollAdjustedTranslate:ec}=zu.current;let pu=null;if(di&&ec){const{cancelDrop:Eu}=Xa.current;pu={activatorEvent:fu,active:di,collisions:Kl,delta:ec,over:Yu},gu===Te.DragEnd&&typeof Eu=="function"&&(yield Promise.resolve(Eu(pu)))&&(gu=Te.DragCancel)}hu.current=null,(0,ot.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(Zi,lh);xn(Zi),(0,wt.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,ot.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,ot.unstable_batchedUpdates)(()=>{Jc(Fo),fu==null||fu(gu),Ia({type:"onDragOver",event:gu})})},[Iu]),(0,wt.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(pi,{disabled:(Ji==null?void 0:Ji.restoreFocus)===!1})),ve.createElement(We,ql(ys({},Ji),{hiddenTextDescribedById:Is})));function Vl(){const Ts=(fc==null?void 0:fc.autoScrollEnabled)===!1,nu=typeof xi=="object"?xi.enabled===!1:xi===!1,ol=fl&&!Ts&&!nu;return typeof xi=="object"?ql(ys({},xi),{enabled:ol}):{enabled:ol}}}),Va=(0,ve.createContext)(null),Ao="button",ms="Droppable";function Ba(St){let{id:Rt,data:gn,disabled:Hn=!1,attributes:Oi}=St;const Yt=(0,wt.Ld)(ms),{activators:Zn,activatorEvent:Ji,active:xi,activeNodeRect:nr,ariaDescribedById:Zi,draggableNodes:vi,over:pr}=(0,ve.useContext)(Nr),{role:fn=Ao,roleDescription:eo="draggable",tabIndex:so=0}=Oi!=null?Oi:{},ya=(xi==null?void 0:xi.id)===Rt,fa=(0,ve.useContext)(ya?Ns:Va),[Ia,ns]=(0,wt.wm)(),[Us,Ds]=(0,wt.wm)(),fl=Fr(Zn,Rt),Hs=(0,wt.Ey)(gn);(0,wt.LI)(()=>(vi.set(Rt,{id:Rt,key:Yt,node:Ia,activatorNode:Us,data:Hs}),()=>{const nl=vi.get(Rt);nl&&nl.key===Yt&&vi.delete(Rt)}),[vi,Rt]);const cn=(0,ve.useMemo)(()=>({role:fn,tabIndex:so,"aria-disabled":Hn,"aria-pressed":ya&&fn===Ao?!0:void 0,"aria-roledescription":eo,"aria-describedby":Zi.draggable}),[Hn,fn,so,ya,eo,Zi.draggable]);return{active:xi,activatorEvent:Ji,activeNodeRect:nr,attributes:cn,isDragging:ya,listeners:Hn?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:Rt,disabled:gn=!1,id:Hn,resizeObserverConfig:Oi}=St;const Yt=(0,wt.Ld)(Er),{active:Zn,dispatch:Ji,over:xi,measureDroppableContainers:nr}=(0,ve.useContext)(Nr),Zi=(0,ve.useRef)({disabled:gn}),vi=(0,ve.useRef)(!1),pr=(0,ve.useRef)(null),fn=(0,ve.useRef)(null),{disabled:eo,updateMeasurementsFor:so,timeout:ya}=ys(ys({},uo),Oi),fa=(0,wt.Ey)(so!=null?so:Hn),Ia=(0,ve.useCallback)(()=>{if(!vi.current){vi.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=Kt({callback:Ia,disabled:eo||!Zn}),Us=(0,ve.useCallback)((cn,nl)=>{ns&&(nl&&(ns.unobserve(nl),vi.current=!1),cn&&ns.observe(cn))},[ns]),[Ds,fl]=(0,wt.wm)(Us),Hs=(0,wt.Ey)(Rt);return(0,ve.useEffect)(()=>{!ns||!Ds.current||(ns.disconnect(),vi.current=!1,ns.observe(Ds.current))},[Ds,ns]),(0,wt.LI)(()=>(Ji({type:Te.RegisterDroppable,element:{id:Hn,key:Yt,disabled:gn,node:Ds,rect:pr,data:Hs}}),()=>Ji({type:Te.UnregisterDroppable,key:Yt,id:Hn})),[Hn]),(0,ve.useEffect)(()=>{gn!==Zi.current.disabled&&(Ji({type:Te.SetDroppableDisabled,id:Hn,key:Yt,disabled:gn}),Zi.current.disabled=gn)},[Hn,Yt,gn,Ji]),{active:Zn,rect:pr,isOver:(xi==null?void 0:xi.id)===Hn,node:Ds,over:xi,setNodeRef:fl}}function Wn(St){let{animation:Rt,children:gn}=St;const[Hn,Oi]=useState(null),[Yt,Zn]=useState(null),Ji=usePrevious(gn);return!gn&&!Hn&&Ji&&Oi(Ji),useIsomorphicLayoutEffect(()=>{if(!Yt)return;const xi=Hn==null?void 0:Hn.key,nr=Hn==null?void 0:Hn.props.id;if(xi==null||nr==null){Oi(null);return}Promise.resolve(Rt(nr,Yt)).then(()=>{Oi(null)})},[Rt,Hn,Yt]),React.createElement(React.Fragment,null,gn,Hn?cloneElement(Hn,{ref:Zn}):null)}const ka={x:0,y:0,scaleX:1,scaleY:1};function Cn(St){let{children:Rt}=St;return React.createElement(Nr.Provider,{value:ur},React.createElement(Ns.Provider,{value:ka},Rt))}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:Rt,final:gn}}=St;return[{transform:wt.ux.Transform.toString(Rt)},{transform:wt.ux.Transform.toString(gn)}]},sideEffects:(St=>Rt=>{let{active:gn,dragOverlay:Hn}=Rt;const Oi={},{styles:Yt,className:Zn}=St;if(Yt!=null&&Yt.active)for(const[Ji,xi]of Object.entries(Yt.active))xi!==void 0&&(Oi[Ji]=gn.node.style.getPropertyValue(Ji),gn.node.style.setProperty(Ji,xi));if(Yt!=null&&Yt.dragOverlay)for(const[Ji,xi]of Object.entries(Yt.dragOverlay))xi!==void 0&&Hn.node.style.setProperty(Ji,xi);return Zn!=null&&Zn.active&&gn.node.classList.add(Zn.active),Zn!=null&&Zn.dragOverlay&&Hn.node.classList.add(Zn.dragOverlay),function(){for(const[xi,nr]of Object.entries(Oi))gn.node.style.setProperty(xi,nr);Zn!=null&&Zn.active&&gn.node.classList.remove(Zn.active)}})({styles:{active:{opacity:"0"}}})};function us(St){let{config:Rt,draggableNodes:gn,droppableContainers:Hn,measuringConfiguration:Oi}=St;return useEvent((Yt,Zn)=>{if(Rt===null)return;const Ji=gn.get(Yt);if(!Ji)return;const xi=Ji.node.current;if(!xi)return;const nr=Wr(Zn);if(!nr)return;const{transform:Zi}=getWindow(Zn).getComputedStyle(Zn),vi=Nn(Zi);if(!vi)return;const pr=typeof Rt=="function"?Rt:tl(Rt);return jn(xi,Oi.draggable.measure),pr({active:{id:Yt,data:Ji.data,node:xi,rect:Oi.draggable.measure(xi)},draggableNodes:gn,dragOverlay:{node:Zn,rect:Oi.dragOverlay.measure(nr)},droppableContainers:Hn,measuringConfiguration:Oi,transform:vi})})}function tl(St){const{duration:Rt,easing:gn,sideEffects:Hn,keyframes:Oi}=ys(ys({},Ua),St);return Yt=>{let Ia=Yt,{active:Zn,dragOverlay:Ji,transform:xi}=Ia,nr=o0(Ia,["active","dragOverlay","transform"]);if(!Rt)return;const Zi={x:Ji.rect.left-Zn.rect.left,y:Ji.rect.top-Zn.rect.top},vi={scaleX:xi.scaleX!==1?Zn.rect.width*xi.scaleX/Ji.rect.width:1,scaleY:xi.scaleY!==1?Zn.rect.height*xi.scaleY/Ji.rect.height:1},pr=ys({x:xi.x-Zi.x,y:xi.y-Zi.y},vi),fn=Oi(ql(ys({},nr),{active:Zn,dragOverlay:Ji,transform:{initial:xi,final:pr}})),[eo]=fn,so=fn[fn.length-1];if(JSON.stringify(eo)===JSON.stringify(so))return;const ya=Hn==null?void 0:Hn(ys({active:Zn,dragOverlay:Ji},nr)),fa=Ji.node.animate(fn,{duration:Rt,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 st=null},32339:function(Dn,ei,be){"use strict";be.d(ei,{DL:function(){return Je}});var ve=be(24285);function ot(yt){return Vt=>{let{transform:ct}=Vt;return ql(ys({},ct),{x:Math.ceil(ct.x/yt)*yt,y:Math.ceil(ct.y/yt)*yt})}}const wt=yt=>{let{transform:Vt}=yt;return ql(ys({},Vt),{y:0})};function Qt(yt,Vt,ct){const We=ys({},yt);return Vt.top+yt.y<=ct.top?We.y=ct.top-Vt.top:Vt.bottom+yt.y>=ct.top+ct.height&&(We.y=ct.top+ct.height-Vt.bottom),Vt.left+yt.x<=ct.left?We.x=ct.left-Vt.left:Vt.right+yt.x>=ct.left+ct.width&&(We.x=ct.left+ct.width-Vt.right),We}const Nt=yt=>{let{containerNodeRect:Vt,draggingNodeRect:ct,transform:We}=yt;return!ct||!Vt?We:Qt(We,ct,Vt)},Re=yt=>{let{draggingNodeRect:Vt,transform:ct,scrollableAncestorRects:We}=yt;const Te=We[0];return!Vt||!Te?ct:Qt(ct,Vt,Te)},Je=yt=>{let{transform:Vt}=yt;return ql(ys({},Vt),{x:0})},pt=yt=>{let{transform:Vt,draggingNodeRect:ct,windowRect:We}=yt;return!ct||!We?Vt:Qt(Vt,ct,We)},mt=yt=>{let{activatorEvent:Vt,draggingNodeRect:ct,transform:We}=yt;if(ct&&Vt){const Te=getEventCoordinates(Vt);if(!Te)return We;const ne=Te.x-ct.left,te=Te.y-ct.top;return ql(ys({},We),{x:We.x+ne-ct.width/2,y:We.y+te-ct.height/2})}return We}},45587:function(Dn,ei,be){"use strict";be.d(ei,{Fo:function(){return me},Rp:function(){return Qt},nB:function(){return jt},qw:function(){return te}});var ve=be(67294),ot=be(60887),wt=be(24285);function Qt(sn,Nn,lt){const Ge=sn.slice();return Ge.splice(lt<0?Ge.length+lt:lt,0,Ge.splice(Nn,1)[0]),Ge}function Nt(sn,Nn,lt){const Ge=sn.slice();return Ge[Nn]=sn[lt],Ge[lt]=sn[Nn],Ge}function Re(sn,Nn){return sn.reduce((lt,Ge,Ne)=>{const Rn=Nn.get(Ge);return Rn&&(lt[Ne]=Rn),lt},Array(sn.length))}function Je(sn){return sn!==null&&sn>=0}function pt(sn,Nn){if(sn===Nn)return!0;if(sn.length!==Nn.length)return!1;for(let lt=0;lt<sn.length;lt++)if(sn[lt]!==Nn[lt])return!1;return!0}function mt(sn){return typeof sn=="boolean"?{draggable:sn,droppable:sn}:sn}const yt={scaleX:1,scaleY:1},Vt=sn=>{var Nn;let{rects:lt,activeNodeRect:Ge,activeIndex:Ne,overIndex:Rn,index:ai}=sn;const Zt=(Nn=lt[Ne])!=null?Nn:Ge;if(!Zt)return null;const ci=ct(lt,ai,Ne);if(ai===Ne){const On=lt[Rn];return On?ys({x:Ne<Rn?On.left+On.width-(Zt.left+Zt.width):On.left-Zt.left,y:0},yt):null}return ai>Ne&&ai<=Rn?ys({x:-Zt.width-ci,y:0},yt):ai<Ne&&ai>=Rn?ys({x:Zt.width+ci,y:0},yt):ys({x:0,y:0},yt)};function ct(sn,Nn,lt){const Ge=sn[Nn],Ne=sn[Nn-1],Rn=sn[Nn+1];return!Ge||!Ne&&!Rn?0:lt<Nn?Ne?Ge.left-(Ne.left+Ne.width):Rn.left-(Ge.left+Ge.width):Rn?Rn.left-(Ge.left+Ge.width):Ge.left-(Ne.left+Ne.width)}const We=sn=>{let{rects:Nn,activeIndex:lt,overIndex:Ge,index:Ne}=sn;const Rn=Qt(Nn,Ge,lt),ai=Nn[Ne],Zt=Rn[Ne];return!Zt||!ai?null:{x:Zt.left-ai.left,y:Zt.top-ai.top,scaleX:Zt.width/ai.width,scaleY:Zt.height/ai.height}},Te=sn=>{let{activeIndex:Nn,index:lt,rects:Ge,overIndex:Ne}=sn,Rn,ai;return lt===Nn&&(Rn=Ge[lt],ai=Ge[Ne]),lt===Ne&&(Rn=Ge[lt],ai=Ge[Nn]),!ai||!Rn?null:{x:ai.left-Rn.left,y:ai.top-Rn.top,scaleX:ai.width/Rn.width,scaleY:ai.height/Rn.height}},ne={scaleX:1,scaleY:1},te=sn=>{var Nn;let{activeIndex:lt,activeNodeRect:Ge,index:Ne,rects:Rn,overIndex:ai}=sn;const Zt=(Nn=Rn[lt])!=null?Nn:Ge;if(!Zt)return null;if(Ne===lt){const On=Rn[ai];return On?ys({x:0,y:lt<ai?On.top+On.height-(Zt.top+Zt.height):On.top-Zt.top},ne):null}const ci=ue(Rn,Ne,lt);return Ne>lt&&Ne<=ai?ys({x:0,y:-Zt.height-ci},ne):Ne<lt&&Ne>=ai?ys({x:0,y:Zt.height+ci},ne):ys({x:0,y:0},ne)};function ue(sn,Nn,lt){const Ge=sn[Nn],Ne=sn[Nn-1],Rn=sn[Nn+1];return Ge?lt<Nn?Ne?Ge.top-(Ne.top+Ne.height):Rn?Rn.top-(Ge.top+Ge.height):0:Rn?Rn.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:We,disabled:{draggable:!1,droppable:!1}});function me(sn){let{children:Nn,id:lt,items:Ge,strategy:Ne=We,disabled:Rn=!1}=sn;const{active:ai,dragOverlay:Zt,droppableRects:ci,over:On,measureDroppableContainers:Mi}=(0,ot.Cj)(),Xt=(0,wt.Ld)(se,lt),At=Zt.rect!==null,on=(0,ve.useMemo)(()=>Ge.map(ut=>typeof ut=="object"&&"id"in ut?ut.id:ut),[Ge]),Si=ai!=null,Gt=ai?on.indexOf(ai.id):-1,Xe=On?on.indexOf(On.id):-1,ke=(0,ve.useRef)(on),Me=!pt(on,ke.current),He=Xe!==-1&&Gt===-1||Me,et=mt(Rn);(0,wt.LI)(()=>{Me&&Si&&Mi(on)},[Me,on,Si,Mi]),(0,ve.useEffect)(()=>{ke.current=on},[on]);const Oe=(0,ve.useMemo)(()=>({activeIndex:Gt,containerId:Xt,disabled:et,disableTransforms:He,items:on,overIndex:Xe,useDragOverlay:At,sortedRects:Re(on,ci),strategy:Ne}),[Gt,Xt,et.draggable,et.droppable,He,on,Xe,ci,At,Ne]);return ve.createElement(ge.Provider,{value:Oe},Nn)}const xe=sn=>{let{id:Nn,items:lt,activeIndex:Ge,overIndex:Ne}=sn;return Qt(lt,Ge,Ne).indexOf(Nn)},Pe=sn=>{let{containerId:Nn,isSorting:lt,wasDragging:Ge,index:Ne,items:Rn,newIndex:ai,previousItems:Zt,previousContainerId:ci,transition:On}=sn;return!On||!Ge||Zt!==Rn&&Ne===ai?!1:lt?!0:ai!==Ne&&Nn===ci},Ke={duration:200,easing:"ease"},nt="transform",ft=wt.ux.Transition.toString({property:nt,duration:0,easing:"linear"}),qe={roleDescription:"sortable"};function at(sn){let{disabled:Nn,index:lt,node:Ge,rect:Ne}=sn;const[Rn,ai]=(0,ve.useState)(null),Zt=(0,ve.useRef)(lt);return(0,wt.LI)(()=>{if(!Nn&<!==Zt.current&&Ge.current){const ci=Ne.current;if(ci){const On=(0,ot.VK)(Ge.current,{ignoreTransform:!0}),Mi={x:ci.left-On.left,y:ci.top-On.top,scaleX:ci.width/On.width,scaleY:ci.height/On.height};(Mi.x||Mi.y)&&ai(Mi)}}lt!==Zt.current&&(Zt.current=lt)},[Nn,lt,Ge,Ne]),(0,ve.useEffect)(()=>{Rn&&ai(null)},[Rn]),Rn}function jt(sn){let{animateLayoutChanges:Nn=Pe,attributes:lt,disabled:Ge,data:Ne,getNewIndex:Rn=xe,id:ai,strategy:Zt,resizeObserverConfig:ci,transition:On=Ke}=sn;const{items:Mi,containerId:Xt,activeIndex:At,disabled:on,disableTransforms:Si,sortedRects:Gt,overIndex:Xe,useDragOverlay:ke,strategy:Me}=(0,ve.useContext)(ge),He=Mt(Ge,on),et=Mi.indexOf(ai),Oe=(0,ve.useMemo)(()=>ys({sortable:{containerId:Xt,index:et,items:Mi}},Ne),[Xt,Ne,et,Mi]),ut=(0,ve.useMemo)(()=>Mi.slice(Mi.indexOf(ai)),[Mi,ai]),{rect:Vn,node:jn,isOver:An,setNodeRef:Pn}=(0,ot.Zj)({id:ai,data:Oe,disabled:He.droppable,resizeObserverConfig:ys({updateMeasurementsFor:ut},ci)}),{active:si,activatorEvent:mn,activeNodeRect:Fi,attributes:Vi,setNodeRef:Ir,listeners:Qi,isDragging:Di,over:$r,setActivatorNodeRef:Yi,transform:hr}=(0,ot.O1)({id:ai,data:Oe,attributes:ys(ys({},qe),lt),disabled:He.draggable}),dr=(0,wt.HB)(Pn,Ir),kn=!!si,Ii=kn&&!Si&&Je(At)&&Je(Xe),ra=!ke&&Di,Un=ra&&Ii?hr:null,Kr=Zt!=null?Zt:Me,ia=Ii?Un!=null?Un:Kr({rects:Gt,activeNodeRect:Fi,activeIndex:At,overIndex:Xe,index:et}):null,sa=Je(At)&&Je(Xe)?Rn({id:ai,items:Mi,activeIndex:At,overIndex:Xe}):et,Wa=si==null?void 0:si.id,ma=(0,ve.useRef)({activeId:Wa,items:Mi,newIndex:sa,containerId:Xt}),Ha=Mi!==ma.current.items,da=Nn({active:si,containerId:Xt,isDragging:Di,isSorting:kn,id:ai,index:et,items:Mi,newIndex:ma.current.newIndex,previousItems:ma.current.items,previousContainerId:ma.current.containerId,transition:On,wasDragging:ma.current.activeId!=null}),la=at({disabled:!da,index:et,node:jn,rect:Vn});return(0,ve.useEffect)(()=>{kn&&ma.current.newIndex!==sa&&(ma.current.newIndex=sa),Xt!==ma.current.containerId&&(ma.current.containerId=Xt),Mi!==ma.current.items&&(ma.current.items=Mi)},[kn,sa,Xt,Mi]),(0,ve.useEffect)(()=>{if(Wa===ma.current.activeId)return;if(Wa&&!ma.current.activeId){ma.current.activeId=Wa;return}const ti=setTimeout(()=>{ma.current.activeId=Wa},50);return()=>clearTimeout(ti)},[Wa]),{active:si,activeIndex:At,attributes:Vi,data:Oe,rect:Vn,index:et,newIndex:sa,items:Mi,isOver:An,isSorting:kn,isDragging:Di,listeners:Qi,node:jn,overIndex:Xe,over:$r,setNodeRef:dr,setActivatorNodeRef:Yi,setDroppableNodeRef:Pn,setDraggableNodeRef:Ir,transform:la!=null?la:ia,transition:No()};function No(){if(la||Ha&&ma.current.newIndex===et)return ft;if(!(ra&&!(0,wt.vd)(mn)||!On)&&(kn||da))return wt.ux.Transition.toString(ql(ys({},On),{property:nt}))}}function Mt(sn,Nn){var lt,Ge;return typeof sn=="boolean"?{draggable:sn,droppable:!1}:{draggable:(lt=sn==null?void 0:sn.draggable)!=null?lt:Nn.draggable,droppable:(Ge=sn==null?void 0:sn.droppable)!=null?Ge:Nn.droppable}}function bt(sn){if(!sn)return!1;const Nn=sn.data.current;return!!(Nn&&"sortable"in Nn&&typeof Nn.sortable=="object"&&"containerId"in Nn.sortable&&"items"in Nn.sortable&&"index"in Nn.sortable)}const Bt=[ot.g4.Down,ot.g4.Right,ot.g4.Up,ot.g4.Left],Ht=(sn,Nn)=>{let{context:{active:lt,collisionRect:Ge,droppableRects:Ne,droppableContainers:Rn,over:ai,scrollableAncestors:Zt}}=Nn;if(Bt.includes(sn.code)){if(sn.preventDefault(),!lt||!Ge)return;const ci=[];Rn.getEnabled().forEach(Xt=>{if(!Xt||Xt!=null&&Xt.disabled)return;const At=Ne.get(Xt.id);if(At)switch(sn.code){case KeyboardCode.Down:Ge.top<At.top&&ci.push(Xt);break;case KeyboardCode.Up:Ge.top>At.top&&ci.push(Xt);break;case KeyboardCode.Left:Ge.left>At.left&&ci.push(Xt);break;case KeyboardCode.Right:Ge.left<At.left&&ci.push(Xt);break}});const On=closestCorners({active:lt,collisionRect:Ge,droppableRects:Ne,droppableContainers:ci,pointerCoordinates:null});let Mi=getFirstCollision(On,"id");if(Mi===(ai==null?void 0:ai.id)&&On.length>1&&(Mi=On[1].id),Mi!=null){const Xt=Rn.get(lt.id),At=Rn.get(Mi),on=At?Ne.get(At.id):null,Si=At==null?void 0:At.node.current;if(Si&&on&&Xt&&At){const Xe=getScrollableAncestors(Si).some((ut,Vn)=>Zt[Vn]!==ut),ke=Jn(Xt,At),Me=qn(Xt,At),He=Xe||!ke?{x:0,y:0}:{x:Me?Ge.width-on.width:0,y:Me?Ge.height-on.height:0},et={x:on.left,y:on.top};return He.x&&He.y?et:subtract(et,He)}}}};function Jn(sn,Nn){return!bt(sn)||!bt(Nn)?!1:sn.data.current.sortable.containerId===Nn.data.current.sortable.containerId}function qn(sn,Nn){return!bt(sn)||!bt(Nn)||!Jn(sn,Nn)?!1:sn.data.current.sortable.index<Nn.data.current.sortable.index}},24285:function(Dn,ei,be){"use strict";be.d(ei,{$X:function(){return Pe},D9:function(){return ue},DC:function(){return qe},Ey:function(){return Te},FJ:function(){return Qt},Gj:function(){return ne},HB:function(){return ot},IH:function(){return xe},Jj:function(){return Re},LI:function(){return Vt},Ld:function(){return ge},Nq:function(){return wt},Re:function(){return pt},UG:function(){return Nt},Yz:function(){return We},qk:function(){return Je},r3:function(){return yt},so:function(){return Mt},ux:function(){return at},vZ:function(){return mt},vd:function(){return nt},wm:function(){return te},zX:function(){return ct}});var ve=be(67294);function ot(){for(var bt=arguments.length,Bt=new Array(bt),Ht=0;Ht<bt;Ht++)Bt[Ht]=arguments[Ht];return(0,ve.useMemo)(()=>Jn=>{Bt.forEach(qn=>qn(Jn))},Bt)}const wt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Qt(bt){const Bt=Object.prototype.toString.call(bt);return Bt==="[object Window]"||Bt==="[object global]"}function Nt(bt){return"nodeType"in bt}function Re(bt){var Bt,Ht;return bt?Qt(bt)?bt:Nt(bt)&&(Bt=(Ht=bt.ownerDocument)==null?void 0:Ht.defaultView)!=null?Bt:window:window}function Je(bt){const{Document:Bt}=Re(bt);return bt instanceof Bt}function pt(bt){return Qt(bt)?!1:bt instanceof Re(bt).HTMLElement}function mt(bt){return bt instanceof Re(bt).SVGElement}function yt(bt){return bt?Qt(bt)?bt.document:Nt(bt)?Je(bt)?bt:pt(bt)||mt(bt)?bt.ownerDocument:document:document:document}const Vt=wt?ve.useLayoutEffect:ve.useEffect;function ct(bt){const Bt=(0,ve.useRef)(bt);return Vt(()=>{Bt.current=bt}),(0,ve.useCallback)(function(){for(var Ht=arguments.length,Jn=new Array(Ht),qn=0;qn<Ht;qn++)Jn[qn]=arguments[qn];return Bt.current==null?void 0:Bt.current(...Jn)},[])}function We(){const bt=(0,ve.useRef)(null),Bt=(0,ve.useCallback)((Jn,qn)=>{bt.current=setInterval(Jn,qn)},[]),Ht=(0,ve.useCallback)(()=>{bt.current!==null&&(clearInterval(bt.current),bt.current=null)},[]);return[Bt,Ht]}function Te(bt,Bt){Bt===void 0&&(Bt=[bt]);const Ht=(0,ve.useRef)(bt);return Vt(()=>{Ht.current!==bt&&(Ht.current=bt)},Bt),Ht}function ne(bt,Bt){const Ht=(0,ve.useRef)();return(0,ve.useMemo)(()=>{const Jn=bt(Ht.current);return Ht.current=Jn,Jn},[...Bt])}function te(bt){const Bt=ct(bt),Ht=(0,ve.useRef)(null),Jn=(0,ve.useCallback)(qn=>{qn!==Ht.current&&(Bt==null||Bt(qn,Ht.current)),Ht.current=qn},[]);return[Ht,Jn]}function ue(bt){const Bt=(0,ve.useRef)();return(0,ve.useEffect)(()=>{Bt.current=bt},[bt]),Bt.current}let se={};function ge(bt,Bt){return(0,ve.useMemo)(()=>{if(Bt)return Bt;const Ht=se[bt]==null?0:se[bt]+1;return se[bt]=Ht,bt+"-"+Ht},[bt,Bt])}function me(bt){return function(Bt){for(var Ht=arguments.length,Jn=new Array(Ht>1?Ht-1:0),qn=1;qn<Ht;qn++)Jn[qn-1]=arguments[qn];return Jn.reduce((sn,Nn)=>{const lt=Object.entries(Nn);for(const[Ge,Ne]of lt){const Rn=sn[Ge];Rn!=null&&(sn[Ge]=Rn+bt*Ne)}return sn},ys({},Bt))}}const xe=me(1),Pe=me(-1);function Ke(bt){return"clientX"in bt&&"clientY"in bt}function nt(bt){if(!bt)return!1;const{KeyboardEvent:Bt}=Re(bt.target);return Bt&&bt instanceof Bt}function ft(bt){if(!bt)return!1;const{TouchEvent:Bt}=Re(bt.target);return Bt&&bt instanceof Bt}function qe(bt){if(ft(bt)){if(bt.touches&&bt.touches.length){const{clientX:Bt,clientY:Ht}=bt.touches[0];return{x:Bt,y:Ht}}else if(bt.changedTouches&&bt.changedTouches.length){const{clientX:Bt,clientY:Ht}=bt.changedTouches[0];return{x:Bt,y:Ht}}}return Ke(bt)?{x:bt.clientX,y:bt.clientY}:null}const at=Object.freeze({Translate:{toString(bt){if(!bt)return;const{x:Bt,y:Ht}=bt;return"translate3d("+(Bt?Math.round(Bt):0)+"px, "+(Ht?Math.round(Ht):0)+"px, 0)"}},Scale:{toString(bt){if(!bt)return;const{scaleX:Bt,scaleY:Ht}=bt;return"scaleX("+Bt+") scaleY("+Ht+")"}},Transform:{toString(bt){if(bt)return[at.Translate.toString(bt),at.Scale.toString(bt)].join(" ")}},Transition:{toString(bt){let{property:Bt,duration:Ht,easing:Jn}=bt;return Bt+" "+Ht+"ms "+Jn}}}),jt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Mt(bt){return bt.matches(jt)?bt:bt.querySelector(jt)}},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(Dn,ei){"use strict";ei.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39886:function(Dn,ei){"use strict";ei.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(Dn,ei,be){"use strict";var ve=be(67294),ot=Object.defineProperty,wt=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Re=(mt,yt,Vt)=>yt in mt?ot(mt,yt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):mt[yt]=Vt,Je=(mt,yt)=>{for(var Vt in yt||(yt={}))Qt.call(yt,Vt)&&Re(mt,Vt,yt[Vt]);if(wt)for(var Vt of wt(yt))Nt.call(yt,Vt)&&Re(mt,Vt,yt[Vt]);return mt};const pt=mt=>React.createElement("svg",Je({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},mt),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"}));ei.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},36913:function(Dn,ei,be){"use strict";var ve=be(67294),ot=Object.defineProperty,wt=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Re=(mt,yt,Vt)=>yt in mt?ot(mt,yt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):mt[yt]=Vt,Je=(mt,yt)=>{for(var Vt in yt||(yt={}))Qt.call(yt,Vt)&&Re(mt,Vt,yt[Vt]);if(wt)for(var Vt of wt(yt))Nt.call(yt,Vt)&&Re(mt,Vt,yt[Vt]);return mt};const pt=mt=>React.createElement("svg",Je({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},mt),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"}));ei.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},18023:function(){"use strict";function Dn(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(Dn.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(Dn.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(Dn.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(Dn.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 Dn))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 ei=[];function be(Te,ne){var te=ei.pop();return te===void 0?new go.Point(Te,ne):(te.x=Te,te.y=ne,te)}function ve(){var Te=ei.pop();return Te===void 0?new go.Point:Te}function ot(Te){ei.push(Te)}function wt(Te,ne,te,ue,se,ge,me,xe,Pe){Pe||(Pe=new go.Point);var Ke=Te-te,nt=se-me,ft=NaN,qe=NaN;if(Ke===0)if(nt===0)Te===te&&(ft=Te,qe=ne);else{var at=(ge-xe)/nt,jt=ge-at*se;ft=Te,qe=at*ft+jt}else if(nt===0){var Mt=(ne-ue)/Ke,bt=ne-Mt*Te;ft=se,qe=Mt*ft+bt}else{var Mt=(ne-ue)/Ke,at=(ge-xe)/nt,bt=ne-Mt*Te,jt=ge-at*se;ft=(jt-bt)/(Mt-at),qe=Mt*ft+bt}return Pe.x=ft,Pe.y=qe,Pe}function Qt(Te,ne,te,ue,se,ge,me,xe,Pe,Ke,nt,ft,qe,at){var jt=1-Pe,Mt=Pe,bt=Te*jt+te*Mt,Bt=ne*jt+ue*Mt,Ht=te*jt+se*Mt,Jn=ue*jt+ge*Mt,qn=se*jt+me*Mt,sn=ge*jt+xe*Mt,Nn=bt*jt+Ht*Mt,lt=Bt*jt+Jn*Mt,Ge=Ht*jt+qn*Mt,Ne=Jn*jt+sn*Mt,Rn=Nn*jt+Ge*Mt,ai=lt*jt+Ne*Mt;Ke.x=bt,Ke.y=Bt,nt.x=Nn,nt.y=lt,ft.x=Rn,ft.y=ai,qe.x=Ge,qe.y=Ne,at.x=qn,at.y=sn}var Nt=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),Je=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Dn("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=Nt,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 Dn("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 Dn("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 Dn("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 Dn("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 Dn("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 mt(){var Te=pt.pop();return Te===void 0?[]:Te}function yt(Te){Te.length=0,pt.push(Te)}function Vt(Te){for(var ne=mt(),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=We(Te),te=mt();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 yt(ne),te}function We(Te){for(var ne=Vt(Te),te=mt(),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],nt=ne[(ue+me+ge)%se];te[me*2]=xe,te[me*2+1]=wt(xe.x,xe.y,Ke.x,Ke.y,Pe.x,Pe.y,nt.x,nt.y,new go.Point)}return te[te.length]=te[0],yt(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()),yt(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()),yt(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()),yt(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()),yt(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()),yt(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()),yt(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()),yt(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=We(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()),yt(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=We(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()),yt(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=We(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()),yt(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=We(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()),yt(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=We(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()),yt(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=We(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()),yt(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(),yt(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(),yt(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(),yt(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(),yt(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(),yt(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(),yt(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new Dn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Dn("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 Dn("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=Nt,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 Dn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Dn("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 Dn("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 Dn("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 Dn("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,nt=new go.PathFigure(Pe,0,!0);return se.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,ge,.2*te)),nt.add(new go.PathSegment(go.PathSegment.Line,ne-Pe,0)),nt.add(new go.PathSegment(go.PathSegment.Line,ne,Ke)),nt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,me)),nt.add(new go.PathSegment(go.PathSegment.Line,ne,te-Ke)),nt.add(new go.PathSegment(go.PathSegment.Line,ne-Pe,te)),nt.add(new go.PathSegment(go.PathSegment.Line,ge,.8*te)),nt.add(new go.PathSegment(go.PathSegment.Line,Pe,te)),nt.add(new go.PathSegment(go.PathSegment.Line,0,te-Ke)),nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,me)),nt.add(new go.PathSegment(go.PathSegment.Line,0,Ke).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new Dn("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 Dn("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 Dn("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(),nt=ve(),ft=ve(),qe=ve();Qt(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.42,Ke,nt,ft,qe,qe);var at=ve(),jt=ve(),Mt=ve();Qt(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.58,qe,qe,Mt,at,jt);var bt=ve(),Bt=ve(),Ht=ve();Qt(me,xe+ge,me-se,xe+ge,me-ge,xe+se,me-ge,xe,.42,bt,Bt,Ht,qe,qe);var Jn=ve(),qn=ve(),sn=ve();return Qt(me,xe+ge,me-se,xe+ge,me-ge,xe+se,me-ge,xe,.58,qe,qe,sn,Jn,qn),Pe.add(new go.PathSegment(go.PathSegment.Move,sn.x*ne,sn.y*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,Jn.x*ne,Jn.y*te,qn.x*ne,qn.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,nt.x*ne,nt.y*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,sn.x*ne,sn.y*te).close()),Pe.add(new go.PathSegment(go.PathSegment.Move,Ht.x*ne,Ht.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,at.x*ne,at.y*te,jt.x*ne,jt.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,Ht.x*ne,Ht.y*te,bt.x*ne,bt.y*te,Bt.x*ne,Bt.y*te).close()),ot(Ke),ot(nt),ot(ft),ot(qe),ot(at),ot(jt),ot(Mt),ot(bt),ot(Bt),ot(Ht),ot(Jn),ot(qn),ot(sn),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 Dn("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(),nt=ve(),ft=ve(),qe=new go.PathFigure((me-ge)*ne,xe*te,!1);ue.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te)),Qt(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.44,nt,ft,Ke,Pe,Pe),qe.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*ne,Ke.y*te,nt.x*ne,nt.y*te,ft.x*ne,ft.y*te));var at=be(Ke.x,Ke.y);Qt(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.56,Pe,Pe,Ke,nt,ft);var jt=be(Ke.x,Ke.y);qe.add(new go.PathSegment(go.PathSegment.Line,(at.x*.1+.95*.9)*ne,at.y*.1*te)),qe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,at.y*.1*te)),qe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,0)),qe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),qe.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),qe.add(new go.PathSegment(go.PathSegment.Line,(jt.x*.1+.9)*ne,.15*te)),qe.add(new go.PathSegment(go.PathSegment.Line,(jt.x*.1+.9)*ne,(jt.y*.1+.05*.9)*te)),qe.add(new go.PathSegment(go.PathSegment.Line,jt.x*ne,jt.y*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,nt.x*ne,nt.y*te,ft.x*ne,ft.y*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te)),qe.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 bt=new go.PathFigure((me-ge)*ne,xe*te,!1);return ue.add(bt),ot(Pe),ot(Ke),ot(nt),ot(ft),ot(at),ot(jt),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 Dn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Dn("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 nt=wt(0,xe/te,1,xe/te,ge/ne,1,1,.5,ve());return Pe.spot2=new go.Spot(nt.x,nt.y),ot(nt),Pe}),go.Shape.setFigureParameter("Arrow2",0,new Dn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Dn("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 nt=wt(0,xe/te,1,xe/te,ge/ne,1,1,.5,ve());return Pe.spot2=new go.Spot(nt.x,nt.y),ot(nt),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 Dn("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=wt(0,.5,.3,0,0,se/te,.1,se/te,ve());return me.spot1=new go.Spot(Pe.x,Pe.y),Pe=wt(.7,1,1,.5,0,ge/te,1,ge/te,Pe),me.spot2=new go.Spot(Pe.x,Pe.y),ot(Pe),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Dn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Dn("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,nt=new go.PathFigure(ne,.5*te,!0);Ke.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Pe)),nt.add(new go.PathSegment(go.PathSegment.Line,.7*ne,me)),nt.add(new go.PathSegment(go.PathSegment.Line,.3*ne,me)),nt.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Pe)),nt.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),nt.add(new go.PathSegment(go.PathSegment.Line,.3*ne,xe)),nt.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),nt.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),nt.add(new go.PathSegment(go.PathSegment.Line,.7*ne,xe).close());var ft=wt(0,.5,.3,xe/te,0,ge/te,1,ge/te,ve());return Ke.spot1=new go.Spot(ft.x,ft.y),ft=wt(.7,Pe/te,1,.5,0,me/te,1,me/te,ft),Ke.spot2=new go.Spot(ft.x,ft.y),ot(ft),Ke}),go.Shape.setFigureParameter("IBeamArrow",0,new Dn("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=wt(.7,1,1,.5,0,ge/te,1,ge/te,ve());return me.spot2=new go.Spot(Pe.x,Pe.y),ot(Pe),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Dn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Dn("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,nt=new go.PathFigure(ne,.5*te,!0);Ke.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Pe)),nt.add(new go.PathSegment(go.PathSegment.Line,.7*ne,me)),nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,me)),nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Pe)),nt.add(new go.PathSegment(go.PathSegment.Line,0,Pe)),nt.add(new go.PathSegment(go.PathSegment.Line,0,xe)),nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,xe)),nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),nt.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),nt.add(new go.PathSegment(go.PathSegment.Line,.7*ne,xe).close()),Ke.spot1=new go.Spot(0,ge/te);var ft=wt(.7,Pe/te,1,.5,0,me/te,1,me/te,ve());return Ke.spot2=new go.Spot(ft.x,ft.y),ot(ft),Ke}),go.Shape.setFigureParameter("Pointer",0,new Dn("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=wt(.2,.65,1,.65,0,1,1,.5,ve());return se.spot2=new go.Spot(me.x,me.y),ot(me),se}),go.Shape.setFigureParameter("RoundedPointer",0,new Dn("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=wt(0,.65,1,.65,0,1,1,.5,ve());return se.spot2=new go.Spot(me.x,me.y),ot(me),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new Dn("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=wt(.7,1,1,.5,0,ge/te,1,ge/te,ve());return me.spot2=new go.Spot(Pe.x,Pe.y),ot(Pe),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Dn("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=wt(.7,1,1,.5,0,ge/te,1,ge/te,ve());return me.spot2=new go.Spot(Pe.x,Pe.y),ot(Pe),me}),go.Shape.setFigureParameter("SquareArrow",0,new Dn("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,nt=new go.PathFigure(Pe*ne,(Ke+ge)*te,!0);ue.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-se)*ne,Ke*te,(Pe-me)*ne,(Ke+ge)*te,(Pe-se)*ne,(Ke+xe)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ge)*te,(Pe-se)*ne,(Ke-xe)*te,(Pe-me)*ne,(Ke-ge)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+se)*ne,Ke*te,(Pe+me)*ne,(Ke-ge)*te,(Pe+se)*ne,(Ke-xe)*te)),nt.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,qe=Je*ft;Pe=.05,Ke=.25;var at=new go.PathFigure(.5*ne,.2*te,!0);return ue.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.2*te)),Pe=.95,Ke=.25,at.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ft)*ne,Ke*te,(Pe+qe)*ne,(Ke-ft)*te,(Pe+ft)*ne,(Ke-qe)*te)),at.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),at.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),at.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.35*te)),ft=.025,qe=Je*ft,Pe=.825,Ke=.35,at.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ft)*te,(Pe+ft)*ne,(Ke-qe)*te,(Pe+qe)*ne,(Ke-ft)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ft)*ne,Ke*te,(Pe-qe)*ne,(Ke-ft)*te,(Pe-ft)*ne,(Ke-qe)*te)),at.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),at.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te)),at.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te)),ft=.05,qe=Je*ft,Pe=.5,Ke=.7,at.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ft)*te,(Pe+ft)*ne,(Ke-qe)*te,(Pe+qe)*ne,(Ke-ft)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ft)*ne,Ke*te,(Pe-qe)*ne,(Ke-ft)*te,(Pe-ft)*ne,(Ke-qe)*te)),at.add(new go.PathSegment(go.PathSegment.Line,.45*ne,te)),at.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),at.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.35*te)),ft=.025,qe=Je*ft,Pe=.175,Ke=.35,at.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ft)*te,(Pe+ft)*ne,(Ke-qe)*te,(Pe+qe)*ne,(Ke-ft)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ft)*ne,Ke*te,(Pe-qe)*ne,(Ke-ft)*te,(Pe-ft)*ne,(Ke-qe)*te)),at.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),at.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),at.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),ft=.05,qe=Je*ft,Pe=.05,Ke=.25,at.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-ft)*te,(Pe-ft)*ne,(Ke-qe)*te,(Pe-qe)*ne,(Ke-ft)*te)),at.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 Dn("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,nt=new go.PathFigure(.8*ne,.5*te,!0);ue.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,.8*ne,(.5+ge)*te,(.4+se)*ne,te)),nt.add(new go.PathSegment(go.PathSegment.Line,0,te)),nt.add(new go.PathSegment(go.PathSegment.Line,0,0)),nt.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),nt.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 nt=new go.PathFigure((me-se)*ne,xe*te,!0);return ue.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe-se)*te,(me-se)*ne,(xe-ge)*te,(me-ge)*ne,(xe-se)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*ne,xe*te,(me+ge)*ne,(xe-se)*te,(me+se)*ne,(xe-ge)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),nt.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,nt=(se-ne)/2,ft=(ge-te)/2,qe=new go.PathFigure(Pe*ne+nt,(Ke+xe)*te+ft,!0);ue.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe)*ne+nt,Ke*te+ft,(Pe-me)*ne+nt,(Ke+xe)*te+ft,(Pe-xe)*ne+nt,(Ke+me)*te+ft)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke-xe)*te+ft,(Pe-xe)*ne+nt,(Ke-me)*te+ft,(Pe-me)*ne+nt,(Ke-xe)*te+ft)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe+me*.5)*ne+nt,Ke*te+ft,Pe*ne+nt,(Ke-xe)*te+ft,(Pe-xe+me*.5)*ne+nt,(Ke-me)*te+ft)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke+xe)*te+ft,(Pe-xe+me*.5)*ne+nt,(Ke+me)*te+ft,Pe*ne+nt,(Ke+xe)*te+ft).close()),me=Je*.4,xe=.4,Pe=.2,Ke=.5;var at=new go.PathFigure(Pe*ne+nt,(Ke+xe)*te+ft,!0);ue.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe)*ne+nt,Ke*te+ft,(Pe-me)*ne+nt,(Ke+xe)*te+ft,(Pe-xe)*ne+nt,(Ke+me)*te+ft)),at.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke-xe)*te+ft,(Pe-xe)*ne+nt,(Ke-me)*te+ft,(Pe-me)*ne+nt,(Ke-xe)*te+ft)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe+me*.5)*ne+nt,Ke*te+ft,Pe*ne+nt,(Ke-xe)*te+ft,(Pe-xe+me*.5)*ne+nt,(Ke-me)*te+ft)),at.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke+xe)*te+ft,(Pe-xe+me*.5)*ne+nt,(Ke+me)*te+ft,Pe*ne+nt,(Ke+xe)*te+ft).close()),me=Je*.2,xe=.2,Pe=.5,Ke=.5;var jt=new go.PathFigure((Pe-xe)*ne+nt,Ke*te+ft,!0);ue.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke-xe)*te+ft,(Pe-xe)*ne+nt,(Ke-me)*te+ft,(Pe-me)*ne+nt,(Ke-xe)*te+ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe)*ne+nt,Ke*te+ft,(Pe+me)*ne+nt,(Ke-xe)*te+ft,(Pe+xe)*ne+nt,(Ke-me)*te+ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke+xe)*te+ft,(Pe+xe)*ne+nt,(Ke+me)*te+ft,(Pe+me)*ne+nt,(Ke+xe)*te+ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe)*ne+nt,Ke*te+ft,(Pe-me)*ne+nt,(Ke+xe)*te+ft,(Pe-xe)*ne+nt,(Ke+me)*te+ft)),me=Je*.4,xe=.4,Pe=.8,Ke=.5;var Mt=new go.PathFigure(Pe*ne+nt,(Ke-xe)*te+ft,!0);ue.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe)*ne+nt,Ke*te+ft,(Pe+me)*ne+nt,(Ke-xe)*te+ft,(Pe+xe)*ne+nt,(Ke-me)*te+ft)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke+xe)*te+ft,(Pe+xe)*ne+nt,(Ke+me)*te+ft,(Pe+me)*ne+nt,(Ke+xe)*te+ft)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe-me*.5)*ne+nt,Ke*te+ft,Pe*ne+nt,(Ke+xe)*te+ft,(Pe+xe-me*.5)*ne+nt,(Ke+me)*te+ft)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke-xe)*te+ft,(Pe+xe-me*.5)*ne+nt,(Ke-me)*te+ft,Pe*ne+nt,(Ke-xe)*te+ft).close()),me=Je*.8,xe=.8,Pe=1,Ke=.5;var bt=new go.PathFigure(Pe*ne+nt,(Ke-xe)*te+ft,!0);return ue.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe)*ne+nt,Ke*te+ft,(Pe+me)*ne+nt,(Ke-xe)*te+ft,(Pe+xe)*ne+nt,(Ke-me)*te+ft)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke+xe)*te+ft,(Pe+xe)*ne+nt,(Ke+me)*te+ft,(Pe+me)*ne+nt,(Ke+xe)*te+ft)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe-me*.5)*ne+nt,Ke*te+ft,Pe*ne+nt,(Ke+xe)*te+ft,(Pe+xe-me*.5)*ne+nt,(Ke+me)*te+ft)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne+nt,(Ke-xe)*te+ft,(Pe+xe-me*.5)*ne+nt,(Ke-me)*te+ft,Pe*ne+nt,(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(),nt=ve(),ft=ve();Qt(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.5,Pe,Pe,Ke,nt,ft);var qe=be(Ke.x,Ke.y),at=new go.PathFigure(Ke.x*ne,Ke.y*te,!0);ue.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,nt.x*ne,nt.y*te,ft.x*ne,ft.y*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te,(me+se)*ne,(xe+ge)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,(me-se)*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te)),Qt(me-ge,xe,me-ge,xe-se,me-se,xe-ge,me,xe-ge,.5,nt,ft,Ke,Pe,Pe),at.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*ne,Ke.y*te,nt.x*ne,nt.y*te,ft.x*ne,ft.y*te)),se=Je*.3,ge=.3,Qt(me-ge,xe,me-ge,xe-se,me-se,xe-ge,me,xe-ge,.5,nt,ft,Ke,Pe,Pe),at.add(new go.PathSegment(go.PathSegment.Line,Ke.x*ne,Ke.y*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,xe*te,ft.x*ne,ft.y*te,nt.x*ne,nt.y*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(xe+ge)*te,(me-ge)*ne,(xe+se)*te,(me-se)*ne,(xe+ge)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,xe*te,(me+se)*ne,(xe+ge)*te,(me+ge)*ne,(xe+se)*te)),Qt(me,xe-ge,me+se,xe-ge,me+ge,xe-se,me+ge,xe,.5,Pe,Pe,Ke,nt,ft),at.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*ne,Ke.y*te,ft.x*ne,ft.y*te,nt.x*ne,nt.y*te).close());var at=new go.PathFigure(.45*ne,0,!0);return ue.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)),at.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.5*te)),at.add(new go.PathSegment(go.PathSegment.Line,.55*ne,0).close()),ot(Pe),ot(Ke),ot(nt),ot(ft),ot(qe),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,nt=1,ft=.5,qe=.5,at=0,jt=new go.PathFigure(Pe*ne,(1-Ke)*te,!1);return ue.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,nt*ne,ft*te,nt*ne,.7*te,nt*ne,ft*te)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(qe+ge)*ne,(at+ge)*te,(.5+se+ge)*ne,(.5-xe+ge)*te,(.5+xe+ge)*ne,(.5-se+ge)*te)),jt.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)),jt.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)),jt.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*ne,.8*te)),jt.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*ne,.9*te)),jt.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,nt=4*(1-Math.cos(Ke))/(3*Math.sin(Ke)),ft=nt*.5,qe=me,at=me,jt=nt*qe,Mt=nt*at;ge.add(new go.PathSegment(go.PathSegment.Bezier,(xe-qe)*ne,Pe*te,(xe-(jt+qe)/2)*ne,(Pe+(at+Mt)/2)*te,(xe-qe)*ne,(Pe+Mt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,xe*ne,(Pe-at)*te,(xe-qe)*ne,(Pe-Mt)*te,(xe-jt)*ne,(Pe-at)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(xe+qe)*ne,Pe*te,(xe+jt)*ne,(Pe-at)*te,(xe+qe)*ne,(Pe-Mt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ne,(1-.595)*te,(xe+qe)*ne,(Pe+Mt)*te,(xe+(jt+qe)/2)*ne,(Pe+(at+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 bt=new go.PathFigure(.2*ne,te,!1);ue.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.8*te));var Bt=new go.PathFigure(.8*ne,te,!1);return ue.add(Bt),Bt.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,nt=new go.PathFigure((Pe-me)*ne,Ke*te,!0);ue.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke-me)*te,(Pe-me)*ne,(Ke-xe)*te,(Pe-xe)*ne,(Ke-me)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+me)*ne,Ke*te,(Pe+xe)*ne,(Ke-me)*te,(Pe+me)*ne,(Ke-xe)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ne,(Ke+me)*te,(Pe+me)*ne,(Ke+xe)*te,(Pe+xe)*ne,(Ke+me)*te)),nt.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,nt=.1,ft=.9,qe=new go.PathFigure((nt-Pe)*ne,ft*te,!0);ue.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,nt*ne,(ft-Pe)*te,(nt-Pe)*ne,(ft-Ke)*te,(nt-Ke)*ne,(ft-Pe)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(nt+Pe)*ne,ft*te,(nt+Ke)*ne,(ft-Pe)*te,(nt+Pe)*ne,(ft-Ke)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,nt*ne,(ft+Pe)*te,(nt+Pe)*ne,(ft+Ke)*te,(nt+Ke)*ne,(ft+Pe)*te)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(nt-Pe)*ne,ft*te,(nt-Ke)*ne,(ft+Pe)*te,(nt-Pe)*ne,(ft+Ke)*te)),Pe=.1,Ke=Je*.1,nt=.4,ft=.9;var at=new go.PathFigure((nt-Pe)*ne,ft*te,!0);return ue.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,nt*ne,(ft-Pe)*te,(nt-Pe)*ne,(ft-Ke)*te,(nt-Ke)*ne,(ft-Pe)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(nt+Pe)*ne,ft*te,(nt+Ke)*ne,(ft-Pe)*te,(nt+Pe)*ne,(ft-Ke)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,nt*ne,(ft+Pe)*te,(nt+Pe)*ne,(ft+Ke)*te,(nt+Ke)*ne,(ft+Pe)*te)),at.add(new go.PathSegment(go.PathSegment.Bezier,(nt-Pe)*ne,ft*te,(nt-Ke)*ne,(ft+Pe)*te,(nt-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 nt=.05,ft=Je*.05,qe=.175,at=.95,xe=new go.PathFigure((qe-nt)*ne,at*te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(at-nt)*te,(qe-nt)*ne,(at-ft)*te,(qe-ft)*ne,(at-nt)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(qe+nt)*ne,at*te,(qe+ft)*ne,(at-nt)*te,(qe+nt)*ne,(at-ft)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(at+nt)*te,(qe+nt)*ne,(at+ft)*te,(qe+ft)*ne,(at+nt)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(qe-nt)*ne,at*te,(qe-ft)*ne,(at+nt)*te,(qe-nt)*ne,(at+ft)*te));var nt=.05,ft=Je*.05,qe=.375,at=.95,Pe=new go.PathFigure((qe-nt)*ne,at*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(at-nt)*te,(qe-nt)*ne,(at-ft)*te,(qe-ft)*ne,(at-nt)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(qe+nt)*ne,at*te,(qe+ft)*ne,(at-nt)*te,(qe+nt)*ne,(at-ft)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(at+nt)*te,(qe+nt)*ne,(at+ft)*te,(qe+ft)*ne,(at+nt)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(qe-nt)*ne,at*te,(qe-ft)*ne,(at+nt)*te,(qe-nt)*ne,(at+ft)*te));var nt=.05,ft=Je*.05,qe=.625,at=.95,Ke=new go.PathFigure((qe-nt)*ne,at*te,!0);ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(at-nt)*te,(qe-nt)*ne,(at-ft)*te,(qe-ft)*ne,(at-nt)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(qe+nt)*ne,at*te,(qe+ft)*ne,(at-nt)*te,(qe+nt)*ne,(at-ft)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(at+nt)*te,(qe+nt)*ne,(at+ft)*te,(qe+ft)*ne,(at+nt)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(qe-nt)*ne,at*te,(qe-ft)*ne,(at+nt)*te,(qe-nt)*ne,(at+ft)*te));var nt=.05,ft=Je*.05,qe=.825,at=.95,jt=new go.PathFigure((qe-nt)*ne,at*te,!0);ue.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(at-nt)*te,(qe-nt)*ne,(at-ft)*te,(qe-ft)*ne,(at-nt)*te)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(qe+nt)*ne,at*te,(qe+ft)*ne,(at-nt)*te,(qe+nt)*ne,(at-ft)*te)),jt.add(new go.PathSegment(go.PathSegment.Bezier,qe*ne,(at+nt)*te,(qe+nt)*ne,(at+ft)*te,(qe+ft)*ne,(at+nt)*te)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(qe-nt)*ne,at*te,(qe-ft)*ne,(at+nt)*te,(qe-nt)*ne,(at+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,nt=.775,ft=new go.PathFigure((Ke-xe)*ne,nt*te,!0);return ue.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ne,(nt-xe)*te,(Ke-xe)*ne,(nt-Pe)*te,(Ke-Pe)*ne,(nt-xe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+xe)*ne,nt*te,(Ke+Pe)*ne,(nt-xe)*te,(Ke+xe)*ne,(nt-Pe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ke*ne,(nt+xe)*te,(Ke+xe)*ne,(nt+Pe)*te,(Ke+Pe)*ne,(nt+xe)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-xe)*ne,nt*te,(Ke-Pe)*ne,(nt+xe)*te,(Ke-xe)*ne,(nt+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 Dn={},ei="5.0",be={},ve=null,ot=!1,wt=!1,Qt=null,Nt=!1,Re=null,Je=null,pt=0;pt<arguments.length;pt++){var mt=arguments[pt];if(mt!==null)switch(typeof mt){case"number":ei=mt.toFixed(1);break;case"string":mt.match(new RegExp("^[0-9]\\.[0-9]+$"))?ei=mt:Qt=mt;break;case"object":typeof mt.is3D!="undefined"?ve=mt:be=mt;break;case"boolean":ot=mt,wt=!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&&!wt&&(ot=!0)),Qt!==null&&be.id===void 0&&(be.id=Qt);var yt="",Vt="",ct=!1,We=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(Zt){return parseFloat(Zt)>4?parseFloat(Zt):5};Dn.setHTML5Codebase=function(Zt,ci){Je=Zt,Ne(Zt,ci)},Dn.setJavaCodebase=Dn.setJavaCodebaseVersion=Dn.isCompiledInstalled=Dn.setPreCompiledScriptPath=Dn.setPreCompiledResourcePath=function(){},Dn.setHTML5CodebaseVersion=function(Zt,ci){var On=parseFloat(Zt);if(On!==NaN&&On<5){console.log("The GeoGebra HTML5 codebase version "+On+" is deprecated. Using version latest instead.");return}Re=Zt,Ge(Zt,ci)},Dn.getHTML5CodebaseVersion=function(){return Te},Dn.getParameters=function(){return be},Dn.setFontsCSSURL=function(Zt){me=Zt},Dn.setGiacJSURL=function(Zt){},Dn.setJNLPFile=function(Zt){yt=Zt},Dn.setJNLPBaseDir=function(Zt){},Dn.inject=function(){function Zt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ci="auto",On=be.id,Mi,Xt=!1,At=0;At<arguments.length;At++){var on=arguments[At];typeof on=="string"?(on=on.toLowerCase(),on.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ci=on:On=arguments[At]):typeof on=="boolean"?Xt=on:on instanceof HTMLElement&&(Mi=on)}Si();function Si(){if(!Nt){setTimeout(Si,200);return}ci=Nn(ci);var Gt=Mi||document.getElementById(On);if(!Gt){console.log("possibly bug on ajax loading? ");return}if(Dn.removeExistingApplet(Gt,!1),be.width===void 0&&Gt.clientWidth&&(be.width=Gt.clientWidth),be.height===void 0&&Gt.clientHeight&&(be.height=Gt.clientHeight),!(be.width&&be.height)&&ci==="html5"&&(delete be.width,delete be.height),We=ci,ci==="screenshot")Bt(Gt,be);else{var Xe=!1;be.hasOwnProperty("playButton")&&be.playButton||be.hasOwnProperty("clickToLoad")&&be.clickToLoad?Xe=!0:be.hasOwnProperty("playButtonAutoDecide")&&be.playButtonAutoDecide&&(Xe=(!Ke()||Zt())&&nt()),Xe?(We="screenshot",Jn(Gt,be,Xt,ci)):bt(Gt,be,Xt)}}};function Ke(){try{return window.self!==window.top}catch(Zt){return!0}}function nt(){return be.hasOwnProperty("screenshotGenerator")&&be.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Dn.getViews=function(){return ve},Dn.isJavaInstalled=function(){return!1};var ft=function(Zt){var ci=function(At){var on=JSON.parse(At),Si=function(ke){return ke.type=="G"||ke.type=="E"},Gt=on.elements?on.elements.filter(Si)[0]:on;if(!Gt||!Gt.url){On();return}be.fileName=Gt.url,qe(Gt.settings||{}),ve.is3D=!0;var Xe="https://www.geogebra.org/images/";Dn.setPreviewImage(ue||Gt.previewUrl,Xe+"GeoGebra_loading.png",Xe+"applet_play.png"),Zt()},On=function(){be.onError&&be.onError(),Rn("Error: Fetching material (id "+be.material_id+") failed.",be)},Mi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Xt="/materials/"+be.material_id+"?scope=basic";at("https://"+Mi+"/api/proxy.php?path="+encodeURIComponent(Xt),ci,On)};function qe(Zt){var ci=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(On){Zt[On]=!!Zt[On]}),ci.forEach(function(On){be[On]===void 0&&Zt[On]!==void 0&&(be[On]=Zt[On])}),be.showToolBarHelp===void 0&&(be.showToolBarHelp=be.showToolBar)}function at(Zt,ci,On){var Mi=new XMLHttpRequest;Mi.open("GET",Zt),Mi.onload=function(){ci(Mi.responseText)},Mi.onerror=On,Mi.send()}Dn.isHTML5Installed=function(){return!0},Dn.getLoadedAppletType=function(){return We},Dn.setPreviewImage=function(Zt,ci,On){ue=Zt,se=ci,ge=On},Dn.removeExistingApplet=function(Zt,ci){var On;typeof Zt=="string"&&(Zt=document.getElementById(Zt)),We=null;var Mi=null;for(On=0;On<Zt.childNodes.length;On++){var Xt=Zt.childNodes[On],At=Xt.className;At==="applet_screenshot"?ci?(Xt.style.display="block",We="screenshot"):Xt.style.display="none":At!=="applet_scaler prerender"&&(Zt.removeChild(Xt),Mi=At&&At.indexOf("appletParameters")!=-1?Xt.id:null,On--)}var on=be.id!==void 0?be.id:Mi,Si=window[on];Si&&typeof Si.getBase64=="function"&&(Si.remove(),window[on]=null)},Dn.refreshHitPoints=function(){if(Pe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Zt=Dn.getAppletObject();return Zt&&typeof Zt.recalculateEnvironments=="function"?(Zt.recalculateEnvironments(),!0):!1},Dn.startAnimation=function(){var Zt=Dn.getAppletObject();return Zt&&typeof Zt.startAnimation=="function"?(Zt.startAnimation(),!0):!1},Dn.stopAnimation=function(){var Zt=Dn.getAppletObject();return Zt&&typeof Zt.stopAnimation=="function"?(Zt.stopAnimation(),!0):!1},Dn.getAppletObject=function(){var Zt=be.id!==void 0?be.id:"ggbApplet";return window[Zt]},Dn.resize=function(){};var jt=function(Zt,ci,On){var Mi=document.createElement("param");Mi.setAttribute("name",ci),Mi.setAttribute("value",On),Zt.appendChild(Mi)},Mt=function(Zt){return Zt&&Zt!=="false"},bt=function(Zt,ci,On){Pe(Te)<=4.2&&(On=!0);var Mi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Te||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(Mi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Xt=document.createElement("div");Xt.classList.add("appletParameters","notranslate");var At=ci.width,on=ci.height;if(ci.disableAutoScale=ci.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ci.disableAutoScale,ci.width!==void 0)if(Pe(Te)<=4.4)Mt(ci.showToolBar)&&(ci.height-=7),Mt(ci.showAlgebraInput)&&(ci.height-=37),ci.width<605&&Mt(ci.showToolBar)&&(ci.width=605,At=605);else{var Si=100;(Mt(ci.showToolBar)||Mt(ci.showMenuBar))&&(ci.hasOwnProperty("customToolBar")&&(ci.customToolbar=ci.customToolBar),Si=Mt(ci.showMenuBar)?245:155),At<Si&&(ci.width=Si,At=Si)}Xt.style.border="none",Xt.style.display="inline-block";for(var Gt in ci)ci.hasOwnProperty(Gt)&&Gt!=="appletOnLoad"&&Xt.setAttribute("data-param-"+Gt,ci[Gt]);me&&Xt.setAttribute("data-param-fontscssurl",me),Dn.resize=function(){GGBAppletUtils.responsiveResize(Zt,ci)},window.addEventListener("resize",function(mn){Dn.resize()});var Xe=typeof ci.appletOnLoad=="function"?ci.appletOnLoad:function(){};if(!On&&ci.width!==void 0){ci.hasOwnProperty("showSplash")||Xt.setAttribute("data-param-showSplash","false");var ke=Zt.querySelector(".applet_scaler.prerender"),Me=ke!==null;if(Me)var He=ke.querySelector(".ggb_preview");else{var He=sn(At,on,ci.borderColor,!1);ke=document.createElement("div"),ke.className="applet_scaler",ke.style.position="relative",ke.style.display="block",ke.style.width=At+"px",ke.style.height=on+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ke,"66%"),Pe(Te)>=5?(ci.appletOnLoad=function(mn){var Fi=Zt.querySelector(".ggb_preview");Fi&&Fi.parentNode.removeChild(Fi),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ke),window.GGBT_wsf_view&&$(window).trigger("resize"),Xe(mn)},Me||ke.appendChild(He)):Xt.appendChild(He),ke.appendChild(Xt),Me||Zt.appendChild(ke),setTimeout(function(){Dn.resize()},1)}else{var et=document.createElement("div");et.className="applet_scaler",et.style.position="relative",et.style.display="block",et.appendChild(Xt),Zt.appendChild(et),ci.appletOnLoad=function(mn){Dn.resize(),Xe(mn)}}function Oe(mn,Fi){Fi&&typeof Fi.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mn,Fi.appletOnLoad):renderGGBElement(mn),Rn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Fi)}function ut(mn,Fi){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mn,params:Fi}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Vi){Oe(Vi.article,Vi.params)}),html5AppletsToProcess=null)},Pe(Te)<5&&(mn.className+=" geogebraweb")):Oe(mn,Fi)}if(Mi){scriptLoadStarted=!0;for(var Vn=0;Vn<Xt.childNodes.length;Vn++){var jn=Xt.childNodes[Vn].tagName;jn==="TABLE"&&(Xt.removeChild(Xt.childNodes[Vn]),Vn--)}if(ggbHTML5LoadedScript!==null){var An=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');An!=null&&An.parentNode.removeChild(An)}var Pn=document.createElement("script"),si=function(){ut(Xt,ci)};Pn.src=Vt+ne,ggbHTML5LoadedCodebaseIsWebSimple=te,ggbHTML5LoadedCodebaseVersion=Te,ggbHTML5LoadedScript=Pn.src,Rn("GeoGebra HTML5 codebase loaded: '"+Vt+"'.",ci),!Je&&(!Re||Re=="5.0")?(te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),si()):Vt.requirejs?__webpack_require__.e(12).then(function(){var mn=[__webpack_require__(12)];si.apply(null,mn)}.bind(this)).catch(__webpack_require__.oe):(Pn.onload=si,Zt.appendChild(Pn))}else ut(Xt,ci);ci.height=on,ci.width=At},Bt=function(Zt,ci,On){var Mi=sn(ci.width,ci.height,ci.borderColor,On),Xt=document.createElement("div");Xt.style.position="relative",Xt.style.display="block",Xt.style.width=ci.width+"px",Xt.style.height=ci.height+"px",Xt.className="applet_screenshot applet_scaler"+(On?" applet_screenshot_play":""),Xt.appendChild(Mi);var At=GGBAppletUtils.getScale(ci,Zt,On);On?(Zt.appendChild(qn()),window.GGBT_wsf_view||(Zt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xt,"66%"),Zt.appendChild(Xt),At!==1&&!isNaN(At)&&(GGBAppletUtils.scaleElement(Xt,At),Xt.style.width=ci.width+"px",Xt.style.height=ci.height+"px",Xt.parentNode.style.width=ci.width*At+"px",Xt.parentNode.style.height=ci.height*At+"px"),Dn.resize=function(){Ht(Zt,Mi,Xt,On)},window.addEventListener("resize",function(on){Dn.resize()}),Dn.resize()};function Ht(Zt,ci,On,Mi){if(Zt.contains(ci)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Zt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Zt)}var Xt=GGBAppletUtils.getScale(be,Zt,Mi);On.parentNode!==null&&(!isNaN(Xt)&&Xt!==1?(GGBAppletUtils.scaleElement(On,Xt),On.parentNode.style.width=be.width*Xt+"px",On.parentNode.style.height=be.height*Xt+"px"):(GGBAppletUtils.scaleElement(On,1),On.parentNode.style.width=be.width+"px",On.parentNode.style.height=be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Zt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Dn.onExitFullscreen=function(Zt,ci){ci.appendChild(Zt)};var Jn=function(Zt,ci,On,Mi){Bt(Zt,ci,!0);for(var Xt=function(){var Si=[];for(on=0;on<Zt.childNodes.length;on++)Si.push(Zt.childNodes[on]);if(window.GGBT_wsf_view){var Gt=window.GGBT_wsf_view.renderFullScreen(Zt,ci.id),Xe=document.getElementById("fullscreencontainer"),ke=jQuery(Zt).find(".fullscreencontent");ke.length>0?(Gt.remove(),ke.attr("id","fullscreencontent").show(),jQuery(Xe).append(ke),window.dispatchEvent(new Event("resize"))):bt(Gt,ci,!1),window.GGBT_wsf_view.launchFullScreen(Xe)}else We=Mi,bt(Zt,ci,!1);if(!window.GGBT_wsf_view)for(on=0;on<Si.length;on++)Zt.removeChild(Si[on])},At=Zt.getElementsByClassName("ggb_preview_play"),on=0;on<At.length;on++)At[on].addEventListener("click",Xt,!1),At[on].addEventListener("ontouchstart",Xt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Zt),nt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},qn=function(){var Zt=document.createElement("div");if(Zt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ci='.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");}',On=document.createElement("style");On.styleSheet?On.styleSheet.cssText=ci:On.appendChild(document.createTextNode(ci)),document.getElementsByTagName("head")[0].appendChild(On)}return Zt},sn=function(Zt,ci,On,Mi){var Xt=document.createElement("div");Xt.className="ggb_preview",Xt.style.position="absolute",Xt.style.zIndex="90",Xt.style.width=Zt-2+"px",Xt.style.height=ci-2+"px",Xt.style.top="0px",Xt.style.left="0px",Xt.style.overflow="hidden",Xt.style.backgroundColor="white";var At="lightgrey";On!==void 0&&(On==="none"?At="transparent":At=On),Xt.style.border="1px solid "+At;var on=document.createElement("img");if(on.style.position="relative",on.style.zIndex="1000",on.style.top="-1px",on.style.left="-1px",ue!==null&&on.setAttribute("src",ue),on.style.opacity=.7,se!==null){var Si,Gt,Xe;if(!Mi){Si=document.createElement("img"),Si.style.position="absolute",Si.style.zIndex="1001",Si.style.opacity=1,on.style.opacity=.3,Gt=360,Gt>Zt/4*3&&(Gt=Zt/4*3),Xe=Gt/5.8,Si.setAttribute("src",se),Si.setAttribute("width",Gt),Si.setAttribute("height",Xe);var ke=(Zt-Gt)/2,Me=(ci-Xe)/2;Si.style.left=ke+"px",Si.style.top=Me+"px",Xt.appendChild(Si)}}return Xt.appendChild(on),Xt},Nn=function(Zt){return Zt=Zt.toLowerCase(),Zt==="html5"||Zt==="screenshot"?Zt:"html5"},lt=["web","webSimple","web3d","tablet","tablet3d","phone"],Ge=function(Zt,ci){if(Te=Zt,ci){Ne(Te,!0);return}var On=!ot;if(On){var Mi=Pe(Te);!isNaN(Mi)&&Mi<4.4&&(On=!1)}var Xt,At;window.location.protocol.substr(0,4)==="http"?Xt=window.location.protocol:Xt="http:";var on=Te.indexOf("//");on>0?At=Te:on===0?At=Xt+Te:At="https://www.geogebra.org/apps/5.2.814.0/";for(var Si in lt)if(Te.slice(lt[Si].length*-1)===lt[Si]||Te.slice((lt[Si].length+1)*-1)===lt[Si]+"/"){Ne(At,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&On&&!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")?At+="webSimple/":At+="web3d/",Ne(At,!1)},Ne=function(Zt,ci){if(Zt.requirejs){Vt=Zt;return}Zt.slice(-1)!=="/"&&(Zt+="/"),Vt=Zt,ci===null&&(ci=Zt.indexOf("http")===-1),ct=ci,ne="web.nocache.js",te=!1;var On=Vt.split("/");On.length>1&&(!ci&&On[On.length-2]==="webSimple"?(ne="webSimple.nocache.js",te=!0):lt.indexOf(On[On.length-2])>=0&&(ne=On[On.length-2]+".nocache.js")),On=Zt.split("/"),Te=On[On.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 Mi=parseFloat(Te);Mi!==NaN&&Mi<5&&Zt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Mi+" is deprecated. Using version latest instead."),Ge("5.0",ci))},Rn=function(Zt,ci){window.console&&window.console.log&&(!ci||typeof ci.showLogging=="undefined"||ci.showLogging&&ci.showLogging!=="false")&&console.log(Zt)};be.material_id!==void 0?ft(ai):ai();function ai(){var Zt=ei;Re!==null?Zt=Re:parseFloat(Zt)<5&&(Zt="5.0"),Ge(Zt,!1),Je!==null&&Ne(Je,ct),Nt=!0}return Dn},GGBAppletUtils=function(){"use strict";function Dn(){return window.GGBT_wsf_edit!==void 0}function ei(Nt,Re){Re!=1?(Nt.style.transformOrigin="0% 0% 0px",Nt.style.webkitTransformOrigin="0% 0% 0px",Nt.style.transform="scale("+Re+","+Re+")",Nt.style.webkitTransform="scale("+Re+","+Re+")",Nt.style.maxWidth="initial",Nt.querySelector(".ggb_preview")!==null&&(Nt.querySelector(".ggb_preview").style.maxWidth="initial"),Nt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Nt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Nt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Nt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Nt.style.transform="none",Nt.style.webkitTransform="none")}function be(Nt,Re,Je,pt,mt,yt){var Vt=null;if(yt!=null&&yt!="")for(var ct=Nt.parentNode;ct!=null;)if((" "+ct.className+" ").indexOf(" "+yt+" ")>-1){Vt=ct;break}else ct=ct.parentNode;var We=0,Te=0,ne=0,te=0,ue=0,se=0,ge=0;if(Vt)We=Vt.offsetWidth,Te=Math.max(pt?Vt.offsetWidth:0,Vt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(We=Math.min(window.innerWidth,document.documentElement.clientWidth),Te=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=We):(We=window.innerWidth,Te=window.innerHeight,ne=window.innerWidth),Nt){var me=Nt.getBoundingClientRect();me.left>0&&me.left<=We&&(mt===void 0||!mt)&&(document.dir==="rtl"?(ue=We-me.width-me.left,se=ne<=480?10:30):(se=me.left,ue=ne<=480?10:30),te=se+ue)}if(Nt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xe=Nt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,ge=40)}}return Nt&&((Je===void 0||!Je)&&Re>0&&Re+te<We?We=Re:We-=te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Je===void 0||!Je)&&(Te-=ge)),{width:We,height:Te}}function ve(Nt,Re,Je,pt,mt){if(Nt.isScreenshoGenerator)return 1;var yt=pt!==void 0&&pt,Vt=Nt.noScaleMargin!=null&&Nt.noScaleMargin,ct=function(xe){return xe&&xe!=="false"},We=ct(Nt.autoHeight),Te=be(Re,Nt.width,Je,We,yt&&window.GGBT_wsf_view||Vt,mt),ne=parseInt(Te.width),te=Nt.width,ue=Nt.height;if(te===void 0){var se=Re.querySelector(".appletParameters");se&&(te=se.offsetWidth,ue=se.offsetHeight)}var ge=ne/te,me=yt?1:Te.height/ue;return Je!==void 0&&!Je&&(ge=Math.min(1,ge),me=Math.min(1,me)),Math.min(ge,me)}function ot(Nt,Re,Je){var pt=1,mt,yt=!1;if(Nt.hasOwnProperty("allowUpscale")&&(yt=Nt.allowUpscale),Nt.hasOwnProperty("scale")&&(pt=parseFloat(Nt.scale),(isNaN(pt)||pt===null||pt===0)&&(pt=1),pt>1&&(yt=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(yt=!0),!(Nt.hasOwnProperty("disableAutoScale")&&Nt.disableAutoScale))mt=ve(Nt,Re,yt,Je,Nt.scaleContainerClass);else return pt;return yt&&(!Nt.hasOwnProperty("scale")||pt===1)?mt:Math.min(pt,mt)}function wt(Nt){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),Je=Math.min(window.innerHeight,document.documentElement.clientHeight),pt=Nt.getBoundingClientRect(),mt=(Re-pt.width)/2,yt=(Je-pt.height)/2;yt<0&&(yt=0),Nt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(mt<40?Nt.style.left="40px":Nt.style.left=mt+"px",Nt.style.top=yt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(yt<40?Nt.style.top="40px":Nt.style.top=yt+"px",Nt.style.left=mt+"px")}function Qt(Nt,Re){var Je=Nt.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(Nt)}if(Je.parentElement&&/fullscreen/.test(Je.parentElement.className))return;var pt=ot(Re,Nt);Dn()&&Je.setAttribute("data-param-scale",pt);for(var mt=null,yt=0;yt<Nt.childNodes.length;yt++)if(Nt.childNodes[yt].className!==void 0&&Nt.childNodes[yt].className.match(/^applet_scaler/)){mt=Nt.childNodes[yt];break}if(mt!==null&&mt.querySelector(".noscale")!==null)return;var Vt=Re.id!==void 0?Re.id:"ggbApplet",ct=window[Vt];(ct==null||!ct.recalculateEnvironments)&&mt!==null&&!mt.className.match(/fullscreen/)&&(mt.parentNode.style.transform="",!isNaN(pt)&&pt!==1?(mt.parentNode.style.width=Re.width*pt+"px",mt.parentNode.style.height=Re.height*pt+"px",ei(mt,pt)):(ei(mt,1),mt.parentNode.style.width=Re.width+"px",mt.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&wt(Nt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Je).parents(".content-added-content"))}}return{responsiveResize:Qt,isFlexibleWorksheetEditor:Dn,positionCenter:wt,getScale:ot,scaleElement:ei}}();__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 Dn=n.location.search;return Dn.indexOf(J)!=-1||Dn.indexOf(K)!=-1}function q(Dn,ei){}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(Dn){var ei=s[L].bindings;s[L].bindings=function(){for(var be=ei?ei():{},ve=Dn[webModule.__softPermutationId],ot=O;ot<ve.length;ot++){var wt=ve[ot];be[wt[O]]=wt[P]}return be}};var t;function u(){return v(),t}function v(){if(!t){var Dn=o.createElement(Q);if(Dn.id=L,Dn.style.cssText=R+S,Dn.tabIndex=-1,o.body.appendChild(Dn),t=Dn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ei=document.compatMode==U?V:W;t.write(ei+X),t.close()}}}function w(Dn){function ei(ve){function ot(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var wt=ot();if(wt){ve();return}function Qt(){if(!wt){if(!ot())return;wt=!0,ve(),o.removeEventListener&&o.removeEventListener(Z,Qt,!1),Nt&&clearInterval(Nt)}}o.addEventListener&&o.addEventListener(Z,Qt,!1);var Nt=setInterval(function(){Qt()},$)}function be(ve){var ot=u(),wt=ot.body,Qt=ot.createElement(_);Qt.language=ab,Qt.crossOrigin=W,Qt.src=ve,webModule.__errFn&&(Qt.onerror=function(){webModule.__errFn(L,new Error(bb+ve))}),wt.appendChild(Qt)}ei(function(){be(Dn)})}webModule.__startLoadingFragment=function(Dn){return C(Dn)},webModule.__installRunAsyncCode=function(Dn){var ei=u(),be=ei.body,ve=ei.createElement(_);ve.language=ab,ve.text=Dn,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(Dn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Dn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Dn){var ei=c[Dn];return ei==null?null:ei},r=d,webModule.__errFn=e}function B(){function Dn(Nt){var Re=Nt.lastIndexOf(rb);Re==-1&&(Re=Nt.length);var Je=Nt.indexOf(sb);Je==-1&&(Je=Nt.length);var pt=Nt.lastIndexOf(tb,Math.min(Je,Re));return pt>=O?Nt.substring(O,pt+P):W}function ei(Nt){if(!Nt.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=Nt+vb,Nt=Dn(Re.src)}return Nt}function be(){var Nt=__gwt_getMetaProperty(wb);return Nt!=null?Nt:W}function ve(){for(var Nt=o.getElementsByTagName(_),Re=O;Re<Nt.length;++Re)if(Nt[Re].src.indexOf(xb)!=-1)return Dn(Nt[Re].src);return W}function ot(){var Nt=o.getElementsByTagName(yb);return Nt.length>O?Nt[Nt.length-P].href:W}function wt(){var Nt=o.location;return Nt.href==Nt.protocol+zb+Nt.host+Nt.pathname+Nt.search+Nt.hash}var Qt=be();return Qt==W&&(Qt=ve()),Qt==W&&(Qt=ot()),Qt==W&&wt()&&(Qt=Dn(o.location.href)),Qt=ei(Qt),Qt}function C(Dn){return Dn.match(/^\//)||Dn.match(/^[a-zA-Z]+:\/\//)?Dn:webModule.__moduleBase+Dn}function D(){var Dn=[],ei=O,be=[],ve=[];function ot(Nt){var Re=ve[Nt](),Je=be[Nt];if(Re in Je)return Re;var pt=[];for(var mt in Je)pt[Je[mt]]=mt;throw r&&r(Nt,pt,Re),null}if(__gwt_isKnownPropertyValue=function(Nt,Re){return Re in be[Nt]},webModule.__getPropMap=function(){var Nt={};for(var Re in be)be.hasOwnProperty(Re)&&(Nt[Re]=ot(Re));return Nt},webModule.__computePropValue=ot,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var wt;try{wt=Cb;var Qt=wt.indexOf(Db);Qt!=-1&&(ei=parseInt(wt.substring(Qt+P),$),wt=wt.substring(O,Qt))}catch(Nt){}return webModule.__softPermutationId=ei,C(wt+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(Dn,ei,be){"use strict";be.d(ei,{Ax:function(){return Qt},Ds:function(){return Nt},KI:function(){return Je},SI:function(){return wt},f1:function(){return ot}});var ve=be(11320);function ot(pt){let mt=!0;if(pt.length>0){for(let yt=0;yt<pt.length;yt++)if(pt[yt].compile_success==0||!pt[yt].compile_success){mt=!1;break}}else mt=!1;return mt}function wt(pt,mt=""){let yt=[];for(let Vt=0;Vt<pt.length;Vt++){let ct=pt[Vt],We=mt?`${mt}/${ct.name}`:`${ct.name}`;yt.push({title:ct.name,type:ct.type,isLeaf:ct.type!=="tree",key:We})}return yt}function Qt(pt,mt,yt){for(let Vt=0;Vt<pt.length;Vt++){let ct=pt[Vt];if(ct.key===mt){ct.children=yt;break}ct.children&&Qt(ct.children,mt,yt)}return pt}function Nt(pt,mt,yt){let Vt;return function(){let ct=this,We=arguments,Te=function(){Vt=null,yt||pt.apply(ct,We)},ne=yt&&!Vt;clearTimeout(Vt),Vt=setTimeout(Te,mt),ne&&pt.apply(ct,We)}}const Re=!0,Je=ve.Z.API_SERVER},63205:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return Vt}});var ve=be(67294),ot={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},wt=be(94184),Qt=be.n(wt),Nt=be(74330),Re=be(15979),Je=be(33170),pt=be(28706),mt=(ct,We,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,We)).next())}),Vt=({data:ct,className:We,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),[nt,ft]=(0,ve.useState)(!1),[qe,at]=(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&&jt()):(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 jt=()=>mt(void 0,null,function*(){ft(!0),at("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ht=yield(0,pt.ZJ)(ct==null?void 0:ct.src);me.current.src="",me.current.src=Ht,me.current.onload=function(){Bt()},ft(!1),at("")}),Mt=Ht=>mt(void 0,null,function*(){ft(!0),at("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Jn=yield(0,Je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ct.title,file:Ht.dataUrl}});Jn!=null&&Jn.id&&!ge?(yield(0,Je.ZP)(`/api/attachments/${ct.id}/add_subitem.json`,{method:"post",body:{subitem_id:Jn==null?void 0:Jn.id,settings:JSON.stringify(Ht.state)}})).status===0&&ue():Jn!=null&&Jn.id&&ue(Jn),ft(!1),at("")}),bt=()=>{const Ht=document.querySelector('a[href="https://markerjs.com/"]');Ht&&Ht.parentNode&&(Ht.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(qn=>{const sn=document.querySelector(qn.name);sn&&sn.setAttribute("title",qn.title)})},Bt=()=>{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),bt()},300)};return ve.createElement(ve.Fragment,null,(ct==null?void 0:ct.visible)&&ve.createElement(Nt.Z,{spinning:nt,tip:qe,style:{position:"absolute",width:"100vw"}},ve.createElement("div",{ref:Ke,className:Qt()(ot.imageDimensions,We,Te?ot.fullWidth:""),style:ne},ve.createElement("img",{className:ot.img,ref:me}))))}},36527:function(Dn,ei,be){"use strict";var ve=be(67294),ot=be(71230),wt=be(15746),Qt=be(55238),Nt=be(85804),Re=be(65226),Je=be(71736),pt=be(84279),mt=be(67294);const yt=(0,ve.forwardRef)(({callback:Vt,showSaveButton:ct,value:We=""},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:mt.createElement(ot.Z,{className:Je.Z.lists,gutter:[10,10]},te.map((xe,Pe)=>mt.createElement(wt.Z,{flex:"110px",className:Je.Z.item},mt.createElement("div",null,mt.createElement(Re.Z,{value:`$$${xe.value}$$`}),xe.name),mt.createElement("div",{className:Je.Z.children},xe.children.map((Ke,nt)=>mt.createElement("div",{key:nt},mt.createElement("h1",null,Ke.name),mt.createElement(ot.Z,{gutter:[10,10]},Ke.data.map((ft,qe)=>mt.createElement(wt.Z,{key:qe,onClick:()=>se(ft),className:Je.Z.diamond},mt.createElement(Re.Z,{value:"`$$"+ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:mt.createElement(ot.Z,{className:Je.Z.lists,gutter:[10,10]},ue.map((xe,Pe)=>mt.createElement(wt.Z,{flex:"110px",className:Je.Z.item},mt.createElement("div",null,mt.createElement(Re.Z,{value:"`$$"+xe.value+"$$`"}),xe.name),mt.createElement("div",{className:Je.Z.children},xe.children.map((Ke,nt)=>mt.createElement("div",{key:nt},Ke.name&&mt.createElement("h1",null,Ke.name),mt.createElement(ot.Z,{gutter:[10,10]},Ke.data.map((ft,qe)=>mt.createElement(wt.Z,{key:qe,onClick:()=>se(ft),className:Je.Z.diamond},mt.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})),mt.createElement("div",{className:Je.Z.mathWrap},mt.createElement(Qt.default,{defaultActiveKey:"1",items:ge}),mt.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}},We||""),ct&&mt.createElement("div",{className:Je.Z.button},mt.createElement(Nt.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ei.Z=yt},26194:function(Dn,ei,be){"use strict";var ve=be(67294),ot=be(4977),wt=be(85804),Qt=Object.defineProperty,Nt=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,yt=(Te,ne,te)=>ne in Te?Qt(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)&&yt(Te,te,ne[te]);if(Je)for(var te of Je(ne))mt.call(ne,te)&&yt(Te,te,ne[te]);return Te},ct=(Te,ne)=>Nt(Te,Re(ne));const We=({img:Te,buttonProps:ne={},styles:te={},customText:ue,ButtonText:se,ButtonClick:ge,Buttonclass:me,ButtonTwo:xe,imgStyles:Pe,loading:Ke=!1,className:nt=""})=>ve.createElement("section",{className:`tc animated fadeIn ${nt}`,style:Vt({color:"#999",margin:"100px auto",visibility:Ke?"hidden":"visible"},te)},ve.createElement("img",{src:Te||ot,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(wt.ZP,Vt({className:me,onClick:ge},ne),se),xe&&xe);ei.Z=We},39717:function(Dn,ei,be){"use strict";be.d(ei,{Q:function(){return Re}});var ve=be(67294),ot=be(88044),wt=be(98813),Qt=be(37720),Nt=be(67294),Re=(pt=>(pt[pt.Number=1]="Number",pt[pt.Percent=2]="Percent",pt))(Re||{});const Je=({value:pt,onChange:mt,disabled:yt,hidePercentOption:Vt=!1,percentType:ct="select"})=>{const We=(0,ve.useMemo)(()=>Vt?1:2,[Vt]),[Te,ne]=(0,ve.useState)(We);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]),Nt.createElement("div",{style:{display:"flex",alignItems:"center"}},ct=="select"&&Nt.createElement(ot.default,{size:"large",onChange:se=>{ne(se),mt({type:se,inputValue:se===1?5:20})},value:Te||We,style:{width:100},options:Vt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:yt}),ct=="radio"&&Nt.createElement(wt.ZP.Group,{size:"large",onChange:se=>{const ge=se.target.value;ne(ge),mt({type:ge,inputValue:ge===1?5:20})},value:Te||We,disabled:yt},!Vt&&Nt.createElement(wt.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Nt.createElement(wt.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),ct=="radio"&&Nt.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"),Nt.createElement(Qt.Z,{size:"large",disabled:yt,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=>{mt({type:Te,inputValue:se})}}),ct=="radio"&&pt.type==2&&Nt.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};ei.Z=Je},20819:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return me}});var ve=be(67294),ot={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},wt=be(85804),Qt=be(30153),Nt=be(36295),Re=be(83062),Je=be(28706),pt=be(15835),mt=be(26194),yt=be(11320),Vt=be(66540),ct=be(67294),We=Object.defineProperty,Te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(xe,Pe,Ke)=>Pe in xe?We(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((nt,ft)=>{var qe=Mt=>{try{jt(Ke.next(Mt))}catch(bt){ft(bt)}},at=Mt=>{try{jt(Ke.throw(Mt))}catch(bt){ft(bt)}},jt=Mt=>Mt.done?nt(Mt.value):Promise.resolve(Mt.value).then(qe,at);jt((Ke=Ke.apply(xe,Pe)).next())}),me=({editOffice:xe="view",data:Pe,issaver:Ke,onSaver:nt,theme:ft,type:qe,filename:at,monacoEditor:jt,className:Mt,style:bt,close:Bt,onClose:Ht,hasMask:Jn,disabledDownload:qn,onImgDimensions:sn,showNodata:Nn,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"),[Rn,ai]=(0,ve.useState)(""),[Zt,ci]=(0,ve.useState)(),On=window.ENV==="build"?"/react/build":"",Mi=location.host.startsWith("localhost")?yt.Z.PROXY_SERVER:yt.Z.API_SERVER,At=10*(1024*1024),on=(0,ve.useRef)();Pe!=null&&Pe.startsWith("/api")&&qe!=="txt"&&(Pe=yt.Z.API_SERVER+Pe);const Si=He=>He.substring(He.lastIndexOf("/")+1).split(".").pop();at&&jt&&(jt.filename=at),(0,ve.useEffect)(()=>{var He,et;const Oe=(et=(He=document.cookie)==null?void 0:He.replace(/\s/g,""))==null?void 0:et.split(";");Oe==null||Oe.map(ut=>{let Vn=ut.split("=");Vn[0]==="_educoder_session"&&ai(Vn[1])})},[]),(0,ve.useEffect)(()=>{qe==="office"&&(Pe.indexOf("bigfilescdn.")>-1||Pe.indexOf("bigfiles1")>-1?ci({url:Pe,fileType:Si(Pe),model:Pe.indexOf("model=edit")?"edit":"view"}):Xe())},[qe,Pe]);function Gt(He){return ge(this,null,function*(){He.data.type==="pdfdata"&&(nt(He.data.data),window.removeEventListener("message",Gt,!1)),console.log("mess---:",He.data)})}const Xe=()=>ge(void 0,null,function*(){console.log("data:",Pe);let He=Pe;Pe.startsWith("http")||(He=location.origin+He);let et=new URL(He).pathname.split("/").pop();const Oe=yield(0,pt.gJ)({attachment_id:et});Oe.url=Mi+Oe.url,ci(Oe)}),ke=()=>{if(Pe.startsWith("http")||Pe.startsWith("blob:")){Me();return}(0,Je.Sv)(at||"educoder",Pe,at)},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)(at||"educoder",decodeURIComponent(Pe))};return ct.createElement("div",{style:se({},bt||{}),className:`${Jn&&ot.bgBlack} ${qe?ot.wrp:"hide"}`},Bt&&ct.createElement("div",{className:ot.close,ref:on},!!sn&&ct.createElement(Re.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>on.current},ct.createElement("span",{onClick:()=>{Ht(),sn()}},ct.createElement("i",{className:"icon-yulanpizhu"}))),!qn&&ct.createElement(Re.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>on.current},ct.createElement("span",{onClick:Me},ct.createElement("i",{className:"icon-quxiaozhiding"}))),Ke&&ct.createElement(Re.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>on.current},ct.createElement("span",{className:"",onClick:()=>{const He=document.getElementById("pdfiframe");window.addEventListener("message",Gt,!1),setTimeout(()=>{He.contentWindow.postMessage("getData","*")},300)}},ct.createElement("i",{className:"icon-baocun"}))),ct.createElement(Re.Z,{title:"\u5173\u95ED",getPopupContainer:()=>on.current},ct.createElement("span",{className:"",onClick:()=>{Ht()}},ct.createElement("i",{className:"icon-guanbi1"})))),ct.createElement("div",{className:`${ot[Mt]} ${Mt} ${ot.monaco} ${qe==="txt"?"show":"hide"}`},qe==="txt"&&ct.createElement(ct.Fragment,null,ct.createElement(Nt.ZP,se({},jt)))),qe==="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}),qe==="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})),qe==="office"&&Zt&&ct.createElement("iframe",{src:`${On}/office.html?key=${Zt.key}&url=${btoa(Zt.url)}&callbackUrl=${Mi+(Zt.callbackUrl||"")}&fileType=${Zt.fileType}&title=${Zt.title||""}&model=${xe}&officeServer=${yt.Z.ONLYOFFICE}&disabledDownload=${!!qn}`}),qe==="html"&&ct.createElement("iframe",{src:Pe+"&disposition=inline"}),qe==="pdf"&&ct.createElement("iframe",{id:"pdfiframe",src:`${On}/js/pdfview/index.html?filename=${at||"educoder.pdf"}&url=${encodeURIComponent(Pe)}&disabledDownload=${!!qn}&model=${xe}`}),qe==="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}`}),(qe==="other"||qe==="download")&&ct.createElement(ct.Fragment,null,Nn?ct.createElement(mt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ct.createElement(wt.ZP,{icon:ct.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ke,disabled:qn},"\u4E0B\u8F7D")}):ct.createElement(wt.ZP,{type:"primary",size:"middle",onClick:ke,disabled:qn},ct.createElement(Qt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},65226:function(Dn,ei,be){"use strict";be.d(ei,{z:function(){return qe},Z:function(){return at}});var ve=be(67294),ot=be(81897),wt=be(51161),Qt=be(11771),Nt=be(67631),Re=be.n(Nt),Je=be(11320),pt=be(28706),mt=be(20527),yt=be(25934),Vt=be(20819),ct=be(67294),Te=({html:jt})=>{const Mt=(0,ve.useRef)(null),bt=(0,ve.useRef)(null),Bt=`.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 Ht=Mt.current.attachShadow({mode:"open"});bt.current=document.createElement("div"),bt.current.className="markdown-body",bt.current.innerHTML=jt,Ht.appendChild(bt.current);const Jn=document.createElement("style");return Jn.textContent=Bt,Ht.appendChild(Jn),()=>{Ht.innerHTML=""}},[]),(0,ve.useEffect)(()=>{bt.current&&(bt.current.innerHTML=jt)},[jt]),ct.createElement("div",{ref:Mt})};function ne(jt){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"],bt=new RegExp(`\\b(${Mt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return jt.replace(bt,"").trim()}var te=Object.defineProperty,ue=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(jt,Mt,bt)=>Mt in jt?te(jt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):jt[Mt]=bt,xe=(jt,Mt)=>{for(var bt in Mt||(Mt={}))se.call(Mt,bt)&&me(jt,bt,Mt[bt]);if(ue)for(var bt of ue(Mt))ge.call(Mt,bt)&&me(jt,bt,Mt[bt]);return jt};const Pe="@\u2581\u2581@",Ke="@\u2581@",nt=/<pre[^>]*>/g;function ft(jt){let Mt=document.createElement("div");return Mt.innerHTML=jt,Mt.childNodes.length===0?"":Mt.childNodes[0].nodeValue}const qe=(jt,Mt)=>{jt=jt||"";const bt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Bt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ht=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Jn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Mt?jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(bt,(qn,sn,Nn,lt,Ge,Ne,Rn)=>{const ai=sn||lt||Ne,Zt=Nn||Ge||Rn||"?";return Je.Z.API_SERVER+"/api/attachments/"+ai+Zt+"&t="+(0,pt.Jn)(ai,Date.now())+(qn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(jt=jt.replace(Jn,(qn,sn,Nn,lt,Ge,Ne,Rn)=>{const ai=sn||lt||Ne,Zt=Nn||Ge||Rn||"?";return Je.Z.API_SERVER+"/attachments/download/"+ai+Zt+"&t="+(0,pt.Jn)(ai,Date.now())+(qn.indexOf(")")>-1?")":"&")}).replace(bt,(qn,sn,Nn,lt,Ge,Ne,Rn)=>{const ai=sn||lt||Ne,Zt=Nn||Ge||Rn||"?";return Je.Z.API_SERVER+"/api/attachments/"+ai+Zt+"&t="+(0,pt.Jn)(ai,Date.now())+(qn.indexOf(")")>-1?")":"&")}).replace(Bt,(qn,sn,Nn,lt,Ge)=>{const Ne=sn||lt,Rn=Nn||Ge||"";return'"'+Je.Z.API_SERVER+"/api/attachments/"+Ne+Rn+Ne+Rn+"&t="+(0,pt.Jn)(Ne,Date.now())}).replace(Ht,(qn,sn,Nn,lt,Ge)=>{const Ne=sn||lt,Rn=Nn||Ge||"";return"("+Je.Z.API_SERVER+"/files/uploads/"+Ne+Rn+Ne+Rn+"&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,`
|
|
`),jt)};var at=({value:jt="",className:Mt,showTextOnly:bt,showLines:Bt,style:Ht={},stylesPrev:Jn={},highlightKeywords:qn,showProgramFill:sn,isProgramFill:Nn,disabledFill:lt=!1,programFillValue:Ge,onFillChange:Ne=Zt=>{},onFillBlur:Rn=()=>{},onFillFocus:ai=()=>{}})=>{let Zt=ne(String(jt||""));const[ci,On]=(0,ve.useState)(""),[Mi,Xt]=(0,ve.useState)("office"),[At,on]=(0,ve.useState)([]),Si=(0,ve.useRef)("a"+(0,yt.Z)()),Gt={},Xe=mn=>/<style[\s\S]*?>/i.test(mn||""),ke=(mn,Fi,Vi)=>{const Ir=document.createElement(mn===Ke?"input":"textarea");Ir.style.width="100%",Ir.style.height=mn===Ke?"40px":"151px",Ir.rows=5,Ir.spellcheck=!1,Ir.name="edu-program-fill",Ir.placeholder="\u8BF7\u8F93\u5165",Ir.dataset.id=Fi;const Qi=Object.keys(Gt).length;return Gt[Qi]=Ir,`<span class="edu-program-fill-wrap ${mn===Ke?"":"show"}" style="width:${mn===Ke?"600px":"100%"}" title=${Vi||""}><span>${Ir.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 He=mn=>!bt&&Xe(Zt)?mn:mn.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Fi,Vi){let Ir=Vi.replace(/(\n|\r)/g,"").split("}"),Qi=[];return Ir.map(Di=>{Di!=""&&Qi.push(`.${Si.current} ${Di}`)}),`<style>${Qi.join("}")}</style>`}),et=(0,ve.useMemo)(()=>{try{const Ir=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Qi=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Di=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,$r=/\(\/attachments\/download\//g;Zt=Zt.replace($r,"("+Je.Z.API_SERVER+"/attachments/download/").replace(Ir,"("+Je.Z.API_SERVER+"/api/attachments/").replace(Qi,'"'+Je.Z.API_SERVER+"/api/attachments/").replace(Di,'"'+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(Ir){}if(sn){let Ir=-1;return Zt=Zt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Qi,Di,$r){var Yi;return++Ir,ke(Qi,Ir,(Yi=Ge==null?void 0:Ge[Ir])==null?void 0:Yi.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${He(Zt||"")}</pre>`}let mn=He(Zt);mn=(0,wt.ZP)(mn);const Fi=(0,wt.ez)();Zt.match(/\[TOC\]/)&&(mn=mn.replace("<p>[TOC]</p>",(0,wt.Qv)()),(0,wt.Iy)()),mn=mn.replace(/(__special_katext_id_\d+__)/g,(Ir,Qi)=>{const{type:Di,expression:$r}=Fi[Qi];return(0,mt.renderToString)(ft($r)||"",{displayMode:Di==="block",throwOnError:!1,output:"html"})}),mn=mn.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,wt.AL)();const Vi=document.createElement("div");if(Vi.innerHTML=mn,bt)return Vi.innerText;if(qn){const Ir=qn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return jn(Vi,Ir),Vi.innerHTML}return setTimeout(()=>si(),500),Vi.innerHTML},[Zt,qn]);(0,ve.useEffect)(()=>{An.current&&An.current.querySelectorAll(["input","textarea"]).forEach(Fi=>{Fi.oninput=Oe,Fi.onblur=ut,Fi.onfocus=Vn})},[At]),(0,ve.useEffect)(()=>{var mn,Fi,Vi,Ir,Qi;if(Ge!=null&&Ge.length)try{const Di=An.current.querySelectorAll(".edu-program-fill-score"),$r=An.current.querySelectorAll('[name="edu-program-fill"]');for(const[Yi,hr]of $r.entries())hr.value=((mn=Ge==null?void 0:Ge[Yi])==null?void 0:mn.value)||"",((Fi=Ge==null?void 0:Ge[Yi])==null?void 0:Fi.type)==="warning"?hr.className="program-fill-warning":((Vi=Ge==null?void 0:Ge[Yi])==null?void 0:Vi.type)==="success"?hr.className="program-fill-success":hr.className="";for(const[Yi,hr]of Di.entries())hr.innerHTML=(Ir=Ge==null?void 0:Ge[Yi])!=null&&Ir.score?`${(Qi=Ge==null?void 0:Ge[Yi])==null?void 0:Qi.score}\u5206`:"";on(Ge)}catch(Di){console.log(Di,"error")}},[Ge]);const Oe=mn=>{At[mn.target.dataset.id]=At[mn.target.dataset.id]||{},At[mn.target.dataset.id].value=mn.target.value,on([...At]),Ne(At,mn.target.dataset.id)},ut=mn=>{At[mn.target.dataset.id]=At[mn.target.dataset.id]||{},At[mn.target.dataset.id].value=mn.target.value,on([...At]),Rn(At,mn.target.dataset.id)},Vn=mn=>{At[mn.target.dataset.id]=At[mn.target.dataset.id]||{},At[mn.target.dataset.id].value=mn.target.value,on([...At]),ai(At,mn.target.dataset.id)};function jn(mn,Fi){return mn.childNodes.forEach(Vi=>{var Ir;if(Vi.childNodes.length>0)jn(Vi,Fi);else if(Vi.nodeName!=="IMG")if(Vi.innerHTML)Vi.innerHTML=(Ir=Vi.innerHTML)==null?void 0:Ir.replace(new RegExp(Fi,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Qi=document.createElement("span");Qi.innerHTML=Vi.textContent.replace(new RegExp(Fi,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Vi.replaceWith(Qi)}})}const An=(0,ve.useRef)();wt.jb.WebkitLineClamp=Bt,Bt&&(Ht=xe(xe({},Ht),wt.jb));function Pn(mn){let Fi=mn.target;if(Fi.tagName.toUpperCase()==="A"){let Vi=Fi.getAttribute("href");if(Vi.indexOf("office")>-1)mn.preventDefault(),On(Vi),Xt("office");else if(Vi.indexOf("application/pdf")>-1)mn.preventDefault(),On(Vi),Xt("pdf");else if(Vi.indexOf("text/html")>-1)mn.preventDefault(),On(Vi),Xt("html");else if(Vi.startsWith("#")){mn.preventDefault();let Ir=document.getElementById(Vi.replace("#",""));Ir&&Ir.scrollIntoView(!0)}}}const si=()=>{var mn;const Fi=(mn=An.current)==null?void 0:mn.querySelectorAll("video");Fi==null||Fi.forEach(Vi=>{if(Vi.oncontextmenu=()=>!1,Vi.src.indexOf(".m3u8")>-1&&!Vi.canPlayType("application/vnd.apple.mpegurl")){if(Re().isSupported()){var Ir=new(Re());Ir.loadSource(Vi.src),Ir.attachMedia(Vi)}}})};return(0,ve.useEffect)(()=>{if(An.current&&et&&et.match(nt)&&window.PR.prettyPrint(),An.current)return An.current.addEventListener("click",Pn),()=>{var mn;(mn=An.current)==null||mn.removeEventListener("click",Pn),(0,wt.AL)(),(0,wt.Iy)()}},[et,An.current,Pn]),(0,ve.useEffect)(()=>{var mn;const Fi=Vi=>{Vi.preventDefault(),Vi.clipboardData.setData("text",window.getSelection().toString())};return(mn=An.current)==null||mn.addEventListener("copy",Fi),()=>{var Vi;(Vi=An.current)==null||Vi.removeEventListener("copy",Fi)}},[An.current]),ve.createElement(ve.Fragment,null,bt&&ve.createElement("div",{ref:An},et),!bt&&!Xe(et)&&ve.createElement("div",{ref:An,style:xe({},Ht),className:`${Mt||""} ${lt?"disabled-fill":""} markdown-body ${Si.current}`,dangerouslySetInnerHTML:{__html:et}}),!bt&&Xe(et)&&ve.createElement(Te,{html:et}),ve.createElement(Vt.Z,{close:!0,data:ci,type:ci!=null&&ci.length?Mi:"",style:xe({},Jn),onClose:()=>On("")}))}},96332:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return pt}});var ve=be(67294),ot={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"},wt=be(62844),Qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Re=(mt,yt,Vt)=>new Promise((ct,We)=>{var Te=ue=>{try{te(Vt.next(ue))}catch(se){We(se)}},ne=ue=>{try{te(Vt.throw(ue))}catch(se){We(se)}},te=ue=>ue.done?ct(ue.value):Promise.resolve(ue.value).then(Te,ne);te((Vt=Vt.apply(mt,yt)).next())}),pt=({type:mt,resdata:yt,onok:Vt,oktext:ct,okloading:We})=>{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:nt,student_count:ft,total_num:qe,use_num:at}=yt;let jt=ue>0||mt==="exercise";(0,ve.useEffect)(()=>{(yt==null?void 0:yt.student_count)>0&&ne(!0)},[yt]),console.log("---11",We),(0,ve.useEffect)(()=>{We||ne(!1)},[We]);const Mt=()=>{if(mt==="exercise"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ot.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:ot.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ot.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(mt==="exercise"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ot.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:ot.orangeColor},at),"\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:ot.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(mt==="shixun"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ot.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ot.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(mt==="shixun"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ot.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:ot.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(mt==="subject"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ot.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:ot.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ot.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(mt==="subject"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ve.createElement("span",{className:ot.orangeColor},ft)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ve.createElement("span",{className:ot.orangeColor},at)," \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:ot.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(mt==="exercisepush")return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ot.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ve.createElement("span",{className:ot.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ve.createElement("span",{className:ot.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(mt==="shixunpush"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ot.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:ot.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ot.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(mt==="shixunpush"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ot.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ve.createElement("span",{className:ot.orangeColor},at),"\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:ot.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},bt=()=>{if(mt==="exercise"||mt==="subject"||mt==="exercisepush"||mt==="shixunpush")return ve.createElement("div",{style:{marginTop:20}},xe>0&&ve.createElement("div",null,ve.createElement("span",{className:ot.flex},ve.createElement("img",{src:Nt,style:{width:14}}),ve.createElement("span",{className:ot.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:ot.statusbody},mt==="exercise"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ot.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"),(mt==="subject"||mt==="exercisepush")&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",jt&&ve.createElement("span",{className:ot.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"),mt==="shixunpush"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",jt&&ve.createElement("span",{className:ot.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((Bt,Ht)=>ve.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank"},"\u300A",Bt==null?void 0:Bt.name,"\u300B",Ht+1!==xe&&"\u3001"))))),ue>0&&ve.createElement("div",{style:{marginTop:20}},ve.createElement("span",{className:ot.flex},ve.createElement("img",{src:Qt,style:{width:14}}),ve.createElement("span",{className:ot.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:ot.statusbody},mt==="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"),(mt==="subject"||mt==="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"),mt==="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((Bt,Ht)=>ve.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank"},"\u300A",Bt==null?void 0:Bt.name,"\u300B",Ht+1!==ue&&"\u3001"))))));if(mt==="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(wt.default,{open:Te,onCancel:()=>{ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!jt&&"none"}},zIndex:1003,confirmLoading:We,okText:jt?ct:"\u6211\u77E5\u9053\u4E86",onOk:()=>Re(void 0,null,function*(){jt?yield Vt([...te,...Pe]):ne(!1)})},ve.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Mt(),bt()))}},57444:function(Dn,ei,be){"use strict";be.d(ei,{h:function(){return xe}});var ve=be(67294),ot=be(88044),wt=be(91773),Qt=be(85804),Nt=be(4631),Re=be.n(Nt),Je=be(71749),pt=be(30483),mt=Object.defineProperty,yt=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,ne=(Pe,Ke,nt)=>Ke in Pe?mt(Pe,Ke,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Pe[Ke]=nt,te=(Pe,Ke)=>{for(var nt in Ke||(Ke={}))We.call(Ke,nt)&&ne(Pe,nt,Ke[nt]);if(ct)for(var nt of ct(Ke))Te.call(Ke,nt)&&ne(Pe,nt,Ke[nt]);return Pe},ue=(Pe,Ke)=>yt(Pe,Vt(Ke));const se=ot.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"]};ei.Z=({callback:Pe,onCancel:Ke})=>{const[nt,ft]=(0,ve.useState)("python");function qe(jt){ft(me[jt][1])}function at(jt){Pe(jt)}return ve.createElement(wt.default,ue(te({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:at,style:{width:500}}),ve.createElement(wt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ve.createElement(ot.default,{getPopupContainer:jt=>jt.parentNode,onChange:qe},Object.keys(me).map(jt=>ve.createElement(se,{key:jt,value:jt},me[jt][0])))),ve.createElement(wt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ve.createElement(xe,{mode:nt})),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(Qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(Qt.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))};function xe({value:Pe,onChange:Ke,mode:nt,options:ft={}}){const qe=(0,ve.useRef)(),[at,jt]=(0,ve.useState)();return(0,ve.useEffect)(()=>{if(at){let Mt=function(bt){const Bt=bt.getValue();Ke&&Ke(Bt)};return at.on("change",Mt),()=>{at.off("change",Mt)}}},[at,Ke]),(0,ve.useEffect)(()=>{at&&at.setOption("mode",nt)},[at,nt]),(0,ve.useEffect)(()=>{at&&(Pe!==at.getValue()||Pe==="")&&setTimeout(()=>{at.setValue(Pe||"")},300)},[at,Pe]),(0,ve.useEffect)(()=>{if(qe.current&&!at){const Mt=Re().fromTextArea(qe.current,te({mode:nt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ft));jt(Mt)}},[qe.current,at]),ve.createElement("div",{className:"my-codemirror-container"},ve.createElement("textarea",{ref:qe}))}},35567:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return ni}});var ve=be(67294),ot=be(4631),wt=be.n(ot),Qt=be(91033),Nt=be(71749),Re=be(57341),Je=be(82801),pt=be(88386),mt=be(49047),yt=be(80785),Vt=be(65226),ct=({value:zt="",className:Kt,showTextOnly:Ft,showLines:un,style:Ti={}})=>{const Ri=(0,ve.useMemo)(()=>"",[zt]);return ve.createElement(ve.Fragment,null,ve.createElement("div",{dangerouslySetInnerHTML:{__html:Ri}}))},We=Object.defineProperty,Te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(zt,Kt,Ft)=>Kt in zt?We(zt,Kt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):zt[Kt]=Ft,me=(zt,Kt)=>{for(var Ft in Kt||(Kt={}))ue.call(Kt,Ft)&&ge(zt,Ft,Kt[Ft]);if(te)for(var Ft of te(Kt))se.call(Kt,Ft)&&ge(zt,Ft,Kt[Ft]);return zt},xe=(zt,Kt)=>Te(zt,ne(Kt));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:zt,title:Kt,icon:Ft,actionName:un,className:Ti="",children:Ri}){function hi(){zt(un)}return ve.createElement("a",{title:Kt,className:Ti,onClick:hi},ve.createElement("i",{className:`${Ft}`}),Ri)}var nt=({watch:zt,showNullButton:Kt,showNullProgramButton:Ft,onActionCallback:un,fullScreen:Ti,insertTemp:Ri,hidetoolBar:hi,extraUse:Ut})=>{const zn=[...Pe,{title:`${zt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${zt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ve.createElement("ul",{className:"markdown-toolbar-container"},!hi&&zn.map((xn,Fr)=>ve.createElement("li",{key:Fr},xn.actionName?ve.createElement(Ke,xe(me({},xn),{onActionCallback:un})):ve.createElement("span",{className:"v-line"}))),Kt?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"))),Ut&&ve.createElement("li",null,Ut),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),qe=be(91773),at=be(28802),jt=be(85804),Mt=Object.defineProperty,bt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,sn=(zt,Kt,Ft)=>Kt in zt?Mt(zt,Kt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):zt[Kt]=Ft,Nn=(zt,Kt)=>{for(var Ft in Kt||(Kt={}))Jn.call(Kt,Ft)&&sn(zt,Ft,Kt[Ft]);if(Ht)for(var Ft of Ht(Kt))qn.call(Kt,Ft)&&sn(zt,Ft,Kt[Ft]);return zt},lt=(zt,Kt)=>bt(zt,Bt(Kt));const Ge={labelCol:{span:4},wrapperCol:{span:20}};var Ne=({callback:zt,onCancel:Kt})=>{function Ft(un){zt(un)}return ve.createElement(qe.default,lt(Nn({},Ge),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ft,style:{width:500}}),ve.createElement(qe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ve.createElement(at.default,null)),ve.createElement(qe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ve.createElement(at.default,null)),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(jt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(jt.ZP,{type:"ghost",onClick:Kt},"\u53D6\u6D88")))},Rn=be(57444),ai=be(70859),Zt=be(62844),ci=be(71230),On=be(63205),Mi=be(67294),Xt=({callback:zt,onCancel:Kt})=>{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 Mi.createElement(Zt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Mi.createElement(ci.Z,{style:{height:"100vh"}},Mi.createElement(On.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ti,visible:!0,title:String(Date.now())},onOk:Ri=>{zt({src:Ri.url})},onClose:Kt})))},At=be(23495);function on(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(on,go.CommandHandler),on.prototype.canAlignSelection=function(){var zt=this.diagram;return!(zt===null||zt.isReadOnly||zt.isModelReadOnly||zt.selection.count<2)},on.prototype.alignLeft=function(){var zt=this.diagram;zt.startTransaction("aligning left");var Kt=1/0;zt.selection.each(function(Ft){Ft instanceof go.Link||(Kt=Math.min(Ft.position.x,Kt))}),zt.selection.each(function(Ft){Ft instanceof go.Link||Ft.move(new go.Point(Kt,Ft.position.y))}),zt.commitTransaction("aligning left")},on.prototype.alignRight=function(){var zt=this.diagram;zt.startTransaction("aligning right");var Kt=-1/0;zt.selection.each(function(Ft){if(!(Ft instanceof go.Link)){var un=Ft.actualBounds.x+Ft.actualBounds.width;Kt=Math.max(un,Kt)}}),zt.selection.each(function(Ft){Ft instanceof go.Link||Ft.move(new go.Point(Kt-Ft.actualBounds.width,Ft.position.y))}),zt.commitTransaction("aligning right")},on.prototype.alignTop=function(){var zt=this.diagram;zt.startTransaction("alignTop");var Kt=1/0;zt.selection.each(function(Ft){Ft instanceof go.Link||(Kt=Math.min(Ft.position.y,Kt))}),zt.selection.each(function(Ft){Ft instanceof go.Link||Ft.move(new go.Point(Ft.position.x,Kt))}),zt.commitTransaction("alignTop")},on.prototype.alignBottom=function(){var zt=this.diagram;zt.startTransaction("aligning bottom");var Kt=-1/0;zt.selection.each(function(Ft){if(!(Ft instanceof go.Link)){var un=Ft.actualBounds.y+Ft.actualBounds.height;Kt=Math.max(un,Kt)}}),zt.selection.each(function(Ft){Ft instanceof go.Link||Ft.move(new go.Point(Ft.actualBounds.x,Kt-Ft.actualBounds.height))}),zt.commitTransaction("aligning bottom")},on.prototype.alignCenterX=function(){var zt=this.diagram,Kt=zt.selection.first();if(Kt){zt.startTransaction("aligning Center X");var Ft=Kt.actualBounds.x+Kt.actualBounds.width/2;zt.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(Ft-un.actualBounds.width/2,un.actualBounds.y))}),zt.commitTransaction("aligning Center X")}},on.prototype.alignCenterY=function(){var zt=this.diagram,Kt=zt.selection.first();if(Kt){zt.startTransaction("aligning Center Y");var Ft=Kt.actualBounds.y+Kt.actualBounds.height/2;zt.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(un.actualBounds.x,Ft-un.actualBounds.height/2))}),zt.commitTransaction("aligning Center Y")}},on.prototype.alignColumn=function(zt){var Kt=this.diagram;Kt.startTransaction("align Column"),zt===void 0&&(zt=0),zt=parseFloat(zt);var Ft=new Array;Kt.selection.each(function(Ut){Ut instanceof go.Link||Ft.push(Ut)});for(var un=0;un<Ft.length-1;un++){var Ti=Ft[un],Ri=Ti.actualBounds.y+Ti.actualBounds.height+zt,hi=Ft[un+1];hi.move(new go.Point(Ti.actualBounds.x,Ri))}Kt.commitTransaction("align Column")},on.prototype.alignRow=function(zt){zt===void 0&&(zt=0),zt=parseFloat(zt);var Kt=this.diagram;Kt.startTransaction("align Row");var Ft=new Array;Kt.selection.each(function(Ut){Ut instanceof go.Link||Ft.push(Ut)});for(var un=0;un<Ft.length-1;un++){var Ti=Ft[un],Ri=Ti.actualBounds.x+Ti.actualBounds.width+zt,hi=Ft[un+1];hi.move(new go.Point(Ri,Ti.actualBounds.y))}Kt.commitTransaction("align Row")},on.prototype.canRotate=function(zt){var Kt=this.diagram;return!(Kt===null||Kt.isReadOnly||Kt.isModelReadOnly||Kt.selection.count<1)},on.prototype.rotate=function(zt){zt===void 0&&(zt=90);var Kt=this.diagram;Kt.startTransaction("rotate "+zt.toString());var Kt=this.diagram;Kt.selection.each(function(Ft){Ft instanceof go.Link||Ft instanceof go.Group||(Ft.angle+=zt)}),Kt.commitTransaction("rotate "+zt.toString())},on.prototype.pullToFront=function(){var zt=this.diagram;zt.startTransaction("pullToFront");var Kt=new go.Map;zt.selection.each(function(Ft){Kt.set(Ft.layer,0)}),Kt.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)}}),Kt.set(Ft,un)}),zt.selection.each(function(Ft){on._assignZOrder(Ft,Kt.get(Ft.layer)+1)}),zt.commitTransaction("pullToFront")},on.prototype.pushToBack=function(){var zt=this.diagram;zt.startTransaction("pushToBack");var Kt=new go.Map;zt.selection.each(function(Ft){Kt.set(Ft.layer,0)}),Kt.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)}}),Kt.set(Ft,un)}),zt.selection.each(function(Ft){on._assignZOrder(Ft,Kt.get(Ft.layer)-1-on._findGroupDepth(Ft))}),zt.commitTransaction("pushToBack")},on._assignZOrder=function(zt,Kt,Ft){Ft===void 0&&(Ft=zt),zt.layer===Ft.layer&&(zt.zOrder=Kt),zt instanceof go.Group&&zt.memberParts.each(function(un){on._assignZOrder(un,Kt+1,Ft)})},on._findGroupDepth=function(zt){if(zt instanceof go.Group){var Kt=0;return zt.memberParts.each(function(Ft){Kt=Math.max(Kt,on._findGroupDepth(Ft))}),Kt+1}else return 0},on.prototype.doKeyDown=function(){var zt=this.diagram;if(zt!==null){var Kt=zt.lastInput;if(Kt.key==="Up"||Kt.key==="Down"||Kt.key==="Left"||Kt.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)}},on.prototype._getAllParts=function(){var zt=new Array;return this.diagram.nodes.each(function(Kt){zt.push(Kt)}),this.diagram.parts.each(function(Kt){zt.push(Kt)}),zt},on.prototype._arrowKeyMove=function(){var zt=this.diagram,Kt=zt.lastInput,Ft=0,un=0;if(Kt.control||Kt.meta)Ft=1,un=1;else if(zt.grid!==null){var Ti=zt.grid.gridCellSize;un=Ti.width,Ft=Ti.height}zt.startTransaction("arrowKeyMove"),zt.selection.each(function(Ri){Kt.key==="Up"?Ri.move(new go.Point(Ri.actualBounds.x,Ri.actualBounds.y-Ft)):Kt.key==="Down"?Ri.move(new go.Point(Ri.actualBounds.x,Ri.actualBounds.y+Ft)):Kt.key==="Left"?Ri.move(new go.Point(Ri.actualBounds.x-un,Ri.actualBounds.y)):Kt.key==="Right"&&Ri.move(new go.Point(Ri.actualBounds.x+un,Ri.actualBounds.y))}),zt.commitTransaction("arrowKeyMove")},on.prototype._arrowKeySelect=function(){var zt=this.diagram,Kt=zt.lastInput,Ft=null;Kt.key==="Up"?Ft=this._findNearestPartTowards(270):Kt.key==="Down"?Ft=this._findNearestPartTowards(90):Kt.key==="Left"?Ft=this._findNearestPartTowards(180):Kt.key==="Right"&&(Ft=this._findNearestPartTowards(0)),Ft!==null&&(Kt.shift?Ft.isSelected=!0:Kt.control||Kt.meta?Ft.isSelected=!Ft.isSelected:zt.select(Ft))},on.prototype._findNearestPartTowards=function(zt){var Kt=this.diagram.selection.first();if(Kt===null)return null;for(var Ft=Kt.actualBounds.center,un=this._getAllParts(),Ti=1/0,Ri=Kt,hi=0;hi<un.length;hi++){var Ut=un[hi];if(Ut!==Kt&&Ut.canSelect()){var zn=Ut.actualBounds.center,xn=Ft.directionPoint(zn),Fr=this._angleCloseness(xn,zt);if(Fr<=45){var ri=Ft.distanceSquaredPoint(zn);ri*=1+Math.sin(Fr*Math.PI/180),ri<Ti&&(Ti=ri,Ri=Ut)}}}return Ri},on.prototype._angleCloseness=function(zt,Kt){return Math.min(Math.abs(Kt-zt),Math.min(Math.abs(Kt+360-zt),Math.abs(Kt-360-zt)))},on.prototype._arrowKeyTree=function(){var zt=this.diagram,Kt=zt.selection.first();if(Kt instanceof go.Node){var Ft=zt.lastInput;if(Ft.key==="Right"){if(!Kt.isTreeLeaf)if(!Kt.isTreeExpanded)zt.commandHandler.canExpandTree(Kt)&&zt.commandHandler.expandTree(Kt);else{var un=this._sortTreeChildrenByY(Kt).first();un!==null&&zt.select(un)}}else if(Ft.key==="Left")if(!Kt.isTreeLeaf&&Kt.isTreeExpanded)zt.commandHandler.canCollapseTree(Kt)&&zt.commandHandler.collapseTree(Kt);else{var Ti=Kt.findTreeParentNode();Ti!==null&&zt.select(Ti)}else if(Ft.key==="Up"){var Ti=Kt.findTreeParentNode();if(Ti!==null){var Ri=this._sortTreeChildrenByY(Ti),hi=Ri.indexOf(Kt);if(hi>0){for(var Ut=Ri.elt(hi-1);Ut!==null&&Ut.isTreeExpanded&&!Ut.isTreeLeaf;){var zn=this._sortTreeChildrenByY(Ut);Ut=zn.last()}Ut!==null&&zt.select(Ut)}else zt.select(Ti)}}else if(Ft.key==="Down")if(Kt.isTreeExpanded&&!Kt.isTreeLeaf){var un=this._sortTreeChildrenByY(Kt).first();un!==null&&zt.select(un)}else for(;Kt!==null;){var Ti=Kt.findTreeParentNode();if(Ti===null)break;var Ri=this._sortTreeChildrenByY(Ti),hi=Ri.indexOf(Kt);if(hi<Ri.length-1){zt.select(Ri.elt(hi+1));break}else Kt=Ti}var xn=zt.selection.first();xn!==null&&zt.scrollToRect(xn.actualBounds)}},on.prototype._sortTreeChildrenByY=function(zt){var Kt=new go.List().addAll(zt.findTreeChildrenNodes());return Kt.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}),Kt},on.prototype.copyToClipboard=function(zt){go.CommandHandler.prototype.copyToClipboard.call(this,zt),this._lastPasteOffset.set(this.pasteOffset)},on.prototype.pasteFromClipboard=function(){var zt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(zt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),zt},Object.defineProperty(on.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(zt){if(zt!=="move"&&zt!=="select"&&zt!=="scroll"&&zt!=="tree"&&zt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+zt);this._arrowKeyBehavior=zt}}),Object.defineProperty(on.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(zt){if(!(zt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+zt);this._pasteOffset.set(zt)}});var Si=on,Gt=be(18023),Xe=be(15746),ke=be(33170),Me={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},He=be(52262),et=be(67294),Oe=(zt,Kt,Ft)=>new Promise((un,Ti)=>{var Ri=zn=>{try{Ut(Ft.next(zn))}catch(xn){Ti(xn)}},hi=zn=>{try{Ut(Ft.throw(zn))}catch(xn){Ti(xn)}},Ut=zn=>zn.done?un(zn.value):Promise.resolve(zn.value).then(Ri,hi);Ut((Ft=Ft.apply(zt,Kt)).next())});function ut({onCancel:zt,callback:Kt}){let Ft=(0,ve.useRef)(),un=(0,ve.useRef)(),Ti=(0,ve.useRef)(),Ri=(0,ve.useRef)(!1);const hi=(0,ve.useRef)(!1),[Ut,zn]=(0,ve.useState)(0);function xn(){const ri=At.bx.make,$t={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 At.S0(un.current,{padding:20,grid:ri(At.s_,"Grid",ri(At.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ri(At.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:ri(Si),"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=ri(At.NB,"Auto",{locationSpot:At.z6.Center,locationObjectName:"SHAPE",desiredSize:new At.$u(120,60),minSize:new At.$u(40,40),resizable:!0,resizeCellSize:new At.$u(10,10),rotatable:!0},new At.KX("location","loc",At.E9.parse).makeTwoWay(At.E9.stringify),new At.KX("desiredSize","size",At.$u.parse).makeTwoWay(At.$u.stringify),ri(At.bn,{name:"SHAPE",fill:$t.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:At.z6.AllSides,toSpot:At.z6.AllSides},new At.KX("figure"),new At.KX("fill"),new At.KX("stroke","borderColor"),new At.KX("strokeWidth","thickness"),new At.KX("strokeDashArray","dash")),ri(At.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ri(At.al,{margin:1,textAlign:"center",overflow:At.al.OverflowEllipsis,editable:!0},new At.KX("text").makeTwoWay(),new At.KX("stroke","color"))),Ft.current.nodeTemplate.toolTip=ri("ToolTip",ri(At.s_,"Vertical",{maxSize:new At.$u(200,NaN)},ri(At.al,{font:"bold 10pt sans-serif",textAlign:"center"},new At.KX("text")),ri(At.al,{font:"10pt sans-serif",textAlign:"center"},new At.KX("text","details"))));function _i(ln,Yo){var Va=(Ao,ms)=>{Ao.handled=!0,Ao.diagram.model.commit(Ba=>{var $a=ms.part.adornedPart,Er=new At.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 Wn=Ao.diagram.findNodeForData(uo);Wn.location=Er,Ao.diagram.select(Wn),setTimeout(()=>{Ao.diagram.commandHandler.editTextBlock()},20)})};return ri(At.bn,{figure:Yo,alignment:ln,alignmentFocus:ln.opposite(),width:ln.equals(At.z6.Top)||ln.equals(At.z6.Bottom)?25:18,height:ln.equals(At.z6.Top)||ln.equals(At.z6.Bottom)?18:25,fill:"orange",stroke:$t.white,strokeWidth:4,mouseEnter:(Ao,ms)=>ms.fill="dodgerblue",mouseLeave:(Ao,ms)=>ms.fill="orange",isActionable:!0,click:Va,contextClick:Va})}function Wr(ln){return ri(At.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=ri(At.uz,"Spot",ri(At.Vm,{padding:10}),_i(At.z6.Top,"TriangleUp"),_i(At.z6.Left,"TriangleLeft"),_i(At.z6.Right,"TriangleRight"),_i(At.z6.Bottom,"TriangleDown"),Wr({alignment:new At.z6(.75,0)}));function Br(ln,Yo){return(Va,Ao)=>{Va.handled=!0,Va.diagram.model.commit(ms=>{ms.set(Ao.part.adornedPart.data,ln,Yo)})}}function Sn(ln,Yo){return Yo||(Yo="color"),ri(At.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:Br(Yo,ln),contextClick:Br(Yo,ln)})}function or(){return[ri("ContextMenuButton",ri(At.s_,"Horizontal",Sn($t.white,"fill"),Sn($t.beige,"fill"),Sn($t.extralightblue,"fill"),Sn($t.extralightred,"fill"))),ri("ContextMenuButton",ri(At.s_,"Horizontal",Sn($t.lightgray,"fill"),Sn($t.lightgreen,"fill"),Sn($t.lightblue,"fill"),Sn($t.lightred,"fill")))]}function Xo(){return[ri("ContextMenuButton",ri(At.s_,"Horizontal",Sn($t.black),Sn($t.green),Sn($t.blue),Sn($t.red))),ri("ContextMenuButton",ri(At.s_,"Horizontal",Sn($t.white),Sn($t.magenta),Sn($t.purple),Sn($t.orange)))]}function Na(ln,Yo){return Yo||(Yo="thickness"),ri(At.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:Br(Yo,ln),contextClick:Br(Yo,ln)})}function aa(ln,Yo){return Yo||(Yo="dash"),ri(At.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:Br(Yo,ln),contextClick:Br(Yo,ln)})}function ur(){return[ri("ContextMenuButton",ri(At.s_,"Horizontal",Na(1),Na(2),Na(3),Na(4))),ri("ContextMenuButton",ri(At.s_,"Horizontal",aa(null),aa([2,4]),aa([4,4])))]}function Nr(ln,Yo){return Yo||(Yo="figure"),ri(At.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:Br(Yo,ln),contextClick:Br(Yo,ln)})}Ft.current.nodeTemplate.contextMenu=ri("ContextMenu",ri("ContextMenuButton",ri(At.s_,"Horizontal",Nr("Rectangle"),Nr("RoundedRectangle"),Nr("Ellipse"),Nr("Diamond"))),ri("ContextMenuButton",ri(At.s_,"Horizontal",Nr("Parallelogram2"),Nr("ManualOperation"),Nr("Procedure"),Nr("Cylinder1"))),ri("ContextMenuButton",ri(At.s_,"Horizontal",Nr("Terminator"),Nr("CreateRequest"),Nr("Document"),Nr("TriangleDown"))),or(),Xo(),ur()),Ft.current.groupTemplate=ri(At.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:At.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 At.KX("location","loc",At.E9.parse).makeTwoWay(At.E9.stringify),ri(At.s_,"Auto",{name:"BODY"},ri(At.bn,{parameter1:10,fill:$t.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:At.z6.AllSides,toSpot:At.z6.AllSides},new At.KX("fill"),new At.KX("stroke","color"),new At.KX("strokeWidth","thickness"),new At.KX("strokeDashArray","dash")),ri(At.Vm,{background:"transparent",margin:20})),ri(At.al,{alignment:At.z6.Top,alignmentFocus:At.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new At.KX("text"),new At.KX("stroke","color"))),Ft.current.groupTemplate.selectionAdornmentTemplate=ri(At.uz,"Spot",ri(At.s_,"Auto",ri(At.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ri(At.Vm,{margin:1.5})),Wr({alignment:At.z6.TopRight,alignmentFocus:At.z6.BottomRight})),Ft.current.groupTemplate.contextMenu=ri("ContextMenu",or(),Xo(),ur()),Ft.current.linkTemplate=ri(At.rU,{layerName:"Foreground",routing:At.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new At.KX("fromSpot","fromSpot",At.z6.parse),new At.KX("toSpot","toSpot",At.z6.parse),new At.KX("fromShortLength","dir",ln=>ln>=1?10:0),new At.KX("toShortLength","dir",ln=>ln>=1?10:0),new At.KX("points").makeTwoWay(),ri(At.bn,{strokeWidth:2},new At.KX("stroke","color"),new At.KX("strokeWidth","thickness"),new At.KX("strokeDashArray","dash")),ri(At.bn,{segmentIndex:0,segmentOffset:new At.E9(15,0),segmentOrientation:At.rU.OrientAlong,alignmentFocus:At.z6.Right,figure:"circle",width:10,strokeWidth:0},new At.KX("fill","color"),new At.KX("visible","dir",ln=>ln===1)),ri(At.bn,{segmentIndex:-1,segmentOffset:new At.E9(-10,6),segmentOrientation:At.rU.OrientPlus90,alignmentFocus:At.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new At.KX("fill","color"),new At.KX("visible","dir",ln=>ln>=1),new At.KX("width","thickness",ln=>7+3*ln),new At.KX("height","thickness",ln=>7+3*ln),new At.KX("segmentOffset","thickness",ln=>new At.E9(-15,4+1.5*ln))),ri(At.bn,{segmentIndex:0,segmentOffset:new At.E9(15,-6),segmentOrientation:At.rU.OrientMinus90,alignmentFocus:At.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new At.KX("fill","color"),new At.KX("visible","dir",ln=>ln===2),new At.KX("width","thickness",ln=>7+3*ln),new At.KX("height","thickness",ln=>7+3*ln),new At.KX("segmentOffset","thickness",ln=>new At.E9(-15,4+1.5*ln))),ri(At.al,{alignmentFocus:new At.z6(0,1,-4,0),editable:!0},new At.KX("text").makeTwoWay(),new At.KX("stroke","color"))),Ft.current.linkTemplate.selectionAdornmentTemplate=ri(At.uz,ri(At.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:io(2)},new At.KX("pathPattern","thickness",io)),Wr({alignmentFocus:new At.z6(0,0,-6,-4)}));function io(ln){return ri(At.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"),ri(At.bn,{geometryString:Yo,margin:2,background:"transparent",mouseEnter:(Va,Ao)=>Ao.background="dodgerblue",mouseLeave:(Va,Ao)=>Ao.background="transparent",click:Br("dir",ln),contextClick:Br("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",At.z6.stringify(At.z6.AllSides)),(ln?Ba.toNode:Ba.fromNode).invalidateConnectedLinks()})};return ri(At.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Va,Ao)=>Ao.background="dodgerblue",mouseLeave:(Va,Ao)=>Ao.background="transparent",click:Yo,contextClick:Yo})}function pi(ln,Yo){var Va=0,Ao=At.z6.RightSide;ln.equals(At.z6.Top)?(Va=270,Ao=At.z6.TopSide):ln.equals(At.z6.Left)?(Va=180,Ao=At.z6.LeftSide):ln.equals(At.z6.Bottom)&&(Va=90,Ao=At.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",At.z6.stringify(Ao)),(Yo?uo.toNode:uo.fromNode).invalidateConnectedLinks()})};return ri(At.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=ri("ContextMenu",Xo(),ur(),ri("ContextMenuButton",ri(At.s_,"Horizontal",va(0),va(1),va(2))),ri("ContextMenuButton",ri(At.s_,"Horizontal",ri(At.s_,"Spot",Ho(!1),pi(At.z6.Top,!1),pi(At.z6.Left,!1),pi(At.z6.Right,!1),pi(At.z6.Bottom,!1)),ri(At.s_,"Spot",{margin:new At.Zt(0,0,0,2)},Ho(!0),pi(At.z6.Top,!0),pi(At.z6.Left,!0),pi(At.z6.Right,!0),pi(At.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 At.YI(Ti.current,{maxSelectionCount:1,linkTemplate:ri(At.rU,{locationSpot:At.z6.Center,selectionAdornmentTemplate:ri(At.uz,"Link",{locationSpot:At.z6.Center},ri(At.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ri(At.bn,{toArrow:"Standard",stroke:null}))},{routing:At.rU.AvoidsNodes,curve:At.rU.JumpOver,corner:5,toShortLength:4},new At.KX("points"),ri(At.bn,{isPanelMain:!0,strokeWidth:2}),ri(At.bn,{toArrow:"Standard",stroke:null})),model:new At.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...At.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=ri(At.NB,"Auto",{locationSpot:At.z6.Center},new At.KX("location","location",At.E9.parse).makeTwoWay(At.E9.stringify),ri(At.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 At.KX("stroke").makeTwoWay(),new At.KX("fill").makeTwoWay(),new At.KX("figure")),ri(At.al,{margin:new At.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new At.$u(16,16),maxSize:new At.$u(10,NaN),textAlign:"center",editable:!0},new At.KX("key").makeTwoWay())),setTimeout(()=>{Ft.current.grid=ri(At.s_,"Grid",ri(At.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ri(At.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=()=>Oe(this,null,function*(){var ri,$t=Ft.current.makeImage();const _i=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:$t.src,file_data:JSON.stringify({login:(ri=(0,He.eY)())==null?void 0:ri.login,data:JSON.parse(Ft.current.model.toJson())})}});Kt({src:_i.url})});return(0,ve.useEffect)(()=>(setTimeout(()=>{xn()},500),zn(Ut+1),()=>{Ft.current=null}),[]),et.createElement("div",{ref:hi,className:"body-overflow-initial"},et.createElement(Zt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ut,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:et.createElement(ci.Z,null,et.createElement(Xe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),et.createElement(Xe.Z,{onClick:()=>{var ri,$t,_i=Ft.current.selection.first();if(Ri.current=!Ri.current,document.activeElement&&_i){let Wr=($t=(ri=document.activeElement)==null?void 0:ri.value)==null?void 0:$t.trim();typeof Wr=="string"&&Ft.current.model.commit(function(Br){Br.set(_i.data,"text",Wr||"\u672A\u547D\u540D"),Ft.current.commandHandler.stopCommand()},"increment")}zn(Ut+1)}},et.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:zt},et.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Ri.current?"none":"block"},className:Me.flowChartWrp},et.createElement("div",{style:{display:"flex",height:"100%"}},et.createElement("div",{style:{width:"300px",height:"100%"}},et.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),et.createElement("div",{style:{height:"calc(100% - 50px)"},className:Me.myPaletteDiv,ref:Ti})),et.createElement("div",{style:{flex:1,position:"relative"}},et.createElement("div",{ref:un,style:{height:"80vh"}}))),et.createElement("div",{className:"tr"},et.createElement(jt.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,jn=be(98813),An=be(37720);const Pn=jn.ZP.Group,si={margin:"0 8px"};var mn=({callback:zt,onCancel:Kt})=>{function Ft(un){zt(un)}return ve.createElement(qe.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:si},"\u5355\u5143\u683C\u6570\uFF1A"),ve.createElement("span",{style:si},"\u884C\u6570"),ve.createElement(qe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ve.createElement(An.Z,null)),ve.createElement("span",{style:si},"\u5217\u6570"),ve.createElement(qe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ve.createElement(An.Z,null))),ve.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ve.createElement("span",{style:si},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ve.createElement(qe.default.Item,{name:"align"},ve.createElement(Pn,null,ve.createElement(jn.ZP,{value:"default"},ve.createElement("i",{className:"fa fa-align-justify"})),ve.createElement(jn.ZP,{value:"left"},ve.createElement("i",{className:"fa fa-align-left"})),ve.createElement(jn.ZP,{value:"center"},ve.createElement("i",{className:"fa fa-align-center"})),ve.createElement(jn.ZP,{value:"right"},ve.createElement("i",{className:"fa fa-align-right"}))))),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(jt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(jt.ZP,{type:"ghost",onClick:Kt},"\u53D6\u6D88")))},Fi=be(59637),Vi=be(61016),Ir=be.n(Vi),Di=(0,ve.forwardRef)(({use3d:zt,width:Kt,height:Ft,callback:un,showSaveButton:Ti},Ri)=>{const hi=(0,ve.useRef)(),Ut=(0,ve.useRef)(),[zn,xn]=(0,ve.useState)(!1),Fr=(0,ve.useRef)({id:hi,appName:"graphing",width:Kt||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)(()=>{Ut.current=new(Ir())(Fr.current,!0),window.onload=function(){Ut.current.inject("applet_container")}},[]);const ri=()=>{var $t=window.ggbApplet.getPNGBase64(1,!0,72);return un&&un($t),$t};return(0,ve.useEffect)(()=>{Fr.current.appName=zn?"3D":"graphing",Ut.current.inject("applet_container")},[zn]),(0,ve.useEffect)(()=>{xn(zt)},[zt]),(0,ve.useImperativeHandle)(Ri,()=>({getImgData:ri})),ve.createElement(ve.Fragment,null,ve.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:hi}),ve.createElement(ci.Z,{align:"middle"},ve.createElement(Xe.Z,{flex:1},ve.createElement(Fi.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:zn,onChange:$t=>xn($t)})),ve.createElement(Xe.Z,null,ve.createElement(jt.ZP,{size:"large",onClick:ri,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),$r=be(36527),Yi=be(2453);const hr="link",dr="upload-image",kn="add-flowchart",Ii="draw-image",ra="add-flowchart",Un="code-block",Kr="add-table",ia="------------",sa={default:ia,left:`:${ia}`,center:`:${ia}:`,right:`${ia}:`};var Wa=be(99914);function ma(){}let Ha=0;const da=1e4,la="\u2581",No="@\u2581\u2581@",ti="@\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(zt){return/^\d+$/.test(zt)?`${zt}px`:zt}const Yn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",In={[Yn+"-B"]:"bold",[Yn+"-I"]:"italic"},en={[hr]:"\u6DFB\u52A0\u94FE\u63A5",[Un]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[dr]:"\u6DFB\u52A0\u56FE\u7247",[Ii]:"\u6DFB\u52A0\u753B\u56FE",[kn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ni=({defaultValue:zt="",onChange:Kt,width:Ft="100%",height:un=400,miniToolbar:Ti=!1,isFocus:Ri=!1,watch:hi,insertTemp:Ut,mode:zn="markdown",id:xn="markdown-editor-id",showResizeBar:Fr=!1,noStorage:ri=!1,showNullButton:$t=!1,showNullProgramButton:_i=!1,hidetoolBar:Wr=!1,fullScreen:Br=!1,onBlur:Sn,onCMBeforeChange:or,onFullScreen:Xo,className:Na="",disablePaste:aa=!1,disabled:ur=!1,disabledFill:Nr=!1,placeholder:io="",values:va="",extraUse:Ho})=>{const[pi,lo]=(0,ve.useState)(null),[al,el]=(0,ve.useState)(zt),[Ns,ln]=(0,ve.useState)(hi),[Yo,Va]=(0,ve.useState)(Br),[Ao,ms]=(0,ve.useState)(""),[Ba,$a]=(0,ve.useState)(0),[Er,uo]=(0,ve.useState)(un),[So,Wn]=(0,ve.useState)(!1),[ka,Cn]=(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 Zi=window.scrollY||window.pageYOffset;el(va),pi==null||pi.setValue(va),window.scrollTo(0,Zi)},[va]),(0,ve.useEffect)(()=>{Xo==null||Xo(Yo)},[Yo]),(0,ve.useEffect)(()=>{if(ds.current){let Zi=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(),zn=="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,ai.I)(ns,Ds=>{var fl,Hs,cn;Ds.id?((fl=ns==null?void 0:ns.type)==null?void 0:fl.indexOf("image"))>-1?vi.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?vi.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?vi.replaceSelection(`<a href="/api/attachments/${Ds.id}?type=${ns.type}&disposition=inline" target="_blank">${ns.name}</a>`):pn.includes(Us)?vi.replaceSelection(`<a href="/api/attachments/${Ds.id}?type=office&disposition=inline" target="_blank">${ns.name}</a>`):vi.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){Yi.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const vi=wt().fromTextArea(ds.current,{mode:zn,lineNumbers:!Ti,lineWrapping:!0,value:zt,autoCloseTags:!0,autoCloseBrackets:!0});return vi.on("keyup",function(pr,fn){fn.keyCode===8&&(pr.getValue()==""?vi.setOption("placeholder",io):vi.setOption("placeholder",null))}),vi.on("keydown",function(pr,fn){if(fn.keyCode===8){var eo=tl(pr);eo&&fn.preventDefault()}}),Ri&&vi.focus(),vi.on("paste",Zi),ur&&vi.on("beforeChange",function(pr,fn){(fn.origin==="paste"||fn.origin==="+input")&&fn.cancel()}),lo(vi),()=>{vi.off("paste",Zi)}}},[]);const us=(0,ve.useCallback)(()=>{if(kl.current)try{}catch(Zi){console.log(Zi,"---- to set md editor body height")}},[Er,kl,Yo]);(0,ve.useEffect)(()=>{function Zi(){let vi=new Qt.Z(pr=>{for(let fn of pr)(fn.target.offsetHeight>0||fn.target.offsetWidth>0)&&(us(),pi.setSize("100%","100%"),pi.refresh())});return vi.observe(ds.current.parentElement),vi}if(pi){const vi=Zi();return()=>{var pr,fn;(pr=ds.current)!=null&&pr.parentElement&&vi.unobserve((fn=ds.current)==null?void 0:fn.parentElement)}}},[pi,us]),(0,ve.useEffect)(()=>{if(pi){let Zi=[];for(const[vi,pr]of Object.entries(In)){let fn={[vi]:()=>{ts(pr)}};Zi.push(fn),pi.addKeyMap(fn)}return()=>{for(let vi of Zi)pi.removeKeyMap(vi)}}},[pi]),(0,ve.useEffect)(()=>{Br!==Yo&&Va(Br)},[Br]),(0,Wa.Z)(()=>{if(!ri&&Ba>0){let Zi=new Date().getTime(),vi=window.sessionStorage.getItem(xn);Zi>=Ba+da&&(!vi||vi!==al)&&(window.sessionStorage.setItem(xn,al),Wn(!0))}},da),(0,ve.useEffect)(()=>{ln(hi)},[pi,hi]),(0,ve.useEffect)(()=>{pi&&Ri&&pi.focus()},[pi,Ri]),(0,ve.useEffect)(()=>{if(Ns&&pi){let Zi=function(pr){let fn=pr.target;if(Ua.current){let eo=fn.scrollTop/fn.scrollHeight;Ua.current.scrollTop=Ua.current.scrollHeight*eo}};const vi=pi.getScrollerElement();return vi.addEventListener("scroll",Zi),()=>{vi.removeEventListener("scroll",Zi)}}},[pi,Ns]),(0,ve.useEffect)(()=>{if(pi&&or){let Zi=function(vi,pr){or(vi,pr)};return pi.on("beforeChange",Zi),()=>{pi.off("beforeChange",Zi)}}},[pi,or]),(0,ve.useEffect)(()=>{if(pi&&Sn){let Zi=function(){Sn(pi.getValue())};return pi.on("blur",Zi),()=>{pi.off("blur",Zi)}}},[pi,Sn]);function tl(Zi,vi){var pr=Zi.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:",vi,Zi,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(pi){let Zi=function(vi,pr){const fn=vi.getValue();el(fn),$a(new Date().getTime()),vi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Kt&&(_i?Kt(fn,Yt(fn)):Kt(fn))};return pi.on("change",Zi),()=>{pi.off("change",Zi)}}},[pi,Kt]),(0,ve.useEffect)(()=>{if(pi)if(zt==null)pi.setValue(""),el("");else{const Zi=window.scrollY||window.pageYOffset;zt!==pi.getValue()&&(pi.setValue(zt),el(zt),pi.setCursor(ur?1:pi.lineCount(),0),window.scrollTo(0,Zi))}},[pi,zt]);const ts=(0,ve.useCallback)(Zi=>{const vi=pi.getCursor(),pr=pi.getSelection();let fn=pr.split(`
|
|
`);switch(Zi){case"bold":return pi.replaceSelection("**"+pr+"**"),pr===""&&pi.setCursor(vi.line,vi.ch+2),pi.focus();case"italic":return pi.replaceSelection("*"+pr+"*"),pr===""&&pi.setCursor(vi.line,vi.ch+1),pi.focus();case"code":return pi.replaceSelection("`"+pr+"`"),pr===""&&pi.setCursor(vi.line,vi.ch+1),pi.focus();case"inline-latex":return ms("inline-latex"),pi.focus();case"latex":return pi.replaceSelection("```latex\n"+pr+"\n```"),pi.setCursor(vi.line+1,pr.length+1),pi.focus();case"line-break":return pi.replaceSelection(`<br/>
|
|
`),pi.focus();case"list-ul":return pr===""?pi.replaceSelection("- "+pr):pi.replaceSelection(fn.map(eo=>eo===""?"":`- ${eo}`).join(`
|
|
`)),pi.focus();case"list-ol":return pr===""?pi.replaceSelection("1. "+pr):pi.replaceSelection(fn.map((eo,so)=>eo===""?"":`${so+1}. ${eo}`).join(`
|
|
`)),pi.focus();case"add-null-ch":return pr===""&&pi.setCursor(vi.line,vi.ch),pi.replaceSelection(la),pi.focus();case"add-signal":return pr===""&&pi.setCursor(vi.line,vi.ch),pi.replaceSelection(ti),pi.focus();case"add-multiple":return pr===""&&pi.setCursor(vi.line,vi.ch),pi.replaceSelection(No),pi.focus();case"inster-template-1":return pr===""&&pi.setCursor(vi.line,vi.ch),pi.replaceSelection(Ee),pi.focus();case"eraser":return pi.setValue(""),pi.focus();case"trigger-watch":return ln(!Ns),pi.focus();case"trigger-full-screen":return Va(!Yo),pi.focus();case hr:ms(hr);return;case Un:ms(Un);return;case dr:ms(dr);return;case Ii:ms(Ii);return;case"maths-latex":ms("maths-latex");return;case kn:ms(kn);return;case Kr:ms(Kr);return;default:throw new Error}},[pi,Ns,Yo]),wr=(0,ve.useCallback)((Zi,vi)=>{var pr,fn,eo,so,ya,fa;switch(ms(""),Ao){case hr:const{title:fl,link:Hs}=Zi;return pi.replaceSelection(`[${fl}](${Hs})`),pi.focus();case Un:const{language:cn,content:nl}=Zi;return pi.replaceSelection(["```"+cn,nl,"```"].join(`
|
|
`)),pi.focus();case"maths-latex":for(var Ia=atob(Zi),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,ai.I)(Ds,Ra=>{Ra.id?pi.replaceSelection(``):(Ra==null?void 0:Ra.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pi.replaceSelection("`$$"+Zi+"$$`");break;case dr:case Ii:case ra:const{src:dl,alt:gl}=Zi,Ys=vi,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?pi.replaceSelection(`<p style="text-align:${Ys.align||"initial"}"><img width="${Ys.width?Ys.width+"%":"initial"}" src="${dl}" alt="${gl||""}" /></p>`):pi.replaceSelection(`<img width="100%" src="${dl}" alt="${gl||""}" />`):((ya=Ys==null?void 0:Ys.type)==null?void 0:ya.indexOf("video"))>-1?pi.replaceSelection(`<video width="100%" controls src="${dl}"></video>`):((fa=Ys==null?void 0:Ys.type)==null?void 0:fa.indexOf("pdf"))>-1?pi.replaceSelection(`<a href="${dl}?type=${Ys.type}&disposition=inline" target="_blank">${Ys.name}</a>`):pn.includes(Ul)?pi.replaceSelection(`<a href="${dl}?type=office&disposition=inline" target="_blank">${Ys.name}</a>`):pi.replaceSelection(`[${Ys.name}](${dl})`),pi.focus();case Kr:const{row:hu,col:fc,align:_s}=Zi;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 pi.replaceSelection(il+`
|
|
`),pi.focus();default:throw new Error}},[pi,Ao]),st=(0,ve.useMemo)(()=>{switch(Ao){case hr:return ve.createElement(Ne,{callback:wr,onCancel:St});case Un:return ve.createElement(Rn.Z,{callback:wr,onCancel:St});case dr:return ve.createElement(ai.Z,{callback:wr,onCancel:St});case kn:return ve.createElement(Vn,{callback:wr,onCancel:St});case Kr:return ve.createElement(mn,{callback:wr,onCancel:St});case"maths-latex":return ve.createElement(Di,{showSaveButton:!0,callback:wr});case"inline-latex":return ve.createElement($r.Z,{showSaveButton:!0,callback:wr});default:return null}},[Ao]);function St(){ms("")}(0,ve.useEffect)(()=>{if(Ss.current){let Zi=function(ya){eo=!0,so=ya.pageY},vi=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",Zi),document.addEventListener("mousemove",pr),document.addEventListener("mouseup",vi),()=>{fn.removeEventListener("mousedown",Zi),document.removeEventListener("mousemove",pr),document.removeEventListener("mouseup",vi)}}},[pi,Ss]),(0,ve.useEffect)(()=>{uo(un)},[un]);const Rt=hn(Ft),gn=hn(Er),Hn={width:Rt,height:gn},Oi=(0,ve.useMemo)(()=>{if(Ba){let Zi=new Date(Ba),vi=Zi.getHours(),pr=Zi.getMinutes(),fn=Zi.getSeconds();return vi=vi<10?"0"+vi:vi,pr=pr<10?"0"+pr:pr,fn=fn<10?"0"+fn:fn,`${vi}:${pr}:${fn}`}return 0},[Ba]),Yt=Zi=>{const vi=[];if(_i){let pr=-1;Zi=Zi.replace(/(@▁▁@|@▁@)/g,function(fn,eo,so){vi.push({multiLine:fn!==ti})})}return vi};function Zn(){window.sessionStorage.removeItem(xn),Wn(!1),$a(0)}function Ji(){Wn(!1),$a(0),pi.setValue(window.sessionStorage.getItem(xn))}(0,ve.useEffect)(()=>{en[Ao]&&Ao!==Ii&&Ao!==kn&&setTimeout(()=>{const Zi=document.getElementsByClassName("markdown-popup-form")[0],vi=window.innerWidth/2-Zi.offsetWidth/2,pr=window.innerHeight/2-Zi.offsetHeight/2;Cn(vi),Ws(pr)},0)},[Ao]);const xi=Zi=>{Zi.preventDefault();const vi=Zi.clientX-ka,pr=Zi.clientY-Po;document.body.onmousemove=fn=>{let eo=fn.clientX-vi,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,vi,pr)&&(Cn(eo),Ws(so))},document.body.onmouseup=function(){document.body.onmousemove=null}},nr=(Zi,vi,pr,fn)=>{const eo=document.body.clientHeight,so=document.body.clientWidth;return Zi<20&&pr>Zi||Zi>so-20&&pr<Zi||vi<20&&fn>vi||vi>eo-20&&fn<vi?(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:Hn},ve.createElement(nt,{insertTemp:Ut,watch:Ns,fullScreen:Yo,showNullButton:$t,showNullProgramButton:_i,onActionCallback:ts,hidetoolBar:Wr,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"},zn==="stex"&&ve.createElement(ct,{value:al}),zn!=="stex"&&ve.createElement(Vt.Z,{disabledFill:Nr,showProgramFill:_i,value:al})):null))),Fr?ve.createElement("a",{ref:Ss,className:"editor-resize"}):null,Ao===Ii&&ve.createElement(Xt,{callback:wr,onCancel:St}),Ao===kn&&ve.createElement(Vn,{callback:wr,onCancel:St}),ve.createElement(ft.Z,null,en[Ao]&&Ao!==Ii&&Ao!==kn?ve.createElement(Zt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ka,top:Po},title:ve.createElement("div",{style:{cursor:"move"},onMouseDown:xi},en[Ao]),open:!0,onCancel:St,footer:null,destroyOnClose:!0,width:Ao===kn?"1200px":null,height:Ao===kn?"80vh":null,className:"markdown-popup-form"},st):null))}},70859:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return Ke},I:function(){return ft}});var ve=be(91773),ot=be(2453),wt=be(28802),Qt=be(78957),Nt=be(37720),Re=be(98813),Je=be(85804),pt=be(15476),mt=be(67294),yt=be(67294),Vt=Object.defineProperty,ct=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(qe,at,jt)=>at in qe?Vt(qe,at,{enumerable:!0,configurable:!0,writable:!0,value:jt}):qe[at]=jt,se=(qe,at)=>{for(var jt in at||(at={}))ne.call(at,jt)&&ue(qe,jt,at[jt]);if(Te)for(var jt of Te(at))te.call(at,jt)&&ue(qe,jt,at[jt]);return qe},ge=(qe,at)=>ct(qe,We(at));const{useForm:me}=ve.default,xe={width:280,marginRight:10},Pe={labelCol:{span:5},wrapperCol:{span:19}};var Ke=({callback:qe,onCancel:at})=>{const[jt]=me();let Mt=(0,mt.useRef)();function bt(Jn){Mt.current.width=jt.getFieldValue("width"),Mt.current.align=jt.getFieldValue("align"),qe(Jn,Mt.current)}function Bt(Jn,qn){if(Jn.status===-1){ot.ZP.error(Jn.message);return}jt.setFieldsValue({src:`/api/attachments/${Jn.id}`,type:qn.type})}function Ht(Jn){let qn=Jn.target.files[0];Mt.current=qn,ft(qn,Bt)}return yt.createElement(ve.default,ge(se({form:jt},Pe),{className:"upload-image-panel",onFinish:bt,style:{width:470,overflow:"hidden"}}),yt.createElement(ve.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},yt.createElement("div",{className:"flex-container"},yt.createElement(ve.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},yt.createElement(wt.default,{style:xe})),yt.createElement(nt,{onFileChange:Ht}))),yt.createElement(ve.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},yt.createElement(wt.default,{style:{width:264}})),yt.createElement(ve.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},yt.createElement(Qt.Z,null,yt.createElement(ve.default.Item,{name:"width",style:{margin:0}},yt.createElement(Nt.Z,{style:{width:264}})),yt.createElement("span",{className:"ml8"},"%"))),yt.createElement(ve.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},yt.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"}]})),yt.createElement("aside",null,yt.createElement(ve.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},yt.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),yt.createElement(Je.ZP,{type:"default",onClick:at},"\u53D6\u6D88"))))};function nt({onFileChange:qe}){return yt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",yt.createElement("input",{type:"file",onChange:qe}))}function ft(qe,at){if(!qe)throw new String("\u6CA1\u6709\u6587\u4EF6");let jt=new FormData;jt.append("editormd-image-file",qe),jt.append("file_param_name","editormd-image-file"),jt.append("byxhr","true");var Mt=new window.XMLHttpRequest;Mt.withCredentials=!0,Mt.addEventListener("load",function(bt){at(JSON.parse(bt.target.responseText),qe)},!1),Mt.addEventListener("error",function(bt){console.error(bt)},!1),Mt.open("POST",`${pt.KI}/api/attachments.json`),Mt.send(jt)}},76621:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return wt}});var ve=be(67294),ot=be(73935);class wt extends ve.Component{constructor(Nt){super(Nt);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:Nt}=this.props;return(0,ot.createPortal)(Nt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36295:function(Dn,ei,be){"use strict";be.d(ei,{SV:function(){return At},ZP:function(){return Xt}});var ve=be(67294),ot=be(91033);const wt={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"]},Qt={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"]},Nt={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),mt=be.n(pt),yt=(on,Si,Gt)=>new Promise((Xe,ke)=>{var Me=Oe=>{try{et(Gt.next(Oe))}catch(ut){ke(ut)}},He=Oe=>{try{et(Gt.throw(Oe))}catch(ut){ke(ut)}},et=Oe=>Oe.done?Xe(Oe.value):Promise.resolve(Oe.value).then(Me,He);et((Gt=Gt.apply(on,Si)).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=(on,Si,Gt,Xe)=>{const ke=Si.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Gt.lineNumber,endColumn:Gt.column});return Array.from(new Set(ke.match(/\b\w{2,}\b/g)||[])).map(He=>({label:He,kind:on.languages.CompletionItemKind.Text,insertText:He,range:Xe}))},We=(on,Si,Gt,Xe)=>{on.languages.registerCompletionItemProvider(Si,{provideCompletionItems(ke,Me){const He=ke.getWordUntilPosition(Me),et={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:He.startColumn,endColumn:He.endColumn},Oe=ke.getLineContent(Me.lineNumber).substring(He.startColumn-2,He.endColumn);return{suggestions:[...ct(on,ke,Me,et),...Gt.map(Vn=>({label:Vn,kind:on.languages.CompletionItemKind.Keyword,documentation:Vn,insertText:Vn,insertTextRules:on.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et})),...Xe.map(Vn=>({label:Vn.label,kind:on.languages.CompletionItemKind.Snippet,documentation:Vn.content,insertText:Oe.startsWith("#")?Vn.content.replace(/#/,""):Vn.content,insertTextRules:on.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et}))]}}})};var Te=on=>{Vt.languages.forEach(Si=>{on.languages.registerDocumentFormattingEditProvider(Si,{provideDocumentFormattingEdits(Gt){return yt(this,null,function*(){const Xe=mt()(Gt.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:Gt.getFullModelRange(),text:Xe}]})}})}),We(on,"java",Qt.keywords,Qt.quickKey),We(on,"cpp",Nt.keywords,Nt.quickKey),We(on,"c",wt.keywords,[]),We(on,"python",Re.keywords,Re.quickKey),We(on,"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=(on,Si,Gt)=>Si in on?te(on,Si,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):on[Si]=Gt,se=(on,Si,Gt)=>ue(on,typeof Si!="symbol"?Si+"":Si,Gt);const ge=class Ex{constructor(Si,Gt,Xe){this.placeholder=Si,this.editor=Gt,this.monaco=Xe,Gt.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),nt=be(83062),ft=be(96486),qe=be(33054),at=be(74855),jt=Object.defineProperty,Mt=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,qn=(on,Si,Gt)=>Si in on?jt(on,Si,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):on[Si]=Gt,sn=(on,Si)=>{for(var Gt in Si||(Si={}))Ht.call(Si,Gt)&&qn(on,Gt,Si[Gt]);if(Bt)for(var Gt of Bt(Si))Jn.call(Si,Gt)&&qn(on,Gt,Si[Gt]);return on},Nn=(on,Si)=>Mt(on,bt(Si)),lt=(on,Si)=>{var Gt={};for(var Xe in on)Ht.call(on,Xe)&&Si.indexOf(Xe)<0&&(Gt[Xe]=on[Xe]);if(on!=null&&Bt)for(var Xe of Bt(on))Si.indexOf(Xe)<0&&Jn.call(on,Xe)&&(Gt[Xe]=on[Xe]);return Gt},Ge=(on,Si,Gt)=>new Promise((Xe,ke)=>{var Me=Oe=>{try{et(Gt.next(Oe))}catch(ut){ke(ut)}},He=Oe=>{try{et(Gt.throw(Oe))}catch(ut){ke(ut)}},et=Oe=>Oe.done?Xe(Oe.value):Promise.resolve(Oe.value).then(Me,He);et((Gt=Gt.apply(on,Si)).next())});function Ne(on){return/^\d+$/.test(on)?`${on}px`:on}function Rn(){}let ai=!1;const Zt={"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 ci(on=[]){let Si=on;if(Array.isArray(on)){for(let Gt=0;Gt<on.length;Gt++){let Xe=Zt[on[Gt]];if(Xe)return Xe}return Si[0]}return Zt[Si]||Si}let On=null;const Mi=()=>Ge(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(on){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",on)}});var Xt=on=>{var Si=on,{width:Gt="100%",height:Xe="100%",value:ke,language:Me="javascript",style:He={},options:et={},overrideServices:Oe={},theme:ut="vs-dark",onEditBlur:Vn,isCopy:jn=!1,onSave:An,autoHeight:Pn=!1,forbidCopy:si=!1,onChange:mn=Rn,editorDidMount:Fi=Rn,onFocus:Vi=Rn,onBreakPoint:Ir=Rn,breakPointValue:Qi=[],filename:Di="educoder.txt",errorLine:$r,errorContent:Yi="",highlightLine:hr,openBreakPoint:dr=!1,placeholder:kn="",showMiniMap:Ii=!0}=Si,ra=lt(Si,["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 Un=(0,ve.useRef)(),Kr=(0,ve.useRef)({}),ia=(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,ti]=(0,ve.useState)(!1);function Ee(){let Ut;return Un.current&&(Ut=new ot.Z(zn=>{for(let xn of zn)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&Kr.current.instance.layout()}),Ut.observe(Un.current)),Ut}function pn(){Ke.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const hn=()=>{let Ut=Kr.current.instance;if(ke!=null&&Ut&&No){const zn=Ut.getModel();zn&&ke!==zn.getValue()&&(ai=!0,zn.setValue(ke),Ut.layout(),ai=!1)}};(0,ve.useEffect)(()=>{const Ut=qe.Z.subscribe("formatDocument",zn=>{var xn;let Fr=Kr.current.instance;(xn=Fr==null?void 0:Fr.getAction)==null||xn.call(Fr,"editor.action.formatDocument").run()});return window.updateMonacoValue=zn=>{mn(zn)},Ut},[]),(0,ve.useEffect)(()=>{var Ut;let zn=Kr.current.instance;sa.current&&clearTimeout(sa.current),sa.current=setTimeout(()=>{hn()},500),ke&&(ke!=null&&ke.length)&&((Ut=zn==null?void 0:zn.updateOptions)==null||Ut.call(zn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ke.split(/\r\n|\r|\n/g).length))+3,5)}))},[ke,No,Kr.current]),(0,ve.useEffect)(()=>{if($r&&Kr.current&&Kr.current.instance){let zn=Kr.current.instance;zn.changeViewZones(function(xn){var Fr=document.createElement("div");Fr.style.padding="10px 20px",Fr.style.width="calc(100% - 20px)",Fr.className="my-error-line-wrp",Fr.innerHTML=Yi,xn.addZone({afterLineNumber:$r||11,heightInLines:3,domNode:Fr})});var Ut={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}};zn.addOverlayWidget(Ut),zn.revealPositionInCenter({lineNumber:20,column:1})}},[$r,Kr.current,No]);const ii=(Ut="",zn)=>{if(!Ut||Ut.trim()==="")return!0;const Fr=Kr.current.instance.getModel().getLineTokens(zn);let ri=!1;for(let $t=0;$t<2;$t++)Fr.getStandardTokenType($t)===1&&(ri=!0);return ri};(0,ve.useEffect)(()=>{var Ut;const zn=(Ut=Kr.current)==null?void 0:Ut.instance;if(zn&&No&&si){const xn=zn.onDidBlurEditorWidget(()=>{la.current=!1}),Fr=zn.onDidFocusEditorText(()=>{la.current=!0});return()=>{xn.dispose(),Fr.dispose()}}},[Kr.current,No,si]),(0,ve.useEffect)(()=>{var Ut;if((Ut=Kr.current)!=null&&Ut.instance&&No&&dr){let zn=Kr.current.instance,xn=zn.getModel();if(!xn)return;(()=>{var ur;let Nr=[],io=[];const va=xn.getAllDecorations();for(let pi of va)pi.options.className==="highlighted-line"&&(Nr.push((ur=pi==null?void 0:pi.range)==null?void 0:ur.startLineNumber),io.push(pi==null?void 0:pi.id));if(hr===Nr[0])return;xn.deltaDecorations(io,[]);const Ho=xn.getLineCount();hr&&hr<=Ho&&(zn.deltaDecorations([],[{range:new On.Range(hr,1,hr,xn.getLineMaxColumn(hr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),zn.revealLineInCenter(hr))})();const ri=(ur=!1)=>{var Nr;let io=[],va=[];const Ho=xn.getAllDecorations();for(let pi of Ho)pi.options.linesDecorationsClassName==="breakpoints-select"&&(io.push((Nr=pi==null?void 0:pi.range)==null?void 0:Nr.startLineNumber),va.push(pi==null?void 0:pi.id));if(ur)return{lines:io,ids:va};Ir(io)},$t=ur=>Ge(void 0,null,function*(){let Nr={range:new On.Range(ur,1,ur,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xn.deltaDecorations([],[Nr]),ri()}),_i=ur=>Ge(void 0,null,function*(){let Nr=[];const io=zn.getLineDecorations(ur);for(let va of io)va.options.linesDecorationsClassName==="breakpoints-select"&&Nr.push(va.id);yield xn.deltaDecorations(Nr,[]),ri()}),Wr=ur=>{let Nr=zn.getLineDecorations(ur);for(let io of Nr)if(io.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ft.isEqual)(Qi,ri(!0).lines)){xn.deltaDecorations(ri(!0).ids,[]);const ur=Qi.map(Nr=>({range:new On.Range(Nr,1,Nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xn.deltaDecorations([],ur)}const Br=zn.onDidChangeModelContent(ur=>{let Nr=zn.getPosition();if(Nr){let io=Nr.lineNumber;clearTimeout(da.current),da.current=setTimeout(()=>{ii(xn.getLineContent(io),io)?_i(io):Wr(io)?(_i(io),$t(io)):ri()},100)}}),Sn=zn.onMouseDown(ur=>{var Nr,io,va;if(ur.target.detail&&((va=(io=(Nr=ur.target)==null?void 0:Nr.element)==null?void 0:io.className)!=null&&va.includes("line-numbers"))){let Ho=ur.target.position.lineNumber;if(ii(xn.getLineContent(Ho),Ho))return;Wr(Ho)?_i(Ho):$t(Ho)}}),or=ur=>{let Nr={range:new On.Range(ur,1,ur,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Wa.current=zn.deltaDecorations(Wa.current,[Nr])},Xo=()=>{Wa.current=zn.deltaDecorations(Wa.current,[])},Na=zn.onMouseMove(ur=>{var Nr,io,va;if(Xo(),ur.target.detail&&((va=(io=(Nr=ur.target)==null?void 0:Nr.element)==null?void 0:io.className)!=null&&va.includes("line-numbers"))){let Ho=ur.target.position.lineNumber;if(ii(xn.getLineContent(Ho),Ho))return;or(Ho)}}),aa=zn.onMouseLeave(()=>{Xo()});return()=>{Br.dispose(),Sn.dispose(),Na.dispose(),aa.dispose()}}},[Kr.current,No,Qi,hr,dr,Me]),(0,ve.useEffect)(()=>{var Ut;(Ut=Kr.current)!=null&&Ut.instance&&dr&&Kr.current.instance.setPosition({lineNumber:0,column:0})},[hr]);function Yn(){let Ut=Kr.current.instance;if(Ut){const zn=Ut.getSelection(),xn=Kr.current.pastePos||{},Fr=new On.Range(xn.startLineNumber||zn.endLineNumber,xn.startColumn||zn.endColumn,xn.endLineNumber||zn.endLineNumber,xn.endColumn||zn.endColumn);setTimeout(()=>{Ut.executeEdits("",[{range:Fr,text:""}])},300)}}function In(Ut){(window.navigator.platform.match("Mac")?Ut.metaKey:Ut.ctrlKey)&&Ut.keyCode==83&&(Ut.preventDefault(),An())}const en=()=>{if(Pn&&Kr.current.instance){const Ut=Kr.current.instance.getContentHeight();Ri(Ut<Xe?Xe:Ut)}else Ri(Xe)};function ni(Ut){var zn=document.createEvent("MouseEvents");zn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ut.dispatchEvent(zn)}const zt=Ut=>{if(!la.current)return;const{keyCode:zn,ctrlKey:xn,metaKey:Fr,target:ri,type:$t}=Ut;return($t==="paste"||(zn===67||zn===86)&&(Fr||xn))&&ri.nodeName==="TEXTAREA"&&(pn(),Ut.preventDefault()),!1};function Kt(Ut,zn){var xn=window.URL||window.webkitURL||window,Fr=new Blob([zn]),ri=document.createElementNS("http://www.w3.org/1999/xhtml","a");ri.href=xn.createObjectURL(Fr),ri.download=Ut,ni(ri)}(0,ve.useEffect)(()=>{en()},[en]),(0,ve.useEffect)(()=>{Un.current&&!No&&Promise.all([be.e(5552),be.e(9651)]).then(be.bind(be,55826)).then(Ut=>{try{On=Ut,Kr.current.instance=On.editor.create(Un.current,{value:ke,language:ci(Me),theme:ut,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ii||!1}},Oe);const zn=Kr.current.instance;let ri=[...Pe.BH._menuItems].find(Br=>Br[0]._debugName=="EditorContext")[1],$t=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],_i=(Br,Sn)=>{var or,Xo;let Na=Br._first;do Sn.includes((Xo=(or=Na.element)==null?void 0:or.command)==null?void 0:Xo.id)&&Br._remove(Na);while(Na=Na.next)};if(Fi(zn,On),setTimeout(()=>{en(),Kr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Kt(Di||"educoder.txt",zn.getValue())}})},500),Kr.current.subscription=zn.onDidChangeModelContent(Br=>{ma.current?clearTimeout(Ha.current):(en(),mn(zn.getValue(),Br)),Ha.current=setTimeout(()=>{ma.current=!1},500)}),window.Monaco||Te(On,ci(Me)),si&&(_i(ri,$t),Un.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",zt),window.removeEventListener("paste",zt),window.addEventListener("keydown",zt),window.addEventListener("paste",zt)),window.Monaco=On,Vn&&zn.onDidBlurEditorWidget(()=>{Vn(zn.getValue())}),Vi&&zn.onDidFocusEditorText(()=>{si&&Mi(),Vi(zn.getValue())}),si){Mi();try{zn.onDidPaste(Br=>{const Sn=zn.getSelection(),or=Kr.current.pastePos||{},Xo=new On.Range(or.startLineNumber||Sn.endLineNumber,or.startColumn||Sn.endColumn,or.endLineNumber||Sn.endLineNumber,or.endColumn||Sn.endColumn);zn.executeEdits("",[{range:Br.range,text:""}])})}catch(Br){}}let Wr=Ee();return kn&&typeof kn=="string"&&new xe(kn,zn,On),ti(!0),()=>{const Br=Kr.current.instance;Br.dispose();const Sn=Br.getModel();Sn&&Sn.dispose(),Kr.current.subscription&&Kr.current.subscription.dispose(),Wr.unobserve(Un.current)}}catch(zn){}})},[]),(0,ve.useEffect)(()=>{if(Kr.current.instance&&No)return document.addEventListener("keydown",In,!1),()=>{document.removeEventListener("keydown",In)}},[An,No]),(0,ve.useEffect)(()=>{let Ut=Kr.current.instance;if(Ut&&No){let zn=ci(Me);On.editor.setModelLanguage(Ut.getModel(),zn)}},[Me,No]),(0,ve.useEffect)(()=>{Kr.current.instance&&No&&On.editor.setTheme(ut)},[ut,No]),(0,ve.useEffect)(()=>{let Ut=Kr.current.instance;ia.current=et,Ut&&No&&(Ut.updateOptions(sn({},et)),setTimeout(()=>{Ut.getModel().updateOptions(sn({},et))},200))},[JSON.stringify(et),No]),(0,ve.useEffect)(()=>{let Ut=Kr.current.instance;Ut&&No&&Ut.layout()},[Gt,Xe,No]);const[Ft,un]=(0,ve.useState)(Ne(Gt)),[Ti,Ri]=(0,ve.useState)(Ne(Xe)),hi=Nn(sn({},He),{width:Ft,height:Ti,position:"relative"});return ve.createElement("div",{className:"my-monaco-editor",ref:Un,style:hi},jn&&ve.createElement(at.CopyToClipboard,{text:ke,onCopy:()=>Ke.ZP.success("\u590D\u5236\u6210\u529F")},ve.createElement(nt.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 At({width:on="100%",height:Si="100%",original:Gt,modified:Xe,language:ke,options:Me={}}){const He=(0,ve.useRef)(),[et,Oe]=(0,ve.useState)(null);function ut(Pn){let si;return He.current&&(si=new ot.Z(mn=>{for(let Fi of mn)(Fi.target.offsetHeight>0||Fi.target.offsetWidth>0)&&Pn.layout()}),si.observe(He.current)),si}(0,ve.useEffect)(()=>(He.current&&Promise.all([be.e(5552),be.e(9404)]).then(be.bind(be,50048)).then(Pn=>{On=Pn;const si=On.editor.createDiffEditor(He.current,Nn(sn({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}));Oe(si);let mn=ut(si);return()=>{si.dispose();const Fi=si.getModel();Fi&&Fi.dispose(),mn.unobserve(He.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ve.useEffect)(()=>{et&&et.setModel({original:On.editor.createModel(Gt,ke),modified:On.editor.createModel(Xe,ke)})},[Gt,Xe,ke,et]);const Vn=Ne(on),jn=Ne(Si),An={width:Vn,height:jn};return ve.createElement("div",{className:"my-diff-editor",ref:He,style:An})}},5476:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return Vt}});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"},ot=be(74330),wt=be(83062),Qt=be(94184),Nt=be.n(Qt),Re=be(28706),Je=be(26194),pt=be(52262),mt=be(67294),Vt=({className:ct,dataSource:We=[],col:Te=4,right:ne,bottom:te=23,precision:ue=0,wrapWidth:se=1200,trackEventItems:ge,loading:me,onRemove:xe=()=>{},isCurrent:Pe=!0,showAlias:Ke=!1})=>{const nt=Math.floor((se-(Te-1)*ne)/Te),ft=[{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 mt.createElement(ot.Z,{spinning:me},mt.createElement("div",{className:Nt()(ve.list,ct)},!!(We!=null&&We.length)&&(We==null?void 0:We.map((qe,at)=>{var jt;const{name:Mt,id:bt,identifier:Bt,featured:Ht,school_name:Jn,image_url:qn,excellent:sn,is_plan:Nn}=qe;return mt.createElement("div",{key:bt,className:ve.wrap,style:{width:nt,marginRight:(1+at)%Te===0?0:ne+ue,marginBottom:te}},mt.createElement("a",{className:ve.li,onClick:lt=>{lt.preventDefault(),lt.stopPropagation(),ge&&(0,Re.L9)([ge]),(0,Re.xg)(`/paths/${Bt}`)}},mt.createElement("div",{className:ve.img},mt.createElement("img",{className:ve.cover,src:`${qn}`}),Pe&&(0,pt.bg)()&&(qe==null?void 0:qe.studying)&&mt.createElement("div",{className:`${ve.movebq} user-path-items`,onClick:lt=>{lt.stopPropagation(),xe(qe)}},mt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),mt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(jt=qe==null?void 0:qe.subject_tags)==null?void 0:jt.map((lt,Ge)=>{var Ne,Rn;if(Ge===0){const Zt=(Ne=ft.find(ci=>ci.name==lt))==null?void 0:Ne.swimg;return mt.createElement("img",{className:ve.sign,src:Zt,style:{left:"-4px"}})}const ai=(Rn=ft.find(Zt=>Zt.name==lt))==null?void 0:Rn.ptimg;return mt.createElement("img",{className:ve.sign,src:ai,style:{left:`${48+52*(Ge-1)+2*Ge}px`}})}),mt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(qe==null?void 0:qe.excellent)&&mt.createElement("div",{className:ve.bq},"\u5F00\u653E\u8BFE\u7A0B"))),mt.createElement("div",{className:ve.name},mt.createElement(wt.Z,{title:Ke&&(qe!=null&&qe.excellent_alias_name)?mt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Mt}`,mt.createElement("br",null),mt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${qe==null?void 0:qe.excellent_alias_name}`)):Mt},mt.createElement("span",{className:ve.e},Ke&&(qe==null?void 0:qe.excellent_alias_name)||Mt))),mt.createElement(wt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Jn}`},mt.createElement("div",{className:ve.unit},mt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Jn)),mt.createElement("div",{className:ve.tags},mt.createElement("div",null,mt.createElement(wt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},mt.createElement("span",null,mt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),mt.createElement("span",null,qe.stages_count))),mt.createElement(wt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},mt.createElement("span",null,mt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),mt.createElement("span",null,qe.members_count)))))))})),!We.length&&mt.createElement(Je.Z,null)))}},30001:function(Dn,ei,be){"use strict";be.d(ei,{jL:function(){return Nt},w9:function(){return Ne},QD:function(){return $r},cQ:function(){return qn.Z},op:function(){return mn},O5:function(){return hn},_b:function(){return ra},t7:function(){return se},Gi:function(){return Mi},YG:function(){return ci},qp:function(){return Vt},vr:function(){return dr},qE:function(){return Ir},Je:function(){return xe},wb:function(){return Jn},cq:function(){return Xe},tp:function(){return Te}});var ve=be(67294),ot={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"},wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+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kqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Nt=({dataSource:ii=[],img:Yn,imgWidth:In=346,title:en,sunTitle:ni,bannerExtraContent:zt})=>ve.createElement("div",{className:ot.banner},ve.createElement("div",{className:ot.content},ve.createElement("aside",null,ve.createElement("p",null,ve.createElement("b",null,en),ve.createElement("span",null,ni)),ii.length>0&&ve.createElement("div",{className:ot.btns},ii.map((Kt,Ft)=>ve.createElement("div",{key:Ft,onClick:Kt.click},Kt.name,Kt.sign?ve.createElement("img",{src:wt,width:39}):null))),zt),Yn&&ve.createElement("img",{style:{marginTop:33,marginRight:38},src:Yn,width:In}))),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),mt=be(96486),Vt=({dataSource:ii=[],value:Yn,onChange:In,onTitleChange:en,className:ni,title:zt,titleWidth:Kt=41,style:Ft={},fontColor:un="#6A7283",showCount:Ti})=>{const[Ri,hi]=(0,ve.useState)(0),[Ut,zn]=(0,ve.useState)(!1),xn=(0,ve.useRef)(null),Fr=(0,ve.useRef)(null);return(0,ve.useEffect)(()=>{var ri;ii.length!==0&&(((ri=xn==null?void 0:xn.current)==null?void 0:ri.clientHeight)>97?hi(1):hi(0)),ii.length===0&&hi(0),zn(!1)},[ii]),ve.createElement("div",{className:pt()(Re.row,ni),style:Ft},ve.createElement("div",{onClick:(0,mt.throttle)(()=>en==null?void 0:en(),2e3),style:{width:Kt,marginTop:Ut?12:4},className:`${Re.title} ${en?"current":""}`},zt),ve.createElement("div",{className:Ut?`${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:xn},ii==null?void 0:ii.map(ri=>ve.createElement("span",{onClick:()=>In(ri.id),key:ri.id,style:{color:un},className:Yn===ri.id?Re.active:""},ve.createElement("span",{title:ri.name,className:Re.name},ri.name),!!Ti&&ve.createElement("span",{className:Re.num},ri.count))))),!!Ri&&ve.createElement(ve.Fragment,null,Ri===1?ve.createElement("div",{onClick:()=>{var ri;hi(2),((ri=xn==null?void 0:xn.current)==null?void 0:ri.clientHeight)>245?zn(!0):zn(!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,hi(1),zn(!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:ii=[],value:Yn,onChange:In,className:en,style:ni={}})=>ve.createElement("div",{style:ni,className:pt()(ct.tabs,en)},ii.map(zt=>ve.createElement("span",{onClick:()=>In(zt.id),className:Yn===zt.id?ct.active:"",key:zt.id},zt.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:ii=[],value:Yn="",onChange:In,onInputChange:en=()=>{},className:ni,style:zt={},placeholder:Kt,allowClear:Ft=!1})=>{var un;const[Ti,Ri]=(0,ve.useState)(""),[hi,Ut]=(0,ve.useState)("");(0,ve.useEffect)(()=>{var Fr;let ri=Yn;(Fr=JSON.stringify(Yn))!=null&&Fr.includes("{")&&(Ri(Yn.id),ri=Yn.value||"");try{Ut(decodeURIComponent(ri||""))}catch($t){Ut(decodeURIComponent(ri||""))}},[Yn]);const zn=()=>{In(encodeURIComponent(hi),Ti||null)},xn=Fr=>{Fr!==Ti&&(Ri(Fr),In(encodeURIComponent(hi),Fr))};return ve.createElement("div",{className:pt()(ne.input,ni),style:zt},!!ii.length&&ve.createElement("div",{className:ne.dropdown},ve.createElement("div",{className:ne.text},(un=ii.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},ii.map((Fr,ri)=>ve.createElement("div",{key:ri,onClick:()=>xn(Fr.id)},Fr.name)))),ve.createElement(te.default,{onPressEnter:zn,value:hi,onChange:Fr=>{Ut(Fr.target.value),en(encodeURIComponent(Fr.target.value),Ti||null)},bordered:!1,placeholder:Kt}),ve.createElement("i",{onClick:zn,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:ii,onChange:Yn,className:In,total:en,pageSize:ni,style:zt={}})=>{const Kt=ii<2,Ft=ii>=Math.ceil(en/ni);return en<=ni?ve.createElement(ve.Fragment,null):ve.createElement("div",{className:pt()(ge.quickPager,In),style:zt},ve.createElement("div",{onClick:()=>{Kt||Yn(ii-1,"prev")},className:Kt?ge.disabled:""},"\u4E0A\u4E00\u9875"),ve.createElement("div",{onClick:()=>{Ft||Yn(ii+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),nt=be(83062),ft=be(57097),qe=be(11320),at=be(28706),jt=be(96908),Mt=be(57177),bt=be(81378),Bt=be(26194),Jn=({className:ii,dataSource:Yn=[],col:In=4,right:en,bottom:ni=23,precision:zt=0,wrapWidth:Kt=1200,trackEventItems:Ft,loading:un})=>{const Ti=Math.floor((Kt-(In-1)*en)/In);return ve.createElement(Ke.Z,{spinning:un},ve.createElement("div",{className:pt()(Pe.list,ii)},!!Yn.length&&Yn.map((Ri,hi)=>{const{name:Ut,id:zn,identifier:xn,power:Fr,cover_image_id:ri,pic:$t}=Ri;return ve.createElement("div",{className:Pe.wrap,key:zn,style:{width:Ti,marginRight:(1+hi)%In===0?0:en+zt,marginBottom:ni}},ve.createElement("a",{target:"_blank",href:`/shixuns/${xn}/challenges`,className:Pe.li,onClick:_i=>{_i.preventDefault(),Ft&&(0,at.L9)([Ft]),Fr&&(0,at.xg)(`/shixuns/${xn}/challenges`)}},ve.createElement("div",{className:Pe.img},ve.createElement("img",{className:Pe.cover,src:`${$t}`}),Ri.is_jupyter&&ve.createElement("img",{className:Pe.sign,src:jt}),Ri.is_jupyter_lab&&ve.createElement("img",{className:Pe.sign,src:Mt}),Ri.is_unity_3d&&ve.createElement("img",{className:Pe.sign,src:bt})),ve.createElement("div",{className:Pe.name},ve.createElement(nt.Z,{title:Ut||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ve.createElement("span",{className:Pe.e},Ut||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ve.createElement("div",{className:Pe.tags},ve.createElement(nt.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(nt.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(nt.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:`${qe.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")))}),!Yn.length&&ve.createElement(Bt.Z,null)))},qn=be(5476),sn={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"},Nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx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fk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",lt=be(67294),Ne=({className:ii,dataSource:Yn=[],col:In=4,right:en,bottom:ni=23,precision:zt=0,wrapWidth:Kt=1200,trackEventItems:Ft,loading:un,handleVery:Ti=()=>!0})=>{const Ri=Math.floor((Kt-(In-1)*en)/In);return lt.createElement(Ke.Z,{spinning:un},lt.createElement("div",{className:pt()(sn.list,ii)},!!Yn.length&&Yn.map((hi,Ut)=>{const{subject_identifier:zn,id:xn,identifier:Fr,power:ri}=hi,$t=hi.is_public!=0&&hi.is_public;return lt.createElement("div",{className:sn.wrap,key:xn,style:{width:Ri,marginRight:(1+Ut)%In===0?0:en+zt,marginBottom:ni}},lt.createElement("a",{className:sn.li,onClick:_i=>{_i.preventDefault(),Ti(hi==null?void 0:hi.first_category_url)&&(Ft&&(0,at.L9)([Ft]),(0,at.xg)(hi.first_category_url))}},lt.createElement("div",{className:sn.top},lt.createElement(nt.Z,{title:hi.name},lt.createElement("div",{className:sn.name},hi.name)),lt.createElement("img",{className:sn.img,src:qe.Z.IMG_SERVER+"/images/"+hi.avatar_url}),lt.createElement("div",{className:sn.text,title:hi.creator},hi.creator),zn&<.createElement("div",{className:sn.btns},lt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),lt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),$t&<.createElement("div",{className:sn.sign},"\u516C\u5F00")),lt.createElement("div",{className:sn.bottom},hi.visits>0&<.createElement(nt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-liulanyan"}),lt.createElement("span",null,hi.visits))),hi.course_members_count>0&<.createElement(nt.Z,{title:"\u6210\u5458",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-chengyuan"}),hi.course_members_count)),hi.tasks_count>0&<.createElement(nt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-zuoye"}),hi.tasks_count)),hi.is_end?lt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):lt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!hi.is_accessible&<.createElement("div",{className:sn.lockWrap},lt.createElement("img",{src:`${qe.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")))}),!Yn.length&<.createElement(Bt.Z,null)))},Rn={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"},ai=be(35973),ci=({dataSource:ii=[],value:Yn,onChange:In,className:en,style:ni={},tabBarExtraContent:zt})=>ve.createElement("div",{className:pt()(Rn.tabs,en),style:ni},ve.createElement("div",{className:Rn.tabsWrap},ii.map((Kt,Ft)=>!(Kt!=null&&Kt.hide)&&ve.createElement("aside",{className:Rn.tab,onClick:()=>{In(Kt.id),Kt.link&&ai.history.push(Kt.link)},key:Ft},ve.createElement("div",{className:Yn===Kt.id?Rn.active:""},Kt.name),(Kt==null?void 0:Kt.resetCount)==null&&(Kt==null?void 0:Kt.total)!==void 0&&ve.createElement("span",null,"\uFF08",Kt==null?void 0:Kt.total,"\uFF09"),(Kt==null?void 0:Kt.resetCount)!==void 0&&(Kt==null?void 0:Kt.total)!==void 0&&ve.createElement(nt.Z,{title:(Kt==null?void 0:Kt.tip)!=null?Kt==null?void 0:Kt.tip:""},ve.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ve.createElement("span",{style:{color:"#000"}},Kt==null?void 0:Kt.resetCount),"/",ve.createElement("span",null,Kt==null?void 0:Kt.total),"\uFF09"))))),ve.createElement("div",{className:Rn.tabBar},zt)),Mi=({className:ii,style:Yn={},children:In})=>ve.createElement("div",{className:pt()(ii),style:Yn},In),Xt={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"},At=be(85418),on=be(50136);const Si=[{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:ii,dropValue:Yn,className:In,onSort:en,onDrop:ni,dataSource:zt=Si})=>{var Kt;return ve.createElement("div",{className:pt()(Xt.orderWrap,In)},ve.createElement(At.Z,{dropdownRender:()=>ve.createElement(on.default,null,zt.map((Ft,un)=>ve.createElement(on.default.Item,{key:un,onClick:()=>ni(Ft.id)},Ft.name)))},ve.createElement("span",{className:Xt.orderTextWrap},(Kt=zt.find(Ft=>Yn===Ft.id))==null?void 0:Kt.name)),ve.createElement("span",{className:Xt.orderIconWrap},ve.createElement("span",{className:Xt.orderAsc},ve.createElement("i",{className:ii==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Xt.cursorPointer} ${Xt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Xt.cursorPointer}`,onClick:()=>en(ii==="asc"?"desc":"asc")})),ve.createElement("span",{className:Xt.orderDesc},ve.createElement("i",{className:ii==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Xt.cursorPointer} ${Xt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Xt.cursorPointer}`,onClick:()=>en(ii==="asc"?"desc":"asc")}))))},ke={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),He=Object.defineProperty,et=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Vn=(ii,Yn,In)=>Yn in ii?He(ii,Yn,{enumerable:!0,configurable:!0,writable:!0,value:In}):ii[Yn]=In,jn=(ii,Yn)=>{for(var In in Yn||(Yn={}))Oe.call(Yn,In)&&Vn(ii,In,Yn[In]);if(et)for(var In of et(Yn))ut.call(Yn,In)&&Vn(ii,In,Yn[In]);return ii},An=(ii,Yn)=>{var In={};for(var en in ii)Oe.call(ii,en)&&Yn.indexOf(en)<0&&(In[en]=ii[en]);if(ii!=null&&et)for(var en of et(ii))Yn.indexOf(en)<0&&ut.call(ii,en)&&(In[en]=ii[en]);return In},Pn=(ii,Yn,In)=>new Promise((en,ni)=>{var zt=un=>{try{Ft(In.next(un))}catch(Ti){ni(Ti)}},Kt=un=>{try{Ft(In.throw(un))}catch(Ti){ni(Ti)}},Ft=un=>un.done?en(un.value):Promise.resolve(un.value).then(zt,Kt);Ft((In=In.apply(ii,Yn)).next())}),mn=ii=>{var Yn=ii,{className:In,style:en,children:ni,loading:zt=!1,openLoading:Kt,onClick:Ft=()=>{},size:un="middle",shape:Ti="round"}=Yn,Ri=An(Yn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[hi,Ut]=(0,ve.useState)(!1);return ve.createElement(Me.ZP,jn({onClick:(0,mt.throttle)(zn=>Pn(void 0,null,function*(){Kt&&Ut(!0);try{yield Ft(zn)}catch(xn){console.log("error",xn)}Kt&&Ut(!1)}),2e3,{leading:!0,trailing:!1}),className:pt()(ke.btn,ke[`${un}-${Ti}`],In),style:en,size:un,shape:Ti,loading:hi||zt},Ri),ni)},Fi={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"},Ir=({className:ii,style:Yn,children:In=null,onClick:en,title:ni})=>ve.createElement("div",{className:pt()(Fi.head,ii),style:Yn},ve.createElement("span",{className:"primary-hover",onClick:en},ve.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ve.createElement("b",{title:ni},ni),ve.createElement("div",{className:Fi.node},In)),Qi={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"},$r=({confirmShow:ii=!0,confirmTitle:Yn,confirmClick:In,cancelShow:en=!0,cancelTitle:ni,cancelClick:zt,className:Kt,style:Ft,confirmLoading:un=!1})=>ve.createElement("div",{className:pt()(Qi.btns,Kt),style:Ft},ii&&ve.createElement(Me.ZP,{loading:un,onClick:In,type:"primary",className:Qi.confirm},Yn),en&&ve.createElement(Me.ZP,{onClick:zt,className:Qi.cancel},ni)),Yi={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"},dr=({className:ii,style:Yn={},LeftContent:In,children:en,RightContent:ni})=>ve.createElement("div",{className:pt()(Yi.fixedBottom,ii),style:Yn},ve.createElement("div",{className:Yi.wrap},ve.createElement("div",{className:Yi.left},In),ve.createElement("div",{className:Yi.center},en),ve.createElement("div",{className:Yi.right},ni))),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"},ra=({className:ii,style:Yn={},dataSource:In=[]})=>ve.createElement("div",{className:pt()(kn.crumbs,ii),style:Yn},In.map((en,ni)=>ni<In.length-1?ve.createElement(ve.Fragment,{key:ni},en.path||en.onClick?ve.createElement("span",{className:kn.hover,onClick:en!=null&&en.onClick?en.onClick:()=>ai.history.push(en.path)},en.name):ve.createElement("span",null,en.name),ve.createElement("span",null,"\xA0",">","\xA0")):ve.createElement("span",{key:ni,style:{color:"#5F6368"}},en.name))),Un=be(55054),Kr=Object.defineProperty,ia=Object.defineProperties,sa=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertySymbols,ma=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable,da=(ii,Yn,In)=>Yn in ii?Kr(ii,Yn,{enumerable:!0,configurable:!0,writable:!0,value:In}):ii[Yn]=In,la=(ii,Yn)=>{for(var In in Yn||(Yn={}))ma.call(Yn,In)&&da(ii,In,Yn[In]);if(Wa)for(var In of Wa(Yn))Ha.call(Yn,In)&&da(ii,In,Yn[In]);return ii},No=(ii,Yn)=>ia(ii,sa(Yn)),ti=(ii,Yn)=>{var In={};for(var en in ii)ma.call(ii,en)&&Yn.indexOf(en)<0&&(In[en]=ii[en]);if(ii!=null&&Wa)for(var en of Wa(ii))Yn.indexOf(en)<0&&Ha.call(ii,en)&&(In[en]=ii[en]);return In};const{Countdown:Ee}=Un.default;var hn=ii=>{var Yn=ii,{onChange:In}=Yn,en=ti(Yn,["onChange"]);const[ni,zt]=(0,ve.useState)(null);(0,ve.useEffect)(()=>{typeof ni=="number"&&ni>=0&&In(ni)},[ni]);const Kt=Ft=>{const un=Math.floor(Ft/1e3);zt(un)};return ve.createElement(Ee,No(la({},en),{onChange:Kt}))}},99914:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return ot}});var ve=be(67294);function ot(wt,Qt){const Nt=(0,ve.useRef)();(0,ve.useEffect)(()=>{Nt.current=wt}),(0,ve.useEffect)(()=>{function Re(){Nt.current()}if(Qt!==null){let Je=setInterval(Re,Qt);return()=>clearInterval(Je)}},[Qt])}},81119:function(Dn,ei,be){"use strict";be.r(ei),be.d(ei,{default:function(){return In}});var ve=be(67294),ot={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"},wt=be(94184),Qt=be.n(wt),Nt=be(30001),Re=be(35567),Je=be(71230),pt=be(85804),mt=be(62844),yt=be(28802),Vt=be(57399),ct=be(91773),We=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),nt=be(32339),ft=be(45587),qe=be(24285),at=be(26194),jt=Object.defineProperty,Mt=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,qn=(en,ni,zt)=>ni in en?jt(en,ni,{enumerable:!0,configurable:!0,writable:!0,value:zt}):en[ni]=zt,sn=(en,ni)=>{for(var zt in ni||(ni={}))Ht.call(ni,zt)&&qn(en,zt,ni[zt]);if(Bt)for(var zt of Bt(ni))Jn.call(ni,zt)&&qn(en,zt,ni[zt]);return en},Nn=(en,ni)=>Mt(en,bt(ni));const lt=ve.createContext({}),Ge=()=>{const{setActivatorNodeRef:en,listeners:ni}=(0,ve.useContext)(lt);return ve.createElement(pt.ZP,sn({type:"text",size:"small",icon:ve.createElement(We.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:en},ni))},Ne=en=>{const{attributes:ni,listeners:zt,setNodeRef:Kt,setActivatorNodeRef:Ft,transform:un,transition:Ti,isDragging:Ri}=(0,ft.nB)({id:en["data-row-key"]}),hi=sn(Nn(sn({},en.style),{transform:qe.ux.Translate.toString(un),transition:Ti}),Ri?{position:"relative",zIndex:99}:{}),Ut=(0,ve.useMemo)(()=>({setActivatorNodeRef:Ft,listeners:zt}),[Ft,zt]);return ve.createElement(lt.Provider,{value:Ut},ve.createElement("tr",sn(Nn(sn({},en),{ref:Kt,style:hi}),ni)))};var ai=({columns:en,dataSource:ni,setDataSource:zt,loading:Kt})=>{const Ft=({active:un,over:Ti})=>{un.id!==(Ti==null?void 0:Ti.id)&&zt(Ri=>{const hi=Ri.findIndex(zn=>zn.id===(un==null?void 0:un.id)),Ut=Ri.findIndex(zn=>zn.id===(Ti==null?void 0:Ti.id));return(0,ft.Rp)(Ri,hi,Ut)})};return ve.createElement(Ke.LB,{modifiers:[nt.DL],onDragEnd:Ft},ve.createElement(ft.Fo,{items:ni.map(un=>un.id),strategy:ft.qw},ve.createElement(Vt.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:Kt,locale:{emptyText:ve.createElement(at.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:ni,components:{body:{row:Ne}},columns:[{key:"sort",align:"center",width:80,render:()=>ve.createElement(Ge,null)},...en],size:"middle"})))},Zt=be(55238),ci=be(38089),On=be(88044),Mi=be(60024),Xt=be(14845),At=be(33170),on={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"},Si=be(53430),Gt={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),ke=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 et=({qitem:en})=>{var ni,zt,Kt,Ft,un,Ti,Ri,hi,Ut,zn;return ve.createElement("div",{className:Gt.warp},ve.createElement("div",{className:Gt.mainPart},ve.createElement("div",{className:Gt.qcount},(en==null?void 0:en.question_type)===8&&ve.createElement(Xe.Z,{className:Gt.content,showProgramFill:!0,value:(ni=en==null?void 0:en.program_attr)==null?void 0:ni.description}),(en==null?void 0:en.question_type)!=8&&ve.createElement(Xe.Z,{className:Gt.qtitle,value:(en==null?void 0:en.name)||(en==null?void 0:en.title)})),((en==null?void 0:en.question_type)===0||(en==null?void 0:en.question_type)===2)&&ve.createElement("div",null,(zt=en==null?void 0:en.choices)==null?void 0:zt.map((xn,Fr)=>ve.createElement("div",{className:Gt.redio},!(xn!=null&&xn.is_answer)&&ve.createElement("span",{className:Gt.redioitem}),(xn==null?void 0:xn.is_answer)&&ve.createElement("i",{className:`${Gt.redioitemyes} icon-duigou1`}),ve.createElement(Xe.Z,{className:xn!=null&&xn.is_answer?Gt.titleyes:Gt.title,value:Me[Fr]+(xn==null?void 0:xn.choice_text)}),(xn==null?void 0:xn.is_answer)&&ve.createElement("div",{className:Gt.yestag},"\u6B63\u786E\u7B54\u6848")))),(en==null?void 0:en.question_type)===1&&ve.createElement("div",null,(Kt=en==null?void 0:en.choices)==null?void 0:Kt.map((xn,Fr)=>ve.createElement("div",{className:Gt.checkbox},!(xn!=null&&xn.is_answer)&&ve.createElement("span",{className:Gt.checkboxitem}),(xn==null?void 0:xn.is_answer)&&ve.createElement("i",{className:`${Gt.checkboxitemyes} icon-duigou1`}),ve.createElement(Xe.Z,{className:xn!=null&&xn.is_answer?Gt.titleyes:Gt.title,value:Me[Fr]+(xn==null?void 0:xn.choice_text)}),(xn==null?void 0:xn.is_answer)&&ve.createElement("div",{className:Gt.yestag},"\u6B63\u786E\u7B54\u6848")))),(en==null?void 0:en.question_type)===3&&ve.createElement("div",{className:Gt.completion},(Ft=en==null?void 0:en.standard_answer)==null?void 0:Ft.map((xn,Fr)=>{var ri;return ve.createElement("div",{style:{display:"flex"}},ve.createElement("span",{className:Gt.title},"\u586B\u7A7A\u9879",Fr+1),ve.createElement("div",{className:Gt.content},(ri=xn==null?void 0:xn.answer_text)==null?void 0:ri.map(($t,_i)=>ve.createElement("div",{className:Gt.items},$t))))})),(en==null?void 0:en.question_type)===4&&ve.createElement("div",{className:Gt.simple},ve.createElement("div",{className:Gt.title},"\u53C2\u8003\u7B54\u6848"),ve.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(un=en==null?void 0:en.answer_texts)!=null&&un[0]?ve.createElement(Xe.Z,{className:Gt.content,value:(Ti=en==null?void 0:en.answer_texts)==null?void 0:Ti[0]}):ve.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(en==null?void 0:en.question_type)===5&&((Ri=en==null?void 0:en.challenge_names)==null?void 0:Ri.map((xn,Fr)=>ve.createElement("div",{className:Gt.shixun},ve.createElement("span",{className:Gt.qtitle},ve.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,me.EM)(Fr+1),"\u9898"),xn)))),(en==null?void 0:en.question_type)===6&&ve.createElement("div",{className:Gt.program},ve.createElement(Xe.Z,{className:Gt.content,value:((hi=en==null?void 0:en.program_attr)==null?void 0:hi.description)||"- -"})),(en==null?void 0:en.question_type)===7&&((Ut=en==null?void 0:en.sub_item_banks)==null?void 0:Ut.map((xn,Fr)=>{var ri,$t,_i,Wr,Br;return ve.createElement("div",null,ve.createElement("div",{className:Gt.combination},ve.createElement("span",{className:Gt.qtitle},xn==null?void 0:xn.name)),ve.createElement("div",{className:Gt.warp,style:{padding:"0px",paddingTop:20}},ve.createElement("div",null,((xn==null?void 0:xn.item_type)=="SINGLE"||(xn==null?void 0:xn.item_type)=="JUDGMENT")&&((ri=xn==null?void 0:xn.choices)==null?void 0:ri.map((Sn,or)=>ve.createElement("div",{className:Gt.redio},!(Sn!=null&&Sn.is_answer)&&ve.createElement("span",{className:Gt.redioitem}),(Sn==null?void 0:Sn.is_answer)&&ve.createElement("i",{className:`${Gt.redioitemyes} icon-duigou1`}),ve.createElement(Xe.Z,{className:Sn!=null&&Sn.is_answer?Gt.titleyes:Gt.title,value:Me[or]+(Sn==null?void 0:Sn.choice_text)}),(Sn==null?void 0:Sn.is_answer)&&ve.createElement("div",{className:Gt.yestag},"\u6B63\u786E\u7B54\u6848")))),(xn==null?void 0:xn.item_type)=="MULTIPLE"&&(($t=xn==null?void 0:xn.choices)==null?void 0:$t.map((Sn,or)=>ve.createElement("div",{className:Gt.checkbox},!(Sn!=null&&Sn.is_answer)&&ve.createElement("span",{className:Gt.checkboxitem}),(Sn==null?void 0:Sn.is_answer)&&ve.createElement("i",{className:`${Gt.checkboxitemyes} icon-duigou1`}),ve.createElement(Xe.Z,{className:Sn!=null&&Sn.is_answer?Gt.titleyes:Gt.title,value:Me[or]+(Sn==null?void 0:Sn.choice_text)}),(Sn==null?void 0:Sn.is_answer)&&ve.createElement("div",{className:Gt.yestag},"\u6B63\u786E\u7B54\u6848")))),(xn==null?void 0:xn.item_type)=="COMPLETION"&&ve.createElement("div",{className:Gt.completion},(_i=xn==null?void 0:xn.standard_answer)==null?void 0:_i.map((Sn,or)=>{var Xo;return ve.createElement("div",{style:{display:"flex"}},ve.createElement("span",{className:Gt.title},"\u586B\u7A7A\u9879",or+1),ve.createElement("div",{className:Gt.content},(Xo=Sn==null?void 0:Sn.answer_text)==null?void 0:Xo.map((Na,aa)=>ve.createElement("div",{className:Gt.items},Na))))})),(xn==null?void 0:xn.item_type)=="SUBJECTIVE"&&ve.createElement("div",{className:Gt.simple},ve.createElement("div",{className:Gt.title},"\u53C2\u8003\u7B54\u6848"),ve.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Wr=xn==null?void 0:xn.answer_texts)!=null&&Wr[0]?ve.createElement(Xe.Z,{className:Gt.content,value:(Br=xn==null?void 0:xn.answer_texts)==null?void 0:Br[0]}):ve.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(en==null?void 0:en.question_type)===8&&ve.createElement("div",null,ve.createElement(Xe.Z,{disabledFill:!0,className:Gt.content,showProgramFill:!0,value:ke.Base64.decode(((zn=en==null?void 0:en.program_attr)==null?void 0:zn.code)||"")})),(en==null?void 0:en.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"}},(en==null?void 0:en.author_name)||"- -")),ve.createElement("div",{style:{marginRight:30}},ve.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),ve.createElement("span",{style:{color:"#000000"}},(en==null?void 0:en.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"}},(en==null?void 0:en.study_count)||"0"))),ve.createElement("a",{className:Gt.shixunbutton,href:`/shixuns/${en==null?void 0:en.identifier}/challenges?exercise=true`,target:"_blank"},ve.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((en==null?void 0:en.question_type)<=4||[6,8].includes(en==null?void 0:en.question_type))&&ve.createElement("div",{className:Gt.bottom},ve.createElement("div",{className:Gt.bottomitem},ve.createElement("span",{className:Gt.left},"\u89E3\u6790"),ve.createElement("span",{className:Gt.right},en!=null&&en.analysis?ve.createElement(Xe.Z,{value:en==null?void 0:en.analysis}):ve.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ve.createElement("div",{className:Gt.bottomitem},ve.createElement("span",{className:Gt.left},"\u96BE\u5EA6"),ve.createElement("span",{className:Gt.right},(en==null?void 0:en.difficulty)===1?"\u7B80\u5355":(en==null?void 0:en.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ve.createElement("div",{className:Gt.bottomitem},ve.createElement("span",{className:Gt.left},"\u77E5\u8BC6\u70B9"),ve.createElement("span",{className:Gt.right},en!=null&&en.tag_discipline?en==null?void 0:en.tag_discipline:ve.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Oe=be(36913),ut=be(57971),Vn=be(38244),jn=be(17663),An=be(67294),Pn=Object.defineProperty,si=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,Fi=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Qi=(en,ni,zt)=>ni in en?Pn(en,ni,{enumerable:!0,configurable:!0,writable:!0,value:zt}):en[ni]=zt,Di=(en,ni)=>{for(var zt in ni||(ni={}))Vi.call(ni,zt)&&Qi(en,zt,ni[zt]);if(Fi)for(var zt of Fi(ni))Ir.call(ni,zt)&&Qi(en,zt,ni[zt]);return en},$r=(en,ni)=>si(en,mn(ni)),Yi=(en,ni,zt)=>new Promise((Kt,Ft)=>{var un=hi=>{try{Ri(zt.next(hi))}catch(Ut){Ft(Ut)}},Ti=hi=>{try{Ri(zt.throw(hi))}catch(Ut){Ft(Ut)}},Ri=hi=>hi.done?Kt(hi.value):Promise.resolve(hi.value).then(un,Ti);Ri((zt=zt.apply(en,ni)).next())});const hr=({setScoreShow:en,ScoreShow:ni,onOk:zt,isshixuns:Kt,isloadings:Ft,dispatch:un,selectedIds:Ti,user:Ri,virtualId:hi,shixunsDetail:Ut})=>{var zn;let[xn,Fr]=(0,ve.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[ri,$t]=(0,ve.useState)([]),[_i,Wr]=(0,ve.useState)([]),[Br,Sn]=(0,ve.useState)([]),[or,Xo]=(0,ve.useState)([]);const[Na,aa]=(0,ve.useState)(!1),[ur]=ct.default.useForm(),[Nr,io]=(0,ve.useState)(),[va,Ho]=(0,ve.useState)(!1);let[pi,lo]=(0,ve.useState)(Kt);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)([]),Wn=(0,ve.useRef)(new Set),ka=(0,ve.useRef)(new Set),Cn=(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=()=>{ur.resetFields(),pi=!1,lo(!1),Ss(!1),ur.submit()};(0,ve.useEffect)(()=>{ni&&(ur.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),Yo&&pi&&(ur.setFieldsValue({item_type:"SHIXUN"}),xn.item_type="SHIXUN",Fr(Di({},xn)),Va(!1)),xn.type="0",Wr(Ti),Sn(Ti),ka.current=new Set(Ti),us(xn),tl(),ts({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),wr())},[ni]),console.log(_i,Br,"listitems"),(0,ve.useEffect)(()=>{Ns>0&&setTimeout(()=>{ln(0)},2e3)},[Ns]);function us(Yt){return Yi(this,null,function*(){var Zn,Ji,xi;if(aa(!0),Fr(Di({},Yt)),(Br==null?void 0:Br.length)<=0&&Yt.type==="5"){Xo([]),aa(!1);return}let nr=Yt.type==="5"?Br==null?void 0:Br.filter(fn=>!al.includes(fn)):null,Zi=Yt.type==="5"?Br==null?void 0:Br.filter(fn=>al.includes(fn)):null;Cn.current=Cn.current+1;const vi=Cn.current;let pr=yield(0,At.ZP)("/api/item_banks.json",{method:"get",params:$r(Di({},Yt),{discipline_id:((Zn=Yt==null?void 0:Yt.courseid)==null?void 0:Zn[0])||null,sub_discipline_id:((Ji=Yt==null?void 0:Yt.courseid)==null?void 0:Ji[1])||null,ids:nr,shixun_ids:Zi,include_shixuns:!0,group_id:((xi=Yt.group_id)==null?void 0:xi.map(fn=>fn==null?void 0:fn.value))||null,keyword:Yt.keyword?encodeURIComponent(Yt.keyword):Yt.keyword,type:Yt.type==="5"?null:Yt.type,clazz:Yt.type==="3"?"ItemBanksGroup":null})});Cn.current===vi&&(Xo(pr),aa(!1))})}function tl(){return Yi(this,null,function*(){let Yt=yield(0,At.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:xn.type==="5"?null:xn.type,clazz:"ItemBanksGroup"}});$t((0,Si.L)(Yt==null?void 0:Yt.disciplines))})}function ts(Yt){return Yi(this,null,function*(){var Zn;let Ji=yield(0,At.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Yt}),xi=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Zn=Ji==null?void 0:Ji.data)==null?void 0:Zn.map(nr=>({title:nr.name,id:nr.id,pid:nr.id,value:nr.id,key:nr.id,isLeaf:!nr.have_child}))}];ms(xi)})}function wr(){return Yi(this,null,function*(){let Yt=yield(0,Vn.Dm)({});(Yt==null?void 0:Yt.status)===0&&$a(Yt==null?void 0:Yt.groups)})}function st(Yt){return Yi(this,null,function*(){var Zn,Ji,xi,nr;aa(!0);let Zi=(Zn=Yt.list)==null?void 0:Zn.filter(fn=>!al.includes(fn)),vi=(Ji=Yt.list)==null?void 0:Ji.filter(fn=>al.includes(fn));if(Zi.length===0&&vi.length===0){aa(!1),Xo([]);return}let pr=yield(0,At.ZP)("/api/item_banks.json",{method:"get",params:$r(Di({},Yt),{discipline_id:((xi=Yt==null?void 0:Yt.courseid)==null?void 0:xi[0])||null,sub_discipline_id:((nr=Yt==null?void 0:Yt.courseid)==null?void 0:nr[1])||null,ids:Zi,shixun_ids:vi,type:Yt.type==="5"?null:Yt.type,clazz:Yt.type==="3"?"ItemBanksGroup":null})});aa(!1),Xo(pr)})}const St=Yt=>Yi(void 0,null,function*(){const Zn=yield un({type:"shixunsDetail/release",payload:{id:Yt}});let Ji=Zn==null?void 0:Zn.tag_position,xi=(Zn==null?void 0:Zn.evaluation_set_position)||[],nr=Zn.status;return nr===0?(ne.ZP.success("\u53D1\u5E03\u6210\u529F"),us(xn),!0):(nr===2?ne.ZP.error(`\u7B2C${xi.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${Ji.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)}),Rt=Yt=>(Yt==null?void 0:Yt.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":xn.type==="3"&&!(Ba!=null&&Ba.length)?An.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",An.createElement("span",{onClick:()=>{var Yt;return(0,me.xg)(`/users/${(Yt=Ri==null?void 0:Ri.userInfo)==null?void 0:Yt.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):xn.type==="0"&&(or==null?void 0:or.items_count)===0&&!(xn!=null&&xn.tag_discipline_id)&&!(xn!=null&&xn.difficulty)&&!(xn!=null&&xn.keyword)&&!(xn!=null&&xn.group_id)&&!(xn!=null&&xn.difficulty)?An.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",An.createElement("span",{onClick:()=>{(0,me.xg)(`/problems/newcreate?&pageId=${hi}`),en(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",Hn=(Yt,Zn,Ji)=>Yt.map(xi=>xi.key===Zn?Di(Di({},xi),Ji):xi.children?$r(Di({},xi),{children:Hn(xi.children,Zn,Ji)}):xi),Oi=Yt=>Yi(void 0,null,function*(){const{key:Zn}=Yt;let Ji=xn.type;const xi=yield(0,Vn.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Zn),type:Ji}),{data:nr,total_count:Zi}=xi||{};Zi>0&&ms(vi=>Hn(vi,Zn,{children:nr.map(pr=>({title:pr.name,id:pr.id,pid:pr.id,value:pr.id,key:pr.id,isLeaf:!pr.have_child}))}))});return An.createElement("div",null,An.createElement(mt.default,{title:!1,footer:!1,open:ni,width:1200,centered:!0,className:on.scoremodal,onCancel:()=>{en(!1)}},An.createElement("div",{style:{display:"flex",alignItems:"center"}},An.createElement("div",{className:on.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),An.createElement(Zt.default,{className:on.tabWrap,activeKey:xn.type,onChange:Yt=>{Yt==="3"?(xn.show_all_share=!0,ts({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):xn.show_all_share=null,Yt==="0"&&ts({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),xn.type=Yt,xn.page=1,xn.updated_at="",xn.quotes="",xn.courseid="",xn.tag_discipline_id=null,xn.difficulty=null,xn.keyword=null,xn.group_id=null,xn.teach_group_id=null,ur.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(xn==null?void 0:xn.item_type)==="SHIXUN"&&xn.type!=="5"&&(pi=!0,lo(!0)),Ss(!1),xn.type==="5"&&(pi=!1,lo(!1)),Fr(Di({},xn)),us(Di({},xn)),tl()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:An.createElement("div",null,"\u5DF2\u9009",Br.length>0&&An.createElement("span",{className:on.titlecount},Br.length),Ns>0&&An.createElement("span",{className:on.add},"+",Ns)),key:"5"}]}),An.createElement(ct.default,{layout:"inline",form:ur,onValuesChange:(Yt,Zn)=>{const Ji=Object.values(Zn).some(nr=>nr!==null&&nr!==""&&nr!==void 0),xi=Zn.keyword==="";if(Ss(Ji||!xi),xn.page=1,(Zn==null?void 0:Zn.item_type)==="SHIXUN"){if(xn.type==="5"?lo(!1):lo(!0),Yt.keyword||Yt.keyword==="")return;ur.submit()}else{if(Yt!=null&&Yt.courseid&&ur.setFieldsValue({tag_discipline_id:""}),lo(!1),Yt.keyword||Yt.keyword==="")return;ur.submit()}},onFinish:Yt=>{var Zn;xn.type==="3"&&(!Yt.group_id||((Zn=Yt==null?void 0:Yt.group_id)==null?void 0:Zn.length)===0)?xn.show_all_share=!0:xn.show_all_share=null,Fr(Di(Di({},xn),Yt)),us(Di(Di({},xn),Yt))}},An.createElement(ct.default.Item,{name:"courseid"},An.createElement(ci.Z,{className:on.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:ri})),!pi&&An.createElement(ct.default.Item,{name:"tag_discipline_id"},An.createElement(On.default,{className:on.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(zn=or==null?void 0:or.tag_disciplines)==null?void 0:zn.map(Yt=>An.createElement(On.default.Option,{key:Yt.id},Yt.name)))),An.createElement(ct.default.Item,{name:pi?"diff":"difficulty"},An.createElement(On.default,{className:on.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!pi&&Po.map(Yt=>An.createElement(On.default.Option,{key:Yt.value},Yt.name)),pi&&Ws.map(Yt=>An.createElement(On.default.Option,{key:Yt.value},Yt.name)))),pi&&An.createElement(ct.default.Item,{name:"shixun_publish_status"},An.createElement(On.default,{className:on.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},ds.map(Yt=>An.createElement(On.default.Option,{key:Yt.value},Yt.name)))),xn.type==="3"&&!pi&&An.createElement(ct.default.Item,{name:"teach_group_id"},An.createElement(On.default,{className:on.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(Yt,Zn)=>(console.log("---",Yt,Zn),Zn.children.toUpperCase().indexOf(Yt.toUpperCase())!==-1)},Ba==null?void 0:Ba.map(Yt=>An.createElement(On.default.Option,{key:Yt.group_id},Yt.name)))),(xn.type==="3"||xn.type==="0")&&!pi&&An.createElement(ct.default.Item,{name:"group_id"},An.createElement(Mi.default,{treeDataSimpleMode:!0,style:{width:118},className:on.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Yt,Zn)=>Zn.title.toUpperCase().indexOf(Yt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Oi,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ao})),kl&&An.createElement("span",{className:on.allqingchu,onClick:Ua},An.createElement("i",{className:"iconfont icon-guanbi4"}),An.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),An.createElement(ct.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},An.createElement(yt.default.Search,{className:on.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:An.createElement("i",{className:`iconfont icon-sousuo9 font14 ${on.searchIcon}`,onClick:()=>ur.submit()}),onSearch:Yt=>{ur.submit()}}))),An.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},An.createElement("div",{onClick:()=>{xn.updated_at==="asc"?xn.updated_at="desc":xn.updated_at="asc",Fr($r(Di({},xn),{page:1})),us($r(Di({},xn),{page:1}))}}," ",xn.updated_at?An.createElement("img",{src:xn.updated_at==="asc"?Oe.Z:ut.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):An.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),An.createElement("div",{onClick:()=>{xn.quotes==="asc"?xn.quotes="desc":xn.quotes="asc",Fr($r(Di({},xn),{page:1})),us($r(Di({},xn),{page:1}))},style:{marginLeft:20}}," ",xn.quotes?An.createElement("img",{src:xn.quotes==="asc"?Oe.Z:ut.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):An.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),An.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:An.createElement(at.Z,{styles:{margin:"18px auto"},customText:gn()})},loading:Na,rowKey:Yt=>Yt.id,rowSelection:{type:"checkbox",selectedRowKeys:_i,getCheckboxProps:Yt=>({disabled:Yt.shixun_tag_num===1}),onSelect(Yt,Zn,Ji){if(Zn)pi&&el([...al,Yt.id]),Wr([..._i,Yt.id]),So([...uo,Yt]),Yt.identifier?Wn.current.add(Yt.id):ka.current.add(Yt.id),ln(1),Sn([...Br,Yt.id]);else{const xi=uo.filter(vi=>vi.id!==Yt.id);So(xi);const nr=xi.map(vi=>vi.id);Wr([...nr]),Yt.identifier?Wn.current.delete(Yt.id):ka.current.delete(Yt.id);let Zi=Br.filter(vi=>vi!==Yt.id);if(Sn(Zi),pi){let vi=al.filter(pr=>pr!==Yt.id);el([...vi])}if(xn.type==="5"){st($r(Di({},xn),{list:[...Zi]}));return}}},onSelectAll(Yt,Zn,Ji){if(Yt){const xi=Ji.map(nr=>nr.id);pi&&el([...al,...xi]),So([...uo,...Ji]),Wr([..._i,...xi]),Sn([...Br,...xi]);for(const nr of Ji)nr.identifier?Wn.current.add(nr.id):ka.current.add(nr.id)}else{const xi=Ji.map(vi=>vi.id),nr=_i.filter(vi=>!xi.some(pr=>pr===vi)),Zi=uo.filter(vi=>!xi.some(pr=>pr===vi.id));if(So(Zi),Wr([...nr]),Sn([...nr]),pi){let vi=al.filter(pr=>!xi.some(fn=>fn===pr.id));el([...vi])}xn.type==="5"&&st($r(Di({},xn),{list:[...nr]}));for(const vi of xi)vi.identifier?Wn.current.delete(vi):ka.current.delete(vi)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(Yt,Zn,Ji)=>{const xi=`No.${Yt}`;return An.createElement(We.Z,{title:xi},An.createElement("span",null,xi))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:pi?"30%":"60%",key:"name",render:(Yt,Zn,Ji)=>{var xi;return An.createElement(We.Z,{title:Rt(Zn)},An.createElement("span",null,An.createElement(Xe.Z,{key:1,showLines:1,showTextOnly:!0,value:pi||Zn!=null&&Zn.challenge_names?Zn!=null&&Zn.title||Yt===null?"--":Yt:(Zn==null?void 0:Zn.item_type)=="BPROGRAM"?(xi=Zn==null?void 0:Zn.program_attr)==null?void 0:xi.description:Yt})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(Yt,Zn,Ji)=>An.createElement(We.Z,{title:Yt},An.createElement("span",null,Yt||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!pi,render:(Yt,Zn,Ji)=>{var xi;return An.createElement(We.Z,{title:Rt(Zn)},An.createElement("span",null,Yt?(xi=Yt==null?void 0:Yt.split("\u3001"))==null?void 0:xi[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!pi,render:(Yt,Zn,Ji)=>An.createElement(We.Z,{title:Rt(Zn)},An.createElement("span",null,Yt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(Yt,Zn,Ji)=>{var xi,nr,Zi,vi;return An.createElement(We.Z,{title:Rt(Zn)},An.createElement("div",null,pi||Zn!=null&&Zn.challenge_names?(Zn==null?void 0:Zn.level)||((nr=(xi=Po==null?void 0:Po.filter(pr=>pr.value===Yt))==null?void 0:xi[0])==null?void 0:nr.name):(vi=(Zi=Po==null?void 0:Po.filter(pr=>pr.value===Yt))==null?void 0:Zi[0])==null?void 0:vi.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!pi,render:(Yt,Zn,Ji)=>An.createElement(We.Z,{title:Rt(Zn)},An.createElement("div",null,Yt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(Yt,Zn,Ji)=>An.createElement(We.Z,{title:Rt(Zn)},An.createElement("div",null,pi||Zn!=null&&Zn.challenge_names?(Zn==null?void 0:Zn.study_count)||(Zn==null?void 0:Zn.stu_num):Yt))},{title:An.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",An.createElement(We.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},An.createElement(jn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!pi,render:(Yt,Zn,Ji)=>An.createElement(We.Z,{title:Rt(Zn)},An.createElement("div",null,Yt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(Yt,Zn,Ji)=>An.createElement(We.Z,{title:Rt(Zn)},An.createElement("div",{style:{flex:1,textAlign:"start"}},An.createElement("a",{onClick:()=>{var xi,nr;io($r(Di({},Zn),{question_type:pi||Zn!=null&&Zn.challenge_names?5:(nr=(xi=Er==null?void 0:Er.filter(Zi=>Zi.value===(Zn==null?void 0:Zn.item_type)))==null?void 0:xi[0])==null?void 0:nr.question_type})),Ho(!0)}},"\u67E5\u770B"),(Zn==null?void 0:Zn.shixun_tag_num)===1&&An.createElement("a",{style:{marginLeft:10},onClick:()=>{mt.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:An.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",An.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Zn==null?void 0:Zn.identifier}/challenges`)}},(Zn==null?void 0:Zn.shixun_name)||"--"),"\uFF1F"),onOk:()=>Yi(void 0,null,function*(){if(!St(Zn==null?void 0:Zn.identifier))return new Promise((xi,nr)=>{nr()})})})}},"\u53D1\u5E03")))}].filter(Yt=>!Yt.hidden)}),An.createElement(Xt.Z,{current:xn.page,total:(or==null?void 0:or.items_count)||(or==null?void 0:or.shixuns_count),style:{marginBottom:20},defaultPageSize:xn.per_page,hideOnSinglePage:!(or!=null&&or.items_count),showTotal:Yt=>An.createElement("span",null,"\u5171\xA0",An.createElement("span",{style:{color:"#165DFF"}},Yt),"\xA0\u6761\u6570\u636E"),pageSize:xn.per_page,onChange:(Yt,Zn)=>{xn.page=Yt,xn.per_page=Zn,Fr(Di({},xn)),us(Di({},xn))}}),An.createElement("div",{className:on.bottom},An.createElement(pt.ZP,{className:on.no,onClick:()=>{en(!1)}},"\u53D6\u6D88"),An.createElement(pt.ZP,{loading:Ft,style:{width:Ft&&75},className:on.yes,onClick:()=>Yi(void 0,null,function*(){if((Br==null?void 0:Br.length)<=0){ne.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}zt([...ka.current],[...Wn.current],!0,Br==null?void 0:Br.length)})},"\u786E\u8BA4"))),An.createElement(mt.default,{open:va,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:on.previewModal,width:1e3,centered:!0,onCancel:()=>{Ho(!1)},onOk:()=>{Ho(!1)}},An.createElement(et,{qitem:Nr})))};var dr=(0,xe.connect)(({shixunsDetail:en,user:ni})=>({shixunsDetail:en,user:ni}))(hr),kn=be(12082),Ii=be(94699),ra=be.n(Ii),Un=be(67294),Kr=Object.defineProperty,ia=Object.defineProperties,sa=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertySymbols,ma=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable,da=(en,ni,zt)=>ni in en?Kr(en,ni,{enumerable:!0,configurable:!0,writable:!0,value:zt}):en[ni]=zt,la=(en,ni)=>{for(var zt in ni||(ni={}))ma.call(ni,zt)&&da(en,zt,ni[zt]);if(Wa)for(var zt of Wa(ni))Ha.call(ni,zt)&&da(en,zt,ni[zt]);return en},No=(en,ni)=>ia(en,sa(ni)),ti=(en,ni)=>{var zt={};for(var Kt in en)ma.call(en,Kt)&&ni.indexOf(Kt)<0&&(zt[Kt]=en[Kt]);if(en!=null&&Wa)for(var Kt of Wa(en))ni.indexOf(Kt)<0&&Ha.call(en,Kt)&&(zt[Kt]=en[Kt]);return zt},Ee=(en,ni,zt)=>new Promise((Kt,Ft)=>{var un=hi=>{try{Ri(zt.next(hi))}catch(Ut){Ft(Ut)}},Ti=hi=>{try{Ri(zt.throw(hi))}catch(Ut){Ft(Ut)}},Ri=hi=>hi.done?Kt(hi.value):Promise.resolve(hi.value).then(un,Ti);Ri((zt=zt.apply(en,ni)).next())});const pn=({title:en,icon:ni,className:zt,style:Kt,children:Ft})=>Un.createElement("div",{className:Qt()(ot.card,zt),style:Kt},Un.createElement("div",{className:ot.head},Un.createElement("i",{className:ni}),Un.createElement("b",null,en)),Un.createElement("div",{className:ot.element},Ft)),hn=en=>{var ni=en,{value:zt,onChange:Kt}=ni,Ft=ti(ni,["value","onChange"]);return Un.createElement(Re.Z,No(la({},Ft),{defaultValue:zt,onChange:Kt}))},ii=({value:en=[],onChange:ni,params:zt,className:Kt})=>{const[Ft,un]=(0,ve.useState)(!1),[Ti,Ri]=(0,ve.useState)([]),[hi,Ut]=(0,ve.useState)(""),[zn,xn]=(0,ve.useState)([]),[Fr,ri]=(0,ve.useState)("");(0,ve.useEffect)(()=>{$t()},[]);function $t(){return Ee(this,null,function*(){let _i=yield(0,At.ZP)(`/api/courses/${zt==null?void 0:zt.coursesId}/teachers`,{method:"get",params:{homework_id:zt.categoryId,limit:1e3}});xn((_i==null?void 0:_i.teacher_list)||[])})}return Un.createElement(ve.Fragment,null,Un.createElement("div",{className:Qt()(ot.collaborator,Kt)},en==null?void 0:en.map(_i=>Un.createElement(Je.Z,{align:"middle",className:`${ot.btn} ${Fr==(_i==null?void 0:_i.user_id)?ot.delBorder:""}`,key:_i.user_id},Un.createElement("span",{className:"c-grey-333"},_i==null?void 0:_i.name),Un.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${ot.delSty}`,onMouseEnter:()=>{ri(_i==null?void 0:_i.user_id)},onMouseLeave:()=>{ri("")},onClick:()=>{const Wr=en.filter(Br=>Br.user_id!==_i.user_id);Ri(Wr.map(Br=>Br.user_id)),ni(Wr)}}))),Un.createElement(pt.ZP,{className:ot.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>un(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),Un.createElement(mt.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:Ft,onCancel:()=>un(!1),onOk:()=>{const _i=zn.filter(Wr=>Ti.includes(Wr.user_id));ni(_i),un(!1)},afterClose:()=>{Ut("")}},Un.createElement(Je.Z,{align:"middle"},Un.createElement("label",null,"\u59D3\u540D\uFF1A"),Un.createElement(yt.default.Search,{value:hi,size:"middle",style:{flex:1},onChange:_i=>Ut(_i.target.value)})),Un.createElement(Vt.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:_i=>{Ri(_i)},selectedRowKeys:Ti,getCheckboxProps:_i=>({disabled:_i.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:zn.filter(_i=>_i.name.includes(hi)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var In=()=>{var en;const ni=(0,xe.useParams)(),zt=(0,xe.useDispatch)(),[Kt]=ct.default.useForm(),Ft=ct.default.useWatch("hack_score_settings",Kt),un=ct.default.useWatch("open_code",Kt),Ti=ct.default.useWatch("rank_forbidden",Kt),Ri=ct.default.useWatch("hack_analysis",Kt),hi=ct.default.useWatch("hack_answer",Kt),[Ut,zn]=(0,ve.useState)([]),[xn,Fr]=(0,ve.useState)({}),[ri,$t]=(0,ve.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[_i,Wr]=(0,ve.useState)(!0),[Br,Sn]=(0,ve.useState)(!1),[or,Xo]=(0,ve.useState)(!1),[Na,aa]=(0,ve.useState)({}),[ur,Nr]=(0,ve.useState)(!1),[io,va]=(0,ve.useState)(!1),Ho=(0,ve.useRef)(!1),pi=(0,ve.useRef)(String(Math.random()).slice(-6)),lo=(en=window.location.pathname)==null?void 0:en.includes("add");(0,ve.useEffect)(()=>(window.addEventListener("visibilitychange",al),()=>{window.removeEventListener("visibilitychange",al)}),[Ut,Na]),(0,ve.useEffect)(()=>(zt({type:"globalSetting/footerToggle",payload:!1}),()=>{zt({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ve.useEffect)(()=>{Ut.length&&Ft!==void 0&&Ao()},[Ft,JSON.stringify(Ut==null?void 0:Ut.map(Er=>Er.id+Er.hack_score))]),(0,ve.useEffect)(()=>{el(),lo?Wr(!1):Ns()},[]);const al=()=>Ee(void 0,null,function*(){var Er;if(document.visibilityState==="visible"){va(!0);let uo=Ut.map(ka=>ka.id),So=localStorage.getItem(pi.current);So&&(So=JSON.parse(So),So=Array.isArray(So)?So:[],uo=[...uo,...So],localStorage.removeItem(pi.current));const Wn=yield(0,At.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(Wn!=null&&Wn.items){const ka=(Er=Wn==null?void 0:Wn.items)==null?void 0:Er.map(Cn=>{const Po=Ut.find(Ws=>Ws.id===Cn.id);return Po?No(la({},Cn),{hack_score:Po.hack_score}):Cn});zn(ka)}va(!1)}}),el=()=>Ee(void 0,null,function*(){const Er=yield(0,At.ZP)(`/api/courses/${ni.coursesId}/homework_commons/new.json`,{method:"get",params:{category:ni==null?void 0:ni.categoryId,type:5}});Er!=null&&Er.course_name&&Fr(Er)}),Ns=()=>Ee(void 0,null,function*(){var Er,uo;const So=yield(0,At.ZP)(`/api/homework_commons/${ni==null?void 0:ni.categoryId}/edit_hack.json`,{method:"get"});if((So==null?void 0:So.status)===0){const Wn=(Er=So==null?void 0:So.collaborators_data)==null?void 0:Er.map(Cn=>({user_id:Cn.id,name:Cn.real_name}));Kt.setFieldsValue(No(la({},So),{user_ids:Wn,rank_forbidden_start:So!=null&&So.rank_forbidden_start?ra()(So==null?void 0:So.rank_forbidden_start):"",rank_forbidden_end:So!=null&&So.rank_forbidden_end?ra()(So==null?void 0:So.rank_forbidden_end):""}));const ka=(uo=So==null?void 0:So.items)==null?void 0:uo.map((Cn,Po)=>{var Ws,ds;return No(la({},Cn),{hack_score:(ds=(Ws=So==null?void 0:So.hack_settings)==null?void 0:Ws[Po])==null?void 0:ds.hack_score})});zn(ka||[]),aa(la({},So))}Wr(!1)}),ln=()=>{let Er=`/classrooms/${ni==null?void 0:ni.coursesId}/program_homework`;return lo||(Er=`/classrooms/${ni==null?void 0:ni.coursesId}/program_homework/${ni==null?void 0:ni.categoryId}/detail`),Er},Yo=[{name:(xn==null?void 0:xn.course_name)||"",path:`/classrooms/${xn==null?void 0:xn.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=>Un.createElement(We.Z,{placement:"topLeft",title:Er},Un.createElement("span",null,Er||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(Er,uo,So)=>Un.createElement(Te.Z,{disabled:Ft!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:Er,onChange:Wn=>{Ut[So].hack_score=Wn;const ka=Ut.reduce((Cn,Po)=>Cn+Number(Po.hack_score||0),0);Kt.setFieldsValue({total_score:ka.toFixed(2)}),zn([...Ut])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:Er=>Un.createElement("span",null,Er===1?"\u7B80\u5355":Er===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:Er=>Un.createElement(We.Z,{placement:"topLeft",title:Er},Un.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)=>Un.createElement("span",null,Un.createElement("span",{onClick:()=>Ee(void 0,null,function*(){var So;zt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let Wn=yield(0,At.ZP)(`/api/problems/${(So=uo==null?void 0:uo.program_attr)==null?void 0:So.identifier}/start.json`,{method:"get"});(Wn==null?void 0:Wn.status)===0&&(0,me.xg)(`/myproblems/${Wn==null?void 0:Wn.identifier}?type=1&pageId=edit&backUrl=${ln()}`),zt({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),Un.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"),Un.createElement("span",{onClick:()=>{const So=Ut.filter(Wn=>Wn.id!==uo.id);zn(So),ne.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],Ao=()=>{const Er=[...Ut],uo=Kt.getFieldValue("total_score"),So=Er==null?void 0:Er.length;let Wn=0,ka;switch(Ft){case 0:const Cn=(uo/So).toFixed(2);Er.map((tl,ts)=>{Wn=ts,tl.hack_score=Cn>0?Cn:0}),ka=(uo-Cn*(So-1)).toFixed(2),Er[Wn].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)=>{Wn=ts,tl.hack_score=(Po[tl.difficulty]*Ua).toFixed(2),Ws=Ws+Number(tl.hack_score)});let us=Er[Wn].hack_score;ka=(uo-Ws+Number(us)).toFixed(2),Er[Wn].hack_score=ka>0?ka:0;break}zn(Er)},ms=Er=>{Ho.current=Er,Kt.submit()},Ba=Er=>Ee(void 0,null,function*(){var uo;if(!Ut.length){ne.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),Kt.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}Nr(!0);const So=[],Wn=Ut.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),Cn=yield(0,At.ZP)(`/api/courses/${ni.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:No(la({},Er),{category:lo?Number(ni==null?void 0:ni.categoryId):null,homework_id:lo?null:Na==null?void 0:Na.homework_id,hack_settings:Wn,user_ids:ka,hack_ids:So})});if((Cn==null?void 0:Cn.status)===0)if(ne.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ho.current){const Po=la({},Cn);$t(Po),zt({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[Cn==null?void 0:Cn.id],selectArrsAll:[Po],params:ni,detail:!0,type:2,manage_all_group:Po==null?void 0:Po.manage_all_group}})}else xe.history.push(`/classrooms/${ni.coursesId}/program_homework/${Cn==null?void 0:Cn.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=Ut.map(Cn=>{var Po;return(Po=Cn.program_attr)==null?void 0:Po.origin_item_bank_id}),Wn=[];Er.forEach(Cn=>{if(So.includes(Cn)){const Po=Ut.find(Ws=>{var ds;return((ds=Ws.program_attr)==null?void 0:ds.origin_item_bank_id)===Cn});Wn.push(Po)}else uo.push(Cn)}),Xo(!0);const ka=yield(0,At.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:uo}});if(ka!=null&&ka.items){const Cn=[...Wn,...ka==null?void 0:ka.items];if(Ft===2){const Po=Cn.reduce((Ws,ds)=>Ws+Number(ds.hack_score||0),0);Kt.setFieldsValue({total_score:Po.toFixed(2)})}zn(Cn),Sn(!1)}Xo(!1)});return Un.createElement("div",{className:ot.wrap},Un.createElement(te.Z,{spinning:_i},Un.createElement("div",{className:ot.center},Un.createElement(Nt._b,{dataSource:Yo,className:"mb20"}),Un.createElement(ct.default,{form:Kt,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]),Kt.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"},Un.createElement(pn,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},Un.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"}]},Un.createElement(yt.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),Un.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"}]},Un.createElement(hn,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),Un.createElement(pn,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},Un.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"}]},Un.createElement(ue.default.Group,null,Un.createElement(ue.default,{value:"c"},"C\u8BED\u8A00"),Un.createElement(ue.default,{value:"c++"},"C++\u8BED\u8A00"),Un.createElement(ue.default,{value:"java"},"Java\u8BED\u8A00"),Un.createElement(ue.default,{value:"python"},"Python\u8BED\u8A00"))),Un.createElement(Je.Z,{align:"middle"},Un.createElement(ct.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},Un.createElement(Te.Z,{precision:1,disabled:Ft===2,min:0,style:{width:223},addonAfter:"\u5206"})),Un.createElement(ct.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},Un.createElement(Te.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),Un.createElement(ct.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},Un.createElement(se.ZP.Group,null,Un.createElement(se.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),Un.createElement(se.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),Un.createElement(se.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),Un.createElement(Je.Z,{align:"middle"},Un.createElement("span",null,"\u9898\u76EE\u5217\u8868"),Un.createElement(pt.ZP,{onClick:()=>Sn(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),Un.createElement(pt.ZP,{onClick:()=>(0,me.xg)(`/problems/newcreate?pageId=${pi.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),Un.createElement("div",{className:ot.tip},Un.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"),Un.createElement(ct.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},Un.createElement(ai,{dataSource:Ut,setDataSource:zn,columns:Va,loading:io}))),Un.createElement(pn,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},Un.createElement("div",{className:ot.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),Un.createElement("div",{className:`${ot.content} mb30`},Un.createElement(ct.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},Un.createElement(se.ZP.Group,null,Un.createElement(se.ZP,{value:0},Un.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),Un.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),Un.createElement(se.ZP,{style:{marginLeft:40},value:1},Un.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),Un.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),Un.createElement("div",{className:`${ot.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),Un.createElement("div",{className:ot.content},Un.createElement(ct.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},Un.createElement(ue.default,null,Un.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),Un.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")))),Un.createElement("div",{className:`${ot.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),Un.createElement("div",{className:ot.content},Un.createElement(ct.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},Un.createElement(ue.default,null,Un.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),Un.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"))),Un.createElement(ct.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},Un.createElement(ue.default,null,Un.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),Un.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&&Un.createElement(ct.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},Un.createElement(se.ZP.Group,null,Un.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Un.createElement(se.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),Un.createElement(ct.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},Un.createElement(ue.default,null,Un.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),Un.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&&Un.createElement(Je.Z,{align:"middle",className:"ml25"},Un.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"},Un.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})),Un.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"},Un.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}))),Un.createElement(ct.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},Un.createElement(ue.default,null,Un.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),Un.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&&Un.createElement(ct.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},Un.createElement(se.ZP.Group,null,Un.createElement(se.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Un.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),Un.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"))),Un.createElement(ct.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},Un.createElement(ue.default,null,Un.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),Un.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!hi&&Un.createElement(ct.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},Un.createElement(se.ZP.Group,null,Un.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Un.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),Un.createElement("div",{className:`${ot.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),Un.createElement(ct.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},Un.createElement(ii,{params:ni}))))),Un.createElement("div",{className:ot.fixedBtns},Un.createElement(Je.Z,{align:"middle",className:ot.center},Un.createElement(pt.ZP,{onClick:()=>xe.history.push(ln()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),Un.createElement(pt.ZP,{loading:ur&&!Ho.current,disabled:ur&&Ho.current,onClick:()=>ms(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),Un.createElement(pt.ZP,{loading:ur&&Ho.current,disabled:ur&&!Ho.current,onClick:()=>ms(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),Un.createElement(dr,{setScoreShow:Sn,isshixuns:!1,ScoreShow:Br,virtualId:pi.current,isloadings:or,onOk:$a,selectedIds:Ut.map(Er=>{var uo;return(uo=Er.program_attr)==null?void 0:uo.origin_item_bank_id})||[]}),Un.createElement(kn.Z,{courseEndTime:ri==null?void 0:ri.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${ni==null?void 0:ni.coursesId}/program_homework/${ri==null?void 0:ri.id}/detail`}}))}},12082:function(Dn,ei,be){"use strict";var ve=be(67294),ot=be(91773),wt=be(2453),Qt=be(62844),Nt=be(71230),Re=be(98813),Je=be(37720),pt=be(15746),mt=be(18046),yt=be(84567),Vt=be(94699),ct=be.n(Vt),We=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,nt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,at=(Jn,qn,sn)=>qn in Jn?xe(Jn,qn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):Jn[qn]=sn,jt=(Jn,qn)=>{for(var sn in qn||(qn={}))ft.call(qn,sn)&&at(Jn,sn,qn[sn]);if(nt)for(var sn of nt(qn))qe.call(qn,sn)&&at(Jn,sn,qn[sn]);return Jn},Mt=(Jn,qn)=>Pe(Jn,Ke(qn)),bt=(Jn,qn)=>{var sn={};for(var Nn in Jn)ft.call(Jn,Nn)&&qn.indexOf(Nn)<0&&(sn[Nn]=Jn[Nn]);if(Jn!=null&&nt)for(var Nn of nt(Jn))qn.indexOf(Nn)<0&&qe.call(Jn,Nn)&&(sn[Nn]=Jn[Nn]);return sn},Bt=(Jn,qn,sn)=>new Promise((Nn,lt)=>{var Ge=ai=>{try{Rn(sn.next(ai))}catch(Zt){lt(Zt)}},Ne=ai=>{try{Rn(sn.throw(ai))}catch(Zt){lt(Zt)}},Rn=ai=>ai.done?Nn(ai.value):Promise.resolve(ai.value).then(Ge,Ne);Rn((sn=sn.apply(Jn,qn)).next())});const Ht=Jn=>{var qn=Jn,{classroomList:sn,dispatch:Nn,courseEndTime:lt,onWindowBack:Ge}=qn,Ne=bt(qn,["classroomList","dispatch","courseEndTime","onWindowBack"]),Rn,ai,Zt,ci,On,Mi,Xt,At,on,Si,Gt,Xe,ke,Me,He,et,Oe,ut,Vn,jn,An,Pn,si,mn,Fi,Vi,Ir,Qi,Di,$r,Yi,hr,dr,kn,Ii,ra,Un,Kr,ia;const sa=(0,te.useParams)(),[Wa]=ot.default.useForm(),[ma,Ha]=(0,ve.useState)(1),[da,la]=(0,ve.useState)([]),[No,ti]=(0,ve.useState)(0),[Ee,pn]=(0,ve.useState)(2e3),[hn,ii]=(0,ve.useState)(!0),[Yn,In]=(0,ve.useState)(!1),[en,ni]=(0,ve.useState)(!1),[zt,Kt]=(0,ve.useState)([]),[Ft,un]=(0,ve.useState)(!0),[Ti,Ri]=(0,ve.useState)(!((Zt=(ai=(Rn=sn.actionTabs)==null?void 0:Rn.selectArrsAll)==null?void 0:ai[0])!=null&&Zt.send_type));let[hi,Ut]=(0,ve.useState)([0,0,0]);(0,ve.useEffect)(()=>{var Br,Sn,or,Xo,Na,aa,ur,Nr,io,va,Ho,pi,lo;if(sn.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(ri(),(or=(Sn=(Br=sn.actionTabs)==null?void 0:Br.selectArrsAll)==null?void 0:Sn[0])!=null&&or.can_publish?Ut([...(io=(Nr=(ur=sn.actionTabs)==null?void 0:ur.selectArrsAll)==null?void 0:Nr[0])==null?void 0:io.difficult_count]):Ut([...(aa=(Na=(Xo=sn.actionTabs)==null?void 0:Xo.selectArrsAll)==null?void 0:Na[0])==null?void 0:aa.difficult_settings]),Ri(!((pi=(Ho=(va=sn.actionTabs)==null?void 0:va.selectArrsAll)==null?void 0:Ho[0])!=null&&pi.send_type)),zn(),sn.actionTabs.type===2){const al=(lo=sn.actionTabs.selectArrsAll)==null?void 0:lo[0];un(al.unified_setting)}else un(!1)},[sn.actionTabs]),(0,ve.useEffect)(()=>{if(Yn){if(en)return;Nn({type:"classroomList/setActionTabs",payload:{}}),(0,Te.GJ)()?(Nn({type:"classroomList/getClassroomTeacherCommonList",payload:Mt(jt({},sn.actionTabs.params),{type:1})}),Nn({type:"shixunHomeworks/getWorkList",payload:jt({},sa)})):Nn({type:"classroomList/getClassroomCommonList",payload:jt({},sn.actionTabs.params)})}},[Yn]);const zn=Br=>Bt(void 0,null,function*(){ii(!0);const Sn=yield(0,se.c_)(Mt(jt({},sa),{page:Br||ma,limit:2e4,homework_id:sn.actionTabs.type===1?"":sn.actionTabs.selectArrs[0]}));Sn==null||Sn.course_groups.map((or,Xo)=>{or.key=or.id,or.title=or.name,or.disabled=or.is_published}),Sn&&(la([...Sn==null?void 0:Sn.course_groups]),ti(Sn==null?void 0:Sn.course_groups_count),ii(!1),Br||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"))}))}),xn=()=>{(0,Te.GJ)()?sn.actionTabs.detail?(Nn({type:"shixunHomeworks/setActionTabs",payload:{}}),Nn({type:"shixunHomeworks/getWorkList",payload:jt({},sa)}),Nn({type:"shixunHomeworks/getWorkSetting",payload:jt({},sa)})):Nn({type:"classroomList/getClassroomTeacherCommonList",payload:Mt(jt({},sn.actionTabs.params),{type:5,category:sn.actionTabs.params.categoryId})}):Nn({type:"classroomList/getClassroomCommonList",payload:jt({},sn.actionTabs.params)})},Fr=()=>Bt(void 0,null,function*(){var Br,Sn;if((0,Te.Rm)()&&!((Br=sn.AssistantObject.hack)!=null&&Br.can_publish)){wt.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"),Wr(!1);return}const or=jt({},Wa.getFieldsValue());if(or.end_time<=or.publish_time){wt.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Wr(!1);return}if((zt==null?void 0:zt.length)<=0&&!Ft&&da.length>0){wt.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Wr(!1);return}if(hi.reduce((aa,ur)=>aa+ur)===0&&!Ti){wt.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Wr(!1);return}let Xo={homework_ids:[...sn.actionTabs.selectArrs],group_ids:zt.length>0?zt.map(aa=>aa.id):(Sn=sn.detailCommonHomeworksList)==null?void 0:Sn.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:hi==null?void 0:hi.map(aa=>aa),send_type:Ti?"0":"1",unified_setting:!zt.length};if(Wr(!0),(yield(0,We.ZP)(`/api/courses/${sa.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:jt({},Xo)})).status===0){if(Wr(!1),(0,ne.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),wt.ZP.success("\u53D1\u5E03\u6210\u529F"),Nn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Ge){Ge();return}Ne.onCallback&&Ne.onCallback(),xn(),localStorage.getItem("Noviceguide")==="0"||Nn({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 Wr(!1)}),ri=()=>{Ha(1),la([]),Kt([])},$t=No>ma*Ee,[_i,Wr]=(0,ve.useState)(!1);return me.createElement(Qt.default,{width:600,confirmLoading:_i,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:sn.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Fr,onCancel:()=>{if(ri(),Nn({type:"classroomList/setActionTabs",payload:{}}),Ge){Ge();return}xn()}},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(ot.default,{form:Wa},me.createElement("div",{style:{paddingLeft:0}},sn.actionTabs.type===2&&me.createElement(Nt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),me.createElement(Re.ZP.Group,{value:Ti,disabled:!((Mi=(On=(ci=sn.actionTabs)==null?void 0:ci.selectArrsAll)==null?void 0:On[0])!=null&&Mi.can_publish),onChange:Br=>{Ri(Br.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(Nt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{style:{marginRight:65}}),me.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",me.createElement(Je.Z,{value:hi[0],onChange:Br=>{hi[0]=Br,Ut([...hi])},min:0,disabled:!((on=(At=(Xt=sn.actionTabs)==null?void 0:Xt.selectArrsAll)==null?void 0:At[0])!=null&&on.can_publish),placeholder:`\u6700\u5927${(ke=(Xe=(Gt=(Si=sn.actionTabs)==null?void 0:Si.selectArrsAll)==null?void 0:Gt[0])==null?void 0:Xe.difficult_count)==null?void 0:ke[0]}`,max:(Oe=(et=(He=(Me=sn.actionTabs)==null?void 0:Me.selectArrsAll)==null?void 0:He[0])==null?void 0:et.difficult_count)==null?void 0:Oe[0],style:{width:60}})),me.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",me.createElement(Je.Z,{value:hi[1],onChange:Br=>{hi[1]=Br,Ut([...hi])},min:0,disabled:!((jn=(Vn=(ut=sn.actionTabs)==null?void 0:ut.selectArrsAll)==null?void 0:Vn[0])!=null&&jn.can_publish),max:(mn=(si=(Pn=(An=sn.actionTabs)==null?void 0:An.selectArrsAll)==null?void 0:Pn[0])==null?void 0:si.difficult_count)==null?void 0:mn[1],placeholder:`\u6700\u5927${(Qi=(Ir=(Vi=(Fi=sn.actionTabs)==null?void 0:Fi.selectArrsAll)==null?void 0:Vi[0])==null?void 0:Ir.difficult_count)==null?void 0:Qi[1]}`,style:{width:60}})),me.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",me.createElement(Je.Z,{value:hi[2],onChange:Br=>{hi[2]=Br,Ut([...hi])},min:0,disabled:!((Yi=($r=(Di=sn.actionTabs)==null?void 0:Di.selectArrsAll)==null?void 0:$r[0])!=null&&Yi.can_publish),placeholder:`\u6700\u5927${(Ii=(kn=(dr=(hr=sn.actionTabs)==null?void 0:hr.selectArrsAll)==null?void 0:dr[0])==null?void 0:kn.difficult_count)==null?void 0:Ii[2]}`,max:(ia=(Kr=(Un=(ra=sn.actionTabs)==null?void 0:ra.selectArrsAll)==null?void 0:Un[0])==null?void 0:Kr.difficult_count)==null?void 0:ia[2],style:{width:60}}))),me.createElement(Nt.Z,{className:"mt30",align:"middle"},me.createElement(pt.Z,null,me.createElement(ot.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},me.createElement(mt.default,{style:{width:170,marginRight:"25px"},disabledDate:Br=>(0,ge.Q8)(Br,lt),disabledTime:Br=>(0,ge.d0)(Br),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(ot.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},me.createElement(mt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ct()((0,ne.U6)(),"HH:mm")},disabledDate:Br=>(0,ge.Q8)(Br,lt,Wa.getFieldValue("publish_time")),disabledTime:Br=>(0,ge.d0)(Br,Wa.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),sn.actionTabs.type===2&&me.createElement(Nt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),me.createElement(Re.ZP.Group,{value:Ft,onChange:Br=>{un(Br.target.value),Kt([])}},me.createElement(Re.ZP,{value:!0,disabled:!sn.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&&sn.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"')),(sn.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(yt.default,{checked:zt.length===da.length,onChange:Br=>{zt.length===da.length?Kt([]):Kt(da.filter(Sn=>!Sn.is_published))}},"\u5168\u9009")," "),me.createElement("span",{style:{width:16}}),me.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",zt.length||0,"\u4E2A\u5206\u73ED")),(sn.actionTabs.type===1||!Ft)&&da.length>0&&me.createElement(ue.Z,{data:da,selectedRowKeys:zt,setSelectedRowKeys:Kt})))};ei.Z=(0,te.connect)(({classroomList:Jn})=>({classroomList:Jn}))(Ht)},17998:function(Dn,ei,be){"use strict";be.d(ei,{Q8:function(){return Ge},d0:function(){return Ne},w6:function(){return lt}});var ve=be(67294),ot=be(18046),wt=be(88044),Qt=be(2453),Nt=be(62844),Re=be(98813),Je=be(71230),pt=be(15746),mt=be(83062),yt=be(84567),Vt=be(85804),ct=be(94699),We=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),nt=be(96332),ft=be(93686),qe=be(67294),at=Object.defineProperty,jt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Jn=(On,Mi,Xt)=>Mi in On?at(On,Mi,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):On[Mi]=Xt,qn=(On,Mi)=>{for(var Xt in Mi||(Mi={}))Bt.call(Mi,Xt)&&Jn(On,Xt,Mi[Xt]);if(bt)for(var Xt of bt(Mi))Ht.call(Mi,Xt)&&Jn(On,Xt,Mi[Xt]);return On},sn=(On,Mi)=>jt(On,Mt(Mi)),Nn=(On,Mi,Xt)=>new Promise((At,on)=>{var Si=ke=>{try{Xe(Xt.next(ke))}catch(Me){on(Me)}},Gt=ke=>{try{Xe(Xt.throw(ke))}catch(Me){on(Me)}},Xe=ke=>ke.done?At(ke.value):Promise.resolve(ke.value).then(Si,Gt);Xe((Xt=Xt.apply(On,Mi)).next())});function lt(On,Mi){const Xt=[];for(let At=On;At<Mi;At++)Xt.push(At);return Xt}const Ge=(On,Mi,Xt)=>{const At=On<We()().startOf("day"),on=On>We()(Mi).endOf("day"),Si=On<We()(Xt).startOf("day");return Mi?Xt?We()()<=We()(Xt)?Si||on:At||on:On&&At||on:Xt&&We()()<=We()(Xt)?Si:At},Ne=(On,Mi)=>{const Xt=parseInt(We()(On).format("HH")),At=parseInt(We()().format("HH")),on=parseInt(We()().format("mm"));if(!On)return{disabledHours:()=>lt(0,At),disabledMinutes:()=>lt(0,on)};if(Mi){const Si=parseInt(We()(Mi).format("HH")),Gt=parseInt(We()(Mi).format("mm"));return We()(On).isSame(We()(Mi),"day")?{disabledHours:()=>lt(0,Si),disabledMinutes:()=>Xt<=Si?lt(0,Gt):[]}:void 0}if(We()(On).isSame(We()(),"day"))return{disabledHours:()=>lt(0,At),disabledMinutes:()=>We()(On).isSame(We()(),"hour")&&Xt<=At?lt(0,on):[]}},Rn=(On,Mi)=>On==null?void 0:On.map(Xt=>{var At;return(At=Mi==null?void 0:Mi.find(on=>on.value===Xt))==null?void 0:At.id}),{RangePicker:ai}=ot.default,{Option:Zt}=wt.default,ci=({shixunHomeworks:On,loading:Mi,dispatch:Xt,classroomList:At,user:on})=>{var Si,Gt,Xe,ke,Me,He,et,Oe,ut;const Vn=(0,me.useParams)(),{workSetting:jn,workList:An,shixunWorkList:Pn,headerInfo:si,changeData:mn}=On,[Fi,Vi]=(0,ve.useState)(!1),[Ir,Qi]=(0,ve.useState)(!1);let[Di,$r]=(0,ve.useState)([]),[Yi,hr]=(0,ve.useState)([]),[dr,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[Ii,ra]=(0,ve.useState)({}),[Un,Kr]=(0,ve.useState)({});(0,ve.useEffect)(()=>()=>{$r([])},[]),(0,ve.useEffect)(()=>{Vi(!(0,Te.GJ)())},[(0,Te.GJ)()]);const ia=()=>{Xt({type:"shixunHomeworks/getWorkSetting",payload:qn({},Vn)})};(0,ve.useEffect)(()=>{if(!(jn!=null&&jn.course_id))return;Object.keys(dr).map(function(hn){dr[hn]=jn[hn]}),(!dr.allow_late||!dr.unified_late)&&(dr.late_penalty=20,dr.penalty_type=xe.Q.Percent),dr.unified_setting||(dr.unified_late=!1,dr.unified_anonymous_comment=!1,dr.unified_anonymous_appeal=!1),Di=JSON.parse(JSON.stringify(jn.group_settings.map(hn=>sn(qn({},hn),{group_name:[hn.group_name]})).filter(hn=>hn.publish_time!==null))),Yi=JSON.parse(JSON.stringify(jn.allow_late_settings.map(hn=>sn(qn({},hn),{group_name:[hn.group_name]})).filter(hn=>hn.late_time!==null))),kn(qn({},dr));const pn=(0,se.QE)((Di==null?void 0:Di.length)>0?Di:[]);$r([...pn]),(Yi==null?void 0:Yi.length)<=0?hr([{penalty_type:xe.Q.Percent,late_penalty:20}]):hr([...Yi])},[jn]);const sa=()=>Nn(void 0,null,function*(){var pn,hn;if(((pn=on==null?void 0:on.userInfo)==null?void 0:pn.user_status)===2){(0,Pe.Rd)();return}const ii=JSON.parse(JSON.stringify(dr));if(ii.challenge_settings.filter(In=>!In.hide),ii.categoryId=Vn.categoryId,(hn=ii.challenge_settings)!=null&&hn.every(In=>!In.checked)){Qt.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Di),!dr.unified_setting)Di=Di==null?void 0:Di.map(In=>{var en;if(!In.publish_time||!In.end_time)throw Qt.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(!In.group_name)throw Qt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return In.group_name=typeof(In==null?void 0:In.group_name)=="string"?[In==null?void 0:In.group_name]:In==null?void 0:In.group_name,In.group_id=(en=jn.group_settings)==null?void 0:en.filter(ni=>{var zt;return(zt=In==null?void 0:In.group_name)==null?void 0:zt.includes(ni.group_name)}).map(ni=>ni.group_id||ni.id).toString().split(","),In});else if(!dr.publish_time||!dr.end_time)throw Qt.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(ii.group_settings=Di,dr.allow_late)if(dr.unified_late){if(dr.late_penalty===null||dr.late_penalty===void 0||dr.late_penalty<0||dr.late_penalty>100)throw Qt.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(!dr.late_time)throw Qt.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 Yi=Yi==null?void 0:Yi.map(In=>{var en,ni;if(In.late_penalty===null||In.late_penalty===void 0||In.late_penalty<0||In.late_penalty>100)throw Qt.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(!In.late_time)throw Qt.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(!In.group_name)throw Qt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return In.group_name=typeof(In==null?void 0:In.group_name)=="string"?[In==null?void 0:In.group_name]:In==null?void 0:In.group_name,In.group_id=(ni=(en=In==null?void 0:In.group_name)==null?void 0:en.map(zt=>{var Kt,Ft;let un=(Ft=(Kt=jn.group_settings)==null?void 0:Kt.filter(Ti=>(Ti==null?void 0:Ti.group_name)===zt))==null?void 0:Ft[0];return un==null?void 0:un.group_id}))==null?void 0:ni.toString().split(","),In}),ii.allow_late_settings=Yi;let Yn=yield(0,ft.Tr)({homework_common_ids:[parseInt(Vn.categoryId)],course_id:Vn.coursesId,type:"homework_common"});(Yn==null?void 0:Yn.student_count)===0?Wa(ii):(Kr(ii),ra(Yn))}),Wa=pn=>{var hn;if(pn.total_score===null){Qt.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(pn!=null&&pn.work_efficiency&&pn.eff_score===null){Qt.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const ii=pn.challenge_settings.reduce((en,ni)=>en+Number(ni.challenge_score),0);if((ii==null?void 0:ii.toFixed(10))!==((hn=pn.total_score-pn.eff_score)==null?void 0:hn.toFixed(10))){Qt.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 Yn={shixun_evaluation:pn.shixun_evaluation,challenge_settings:pn.challenge_settings};let In=()=>{var en;const ni=()=>Nn(void 0,null,function*(){Qi(!0),(yield(0,ne.ZP)(`/api/homework_commons/${Vn.categoryId}/publish_setting.json`,{method:"post",body:qn({},pn)})).status===0&&(Qt.ZP.success("\u66F4\u65B0\u6210\u529F"),ia(),Xt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:qn({},Vn)})),Qi(!1)});!(0,te.isEqual)(mn,Yn)&&!((en=si==null?void 0:si.homework_status)!=null&&en.includes("\u672A\u53D1\u5E03"))?Nt.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:ni}):ni()};jn!=null&&jn.high_resources_consume&&!(jn!=null&&jn.high_resources_consume_permission)?Xt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Vn.coursesId,type:"shixun",type_id:Vn.categoryId,name:jn.homework_name,fn:()=>{In()}}}):In()},ma=(pn,hn,ii="group_id")=>{var Yn;return hn?hn.find(In=>In[ii]===pn):(Yn=jn==null?void 0:jn.group_settings)==null?void 0:Yn.find(In=>In.group_id[0]===pn)},Ha=(jn==null?void 0:jn.allow_late)||(jn==null?void 0:jn.anonymous_comment),da=pn=>{var hn,ii;const Yn=ma(pn,jn==null?void 0:jn.allow_late_settings,"id"),In=ma(pn,jn==null?void 0:jn.anonymous_comment_settings),en=ma(pn);return(jn==null?void 0:jn.allow_late)&&Yn&&We()(Yn==null?void 0:Yn.late_time)<=We()()||(jn==null?void 0:jn.anonymous_comment)&&In&&(In==null?void 0:In.evaluation_start)!==null||((ii=(We()(en==null?void 0:en.end_time)<=We()()&&((hn=jn==null?void 0:jn.allow_late_settings)==null?void 0:hn.filter(ni=>ni.group_id.includes(pn))))[0])==null?void 0:ii.late_time)!=null},la=(0,ve.useMemo)(()=>(jn==null?void 0:jn.allow_late)||(jn==null?void 0:jn.all_group_late),[jn,si]),No=jn==null?void 0:jn.anonymous_comment,ti=pn=>{if(!pn)return!1;const hn=ma(pn,jn==null?void 0:jn.anonymous_comment_settings);return(jn==null?void 0:jn.anonymous_comment)&&hn&&(hn==null?void 0:hn.evaluation_start)!==null},Ee=(pn,hn)=>{var ii,Yn,In,en,ni;pn!=null&&pn.group_id||(pn.group_id=Rn(pn==null?void 0:pn.group_name,jn==null?void 0:jn.group_settings)),Xt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:pn,index:hn,rangePickerDisabled:(Yn=(ii=pn==null?void 0:pn.group_id)==null?void 0:ii[0])!=null&&Yn.publish_time?Fi||(We()()<=We()((en=ma((In=pn==null?void 0:pn.group_id)==null?void 0:In[0]))==null?void 0:en.publish_time)?!1:[!0,da((ni=pn==null?void 0:pn.group_id)==null?void 0:ni[0])]):!1,disabledDate:jn==null?void 0:jn.course_end_date}})};return qe.createElement("section",{className:ge.Z.form},qe.createElement("div",{className:ge.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",qe.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")),qe.createElement("div",null,qe.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},qe.createElement(Re.ZP.Group,{disabled:Fi||!((Si=si==null?void 0:si.homework_status)!=null&&Si.includes("\u672A\u53D1\u5E03"))||(0,Te.Rm)()&&!((Gt=At.AssistantObject.practice)!=null&&Gt.can_publish),value:dr.unified_setting,onChange:pn=>{var hn;if(!((hn=si==null?void 0:si.homework_status)!=null&&hn.includes("\u672A\u53D1\u5E03"))){Qt.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(dr.unified_setting=!dr.unified_setting,dr.unified_setting||(dr.unified_late=!1,hr([{late_penalty:5}])),kn(Object.assign({},dr)),dr.unified_setting===!1&&Di==""){$r(Di.concat({}));return}dr.unified_setting&&($r([]),hr([{late_penalty:5}]))}},qe.createElement(Re.ZP,{value:!0,disabled:Fi||!(jn!=null&&jn.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),qe.createElement(Re.ZP,{disabled:Fi||!((Xe=jn==null?void 0:jn.group_settings)!=null&&Xe.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((ke=jn==null?void 0:jn.group_settings)==null?void 0:ke.length)===0&&qe.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")),dr.unified_setting&&qe.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},qe.createElement(Je.Z,{align:"middle"},qe.createElement(pt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),qe.createElement(pt.Z,{className:"ml10"},qe.createElement(ot.default,{size:"large",disabled:Fi||!((Me=si==null?void 0:si.homework_status)!=null&&Me.includes("\u672A\u53D1\u5E03")||(He=si==null?void 0:si.homework_status)!=null&&He.includes("\u672A\u5F00\u59CB"))||(0,Te.Rm)()&&!((et=At.AssistantObject.practice)!=null&&et.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,jn==null?void 0:jn.course_end_date),disabledTime:pn=>Ne(pn),value:dr.publish_time?We()(dr.publish_time):"",onChange:(pn,hn)=>{dr.publish_time=hn,(dr.end_time==""||!dr.end_time)&&dr.unified_setting&&(dr.end_time=We()(pn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),kn(Object.assign({},dr))}}))),qe.createElement(Je.Z,{align:"middle",className:"pl30"},qe.createElement(pt.Z,null,"\u622A\u6B62\u65F6\u95F4"),qe.createElement(pt.Z,{className:"ml10"},qe.createElement(ot.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:We()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(jn==null?void 0:jn.allow_late)&&(jn==null?void 0:jn.homework_status.includes("\u5DF2\u622A\u6B62"))||Fi||(jn==null?void 0:jn.allow_late)&&We()()>=We()(jn==null?void 0:jn.end_time)||(0,Te.Rm)()&&!((Oe=At.AssistantObject.practice)!=null&&Oe.can_publish),disabledDate:pn=>Ge(pn,jn==null?void 0:jn.course_end_date,dr.publish_time),disabledTime:pn=>Ne(pn,dr.publish_time),value:dr.end_time?We()(dr.end_time):"",onChange:(pn,hn)=>{dr.end_time=hn,kn(Object.assign({},dr))}})))),!dr.unified_setting&&(Di==null?void 0:Di.length)>0&&qe.createElement(Je.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Di&&Di.map(function(pn,hn){var ii,Yn,In,en,ni,zt,Kt;return qe.createElement(pt.Z,{span:24,key:hn},qe.createElement(Je.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:hn==(Di==null?void 0:Di.length)-1?"0px":"10px"}},qe.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",hn+1),qe.createElement(wt.default,{disabled:Fi||((ii=si==null?void 0:si.homework_status)!=null&&ii.includes("\u672A\u53D1\u5E03")&&pn.id||We()()<We()(pn==null?void 0:pn.publish_time)?!1:!!(pn!=null&&pn.publish_time))||(0,Te.Rm)()&&!((Yn=At.AssistantObject.practice)!=null&&Yn.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=At.AssistantObject.practice)!=null&&un.can_publish)){Qt.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}Di[hn].group_name=Ft,Di[hn].group_id=pn.group_id;const Ti=(0,te.flattenDeep)(Di.map(hi=>hi.group_name)),Ri=Yi.map(hi=>{let Ut=(hi==null?void 0:hi.group_name)||[];return sn(qn({},hi),{group_name:(0,te.remove)(Ut,zn=>Ti.includes(zn))})});hr(Ri),$r(Di.slice())},maxTagCount:4,maxTagPlaceholder:Ft=>qe.createElement("div",{style:{cursor:"pointer"},onClick:()=>Ee(pn,hn)},"+",Ft==null?void 0:Ft.length)},jn.group_settings&&jn.group_settings.map(function(Ft){if(!Di.map(Ti=>Ti.group_name).flat().includes(Ft.group_name))return qe.createElement(Zt,{value:Ft.group_name,key:Ft.id},Ft.group_name)})),qe.createElement("div",{className:"ml20"},qe.createElement(ai,{size:"large",ranges:{\u6B64\u523B:[pn.publish_time?We()(pn.publish_time):We()(),We()()]},allowClear:!1,disabled:Fi||(We()()<=We()((en=ma((In=pn==null?void 0:pn.group_id)==null?void 0:In[0]))==null?void 0:en.publish_time)?!1:[!0,da((ni=pn==null?void 0:pn.group_id)==null?void 0:ni[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,jn==null?void 0:jn.course_end_date),disabledTime:Ft=>Ne(Ft),showTime:{showNow:!0,format:"HH:mm",defaultValue:[We()((0,se.U6)(),"HH:mm"),We()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[pn.publish_time?We()(pn.publish_time):void 0,pn.end_time?We()(pn.end_time):void 0],onChange:(Ft,un)=>{var Ti;if((0,Te.Rm)()&&!((Ti=At.AssistantObject.practice)!=null&&Ti.can_publish)){Qt.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}Di[hn].publish_time=un[0],!pn.end_time&&un[0]?Di[hn].end_time=We()(un[0]).add(7,"days"):Di[hn].end_time=un[1],$r([...Di])},onCalendarChange:(Ft,un,Ti)=>{if(un!=null&&un[0]&&!un[1]){const Ri=We()(un[0]).add(7,"days");Di[hn].publish_time=un[0],Di[hn].end_time=Ri,$r([...Di])}}})),!Fi&&qe.createElement("div",{style:{display:"flex",width:"50px"}},((zt=pn==null?void 0:pn.group_id)==null?void 0:zt.length)>1&&qe.createElement(mt.Z,{title:"\u89C4\u5219\u62C6\u5206"},qe.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Ee(pn,hn)})),Di.length<((Kt=jn==null?void 0:jn.group_settings)==null?void 0:Kt.length)&&qe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Ft;if((0,Te.Rm)()&&!((Ft=At.AssistantObject.practice)!=null&&Ft.can_publish)){Qt.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}$r(Di.concat({}))}}),((pn==null?void 0:pn.publish_time)&&We()()<We()(pn==null?void 0:pn.publish_time)||!(pn!=null&&pn.publish_time))&&hn!=0&&qe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Ft=(0,te.cloneDeep)(Yi);Ft.forEach((un,Ti)=>{un.group_name&&(un.group_name=un.group_name.filter(Ri=>{var hi;return!((hi=Di[hn].group_name)!=null&&hi.includes(Ri))}))}),Di=Di.filter((un,Ti)=>hn!==Ti),hr(Ft),$r(Di.slice()),setTimeout(()=>$r(Di.slice()),10)}}))))}))),qe.createElement(Je.Z,null,qe.createElement(pt.Z,null,qe.createElement("div",{className:ge.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",qe.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"))),qe.createElement(pt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},qe.createElement(yt.default,{checked:dr.allow_late,disabled:Fi||la,onChange:pn=>{var hn;if((0,Te.Rm)()&&!((hn=At.AssistantObject.practice)!=null&&hn.can_late)){Qt.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&&Nt.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:qe.createElement("div",{style:{padding:10,background:"#f5f6f9"}},qe.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"),qe.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),qe.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"))}),dr.allow_late=!dr.allow_late,Yi==""&&hr([{late_penalty:5}]),kn(Object.assign({},dr))}},qe.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(dr==null?void 0:dr.allow_late)&&qe.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},qe.createElement("div",{style:{display:"flex"}},qe.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),qe.createElement(Re.ZP.Group,{style:{marginLeft:"20px"},disabled:Fi||(jn==null?void 0:jn.anonymous_comment)||(jn==null?void 0:jn.allow_late),value:dr.unified_late,onChange:pn=>{var hn;if((0,Te.Rm)()&&!((hn=At.AssistantObject.practice)!=null&&hn.can_late)){Qt.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}dr.unified_late=pn.target.value,Yi==""&&!pn.target.value&&hr([{penalty_type:xe.Q.Percent,late_penalty:20}]),kn(qn({},dr))}},(dr==null?void 0:dr.unified_setting)&&qe.createElement(Re.ZP,{value:!0,disabled:!(jn!=null&&jn.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((ut=jn==null?void 0:jn.group_settings)==null?void 0:ut.length)>0&&qe.createElement(Re.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),dr!=null&&dr.unified_late?qe.createElement(qe.Fragment,null,qe.createElement(Je.Z,{align:"middle",style:{marginTop:"10px"}},qe.createElement(pt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),qe.createElement(pt.Z,{className:"ml20"},qe.createElement(xe.Z,{disabled:Fi||No,value:{type:dr.penalty_type,inputValue:dr.late_penalty},onChange:pn=>{var hn;if((0,Te.Rm)()&&!((hn=At.AssistantObject.practice)!=null&&hn.can_late)){Qt.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(sn(qn({},dr),{late_penalty:pn.inputValue,penalty_type:pn.type}))}})),qe.createElement(pt.Z,{flex:"1",className:"ml5"},qe.createElement("span",{className:"c-grey-c ml10"},dr.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)"))),qe.createElement(Je.Z,{align:"middle",style:{marginTop:"15px"}},qe.createElement(pt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),qe.createElement(pt.Z,{className:"ml20"},qe.createElement(ot.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:We()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Fi||No,value:dr.late_time?We()(dr.late_time):"",disabledDate:pn=>Ge(pn,jn==null?void 0:jn.course_end_date),onChange:(pn,hn)=>{var ii;if((0,Te.Rm)()&&!((ii=At.AssistantObject.practice)!=null&&ii.can_late)){Qt.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}dr.late_time=hn,kn(Object.assign({},dr))}})))):Yi.map(function(pn,hn){var ii;return qe.createElement(pt.Z,{span:24,key:hn},qe.createElement(Je.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},qe.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",hn+1),qe.createElement(wt.default,{disabled:Fi||!((ii=si==null?void 0:si.homework_status)!=null&&ii.includes("\u672A\u53D1\u5E03"))&&pn.id||(jn==null?void 0:jn.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:Yn=>{var In;if((0,Te.Rm)()&&!((In=At.AssistantObject.practice)!=null&&In.can_late)){Qt.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}Yi[hn].group_name=Yn,Yi[hn].group_id=pn.group_id,hr(Yi.slice())}},jn.group_settings&&jn.group_settings.map(function(Yn){const In=Yi.map(ni=>ni.group_name).flat(),en=Di.map(ni=>ni.group_name).flat();if(dr!=null&&dr.unified_setting){if(!In.includes(Yn.group_name))return qe.createElement(Zt,{value:Yn.group_name,key:Yn.id},Yn.group_name)}else if(en.includes(Yn.group_name)&&!In.includes(Yn.group_name))return qe.createElement(Zt,{value:Yn.group_name,key:Yn.id},Yn.group_name)})),qe.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),qe.createElement(xe.Z,{disabled:Fi||ti(pn.id),value:{type:pn.penalty_type,inputValue:pn.late_penalty},onChange:Yn=>{var In;if((0,Te.Rm)()&&!((In=At.AssistantObject.practice)!=null&&In.can_late)){Qt.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}Yi[hn].late_penalty=Yn.inputValue,Yi[hn].penalty_type=Yn.type,hr([...Yi])}}),qe.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),qe.createElement(ot.default,{size:"large",disabled:Fi||ti(pn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:We()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Yn=>Ge(Yn,jn==null?void 0:jn.course_end_date),format:"YYYY-MM-DD HH:mm",value:pn!=null&&pn.late_time?We()(pn.late_time):void 0,onChange:(Yn,In)=>{var en;if((0,Te.Rm)()&&!((en=At.AssistantObject.practice)!=null&&en.can_late)){Qt.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}Yi[hn].late_time=In,hr([...Yi])}}),!Fi&&qe.createElement("div",{style:{display:"flex",width:"50px"}},qe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Yn;if((0,Te.Rm)()&&!((Yn=At.AssistantObject.practice)!=null&&Yn.can_late)){Qt.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}hr(Yi.concat({penalty_type:xe.Q.Percent,late_penalty:20}))}}),hn>0&&!pn.id&&qe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var Yn;if((0,Te.Rm)()&&!((Yn=At.AssistantObject.practice)!=null&&Yn.can_late)){Qt.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}Yi=Yi.filter((In,en)=>hn!==en),hr(Yi.slice()),setTimeout(()=>hr(Yi.slice()),10)}}))))})),!Fi&&qe.createElement(qe.Fragment,null,qe.createElement(Vt.ZP,{type:"primary",size:"large",loading:Ir,style:{width:"138px",marginTop:"30px"},onClick:()=>sa()},"\u4FDD\u5B58")),qe.createElement(Ke.Z,{onConfirm:(pn,hn)=>{Di.splice(pn,0,...hn),Di.splice(pn+hn.length,1);const ii=(0,se.QE)([...Di]);$r([...ii])}}),qe.createElement(nt.Z,{resdata:Ii,type:"shixun",okloading:Ir,oktext:(Ii==null?void 0:Ii.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:pn=>Nn(void 0,null,function*(){Qi(!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)]}});Qi(!1),(hn==null?void 0:hn.status)===0&&Wa(Un)})}))};ei.ZP=(0,me.connect)(({shixunHomeworks:On,classroomList:Mi,loading:Xt,user:At})=>({shixunHomeworks:On,classroomList:Mi,loading:Xt.effects,user:At}))(ci)},12317:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return yt}});var ve=be(67294),ot=be(28802),wt=be(84567),Qt=be(71230),Nt={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,We)=>new Promise((Te,ne)=>{var te=ge=>{try{se(We.next(ge))}catch(me){ne(me)}},ue=ge=>{try{se(We.throw(ge))}catch(me){ne(me)}},se=ge=>ge.done?Te(ge.value):Promise.resolve(ge.value).then(te,ue);se((We=We.apply(Vt,ct)).next())}),yt=({data:Vt,value:ct=[],handleChangePage:We,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[nt,ft]=(0,ve.useState)(1),[qe,at]=(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:Nt.leftdiv},ve.createElement(ot.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:jt=>pt(void 0,null,function*(){ge(Vt.filter(Mt=>{var bt;return(bt=Mt==null?void 0:Mt.name)==null?void 0:bt.includes(jt.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(wt.default.Group,{value:me.map(jt=>`${jt.id}`),onChange:jt=>{ne(se.filter(Mt=>jt.includes(`${Mt.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},se.map((jt,Mt)=>ve.createElement(Qt.Z,{key:jt.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},ve.createElement(wt.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:jt.is_published,value:`${jt.id}`},ve.createElement("div",{className:Nt.listClass},ve.createElement("span",{className:Nt.spantitle,style:{width:jt.is_published?"108px":"170px"}},jt.name),jt.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:Nt.rightdiv},ve.createElement(ot.default.Search,{onChange:jt=>{Ke(me.filter(Mt=>Mt.name.includes(jt.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((jt,Mt)=>ve.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:jt.id},ve.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},jt.name),ve.createElement("img",{src:Re,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{ne(me.filter(bt=>`${bt.id}`!=`${jt.id}`))}})))))))}},92882:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return ue}});var ve=be(67294),ot=be(35973),wt=be(18046),Qt=be(62844),Nt=be(28802),Re=be(2453),Je=be(71230),pt=be(15746),mt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},yt=be(94699),Vt=be.n(yt),ct=be(28706),We=be(26194),Te=be(67294);const{RangePicker:ne}=wt.default,te=({dispatch:se,classroomList:ge,onConfirm:me})=>{const[xe,Pe]=(0,ve.useState)([]),[Ke,nt]=(0,ve.useState)([]),[ft,qe]=(0,ve.useState)(""),[at,jt]=(0,ve.useState)([!1,!1]);(0,ve.useEffect)(()=>{var Bt,Ht,Jn,qn;if(ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Bt=ge.actionTabs)==null?void 0:Bt.rangePickerDisabled),(Ht=ge.actionTabs)!=null&&Ht.rangePickerDisabled?jt((Jn=ge.actionTabs)==null?void 0:Jn.rangePickerDisabled):jt([!1,!1]);let sn=ge.actionTabs.data,Nn=(qn=sn==null?void 0:sn.group_name)==null?void 0:qn.map((lt,Ge)=>{var Ne;return{group_id:sn==null?void 0:sn.group_id[Ge],group_name:sn==null?void 0:sn.group_name[Ge],is_admin:sn==null?void 0:sn.is_admin,end_time:sn==null?void 0:sn.end_time,publish_time:Array.isArray(sn==null?void 0:sn.publish_time)?(Ne=sn==null?void 0:sn.publish_time)==null?void 0:Ne[0]:sn==null?void 0:sn.publish_time}});Nn&&(Pe([...Nn]),nt([...Nn]))}},[ge.actionTabs]);const Mt=()=>{se({type:"classroomList/setActionTabs",payload:{}}),qe("")},bt=Bt=>{if(Bt){const Ht=Ke==null?void 0:Ke.filter(Jn=>{var qn,sn;return(sn=(qn=Jn==null?void 0:Jn.group_name)==null?void 0:qn.toLowerCase())==null?void 0:sn.includes(Bt==null?void 0:Bt.toLowerCase())});Pe(Ht)}else Pe(Ke)};return Te.createElement(Qt.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:mt.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(Nt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:ft,onChange:Bt=>{qe(Bt.target.value.trim()),bt(Bt.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 Bt;if(Ke.some(Jn=>!Jn.end_time||!Jn.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((Bt=ge.actionTabs)==null?void 0:Bt.index,Ke),Mt()}},Te.createElement("div",{className:mt.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(Bt,Ht){return Te.createElement(pt.Z,{span:24,key:Ht},Te.createElement(Je.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ht==(xe==null?void 0:xe.length)-1?"0px":"10px"}},Te.createElement("div",{className:mt.multiple_select,title:Bt==null?void 0:Bt.group_name},Bt==null?void 0:Bt.group_name),Te.createElement("div",{className:"ml20"},Te.createElement(ne,{size:"large",allowClear:!1,disabled:at,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:Jn=>{var qn;return(0,ct.Q8)(Jn,(qn=ge.actionTabs)==null?void 0:qn.disabledDate)},disabledTime:Jn=>(0,ct.d0)(Jn),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:(Bt==null?void 0:Bt.publish_time)&&[Vt()(Bt==null?void 0:Bt.publish_time),Bt!=null&&Bt.end_time?Vt()(Bt==null?void 0:Bt.end_time):void 0],onChange:(Jn,qn)=>{xe[Ht].publish_time=qn[0],xe[Ht].end_time=qn[1],Pe([...xe]),Ke.forEach(sn=>{sn.group_id===(Bt==null?void 0:Bt.group_id)&&(sn.publish_time=qn[0],sn.end_time=qn[1])}),nt([...Ke])},onCalendarChange:(Jn,qn,sn)=>{if(qn!=null&&qn[0]&&!qn[1]){const Nn=Vt()(qn[0]).add(7,"days");xe[Ht].publish_time=qn[0],xe[Ht].end_time=Nn,Pe([...xe]),Ke.forEach(lt=>{lt.group_id===(Bt==null?void 0:Bt.group_id)&&(lt.publish_time=qn[0],lt.end_time=Nn)}),nt([...Ke])}}})),at[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(Ht,1),Pe([...xe]),Ke.forEach((Jn,qn)=>{Jn.group_id===(Bt==null?void 0:Bt.group_id)&&Ke.splice(qn,1)}),nt([...Ke])}})))}):Te.createElement(We.Z,null))))};var ue=(0,ot.connect)(({classroomList:se})=>({classroomList:se}))(te)},51161:function(Dn,ei,be){"use strict";be.d(ei,{AL:function(){return xe},Iy:function(){return Vt},Qv:function(){return Te},ez:function(){return me},jb:function(){return ct}});var ve=be(47084),ot=be.n(ve),wt=be(90621),Qt=be.n(wt);let Nt=1;function Re(qe,at){const jt=qe.match(/^(\s+)(?:```)/);if(jt===null)return at;const Mt=jt[1];return at.split(`
|
|
`).map(bt=>{const Bt=bt.match(/^\s+/);if(Bt===null)return bt;const[Ht]=Bt;return Ht.length>=Mt.length?bt.slice(Mt.length):bt}).join(`
|
|
`)}let Je=[],pt=["<ul>"];const mt=new(ot()).Renderer,yt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Vt(){Je.length=0,pt=["<ul>"]}const ct={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function We(qe,at,jt,Mt){if(at>=qe.length||qe[at].level<=jt)return at;var bt=qe[at];Mt.push("<li><a href='#"+Nt+bt.anchor+"'>"+bt.text+"</a>"),at++;var Bt=[];return at=We(qe,at,bt.level,Bt),Bt.length>0&&(Mt.push("<ul>"),Bt.forEach(function(Ht){Mt.push(Ht)}),Mt.push("</ul>")),Mt.push("</li>"),at=We(qe,at,jt,Mt),at}function Te(){return We(Je,0,0,pt),pt.push("</ul>"),pt.join("")}const ne={heading(qe){const at=yt.exec(qe);if(Nt+=1,at)return{type:"heading",raw:at[0],depth:at[1].length,text:at[2]}},fences(qe){const at=this.rules.block.fences.exec(qe);if(at){const jt=at[0];let Mt=Re(jt,at[3]||"");const bt=at[2]?at[2].trim():at[2];if(["latex","katex","math"].indexOf(bt)>=0){const Bt=se(),Ht=Mt;Mt=Bt,ge[Bt]={type:"block",expression:Ht}}return{type:"code",raw:jt,lang:bt,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(qe){return qe=qe.replace(te,(at,jt)=>{const Mt=se();return ge[Mt]={type:"inline",expression:jt},Mt}),qe}const Ke=mt.listitem;mt.listitem=function(qe){return Ke(Pe(qe))};const nt=mt.paragraph;mt.paragraph=function(qe){return nt(Pe(qe))};const ft=mt.tablecell;mt.tablecell=function(qe,at){return ft(Pe(qe),at)},mt.code=function(qe,at,jt){const Mt=(at||"").match(/\S*/)[0];return Mt?["latex","katex","math"].indexOf(Mt)>=0?`<p class='editormd-tex'>${qe}</p>`:`<pre class="prettyprint linenums"><code class="language-${at}">${jt?qe:(0,wt.escape)(qe,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(jt?qe:(0,wt.escape)(qe,!0))+"</code></pre>"},mt.heading=function(qe,at,jt){let Mt=this.options.headerPrefix+jt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Je.push({anchor:Mt,level:at,text:qe}),"<h"+at+' id="'+Nt+Mt+'">'+qe+"</h"+at+">"},ot().setOptions({silent:!0,gfm:!0,pedantic:!1}),ot().use({tokenizer:ne,renderer:mt}),ei.ZP=ot()},78207:function(Dn,ei,be){"use strict";be.d(ei,{rX:function(){return Pe},pW:function(){return Ke},gy:function(){return nt},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),ot=be(62844),wt=be(96074),Qt=be(2453),Nt=be(52262),Re=be(28706),Je=be(55304),pt=be(25510),mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89P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wEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",yt=be.p+"static/newqrcode.a8740efb.png",Vt=be(32637),ct=be(67294),We=(ft,qe,at)=>new Promise((jt,Mt)=>{var bt=Jn=>{try{Ht(at.next(Jn))}catch(qn){Mt(qn)}},Bt=Jn=>{try{Ht(at.throw(Jn))}catch(qn){Mt(qn)}},Ht=Jn=>Jn.done?jt(Jn.value):Promise.resolve(Jn.value).then(bt,Bt);Ht((at=at.apply(ft,qe)).next())});const Te=(ft,qe=!1,at=!1,jt="",Mt=!1)=>!!(ne(ft)&&ue(ft,qe,at,jt,Mt)),ne=ft=>(0,Nt.bg)()?!0:(ft({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),te=ft=>{var qe,at,jt;const{user:Mt}=(0,ve.getDvaApp)()._store.getState();(0,Nt.bg)()&&!((at=(qe=Mt==null?void 0:Mt.userInfo)==null?void 0:qe.course)!=null&&at.course_public)&&!((jt=Mt==null?void 0:Mt.userInfo)!=null&&jt.profile_completed)&&ft({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ue=(ft,qe=!1,at=!0,jt="",Mt=!1)=>{var bt;const{user:Bt}=(0,ve.getDvaApp)()._store.getState();return(bt=Bt.userInfo)!=null&&bt.profile_completed?!0:(at?ft({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:jt,isCurrentPage:Mt}}):ot.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=()=>{ot.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=()=>{ot.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:qe}=(0,ve.getDvaApp)()._store.getState();return(ft=qe.userInfo)!=null&&ft.professional_certification?!0:(ot.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,Nt.V9)()?!0:(ot.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:yt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Pe=(ft,qe)=>ft?!0:(ot.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ct.createElement("div",null,ct.createElement("p",null,qe||"\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:mt,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=>{ot.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(wt.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})))})},nt=(ft,qe="")=>{const{shixunsDetail:{detail:at}}=(0,ve.getDvaApp)()._store.getState();if((at==null?void 0:at.public)===2||(at==null?void 0:at.public)===1||(at==null?void 0:at.shixun_status)===3){let jt="";return(at==null?void 0:at.public)===2&&(jt="\u5DF2\u516C\u5F00"),(at==null?void 0:at.public)===1&&(jt="\u5F85\u5BA1\u6838"),(at==null?void 0:at.shixun_status)===3&&(jt="\u5DF2\u5173\u95ED"),ot.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",jt,"\uFF0C",qe,"\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(at==null?void 0:at.shixun_status)===2?(ot.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",qe,"\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:()=>{ot.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:()=>We(void 0,null,function*(){(yield ft({type:"shixunsDetail/cancelRelease",payload:{id:at==null?void 0:at.identifier}})).status!==401&&(Qt.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:at==null?void 0:at.identifier}}),ft({type:"practiceSetting/getCommonData",payload:{id:at==null?void 0:at.identifier}}))})})}}),!0):!1}},88386:function(Dn,ei,be){(function(ve){ve(be(4631))})(function(ve){ve.defineOption("placeholder","",function(pt,mt,yt){var Vt=yt&&yt!=ve.Init;if(mt&&!Vt)pt.on("blur",Nt),pt.on("change",Re),pt.on("swapDoc",Re),ve.on(pt.getInputField(),"compositionupdate",pt.state.placeholderCompose=function(){Qt(pt)}),Re(pt);else if(!mt&&Vt){pt.off("blur",Nt),pt.off("change",Re),pt.off("swapDoc",Re),ve.off(pt.getInputField(),"compositionupdate",pt.state.placeholderCompose),ot(pt);var ct=pt.getWrapperElement();ct.className=ct.className.replace(" CodeMirror-empty","")}mt&&!pt.hasFocus()&&Nt(pt)});function ot(pt){pt.state.placeholder&&(pt.state.placeholder.parentNode.removeChild(pt.state.placeholder),pt.state.placeholder=null)}function wt(pt){ot(pt);var mt=pt.state.placeholder=document.createElement("pre");mt.style.cssText="height: 0; overflow: visible",mt.style.direction=pt.getOption("direction"),mt.className="CodeMirror-placeholder CodeMirror-line-like";var yt=pt.getOption("placeholder");typeof yt=="string"&&(yt=document.createTextNode(yt)),mt.appendChild(yt),pt.display.lineSpace.insertBefore(mt,pt.display.lineSpace.firstChild)}function Qt(pt){setTimeout(function(){var mt=!1,yt=pt.getInputField();yt.nodeName=="TEXTAREA"?mt=!yt.value:pt.lineCount()==1&&(mt=!/[^\u200b]/.test(yt.querySelector(".CodeMirror-line").textContent)),mt?wt(pt):ot(pt)},20)}function Nt(pt){Je(pt)&&wt(pt)}function Re(pt){var mt=pt.getWrapperElement(),yt=Je(pt);mt.className=mt.className.replace(" CodeMirror-empty","")+(yt?" CodeMirror-empty":""),yt?wt(pt):ot(pt)}function Je(pt){return pt.lineCount()===1&&pt.getLine(0)===""}})},82801:function(Dn,ei,be){(function(ve){ve(be(4631))})(function(ve){var ot={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},wt=ve.Pos;ve.defineOption("autoCloseBrackets",!1,function(ne,te,ue){ue&&ue!=ve.Init&&(ne.removeKeyMap(Nt),ne.state.closeBrackets=null),te&&(Re(Qt(te,"pairs")),ne.state.closeBrackets=te,ne.addKeyMap(Nt))});function Qt(ne,te){return te=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[te]!=null?ne[te]:ot[te]}var Nt={Backspace:mt,Enter:yt};function Re(ne){for(var te=0;te<ne.length;te++){var ue=ne.charAt(te),se="'"+ue+"'";Nt[se]||(Nt[se]=Je(ue))}}Re(ot.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 mt(ne){var te=pt(ne);if(!te||ne.getOption("disableInput"))return ve.Pass;for(var ue=Qt(te,"pairs"),se=ne.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return ve.Pass;var me=We(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("",wt(xe.line,xe.ch-1),wt(xe.line,xe.ch+1),"+delete")}}function yt(ne){var te=pt(ne),ue=te&&Qt(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=We(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 wt(ne.anchor.line,ne.anchor.ch+(te?-1:1)),head:new wt(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=Qt(ue,"pairs"),ge=se.indexOf(te);if(ge==-1)return ve.Pass;for(var me=Qt(ue,"closeBefore"),xe=Qt(ue,"triples"),Pe=se.charAt(ge+1)==te,Ke=ne.listSelections(),nt=ge%2==0,ft,qe=0;qe<Ke.length;qe++){var at=Ke[qe],jt=at.head,Mt,bt=ne.getRange(jt,wt(jt.line,jt.ch+1));if(nt&&!at.empty())Mt="surround";else if((Pe||!nt)&&bt==te)Pe&&Te(ne,jt)?Mt="both":xe.indexOf(te)>=0&&ne.getRange(jt,wt(jt.line,jt.ch+3))==te+te+te?Mt="skipThree":Mt="skip";else if(Pe&&jt.ch>1&&xe.indexOf(te)>=0&&ne.getRange(wt(jt.line,jt.ch-2),jt)==te+te){if(jt.ch>2&&/\bstring/.test(ne.getTokenTypeAt(wt(jt.line,jt.ch-2))))return ve.Pass;Mt="addFour"}else if(Pe){var Bt=jt.ch==0?" ":ne.getRange(wt(jt.line,jt.ch-1),jt);if(!ve.isWordChar(bt)&&Bt!=te&&!ve.isWordChar(Bt))Mt="both";else return ve.Pass}else if(nt&&(bt.length===0||/\s/.test(bt)||me.indexOf(bt)>-1))Mt="both";else return ve.Pass;if(!ft)ft=Mt;else if(ft!=Mt)return ve.Pass}var Ht=ge%2?se.charAt(ge-1):te,Jn=ge%2?te:se.charAt(ge+1);ne.operation(function(){if(ft=="skip")ne.execCommand("goCharRight");else if(ft=="skipThree")for(var qn=0;qn<3;qn++)ne.execCommand("goCharRight");else if(ft=="surround"){for(var sn=ne.getSelections(),qn=0;qn<sn.length;qn++)sn[qn]=Ht+sn[qn]+Jn;ne.replaceSelections(sn,"around"),sn=ne.listSelections().slice();for(var qn=0;qn<sn.length;qn++)sn[qn]=Vt(sn[qn]);ne.setSelections(sn)}else ft=="both"?(ne.replaceSelection(Ht+Jn,null),ne.triggerElectric(Ht+Jn),ne.execCommand("goCharLeft")):ft=="addFour"&&(ne.replaceSelection(Ht+Ht+Ht+Ht,"before"),ne.execCommand("goCharRight"))})}function We(ne,te){var ue=ne.getRange(wt(te.line,te.ch-1),wt(te.line,te.ch+1));return ue.length==2?ue:null}function Te(ne,te){var ue=ne.getTokenAt(wt(te.line,te.ch+1));return/\bstring/.test(ue.type)&&ue.start==te.ch&&(te.ch==0||!/\bstring/.test(ne.getTokenTypeAt(te)))}})},57341:function(Dn,ei,be){(function(ve){ve(be(4631),be(4786))})(function(ve){ve.defineOption("autoCloseTags",!1,function(mt,yt,Vt){if(Vt!=ve.Init&&Vt&&mt.removeKeyMap("autoCloseTags"),!!yt){var ct={name:"autoCloseTags"};(typeof yt!="object"||yt.whenClosing!==!1)&&(ct["'/'"]=function(We){return Re(We)}),(typeof yt!="object"||yt.whenOpening!==!1)&&(ct["'>'"]=function(We){return Qt(We)}),mt.addKeyMap(ct)}});var ot=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],wt=["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 Qt(mt){if(mt.getOption("disableInput"))return ve.Pass;for(var yt=mt.listSelections(),Vt=[],ct=mt.getOption("autoCloseTags"),We=0;We<yt.length;We++){if(!yt[We].empty())return ve.Pass;var Te=yt[We].head,ne=mt.getTokenAt(Te),te=ve.innerMode(mt.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&&ot,Pe=typeof ct=="object"&&ct.indentTags||me&&wt;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(mt,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(ue)||[],ge,Te,!0))return ve.Pass;var nt=typeof ct=="object"&&ct.emptyTags;if(nt&&Je(nt,ge)>-1){Vt[We]={text:"/>",newPos:ve.Pos(Te.line,Te.ch+2)};continue}var ft=Pe&&Je(Pe,Ke)>-1;Vt[We]={indent:ft,text:">"+(ft?`
|
|
|
|
`:"")+"</"+ge+">",newPos:ft?ve.Pos(Te.line+1,0):ve.Pos(Te.line,Te.ch+1)}}for(var qe=typeof ct=="object"&&ct.dontIndentOnAutoClose,We=yt.length-1;We>=0;We--){var at=Vt[We];mt.replaceRange(at.text,yt[We].head,yt[We].anchor,"+insert");var jt=mt.listSelections().slice(0);jt[We]={head:at.newPos,anchor:at.newPos},mt.setSelections(jt),!qe&&at.indent&&(mt.indentLine(at.newPos.line,null,!0),mt.indentLine(at.newPos.line+1,null,!0))}}function Nt(mt,yt){for(var Vt=mt.listSelections(),ct=[],We=yt?"/":"</",Te=mt.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=mt.getTokenAt(ue),ge=ve.innerMode(mt.getMode(),se.state),me=ge.state;if(yt&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=ue.ch-1))return ve.Pass;var xe,Pe=ge.mode.name!="xml"&&mt.getMode().name=="htmlmixed";if(Pe&&ge.mode.name=="javascript")xe=We+"script";else if(Pe&&ge.mode.name=="css")xe=We+"style";else{var Ke=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(me);if(!Ke||Ke.length&&pt(mt,Ke,Ke[Ke.length-1],ue))return ve.Pass;xe=We+Ke[Ke.length-1]}mt.getLine(ue.line).charAt(se.end)!=">"&&(xe+=">"),ct[te]=xe}if(mt.replaceSelections(ct),Vt=mt.listSelections(),!ne)for(var te=0;te<Vt.length;te++)(te==Vt.length-1||Vt[te].head.line<Vt[te+1].head.line)&&mt.indentLine(Vt[te].head.line)}function Re(mt){return mt.getOption("disableInput")?ve.Pass:Nt(mt,!0)}ve.commands.closeTag=function(mt){return Nt(mt)};function Je(mt,yt){if(mt.indexOf)return mt.indexOf(yt);for(var Vt=0,ct=mt.length;Vt<ct;++Vt)if(mt[Vt]==yt)return Vt;return-1}function pt(mt,yt,Vt,ct,We){if(!ve.scanForClosingTag)return!1;var Te=Math.min(mt.lastLine()+1,ct.line+500),ne=ve.scanForClosingTag(mt,ct,null,Te);if(!ne||ne.tag!=Vt)return!1;for(var te=We?1:0,ue=yt.length-1;ue>=0&&yt[ue]==Vt;ue--)++te;ct=ne.to;for(var ue=1;ue<te;ue++){var se=ve.scanForClosingTag(mt,ct,null,Te);if(!se||se.tag!=Vt)return!1;ct=se.to}return!0}})},4786:function(Dn,ei,be){(function(ve){ve(be(4631))})(function(ve){"use strict";var ot=ve.Pos;function wt(ue,se){return ue.line-se.line||ue.ch-se.ch}var Qt="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",Nt=Qt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Re=new RegExp("<(/?)(["+Qt+"]["+Nt+"]*)","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(ot(ue.line,se));return ge&&/\btag\b/.test(ge)}function mt(ue){if(!(ue.line>=ue.max))return ue.ch=0,ue.text=ue.cm.getLine(++ue.line),!0}function yt(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(mt(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(yt(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 We(ue){for(;;){Re.lastIndex=ue.ch;var se=Re.exec(ue.text);if(!se){if(mt(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(yt(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=We(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 nt=ge.length-1;nt>=0;--nt)if(ge[nt]==me[2]){ge.length=nt;break}if(nt<0&&(!se||se==me[2]))return{tag:me[2],from:ot(Pe,Ke),to:ot(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 nt=ge.length-1;nt>=0;--nt)if(ge[nt]==Ke[2]){ge.length=nt;break}if(nt<0&&(!se||se==Ke[2]))return{tag:Ke[2],from:ot(ue.line,ue.ch),to:ot(xe,Pe)}}}}ve.registerHelper("fold","xml",function(ue,se){for(var ge=new Je(ue,se.line,0);;){var me=We(ge);if(!me||ge.line!=se.line)return;var xe=Vt(ge);if(!xe)return;if(!me[1]&&xe!="selfClose"){var Pe=ot(ge.line,ge.ch),Ke=ne(ge,me[2]);return Ke&&wt(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&&ot(me.line,me.ch),Ke=xe&&ct(me);if(!(!xe||!Ke||wt(me,se)>0)){var nt={from:ot(me.line,me.ch),to:Pe,tag:Ke[2]};return xe=="selfClose"?{open:nt,close:null,at:"open"}:Ke[1]?{open:te(me,Ke[2]),close:nt,at:"close"}:(me=new Je(ue,Pe.line,Pe.ch,ge),{open:nt,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),nt=ne(Ke,Pe.tag);if(nt)return{open:Pe,close:nt}}},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(Dn){(function(ei,be){Dn.exports=be()})(this,function(){"use strict";var ei=navigator.userAgent,be=navigator.platform,ve=/gecko\/\d/i.test(ei),ot=/MSIE \d/.test(ei),wt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ei),Qt=/Edge\/(\d+)/.exec(ei),Nt=ot||wt||Qt,Re=Nt&&(ot?document.documentMode||6:+(Qt||wt)[1]),Je=!Qt&&/WebKit\//.test(ei),pt=Je&&/Qt\/\d+\.\d+/.test(ei),mt=!Qt&&/Chrome\//.test(ei),yt=/Opera\//.test(ei),Vt=/Apple Computer/.test(navigator.vendor),ct=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ei),We=/PhantomJS/.test(ei),Te=!Qt&&/AppleWebKit/.test(ei)&&/Mobile\/\w+/.test(ei),ne=/Android/.test(ei),te=Te||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ei),ue=Te||/Mac/.test(be),se=/\bCrOS\b/.test(ei),ge=/win/i.test(be),me=yt&&ei.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(yt=!1,Je=!0);var xe=ue&&(pt||yt&&(me==null||me<12.11)),Pe=ve||Nt&&Re>=9;function Ke(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var nt=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 qe(ie,oe){return ft(ie).appendChild(oe)}function at(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 jt(ie,oe,he,de){var pe=at(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 bt(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 Bt(){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 Ht(ie,oe){var he=ie.className;Ke(oe).test(he)||(ie.className+=(he?" ":"")+oe)}function Jn(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 qn=function(ie){ie.select()};Te?qn=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Nt&&(qn=function(ie){try{ie.select()}catch(oe){}});function sn(ie){var oe=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,oe)}}function Nn(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 rt=ie.indexOf(" ",Fe);if(rt<0||rt>=oe)return Ve+(oe-Fe);Ve+=rt-Fe,Ve+=he-Ve%he,Fe=rt+1}}var Ge=function(){this.id=null,this.f=null,this.time=0,this.handler=sn(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 Rn=50,ai={toString:function(){return"CodeMirror.Pass"}},Zt={scroll:!1},ci={origin:"*mouse"},On={origin:"+move"};function Mi(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 Xt=[""];function At(ie){for(;Xt.length<=ie;)Xt.push(on(Xt)+" ");return Xt[ie]}function on(ie){return ie[ie.length-1]}function Si(ie,oe){for(var he=[],de=0;de<ie.length;de++)he[de]=oe(ie[de],de);return he}function Gt(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 ke(ie,oe){var he;return Object.create?he=Object.create(ie):(Xe.prototype=ie,he=new Xe),oe&&Nn(oe,he),he}var Me=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function He(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Me.test(ie))}function et(ie,oe){return oe?oe.source.indexOf("\\w")>-1&&He(ie)?!0:oe.test(ie):He(ie)}function Oe(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 jn(ie,oe,he){for(;(he<0?oe>0:oe<ie.length)&&Vn(ie.charAt(oe));)oe+=he;return oe}function An(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 si=null;function mn(ie,oe,he){var de;si=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:si=pe),Fe.from==oe&&(Fe.from!=Fe.to&&he!="before"?de=pe:si=pe)}return de!=null?de:si}var Fi=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",oe="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function he(Pt){return Pt<=247?ie.charAt(Pt):1424<=Pt&&Pt<=1524?"R":1536<=Pt&&Pt<=1785?oe.charAt(Pt-1536):1774<=Pt&&Pt<=2220?"r":8192<=Pt&&Pt<=8203?"w":Pt==8204?"b":"L"}var de=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Fe=/[LRr]/,Ve=/[Lb1n]/,rt=/[1n]/;function $e(Pt,tn,Ct){this.level=Pt,this.from=tn,this.to=Ct}return function(Pt,tn){var Ct=tn=="ltr"?"L":"R";if(Pt.length==0||tn=="ltr"&&!de.test(Pt))return!1;for(var bn=Pt.length,Ln=[],er=0;er<bn;++er)Ln.push(he(Pt.charCodeAt(er)));for(var Cr=0,qr=Ct;Cr<bn;++Cr){var jo=Ln[Cr];jo=="m"?Ln[Cr]=qr:qr=jo}for(var La=0,ta=Ct;La<bn;++La){var za=Ln[La];za=="1"&&ta=="r"?Ln[La]="n":Fe.test(za)&&(ta=za,za=="r"&&(Ln[La]="R"))}for(var ps=1,$o=Ln[0];ps<bn-1;++ps){var Gs=Ln[ps];Gs=="+"&&$o=="1"&&Ln[ps+1]=="1"?Ln[ps]="1":Gs==","&&$o==Ln[ps+1]&&($o=="1"||$o=="n")&&(Ln[ps]=$o),$o=Gs}for(var Xl=0;Xl<bn;++Xl){var Xu=Ln[Xl];if(Xu==",")Ln[Xl]="N";else if(Xu=="%"){var uu=void 0;for(uu=Xl+1;uu<bn&&Ln[uu]=="%";++uu);for(var Kc=Xl&&Ln[Xl-1]=="!"||uu<bn&&Ln[uu]=="1"?"1":"N",bc=Xl;bc<uu;++bc)Ln[bc]=Kc;Xl=uu-1}}for(var Ku=0,Qc=Ct;Ku<bn;++Ku){var vc=Ln[Ku];Qc=="L"&&vc=="1"?Ln[Ku]="L":Fe.test(vc)&&(Qc=vc)}for(var Gu=0;Gu<bn;++Gu)if(pe.test(Ln[Gu])){var Sl=void 0;for(Sl=Gu+1;Sl<bn&&pe.test(Ln[Sl]);++Sl);for(var Su=(Gu?Ln[Gu-1]:Ct)=="L",nc=(Sl<bn?Ln[Sl]:Ct)=="L",yc=Su==nc?Su?"L":"R":Ct,Rh=Gu;Rh<Sl;++Rh)Ln[Rh]=yc;Gu=Sl-1}for(var cu=[],Eh,Mu=0;Mu<bn;)if(Ve.test(Ln[Mu])){var ug=Mu;for(++Mu;Mu<bn&&Ve.test(Ln[Mu]);++Mu);cu.push(new $e(0,ug,Mu))}else{var hh=Mu,qc=cu.length,Gc=tn=="rtl"?1:0;for(++Mu;Mu<bn&&Ln[Mu]!="L";++Mu);for(var Rl=hh;Rl<Mu;)if(rt.test(Ln[Rl])){hh<Rl&&(cu.splice(qc,0,new $e(1,hh,Rl)),qc+=Gc);var ic=Rl;for(++Rl;Rl<Mu&&rt.test(Ln[Rl]);++Rl);cu.splice(qc,0,new $e(2,ic,Rl)),qc+=Gc,hh=Rl}else++Rl;hh<Mu&&cu.splice(qc,0,new $e(1,hh,Mu))}return tn=="ltr"&&(cu[0].level==1&&(Eh=Pt.match(/^\s+/))&&(cu[0].from=Eh[0].length,cu.unshift(new $e(0,0,Eh[0].length))),on(cu).level==1&&(Eh=Pt.match(/\s+$/))&&(on(cu).to-=Eh[0].length,cu.push(new $e(0,bn-Eh[0].length,bn)))),tn=="rtl"?cu.reverse():cu}}();function Vi(ie,oe){var he=ie.order;return he==null&&(he=ie.order=Fi(ie.text,oe)),he}var Ir=[],Qi=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]||Ir).concat(he)}};function Di(ie,oe){return ie._handlers&&ie._handlers[oe]||Ir}function $r(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 Yi(ie,oe){var he=Di(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 hr(ie,oe,he){return typeof oe=="string"&&(oe={type:oe,preventDefault:function(){this.defaultPrevented=!0}}),Yi(ie,he||oe.type,ie,oe),Kr(oe)||oe.codemirrorIgnore}function dr(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 Di(ie,oe).length>0}function Ii(ie){ie.prototype.on=function(oe,he){Qi(this,oe,he)},ie.prototype.off=function(oe,he){$r(this,oe,he)}}function ra(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Un(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Kr(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function ia(ie){ra(ie),Un(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(Nt&&Re<9)return!1;var ie=at("div");return"draggable"in ie||"dragDrop"in ie}(),Ha;function da(ie){if(Ha==null){var oe=at("span","\u200B");qe(ie,at("span",[oe,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Ha=oe.offsetWidth<=1&&oe.offsetHeight>2&&!(Nt&&Re<8))}var he=Ha?at("span","\u200B"):at("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=qe(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 ti=`
|
|
|
|
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=at("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),hn=null;function ii(ie){if(hn!=null)return hn;var oe=qe(ie,at("span","x")),he=oe.getBoundingClientRect(),de=Mt(oe,0,1).getBoundingClientRect();return hn=Math.abs(he.left-de.left)>1}var Yn={},In={};function en(ie,oe){arguments.length>2&&(oe.dependencies=Array.prototype.slice.call(arguments,2)),Yn[ie]=oe}function ni(ie,oe){In[ie]=oe}function zt(ie){if(typeof ie=="string"&&In.hasOwnProperty(ie))ie=In[ie];else if(ie&&typeof ie.name=="string"&&In.hasOwnProperty(ie.name)){var oe=In[ie.name];typeof oe=="string"&&(oe={name:oe}),ie=ke(oe,ie),ie.name=oe.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return zt("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return zt("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Kt(ie,oe){oe=zt(oe);var he=Yn[oe.name];if(!he)return Kt(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]={};Nn(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 hi(ie,oe,he){return ie.startState?ie.startState(oe,he):!0}var Ut=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};Ut.prototype.eol=function(){return this.pos>=this.string.length},Ut.prototype.sol=function(){return this.pos==this.lineStart},Ut.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ut.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ut.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},Ut.prototype.eatWhile=function(ie){for(var oe=this.pos;this.eat(ie););return this.pos>oe},Ut.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Ut.prototype.skipToEnd=function(){this.pos=this.string.length},Ut.prototype.skipTo=function(ie){var oe=this.string.indexOf(ie,this.pos);if(oe>-1)return this.pos=oe,!0},Ut.prototype.backUp=function(ie){this.pos-=ie},Ut.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)},Ut.prototype.indentation=function(){return lt(this.string,null,this.tabSize)-(this.lineStart?lt(this.string,this.lineStart,this.tabSize):0)},Ut.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)}},Ut.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ut.prototype.hideFirstChars=function(ie,oe){this.lineStart+=ie;try{return oe()}finally{this.lineStart-=ie}},Ut.prototype.lookAhead=function(ie){var oe=this.lineOracle;return oe&&oe.lookAhead(ie)},Ut.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function zn(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 xn(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 ri(ie,oe){var he=oe-ie.height;if(he)for(var de=ie;de;de=de.parent)de.height+=he}function $t(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 _i(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 rt=ie.lines[Ve],$e=rt.height;if(oe<$e)break;oe-=$e}return he+Ve}function Wr(ie,oe){return oe>=ie.first&&oe<ie.first+ie.size}function Br(ie,oe){return String(ie.lineNumberFormatter(oe+ie.firstLineNumber))}function Sn(ie,oe,he){if(he===void 0&&(he=null),!(this instanceof Sn))return new Sn(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 Sn(ie.line,ie.ch)}function aa(ie,oe){return or(ie,oe)<0?oe:ie}function ur(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 Sn(ie.first,0);var he=ie.first+ie.size-1;return oe.line>he?Sn(he,zn(ie,he).text.length):va(oe,zn(ie,oe.line).text.length)}function va(ie,oe){var he=ie.ch;return he==null||he>oe?Sn(ie.line,oe):he<0?Sn(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 pi=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 pi?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 pi(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(Pt,tn){return pe.push(Pt,tn)},Fe,de);for(var Ve=he.state,rt=function(Pt){he.baseTokens=pe;var tn=ie.state.overlays[Pt],Ct=1,bn=0;he.state=!0,$a(ie,oe.text,tn.mode,he,function(Ln,er){for(var Cr=Ct;bn<Ln;){var qr=pe[Ct];qr>Ln&&pe.splice(Ct,1,Ln,pe[Ct+1],qr),Ct+=2,bn=Math.min(Ln,qr)}if(er)if(tn.opaque)pe.splice(Cr,Ct-Cr,Ln,"overlay "+er),Ct=Cr+2;else for(;Cr<Ct;Cr+=2){var jo=pe[Cr+1];pe[Cr+1]=(jo?jo+" ":"")+"overlay "+er}},Fe),he.state=Ve,he.baseTokens=null,he.baseTokenPos=1},$e=0;$e<ie.state.overlays.length;++$e)rt($e);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,$t(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&&zn(de,Fe-1).stateAfter,rt=Ve?lo.fromSaved(de,Ve,Fe):new lo(de,hi(de.mode),Fe);return de.iter(Fe,oe,function($e){ln(ie,$e.text,rt);var Pt=rt.line;$e.stateAfter=Pt==oe-1||Pt%5==0||Pt>=pe.viewFrom&&Pt<pe.viewTo?rt.save():null,rt.nextLine()}),he&&(de.modeFrontier=rt.line),rt}function ln(ie,oe,he,de){var pe=ie.doc.mode,Fe=new Ut(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 rt=zn(pe,oe.line),$e=Ns(ie,oe.line,he),Pt=new Ut(rt.text,ie.options.tabSize,$e),tn;for(de&&(tn=[]);(de||Pt.pos<oe.ch)&&!Pt.eol();)Pt.start=Pt.pos,Ve=Va(Fe,Pt,$e.state),de&&tn.push(new Ao(Pt,Ve,Ti(pe.mode,$e.state)));return de?tn:new Ao(Pt,Ve,$e.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 rt=he.flattenSpans;rt==null&&(rt=ie.options.flattenSpans);var $e=0,Pt=null,tn=new Ut(oe,ie.options.tabSize,de),Ct,bn=ie.options.addModeClass&&[null];for(oe==""&&Ba(Yo(he,de.state),Fe);!tn.eol();){if(tn.pos>ie.options.maxHighlightLength?(rt=!1,Ve&&ln(ie,oe,de,tn.pos),tn.pos=oe.length,Ct=null):Ct=Ba(Va(he,tn,de.state,bn),Fe),bn){var Ln=bn[0].name;Ln&&(Ct="m-"+(Ct?Ln+" "+Ct:Ln))}if(!rt||Pt!=Ct){for(;$e<tn.start;)$e=Math.min(tn.start,$e+5e3),pe($e,Pt);Pt=Ct}tn.start=tn.pos}for(;$e<tn.pos;){var er=Math.min(tn.pos,$e+5e3);pe(er,Pt),$e=er}}function Er(ie,oe,he){for(var de,pe,Fe=ie.doc,Ve=he?-1:oe-(ie.doc.mode.innerMode?1e3:100),rt=oe;rt>Ve;--rt){if(rt<=Fe.first)return Fe.first;var $e=zn(Fe,rt-1),Pt=$e.stateAfter;if(Pt&&(!he||rt+(Pt instanceof pi?Pt.lookAhead:0)<=Fe.modeFrontier))return rt;var tn=lt($e.text,null,ie.options.tabSize);(pe==null||de>tn)&&(pe=rt-1,de=tn)}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=zn(ie,de).stateAfter;if(pe&&(!(pe instanceof pi)||de+pe.lookAhead<oe)){he=de+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,he)}}var So=!1,Wn=!1;function ka(){So=!0}function Cn(){Wn=!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,rt=Fe.from==null||(Ve.inclusiveLeft?Fe.from<=oe:Fe.from<oe);if(rt||Fe.from==oe&&Ve.type=="bookmark"&&(!he||!Fe.marker.insertLeft)){var $e=Fe.to==null||(Ve.inclusiveRight?Fe.to>=oe:Fe.to>oe);(de||(de=[])).push(new Po(Ve,Fe.from,$e?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,rt=Fe.to==null||(Ve.inclusiveRight?Fe.to>=oe:Fe.to>oe);if(rt||Fe.from==oe&&Ve.type=="bookmark"&&(!he||Fe.marker.insertLeft)){var $e=Fe.from==null||(Ve.inclusiveLeft?Fe.from<=oe:Fe.from<oe);(de||(de=[])).push(new Po(Ve,$e?null:Fe.from-oe,Fe.to==null?null:Fe.to-oe))}}return de}function us(ie,oe){if(oe.full)return null;var he=Wr(ie,oe.from.line)&&zn(ie,oe.from.line).markedSpans,de=Wr(ie,oe.to.line)&&zn(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,rt=Ss(he,pe,Ve),$e=Ua(de,Fe,Ve),Pt=oe.text.length==1,tn=on(oe.text).length+(Pt?pe:0);if(rt)for(var Ct=0;Ct<rt.length;++Ct){var bn=rt[Ct];if(bn.to==null){var Ln=Ws($e,bn.marker);Ln?Pt&&(bn.to=Ln.to==null?null:Ln.to+tn):bn.to=pe}}if($e)for(var er=0;er<$e.length;++er){var Cr=$e[er];if(Cr.to!=null&&(Cr.to+=tn),Cr.from==null){var qr=Ws(rt,Cr.marker);qr||(Cr.from=tn,Pt&&(rt||(rt=[])).push(Cr))}else Cr.from+=tn,Pt&&(rt||(rt=[])).push(Cr)}rt&&(rt=tl(rt)),$e&&$e!=rt&&($e=tl($e));var jo=[rt];if(!Pt){var La=oe.text.length-2,ta;if(La>0&&rt)for(var za=0;za<rt.length;++za)rt[za].to==null&&(ta||(ta=[])).push(new Po(rt[za].marker,null,null));for(var ps=0;ps<La;++ps)jo.push(ta);jo.push($e)}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(Ln){if(Ln.markedSpans)for(var er=0;er<Ln.markedSpans.length;++er){var Cr=Ln.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],rt=Ve.find(0),$e=0;$e<pe.length;++$e){var Pt=pe[$e];if(!(or(Pt.to,rt.from)<0||or(Pt.from,rt.to)>0)){var tn=[$e,1],Ct=or(Pt.from,rt.from),bn=or(Pt.to,rt.to);(Ct<0||!Ve.inclusiveLeft&&!Ct)&&tn.push({from:Pt.from,to:rt.from}),(bn>0||!Ve.inclusiveRight&&!bn)&&tn.push({from:rt.to,to:Pt.to}),pe.splice.apply(pe,tn),$e+=tn.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 st(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 Rt(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)||Rt(ie)-Rt(oe);return Ve||oe.id-ie.id}function Hn(ie,oe){var he=Wn&&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 Oi(ie){return Hn(ie,!0)}function Yt(ie){return Hn(ie,!1)}function Zn(ie,oe){var he=Wn&&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 Ji(ie,oe,he,de,pe){var Fe=zn(ie,oe),Ve=Wn&&Fe.markedSpans;if(Ve)for(var rt=0;rt<Ve.length;++rt){var $e=Ve[rt];if($e.marker.collapsed){var Pt=$e.marker.find(0),tn=or(Pt.from,he)||St($e.marker)-St(pe),Ct=or(Pt.to,de)||Rt($e.marker)-Rt(pe);if(!(tn>=0&&Ct<=0||tn<=0&&Ct>=0)&&(tn<=0&&($e.marker.inclusiveRight&&pe.inclusiveLeft?or(Pt.to,he)>=0:or(Pt.to,he)>0)||tn>=0&&($e.marker.inclusiveRight&&pe.inclusiveLeft?or(Pt.from,de)<=0:or(Pt.from,de)<0)))return!0}}}function xi(ie){for(var oe;oe=Oi(ie);)ie=oe.find(-1,!0).line;return ie}function nr(ie){for(var oe;oe=Yt(ie);)ie=oe.find(1,!0).line;return ie}function Zi(ie){for(var oe,he;oe=Yt(ie);)ie=oe.find(1,!0).line,(he||(he=[])).push(ie);return he}function vi(ie,oe){var he=zn(ie,oe),de=xi(he);return he==de?oe:$t(de)}function pr(ie,oe){if(oe>ie.lastLine())return oe;var he=zn(ie,oe),de;if(!fn(ie,he))return oe;for(;de=Yt(he);)he=de.find(1,!0).line;return $t(he)+1}function fn(ie,oe){var he=Wn&&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=xi(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 rt=Fe.children[Ve];if(rt==he)break;oe+=rt.height}return oe}function ya(ie){if(ie.height==0)return 0;for(var oe=ie.text.length,he,de=ie;he=Oi(de);){var pe=he.find(0,!0);de=pe.from.line,oe+=pe.from.ch-pe.to.ch}for(de=ie;he=Yt(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=zn(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,st(this,oe),this.height=he?he(this):1};Ia.prototype.lineNo=function(){return $t(this)},Ii(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),st(ie,he);var pe=de?de(ie):1;pe!=ie.height&&ri(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=jt("span",null,null,Je?"padding-right: .1px":null),de={pre:jt("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=Vi(Fe,ie.doc.direction))&&(de.addToken=Ys(de.addToken,Ve)),de.map=[];var rt=oe!=ie.display.externalMeasured&&$t(Fe);hu(Fe,de,el(ie,Fe,rt)),Fe.styleClasses&&(Fe.styleClasses.bgClass&&(de.bgClass=Jn(Fe.styleClasses.bgClass,de.bgClass||"")),Fe.styleClasses.textClass&&(de.textClass=Jn(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 $e=de.content.lastChild;(/\bcm-tab\b/.test($e.className)||$e.querySelector&&$e.querySelector(".cm-tab"))&&(de.content.className="cm-tab-wrap-hack")}return Yi(ie,"renderLine",ie,oe.line,de.pre),de.pre.className&&(de.textClass=Jn(de.pre.className,de.textClass||"")),de}function nl(ie){var oe=at("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 rt=ie.splitSpaces?gl(oe,ie.trailingSpace):oe,$e=ie.cm.state.specialChars,Pt=!1,tn;if(!$e.test(oe))ie.col+=oe.length,tn=document.createTextNode(rt),ie.map.push(ie.pos,ie.pos+oe.length,tn),Nt&&Re<9&&(Pt=!0),ie.pos+=oe.length;else{tn=document.createDocumentFragment();for(var Ct=0;;){$e.lastIndex=Ct;var bn=$e.exec(oe),Ln=bn?bn.index-Ct:oe.length-Ct;if(Ln){var er=document.createTextNode(rt.slice(Ct,Ct+Ln));Nt&&Re<9?tn.appendChild(at("span",[er])):tn.appendChild(er),ie.map.push(ie.pos,ie.pos+Ln,er),ie.col+=Ln,ie.pos+=Ln}if(!bn)break;Ct+=Ln+1;var Cr=void 0;if(bn[0]==" "){var qr=ie.cm.options.tabSize,jo=qr-ie.col%qr;Cr=tn.appendChild(at("span",At(jo),"cm-tab")),Cr.setAttribute("role","presentation"),Cr.setAttribute("cm-text"," "),ie.col+=jo}else bn[0]=="\r"||bn[0]==`
|
|
`?(Cr=tn.appendChild(at("span",bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Cr.setAttribute("cm-text",bn[0]),ie.col+=1):(Cr=ie.cm.options.specialCharPlaceholder(bn[0]),Cr.setAttribute("cm-text",bn[0]),Nt&&Re<9?tn.appendChild(at("span",[Cr])):tn.appendChild(Cr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Cr),ie.pos++}}if(ie.trailingSpace=rt.charCodeAt(oe.length-1)==32,he||de||pe||Pt||Fe||Ve){var La=he||"";de&&(La+=de),pe&&(La+=pe);var ta=at("span",[tn],La,Fe);if(Ve)for(var za in Ve)Ve.hasOwnProperty(za)&&za!="style"&&za!="class"&&ta.setAttribute(za,Ve[za]);return ie.content.appendChild(ta)}ie.content.appendChild(tn)}}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,rt,$e){pe=pe?pe+" cm-force-border":"cm-force-border";for(var Pt=he.pos,tn=Pt+de.length;;){for(var Ct=void 0,bn=0;bn<oe.length&&(Ct=oe[bn],!(Ct.to>Pt&&Ct.from<=Pt));bn++);if(Ct.to>=tn)return ie(he,de,pe,Fe,Ve,rt,$e);ie(he,de.slice(0,Ct.to-Pt),pe,Fe,null,rt,$e),Fe=null,de=de.slice(Ct.to-Pt),Pt=Ct.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 rt=pe.length,$e=0,Pt=1,tn="",Ct,bn,Ln=0,er,Cr,qr,jo,La;;){if(Ln==$e){er=Cr=qr=bn="",La=null,jo=null,Ln=1/0;for(var ta=[],za=void 0,ps=0;ps<de.length;++ps){var $o=de[ps],Gs=$o.marker;if(Gs.type=="bookmark"&&$o.from==$e&&Gs.widgetNode)ta.push(Gs);else if($o.from<=$e&&($o.to==null||$o.to>$e||Gs.collapsed&&$o.to==$e&&$o.from==$e)){if($o.to!=null&&$o.to!=$e&&Ln>$o.to&&(Ln=$o.to,Cr=""),Gs.className&&(er+=" "+Gs.className),Gs.css&&(bn=(bn?bn+";":"")+Gs.css),Gs.startStyle&&$o.from==$e&&(qr+=" "+Gs.startStyle),Gs.endStyle&&$o.to==Ln&&(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>$e&&Ln>$o.from&&(Ln=$o.from)}if(za)for(var Xu=0;Xu<za.length;Xu+=2)za[Xu+1]==Ln&&(Cr+=" "+za[Xu]);if(!jo||jo.from==$e)for(var uu=0;uu<ta.length;++uu)Ul(oe,0,ta[uu]);if(jo&&(jo.from||0)==$e){if(Ul(oe,(jo.to==null?rt+1:jo.to)-$e,jo.marker,jo.from==null),jo.to==null)return;jo.to==$e&&(jo=!1)}}if($e>=rt)break;for(var Kc=Math.min(rt,Ln);;){if(tn){var bc=$e+tn.length;if(!jo){var Ku=bc>Kc?tn.slice(0,Kc-$e):tn;oe.addToken(oe,Ku,Ct?Ct+er:er,qr,$e+Ku.length==Ln?Cr:"",bn,La)}if(bc>=Kc){tn=tn.slice(Kc-$e),$e=Kc;break}$e=bc,qr=""}tn=pe.slice(Fe,Fe=he[Pt++]),Ct=Hs(he[Pt++],oe.cm.options)}}}function fc(ie,oe,he){this.line=oe,this.rest=Zi(oe),this.size=this.rest?$t(on(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,zn(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=Di(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(rt){pe.push(function(){return he[rt].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=at("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Nt&&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(at("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=at("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),rt=oe.gutter=at("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(rt),Ve.insertBefore(rt,oe.text),oe.line.gutterClass&&(rt.className+=" "+oe.line.gutterClass),ie.options.lineNumbers&&(!Fe||!Fe["CodeMirror-linenumbers"])&&(oe.lineNumber=rt.appendChild(at("div",Br(ie.options,he),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+de.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Fe)for(var $e=0;$e<ie.display.gutterSpecs.length;++$e){var Pt=ie.display.gutterSpecs[$e].className,tn=Fe.hasOwnProperty(Pt)&&Fe[Pt];tn&&rt.appendChild(at("div",[tn],"CodeMirror-gutter-elt","left: "+de.gutterLeft[Pt]+"px; width: "+de.gutterWidth[Pt]+"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,rt=oe.widgets;Ve<rt.length;++Ve){var $e=rt[Ve],Pt=at("div",[$e.node],"CodeMirror-linewidget"+($e.className?" "+$e.className:""));$e.handleMouseEvents||Pt.setAttribute("cm-ignore-events","true"),Lu($e,Pt,he,de),ie.display.input.setUneditable(Pt),pe&&$e.above?Fe.insertBefore(Pt,he.gutter||he.text):Fe.appendChild(Pt),Mo($e,"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(!bt(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;"),qe(oe.display.measure,at("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=qe(ie.measure,at("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 Rn-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(),rt=0;rt<Ve.length-1;rt++){var $e=Ve[rt],Pt=Ve[rt+1];Math.abs($e.bottom-Pt.bottom)>2&&Fe.push(($e.bottom+Pt.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($t(ie.rest[pe])>he)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function Yh(ie,oe){oe=xi(oe);var he=$t(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,qe(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=$t(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,rt,$e,Pt=0;Pt<ie.length;Pt+=3)if(rt=ie[Pt],$e=ie[Pt+1],oe<rt?(pe=0,Fe=1,Ve="left"):oe<$e?(pe=oe-rt,Fe=pe+1):(Pt==ie.length-3||oe==$e&&ie[Pt+3]>oe)&&(Fe=$e-rt,pe=Fe-1,oe>=$e&&(Ve="right")),pe!=null){if(de=ie[Pt+2],rt==$e&&he==(de.insertLeft?"left":"right")&&(Ve=he),he=="left"&&pe==0)for(;Pt&&ie[Pt-2]==ie[Pt-3]&&ie[Pt-1].insertLeft;)de=ie[(Pt-=3)+2],Ve="left";if(he=="right"&&pe==$e-rt)for(;Pt<ie.length-3&&ie[Pt+3]==ie[Pt+4]&&!ie[Pt+5].insertLeft;)de=ie[(Pt+=3)+2],Ve="right";break}return{node:de,start:pe,end:Fe,collapse:Ve,coverStart:rt,coverEnd:$e}}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,rt=pe.end,$e=pe.collapse,Pt;if(Fe.nodeType==3){for(var tn=0;tn<4;tn++){for(;Ve&&Vn(oe.line.text.charAt(pe.coverStart+Ve));)--Ve;for(;pe.coverStart+rt<pe.coverEnd&&Vn(oe.line.text.charAt(pe.coverStart+rt));)++rt;if(Nt&&Re<9&&Ve==0&&rt==pe.coverEnd-pe.coverStart?Pt=Fe.parentNode.getBoundingClientRect():Pt=Sh(Mt(Fe,Ve,rt).getClientRects(),de),Pt.left||Pt.right||Ve==0)break;rt=Ve,Ve=Ve-1,$e="right"}Nt&&Re<11&&(Pt=sh(ie.display.measure,Pt))}else{Ve>0&&($e=de="right");var Ct;ie.options.lineWrapping&&(Ct=Fe.getClientRects()).length>1?Pt=Ct[de=="right"?Ct.length-1:0]:Pt=Fe.getBoundingClientRect()}if(Nt&&Re<9&&!Ve&&(!Pt||!Pt.left&&!Pt.right)){var bn=Fe.parentNode.getClientRects()[0];bn?Pt={left:bn.left,right:bn.left+Eu(ie.display),top:bn.top,bottom:bn.bottom}:Pt=ku}for(var Ln=Pt.top-oe.rect.top,er=Pt.bottom-oe.rect.top,Cr=(Ln+er)/2,qr=oe.view.measure.heights,jo=0;jo<qr.length-1&&!(Cr<qr[jo]);jo++);var La=jo?qr[jo-1]:0,ta=qr[jo],za={left:($e=="right"?Pt.right:Pt.left)-oe.rect.left,right:($e=="left"?Pt.left:Pt.right)-oe.rect.left,top:La,bottom:ta};return!Pt.left&&!Pt.right&&(za.bogus=!0),ie.options.singleCursorHeightPerLine||(za.rtop=Ln,za.rbottom=er),za}function sh(ie,oe){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ii(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 mt&&ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vl(){return mt&&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 rt=ie.display.lineSpace.getBoundingClientRect();Ve+=rt.top+(de=="window"?0:Vl());var $e=rt.left+(de=="window"?0:tu());he.left+=$e,he.right+=$e}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=zn(ie.doc,oe.line)),Ts(ie,de,Wu(ie,de,oe.ch,pe),he)}function Vs(ie,oe,he,de,pe,Fe){de=de||zn(ie.doc,oe.line),pe||(pe=Hu(ie,de));function Ve(er,Cr){var qr=Iu(ie,pe,er,Cr?"right":"left",Fe);return Cr?qr.left=qr.right:qr.right=qr.left,Ts(ie,de,qr,he)}var rt=Vi(de,ie.doc.direction),$e=oe.ch,Pt=oe.sticky;if($e>=de.text.length?($e=de.text.length,Pt="before"):$e<=0&&($e=0,Pt="after"),!rt)return Ve(Pt=="before"?$e-1:$e,Pt=="before");function tn(er,Cr,qr){var jo=rt[Cr],La=jo.level==1;return Ve(qr?er-1:er,La!=qr)}var Ct=mn(rt,$e,Pt),bn=si,Ln=tn($e,Ct,Pt=="before");return bn!=null&&(Ln.other=tn($e,bn,Pt!="before")),Ln}function Wl(ie,oe){var he=0;oe=io(ie.doc,oe),ie.options.lineWrapping||(he=Eu(ie.display)*oe.ch);var de=zn(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=Sn(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=_i(de,he),Fe=de.first+de.size-1;if(pe>Fe)return fu(de.first+de.size-1,zn(de,Fe).text.length,null,1,1);oe<0&&(oe=0);for(var Ve=zn(de,pe);;){var rt=di(ie,Ve,pe,oe,he),$e=Zn(Ve,rt.ch+(rt.xRel>0||rt.outside>0?1:0));if(!$e)return rt;var Pt=$e.find(1);if(Pt.line==pe)return Pt;Ve=zn(de,pe=Pt.line)}}function Fo(ie,oe,he,de){de-=xl(oe);var pe=oe.text.length,Fe=An(function(Ve){return Iu(ie,he,Ve-1).bottom<=de},pe,0);return pe=An(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 Ot(ie,oe,he,de){return ie.bottom<=he?!1:ie.top>he?!0:(de?ie.left:ie.right)>oe}function di(ie,oe,he,de,pe){pe-=so(oe);var Fe=Hu(ie,oe),Ve=xl(oe),rt=0,$e=oe.text.length,Pt=!0,tn=Vi(oe,ie.doc.direction);if(tn){var Ct=(ie.options.lineWrapping?Yu:Kl)(ie,oe,he,Fe,tn,de,pe);Pt=Ct.level!=1,rt=Pt?Ct.from:Ct.to-1,$e=Pt?Ct.to:Ct.from-1}var bn=null,Ln=null,er=An(function(ps){var $o=Iu(ie,Fe,ps);return $o.top+=Ve,$o.bottom+=Ve,Ot($o,de,pe,!1)?($o.top<=pe&&$o.left<=de&&(bn=ps,Ln=$o),!0):!1},rt,$e),Cr,qr,jo=!1;if(Ln){var La=de-Ln.left<Ln.right-de,ta=La==Pt;er=bn+(ta?0:1),qr=ta?"after":"before",Cr=La?Ln.left:Ln.right}else{!Pt&&(er==$e||er==rt)&&er++,qr=er==0?"after":er==oe.text.length?"before":Iu(ie,Fe,er-(Pt?1:0)).bottom+Ve<=pe==Pt?"after":"before";var za=Vs(ie,Sn(he,er,qr),"line",oe,Fe);Cr=za.left,jo=pe<za.top?-1:pe>=za.bottom?1:0}return er=jn(oe.text,er,1),fu(he,er,qr,jo,de-Cr)}function Kl(ie,oe,he,de,pe,Fe,Ve){var rt=An(function(Ct){var bn=pe[Ct],Ln=bn.level!=1;return Ot(Vs(ie,Sn(he,Ln?bn.to:bn.from,Ln?"before":"after"),"line",oe,de),Fe,Ve,!0)},0,pe.length-1),$e=pe[rt];if(rt>0){var Pt=$e.level!=1,tn=Vs(ie,Sn(he,Pt?$e.from:$e.to,Pt?"after":"before"),"line",oe,de);Ot(tn,Fe,Ve,!0)&&tn.top>Ve&&($e=pe[rt-1])}return $e}function Yu(ie,oe,he,de,pe,Fe,Ve){var rt=Fo(ie,oe,de,Ve),$e=rt.begin,Pt=rt.end;/\s/.test(oe.text.charAt(Pt-1))&&Pt--;for(var tn=null,Ct=null,bn=0;bn<pe.length;bn++){var Ln=pe[bn];if(!(Ln.from>=Pt||Ln.to<=$e)){var er=Ln.level!=1,Cr=Iu(ie,de,er?Math.min(Pt,Ln.to)-1:Math.max($e,Ln.from)).right,qr=Cr<Fe?Fe-Cr+1e9:Cr-Fe;(!tn||Ct>qr)&&(tn=Ln,Ct=qr)}}return tn||(tn=pe[pe.length-1]),tn.from<$e&&(tn={from:$e,to:tn.to,level:tn.level}),tn.to>Pt&&(tn={from:tn.from,to:Pt,level:tn.level}),tn}var ec;function pu(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(ec==null){ec=at("pre",null,"CodeMirror-line-like");for(var oe=0;oe<49;++oe)ec.appendChild(document.createTextNode("x")),ec.appendChild(at("br"));ec.appendChild(document.createTextNode("x"))}qe(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=at("span","xxxxxxxxxx"),he=at("pre",[oe],"CodeMirror-line-like");qe(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 rt=ie.display.gutterSpecs[Ve].className;he[rt]=Fe.offsetLeft+Fe.clientLeft+pe,de[rt]=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&&ri(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,rt=pe.lineSpace.getBoundingClientRect();try{Fe=oe.clientX-rt.left,Ve=oe.clientY-rt.top}catch(Ct){return null}var $e=Ru(ie,Fe,Ve),Pt;if(de&&$e.xRel>0&&(Pt=zn(ie.doc,$e.line).text).length==$e.ch){var tn=lt(Pt,Pt.length,ie.options.tabSize)-Pt.length;$e=Sn($e.line,Math.max(0,Math.round((Fe-du(ie.display).left)/Eu(ie.display))-tn))}return $e}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)Wn&&vi(ie.doc,oe)<pe.viewTo&&Ml(ie);else if(he<=pe.viewFrom)Wn&&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 rt=Fu(ie,oe,oe,-1),$e=Fu(ie,he,he+de,1);rt&&$e?(pe.view=pe.view.slice(0,rt.index).concat(_s(ie,rt.lineN,$e.lineN)).concat(pe.view.slice($e.index)),pe.viewTo+=de):Ml(ie)}var Pt=pe.externalMeasured;Pt&&(he<Pt.lineN?Pt.lineN+=de:oe<Pt.lineN+Pt.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(!Wn||he==ie.doc.first+ie.doc.size)return{index:pe,lineN:he};for(var rt=ie.display.viewFrom,$e=0;$e<pe;$e++)rt+=Ve[$e].size;if(rt!=oe){if(de>0){if(pe==Ve.length-1)return null;Fe=rt+Ve[pe].size-oe,pe++}else Fe=rt-oe;oe+=Fe,he+=Fe}for(;vi(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 rt=he.sel.ranges[Ve];if(!(rt.from().line>=ie.display.viewTo||rt.to().line<ie.display.viewFrom)){var $e=rt.empty();($e||ie.options.showCursorWhenSelecting)&&Bs(ie,rt.head,pe),$e||As(ie,rt,Fe)}}return de}function Bs(ie,oe,he){var de=Vs(ie,oe,"div",null,null,!ie.options.singleCursorHeightPerLine),pe=he.appendChild(at("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(at("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),rt=Ve.left,$e=Math.max(de.sizerWidth,Cu(ie)-de.sizer.offsetLeft)-Ve.right,Pt=pe.direction=="ltr";function tn(ta,za,ps,$o){za<0&&(za=0),za=Math.round(za),$o=Math.round($o),Fe.appendChild(at("div",null,"CodeMirror-selected","position: absolute; left: "+ta+`px;
|
|
top: `+za+"px; width: "+(ps==null?$e-ta:ps)+`px;
|
|
height: `+($o-za)+"px"))}function Ct(ta,za,ps){var $o=zn(pe,ta),Gs=$o.text.length,Xl,Xu;function uu(Ku,Qc){return ol(ie,Sn(ta,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=Vi($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=(Pt?yc:Rh)&&cu,ug=(Pt?Rh:yc)&&Eh,hh=Mu?rt:(Sl?Su:nc).left,qc=ug?$e:(Sl?nc:Su).right;tn(hh,Su.top,qc-hh,Su.bottom)}else{var Gc,Rl,ic,gd;Sl?(Gc=Pt&&yc&&cu?rt:Su.left,Rl=Pt?$e:Kc(Ku,vc,"before"),ic=Pt?rt:Kc(Qc,vc,"after"),gd=Pt&&Rh&&Eh?$e:nc.right):(Gc=Pt?Kc(Ku,vc,"before"):rt,Rl=!Pt&&yc&&cu?$e:Su.right,ic=!Pt&&Rh&&Eh?rt:nc.left,gd=Pt?Kc(Qc,vc,"after"):$e),tn(Gc,Su.top,Rl-Gc,Su.bottom),Su.bottom<nc.top&&tn(rt,Su.bottom,null,nc.top),tn(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 bn=oe.from(),Ln=oe.to();if(bn.line==Ln.line)Ct(bn.line,bn.ch,Ln.ch);else{var er=zn(pe,bn.line),Cr=zn(pe,Ln.line),qr=xi(er)==xi(Cr),jo=Ct(bn.line,bn.ch,qr?er.text.length+1:null).end,La=Ct(Ln.line,qr?0:null,Ln.ch).start;qr&&(jo.top<La.top-2?(tn(jo.right,jo.top,null,jo.bottom),tn(rt,La.top,La.left,La.bottom)):tn(jo.right,jo.top,La.left-jo.right,jo.bottom)),jo.bottom<La.top&&tn(rt,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||(Yi(ie,"focus",ie,oe),ie.state.focused=!0,Ht(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&&(Yi(ie,"blur",ie,oe),ie.state.focused=!1,nt(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function _r(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,rt=0;if(!pe.hidden){if(Nt&&Re<8){var $e=pe.node.offsetTop+pe.node.offsetHeight;Ve=$e-he,he=$e}else{var Pt=pe.node.getBoundingClientRect();Ve=Pt.bottom-Pt.top,!Fe&&pe.text.firstChild&&(rt=pe.text.firstChild.getBoundingClientRect().right-Pt.left-1)}var tn=pe.line.height-Ve;if((tn>.005||tn<-.005)&&(ri(pe.line,Ve),ju(pe.line),pe.rest))for(var Ct=0;Ct<pe.rest.length;Ct++)ju(pe.rest[Ct]);if(rt>ie.display.sizerWidth){var bn=Math.ceil(rt/Eu(ie.display));bn>ie.display.maxLineLength&&(ie.display.maxLineLength=bn,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=_i(oe,de),Ve=_i(oe,pe);if(he&&he.ensure){var rt=he.ensure.from.line,$e=he.ensure.to.line;rt<Fe?(Fe=rt,Ve=_i(oe,so(zn(oe,rt))+ie.wrapper.clientHeight)):Math.min($e,oe.lastLine())>=Ve&&(Fe=_i(oe,so(zn(oe,$e))-ie.wrapper.clientHeight),Ve=$e)}return{from:Fe,to:Math.max(Ve,Fe+1)}}function sd(ie,oe){if(!hr(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&&!We){var Fe=at("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?Sn(oe.line,oe.sticky=="before"?oe.ch-1:oe.ch,"after"):oe,he=oe.sticky=="before"?Sn(oe.line,oe.ch+1,"before"):oe);for(var Fe=0;Fe<5;Fe++){var Ve=!1,rt=Vs(ie,oe),$e=!he||he==oe?rt:Vs(ie,he);pe={left:Math.min(rt.left,$e.left),top:Math.min(rt.top,$e.top)-de,right:Math.max(rt.left,$e.left),bottom:Math.max(rt.bottom,$e.bottom)+de};var Pt=Th(ie,pe),tn=ie.doc.scrollTop,Ct=ie.doc.scrollLeft;if(Pt.scrollTop!=null&&(Lt(ie,Pt.scrollTop),Math.abs(ie.doc.scrollTop-tn)>1&&(Ve=!0)),Pt.scrollLeft!=null&&(It(ie,Pt.scrollLeft),Math.abs(ie.doc.scrollLeft-Ct)>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&&It(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 rt=ie.doc.height+Cc(he),$e=oe.top<de,Pt=oe.bottom>rt-de;if(oe.top<pe)Ve.scrollTop=$e?0:oe.top;else if(oe.bottom>pe+Fe){var tn=Math.min(oe.top,(Pt?rt:oe.bottom)-Fe);tn!=pe&&(Ve.scrollTop=tn)}var Ct=ie.options.fixedGutter?0:he.gutters.offsetWidth,bn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:he.scroller.scrollLeft-Ct,Ln=Cu(ie)-he.gutters.offsetWidth,er=oe.right-oe.left>Ln;return er&&(oe.right=oe.left+Ln),oe.left<10?Ve.scrollLeft=0:oe.left<bn?Ve.scrollLeft=Math.max(0,oe.left+Ct-(er?0:10)):oe.right>Ln+bn-3&&(Ve.scrollLeft=oe.right+(er?0:10)-Ln),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}),Tt(ie,oe,!0),ve&&vt(ie),cs(ie,100))}function Tt(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 It(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 yn=function(ie,oe,he){this.cm=he;var de=this.vert=at("div",[at("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=at("div",[at("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=pe.tabIndex=-1,ie(de),ie(pe),Qi(de,"scroll",function(){de.clientHeight&&oe(de.scrollTop,"vertical")}),Qi(pe,"scroll",function(){pe.clientWidth&&oe(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Nt&&Re<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yn.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}},yn.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yn.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yn.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},yn.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)},yn.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Tn=function(){};Tn.prototype.update=function(){return{bottom:0,right:0}},Tn.prototype.setScrollLeft=function(){},Tn.prototype.setScrollTop=function(){},Tn.prototype.clear=function(){};function li(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&&_r(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 Ei={native:yn,null:Tn};function gr(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&nt(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Ei[ie.options.scrollbarStyle](function(oe){ie.display.wrapper.insertBefore(oe,ie.display.scrollbarFiller),Qi(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"?It(ie,oe):Lt(ie,oe)},ie),ie.display.scrollbars.addClass&&Ht(ie.display.wrapper,ie.display.scrollbars.addClass)}var Bi=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:++Bi},Ra(ie.curOp)}function Xi(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++)na(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 na(ie){var oe=ie.cm,he=oe.display;ie.updatedDisplay&&_r(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&&It(oe,Math.min(oe.display.scroller.scrollLeft,ie.maxScrollLeft),!0),oe.display.maxLineChanged=!1);var he=ie.focus&&ie.focus==Bt();ie.preparedSelection&&oe.display.input.showSelection(ie.preparedSelection,he),(ie.updatedDisplay||ie.startHeight!=oe.doc.height)&&li(oe,ie.barMeasure),ie.updatedDisplay&&Le(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&&Tt(oe,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&It(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 rt=0;rt<Fe.length;++rt)Fe[rt].lines.length||Yi(Fe[rt],"hide");if(Ve)for(var $e=0;$e<Ve.length;++$e)Ve[$e].lines.length&&Yi(Ve[$e],"unhide");he.wrapper.offsetHeight&&(de.scrollTop=oe.display.scroller.scrollTop),ie.changeObjs&&Yi(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{Xi(ie)}}function oa(ie,oe){return function(){if(ie.curOp)return oe.apply(ie,arguments);ir(ie);try{return oe.apply(ie,arguments)}finally{Xi(ie)}}}function _a(ie){return function(){if(this.curOp)return ie.apply(this,arguments);ir(this);try{return ie.apply(this,arguments)}finally{Xi(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{Xi(oe)}}}function cs(ie,oe){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(oe,sn(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,rt=Fe.text.length>ie.options.maxHighlightLength?Ti(oe.mode,de.state):null,$e=al(ie,Fe,de,!0);rt&&(de.state=rt),Fe.styles=$e.styles;var Pt=Fe.styleClasses,tn=$e.classes;tn?Fe.styleClasses=tn:Pt&&(Fe.styleClasses=null);for(var Ct=!Ve||Ve.length!=Fe.styles.length||Pt!=tn&&(!Pt||!tn||Pt.bgClass!=tn.bgClass||Pt.textClass!=tn.textClass),bn=0;!Ct&&bn<Ve.length;++bn)Ct=Ve[bn]!=Fe.styles[bn];Ct&&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++)Yi.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=Bt();if(!oe||!bt(ie.display.lineDiv,oe))return null;var he={activeElt:oe};if(window.getSelection){var de=window.getSelection();de.anchorNode&&de.extend&&bt(ie.display.lineDiv,de.anchorNode)&&(he.anchorNode=de.anchorNode,he.anchorOffset=de.anchorOffset,he.focusNode=de.focusNode,he.focusOffset=de.focusOffset)}return he}function Be(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Bt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&bt(document.body,ie.anchorNode)&&bt(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)),Wn&&(Fe=vi(ie.doc,Fe),Ve=pr(ie.doc,Ve));var rt=Fe!=he.viewFrom||Ve!=he.viewTo||he.lastWrapHeight!=oe.wrapperHeight||he.lastWrapWidth!=oe.wrapperWidth;sl(ie,Fe,Ve),he.viewOffset=so(zn(ie.doc,he.viewFrom)),ie.display.mover.style.top=he.viewOffset+"px";var $e=su(ie);if(!rt&&$e==0&&!oe.force&&he.renderedView==he.view&&(he.updateLineNumbers==null||he.updateLineNumbers>=he.viewTo))return!1;var Pt=Cs(ie);return $e>4&&(he.lineDiv.style.display="none"),an(ie,he.updateLineNumbers,oe.dims),$e>4&&(he.lineDiv.style.display=""),he.renderedView=he.view,Be(Pt),ft(he.cursorDiv),ft(he.selectionDiv),he.gutters.style.height=he.sizer.style.minHeight=0,rt&&(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;_r(ie);var pe=dn(ie);Gl(ie),li(ie,pe),Le(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)){_r(ie),it(ie,he);var de=dn(ie);Gl(ie),li(ie,de),Le(ie,de),he.finish()}}function an(ie,oe,he){var de=ie.display,pe=ie.options.lineNumbers,Fe=de.lineDiv,Ve=Fe.firstChild;function rt(er){var Cr=er.nextSibling;return Je&&ue&&ie.display.currentWheelTarget==er?er.style.display="none":er.parentNode.removeChild(er),Cr}for(var $e=de.view,Pt=de.viewFrom,tn=0;tn<$e.length;tn++){var Ct=$e[tn];if(!Ct.hidden)if(!Ct.node||Ct.node.parentNode!=Fe){var bn=zu(ie,Ct,Pt,he);Fe.insertBefore(bn,Ve)}else{for(;Ve!=Ct.node;)Ve=rt(Ve);var Ln=pe&&oe!=null&&oe<=Pt&&Ct.lineNumber;Ct.changes&&(Ne(Ct.changes,"gutter")>-1&&(Ln=!1),Pu(ie,Ct,Pt,he)),Ln&&(ft(Ct.lineNumber),Ct.lineNumber.appendChild(document.createTextNode(Br(ie.options,Pt)))),Ve=Ct.node.nextSibling}Pt+=Ct.size}for(;Ve;)Ve=rt(Ve)}function Ce(ie){var oe=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=oe+"px"}function Le(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 rt=he[Ve].alignable;if(rt)for(var $e=0;$e<rt.length;$e++)rt[$e].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=Br(ie.options,oe.first+oe.size-1),de=ie.display;if(he.length!=de.lineNumChars){var pe=de.measure.appendChild(at("div",[at("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,rt=oe.appendChild(at("div",null,"CodeMirror-gutter "+Fe));Ve&&(rt.style.cssText=Ve),Fe=="CodeMirror-linenumbers"&&(ie.lineGutter=rt,rt.style.width=(ie.lineNumWidth||1)+"px")}oe.style.display=he.length?"":"none",Ce(ie)}function nn(ie){_t(ie.display),ll(ie),_e(ie)}function Bn(ie,oe,he,de){var pe=this;this.input=he,pe.scrollbarFiller=at("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=at("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=jt("div",null,"CodeMirror-code"),pe.selectionDiv=at("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=at("div",null,"CodeMirror-cursors"),pe.measure=at("div",null,"CodeMirror-measure"),pe.lineMeasure=at("div",null,"CodeMirror-measure"),pe.lineSpace=jt("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Fe=jt("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=at("div",[Fe],null,"position: relative"),pe.sizer=at("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=at("div",null,null,"position: absolute; height: "+Rn+"px; width: 1px;"),pe.gutters=at("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=at("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=at("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),Nt&&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 vn=0,Mn=null;Nt?Mn=-.53:ve?Mn=15:mt?Mn=-.7:Vt&&(Mn=-1/3);function Xn(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 Qn(ie){var oe=Xn(ie);return oe.x*=Mn,oe.y*=Mn,oe}function Wi(ie,oe){var he=Xn(oe),de=he.x,pe=he.y,Fe=ie.display,Ve=Fe.scroller,rt=Ve.scrollWidth>Ve.clientWidth,$e=Ve.scrollHeight>Ve.clientHeight;if(de&&rt||pe&&$e){if(pe&&ue&&Je){e:for(var Pt=oe.target,tn=Fe.view;Pt!=Ve;Pt=Pt.parentNode)for(var Ct=0;Ct<tn.length;Ct++)if(tn[Ct].node==Pt){ie.display.currentWheelTarget=Pt;break e}}if(de&&!ve&&!yt&&Mn!=null){pe&&$e&&Lt(ie,Math.max(0,Ve.scrollTop+pe*Mn)),It(ie,Math.max(0,Ve.scrollLeft+de*Mn)),(!pe||pe&&$e)&&ra(oe),Fe.wheelStartX=null;return}if(pe&&Mn!=null){var bn=pe*Mn,Ln=ie.doc.scrollTop,er=Ln+Fe.wrapper.clientHeight;bn<0?Ln=Math.max(0,Ln+bn-50):er=Math.min(ie.doc.height,er+bn+50),vt(ie,{top:Ln,bottom:er})}vn<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,qr=Ve.scrollTop-Fe.wheelStartY,jo=qr&&Fe.wheelDY&&qr/Fe.wheelDY||Cr&&Fe.wheelDX&&Cr/Fe.wheelDX;Fe.wheelStartX=Fe.wheelStartY=null,jo&&(Mn=(Mn*vn+jo)/(vn+1),++vn)}},200)):(Fe.wheelDX+=de,Fe.wheelDY+=pe))}}var yi=function(ie,oe){this.ranges=ie,this.primIndex=oe};yi.prototype.primary=function(){return this.ranges[this.primIndex]},yi.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},yi.prototype.deepCopy=function(){for(var ie=[],oe=0;oe<this.ranges.length;oe++)ie[oe]=new oi(Na(this.ranges[oe].anchor),Na(this.ranges[oe].head));return new yi(ie,this.primIndex)},yi.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},yi.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 oi=function(ie,oe){this.anchor=ie,this.head=oe};oi.prototype.from=function(){return ur(this.anchor,this.head)},oi.prototype.to=function(){return aa(this.anchor,this.head)},oi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Li(ie,oe,he){var de=ie&&ie.options.selectionsMayTouch,pe=oe[he];oe.sort(function(bn,Ln){return or(bn.from(),Ln.from())}),he=Ne(oe,pe);for(var Fe=1;Fe<oe.length;Fe++){var Ve=oe[Fe],rt=oe[Fe-1],$e=or(rt.to(),Ve.from());if(de&&!Ve.empty()?$e>0:$e>=0){var Pt=ur(rt.from(),Ve.from()),tn=aa(rt.to(),Ve.to()),Ct=rt.empty()?Ve.from()==Ve.head:rt.from()==rt.head;Fe<=he&&--he,oe.splice(--Fe,2,new oi(Ct?tn:Pt,Ct?Pt:tn))}}return new yi(oe,he)}function Ui(ie,oe){return new yi([new oi(ie,oe||ie)],0)}function sr(ie){return ie.text?Sn(ie.from.line+ie.text.length-1,on(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 sr(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+=sr(oe).ch-oe.to.ch),Sn(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 oi(to(pe.anchor,oe),to(pe.head,oe)))}return Li(ie.cm,he,ie.sel.primIndex)}function Sr(ie,oe,he){return ie.line==oe.line?Sn(he.line,ie.ch-oe.ch+he.ch):Sn(he.line+(ie.line-oe.line),ie.ch)}function wo(ie,oe,he){for(var de=[],pe=Sn(ie.first,0),Fe=pe,Ve=0;Ve<oe.length;Ve++){var rt=oe[Ve],$e=Sr(rt.from,pe,Fe),Pt=Sr(sr(rt),pe,Fe);if(pe=rt.to,Fe=Pt,he=="around"){var tn=ie.sel.ranges[Ve],Ct=or(tn.head,tn.anchor)<0;de[Ve]=new oi(Ct?Pt:$e,Ct?$e:Pt)}else de[Ve]=new oi($e,$e)}return new yi(de,ie.sel.primIndex)}function bi(ie){ie.doc.mode=Kt(ie.options,ie.doc.modeOption),Xr(ie)}function Xr(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&&on(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,ta,za){ns(La,ta,za,de),Mo(La,"change",La,oe)}function Ve(La,ta){for(var za=[],ps=La;ps<ta;++ps)za.push(new Ia(Pt[ps],pe(ps),de));return za}var rt=oe.from,$e=oe.to,Pt=oe.text,tn=zn(ie,rt.line),Ct=zn(ie,$e.line),bn=on(Pt),Ln=pe(Pt.length-1),er=$e.line-rt.line;if(oe.full)ie.insert(0,Ve(0,Pt.length)),ie.remove(Pt.length,ie.size-Pt.length);else if(mr(ie,oe)){var Cr=Ve(0,Pt.length-1);Fe(Ct,Ct.text,Ln),er&&ie.remove(rt.line,er),Cr.length&&ie.insert(rt.line,Cr)}else if(tn==Ct)if(Pt.length==1)Fe(tn,tn.text.slice(0,rt.ch)+bn+tn.text.slice($e.ch),Ln);else{var qr=Ve(1,Pt.length-1);qr.push(new Ia(bn+tn.text.slice($e.ch),Ln,de)),Fe(tn,tn.text.slice(0,rt.ch)+Pt[0],pe(0)),ie.insert(rt.line+1,qr)}else if(Pt.length==1)Fe(tn,tn.text.slice(0,rt.ch)+Pt[0]+Ct.text.slice($e.ch),pe(0)),ie.remove(rt.line+1,er);else{Fe(tn,tn.text.slice(0,rt.ch)+Pt[0],pe(0)),Fe(Ct,bn+Ct.text.slice($e.ch),Ln);var jo=Ve(1,Pt.length-1);er>1&&ie.remove(rt.line+1,er-1),ie.insert(rt.line+1,jo)}Mo(ie,"change",ie,oe)}function po(ie,oe,he){function de(pe,Fe,Ve){if(pe.linked)for(var rt=0;rt<pe.linked.length;++rt){var $e=pe.linked[rt];if($e.doc!=Fe){var Pt=Ve&&$e.sharedHist;he&&!Pt||(oe($e.doc,Pt),de($e.doc,pe,Pt))}}}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),bi(ie),To(ie),ie.options.lineWrapping||fa(ie),ie.options.mode=oe.modeOption,ll(ie)}function To(ie){(ie.doc.direction=="rtl"?Ht:nt)(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:sr(oe),text:xn(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=on(ie);if(oe.ranges)ie.pop();else break}}function ca(ie,oe){if(oe)return Co(ie.done),on(ie.done);if(ie.done.length&&!on(ie.done).ranges)return on(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),on(ie.done)}function Da(ie,oe,he,de){var pe=ie.history;pe.undone.length=0;var Fe=+new Date,Ve,rt;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)))rt=on(Ve.changes),or(oe.from,oe.to)==0&&or(oe.from,rt.to)==0?rt.to=sr(oe):Ve.changes.push(Dr(ie,oe));else{var $e=on(pe.done);for((!$e||!$e.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,rt||Yi(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 Jr(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,on(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=on(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 rt=0;rt<Ve.length;++rt){for(var $e=Ve[rt],Pt=0;Pt<Fe.length;++Pt)if(Fe[Pt].marker==$e.marker)continue e;Fe.push($e)}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?yi.prototype.deepCopy.call(Fe):Fe);continue}var Ve=Fe.changes,rt=[];de.push({changes:rt});for(var $e=0;$e<Ve.length;++$e){var Pt=Ve[$e],tn=void 0;if(rt.push({from:Pt.from,to:Pt.to,text:Pt.text}),oe)for(var Ct in Pt)(tn=Ct.match(/^spans_(\d+)$/))&&Ne(oe,Number(tn[1]))>-1&&(on(rt)[Ct]=Pt[Ct],delete Pt[Ct])}}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 oi(pe,oe)}else return new oi(he||oe,oe)}function ea(ie,oe,he,de,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),Mr(ie,new yi([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=Li(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,Li(ie.cm,pe,ie.sel.primIndex),de)}function Zr(ie,oe,he,de){Mr(ie,Ui(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 oi(io(ie,pe[Fe].anchor),io(ie,pe[Fe].head))},origin:he&&he.origin};return Yi(ie,"beforeSelectionChange",ie,de),ie.cm&&Yi(ie.cm,"beforeSelectionChange",ie.cm,de),de.ranges!=oe.ranges?Li(ie.cm,de.ranges,de.ranges.length-1):oe}function fo(ie,oe,he){var de=ie.history.done,pe=on(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),Jr(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,dr(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],rt=oe.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Fe],$e=Ue(ie,Ve.anchor,rt&&rt.anchor,he,de),Pt=Ue(ie,Ve.head,rt&&rt.head,he,de);(pe||$e!=Ve.anchor||Pt!=Ve.head)&&(pe||(pe=oe.ranges.slice(0,Fe)),pe[Fe]=new oi($e,Pt))}return pe?Li(ie.cm,pe,oe.primIndex):oe}function je(ie,oe,he,de,pe){var Fe=zn(ie,oe.line);if(Fe.markedSpans)for(var Ve=0;Ve<Fe.markedSpans.length;++Ve){var rt=Fe.markedSpans[Ve],$e=rt.marker,Pt="selectLeft"in $e?!$e.selectLeft:$e.inclusiveLeft,tn="selectRight"in $e?!$e.selectRight:$e.inclusiveRight;if((rt.from==null||(Pt?rt.from<=oe.ch:rt.from<oe.ch))&&(rt.to==null||(tn?rt.to>=oe.ch:rt.to>oe.ch))){if(pe&&(Yi($e,"beforeCursorEnter"),$e.explicitlyCleared))if(Fe.markedSpans){--Ve;continue}else break;if(!$e.atomic)continue;if(he){var Ct=$e.find(de<0?1:-1),bn=void 0;if((de<0?tn:Pt)&&(Ct=dt(ie,Ct,-de,Ct&&Ct.line==oe.line?Fe:null)),Ct&&Ct.line==oe.line&&(bn=or(Ct,he))&&(de<0?bn<0:bn>0))return je(ie,Ct,oe,de,pe)}var Ln=$e.find(de<0?-1:1);return(de<0?Pt:tn)&&(Ln=dt(ie,Ln,de,Ln.line==oe.line?Fe:null)),Ln?je(ie,Ln,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,Sn(ie.first,0))}function dt(ie,oe,he,de){return he<0&&oe.ch==0?oe.line>ie.first?io(ie,Sn(oe.line-1)):null:he>0&&oe.ch==(de||zn(ie,oe.line)).text.length?oe.line<ie.first+ie.size-1?Sn(oe.line+1,0):null:new Sn(oe.line,oe.ch+he)}function Wt(ie){ie.setSelection(Sn(ie.firstLine(),0),Sn(ie.lastLine()),Zt)}function Jt(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,rt){pe&&(de.from=io(ie,pe)),Fe&&(de.to=io(ie,Fe)),Ve&&(de.text=Ve),rt!==void 0&&(de.origin=rt)}),Yi(ie,"beforeChange",ie,de),ie.cm&&Yi(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 rn(ie,oe,he){if(ie.cm){if(!ie.cm.curOp)return oa(ie.cm,rn)(ie,oe,he);if(ie.cm.state.suppressEdits)return}if(!((kn(ie,"beforeChange")||ie.cm&&kn(ie.cm,"beforeChange"))&&(oe=Jt(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)Fn(ie,{from:de[pe].from,to:de[pe].to,text:pe?[""]:oe.text,origin:oe.origin});else Fn(ie,oe)}}function Fn(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),Ci(ie,oe,he,us(ie,oe));var de=[];po(ie,function(pe,Fe){!Fe&&Ne(de,pe.history)==-1&&(ki(pe.history,oe),de.push(pe.history)),Ci(pe,oe,null,us(pe,oe))})}}function Kn(ie,oe,he){var de=ie.cm&&ie.cm.state.suppressEdits;if(!(de&&!he)){for(var pe=ie.history,Fe,Ve=ie.sel,rt=oe=="undo"?pe.done:pe.undone,$e=oe=="undo"?pe.undone:pe.done,Pt=0;Pt<rt.length&&(Fe=rt[Pt],!(he?Fe.ranges&&!Fe.equals(ie.sel):!Fe.ranges));Pt++);if(Pt!=rt.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Fe=rt.pop(),Fe.ranges){if(Jo(Fe,$e),he&&!Fe.equals(ie.sel)){Mr(ie,Fe,{clearRedo:!1});return}Ve=Fe}else if(de){rt.push(Fe);return}else break;var tn=[];Jo(Ve,$e),$e.push({changes:tn,generation:pe.generation}),pe.generation=Fe.generation||++pe.maxGeneration;for(var Ct=kn(ie,"beforeChange")||ie.cm&&kn(ie.cm,"beforeChange"),bn=function(Cr){var qr=Fe.changes[Cr];if(qr.origin=oe,Ct&&!Jt(ie,qr,!1))return rt.length=0,{};tn.push(Dr(ie,qr));var jo=Cr?br(ie,qr):on(rt);Ci(ie,qr,jo,ba(ie,qr)),!Cr&&ie.cm&&ie.cm.scrollIntoView({from:qr.from,to:sr(qr)});var La=[];po(ie,function(ta,za){!za&&Ne(La,ta.history)==-1&&(ki(ta.history,qr),La.push(ta.history)),Ci(ta,qr,null,ba(ta,qr))})},Ln=Fe.changes.length-1;Ln>=0;--Ln){var er=bn(Ln);if(er)return er.v}}}}function En(ie,oe){if(oe!=0&&(ie.first+=oe,ie.sel=new yi(Si(ie.sel.ranges,function(pe){return new oi(Sn(pe.anchor.line+oe,pe.anchor.ch),Sn(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 Ci(ie,oe,he,de){if(ie.cm&&!ie.cm.curOp)return oa(ie.cm,Ci)(ie,oe,he,de);if(oe.to.line<ie.first){En(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);En(ie,pe),oe={from:Sn(ie.first,0),to:Sn(oe.to.line+pe,oe.to.ch),text:[on(oe.text)],origin:oe.origin}}var Fe=ie.lastLine();oe.to.line>Fe&&(oe={from:oe.from,to:Sn(Fe,zn(ie,Fe).text.length),text:[oe.text[0]],origin:oe.origin}),oe.removed=xn(ie,oe.from,oe.to),he||(he=br(ie,oe)),ie.cm?Gi(ie.cm,oe,de):ao(ie,oe,de),Gr(ie,he,Zt),ie.cantEdit&&Ue(ie,Sn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Gi(ie,oe,he){var de=ie.doc,pe=ie.display,Fe=oe.from,Ve=oe.to,rt=!1,$e=Fe.line;ie.options.lineWrapping||($e=$t(xi(zn(de,Fe.line))),de.iter($e,Ve.line+1,function(Ln){if(Ln==pe.maxLine)return rt=!0,!0})),de.sel.contains(oe.from,oe.to)>-1&&dr(ie),ao(de,oe,he,wl(ie)),ie.options.lineWrapping||(de.iter($e,Fe.line+oe.text.length,function(Ln){var er=ya(Ln);er>pe.maxLineLength&&(pe.maxLine=Ln,pe.maxLineLength=er,pe.maxLineChanged=!0,rt=!1)}),rt&&(ie.curOp.updateMaxLine=!0)),uo(de,Fe.line),cs(ie,400);var Pt=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,Pt);var tn=kn(ie,"changes"),Ct=kn(ie,"change");if(Ct||tn){var bn={from:Fe,to:Ve,text:oe.text,removed:oe.removed,origin:oe.origin};Ct&&Mo(ie,"change",ie,bn),tn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(bn)}ie.display.selForContextMenu=null}function Pi(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)),rn(ie,{from:he,to:de,text:oe,origin:pe})}function Ai(ie,oe,he,de){he<ie.line?ie.line+=de:oe<ie.line&&(ie.line=oe,ie.ch=0)}function Ni(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 rt=0;rt<Fe.ranges.length;rt++)Ai(Fe.ranges[rt].anchor,oe,he,de),Ai(Fe.ranges[rt].head,oe,he,de);continue}for(var $e=0;$e<Fe.changes.length;++$e){var Pt=Fe.changes[$e];if(he<Pt.from.line)Pt.from=Sn(Pt.from.line+de,Pt.from.ch),Pt.to=Sn(Pt.to.line+de,Pt.to.ch);else if(oe<=Pt.to.line){Ve=!1;break}}Ve||(ie.splice(0,pe+1),pe=0)}}function ki(ie,oe){var he=oe.from.line,de=oe.to.line,pe=oe.text.length-(de-he)-1;Ni(ie.done,he,de,pe),Ni(ie.undone,he,de,pe)}function wn(ie,oe,he,de){var pe=oe,Fe=oe;return typeof oe=="number"?Fe=zn(ie,Nr(ie,oe)):pe=$t(oe),pe==null?null:(de(Fe,pe)&&ie.cm&&fs(ie.cm,pe,he),Fe)}function Gn(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}Gn.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 $n(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}$n.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 Gn))){var rt=[];this.collapse(rt),this.children=[new Gn(rt)],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,rt=Ve;rt<pe.lines.length;){var $e=new Gn(pe.lines.slice(rt,rt+=25));pe.height-=$e.height,this.children.splice(++de,0,$e),$e.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 $n(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 $n(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 fi=function(ie,oe,he){if(he)for(var de in he)he.hasOwnProperty(de)&&(this[de]=he[de]);this.doc=ie,this.node=oe};fi.prototype.clear=function(){var ie=this.doc.cm,oe=this.line.widgets,he=this.line,de=$t(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);ri(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))}},fi.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)||ri(de,de.height+pe),he&&oo(he,function(){he.curOp.forceUpdate=!0,rr(he,de,pe),Mo(he,"lineWidgetChanged",he,ie,$t(de))}))},Ii(fi);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 fi(ie,he,de),Fe=ie.cm;return Fe&&pe.noHScroll&&(Fe.display.alignWidgets=!0),wn(ie,oe,"widget",function(Ve){var rt=Ve.widgets||(Ve.widgets=[]);if(pe.insertAt==null?rt.push(pe):rt.splice(Math.min(rt.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=Ve,Fe&&!fn(ie,Ve)){var $e=so(Ve)<ie.scrollTop;ri(Ve,Ve.height+Fl(pe)),$e&&_u(Fe,pe.height),Fe.curOp.forceUpdate=!0}return!0}),Fe&&Mo(Fe,"lineWidgetAdded",Fe,pe,typeof oe=="number"?oe:$t(oe)),pe}var ar=0,Et=function(ie,oe){this.lines=[],this.type=oe,this.doc=ie,this.id=++ar};Et.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],rt=Ws(Ve.markedSpans,this);ie&&!this.collapsed?fs(ie,$t(Ve),"text"):ie&&(rt.to!=null&&(pe=$t(Ve)),rt.from!=null&&(de=$t(Ve))),Ve.markedSpans=ds(Ve.markedSpans,rt),rt.from==null&&this.collapsed&&!fn(this.doc,Ve)&&ie&&ri(Ve,pu(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var $e=0;$e<this.lines.length;++$e){var Pt=xi(this.lines[$e]),tn=ya(Pt);tn>ie.display.maxLineLength&&(ie.display.maxLine=Pt,ie.display.maxLineLength=tn,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&&Xi(ie),this.parent&&this.parent.clear()}},Et.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=Sn(oe?Fe:$t(Fe),Ve.from),ie==-1))return he;if(Ve.to!=null&&(de=Sn(oe?Fe:$t(Fe),Ve.to),ie==1))return de}return he&&{from:he,to:de}},Et.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=$t(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 rt=he.height;he.height=null;var $e=Fl(he)-rt;$e&&ri(pe,pe.height+$e)}Mo(de,"markerChanged",de,ie)})},Et.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)},Et.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)}},Ii(Et);function lr(ie,oe,he,de,pe){if(de&&de.shared)return Or(ie,oe,he,de,pe);if(ie.cm&&!ie.cm.curOp)return oa(ie.cm,lr)(ie,oe,he,de,pe);var Fe=new Et(ie,pe),Ve=or(oe,he);if(de&&Nn(de,Fe,!1),Ve>0||Ve==0&&Fe.clearWhenEmpty!==!1)return Fe;if(Fe.replacedWith&&(Fe.collapsed=!0,Fe.widgetNode=jt("span",[Fe.replacedWith],"CodeMirror-widget"),de.handleMouseEvents||Fe.widgetNode.setAttribute("cm-ignore-events","true"),de.insertLeft&&(Fe.widgetNode.insertLeft=!0)),Fe.collapsed){if(Ji(ie,oe.line,oe,he,Fe)||oe.line!=he.line&&Ji(ie,he.line,oe,he,Fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Cn()}Fe.addToHistory&&Da(ie,{from:oe,to:he,origin:"markText"},ie.sel,NaN);var rt=oe.line,$e=ie.cm,Pt;if(ie.iter(rt,he.line+1,function(Ct){$e&&Fe.collapsed&&!$e.options.lineWrapping&&xi(Ct)==$e.display.maxLine&&(Pt=!0),Fe.collapsed&&rt!=oe.line&&ri(Ct,0),kl(Ct,new Po(Fe,rt==oe.line?oe.ch:null,rt==he.line?he.ch:null)),++rt}),Fe.collapsed&&ie.iter(oe.line,he.line+1,function(Ct){fn(ie,Ct)&&ri(Ct,0)}),Fe.clearOnEnter&&Qi(Fe,"beforeCursorEnter",function(){return Fe.clear()}),Fe.readOnly&&(ka(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Fe.collapsed&&(Fe.id=++ar,Fe.atomic=!0),$e){if(Pt&&($e.curOp.updateMaxLine=!0),Fe.collapsed)ll($e,oe.line,he.line+1);else if(Fe.className||Fe.startStyle||Fe.endStyle||Fe.css||Fe.attributes||Fe.title)for(var tn=oe.line;tn<=he.line;tn++)fs($e,tn,"text");Fe.atomic&&ye($e.doc),Mo($e,"markerAdded",$e,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)},Ii(Pr);function Or(ie,oe,he,de,pe){de=Nn(de),de.shared=!1;var Fe=[lr(ie,oe,he,de,pe)],Ve=Fe[0],rt=de.widgetNode;return po(ie,function($e){rt&&(de.widgetNode=rt.cloneNode(!0)),Fe.push(lr($e,io($e,oe),io($e,he),de,pe));for(var Pt=0;Pt<$e.linked.length;++Pt)if($e.linked[Pt].isParent)return;Ve=on(Fe)}),new Pr(Fe,Ve)}function Oo(ie){return ie.findMarks(Sn(ie.first,0),ie.clipPos(Sn(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 rt=lr(ie,Fe,Ve,de.primary,de.primary.type);de.markers.push(rt),rt.parent=de}}}function wi(ie){for(var oe=function(de){var pe=ie[de],Fe=[pe.primary.doc];po(pe.primary.doc,function($e){return Fe.push($e)});for(var Ve=0;Ve<pe.markers.length;Ve++){var rt=pe.markers[Ve];Ne(Fe,rt.doc)==-1&&(rt.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),$n.call(this,[new Gn([new Ia("",null)])]),this.first=he,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=he;var Fe=Sn(he,0);this.sel=Ui(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,Ui(Fe),Zt)};Hi.prototype=ke($n.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=Sn(this.first,0),he=this.first+this.size-1;rn(this,{from:oe,to:Sn(he,zn(this,he).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Zu(this.cm,0,0),Mr(this,Ui(oe),Zt)}),replaceRange:function(ie,oe,he,de){oe=io(this,oe),he=he?io(this,he):oe,Pi(this,ie,oe,he,de)},getRange:function(ie,oe,he){var de=xn(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(Wr(this,ie))return zn(this,ie)},getLineNumber:function(ie){return $t(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=zn(this,ie)),xi(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"?Sn(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){ea(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=Si(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 oi(io(this,ie[pe].anchor),io(this,ie[pe].head));oe==null&&(oe=Math.min(ie.length-1,this.sel.primIndex)),Mr(this,Li(this.cm,de,oe),he)}}),addSelection:qo(function(ie,oe,he){var de=this.sel.ranges.slice(0);de.push(new oi(io(this,ie),io(this,oe||ie))),Mr(this,Li(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=xn(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=xn(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 rt=oe&&oe!="end"&&wo(this,de,oe),$e=de.length-1;$e>=0;$e--)rn(this,de[$e]);rt?fo(this,rt):this.cm&&Dc(this.cm)}),undo:qo(function(){Kn(this,"undo")}),redo:qo(function(){Kn(this,"redo")}),undoSelection:qo(function(){Kn(this,"undo",!0)}),redoSelection:qo(function(){Kn(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 wn(this,ie,"gutter",function(de){var pe=de.gutterMarkers||(de.gutterMarkers={});return pe[oe]=he,!he&&Oe(pe)&&(de.gutterMarkers=null),!0})}),clearGutter:qo(function(ie){var oe=this;this.iter(function(he){he.gutterMarkers&&he.gutterMarkers[ie]&&wn(oe,he,"gutter",function(){return he.gutterMarkers[ie]=null,Oe(he.gutterMarkers)&&(he.gutterMarkers=null),!0})})}),lineInfo:function(ie){var oe;if(typeof ie=="number"){if(!Wr(this,ie)||(oe=ie,ie=zn(this,ie),!ie))return null}else if(oe=$t(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 wn(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 wn(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 rt=Ve.index+Ve[0].length;de[pe]=Fe.slice(0,Ve.index)+(!Ve.index||rt==Fe.length?"":" ")+Fe.slice(rt)||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 lr(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),lr(this,ie,ie,he,"bookmark")},findMarksAt:function(ie){ie=io(this,ie);var oe=[],he=zn(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 rt=0;rt<Ve.length;rt++){var $e=Ve[rt];!($e.to!=null&&pe==ie.line&&ie.ch>=$e.to||$e.from==null&&pe!=ie.line||$e.from!=null&&pe==oe.line&&$e.from>=oe.ch)&&(!he||he($e.marker))&&de.push($e.marker.parent||$e.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,Sn(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),wi(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):ti(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),!(hr(oe,ie)||Il(oe.display,ie))){ra(ie),Nt&&(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,rt=function(){++Ve==pe&&oa(oe,function(){he=io(oe.doc,he);var Ln={from:he,to:he,text:oe.doc.splitLines(Fe.filter(function(er){return er!=null}).join(oe.doc.lineSeparator())),origin:"paste"};rn(oe.doc,Ln),fo(oe.doc,Ui(io(oe.doc,he),io(oe.doc,sr(Ln))))})()},$e=function(Ln,er){if(oe.options.allowDropFileTypes&&Ne(oe.options.allowDropFileTypes,Ln.type)==-1){rt();return}var Cr=new FileReader;Cr.onerror=function(){return rt()},Cr.onload=function(){var qr=Cr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(qr)){rt();return}Fe[er]=qr,rt()},Cr.readAsText(Ln)},Pt=0;Pt<de.length;Pt++)$e(de[Pt],Pt);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 tn=ie.dataTransfer.getData("Text");if(tn){var Ct;if(oe.state.draggingText&&!oe.state.draggingText.copy&&(Ct=oe.listSelections()),Gr(oe.doc,Ui(he,he)),Ct)for(var bn=0;bn<Ct.length;++bn)Pi(oe.doc,"",Ct[bn].anchor,Ct[bn].head,"drag");oe.replaceSelection(tn,"around","paste"),oe.display.input.focus()}}catch(Ln){}}}}function vr(ie,oe){if(Nt&&(!ie.state.draggingText||+new Date-Lr<100)){ia(oe);return}if(!(hr(ie,oe)||Il(ie.display,oe))&&(oe.dataTransfer.setData("Text",ie.getSelection()),oe.dataTransfer.effectAllowed="copyMove",oe.dataTransfer.setDragImage&&!Vt)){var he=at("img",null,null,"position: fixed; left: 0; top: 0;");he.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",yt&&(he.width=he.height=1,ie.display.wrapper.appendChild(he),he._top=he.offsetTop),oe.dataTransfer.setDragImage(he,0,0),yt&&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=at("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),qe(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 Hr=!1;function Vr(){Hr||(Aa(),Hr=!0)}function Aa(){var ie;Qi(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,fr(Ya)},100))}),Qi(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 rt=oe[Ve];if(/^(cmd|meta|m)$/i.test(rt))Fe=!0;else if(/^a(lt)?$/i.test(rt))he=!0;else if(/^(c|ctrl|control)$/i.test(rt))de=!0;else if(/^s(hift)?$/i.test(rt))pe=!0;else throw new Error("Unrecognized modifier name: "+rt)}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=Si(he.split(" "),Oa),Fe=0;Fe<pe.length;Fe++){var Ve=void 0,rt=void 0;Fe==pe.length-1?(rt=pe.join(" "),Ve=de):(rt=pe.slice(0,Fe+1).join(" "),Ve="...");var $e=oe[rt];if(!$e)oe[rt]=Ve;else if($e!=Ve)throw new Error("Inconsistent bindings for "+rt)}delete ie[he]}for(var Pt in oe)ie[Pt]=oe[Pt];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(yt&&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,on(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 rt=de.length-1;rt>=0;rt--)Pi(ie.doc,"",de[rt].from,de[rt].to,"+delete");Dc(ie)})}function Es(ie,oe,he){var de=jn(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 Sn(oe.line,de,he<0?"after":"before")}function Qa(ie,oe,he,de,pe){if(ie){oe.doc.direction=="rtl"&&(pe=-pe);var Fe=Vi(he,oe.doc.direction);if(Fe){var Ve=pe<0?on(Fe):Fe[0],rt=pe<0==(Ve.level==1),$e=rt?"after":"before",Pt;if(Ve.level>0||oe.doc.direction=="rtl"){var tn=Hu(oe,he);Pt=pe<0?he.text.length-1:0;var Ct=Iu(oe,tn,Pt).top;Pt=An(function(bn){return Iu(oe,tn,bn).top==Ct},pe<0==(Ve.level==1)?Ve.from:Ve.to-1,Pt),$e=="before"&&(Pt=Es(he,Pt,1))}else Pt=pe<0?Ve.to:Ve.from;return new Sn(de,Pt,$e)}}return new Sn(de,pe<0?he.text.length:0,pe<0?"before":"after")}function Ks(ie,oe,he,de){var pe=Vi(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 rt=function(jo,La){return Es(oe,jo instanceof Sn?jo.ch:jo,La)},$e,Pt=function(jo){return ie.options.lineWrapping?($e=$e||Hu(ie,oe),gu(ie,oe,$e,jo)):{begin:0,end:oe.text.length}},tn=Pt(he.sticky=="before"?rt(he,-1):he.ch);if(ie.doc.direction=="rtl"||Ve.level==1){var Ct=Ve.level==1==de<0,bn=rt(he,Ct?1:-1);if(bn!=null&&(Ct?bn<=Ve.to&&bn<=tn.end:bn>=Ve.from&&bn>=tn.begin)){var Ln=Ct?"before":"after";return new Sn(he.line,bn,Ln)}}var er=function(jo,La,ta){for(var za=function(Xl,Xu){return Xu?new Sn(he.line,rt(Xl,1),"before"):new Sn(he.line,Xl,"after")};jo>=0&&jo<pe.length;jo+=La){var ps=pe[jo],$o=La>0==(ps.level!=1),Gs=$o?ta.begin:rt(ta.end,-1);if(ps.from<=Gs&&Gs<ps.to||(Gs=$o?ps.from:rt(ps.to,-1),ta.begin<=Gs&&Gs<ta.end))return za(Gs,$o)}},Cr=er(Fe+de,de,tn);if(Cr)return Cr;var qr=de>0?tn.end:rt(tn.begin,-1);return qr!=null&&!(de>0&&qr==oe.text.length)&&(Cr=er(de>0?0:pe.length-1,de,Pt(qr)),Cr)?Cr:null}var Xs={selectAll:Wt,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Zt)},killLine:function(ie){return Ja(ie,function(oe){if(oe.empty()){var he=zn(ie.doc,oe.head.line).text.length;return oe.head.ch==he&&oe.head.line<ie.lastLine()?{from:oe.head,to:Sn(oe.head.line+1,0)}:{from:oe.head,to:Sn(oe.head.line,he)}}else return{from:oe.from(),to:oe.to()}})},deleteLine:function(ie){return Ja(ie,function(oe){return{from:Sn(oe.from().line,0),to:io(ie.doc,Sn(oe.to().line+1,0))}})},delLineLeft:function(ie){return Ja(ie,function(oe){return{from:Sn(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(Sn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Sn(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")},On)},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")},On)},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},On)},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(At(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=zn(ie.doc,pe.line).text;if(Fe){if(pe.ch==Fe.length&&(pe=new Sn(pe.line,pe.ch-1)),pe.ch>0)pe=new Sn(pe.line,pe.ch+1),ie.replaceRange(Fe.charAt(pe.ch-1)+Fe.charAt(pe.ch-2),Sn(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var Ve=zn(ie.doc,pe.line-1).text;Ve&&(pe=new Sn(pe.line,1),ie.replaceRange(Fe.charAt(0)+ie.doc.lineSeparator()+Ve.charAt(Ve.length-1),Sn(pe.line-1,Ve.length-1),pe,"+transpose"))}}he.push(new oi(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=zn(ie.doc,oe),de=xi(he);return de!=he&&(oe=$t(de)),Qa(!0,ie,de,oe,1)}function hs(ie,oe){var he=zn(ie.doc,oe),de=nr(he);return de!=he&&(oe=$t(de)),Qa(!0,ie,he,oe,-1)}function Yl(ie,oe){var he=vl(ie,oe.line),de=zn(ie.doc,he.line),pe=Vi(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 Sn(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)!=ai}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")&&(ra(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=Bt(),!hr(oe,ie))){Nt&&Re<11&&ie.keyCode==27&&(ie.returnValue=!1);var he=ie.keyCode;oe.display.shift=he==16||ie.shiftKey;var de=yl(oe,ie);yt&&(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;Ht(oe,"CodeMirror-crosshair");function he(de){(de.keyCode==18||!de.altKey)&&(nt(oe,"CodeMirror-crosshair"),$r(document,"keyup",he),$r(document,"mouseover",he))}Qi(document,"keyup",he),Qi(document,"mouseover",he)}function Wo(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),hr(this,ie)}function os(ie){var oe=this;if(!(ie.target&&ie.target!=oe.display.input.getField())&&!(Il(oe.display,ie)||hr(oe,ie)||ie.ctrlKey&&!ie.altKey||ue&&ie.metaKey)){var he=ie.keyCode,de=ie.charCode;if(yt&&he==Lo){Lo=null,ra(ie);return}if(!(yt&&(!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(!(hr(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&&ra(ie):pe==2?(de&&ea(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 rt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),rt=Ve(ie,he)!=ai}finally{ie.state.suppressEdits=!1}return rt})}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){Nt?setTimeout(sn(Zs,ie),0):ie.curOp.focus=Bt();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(Pt){Je&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,$r(pe.wrapper.ownerDocument,"mouseup",Ve),$r(pe.wrapper.ownerDocument,"mousemove",rt),$r(pe.scroller,"dragstart",$e),$r(pe.scroller,"drop",Ve),Fe||(ra(Pt),de.addNew||ea(ie.doc,he,null,null,de.extend),Je&&!Vt||Nt&&Re==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),rt=function(Pt){Fe=Fe||Math.abs(oe.clientX-Pt.clientX)+Math.abs(oe.clientY-Pt.clientY)>=10},$e=function(){return Fe=!0};Je&&(pe.scroller.draggable=!0),ie.state.draggingText=Ve,Ve.copy=!de.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),Qi(pe.wrapper.ownerDocument,"mouseup",Ve),Qi(pe.wrapper.ownerDocument,"mousemove",rt),Qi(pe.scroller,"dragstart",$e),Qi(pe.scroller,"drop",Ve),Pl(ie),setTimeout(function(){return pe.input.focus()},20)}function Du(ie,oe,he){if(he=="char")return new oi(oe,oe);if(he=="word")return ie.findWordAt(oe);if(he=="line")return new oi(Sn(oe.line,0),io(ie.doc,Sn(oe.line+1,0)));var de=he(ie,oe);return new oi(de.from,de.to)}function uh(ie,oe,he,de){var pe=ie.display,Fe=ie.doc;ra(oe);var Ve,rt,$e=Fe.sel,Pt=$e.ranges;if(de.addNew&&!de.extend?(rt=Fe.sel.contains(he),rt>-1?Ve=Pt[rt]:Ve=new oi(he,he)):(Ve=Fe.sel.primary(),rt=Fe.sel.primIndex),de.unit=="rectangle")de.addNew||(Ve=new oi(he,he)),he=mu(ie,oe,!0,!0),rt=-1;else{var tn=Du(ie,he,de.unit);de.extend?Ve=yo(Ve,tn.anchor,tn.head,de.extend):Ve=tn}de.addNew?rt==-1?(rt=Pt.length,Mr(Fe,Li(ie,Pt.concat([Ve]),rt),{scroll:!1,origin:"*mouse"})):Pt.length>1&&Pt[rt].empty()&&de.unit=="char"&&!de.extend?(Mr(Fe,Li(ie,Pt.slice(0,rt).concat(Pt.slice(rt+1)),0),{scroll:!1,origin:"*mouse"}),$e=Fe.sel):Vo(Fe,rt,Ve,ci):(rt=0,Mr(Fe,new yi([Ve],0),ci),$e=Fe.sel);var Ct=he;function bn(ta){if(or(Ct,ta)!=0)if(Ct=ta,de.unit=="rectangle"){for(var za=[],ps=ie.options.tabSize,$o=lt(zn(Fe,he.line).text,he.ch,ps),Gs=lt(zn(Fe,ta.line).text,ta.ch,ps),Xl=Math.min($o,Gs),Xu=Math.max($o,Gs),uu=Math.min(he.line,ta.line),Kc=Math.min(ie.lastLine(),Math.max(he.line,ta.line));uu<=Kc;uu++){var bc=zn(Fe,uu).text,Ku=Mi(bc,Xl,ps);Xl==Xu?za.push(new oi(Sn(uu,Ku),Sn(uu,Ku))):bc.length>Ku&&za.push(new oi(Sn(uu,Ku),Sn(uu,Mi(bc,Xu,ps))))}za.length||za.push(new oi(he,he)),Mr(Fe,Li(ie,$e.ranges.slice(0,rt).concat(za),rt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(ta)}else{var Qc=Ve,vc=Du(ie,ta,de.unit),Gu=Qc.anchor,Sl;or(vc.anchor,Gu)>0?(Sl=vc.head,Gu=ur(Qc.from(),vc.anchor)):(Sl=vc.anchor,Gu=aa(Qc.to(),vc.head));var Su=$e.ranges.slice(0);Su[rt]=Zh(ie,new oi(io(Fe,Gu),Sl)),Mr(Fe,Li(ie,Su,rt),ci)}}var Ln=pe.wrapper.getBoundingClientRect(),er=0;function Cr(ta){var za=++er,ps=mu(ie,ta,!0,de.unit=="rectangle");if(ps)if(or(ps,Ct)!=0){ie.curOp.focus=Bt(),bn(ps);var $o=xs(pe,Fe);(ps.line>=$o.to||ps.line<$o.from)&&setTimeout(oa(ie,function(){er==za&&Cr(ta)}),150)}else{var Gs=ta.clientY<Ln.top?-20:ta.clientY>Ln.bottom?20:0;Gs&&setTimeout(oa(ie,function(){er==za&&(pe.scroller.scrollTop+=Gs,Cr(ta))}),50)}}function qr(ta){ie.state.selectingText=!1,er=1/0,ta&&(ra(ta),pe.input.focus()),$r(pe.wrapper.ownerDocument,"mousemove",jo),$r(pe.wrapper.ownerDocument,"mouseup",La),Fe.history.lastSelOrigin=null}var jo=oa(ie,function(ta){ta.buttons===0||!Wa(ta)?qr(ta):Cr(ta)}),La=oa(ie,qr);ie.state.selectingText=La,Qi(pe.wrapper.ownerDocument,"mousemove",jo),Qi(pe.wrapper.ownerDocument,"mouseup",La)}function Zh(ie,oe){var he=oe.anchor,de=oe.head,pe=zn(ie.doc,he.line);if(or(he,de)==0&&he.sticky==de.sticky)return oe;var Fe=Vi(pe);if(!Fe)return oe;var Ve=mn(Fe,he.ch,he.sticky),rt=Fe[Ve];if(rt.from!=he.ch&&rt.to!=he.ch)return oe;var $e=Ve+(rt.from==he.ch==(rt.level!=1)?0:1);if($e==0||$e==Fe.length)return oe;var Pt;if(de.line!=he.line)Pt=(de.line-he.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var tn=mn(Fe,de.ch,de.sticky),Ct=tn-Ve||(de.ch-he.ch)*(rt.level==1?-1:1);tn==$e-1||tn==$e?Pt=Ct<0:Pt=Ct>0}var bn=Fe[$e+(Pt?-1:0)],Ln=Pt==(bn.level==1),er=Ln?bn.from:bn.to,Cr=Ln?"after":"before";return he.ch==er&&he.sticky==Cr?oe:new oi(new Sn(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(bn){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;de&&ra(oe);var Ve=ie.display,rt=Ve.lineDiv.getBoundingClientRect();if(Fe>rt.bottom||!kn(ie,he))return Kr(oe);Fe-=rt.top-Ve.viewOffset;for(var $e=0;$e<ie.display.gutterSpecs.length;++$e){var Pt=Ve.gutters.childNodes[$e];if(Pt&&Pt.getBoundingClientRect().right>=pe){var tn=_i(ie.doc,Fe),Ct=ie.display.gutterSpecs[$e];return Yi(ie,he,ie,tn,Ct.className,oe),Kr(oe)}}}function Jh(ie,oe){return Xh(ie,oe,"gutterClick",!0)}function Ld(ie,oe){Il(ie.display,oe)||_f(ie,oe)||hr(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(rt,$e,Pt){Pt!=wh&&Fe(rt,$e,Pt)}: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,bi(de)},!0),he("indentUnit",2,bi,!0),he("indentWithTabs",!1),he("smartIndent",!0),he("tabSize",4,function(de){Xr(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($e){for(var Pt=0;;){var tn=$e.text.indexOf(pe,Pt);if(tn==-1)break;Pt=tn+pe.length,Fe.push(Sn(Ve,tn))}Ve++});for(var rt=Fe.length-1;rt>=0;rt--)Pi(de.doc,pe,Fe[rt],Sn(Fe[rt].line,Fe[rt].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),nn(de)},!0),he("keyMap","default",function(de,pe,Fe){var Ve=Fa(pe),rt=Fe!=wh&&Fa(Fe);rt&&rt.detach&&rt.detach(de,Ve),Ve.attach&&Ve.attach(de,rt||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),nn(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 li(de)},!0),he("scrollbarStyle","native",function(de){gr(de),li(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),nn(de)},!0),he("firstLineNumber",1,nn,!0),he("lineNumberFormatter",function(de){return de},nn,!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,Xr,!0),he("addModeClass",!1,Xr,!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,Xr,!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?Qi:$r;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?(Ht(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(nt(ie.display.wrapper,"CodeMirror-wrap"),fa(ie)),Ca(ie),ll(ie),Ec(ie),setTimeout(function(){return li(ie)},100)}function zs(ie,oe){var he=this;if(!(this instanceof zs))return new zs(ie,oe);this.options=oe=oe?Nn(oe):{},Nn(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 Bn(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(),Nt&&Re<11&&setTimeout(function(){return he.display.input.reset(!0)},20),ld(this),Vr(),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 rt=0;rt<Bh.length;++rt)Bh[rt](this);Xi(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;Qi(oe.scroller,"mousedown",oa(ie,Nl)),Nt&&Re<11?Qi(oe.scroller,"dblclick",oa(ie,function($e){if(!hr(ie,$e)){var Pt=mu(ie,$e);if(!(!Pt||Jh(ie,$e)||Il(ie.display,$e))){ra($e);var tn=ie.findWordAt(Pt);ea(ie.doc,tn.anchor,tn.head)}}})):Qi(oe.scroller,"dblclick",function($e){return hr(ie,$e)||ra($e)}),Qi(oe.scroller,"contextmenu",function($e){return Ld(ie,$e)}),Qi(oe.input.getField(),"contextmenu",function($e){oe.scroller.contains($e.target)||Ld(ie,$e)});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($e){if($e.touches.length!=1)return!1;var Pt=$e.touches[0];return Pt.radiusX<=1&&Pt.radiusY<=1}function Ve($e,Pt){if(Pt.left==null)return!0;var tn=Pt.left-$e.left,Ct=Pt.top-$e.top;return tn*tn+Ct*Ct>20*20}Qi(oe.scroller,"touchstart",function($e){if(!hr(ie,$e)&&!Fe($e)&&!Jh(ie,$e)){oe.input.ensurePolled(),clearTimeout(he);var Pt=+new Date;oe.activeTouch={start:Pt,moved:!1,prev:Pt-de.end<=300?de:null},$e.touches.length==1&&(oe.activeTouch.left=$e.touches[0].pageX,oe.activeTouch.top=$e.touches[0].pageY)}}),Qi(oe.scroller,"touchmove",function(){oe.activeTouch&&(oe.activeTouch.moved=!0)}),Qi(oe.scroller,"touchend",function($e){var Pt=oe.activeTouch;if(Pt&&!Il(oe,$e)&&Pt.left!=null&&!Pt.moved&&new Date-Pt.start<300){var tn=ie.coordsChar(oe.activeTouch,"page"),Ct;!Pt.prev||Ve(Pt,Pt.prev)?Ct=new oi(tn,tn):!Pt.prev.prev||Ve(Pt,Pt.prev.prev)?Ct=ie.findWordAt(tn):Ct=new oi(Sn(tn.line,0),io(ie.doc,Sn(tn.line+1,0))),ie.setSelection(Ct.anchor,Ct.head),ie.focus(),ra($e)}pe()}),Qi(oe.scroller,"touchcancel",pe),Qi(oe.scroller,"scroll",function(){oe.scroller.clientHeight&&(Lt(ie,oe.scroller.scrollTop),It(ie,oe.scroller.scrollLeft,!0),Yi(ie,"scroll",ie))}),Qi(oe.scroller,"mousewheel",function($e){return Wi(ie,$e)}),Qi(oe.scroller,"DOMMouseScroll",function($e){return Wi(ie,$e)}),Qi(oe.wrapper,"scroll",function(){return oe.wrapper.scrollTop=oe.wrapper.scrollLeft=0}),oe.dragFunctions={enter:function($e){hr(ie,$e)||ia($e)},over:function($e){hr(ie,$e)||(Qr(ie,$e),ia($e))},start:function($e){return vr(ie,$e)},drop:oa(ie,Eo),leave:function($e){hr(ie,$e)||xr(ie)}};var rt=oe.input.getField();Qi(rt,"keyup",function($e){return Wo.call(ie,$e)}),Qi(rt,"keydown",oa(ie,Uo)),Qi(rt,"keypress",oa(ie,os)),Qi(rt,"focus",function($e){return js(ie,$e)}),Qi(rt,"blur",function($e){return _c(ie,$e)})}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,rt=zn(pe,oe),$e=lt(rt.text,null,Ve);rt.stateAfter&&(rt.stateAfter=null);var Pt=rt.text.match(/^\s*/)[0],tn;if(!de&&!/\S/.test(rt.text))tn=0,he="not";else if(he=="smart"&&(tn=pe.mode.indent(Fe,rt.text.slice(Pt.length),rt.text),tn==ai||tn>150)){if(!de)return;he="prev"}he=="prev"?oe>pe.first?tn=lt(zn(pe,oe-1).text,null,Ve):tn=0:he=="add"?tn=$e+ie.options.indentUnit:he=="subtract"?tn=$e-ie.options.indentUnit:typeof he=="number"&&(tn=$e+he),tn=Math.max(0,tn);var Ct="",bn=0;if(ie.options.indentWithTabs)for(var Ln=Math.floor(tn/Ve);Ln;--Ln)bn+=Ve,Ct+=" ";if(bn<tn&&(Ct+=At(tn-bn)),Ct!=Pt)return Pi(pe,Ct,Sn(oe,0),Sn(oe,Pt.length),"+input"),rt.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<Pt.length){var qr=Sn(oe,Pt.length);Vo(pe,er,new oi(qr,qr));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,rt=pe=="paste"||ie.state.pasteIncoming>Ve,$e=ti(oe),Pt=null;if(rt&&de.ranges.length>1)if(Vu&&Vu.text.join(`
|
|
`)==oe){if(de.ranges.length%Vu.text.length==0){Pt=[];for(var tn=0;tn<Vu.text.length;tn++)Pt.push(Fe.splitLines(Vu.text[tn]))}}else $e.length==de.ranges.length&&ie.options.pasteLinesPerSelection&&(Pt=Si($e,function(jo){return[jo]}));for(var Ct=ie.curOp.updateInput,bn=de.ranges.length-1;bn>=0;bn--){var Ln=de.ranges[bn],er=Ln.from(),Cr=Ln.to();Ln.empty()&&(he&&he>0?er=Sn(er.line,er.ch-he):ie.state.overwrite&&!rt?Cr=Sn(Cr.line,Math.min(zn(Fe,Cr.line).text.length,Cr.ch+on($e).length)):rt&&Vu&&Vu.lineWise&&Vu.text.join(`
|
|
`)==$e.join(`
|
|
`)&&(er=Cr=Sn(er.line,0)));var qr={from:er,to:Cr,text:Pt?Pt[bn%Pt.length]:$e,origin:pe||(rt?"paste":ie.state.cutIncoming>Ve?"cut":"+input")};rn(ie.doc,qr),Mo(ie,"inputRead",ie,qr)}oe&&!rt&&ud(ie,oe),Dc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Ct),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 rt=0;rt<Fe.electricChars.length;rt++)if(oe.indexOf(Fe.electricChars.charAt(rt))>-1){Ve=Au(ie,pe.head.line,"smart");break}}else Fe.electricInput&&Fe.electricInput.test(zn(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:Sn(pe,0),head:Sn(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=at("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),oe=at("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),Yi(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.");Gt(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"),Wr(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 rt=pe[Ve];if(rt.empty())rt.head.line>Fe&&(Au(this,rt.head.line,de,!0),Fe=rt.head.line,Ve==this.doc.sel.primIndex&&Dc(this));else{var $e=rt.from(),Pt=rt.to(),tn=Math.max(Fe,$e.line);Fe=Math.min(this.lastLine(),Pt.line-(Pt.ch?0:1))+1;for(var Ct=tn;Ct<Fe;++Ct)Au(this,Ct,de);var bn=this.doc.sel.ranges;$e.ch==0&&pe.length==bn.length&&bn[Ve].from().ch>0&&Vo(this.doc,Ve,new oi($e,bn[Ve].to()),Zt)}}}),getTokenAt:function(de,pe){return ms(this,de,pe)},getLineTokens:function(de,pe){return ms(this,Sn(de),pe,!0)},getTokenTypeAt:function(de){de=io(this.doc,de);var pe=el(this,zn(this.doc,de.line)),Fe=0,Ve=(pe.length-1)/2,rt=de.ch,$e;if(rt==0)$e=pe[2];else for(;;){var Pt=Fe+Ve>>1;if((Pt?pe[Pt*2-1]:0)>=rt)Ve=Pt;else if(pe[Pt*2+1]<rt)Fe=Pt+1;else{$e=pe[Pt*2+2];break}}var tn=$e?$e.indexOf("overlay "):-1;return tn<0?$e:tn==0?null:$e.slice(0,tn-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],rt=this.getModeAt(de);if(typeof rt[pe]=="string")Ve[rt[pe]]&&Fe.push(Ve[rt[pe]]);else if(rt[pe])for(var $e=0;$e<rt[pe].length;$e++){var Pt=Ve[rt[pe][$e]];Pt&&Fe.push(Pt)}else rt.helperType&&Ve[rt.helperType]?Fe.push(Ve[rt.helperType]):Ve[rt.name]&&Fe.push(Ve[rt.name]);for(var tn=0;tn<Ve._global.length;tn++){var Ct=Ve._global[tn];Ct.pred(rt,this)&&Ne(Fe,Ct.val)==-1&&Fe.push(Ct.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,_i(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,pe,Fe){var Ve=!1,rt;if(typeof de=="number"){var $e=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>$e&&(de=$e,Ve=!0),rt=zn(this.doc,de)}else rt=de;return Ts(this,rt,{top:0,left:0},pe||"page",Fe||Ve).top+(Ve?this.doc.height-so(rt):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,rt){var $e=this.display;de=Vs(this,io(this.doc,de));var Pt=de.bottom,tn=de.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),$e.sizer.appendChild(pe),Ve=="over")Pt=de.top;else if(Ve=="above"||Ve=="near"){var Ct=Math.max($e.wrapper.clientHeight,this.doc.height),bn=Math.max($e.sizer.clientWidth,$e.lineSpace.clientWidth);(Ve=="above"||de.bottom+pe.offsetHeight>Ct)&&de.top>pe.offsetHeight?Pt=de.top-pe.offsetHeight:de.bottom+pe.offsetHeight<=Ct&&(Pt=de.bottom),tn+pe.offsetWidth>bn&&(tn=bn-pe.offsetWidth)}pe.style.top=Pt+"px",pe.style.left=pe.style.right="",rt=="right"?(tn=$e.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(rt=="left"?tn=0:rt=="middle"&&(tn=($e.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=tn+"px"),Fe&&xh(this,{left:tn,top:Pt,right:tn+pe.offsetWidth,bottom:Pt+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 rt=1;pe<0&&(rt=-1,pe=-pe);for(var $e=io(this.doc,de),Pt=0;Pt<pe&&($e=$h(this.doc,$e,rt,Fe,Ve),!$e.hitSide);++Pt);return $e},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()},On)}),deleteH:_a(function(de,pe){var Fe=this.doc.sel,Ve=this.doc;Fe.somethingSelected()?Ve.replaceSelection("",null,"+delete"):Ja(this,function(rt){var $e=$h(Ve,rt.head,de,pe,!1);return de<0?{from:$e,to:rt.head}:{from:rt.head,to:$e}})}),findPosV:function(de,pe,Fe,Ve){var rt=1,$e=Ve;pe<0&&(rt=-1,pe=-pe);for(var Pt=io(this.doc,de),tn=0;tn<pe;++tn){var Ct=Vs(this,Pt,"div");if($e==null?$e=Ct.left:Ct.left=$e,Pt=Ih(this,Ct,rt,Fe),Pt.hitSide)break}return Pt},moveV:_a(function(de,pe){var Fe=this,Ve=this.doc,rt=[],$e=!this.display.shift&&!Ve.extend&&Ve.sel.somethingSelected();if(Ve.extendSelectionsBy(function(tn){if($e)return de<0?tn.from():tn.to();var Ct=Vs(Fe,tn.head,"div");tn.goalColumn!=null&&(Ct.left=tn.goalColumn),rt.push(Ct.left);var bn=Ih(Fe,Ct,de,pe);return pe=="page"&&tn==Ve.sel.primary()&&_u(Fe,ol(Fe,bn,"div").top-Ct.top),bn},On),rt.length)for(var Pt=0;Pt<Ve.sel.ranges.length;Pt++)Ve.sel.ranges[Pt].goalColumn=rt[Pt]}),findWordAt:function(de){var pe=this.doc,Fe=zn(pe,de.line).text,Ve=de.ch,rt=de.ch;if(Fe){var $e=this.getHelper(de,"wordChars");(de.sticky=="before"||rt==Fe.length)&&Ve?--Ve:++rt;for(var Pt=Fe.charAt(Ve),tn=et(Pt,$e)?function(Ct){return et(Ct,$e)}:/\s/.test(Pt)?function(Ct){return/\s/.test(Ct)}:function(Ct){return!/\s/.test(Ct)&&!et(Ct)};Ve>0&&tn(Fe.charAt(Ve-1));)--Ve;for(;rt<Fe.length&&tn(Fe.charAt(rt));)++rt}return new oi(Sn(de.line,Ve),Sn(de.line,rt))},toggleOverwrite:function(de){de!=null&&de==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ht(this.display.cursorDiv,"CodeMirror-overwrite"):nt(this.display.cursorDiv,"CodeMirror-overwrite"),Yi(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Bt()},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:Sn(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($e){return typeof $e=="number"||/^\d+$/.test(String($e))?$e+"px":$e};de!=null&&(this.display.wrapper.style.width=Ve(de)),pe!=null&&(this.display.wrapper.style.height=Ve(pe)),this.options.lineWrapping&&Nc(this);var rt=this.display.viewFrom;this.doc.iter(rt,this.display.viewTo,function($e){if($e.widgets){for(var Pt=0;Pt<$e.widgets.length;Pt++)if($e.widgets[Pt].noHScroll){fs(Fe,rt,"widget");break}}++rt}),this.curOp.forceUpdate=!0,Yi(this,"refresh",this)}),operation:function(de){return oo(this,de)},startOperation:function(){return ir(this)},endOperation:function(){return Xi(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),Yi(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}},Ii(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,rt=zn(ie,oe.line),$e=pe&&ie.direction=="rtl"?-he:he;function Pt(){var La=oe.line+$e;return La<ie.first||La>=ie.first+ie.size?!1:(oe=new Sn(La,oe.ch,oe.sticky),rt=zn(ie,La))}function tn(La){var ta;if(de=="codepoint"){var za=rt.text.charCodeAt(oe.ch+(de>0?0:-1));isNaN(za)?ta=null:ta=new Sn(oe.line,Math.max(0,Math.min(rt.text.length,oe.ch+he*(za>=55296&&za<56320?2:1))),-he)}else pe?ta=Ks(ie.cm,rt,oe,he):ta=Ma(rt,oe,he);if(ta==null)if(!La&&Pt())oe=Qa(pe,ie.cm,rt,oe.line,$e);else return!1;else oe=ta;return!0}if(de=="char"||de=="codepoint")tn();else if(de=="column")tn(!0);else if(de=="word"||de=="group")for(var Ct=null,bn=de=="group",Ln=ie.cm&&ie.cm.getHelper(oe,"wordChars"),er=!0;!(he<0&&!tn(!er));er=!1){var Cr=rt.text.charAt(oe.ch)||`
|
|
`,qr=et(Cr,Ln)?"w":bn&&Cr==`
|
|
`?"n":!bn||/\s/.test(Cr)?null:"p";if(bn&&!er&&!qr&&(qr="s"),Ct&&Ct!=qr){he<0&&(he=1,tn(),oe.sticky="after");break}if(qr&&(Ct=qr),he>0&&!tn(!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 rt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),$e=Math.max(rt-.5*pu(ie.display),3);Ve=(he>0?oe.bottom:oe.top)+he*$e}else de=="line"&&(Ve=he>0?oe.bottom+3:oe.top-3);for(var Pt;Pt=Ru(ie,Fe,Ve),!!Pt.outside;){if(he<0?Ve<=0:Ve>=pe.height){Pt.hitSide=!0;break}Ve+=he*5}return Pt}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(rt){for(var $e=rt.target;$e;$e=$e.parentNode){if($e==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test($e.className))break}return!1}Qi(pe,"paste",function(rt){!Fe(rt)||hr(de,rt)||Ph(rt,de)||Re<=11&&setTimeout(oa(de,function(){return oe.updateFromDOM()}),20)}),Qi(pe,"compositionstart",function(rt){oe.composing={data:rt.data,done:!1}}),Qi(pe,"compositionupdate",function(rt){oe.composing||(oe.composing={data:rt.data,done:!1})}),Qi(pe,"compositionend",function(rt){oe.composing&&(rt.data!=oe.composing.data&&oe.readFromDOMSoon(),oe.composing.done=!0)}),Qi(pe,"touchstart",function(){return he.forceCompositionEnd()}),Qi(pe,"input",function(){oe.composing||oe.readFromDOMSoon()});function Ve(rt){if(!(!Fe(rt)||hr(de,rt))){if(de.somethingSelected())Qh({lineWise:!1,text:de.getSelections()}),rt.type=="cut"&&de.replaceSelection("",null,"cut");else if(de.options.lineWiseCopyCut){var $e=cd(de);Qh({lineWise:!0,text:$e.text}),rt.type=="cut"&&de.operation(function(){de.setSelections($e.ranges,0,Zt),de.replaceSelection("",null,"cut")})}else return;if(rt.clipboardData){rt.clipboardData.clearData();var Pt=Vu.text.join(`
|
|
`);if(rt.clipboardData.setData("Text",Pt),rt.clipboardData.getData("Text")==Pt){rt.preventDefault();return}}var tn=Zd(),Ct=tn.firstChild;de.display.lineSpace.insertBefore(tn,de.display.lineSpace.firstChild),Ct.value=Vu.text.join(`
|
|
`);var bn=document.activeElement;qn(Ct),setTimeout(function(){de.display.lineSpace.removeChild(tn),bn.focus(),bn==pe&&he.showPrimarySelection()},50)}}Qi(pe,"copy",Ve),Qi(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(ur(Fe,Ve),de)==0&&or(aa(Fe,Ve),pe)==0)){var rt=oe.display.view,$e=de.line>=oe.display.viewFrom&&Xd(oe,de)||{node:rt[0].measure.map[2],offset:0},Pt=pe.line<oe.display.viewTo&&Xd(oe,pe);if(!Pt){var tn=rt[rt.length-1].measure,Ct=tn.maps?tn.maps[tn.maps.length-1]:tn.map;Pt={node:Ct[Ct.length-1],offset:Ct[Ct.length-2]-Ct[Ct.length-3]}}if(!$e||!Pt){ie.removeAllRanges();return}var bn=ie.rangeCount&&ie.getRangeAt(0),Ln;try{Ln=Mt($e.node,$e.offset,Pt.offset,Pt.node)}catch(er){}Ln&&(!ve&&oe.state.focused?(ie.collapse($e.node,$e.offset),Ln.collapsed||(ie.removeAllRanges(),ie.addRange(Ln))):(ie.removeAllRanges(),ie.addRange(Ln)),bn&&ie.anchorNode==null?ie.addRange(bn):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){qe(this.cm.display.cursorDiv,ie.cursors),qe(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 bt(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&&mt&&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,Ui(he,de),Zt),(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=Sn(de.line-1,zn(ie.doc,de.line-1).length)),pe.ch==zn(ie.doc,pe.line).text.length&&pe.line<ie.lastLine()&&(pe=Sn(pe.line+1,0)),de.line<oe.viewFrom||pe.line>oe.viewTo-1)return!1;var Fe,Ve,rt;de.line==oe.viewFrom||(Fe=au(ie,de.line))==0?(Ve=$t(oe.view[0].line),rt=oe.view[0].node):(Ve=$t(oe.view[Fe].line),rt=oe.view[Fe-1].node.nextSibling);var $e=au(ie,pe.line),Pt,tn;if($e==oe.view.length-1?(Pt=oe.viewTo-1,tn=oe.lineDiv.lastChild):(Pt=$t(oe.view[$e+1].line)-1,tn=oe.view[$e+1].node.previousSibling),!rt)return!1;for(var Ct=ie.doc.splitLines(dd(ie,rt,tn,Ve,Pt)),bn=xn(ie.doc,Sn(Ve,0),Sn(Pt,zn(ie.doc,Pt).text.length));Ct.length>1&&bn.length>1;)if(on(Ct)==on(bn))Ct.pop(),bn.pop(),Pt--;else if(Ct[0]==bn[0])Ct.shift(),bn.shift(),Ve++;else break;for(var Ln=0,er=0,Cr=Ct[0],qr=bn[0],jo=Math.min(Cr.length,qr.length);Ln<jo&&Cr.charCodeAt(Ln)==qr.charCodeAt(Ln);)++Ln;for(var La=on(Ct),ta=on(bn),za=Math.min(La.length-(Ct.length==1?Ln:0),ta.length-(bn.length==1?Ln:0));er<za&&La.charCodeAt(La.length-er-1)==ta.charCodeAt(ta.length-er-1);)++er;if(Ct.length==1&&bn.length==1&&Ve==de.line)for(;Ln&&Ln>de.ch&&La.charCodeAt(La.length-er-1)==ta.charCodeAt(ta.length-er-1);)Ln--,er++;Ct[Ct.length-1]=La.slice(0,La.length-er).replace(/^\u200b+/,""),Ct[0]=Ct[0].slice(Ln).replace(/\u200b+$/,"");var ps=Sn(Ve,Ln),$o=Sn(Pt,bn.length?on(bn).length-er:0);if(Ct.length>1||Ct[0]||or(ps,$o))return Pi(ie.doc,Ct,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=zn(ie.doc,oe.line),pe=Hc(he,de,oe.line),Fe=Vi(de,ie.doc.direction),Ve="left";if(Fe){var rt=mn(Fe,oe.ch);Ve=rt%2?"right":"left"}var $e=Jc(pe.map,oe.ch,Ve);return $e.offset=$e.collapse=="right"?$e.end:$e.start,$e}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,rt=ie.doc.lineSeparator(),$e=!1;function Pt(Ln){return function(er){return er.id==Ln}}function tn(){Ve&&(Fe+=rt,$e&&(Fe+=rt),Ve=$e=!1)}function Ct(Ln){Ln&&(tn(),Fe+=Ln)}function bn(Ln){if(Ln.nodeType==1){var er=Ln.getAttribute("cm-text");if(er){Ct(er);return}var Cr=Ln.getAttribute("cm-marker"),qr;if(Cr){var jo=ie.findMarks(Sn(de,0),Sn(pe+1,0),Pt(+Cr));jo.length&&(qr=jo[0].find(0))&&Ct(xn(ie.doc,qr.from,qr.to).join(rt));return}if(Ln.getAttribute("contenteditable")=="false")return;var La=/^(pre|div|p|li|table|br)$/i.test(Ln.nodeName);if(!/^br$/i.test(Ln.nodeName)&&Ln.textContent.length==0)return;La&&tn();for(var ta=0;ta<Ln.childNodes.length;ta++)bn(Ln.childNodes[ta]);/^(pre|p)$/i.test(Ln.nodeName)&&($e=!0),La&&(Ve=!0)}else Ln.nodeType==3&&Ct(Ln.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;bn(oe),oe!=he;)oe=oe.nextSibling,$e=!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(Sn(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||!bt(de,oe))return hd(Sn($t(ie.line),0),!0);if(oe==de&&(pe=!0,oe=de.childNodes[he],he=0,!oe)){var Fe=ie.rest?on(ie.rest):ie.line;return hd(Sn($t(Fe),Fe.text.length),pe)}var Ve=oe.nodeType==3?oe:null,rt=oe;for(!Ve&&oe.childNodes.length==1&&oe.firstChild.nodeType==3&&(Ve=oe.firstChild,he&&(he=Ve.nodeValue.length));rt.parentNode!=de;)rt=rt.parentNode;var $e=ie.measure,Pt=$e.maps;function tn(qr,jo,La){for(var ta=-1;ta<(Pt?Pt.length:0);ta++)for(var za=ta<0?$e.map:Pt[ta],ps=0;ps<za.length;ps+=3){var $o=za[ps+2];if($o==qr||$o==jo){var Gs=$t(ta<0?ie.line:ie.rest[ta]),Xl=za[ps]+La;return(La<0||$o!=qr)&&(Xl=za[ps+(La?1:0)]),Sn(Gs,Xl)}}}var Ct=tn(Ve,rt,he);if(Ct)return hd(Ct,pe);for(var bn=rt.nextSibling,Ln=Ve?Ve.nodeValue.length-he:0;bn;bn=bn.nextSibling){if(Ct=tn(bn,bn.firstChild,0),Ct)return hd(Sn(Ct.line,Ct.ch-Ln),pe);Ln+=bn.textContent.length}for(var er=rt.previousSibling,Cr=he;er;er=er.previousSibling){if(Ct=tn(er,er.firstChild,-1),Ct)return hd(Sn(Ct.line,Ct.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"),Qi(pe,"input",function(){Nt&&Re>=9&&oe.hasSelection&&(oe.hasSelection=null),he.poll()}),Qi(pe,"paste",function(Ve){hr(de,Ve)||Ph(Ve,de)||(de.state.pasteIncoming=+new Date,he.fastPoll())});function Fe(Ve){if(!hr(de,Ve)){if(de.somethingSelected())Qh({lineWise:!1,text:de.getSelections()});else if(de.options.lineWiseCopyCut){var rt=cd(de);Qh({lineWise:!0,text:rt.text}),Ve.type=="cut"?de.setSelections(rt.ranges,null,Zt):(he.prevInput="",pe.value=rt.text.join(`
|
|
`),qn(pe))}else return;Ve.type=="cut"&&(de.state.cutIncoming=+new Date)}}Qi(pe,"cut",Fe),Qi(pe,"copy",Fe),Qi(ie.scroller,"paste",function(Ve){if(!(Il(ie,Ve)||hr(de,Ve))){if(!pe.dispatchEvent){de.state.pasteIncoming=+new Date,he.focus();return}var rt=new Event("paste");rt.clipboardData=Ve.clipboardData,pe.dispatchEvent(rt)}}),Qi(ie.lineSpace,"selectstart",function(Ve){Il(ie,Ve)||ra(Ve)}),Qi(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"})}}),Qi(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;qe(he.cursorDiv,ie.cursors),qe(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&&qn(this.textarea),Nt&&Re>=9&&(this.hasSelection=he)}else ie||(this.prevInput=this.textarea.value="",Nt&&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||Bt()!=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(Nt&&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,rt=Math.min(de.length,pe.length);Ve<rt&&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(){Nt&&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||yt)return;var rt=he.options.resetSelectionOnContextMenu;rt&&he.doc.sel.contains(Fe)==-1&&oa(he,Mr)(he.doc,Ui(Fe),Zt);var $e=pe.style.cssText,Pt=oe.wrapper.style.cssText,tn=oe.wrapper.offsetParent.getBoundingClientRect();oe.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(ie.clientY-tn.top-5)+"px; left: "+(ie.clientX-tn.left-5)+`px;
|
|
z-index: 1000; background: `+(Nt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ct;Je&&(Ct=window.scrollY),de.input.focus(),Je&&window.scrollTo(null,Ct),de.input.reset(),he.somethingSelected()||(pe.value=oe.prevInput=" "),oe.contextMenuPending=Ln,de.selForContextMenu=he.doc.sel,clearTimeout(de.detectingSelectAll);function bn(){if(pe.selectionStart!=null){var Cr=he.somethingSelected(),qr="\u200B"+(Cr?pe.value:"");pe.value="\u21DA",pe.value=qr,oe.prevInput=Cr?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=qr.length,de.selForContextMenu=he.doc.sel}}function Ln(){if(oe.contextMenuPending==Ln&&(oe.contextMenuPending=!1,oe.wrapper.style.cssText=Pt,pe.style.cssText=$e,Nt&&Re<9&&de.scrollbars.setScrollTop(de.scroller.scrollTop=Ve),pe.selectionStart!=null)){(!Nt||Nt&&Re<9)&&bn();var Cr=0,qr=function(){de.selForContextMenu==he.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&oe.prevInput=="\u200B"?oa(he,Wt)(he):Cr++<10?de.detectingSelectAll=setTimeout(qr,500):(de.selForContextMenu=null,de.input.reset())};de.detectingSelectAll=setTimeout(qr,200)}}if(Nt&&Re>=9&&bn(),Pe){ia(ie);var er=function(){$r(window,"mouseup",er),setTimeout(Ln,20)};Qi(window,"mouseup",er)}else setTimeout(Ln,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?Nn(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=Bt();oe.autofocus=he==ie||ie.getAttribute("autofocus")!=null&&he==document.body}function de(){ie.value=rt.getValue()}var pe;if(ie.form&&(Qi(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($e){}}oe.finishInit=function($e){$e.save=de,$e.getTextArea=function(){return ie},$e.toTextArea=function(){$e.toTextArea=isNaN,de(),ie.parentNode.removeChild($e.getWrapperElement()),ie.style.display="",ie.form&&($r(ie.form,"submit",de),!oe.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var rt=zs(function($e){return ie.parentNode.insertBefore($e,ie.nextSibling)},oe);return rt}function fd(ie){ie.off=$r,ie.on=Qi,ie.wheelEventPixels=Qn,ie.Doc=Hi,ie.splitLines=ti,ie.countColumn=lt,ie.findColumn=Mi,ie.isWordChar=He,ie.Pass=ai,ie.signal=Yi,ie.Line=Ia,ie.changeEnd=sr,ie.scrollbarModel=Ei,ie.Pos=Sn,ie.cmpPos=or,ie.modes=Yn,ie.mimeModes=In,ie.resolveMode=zt,ie.getMode=Kt,ie.modeExtensions=Ft,ie.extendMode=un,ie.copyState=Ti,ie.startState=hi,ie.innerMode=Ri,ie.commands=Xs,ie.keyMap=xa,ie.keyName=gs,ie.isModifierKey=wa,ie.lookupKey=Rr,ie.normalizeKeyMap=no,ie.StringStream=Ut,ie.SharedTextMarker=Pr,ie.TextMarker=Et,ie.LineWidget=fi,ie.e_preventDefault=ra,ie.e_stopPropagation=Un,ie.e_stop=ia,ie.addClass=Ht,ie.contains=bt,ie.rmClass=nt,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 Ii(Hi),zs.inputStyles={textarea:yu,contenteditable:Al},zs.defineMode=function(ie){!zs.defaults.mode&&ie!="null"&&(zs.defaults.mode=ie),en.apply(this,arguments)},zs.defineMIME=ni,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(Dn,ei,be){(function(ve){ve(be(4631),be(29589),be(52539))})(function(ve){"use strict";ve.defineMode("markdown",function(ot,wt){var Qt=ve.getMode(ot,"text/html"),Nt=Qt.name=="null";function Re(lt){if(ve.findModeByName){var Ge=ve.findModeByName(lt);Ge&&(lt=Ge.mime||Ge.mimes[0])}var Ne=ve.getMode(ot,lt);return Ne.name=="null"?null:Ne}wt.highlightFormatting===void 0&&(wt.highlightFormatting=!1),wt.maxBlockquoteDepth===void 0&&(wt.maxBlockquoteDepth=0),wt.taskLists===void 0&&(wt.taskLists=!1),wt.strikethrough===void 0&&(wt.strikethrough=!1),wt.emoji===void 0&&(wt.emoji=!1),wt.fencedCodeBlockHighlighting===void 0&&(wt.fencedCodeBlockHighlighting=!0),wt.fencedCodeBlockDefaultMode===void 0&&(wt.fencedCodeBlockDefaultMode="text/plain"),wt.xml===void 0&&(wt.xml=!0),wt.tokenTypeOverrides===void 0&&(wt.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)&&wt.tokenTypeOverrides[pt]&&(Je[pt]=wt.tokenTypeOverrides[pt]);var mt=/^([*\-_])(?:\s*\1){2,}\s*$/,yt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Vt=/^\[(x| )\](?=\s)/i,ct=wt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,We=/^ {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==nt){var Ge=Nt;if(!Ge){var Ne=ve.innerMode(Qt,lt.htmlState);Ge=Ne.mode.name=="xml"&&Ne.state.tagStart===null&&!Ne.state.context&&Ne.state.tokenize.isInText}Ge&&(lt.f=jt,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,Rn=xe(Ge.prevLine.stream),ai=Ge.indentedCode,Zt=Ge.prevLine.hr,ci=Ge.list!==!1,On=(Ge.listStack[Ge.listStack.length-1]||0)+3;Ge.indentedCode=!1;var Mi=Ge.indentation;if(Ge.indentationDiff===null&&(Ge.indentationDiff=Ge.indentation,ci)){for(Ge.list=null;Mi<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=Mi-Ge.listStack[Ge.listStack.length-1])}var Xt=!Rn&&!Zt&&!Ge.prevLine.header&&(!ci||!ai)&&!Ge.prevLine.fencedCodeEnd,At=(Ge.list===!1||Zt||Rn)&&Ge.indentation<=On&<.match(mt),on=null;if(Ge.indentationDiff>=4&&(ai||Ge.prevLine.fencedCodeEnd||Ge.prevLine.header||Rn))return lt.skipToEnd(),Ge.indentedCode=!0,Je.code;if(lt.eatSpace())return null;if(Ne&&Ge.indentation<=On&&(on=lt.match(ct))&&on[1].length<=6)return Ge.quote=0,Ge.header=on[1].length,Ge.thisLine.header=!0,wt.highlightFormatting&&(Ge.formatting="header"),Ge.f=Ge.inline,qe(Ge);if(Ge.indentation<=On&<.eat(">"))return Ge.quote=Ne?1:Ge.quote+1,wt.highlightFormatting&&(Ge.formatting="quote"),lt.eatSpace(),qe(Ge);if(!At&&!Ge.setext&&Ne&&Ge.indentation<=On&&(on=lt.match(yt))){var Si=on[1]?"ol":"ul";return Ge.indentation=Mi+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,wt.taskLists&<.match(Vt,!1)&&(Ge.taskList=!0),Ge.f=Ge.inline,wt.highlightFormatting&&(Ge.formatting=["list","list-"+Si]),qe(Ge)}else{if(Ne&&Ge.indentation<=On&&(on=lt.match(ne,!0)))return Ge.quote=0,Ge.fencedEndRE=new RegExp(on[1]+"+ *$"),Ge.localMode=wt.fencedCodeBlockHighlighting&&Re(on[2]||wt.fencedCodeBlockDefaultMode),Ge.localMode&&(Ge.localState=ve.startState(Ge.localMode)),Ge.f=Ge.block=ft,wt.highlightFormatting&&(Ge.formatting="code-block"),Ge.code=-1,qe(Ge);if(Ge.setext||(!Xt||!ci)&&!Ge.quote&&Ge.list===!1&&!Ge.code&&!At&&!te.test(lt.string)&&(on=lt.lookAhead(1))&&(on=on.match(We)))return Ge.setext?(Ge.header=Ge.setext,Ge.setext=0,lt.skipToEnd(),wt.highlightFormatting&&(Ge.formatting="header")):(Ge.header=on[0].charAt(0)=="="?1:2,Ge.setext=Ge.header),Ge.thisLine.header=!0,Ge.f=Ge.inline,qe(Ge);if(At)return lt.skipToEnd(),Ge.hr=!0,Ge.thisLine.hr=!0,Je.hr;if(lt.peek()==="[")return ge(lt,Ge,Jn)}return ge(lt,Ge,Ge.inline)}function nt(lt,Ge){var Ne=Qt.token(lt,Ge.htmlState);if(!Nt){var Rn=ve.innerMode(Qt,Ge.htmlState);(Rn.mode.name=="xml"&&Rn.state.tagStart===null&&!Rn.state.context&&Rn.state.tokenize.isInText||Ge.md_inside&<.current().indexOf(">")>-1)&&(Ge.f=jt,Ge.block=Ke,Ge.htmlState=null)}return Ne}function ft(lt,Ge){var Ne=Ge.listStack[Ge.listStack.length-1]||0,Rn=Ge.indentation<Ne,ai=Ne+3;if(Ge.fencedEndRE&&Ge.indentation<=ai&&(Rn||lt.match(Ge.fencedEndRE))){wt.highlightFormatting&&(Ge.formatting="code-block");var Zt;return Rn||(Zt=qe(Ge)),Ge.localMode=Ge.localState=null,Ge.block=Ke,Ge.f=jt,Ge.fencedEndRE=null,Ge.code=0,Ge.thisLine.fencedCodeEnd=!0,Rn?me(lt,Ge,Ge.block):Zt}else return Ge.localMode?Ge.localMode.token(lt,Ge.localState):(lt.skipToEnd(),Je.code)}function qe(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"&&(!wt.maxBlockquoteDepth||wt.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),!wt.maxBlockquoteDepth||wt.maxBlockquoteDepth>=lt.quote?Ge.push(Je.quote+"-"+lt.quote):Ge.push(Je.quote+"-"+wt.maxBlockquoteDepth)),lt.list!==!1){var Rn=(lt.listStack.length-1)%3;Rn?Rn===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 at(lt,Ge){if(lt.match(Te,!0))return qe(Ge)}function jt(lt,Ge){var Ne=Ge.text(lt,Ge);if(typeof Ne!="undefined")return Ne;if(Ge.list)return Ge.list=null,qe(Ge);if(Ge.taskList){var Rn=lt.match(Vt,!0)[1]===" ";return Rn?Ge.taskOpen=!0:Ge.taskClosed=!0,wt.highlightFormatting&&(Ge.formatting="task"),Ge.taskList=!1,qe(Ge)}if(Ge.taskOpen=!1,Ge.taskClosed=!1,Ge.header&<.match(/^#+$/,!0))return wt.highlightFormatting&&(Ge.formatting="header"),qe(Ge);var ai=lt.next();if(Ge.linkTitle){Ge.linkTitle=!1;var Zt=ai;ai==="("&&(Zt=")"),Zt=(Zt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ci="^\\s*(?:[^"+Zt+"\\\\]+|\\\\\\\\|\\\\.)"+Zt;if(lt.match(new RegExp(ci),!0))return Je.linkHref}if(ai==="`"){var On=Ge.formatting;wt.highlightFormatting&&(Ge.formatting="code"),lt.eatWhile("`");var Mi=lt.current().length;if(Ge.code==0&&(!Ge.quote||Mi==1))return Ge.code=Mi,qe(Ge);if(Mi==Ge.code){var Xt=qe(Ge);return Ge.code=0,Xt}else return Ge.formatting=On,qe(Ge)}else if(Ge.code)return qe(Ge);if(ai==="\\"&&(lt.next(),wt.highlightFormatting)){var At=qe(Ge),on=Je.formatting+"-escape";return At?At+" "+on:on}if(ai==="!"&<.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ge.imageMarker=!0,Ge.image=!0,wt.highlightFormatting&&(Ge.formatting="image"),qe(Ge);if(ai==="["&&Ge.imageMarker&<.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ge.imageMarker=!1,Ge.imageAltText=!0,wt.highlightFormatting&&(Ge.formatting="image"),qe(Ge);if(ai==="]"&&Ge.imageAltText){wt.highlightFormatting&&(Ge.formatting="image");var At=qe(Ge);return Ge.imageAltText=!1,Ge.image=!1,Ge.inline=Ge.f=bt,At}if(ai==="["&&!Ge.image)return Ge.linkText&<.match(/^.*?\]/)||(Ge.linkText=!0,wt.highlightFormatting&&(Ge.formatting="link")),qe(Ge);if(ai==="]"&&Ge.linkText){wt.highlightFormatting&&(Ge.formatting="link");var At=qe(Ge);return Ge.linkText=!1,Ge.inline=Ge.f=lt.match(/\(.*?\)| ?\[.*?\]/,!1)?bt:jt,At}if(ai==="<"&<.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=Mt,wt.highlightFormatting&&(Ge.formatting="link");var At=qe(Ge);return At?At+=" ":At="",At+Je.linkInline}if(ai==="<"&<.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=Mt,wt.highlightFormatting&&(Ge.formatting="link");var At=qe(Ge);return At?At+=" ":At="",At+Je.linkEmail}if(wt.xml&&ai==="<"&<.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Si=lt.string.indexOf(">",lt.pos);if(Si!=-1){var Gt=lt.string.substring(lt.start,Si);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Gt)&&(Ge.md_inside=!0)}return lt.backUp(1),Ge.htmlState=ve.startState(Qt),me(lt,Ge,nt)}if(wt.xml&&ai==="<"&<.match(/^\/\w*?>/))return Ge.md_inside=!1,"tag";if(ai==="*"||ai==="_"){for(var Xe=1,ke=lt.pos==1?" ":lt.string.charAt(lt.pos-2);Xe<3&<.eat(ai);)Xe++;var Me=lt.peek()||" ",He=!/\s/.test(Me)&&(!ue.test(Me)||/\s/.test(ke)||ue.test(ke)),et=!/\s/.test(ke)&&(!ue.test(ke)||/\s/.test(Me)||ue.test(Me)),Oe=null,ut=null;if(Xe%2&&(!Ge.em&&He&&(ai==="*"||!et||ue.test(ke))?Oe=!0:Ge.em==ai&&et&&(ai==="*"||!He||ue.test(Me))&&(Oe=!1)),Xe>1&&(!Ge.strong&&He&&(ai==="*"||!et||ue.test(ke))?ut=!0:Ge.strong==ai&&et&&(ai==="*"||!He||ue.test(Me))&&(ut=!1)),ut!=null||Oe!=null){wt.highlightFormatting&&(Ge.formatting=Oe==null?"strong":ut==null?"em":"strong em"),Oe===!0&&(Ge.em=ai),ut===!0&&(Ge.strong=ai);var Xt=qe(Ge);return Oe===!1&&(Ge.em=!1),ut===!1&&(Ge.strong=!1),Xt}}else if(ai===" "&&(lt.eat("*")||lt.eat("_"))){if(lt.peek()===" ")return qe(Ge);lt.backUp(1)}if(wt.strikethrough){if(ai==="~"&<.eatWhile(ai)){if(Ge.strikethrough){wt.highlightFormatting&&(Ge.formatting="strikethrough");var Xt=qe(Ge);return Ge.strikethrough=!1,Xt}else if(lt.match(/^[^\s]/,!1))return Ge.strikethrough=!0,wt.highlightFormatting&&(Ge.formatting="strikethrough"),qe(Ge)}else if(ai===" "&<.match(/^~~/,!0)){if(lt.peek()===" ")return qe(Ge);lt.backUp(2)}}if(wt.emoji&&ai===":"&<.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ge.emoji=!0,wt.highlightFormatting&&(Ge.formatting="emoji");var Vn=qe(Ge);return Ge.emoji=!1,Vn}return ai===" "&&(lt.match(/^ +$/,!1)?Ge.trailingSpace++:Ge.trailingSpace&&(Ge.trailingSpaceNewLine=!0)),qe(Ge)}function Mt(lt,Ge){var Ne=lt.next();if(Ne===">"){Ge.f=Ge.inline=jt,wt.highlightFormatting&&(Ge.formatting="link");var Rn=qe(Ge);return Rn?Rn+=" ":Rn="",Rn+Je.linkInline}return lt.match(/^[^>]+/,!0),Je.linkInline}function bt(lt,Ge){if(lt.eatSpace())return null;var Ne=lt.next();return Ne==="("||Ne==="["?(Ge.f=Ge.inline=Ht(Ne==="("?")":"]"),wt.highlightFormatting&&(Ge.formatting="link-string"),Ge.linkHref=!0,qe(Ge)):"error"}var Bt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ht(lt){return function(Ge,Ne){var Rn=Ge.next();if(Rn===lt){Ne.f=Ne.inline=jt,wt.highlightFormatting&&(Ne.formatting="link-string");var ai=qe(Ne);return Ne.linkHref=!1,ai}return Ge.match(Bt[lt]),Ne.linkHref=!0,qe(Ne)}}function Jn(lt,Ge){return lt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ge.f=qn,lt.next(),wt.highlightFormatting&&(Ge.formatting="link"),Ge.linkText=!0,qe(Ge)):ge(lt,Ge,jt)}function qn(lt,Ge){if(lt.match(/^\]:/,!0)){Ge.f=Ge.inline=sn,wt.highlightFormatting&&(Ge.formatting="link");var Ne=qe(Ge);return Ge.linkText=!1,Ne}return lt.match(/^([^\]\\]|\\.)+/,!0),Je.linkText}function sn(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=jt,Je.linkHref+" url")}var Nn={startState:function(){return{f:Ke,prevLine:{stream:null},thisLine:{stream:null},block:Ke,htmlState:null,indentation:0,inline:jt,text:at,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(Qt,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!=nt)){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==nt?{state:lt.htmlState,mode:Qt}:lt.localState?{state:lt.localState,mode:lt.localMode}:{state:lt,mode:Nn}},indent:function(lt,Ge,Ne){return lt.block==nt&&Qt.indent?Qt.indent(lt.htmlState,Ge,Ne):lt.localState&<.localMode.indent?lt.localMode.indent(lt.localState,Ge,Ne):ve.Pass},blankLine:Pe,getType:qe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Nn},"xml"),ve.defineMIME("text/markdown","markdown"),ve.defineMIME("text/x-markdown","markdown")})},52539:function(Dn,ei,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 ot=0;ot<ve.modeInfo.length;ot++){var wt=ve.modeInfo[ot];wt.mimes&&(wt.mime=wt.mimes[0])}ve.findModeByMIME=function(Qt){Qt=Qt.toLowerCase();for(var Nt=0;Nt<ve.modeInfo.length;Nt++){var Re=ve.modeInfo[Nt];if(Re.mime==Qt)return Re;if(Re.mimes){for(var Je=0;Je<Re.mimes.length;Je++)if(Re.mimes[Je]==Qt)return Re}}if(/\+xml$/.test(Qt))return ve.findModeByMIME("application/xml");if(/\+json$/.test(Qt))return ve.findModeByMIME("application/json")},ve.findModeByExtension=function(Qt){Qt=Qt.toLowerCase();for(var Nt=0;Nt<ve.modeInfo.length;Nt++){var Re=ve.modeInfo[Nt];if(Re.ext){for(var Je=0;Je<Re.ext.length;Je++)if(Re.ext[Je]==Qt)return Re}}},ve.findModeByFileName=function(Qt){for(var Nt=0;Nt<ve.modeInfo.length;Nt++){var Re=ve.modeInfo[Nt];if(Re.file&&Re.file.test(Qt))return Re}var Je=Qt.lastIndexOf("."),pt=Je>-1&&Qt.substring(Je+1,Qt.length);if(pt)return ve.findModeByExtension(pt)},ve.findModeByName=function(Qt){Qt=Qt.toLowerCase();for(var Nt=0;Nt<ve.modeInfo.length;Nt++){var Re=ve.modeInfo[Nt];if(Re.name.toLowerCase()==Qt)return Re;if(Re.alias){for(var Je=0;Je<Re.alias.length;Je++)if(Re.alias[Je].toLowerCase()==Qt)return Re}}}})},80785:function(Dn,ei,be){(function(ve){ve(be(4631))})(function(ve){"use strict";ve.defineMode("stex",function(ot,wt){"use strict";function Qt(Te,ne){Te.cmdState.push(ne)}function Nt(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 mt={};mt.importmodule=pt("importmodule","tag",["string","builtin"]),mt.documentclass=pt("documentclass","tag",["","atom"]),mt.usepackage=pt("usepackage","tag",["atom"]),mt.begin=pt("begin","tag",["atom"]),mt.end=pt("end","tag",["atom"]),mt.label=pt("label","tag",["atom"]),mt.ref=pt("ref","tag",["atom"]),mt.eqref=pt("eqref","tag",["atom"]),mt.cite=pt("cite","tag",["atom"]),mt.bibitem=pt("bibitem","tag",["atom"]),mt.Bibitem=pt("Bibitem","tag",["atom"]),mt.RBibitem=pt("RBibitem","tag",["atom"]),mt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function yt(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=mt.hasOwnProperty(ue)?mt[ue]:mt.DEFAULT,te=new te,Qt(ne,te),yt(ne,We),te.style}if(Te.match(/^\\[$&%#{}_]/)||Te.match(/^\\[,;!\/\\]/))return"tag";if(Te.match("\\["))return yt(ne,function(ge,me){return ct(ge,me,"\\]")}),"keyword";if(Te.match("\\("))return yt(ne,function(ge,me){return ct(ge,me,"\\)")}),"keyword";if(Te.match("$$"))return yt(ne,function(ge,me){return ct(ge,me,"$$")}),"keyword";if(Te.match("$"))return yt(ne,function(ge,me){return ct(ge,me,"$")}),"keyword";var se=Te.next();if(se=="%")return Te.skipToEnd(),"comment";if(se=="}"||se=="]"){if(te=Nt(ne),te)te.closeBracket(se),yt(ne,We);else return"error";return"bracket"}else return se=="{"||se=="["?(te=mt.DEFAULT,te=new te,Qt(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 yt(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 We(Te,ne){var te=Te.peek(),ue;return te=="{"||te=="["?(ue=Nt(ne),ue.openBracket(te),Te.eat(te),yt(ne,Vt),"bracket"):/[ \t\r]/.test(te)?(Te.eat(te),null):(yt(ne,Vt),Re(ne),Vt(Te,ne))}return{startState:function(){var Te=wt.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(Dn,ei,be){(function(ve){ve(be(4631))})(function(ve){"use strict";var ot={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},wt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ve.defineMode("xml",function(Qt,Nt){var Re=Qt.indentUnit,Je={},pt=Nt.htmlMode?ot:wt;for(var mt in pt)Je[mt]=pt[mt];for(var mt in Nt)Je[mt]=Nt[mt];var yt,Vt;function ct(Mt,bt){function Bt(qn){return bt.tokenize=qn,qn(Mt,bt)}var Ht=Mt.next();if(Ht=="<")return Mt.eat("!")?Mt.eat("[")?Mt.match("CDATA[")?Bt(ne("atom","]]>")):null:Mt.match("--")?Bt(ne("comment","-->")):Mt.match("DOCTYPE",!0,!0)?(Mt.eatWhile(/[\w\._\-]/),Bt(te(1))):null:Mt.eat("?")?(Mt.eatWhile(/[\w\._\-]/),bt.tokenize=ne("meta","?>"),"meta"):(yt=Mt.eat("/")?"closeTag":"openTag",bt.tokenize=We,"tag bracket");if(Ht=="&"){var Jn;return Mt.eat("#")?Mt.eat("x")?Jn=Mt.eatWhile(/[a-fA-F\d]/)&&Mt.eat(";"):Jn=Mt.eatWhile(/[\d]/)&&Mt.eat(";"):Jn=Mt.eatWhile(/[\w\.\-:]/)&&Mt.eat(";"),Jn?"atom":"error"}else return Mt.eatWhile(/[^&<]/),null}ct.isInText=!0;function We(Mt,bt){var Bt=Mt.next();if(Bt==">"||Bt=="/"&&Mt.eat(">"))return bt.tokenize=ct,yt=Bt==">"?"endTag":"selfcloseTag","tag bracket";if(Bt=="=")return yt="equals",null;if(Bt=="<"){bt.tokenize=ct,bt.state=me,bt.tagName=bt.tagStart=null;var Ht=bt.tokenize(Mt,bt);return Ht?Ht+" tag error":"tag error"}else return/[\'\"]/.test(Bt)?(bt.tokenize=Te(Bt),bt.stringStartCol=Mt.column(),bt.tokenize(Mt,bt)):(Mt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Te(Mt){var bt=function(Bt,Ht){for(;!Bt.eol();)if(Bt.next()==Mt){Ht.tokenize=We;break}return"string"};return bt.isInAttribute=!0,bt}function ne(Mt,bt){return function(Bt,Ht){for(;!Bt.eol();){if(Bt.match(bt)){Ht.tokenize=ct;break}Bt.next()}return Mt}}function te(Mt){return function(bt,Bt){for(var Ht;(Ht=bt.next())!=null;){if(Ht=="<")return Bt.tokenize=te(Mt+1),Bt.tokenize(bt,Bt);if(Ht==">")if(Mt==1){Bt.tokenize=ct;break}else return Bt.tokenize=te(Mt-1),Bt.tokenize(bt,Bt)}return"meta"}}function ue(Mt,bt,Bt){this.prev=Mt.context,this.tagName=bt,this.indent=Mt.indented,this.startOfLine=Bt,(Je.doNotIndent.hasOwnProperty(bt)||Mt.context&&Mt.context.noIndent)&&(this.noIndent=!0)}function se(Mt){Mt.context&&(Mt.context=Mt.context.prev)}function ge(Mt,bt){for(var Bt;;){if(!Mt.context||(Bt=Mt.context.tagName,!Je.contextGrabbers.hasOwnProperty(Bt)||!Je.contextGrabbers[Bt].hasOwnProperty(bt)))return;se(Mt)}}function me(Mt,bt,Bt){return Mt=="openTag"?(Bt.tagStart=bt.column(),xe):Mt=="closeTag"?Pe:me}function xe(Mt,bt,Bt){return Mt=="word"?(Bt.tagName=bt.current(),Vt="tag",ft):Je.allowMissingTagName&&Mt=="endTag"?(Vt="tag bracket",ft(Mt,bt,Bt)):(Vt="error",xe)}function Pe(Mt,bt,Bt){if(Mt=="word"){var Ht=bt.current();return Bt.context&&Bt.context.tagName!=Ht&&Je.implicitlyClosed.hasOwnProperty(Bt.context.tagName)&&se(Bt),Bt.context&&Bt.context.tagName==Ht||Je.matchClosing===!1?(Vt="tag",Ke):(Vt="tag error",nt)}else return Je.allowMissingTagName&&Mt=="endTag"?(Vt="tag bracket",Ke(Mt,bt,Bt)):(Vt="error",nt)}function Ke(Mt,bt,Bt){return Mt!="endTag"?(Vt="error",Ke):(se(Bt),me)}function nt(Mt,bt,Bt){return Vt="error",Ke(Mt,bt,Bt)}function ft(Mt,bt,Bt){if(Mt=="word")return Vt="attribute",qe;if(Mt=="endTag"||Mt=="selfcloseTag"){var Ht=Bt.tagName,Jn=Bt.tagStart;return Bt.tagName=Bt.tagStart=null,Mt=="selfcloseTag"||Je.autoSelfClosers.hasOwnProperty(Ht)?ge(Bt,Ht):(ge(Bt,Ht),Bt.context=new ue(Bt,Ht,Jn==Bt.indented)),me}return Vt="error",ft}function qe(Mt,bt,Bt){return Mt=="equals"?at:(Je.allowMissing||(Vt="error"),ft(Mt,bt,Bt))}function at(Mt,bt,Bt){return Mt=="string"?jt:Mt=="word"&&Je.allowUnquoted?(Vt="string",ft):(Vt="error",ft(Mt,bt,Bt))}function jt(Mt,bt,Bt){return Mt=="string"?jt:ft(Mt,bt,Bt)}return{startState:function(Mt){var bt={tokenize:ct,state:me,indented:Mt||0,tagName:null,tagStart:null,context:null};return Mt!=null&&(bt.baseIndent=Mt),bt},token:function(Mt,bt){if(!bt.tagName&&Mt.sol()&&(bt.indented=Mt.indentation()),Mt.eatSpace())return null;yt=null;var Bt=bt.tokenize(Mt,bt);return(Bt||yt)&&Bt!="comment"&&(Vt=null,bt.state=bt.state(yt||Bt,Mt,bt),Vt&&(Bt=Vt=="error"?Bt+" error":Vt)),Bt},indent:function(Mt,bt,Bt){var Ht=Mt.context;if(Mt.tokenize.isInAttribute)return Mt.tagStart==Mt.indented?Mt.stringStartCol+1:Mt.indented+Re;if(Ht&&Ht.noIndent)return ve.Pass;if(Mt.tokenize!=We&&Mt.tokenize!=ct)return Bt?Bt.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(bt))return 0;var Jn=bt&&/^<(\/)?([\w_:\.-]*)/.exec(bt);if(Jn&&Jn[1])for(;Ht;)if(Ht.tagName==Jn[2]){Ht=Ht.prev;break}else if(Je.implicitlyClosed.hasOwnProperty(Ht.tagName))Ht=Ht.prev;else break;else if(Jn)for(;Ht;){var qn=Je.contextGrabbers[Ht.tagName];if(qn&&qn.hasOwnProperty(Jn[2]))Ht=Ht.prev;else break}for(;Ht&&Ht.prev&&!Ht.startOfLine;)Ht=Ht.prev;return Ht?Ht.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==at&&(Mt.state=ft)},xmlCurrentTag:function(Mt){return Mt.tagName?{name:Mt.tagName,close:Mt.type=="closeTag"}:null},xmlCurrentContext:function(Mt){for(var bt=[],Bt=Mt.context;Bt;Bt=Bt.prev)Bt.tagName&&bt.push(Bt.tagName);return bt.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(Dn){(function(ei,be){Dn.exports=be()})(this,function(){"use strict";return function(ei,be){var ve=be.prototype,ot=ve.format;ve.format=function(wt){var Qt=this,Nt=this.$locale();if(!this.isValid())return ot.bind(this)(wt);var Re=this.$utils(),Je=(wt||"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((Qt.$M+1)/3);case"Do":return Nt.ordinal(Qt.$D);case"gggg":return Qt.weekYear();case"GGGG":return Qt.isoWeekYear();case"wo":return Nt.ordinal(Qt.week(),"W");case"w":case"ww":return Re.s(Qt.week(),pt==="w"?1:2,"0");case"W":case"WW":return Re.s(Qt.isoWeek(),pt==="W"?1:2,"0");case"k":case"kk":return Re.s(String(Qt.$H===0?24:Qt.$H),pt==="k"?1:2,"0");case"X":return Math.floor(Qt.$d.getTime()/1e3);case"x":return Qt.$d.getTime();case"z":return"["+Qt.offsetName()+"]";case"zzz":return"["+Qt.offsetName("long")+"]";default:return pt}});return ot.bind(this)(Je)}}})},96036:function(Dn){(function(ei,be){Dn.exports=be()})(this,function(){"use strict";return function(ei,be,ve){var ot=be.prototype,wt=function(pt){return pt&&(pt.indexOf?pt:pt.s)},Qt=function(pt,mt,yt,Vt,ct){var We=pt.name?pt:pt.$locale(),Te=wt(We[mt]),ne=wt(We[yt]),te=Te||ne.map(function(se){return se.slice(0,Vt)});if(!ct)return te;var ue=We.weekStart;return te.map(function(se,ge){return te[(ge+(ue||0))%7]})},Nt=function(){return ve.Ls[ve.locale()]},Re=function(pt,mt){return pt.formats[mt]||function(yt){return yt.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Vt,ct,We){return ct||We.slice(1)})}(pt.formats[mt.toUpperCase()])},Je=function(){var pt=this;return{months:function(mt){return mt?mt.format("MMMM"):Qt(pt,"months")},monthsShort:function(mt){return mt?mt.format("MMM"):Qt(pt,"monthsShort","months",3)},firstDayOfWeek:function(){return pt.$locale().weekStart||0},weekdays:function(mt){return mt?mt.format("dddd"):Qt(pt,"weekdays")},weekdaysMin:function(mt){return mt?mt.format("dd"):Qt(pt,"weekdaysMin","weekdays",2)},weekdaysShort:function(mt){return mt?mt.format("ddd"):Qt(pt,"weekdaysShort","weekdays",3)},longDateFormat:function(mt){return Re(pt.$locale(),mt)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};ot.localeData=function(){return Je.bind(this)()},ve.localeData=function(){var pt=Nt();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(mt){return Re(pt,mt)},meridiem:pt.meridiem,ordinal:pt.ordinal}},ve.months=function(){return Qt(Nt(),"months")},ve.monthsShort=function(){return Qt(Nt(),"monthsShort","months",3)},ve.weekdays=function(pt){return Qt(Nt(),"weekdays",null,null,pt)},ve.weekdaysShort=function(pt){return Qt(Nt(),"weekdaysShort","weekdays",3,pt)},ve.weekdaysMin=function(pt){return Qt(Nt(),"weekdaysMin","weekdays",2,pt)}}})},55183:function(Dn){(function(ei,be){Dn.exports=be()})(this,function(){"use strict";var ei="week",be="year";return function(ve,ot,wt){var Qt=ot.prototype;Qt.week=function(Nt){if(Nt===void 0&&(Nt=null),Nt!==null)return this.add(7*(Nt-this.week()),"day");var Re=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var Je=wt(this).startOf(be).add(1,be).date(Re),pt=wt(this).endOf(ei);if(Je.isBefore(pt))return 1}var mt=wt(this).startOf(be).date(Re).startOf(ei).subtract(1,"millisecond"),yt=this.diff(mt,ei,!0);return yt<0?wt(this).startOf("week").week():Math.ceil(yt)},Qt.weeks=function(Nt){return Nt===void 0&&(Nt=null),this.week(Nt)}}})},172:function(Dn){(function(ei,be){Dn.exports=be()})(this,function(){"use strict";return function(ei,be){be.prototype.weekYear=function(){var ve=this.month(),ot=this.week(),wt=this.year();return ot===1&&ve===11?wt+1:ve===0&&ot>=52?wt-1:wt}}})},6833:function(Dn){(function(ei,be){Dn.exports=be()})(this,function(){"use strict";return function(ei,be){be.prototype.weekday=function(ve){var ot=this.$locale().weekStart||0,wt=this.$W,Qt=(wt<ot?wt+7:wt)-ot;return this.$utils().u(ve)?Qt:this.subtract(Qt,"day").add(ve,"day")}}})},23495:function(Dn,ei,be){"use strict";be.d(ei,{$u:function(){return mt},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 on},UL:function(){return yt},Vk:function(){return se},Vm:function(){return mn},YI:function(){return Si},ZA:function(){return wt},Zt:function(){return Vt},al:function(){return Oe},bn:function(){return et},bx:function(){return ke},g2:function(){return Gt},h1:function(){return at},hD:function(){return Ii},l4:function(){return Re},rU:function(){return si},s_:function(){return Me},uz:function(){return An},z6:function(){return ct}}),Dn=be.hmd(Dn),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 ii(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Yn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},In;if(typeof Object.setPrototypeOf=="function")In=Object.setPrototypeOf;else{var en;e:{var ni={a:!0},zt={};try{zt.__proto__=ni,en=zt.a;break e}catch(a){}en=!1}In=en?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Kt=In;function Ft(a,y){if(a.prototype=Yn(y.prototype),a.prototype.constructor=a,Kt)Kt(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 hi(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})}}hi("Object.assign",function(a){return a||Ti}),hi("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 Ut=typeof globalThis=="object"&&globalThis||typeof be.g=="object"&&be.g.global===be.g&&be.g||typeof self=="object"&&self.self===self&&self||{};Ut.requestAnimationFrame===void 0&&(Ut.setImmediate===void 0?Ut.requestAnimationFrame=function(a){Ut.setTimeout(a,0)}:Ut.requestAnimationFrame=Ut.setImmediate);function zn(){}function xn(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Ut.clearTimeout(x),x=Fr(function(){x=-1,a.apply(E,b)},y)}}function Fr(a,y){return Ut.setTimeout(a,y)}function ri(a){return Ut.document.createElement(a)}function $t(a){throw Error(a)}function _i(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),$t(a)}function Wr(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),$t(x+" is not in the range "+y+": "+a)}function Br(a){Ut.console&&Ut.console.log(a)}function Sn(a){return typeof a=="object"&&a!==null}function or(a){return Array.isArray(a)||Ut.NodeList&&a instanceof Ut.NodeList||Ut.HTMLCollection&&a instanceof Ut.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):$t("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):$t("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ur(){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(Sn(a)&&a.constructor)return io(a.constructor);return typeof a}function va(a){var y=a;return Sn(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 pi(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=Ut.navigator!==void 0&&0<Ut.navigator.userAgent.indexOf("Trident/7"),el=Ut.navigator!==void 0&&Ut.navigator.platform!==void 0&&Ut.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Ns=[];Object.freeze([]),zn.className="Util",zn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",zn.adym="gojs.net",zn.vfo="28e645fdb266",zn.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){Ut.console&&Ut.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 Wn,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 Wn,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 Wn,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 Wn,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 Wn(a){Po(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&$t("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=Wn.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&&_i(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&&_i(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&&_i(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)&&Wr(a,"0 <= i < length",Wn,"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)&&Wr(a,"0 <= i < length",Wn,"setElt:i"),this._isFrozen&&_i(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&&_i(this);var a=this.s;return 0<a.length?a.pop():null},Wn.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},Wn.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},Wn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},Wn.prototype.map=function(a){for(var y=new Wn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},Wn.prototype.filter=function(a){for(var y=new Wn,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=Wn.prototype,Ee.Gb=function(a,y){0>a&&Wr(a,">= 0",Wn,"insertAt:i"),this._isFrozen&&_i(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&&_i(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)&&Wr(a,"0 <= i < length",Wn,"removeAt:i"),this._isFrozen&&_i(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&&_i(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},Wn.prototype.copy=function(){var a=new Wn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ee=Wn.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 Cn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Ee.sort=function(a){return this._isFrozen&&_i(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&&_i(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Wr(y,"0 <= from < length",Wn,"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&&_i(this),this.s.reverse(),this.xb(),this},un.Object.defineProperties(Wn.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)}}}),Wn.prototype.reverse=Wn.prototype.reverse,Wn.prototype.sortRange=Wn.prototype.zi,Wn.prototype.sort=Wn.prototype.sort,Wn.prototype.toSet=Wn.prototype.Iv,Wn.prototype.toArray=Wn.prototype.Fa,Wn.prototype.removeRange=Wn.prototype.removeRange,Wn.prototype.removeAt=Wn.prototype.mb,Wn.prototype.delete=Wn.prototype.delete,Wn.prototype.remove=Wn.prototype.remove,Wn.prototype.insertAt=Wn.prototype.Gb,Wn.prototype.pop=Wn.prototype.pop,Wn.prototype.last=Wn.prototype.jc,Wn.prototype.first=Wn.prototype.first,Wn.prototype.set=Wn.prototype.set,Wn.prototype.setElt=Wn.prototype.cd,Wn.prototype.get=Wn.prototype.get,Wn.prototype.elt=Wn.prototype.M,Wn.prototype.indexOf=Wn.prototype.indexOf,Wn.prototype.has=Wn.prototype.has,Wn.prototype.contains=Wn.prototype.contains,Wn.prototype.clear=Wn.prototype.clear,Wn.prototype.addAll=Wn.prototype.addAll,Wn.prototype.push=Wn.prototype.push,Wn.prototype.add=Wn.prototype.add,Wn.prototype.thaw=Wn.prototype.ka,Wn.prototype.freeze=Wn.prototype.freeze,Wn.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 Wn;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 Wn;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 Cn(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"&&$t("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ee=Cn.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&&_i(this,a);var y=a;return Sn(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&&_i(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 Sn(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},Cn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Cn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Cn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Cn.prototype.map=function(a){for(var y=new Cn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Cn.prototype.filter=function(a){for(var y=new Cn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Ee=Cn.prototype,Ee.remove=function(a){if(a===null)return!1;this._isFrozen&&_i(this,a);var y=a;if(Sn(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&&_i(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&&_i(this);var y=new Cn;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&&_i(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Cn.prototype.copy=function(){var a=new Cn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Cn.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},Cn.prototype.Hv=function(){var a=new Wn,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(Cn.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)}}}),Cn.prototype.toList=Cn.prototype.Hv,Cn.prototype.toArray=Cn.prototype.Fa,Cn.prototype.clear=Cn.prototype.clear,Cn.prototype.retainAll=Cn.prototype.pA,Cn.prototype.removeAll=Cn.prototype.hp,Cn.prototype.delete=Cn.prototype.delete,Cn.prototype.remove=Cn.prototype.remove,Cn.prototype.first=Cn.prototype.first,Cn.prototype.containsAny=Cn.prototype.Ty,Cn.prototype.containsAll=Cn.prototype.Sy,Cn.prototype.has=Cn.prototype.has,Cn.prototype.contains=Cn.prototype.contains,Cn.prototype.addAll=Cn.prototype.addAll,Cn.prototype.add=Cn.prototype.add,Cn.prototype.thaw=Cn.prototype.ka,Cn.prototype.freeze=Cn.prototype.freeze;var kl=1;Cn.className="Set",Cn.uniqueHash=Po,Cn.hashIdUnique=Ws,Cn.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 Wn;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 Wn;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){Cn.call(this),Po(this),this._isFrozen=!0,this.ma=a}Ft(Ua,Cn),Ee=Ua.prototype,Ee.freeze=function(){return this},Ee.ka=function(){return this},Ee.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ee.add=function(){$t("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(){$t("This Set is read-only: "+this.toString())},Ee.delete=function(a){return this.remove(a)},Ee.clear=function(){$t("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 Cn,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 Cn,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 Cn,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 Wn,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 Wn;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 Wn;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 Wn;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 Wn;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"&&$t("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&&_i(this,a);var x=a;Sn(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 Sn(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 Sn(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&&_i(this,a);var y=a;if(Sn(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&&_i(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 st(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):$t("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var St,Rt,gn,Hn,Oi;st.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},st.prototype.h=function(a,y){return this.x=a,this.y=y,this},st.prototype.sg=function(a,y){return this.x=a,this.y=y,this},st.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},st.prototype.copy=function(){var a=new st;return a.x=this.x,a.y=this.y,a},Ee=st.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)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this};function Yt(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 st(x,b)}return new st}function Zn(a){return a.x.toString()+" "+a.y.toString()}Ee.toString=function(){return"Point("+this.x+","+this.y+")"},Ee.D=function(a){return a instanceof st?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 Ot.B(this.x,a.x)&&Ot.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},st.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=st.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 Ji(a.x-this.x,a.y-this.y)},Ee.direction=function(a,y){return Ji(a-this.x,y-this.y)};function Ji(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 Ot.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ee.fA=function(a,y,x,E){return Ot.qh(a,y,x,E,this.x,this.y,this),this},Ee.gA=function(a,y){return Ot.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ee.uA=function(a,y,x,E){return Ot.No(this.x,this.y,a,y,x,E,this),this},Ee.vA=function(a,y){return Ot.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 xi(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 Zi(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function vi(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)},st.alloc=function(){var a=pr.pop();return a===void 0?new st:a},st.allocAt=function(a,y){var x=pr.pop();return x===void 0?new st(a,y):(x.x=a,x.y=y,x)},st.free=function(a){pr.push(a)},st.prototype.isReal=st.prototype.w,st.prototype.setSpot=st.prototype.yi,st.prototype.setRectSpot=st.prototype.xi,st.prototype.snapToGridPoint=st.prototype.vA,st.prototype.snapToGrid=st.prototype.uA,st.prototype.projectOntoLineSegmentPoint=st.prototype.gA,st.prototype.projectOntoLineSegment=st.prototype.fA,st.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return Ot.Rl(a,y,x,E,b,z,ee,re)},st.prototype.compareWithLineSegmentPoint=st.prototype.Ry,st.compareWithLineSegment=function(a,y,x,E,b,z){return Ot.Fl(a,y,x,E,b,z)},st.prototype.direction=st.prototype.direction,st.prototype.directionPoint=st.prototype.ab,st.prototype.normalize=st.prototype.normalize,st.prototype.distanceSquared=st.prototype.zd,st.prototype.distanceSquaredPoint=st.prototype.Bf,st.prototype.scale=st.prototype.scale,st.prototype.rotate=st.prototype.rotate,st.prototype.offset=st.prototype.offset,st.prototype.subtract=st.prototype.re,st.prototype.add=st.prototype.add,st.prototype.equalsApprox=st.prototype.Xa,st.prototype.equalTo=st.prototype.hi,st.prototype.equals=st.prototype.D,st.prototype.set=st.prototype.set,st.prototype.setTo=st.prototype.sg;var pr=[];st.className="Point",st.parse=Yt,st.stringify=Zn,st.distanceLineSegmentSquared=nr,st.distanceSquared=Zi,st.direction=vi,st.Origin=St=new st(0,0).ja(),st.InfiniteTopLeft=Rt=new st(-1/0,-1/0).ja(),st.InfiniteBottomRight=gn=new st(1/0,1/0).ja(),st.SixPoint=Hn=new st(6,6).ja(),st.NoPoint=Oi=new st(NaN,NaN).ja(),st.parse=Yt,st.stringify=Zn,st.distanceLineSegmentSquared=nr,st.distanceSquared=Zi,st.direction=vi;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):$t("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)&&$t("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 Ot.B(this.width,a.width)&&Ot.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 st?(x=a.x,a=a.y,y instanceof st?(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):$t("Incorrect second argument supplied to Rect constructor "+y)):$t("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)&&$t("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 Ot.B(this.x,a.x)&&Ot.B(this.y,a.y)&&Ot.B(this.width,a.width)&&Ot.B(this.height,a.height)};function Ys(a,y){return Ot.$(a.x,y.x)&&Ot.$(a.y,y.y)&&Ot.$(a.width,y.width)&&Ot.$(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 st(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 st(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 Ot.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):$t("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)&&$t("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 Ot.B(this.top,a.top)&&Ot.B(this.right,a.right)&&Ot.B(this.bottom,a.bottom)&&Ot.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)&&$t("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 Ot={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ot.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ot.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(Ot.Yb(a,y,ee,re,fe,x,E)&&Ot.Yb(a,y,ee,re,fe,b,z))return Ot.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 tt=(E+Ae)/2,Ze=(x+De)/2;return Ot.cs(a,y,Se,we,E,x,tt,Ze,ae,le,ce,fe)||Ot.cs(tt,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 vi(((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(Ot.Yb(a,y,ee,re,ae,x,E)&&Ot.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;Ot.Dl(a,y,ce,fe,E,x,Ae,De,ae,le),Ot.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(Ot.Yb(a,y,ee,re,ae,x,E)&&Ot.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;Ot.Qe(a,y,ce,fe,E,x,Ae,De,ae,le),Ot.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(Ot.Yb(a,y,b,z,le,x,E))return Ot.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 Ot.jv(a,y,ce,fe,Se,we,ee,re,ae,le)||Ot.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(Ot.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;Ot.iv(a,y,ae,le,ce,fe,ee,re),Ot.iv(ce,fe,x,E,b,z,ee,re)}return re},ep:function(a,y,x,E,b,z,ee,re){if(Ot.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;Ot.ep(a,y,ae,le,ce,fe,ee,re),Ot.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(Ot.Yb(a,y,ee,re,Se,x,E)&&Ot.Yb(a,y,ee,re,Se,b,z))return!Ot.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,tt=(x+b)/2,Ze=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Ae+tt)/2,x=(De+Ze)/2,tt=(tt+b)/2,Ze=(Ze+z)/2;var ht=(E+tt)/2,gt=(x+Ze)/2,xt=1/0,Dt=!1,qt=0,zi=0;return Ot.Eo(a,y,Ae,De,E,x,ht,gt,ae,le,ce,fe,Se,we)&&(a=(we.x-ae)*(we.x-ae)+(we.y-le)*(we.y-le),a<xt&&(xt=a,Dt=!0,qt=we.x,zi=we.y)),Ot.Eo(ht,gt,tt,Ze,b,z,ee,re,ae,le,ce,fe,Se,we)&&(we.x-ae)*(we.x-ae)+(we.y-le)*(we.y-le)<xt&&(Dt=!0,qt=we.x,zi=we.y),Dt&&(we.x=qt,we.y=zi),Dt},Fo:function(a,y,x,E,b,z,ee,re,ae,le,ce,fe,Se){var we=0;if(Ot.Yb(a,y,ee,re,Se,x,E)&&Ot.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 tt=(x+b)/2,Ze=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Ae+tt)/2,x=(De+Ze)/2,tt=(tt+b)/2,Ze=(Ze+z)/2;var ht=(E+tt)/2,gt=(x+Ze)/2;we+=Ot.Fo(a,y,Ae,De,E,x,ht,gt,ae,le,ce,fe,Se),we+=Ot.Fo(ht,gt,tt,Ze,b,z,ee,re,ae,le,ce,fe,Se)}return we},qh:function(a,y,x,E,b,z,ee){return Ot.$(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)):Ot.$(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 Ot.B(a,x)&&Ot.B(y,E)?(ae.h(a,y),!1):Ot.$(b,ee)?Ot.$(a,x)?(Ot.qh(a,y,x,E,b,z,ae),!1):Ot.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,ae):(re=(re-z)/(ee-b),Ot.$(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),Ot.$(re,ee)?(Ot.qh(a,y,x,E,b,z,ae),!1):(b=(ee*a-re*b+z-y)/(ee-re),Ot.$(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)):Ot.qh(a,y,x,E,b,ee*(b-a)+y,ae))))},MA:function(a,y,x,E,b){return Ot.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(tt,Ze){var ht=(tt-a)*(tt-a)+(Ze-y)*(Ze-y);ht<fe&&(fe=ht,ae.h(tt,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(Ot.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 Ot.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)),Ot.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)),Ot.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 Ot.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)||Ot.Rl(a,y,ae,y,b,z,ee,re)||Ot.Rl(ae,y,ae,le,b,z,ee,re)||Ot.Rl(ae,le,a,le,b,z,ee,re)||Ot.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>=Ot.Fl(a,y,x,E,b,z)*Ot.Fl(a,y,x,E,ee,re)&&0>=Ot.Fl(b,z,ee,re,a,y)*Ot.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(Ot.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),Ot.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};Ot.za=Ot.AA;function di(a){Po(this),this.l=2,a===void 0&&(a=di.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===di.o?this.ee=new Wn:(di.V===null&&(di.V=new Wn().freeze()),this.ee=di.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=bn}di.prototype.copy=function(){var a=new di;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===di.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},di.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},di.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==di.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},di.prototype.ka=function(){if(Object.isFrozen(this)&&$t("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==di.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},di.prototype.Xa=function(a){if(!(a instanceof di))return!1;if(this.type!==a.type)return this.type===di.j&&a.type===di.o?Kl(this,a):a.type===di.j&&this.type===di.o?Kl(a,this):!1;if(this.type===di.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 Ot.B(this.startX,a.startX)&&Ot.B(this.startY,a.startY)&&Ot.B(this.endX,a.endX)&&Ot.B(this.endY,a.endY)};function Kl(a,y){return a.type!==di.j||y.type!==di.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ot.B(a.startX,y.startX)&&Ot.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===fs&&Ot.B(a.endX,y.endX)&&Ot.B(a.endY,y.endY))))}di.ia=function(a){return a.toString()},di.prototype.qb=function(a){a.classType===di&&(this.type=a)},di.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case di.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 di.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 di.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 di.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()}},di.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},di.parse=function(a,y){function x(){return De>=xt-1?!0:le[De+1].match(Dt)!==null}function E(){return De++,le[De]}function b(Bo){var xo=parseFloat(E()),qa=parseFloat(E());tt===tt.toLowerCase()&&(xo=gt.x+xo,qa=gt.y+qa),Bo.h(xo,qa)}function z(){return b(gt),gt}function ee(){return b(ht),ht}function re(){var Bo=Ze.toLowerCase();return Bo!=="c"&&Bo!=="s"&&Bo!=="q"&&Bo!=="t"?gt:new st(2*gt.x-ht.x,2*gt.y-ht.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=ur();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,tt="",Ze="";ae=new st(0,0);var ht=new st(0,0),gt=new st(0,0),xt=le.length;a=OS(null),Se=fe=ce=!1,we=!0,Ae=null;for(var Dt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(De>=xt-1);)if(Ze=tt,tt=E(),tt!=="")switch(tt.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(gt);!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();)gt=new st((tt===tt.toLowerCase()?gt.x:0)+parseFloat(E()),gt.y),a.lineTo(gt.x,gt.y);break;case"V":for(;!x();)gt=new st(gt.x,(tt===tt.toLowerCase()?gt.y:0)+parseFloat(E())),a.lineTo(gt.x,gt.y);break;case"C":for(;!x();){Ae=new st,b(Ae);var qt=ee(),zi=z();$d(a,Ae.x,Ae.y,qt.x,qt.y,zi.x,zi.y)}break;case"S":for(;!x();)Ae=re(),qt=ee(),zi=z(),$d(a,Ae.x,Ae.y,qt.x,qt.y,zi.x,zi.y);break;case"Q":for(;!x();)Ae=ee(),qt=z(),Km(a,Ae.x,Ae.y,qt.x,qt.y);break;case"T":for(;!x();)ht=Ae=re(),qt=z(),Km(a,Ae.x,Ae.y,qt.x,qt.y);break;case"B":for(;!x();){Ae=parseFloat(E()),qt=parseFloat(E()),zi=parseFloat(E());var cr=parseFloat(E()),tr=parseFloat(E()),gi=tr,_n=!1;x()||(gi=parseFloat(E()),x()||(_n=parseFloat(E())!==0)),tt===tt.toLowerCase()&&(zi+=gt.x,cr+=gt.y),a.arcTo(Ae,qt,zi,cr,tr,gi,_n)}break;case"A":for(;!x();)Ae=Math.abs(parseFloat(E())),qt=Math.abs(parseFloat(E())),zi=parseFloat(E()),tr=cr=!1,_n=gi=0,gi=E(),gi.length===1?(cr=!!parseFloat(gi),tr=!!parseFloat(E()),gi=parseFloat(E())):gi.length===2?(cr=!!parseFloat(gi[0]),tr=!!parseFloat(gi[1]),gi=parseFloat(E())):(cr=!!parseFloat(gi[0]),tr=!!parseFloat(gi[1]),gi=parseFloat(gi.slice(2))),_n=parseFloat(E()),tt===tt.toLowerCase()&&(gi=gt.x+gi,_n=gt.y+_n),gt.h(gi,_n),Nx(a,Ae,qt,zi,cr,tr,gi,_n);break;case"Z":Fx(a),gt.assign(ae);break;case"F":for(Ae="",qt=1;le[De+qt];)if(le[De+qt]==="0")Se=!0,qt++;else if(le[De+qt].match(/[Uu]/)!==null)qt++;else if(le[De+qt].match(Dt)===null)qt++;else{Ae=le[De+qt];break}Ae.match(/[Mm]/)?ce=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ae="",qt=1;le[De+qt];)if(le[De+qt].match(/[Ff]/)!==null)qt++;else if(le[De+qt].match(Dt)===null)qt++;else{Ae=le[De+qt];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},di.Ha=function(a,y){for(var x=a.length,E=st.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}st.free(E)},di.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===di.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},di.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===di.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()},di.prototype.ix=function(){var a=new cn;return Yu(this,a,!0),a};function Yu(a,y,x){switch(a.type){case di.j:case di.u:case di.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 di.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:Ot.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:Ot.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],Ot.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:$t("Unknown Segment type: "+fe.type)}}}break;default:$t("Unknown Geometry type: "+a.type)}}di.prototype.normalize=function(){this._isFrozen&&_i(this);var a=this.ix();return this.offset(-a.x,-a.y),new st(-a.x,-a.y)},di.prototype.offset=function(a,y){return this._isFrozen&&_i(this),this.transform(1,0,0,1,a,y),this},di.prototype.scale=function(a,y){return this._isFrozen&&_i(this),this.transform(a,0,0,y,0,0),this},di.prototype.rotate=function(a,y,x){this._isFrozen&&_i(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=di.prototype,Ee.transform=function(a,y,x,E,b,z){switch(this.type){case di.j:case di.u:case di.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 di.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:$t("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 di.j:return Ot.Yb(x,E,b,z,y,a.x,a.y);case di.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 di.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 di.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],tt=!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 ht=ae,gt=le,xt=Ze.s,Dt=0;Dt<=Ze.length;Dt++){var qt=void 0;if(Dt!==Ze.length){qt=xt[Dt];var zi=qt.type;a=qt.endX,fe=qt.endY}else zi=fs,a=ht,fe=gt;switch(zi){case ll:if(ht=pu(z,y,ee,y,ae,le,ht,gt),isNaN(ht))return!0;re+=ht,ht=a,gt=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=Ot.Fo(ae,le,qt.point1X,qt.point1Y,qt.point2X,qt.point2Y,a,fe,ee,y,z,y,.5),re+=ce;break;case Fu:ce=Ot.Fo(ae,le,(ae+2*qt.point1X)/3,(le+2*qt.point1Y)/3,(2*qt.point1X+a)/3,(2*qt.point1Y+fe)/3,a,fe,ee,y,z,y,.5),re+=ce;break;case sl:case su:zi=qt.type===sl?mu(qt,De):au(qt,De,ae,le);var cr=zi.length;if(cr===0){if(ae=pu(z,y,ee,y,ae,le,qt.type===sl?qt.centerX:qt.endX,qt.type===sl?qt.centerY:qt.endY),isNaN(ae))return!0;re+=ae;break}qt=null;for(var tr=0;tr<cr;tr++){if(qt=zi[tr],tr===0){if(ce=pu(z,y,ee,y,ae,le,qt[0],qt[1]),isNaN(ce))return!0;re+=ce}ce=Ot.Fo(qt[0],qt[1],qt[2],qt[3],qt[4],qt[5],qt[6],qt[7],ee,y,z,y,.5),re+=ce}qt!==null&&(a=qt[6],fe=qt[7]);break;default:$t("Unknown Segment type: "+qt.type)}ae=a,le=fe}if(tt){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(Ot.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 st),this.type===di.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===di.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===di.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===di.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=st.alloc();return Ot.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,st.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===di.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=st.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 tt=Se[De],Ze=Se[De+1];if(De!==0){Ot.qh(le,ce,tt,Ze,a.x,a.y,E);var ht=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);ht<b&&(b=ht,ee=re,ee+=Math.sqrt((E.x-le)*(E.x-le)+(E.y-ce)*(E.y-ce))),re+=we[(De-2)/2]}le=tt,ce=Ze}return st.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===di.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===di.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===di.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];Ot.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:Ot.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:Ot.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 tt=we[De];Ot.Qe(ee,z,tt[2],tt[3],tt[4],tt[5],tt[6],tt[7],.5,E),ee=tt[6],z=tt[7]}break;case su:if(we=au(Se,b,ee,z),Ae=we.length,De=Se.endX,tt=Se.endY,Ae===0){E.push(De),E.push(tt),ee=De,z=tt;break}for(De=0;De<Ae;De++)tt=we[De],Ot.Qe(ee,z,tt[2],tt[3],tt[4],tt[5],tt[6],tt[7],.5,E),ee=tt[6],z=tt[7];break;default:$t("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(Zi(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&&_i(this),this.fg=new kr(a,y,b,z).freeze(),this.gg=new kr(x,E,ee,re).freeze(),this},un.Object.defineProperties(di.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===di.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===di.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&&_i(this,a),this.na=a,a===di.o?this.ee=new Wn:(di.V===null&&(di.V=new Wn().freeze()),this.ee=di.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&_i(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&_i(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&_i(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&_i(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&_i(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&_i(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&_i(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&_i(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),di.prototype.setSpots=di.prototype.pm,di.prototype.add=di.prototype.add,di.prototype.getFractionForPoint=di.prototype.xx,di.prototype.getPointAndAngleAlongPath=di.prototype.Qu,di.prototype.getAngleAlongPath=di.prototype.wx,di.prototype.getPointAlongPath=di.prototype.Pu,di.prototype.containsPoint=di.prototype.ca,di.prototype.transform=di.prototype.transform,di.prototype.rotate=di.prototype.rotate,di.prototype.scale=di.prototype.scale,di.prototype.offset=di.prototype.offset,di.prototype.normalize=di.prototype.normalize,di.prototype.computeBoundsWithoutOrigin=di.prototype.ix,di.prototype.equalsApprox=di.prototype.Xa,di.className="Geometry",di.j=new ln(di,"Line",0),di.u=new ln(di,"Rectangle",1),di.F=new ln(di,"Ellipse",2),di.o=new ln(di,"Path",3),di.V=null,di.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",di.className="Geometry",di.stringify=di.ia,di.fillPath=di.nb,di.parse=di.parse,di.Line=di.j,di.Rectangle=di.u,di.Ellipse=di.F,di.Path=di.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 Wn,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&&Ot.B(this.startX,a.startX)&&Ot.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(Ot.Yb(E,b,ce.endX,ce.endY,x,a,y))return!0;E=ce.endX,b=ce.endY;break;case Ml:if(Ot.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(Ot.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(Ot.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&&Ot.Yb(E,b,we[0],we[1],x,a,y)||Ot.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:$t("Unknown Segment type: "+ce.type)}if(ce.isClosed&&(E!==z||b!==ee)&&Ot.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&&_i(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&_i(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&_i(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&_i(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&_i(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&_i(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 Ot.B(this.endX,a.endX)&&Ot.B(this.endY,a.endY);case Ml:return Ot.B(this.endX,a.endX)&&Ot.B(this.endY,a.endY)&&Ot.B(this.point1X,a.point1X)&&Ot.B(this.point1Y,a.point1Y)&&Ot.B(this.point2X,a.point2X)&&Ot.B(this.point2Y,a.point2Y);case Fu:return Ot.B(this.endX,a.endX)&&Ot.B(this.endY,a.endY)&&Ot.B(this.point1X,a.point1X)&&Ot.B(this.point1Y,a.point1Y);case sl:return Ot.B(this.startAngle,a.startAngle)&&Ot.B(this.sweepAngle,a.sweepAngle)&&Ot.B(this.centerX,a.centerX)&&Ot.B(this.centerY,a.centerY)&&Ot.B(this.radiusX,a.radiusX)&&Ot.B(this.radiusY,a.radiusY);case su:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ot.B(this.xAxisRotation,a.xAxisRotation)&&Ot.B(this.endX,a.endX)&&Ot.B(this.endY,a.endY)&&Ot.B(this.radiusX,a.radiusX)&&Ot.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=Ot.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),di.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,tt,Ze,ht){return(De*ht<tt*Ze?-1:1)*Math.acos((De*Ze+tt*ht)/(Math.sqrt(De*De+tt*tt)*Math.sqrt(Ze*Ze+ht*ht)))}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=Ot.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),di.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&&_i(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&_i(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&_i(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&_i(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&_i(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&_i(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&_i(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&_i(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&_i(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Wr(a,">= zero",Ca,"radiusX"),this._isFrozen&&_i(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Wr(a,">= zero",Ca,"radiusY"),this._isFrozen&&_i(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&_i(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&&_i(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&&_i(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&&_i(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&&_i(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 st(0,0).freeze(),this.mt=new st(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=Sn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Sn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Sn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Sn(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 Wn().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 Cn,this.Jd=!1,this.u=new Wn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Wn().freeze(),this.hl=new Wn,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&&Br("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){Br("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){Br("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||Br("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 _r(){Po(this),this.H=Pr,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Gl,this.Zr=-1}_r.prototype.toString=function(){return this.name!==""?this.name+" Tool":io(this.constructor)},_r.prototype.updateAdornments=function(){},_r.prototype.canStart=function(){return this.isEnabled},_r.prototype.doStart=function(){},_r.prototype.doActivate=function(){this.isActive=!0},_r.prototype.doDeactivate=function(){this.isActive=!1},_r.prototype.doStop=function(){},_r.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},_r.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},_r.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},_r.prototype.doMouseMove=function(){},_r.prototype.doMouseUp=function(){this.stopTool()},_r.prototype.doMouseWheel=function(){},_r.prototype.canStartMultiTouch=function(){return!0},_r.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,st.allocAt(NaN,NaN)),E=y.So(1,st.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}st.free(x),st.free(E)},_r.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,st.allocAt(NaN,NaN)),E=y.So(1,st.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 st((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}st.free(x),st.free(E)},_r.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},_r.prototype.doKeyUp=function(){},_r.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},_r.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},_r.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()}},_r.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)}}}_r.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}},_r.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},_r.prototype.doCurrentObjectChanged=function(){},_r.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)}}},_r.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},_r.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)},_r.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ut.clearTimeout(this.Zr),this.Zr=-1},_r.prototype.doWaitAfter=function(){},_r.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},_r.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(_r.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Et&&(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}}}),_r.prototype.startTransaction=_r.prototype.Ea,_r.className="Tool";function xs(){_r.call(this),this.name="ToolManager",this.hb=new Wn,this.ob=new Wn,this.Hb=new Wn,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,_r),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 Xn&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Ut.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&&(Ut.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 Xn&&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(){_r.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 st(NaN,NaN),this.Fr=new st,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Cn().freeze(),this.ia=new oe,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var lu;Ft(Ko,_r),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 mi?(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 Be,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 st(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);yn(b),dn(b),Lt(b),b.diagram.ug()}y.clear()}yn(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=_r.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,Ei(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Tt(){var a=Yr;dn(a),li(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ko.prototype.doCancel=function(){dn(this),li(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 It(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")):li(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 mi&&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 mi&&(x.value.point=new st(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function yn(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 Tn(a,y,x){var E=a.diagram,b=a.startPoint,z=st.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),st.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 li(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 mi&&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=Ei(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 Ei(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 Bi(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=st.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 st.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=Bi(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,ae=null;x.toNode===null&&(re=Bi(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 Xi(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 Ki&&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 Ki&&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 mi},!0,function(b){return b instanceof mi},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()?(It(this,!1),pa(a,this.copiedParts),Tn(this,this.copiedParts,!1),Lo(a,this.copiedParts)):this.mayMove()?(dn(this),Tn(this,this.draggedParts,!0)):this.mayDragOut()?(It(this,!1),Tn(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),It(this,!0),pa(a,this.copiedParts),Tn(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()&&(Tn(this,this.draggedParts,!0),ji(this,a.lastInput.documentPoint))),this.Ym=!0,Xi(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 Et||(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&&(Tt(),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&&(Tt(),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 st),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 Ki&&(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;na(this,y.draggedParts.Lf(),!1,a.firstInput),Tn(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"),na(this,y.draggedParts.Lf(),!0,a.lastInput),Tn(this,this.copiedParts,!1);var E=new Cn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Xi(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 na(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=st.alloc(),ae=y.iterator;ae.next();)le=ae.value,le instanceof mi&&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))));st.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 st},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 Wn,pi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),xs.prototype.doCancel=function(){Yr!==null&&Yr.doCancel(),_r.prototype.doCancel.call(this)};function oo(){_r.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new mi,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 Ki,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 Ki,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,_r),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=st.alloc(),x.location=y.ga(Sa,z),st.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 Ki){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 Ki))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Ki)&&(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 Ki){var ae=ee.ga(Sa,st.alloc()),le=x.x-ae.x,ce=x.y-ae.y;st.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 Ki&&(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 Ki))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Ki))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 Cn;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 Cn,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 Cn,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 Ki)))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 Ki&&(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 Ki&&(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 Ki&&(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 mi)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 Be(){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(Be,oo),Be.prototype.updateAdornments=function(a){if(a!==null&&a instanceof mi){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)}},Be.prototype.makeAdornment=function(a,y){var x=new Ga;return x.type=ui.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Be.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},Be.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 mi))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},Be.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}},Be.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()},Be.prototype.doStop=function(){oo.prototype.doStop.call(this),this.handle=null},Be.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 Ki&&(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()}}},Be.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},Be.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(Be.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}}}),Be.className="RelinkingTool",pi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),pi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function it(){_r.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 st,this.Yq=new Wn}Ft(it,_r),it.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:an},it.prototype.om=function(a,y){a.reshapingBehavior=y},it.prototype.updateAdornments=function(a){if(a!==null&&a instanceof mi){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=ui.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);Ot.B(ae.x,le.x)&&Ot.B(ae.y,le.y)&&(le=y.i(x-1)),Ot.B(ae.x,le.x)?(this.om(re,Le),re.cursor="n-resize"):Ot.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),Ot.B(ae.x,le.x)&&Ot.B(ae.y,le.y)&&(ae=y.i(z+1)),Ot.B(ae.x,le.x)?(this.om(re,Le),re.cursor="n-resize"):Ot.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 mi){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=_r.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 st(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new st(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new st((z.x+ee.x)/2,ee.y)),re.cd(x+1,new st((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 st(E.x,(E.y+ee.y)/2)),re.cd(x+2,new st(ee.x,(E.y+ee.y)/2))):(re.cd(x-1,new st((E.x+ee.x)/2,E.y)),re.cd(x+2,new st((E.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=st.alloc(),Ot.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()),st.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===Le?(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)x=y.lastPickIndex-1,E===Le?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===Ce&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),ee=y.i(E+1);Ot.B(z.x,b.x)&&Ot.B(b.y,ee.y)?(Ot.B(z.x,y.i(E-2).x)&&!Ot.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),Ot.B(ee.y,y.i(E+2).y)&&!Ot.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)):Ot.B(z.y,b.y)&&Ot.B(b.x,ee.x)?(Ot.B(z.y,y.i(E-2).y)&&!Ot.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),Ot.B(ee.x,y.i(E+2).x)&&!Ot.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):Ot.B(z.x,b.x)&&Ot.B(b.x,ee.x)?(Ot.B(z.x,y.i(E-2).x)&&!Ot.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),Ot.B(ee.x,y.i(E+2).x)&&!Ot.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):Ot.B(z.y,b.y)&&Ot.B(b.y,ee.y)&&(Ot.B(z.y,y.i(E-2).y)&&!Ot.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),Ot.B(ee.y,y.i(E+2).y)&&!Ot.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(Sa,st.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,st.alloc()),y.L(0,E.x,E.y),st.free(z),st.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,st.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,st.alloc()),y.L(y.pointsCount-1,a.x,a.y),st.free(x),st.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 Le:return new st(y.i(x).x,a.y);case Ce:return new st(a.x,y.i(x).y);default:case an: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 an=new ln(it,"None",0),Ce=new ln(it,"Horizontal",1),Le=new ln(it,"Vertical",2),_e=new ln(it,"All",3);it.className="LinkReshapingTool",it.None=an,it.Horizontal=Ce,it.Vertical=Le,it.All=_e,pi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ye(){_r.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 st,this.Dw=new fn,this.Tn=new st,this.rt=new fn(0,0),this.qt=new fn(1/0,1/0),this.pt=new fn(1,1)}Ft(Ye,_r),Ye.prototype.updateAdornments=function(a){if(!(a===null||a instanceof mi)){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=ui.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 ui)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=_r.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,st.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),st.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,st.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),st.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 Wn;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=st.alloc(),Ot.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))),st.free(Se),a},Ye.prototype.computeReshape=function(){var a=Ln;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",pi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function kt(){_r.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new st,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 st(NaN,NaN),this.u=0,this.F=50}Ft(kt,_r),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=ui.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 st(NaN,NaN),this.isActive=a.isMouseCaptured=!1},kt.prototype.stopTransaction=function(){var a=this.diagram,y=_r.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",pi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function _t(){_r.call(this),this.name="ClickSelecting"}Ft(_t,_r),_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 nn(){_r.call(this),this.name="Action",this.pk=null}Ft(nn,_r),nn.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},nn.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()},nn.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))}},nn.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()},nn.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())},nn.prototype.doStop=function(){this.pk=null},nn.className="ActionTool";function Bn(){_r.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new st(0,0)}Ft(Bn,_r),Bn.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)},Bn.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Bn.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);Sn(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=st.allocAt(a.x,a.y);this.isGridSnapEnabled&&yl(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),st.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(Bn.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}}}),Bn.className="ClickCreatingTool";function vn(){_r.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(vn,_r),vn.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))},vn.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},vn.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},vn.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)}},vn.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()},vn.prototype.computeBoxBounds=function(){var a=this.diagram;return new cn(a.firstInput.documentPoint,a.lastInput.documentPoint)},vn.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 Wn,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(vn.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}}}),vn.className="DragSelectingTool";function Mn(){_r.call(this),this.name="Panning",this.Xt=new st,this.xy=new st,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ut.document,"scroll",a.Kw,!1),a.stopTool()}}Ft(Mn,_r),Mn.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())},Mn.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Ut.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Mn.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Mn.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Mn.prototype.doMouseMove=function(){this.move()},Mn.prototype.doMouseUp=function(){this.move(),this.stopTool()},Mn.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(Mn.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Mn.className="PanningTool",pi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),pi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),pi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),pi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),pi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Xn(){this.F=this.u=this.j=this.o=null}un.Object.defineProperties(Xn.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}}}),Xn.className="HTMLInfo";function Qn(a,y,x){this.text=a,this.hx=y,this.visible=x}Qn.className="ContextMenuButtonInfo";function Wi(){_r.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new st,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Ft(Wi,_r);function yi(a){var y=new Xn;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},to=y,a.tu=function(){a.stopTool()},y=ri("div");var x=ri("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=ri("style");Ut.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",oi,!1),E.addEventListener(y,"selectstart",oi,!1),E.addEventListener(x,"contextmenu",oi,!1)),y.className="goCXforeground",x.className="goCXbackground",Ut.document.body&&(Ut.document.body.appendChild(y),Ut.document.body.appendChild(x)),wo=y,Sr=x,br=!0}function oi(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 Et||(a instanceof Ct?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(_r.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)&&Li(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())}Li(this)};function Li(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof Xn||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Ui(a,!0),a.isActive||a.stopTool())}Wi.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Ui(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 Ct?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 Xn&&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 Xn&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function sr(a){var y=new Wn;return y.add(new Qn("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Qn("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Qn("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Qn("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Qn("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Qn("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Qn("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Qn("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Qn("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Qn("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Qn("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Qn("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Qn("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=sr(this)),wo.innerHTML="",Sr.addEventListener("pointerdown",this.tu,!1);var y=this,x=ri("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=ri("li"),z.className="goCXli";var ee=ri("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&&yi(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",pi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function bi(){_r.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 Xn,this.kt=null,Xr(this,this.j)}Ft(bi,_r);function Xr(a,y){if(zs){var x=ri("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 bi)if(z.state===Jr)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)}}}bi.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},bi.prototype.doStart=function(){ua=this,this.textBlock!==null&&this.doActivate()},bi.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}}}},bi.prototype.doCancel=function(){this.stopTool()},bi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},bi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(po)},bi.prototype.acceptText=function(a){switch(a){case po:this.qa===Jo?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===ca||this.qa===Jr||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===Jr||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=Jr,a.doError(b,z))}}bi.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)},bi.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},bi.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)},bi.prototype.doStop=function(){ua=null},bi.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)))},bi.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},un.Object.defineProperties(bi.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)}}}),bi.prototype.measureTemporaryTextBlock=bi.prototype.Lx;var ao=new ln(bi,"LostFocus",0),po=new ln(bi,"MouseDown",1),Ar=new ln(bi,"Tab",2),To=new ln(bi,"Enter",3),mo=new ln(bi,"SingleClick",0),zo=new ln(bi,"SingleClickSelected",1),Dr=new ln(bi,"DoubleClick",2),Co=new ln(bi,"StateNone",0),ca=new ln(bi,"StateActive",1),Da=new ln(bi,"StateEditing",2),ga=new ln(bi,"StateValidating",3),Jr=new ln(bi,"StateInvalid",4),Jo=new ln(bi,"StateValidated",5),ua=null;bi.className="TextEditingTool",bi.LostFocus=ao,bi.MouseDown=po,bi.Tab=Ar,bi.Enter=To,bi.SingleClick=mo,bi.SingleClickSelected=zo,bi.DoubleClick=Dr,bi.StateNone=Co,bi.StateActive=ca,bi.StateEditing=Da,bi.StateValidating=ga,bi.StateInvalid=Jr,bi.StateValidated=Jo,pi("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 Cn,this.ce=new Wt,this.ce.Yd=this,this.Ei=new Cn,this.pu=new Cn,this.Sr=new Cn,this.pr=new Cn,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===dt&&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(),Jt(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),Ut.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(),En(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 mi&&(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 ea(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 Ct&&ae.diagram!==null||ae instanceof Et){re=!0;break e}}re=!1}re?Kn(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(Vo(b),Ja(b.H),Zr(b)),Ut.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Ut.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(),Jt(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Jt(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),rn(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()),rn(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 st(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 st(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 st(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 st(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 st(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&&Wr(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),dt=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=dt;function Wt(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=Ci,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 Cn,this.Ut=new Cn,this.dw=Oh,a&&Object.assign(this,a)}Wt.prototype.suspend=function(){this.Xk=!0},Wt.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Kn(this,!0),Vo(this.Yd),Ja(this.H),Zr(this.Yd),this.H.redraw()};function Jt(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=Wt.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 Et?a=x:x instanceof Ct&&(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=Gi,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,ea(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 Et?this.H=a:a instanceof Ct&&a.diagram!==null&&(this.H=a.diagram)),a instanceof zr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return rn(this,a,y,x,E,b),this};function rn(a,y,x,E,b,z){var ee=a.vc;if(y instanceof Et&&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]=Fn(E)),le[x]=Fn(b)}else ae={},le={},ae[x]=Fn(E),le[x]=Fn(b),re=ae.position,y instanceof Ct&&re instanceof st&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new Pi(ae,le,z),ee.add(y,re);ee=ae[x],ee instanceof st&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof zr?re.Ku.location=Fn(y.location):z&&(re.Ku[x]=Fn(E))}function Fn(a){return a instanceof st||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 Kn(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),En(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 En(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Ct&&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),Jt(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 st(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 Ki&&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 Ki&&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(Wt.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Wr(a,">= 1",Wt,"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:$t("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}}}),Wt.prototype.getTemporaryState=Wt.prototype.Ez,Wt.prototype.stop=Wt.prototype.stop,Wt.prototype.add=Wt.prototype.add,Wt.prototype.addTemporaryPart=Wt.prototype.Iy;function Ci(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Gi(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Wt.className="Animation",Wt.EaseLinear=function(a,y,x,E){return x*a/E+y},Wt.EaseInOutQuad=Ci,Wt.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Wt.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Wt.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Wt.EaseOutExpo=Gi;function Pi(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Pi.className="AnimationState";function Ai(a,y,x){this.xd=null,this.rf=a,this.so=x||ki,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=wn))}Ai.prototype.copy=function(){var a=new Ai(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 Ni(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(Ai.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 ki=new ln(Ai,"Default",1),wn=new ln(Ai,"Immediate",2),Gn=new ln(Ai,"Bundled",3);Ai.className="AnimationTrigger",Ai.Default=ki,Ai.Immediate=wn,Ai.Bundled=Gn;function $n(a){Po(this),this.H=null,this.Pa=new Wn,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=$n.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 Ki?E++:ae instanceof mi?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 Ki?re+=" "+va(E):x instanceof mi&&(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=st.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((E!==!0||Pf(re)!==!1)&&re.isVisible()&&(b.assign(a),xi(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return st.free(b),re}return st.free(b),null},Ee.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof Wn||E instanceof Cn||(E=new Cn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=st.alloc(),ee=this.Pa.s,re=ee.length;re--;){var ae=ee[re];if((b!==!0||Pf(ae)!==!1)&&ae.isVisible()){z.assign(a),xi(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 st.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 Wn||b instanceof Cn||(b=new Cn),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 Wn||b instanceof Cn)&&(z=b),b=!0),z instanceof Wn||z instanceof Cn||(z=new Cn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=st.alloc(),ae=st.alloc(),le=this.Pa.s,ce=le.length;ce--;){var fe=le[ce];if((ee!==!0||Pf(fe)!==!1)&&fe.isVisible()){re.assign(a),xi(re,fe.oe),ae.h(a.x+y,a.y),xi(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 st.free(re),st.free(ae),z},Ee.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=ur();for(var b=ur(),z=0;z<E;z++){var ee=x[z];if(ee.vw=z,ee instanceof mi){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 fi(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=fi(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=fi(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 mi&&(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=ar(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 ar(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($n.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===""&&$t("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&$t("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)&&Wr(a,"0 <= value <= 1",$n,"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))}}}),$n.prototype.findObjectsNear=$n.prototype.og,$n.prototype.findObjectsIn=$n.prototype.Cf,$n.prototype.findObjectsAt=$n.prototype.ji,$n.prototype.findObjectAt=$n.prototype.ic,$n.className="Layer";function Et(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(Ut.document,"DOMContentLoaded",E,!1),x.setRTL()};Ut.document.body!==null?this.setRTL():x.addEventListener(Ut.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,Or(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"||Ut.Element&&a instanceof Element?wi(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var lr,Pr;function Or(a){a.Yd=new Ea,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Wn,a.pj=new wr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new st(NaN,NaN).freeze(),a.du=new st(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new st(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Fo,a.zu=new st(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 Cn,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 Cn,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 Wn,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 Cn().freeze(),a.Nt=999999999,a.nw=new Cn().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 Cn,a.ow=new Cn,a.Xh=null,a.aw=new fn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new st,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 Ki,x=new ks;x.bind(new Dl("text","",va)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Ki,x=new ks,x.stroke="brown",x.bind(new Dl("text","",va)),y.add(x),a.Lg.add("Comment",y),y=new Ki,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=ui.Vertical,x=new ks,x.font="bold 12pt sans-serif",x.bind(new Dl("text","",va)),y.add(x),x=new ui(ui.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 mi,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 mi,x=new Zo,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ga,y.type=ui.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=ui.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=Oi,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 st,a.zy=500,a.wp=new st,a.wq=!1}Et.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 Cn().freeze(),a.nw=new Cn().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}Et.prototype.reset=function(){this.clear(),this.vb=!0,Or(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()},Et.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ut.document.body);var y=ri("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},Et.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ut.document.body);var y=0;if(zs){var x=Yd;y=lr,x===null&&(x=Yd=ri("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=lr=ri("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},Et.prototype.qb=function(a){a.classType===Et&&(this.autoScale=a)},Et.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 wi(a,y){if(zs){if(y!=null||$t("Diagram setup requires an argument DIV."),a.Ka!==null&&$t("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ut.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:$t("No DIV or DIV id supplied: "+y),a.Ka===null&&$t("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&$t("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ut.ResizeObserver){var x=xn(function(){a.$b()},250);a.ol=new Ut.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ut.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=Ut.go;var b=new dh(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Ut.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=ri("div");var z=ri("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=xn(function(){a.Yh=null,a.N()},300),a.Ov=xn(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=Ut.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=Ut.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 Et&&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)}}Et.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Et.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(Ut,"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))}Et.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ut.devicePixelRatio||1},Et.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Et.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Et.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Et.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Et.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Et.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Et.prototype.doFocus=function(){this.focus()},Et.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ut.scrollX||Ut.pageXOffset,y=Ut.scrollY||Ut.pageYOffset;this.ta.focus(),Ut.scrollTo(a,y)}},Et.prototype.Oy=function(){this.H.R("GainedFocus")},Et.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 $n;y.name="Background",a.Al(y),y=new $n,y.name="",a.Al(y),y=new $n,y.name="Foreground",a.Al(y),y=new $n,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new $n,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new $n,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 ui(ui.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)}Et.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 tt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":tt=tt+a.scrollWidth-a.clientWidth;break;case"reverse":tt=a.scrollWidth-tt-a.clientWidth}var Ze=tt;Se<ae||we<le?(tt=st.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ze&&(tt.x=Ze/b+ee,this.ju=Ze),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(tt.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=tt,st.free(tt),this.Ee=this.qr=!1):(tt=st.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=tt.h(Ze+ee,this.position.y)),ce>Ae&&(this.position=tt.h(-(y.scrollWidth-this.Aa)+Ze-this.Aa/b+ce,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=tt.h(this.position.x,a.scrollTop+re)),z>De&&(this.position=tt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),st.free(tt),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"))}},Et.prototype.computeBounds=function(a){return a===void 0&&(a=new cn),Ma(this),Hr(this,a)};function Hr(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}Et.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 mi||(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 mi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new cn(NaN,NaN,0,0):x};function Vr(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=st.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=cn.allocAt(0,0,E.width,E.height);var b=st.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,cn.free(E),st.free(b),st.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,Ot.B(z.x,x)&&Ot.B(z.y,E)&&Ot.B(z.width,b)&&Ot.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}Et.prototype.zoomToFit=function(){var a=this.sj;this.sj=Oh,this.scale=Aa(this,Vu),a!==Oh&&(Vr(this,!1),Ya(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ee=Et.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 st(a.x,a.y)}},Ee.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new st(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 Ct){this.eq=a;var y=st.alloc();this.fq=this.op(a.ga(Rs,y)),st.free(y)}else this.eq=null,this.fq=Oi};function Ya(a,y,x,E,b,z){var ee=st.allocAt(a.pa.x,a.pa.y),re=ee.x,ae=ee.y;if(a.eq!==null){var le=st.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,st.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),st.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 Wn||b instanceof Cn||(b=new Cn),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 Wn||E instanceof Cn||(E=new Cn),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 Wn||b instanceof Cn||(b=new Cn),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 Cn;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 Wn||b instanceof Cn||(b=new Cn),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 Wn||b instanceof Cn)&&(z=b),b=!0),z instanceof Wn||z instanceof Cn||(z=new Cn),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 Wn||b instanceof Cn)&&(z=b),b=!0),z instanceof Wn||z instanceof Cn||(z=new Cn),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}Et.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)}Et.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)},Et.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)},Et.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)},Et.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)},Et.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new st(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?xi(new st(y,a),this.Ab):new st(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=st.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),st.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))}}Et.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function gs(a){a.ld||Ma(a),a.Va()}Et.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ee=Et.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 st(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;Ut.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&&Vr(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)),Vr(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)}Vr(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 Cn,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 mi&&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=ur(),E=ur(),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 mi?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&&$t("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&&$t("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 tt=Fo.alloc();tt.reset(),tt.translate(x.left,x.top),tt.scale(b),z.x===0&&z.y===0||tt.translate(-z.x,-z.y),y.setTransform(tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),y.yc(),y instanceof Tc&&$y(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),Fo.free(tt),Xs(a,y),y.globalAlpha=a.pb;var Ze=a.Qj("Grid");if(ee){var ht=new Cn,gt=ee.iterator;for(gt.reset();gt.next();){var xt=gt.value;xt instanceof zr&&(le||xt.layer!==Ze)&&(xt.Gj(),ht.add(xt))}for(le=0;le<Se;le++)rr(fe[le],y,a,ht,ae);ht.each(function(qt){return qt.Gj()})}else for(ht=0;ht<Se;ht++){var Dt=fe[ht];Dt===Ze?le&&Dt.gc(y,a,!0):Dt.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 ui,E=a instanceof Et,b;for(b in y){b===""&&$t("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])),Sn(z)?ee=b.substr(re+1):$t("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 $t('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof Ct&&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")},Et.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=ur(),a=ur(),we=Math.abs(z),Se=Math.abs(y);var Ae=ce===0?0:b-we;ce=st.allocAt(Ae,0),we=st.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),xi(ce,De),xi(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))),xi(ce,De),xi(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))),xi(ce,De),xi(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)))),st.free(ce),st.free(we),Fa(this,!1,!0),this.Ka===null&&$t("No div specified"),this.ta===null&&$t("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=fi(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 tt=0;tt<De;tt++){var Ze=we[tt],ht=Qf(Ze,Ze.actualBounds);e:{for(var gt=2/ce,xt=4/ce,Dt=0;Dt<Ae;Dt++){var qt=ae[Dt];if(qt.width!==0&&qt.height!==0&&ht.Vu(qt.x-gt,qt.y-gt,qt.width+xt,qt.height+xt)){ht=!0;break e}}ht=!1}ht&&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 tt=a.documentBounds,Ze=0,ht=0,gt=0,xt=0,Dt=ce.width,qt=ce.height,zi=a.rj;a.contentAlignment.sb()?(tt.width>Dt&&(Ze=zi.left,ht=zi.right),tt.height>qt&&(gt=zi.top,xt=zi.bottom)):(Ze=zi.left,ht=zi.right,gt=zi.top,xt=zi.bottom);var cr=tt.width+Ze+ht,tr=tt.height+gt+xt;zi=a.scale;var gi=cr>ae/zi,_n=tr>le/zi;if(!(z||a.gf||a.Be||gi||_n))return!0;Ze=tt.x-Ze,ae=ce.x,ht=tt.right+ht,le=ce.right+ee,gt=tt.y-gt;var Bo=ce.y;tt=tt.bottom+xt,ce=ce.bottom+re;var xo="1px";if(xt="1px",a.scrollMode===Oh&&(gi||_n)&&(gi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(gi=1,Ze+1<ae&&(gi=Math.max((ae-Ze)*zi+a.Aa,gi)),ht>le+1&&(gi=Math.max((ht-le)*zi+a.Aa,gi)),Dt+ee+1<cr&&(gi=Math.max((cr-Dt)*zi+a.Aa,gi)),xo=gi.toString()+"px"),_n&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(gi=1,gt+1<Bo&&(gi=Math.max((Bo-gt)*zi+a.ya,gi)),tt>ce+1&&(gi=Math.max((tt-ce)*zi+a.ya,gi)),qt+re+1<tr&&(gi=Math.max((tr-qt)*zi+a.ya,gi)),xt=gi.toString()+"px")),gi=xo!=="1px",_n=xt!=="1px",gi&&_n||!gi&&!_n||(_n&&(le-=a.Db),gi&&(ce-=a.Db),cr<Dt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ze+1<ae&&(ee=Math.max((ae-Ze)*zi+a.Aa,ee)),ht>le+1&&(ee=Math.max((ht-le)*zi+a.Aa,ee)),Dt+1<cr&&(ee=Math.max((cr-Dt)*zi+a.Aa,ee)),xo=ee.toString()+"px"),gi=xo!=="1px",ee=a.ya,gi!==a.Be&&(ee=gi?a.ya-a.Db:a.ya+a.Db),tr<qt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,gt+1<Bo&&(re=Math.max((Bo-gt)*zi+ee,re)),tt>ce+1&&(re=Math.max((tt-ce)*zi+ee,re)),qt+1<tr&&(re=Math.max((tr-qt)*zi+ee,re)),xt=re.toString()+"px"),_n=xt!=="1px"),a.qr&&gi===a.Be&&_n===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(gi!==a.Be&&(xo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=gi,De.style.width=xo,_n!==a.gf&&(xt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=st.alloc(),_n?(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)),st.free(re))),z&&Nl(a),a.gf=_n,De.style.height=xt,a.gu=!0,z&&(a.pn=!0),y=Ae.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Dt+1<cr?y=(a.position.x-Ze)*zi:Ze+1<ae?y=Ae.scrollWidth-Ae.clientWidth:ht>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&&(qt+1<tr?Ae.scrollTop=(a.position.y-gt)*zi:gt+1<Bo?Ae.scrollTop=Ae.scrollHeight-Ae.clientHeight:tt>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=Et.prototype,Ee.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&$t("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&&$t('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 Cn,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)},Et.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 Ki){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 mi)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=st.alloc(),ee=st.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=ur(),ae=ur(),le=y.iterator,ce=st.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 st),Se.shifted.assign(ce.re(we)))}else le.key instanceof mi&&ae.push(le.sa)}for(st.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 st),fe.node.location=z.add(fe.Su.shifted);for(b=st.alloc(),le=st.alloc(),fe=ae.length,Se=0;Se<fe;Se++){var Ae=ae[Se];if(we=Ae.key,we instanceof mi)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=st.allocAt(0,0),(ce=we.i(0))&&ce.w()&&Ae.assign(ce);var tt=ce=st.alloc().assign(Ae).add(ee);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(tt=st.alloc(),yl(a,we,ce,tt,E)),ce.assign(we.dragComputation(we,ce,tt)).re(Ae),y.add(we,a.Pd(E,we,ce)),nf(we,ce.x-De.x,ce.y-De.y),st.free(Ae),st.free(ce),tt!==ce&&st.free(tt)}else ce!==null&&(b.assign(ce.location),tt=y.I(ce),tt!==null&&b.re(tt.point)),De!==null&&(le.assign(De.location),tt=y.I(De),tt!==null&&le.re(tt.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))}st.free(z),st.free(ee),st.free(b),st.free(le),Nr(re),Nr(ae),x||(Ma(a),Lo(a,y))}}Et.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new st),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=st.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&&st.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=st.allocAt(0,0),z.yi(0,0,a,y,b),Ot.No(x.x,x.y,re+z.x,ee+z.y,a,y,E),st.free(z)}}function pa(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof mi&&(y.suspendsRouting=!0)}function Lo(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof mi&&(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=Et.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 st(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&&$t("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&$t("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&$t("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&$t("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&&$t("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&&$t("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 Wn),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 Wn),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)},Et.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 Ct){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 ui)if(typeof re=="number"&&ae instanceof Ct){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 $n){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 Et?typeof re=="number"&&ae instanceof $n&&(y?this.Wa.mb(re):(ae.Xe(this),this.Wa.Gb(re,ae))):$t("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 ui)typeof Se=="number"&&we instanceof Ct?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 $n){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 Et?typeof Se=="number"&&we instanceof $n&&(y?(we.Xe(this),this.Wa.Gb(Se,we)):this.Wa.mb(Se)):$t("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==vu&&$t("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Et.prototype.Ea=function(a){return this.undoManager.Ea(a)},Et.prototype.eb=function(a){return this.undoManager.eb(a)},Et.prototype.Kf=function(){return this.undoManager.Kf()},Et.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}},Et.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Et.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=st.allocAt(a.pa.x+re/y-re/x,a.pa.y+ae/y-ae/x),a.position=z,st.free(z),a.Ca=x,Nl(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Vr(a,!1),E.zb&&(_o(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Et.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/Ot.vx(z,ce):b=b*ce/Ot.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=st.alloc(),Ot.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),fn.free(E),x.part.location=y,st.free(y)}}Et.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)}},Et.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))},Et.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||$t("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||$t("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Et.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=Et.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 Cn().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||$t("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=st.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)),st.free(z);return}$t("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):$t("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),st.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),xi(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}Et.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 Cn&&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 Cn&&x.Bg.remove(a),Vg(E));break}}}}}Et.prototype.Wd=function(){this.partManager.Wd()},Et.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Et.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Et.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Et.prototype.Vb=function(a){return this.partManager.Vb(a)},Et.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ee=Et.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:ii(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:ii(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),Vr(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 Cn,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 Wn,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 Wn;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;$t("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)},Et.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Hr(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 Ki&&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 Ki&&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)}Et.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))}Et.prototype.ug=function(){this.vk!==-1&&(Ut.clearTimeout(this.vk),this.vk=-1)},Et.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=st.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 st(y.x+z.x/b,y.y+z.y/b)),cn.free(E),st.free(z),y},Ee=Et.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):Ut.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 Ut.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"&&$t('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"&&$t("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||$t("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 tt=a.Pp,Ze=a.documentBounds.copy();if(Ze.Fv(a.yb),Ae)for(var ht=a.Wa.s,gt=ht.length,xt=0;xt<gt;xt++){var Dt=ht[xt];if(Dt.visible&&Dt.isTemporary){Dt=Dt.Pa.s;for(var qt=Dt.length,zi=0;zi<qt;zi++){var cr=Dt[zi];cr.isInDocumentBounds&&cr.isVisible()&&(cr=cr.actualBounds,cr.w()&&Ze.ed(cr))}}}if(ht=new st(Ze.x,Ze.y),ae!==null){for(gt=new cn(0,0,0,0),xt=!0,Dt=ae.iterator,Dt.reset();Dt.next();)qt=Dt.value,qt instanceof zr&&(zi=qt.layer,zi!==null&&!zi.visible||zi!==null&&!Ae&&zi.isTemporary||!qt.isVisible()||(qt=qt.actualBounds,qt.w()&&(xt?(xt=!1,gt.assign(qt)):gt.ed(qt))));Ze.width=gt.width,Ze.height=gt.height,ht.x=gt.x,ht.y=gt.y}return re!==null&&re.w()&&(ht=re,z||(z=tt)),gt=re=0,le!==null&&(re=le.left+le.right,gt=le.top+le.bottom),xt=Dt=0,b!==null&&(Dt=b.width,xt=b.height,isFinite(Dt)&&(Dt=Math.max(0,Dt-re)),isFinite(xt)&&(xt=Math.max(0,xt-gt))),b!==null&&z!==null?(z==="NaN"&&(z=tt),b.w()?(b=Dt,Ze=xt):isNaN(xt)?(b=Dt,Ze=Ze.height*z):(b=Ze.width*z,Ze=xt)):b!==null?b.w()?(z=Math.min(Dt/Ze.width,xt/Ze.height),b=Dt,Ze=xt):isNaN(xt)?(z=Dt/Ze.width,b=Dt,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-gt)/Ze.height),z>tt?(z=tt,b=Ze.width,Ze=Ze.height):(b=ee.width,Ze=ee.height)):(b=Ze.width*z,Ze=Ze.height*z):(z=tt,b=Ze.width,Ze=Ze.height),le!==null?(b+=re,Ze+=gt):le=new Mo(0),ee!==null&&(tt=ee.width,ee=ee.height,isNaN(tt)&&(tt=2e3),isNaN(ee)&&(ee=2e3),isFinite(tt)&&(b=Math.min(b,tt)),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,ht,ae,ce,Ae,y),E.context):(a.Xm=!1,Ks(a,De,le,new fn(Math.ceil(b),Math.ceil(Ze)),z,ht,ae,ce,Ae,y),a.Xm=!0,fe.context)}un.Object.defineProperties(Et.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,Ut.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,Ut.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(Ut,"resize",this.Ov,!1),this.removeEventListener(Ut,"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),wi(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)&&Wr(a,"0 <= value <= 1",Et,"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),Vr(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),Vr(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),Vr(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),Vr(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Wr(a,">= 0",Et,"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&&Wr(a,">= 0",Et,"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 Wr(a,">= 0",Et,"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&&$t("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(Ut,"pointermove",this.dk,!0),this.addEventListener(Ut,"pointerdown",this.ui,!0),this.addEventListener(Ut,"pointerup",this.fk,!0),this.addEventListener(Ut,"pointerout",this.ek,!0),this.addEventListener(Ut,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ut,"wheel",this.$j,!0),this.addEventListener(Ut,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ut,"pointermove",this.dk,!0),this.removeEventListener(Ut,"pointerdown",this.ui,!0),this.removeEventListener(Ut,"pointerup",this.fk,!0),this.removeEventListener(Ut,"pointerout",this.ek,!0),this.removeEventListener(Ut,"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(Ut,"wheel",this.$j,!0),this.removeEventListener(Ut,"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=st.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)}st.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!==ui.Grid&&$t("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||$t("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&&Vr(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,Vr(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&&Vr(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()||$t("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()||$t("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)):Wr(a,"> 0",Et,"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)):Wr(a,"> 0",Et,"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),Vr(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&&$t("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&&$t("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(Et,{licenseKey:{get:function(){return Sf.jc()},set:function(a){Sf.add(a.replace(/\s/g,""))}},version:{get:function(){return hd}}}),Et.prototype.makeImageData=Et.prototype.Jx,Et.prototype.makeImage=Et.prototype.Wz,Et.prototype.cacheGroupExternalLinks=Et.prototype.Fu,Et.prototype.addRenderer=Et.prototype.bs,Et.prototype.makeSVG=Et.prototype.av,Et.prototype.makeSvg=Et.prototype.Cs,Et.prototype.stopAutoScroll=Et.prototype.ug,Et.prototype.doAutoScroll=Et.prototype.gs,Et.prototype.isUnoccupied=Et.prototype.Yj,Et.prototype.raiseDiagramEvent=Et.prototype.R,Et.prototype.removeDiagramListener=Et.prototype.am,Et.prototype.addDiagramListener=Et.prototype.Bj,Et.prototype.findTreeRoots=Et.prototype.yz,Et.prototype.layoutDiagram=Et.prototype.Uz,Et.prototype.findTopLevelGroups=Et.prototype.qz,Et.prototype.findTopLevelNodesAndLinks=Et.prototype.rz,Et.prototype.ensureBounds=Et.prototype.Va,Et.prototype.findLinksByExample=Et.prototype.ls,Et.prototype.findNodesByExample=Et.prototype.ms,Et.prototype.findLinkForData=Et.prototype.Kc,Et.prototype.findNodeForData=Et.prototype.ii,Et.prototype.findPartForData=Et.prototype.Lc,Et.prototype.findLinkForKey=Et.prototype.findLinkForKey,Et.prototype.findNodeForKey=Et.prototype.Vb,Et.prototype.findPartForKey=Et.prototype.findPartForKey,Et.prototype.rebuildParts=Et.prototype.Wd,Et.prototype.transformViewToDoc=Et.prototype.Ps,Et.prototype.transformRectDocToView=Et.prototype.zA,Et.prototype.transformDocToView=Et.prototype.op,Et.prototype.centerRect=Et.prototype.es,Et.prototype.scrollToRect=Et.prototype.tv,Et.prototype.scroll=Et.prototype.scroll,Et.prototype.highlightCollection=Et.prototype.Jz,Et.prototype.highlight=Et.prototype.Iz,Et.prototype.selectCollection=Et.prototype.rA,Et.prototype.select=Et.prototype.select,Et.prototype.updateAllRelationshipsFromData=Et.prototype.rp,Et.prototype.updateAllTargetBindings=Et.prototype.updateAllTargetBindings,Et.prototype.commit=Et.prototype.commit,Et.prototype.rollbackTransaction=Et.prototype.Kf,Et.prototype.commitTransaction=Et.prototype.eb,Et.prototype.startTransaction=Et.prototype.Ea,Et.prototype.raiseChanged=Et.prototype.g,Et.prototype.raiseChangedEvent=Et.prototype.cb,Et.prototype.removeChangedListener=Et.prototype.ik,Et.prototype.addChangedListener=Et.prototype.Pe,Et.prototype.removeModelChangedListener=Et.prototype.mA,Et.prototype.addModelChangedListener=Et.prototype.Yw,Et.prototype.findLayer=Et.prototype.Qj,Et.prototype.removeLayer=Et.prototype.kA,Et.prototype.addLayerAfter=Et.prototype.Cy,Et.prototype.addLayerBefore=Et.prototype.Ww,Et.prototype.addLayer=Et.prototype.Al,Et.prototype.moveParts=Et.prototype.moveParts,Et.prototype.copyParts=Et.prototype.Kj,Et.prototype.removeParts=Et.prototype.Is,Et.prototype.remove=Et.prototype.remove,Et.prototype.add=Et.prototype.add,Et.prototype.clearDelayedGeometries=Et.prototype.bx,Et.prototype.setProperties=Et.prototype.nm,Et.prototype.attach=Et.prototype.Du,Et.prototype.set=Et.prototype.set,Et.prototype.resetInputOptions=Et.prototype.Sx,Et.prototype.setInputOption=Et.prototype.sA,Et.prototype.getInputOption=Et.prototype.Ql,Et.prototype.resetRenderingHints=Et.prototype.Tx,Et.prototype.setRenderingHint=Et.prototype.Xx,Et.prototype.getRenderingHint=Et.prototype.Gf,Et.prototype.maybeUpdate=Et.prototype.bd,Et.prototype.requestUpdate=Et.prototype.$b,Et.prototype.delayInitialization=Et.prototype.Xy,Et.prototype.isUpdateRequested=Et.prototype.Pz,Et.prototype.invalidateDocumentBounds=Et.prototype.Ya,Et.prototype.findObjectsNear=Et.prototype.og,Et.prototype.findPartsNear=Et.prototype.mz,Et.prototype.findObjectsIn=Et.prototype.Cf,Et.prototype.findPartsIn=Et.prototype.ux,Et.prototype.findObjectsAt=Et.prototype.ji,Et.prototype.findPartsAt=Et.prototype.lz,Et.prototype.findObjectAt=Et.prototype.ic,Et.prototype.findPartAt=Et.prototype.Ol,Et.prototype.focusObject=Et.prototype.zz,Et.prototype.alignDocument=Et.prototype.Jy,Et.prototype.zoomToRect=Et.prototype.BA,Et.prototype.zoomToFit=Et.prototype.zoomToFit,Et.prototype.diagramScroll=Et.prototype.kx,Et.prototype.focus=Et.prototype.focus;var ch=new wr,Yd=null,zs=Ut.document!==void 0,ld=null,Bh="",Au=new ln(Et,"None",0),Vu=new ln(Et,"Uniform",1),Qh=new ln(Et,"UniformToFill",2),qh=new ln(Et,"CycleAll",10),Ph=new ln(Et,"CycleNotDirected",11),ud=new ln(Et,"CycleNotDirectedFast",12),cd=new ln(Et,"CycleNotUndirected",13),Fd=new ln(Et,"CycleDestinationTree",14),Zd=new ln(Et,"CycleSourceTree",15),Oh=new ln(Et,"DocumentScroll",1),$h=new ln(Et,"InfiniteScroll",2),Ih=new ln(Et,"TreeParentCollapsed",21),Al=new ln(Et,"AllParentsCollapsed",22),Xd=new ln(Et,"AnyParentsCollapsed",23),Sf=new Wn,hd="2.3.10",dd="image",Nd=null,Vf=!1;function yu(){if(zs){var a=Ut.document.createElement("canvas"),y=a.getContext("2d"),x=lo("7ca11abfd022028846");y[x]=lo("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",zn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Fo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ot.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}}Et.className="Diagram",Et.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ut.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Et?y.H:null},Et.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},Et.useDOM=function(a){zs=a?Ut.document!==void 0:!1},Et.isUsingDOM=function(){return zs},Et.None=Au,Et.Uniform=Vu,Et.UniformToFill=Qh,Et.CycleAll=qh,Et.CycleNotDirected=Ph,Et.CycleNotDirectedFast=ud,Et.CycleNotUndirected=cd,Et.CycleDestinationTree=Fd,Et.CycleSourceTree=Zd,Et.DocumentScroll=Oh,Et.InfiniteScroll=$h,Et.TreeParentCollapsed=Ih,Et.AllParentsCollapsed=Al,Et.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=Ut[lo("76a715b2f73f148a")][lo("72ba13b5")]||"";if(a.Rc=!0,zs){var E=Et[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(zn[lo("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Ut[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=Ut[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=Ut.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,Ut.document[lo("78a712aa")]){Ut.document[lo("78a712aa")][lo("7bb806b6ed32388c4a875b")](ee),ae=Ut.getComputedStyle(ee).getPropertyValue(lo("78a704b7e62456904c9b12701b6532a8"));var le=Ut.getComputedStyle(ee).getPropertyValue(lo("75b817b0ea2202"));if(Ut.document[lo("78a712aa")][lo("68ad1bbcf533388c4a875b")](ee),ae){if(ee=Ut[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 st:a,this.o=new st}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 st(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"||Ut.Element&&a instanceof Element)var x=Et.call(this,a)||this;else x=Et.call(this)||this,y=a;return de(x),y&&x.nm(y),x}Ft(he,Et);function de(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Bu,a.layout=new xu}he.prototype.reset=function(){Et.prototype.reset.call(this),de(this)},he.className="Palette";function pe(a,y){if(typeof a=="string"||Ut.Element&&a instanceof Element)var x=Et.call(this,a)||this;else x=Et.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 rt,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ee=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new st(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,Et),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}}}Et.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&$t("No div specified"),this.ta===null&&$t("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=fi(re,b),le.gc(b,ae),b.globalAlpha=re);else{for(var ce=fi(re,b),fe=ae.scale,Se=cn.alloc(),we=re.Pa.s,Ae=we.length,De=0;De<Ae;De++){var tt=we[De];(E||tt!==le)&&re.Oj(b,tt,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 st(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&&$t("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 rt(){Ko.call(this),this.j=null}Ft(rt,Ko),rt.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 st(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new st(a.x-this.j.x,a.y-this.j.y)),!0)},rt.prototype.doActivate=function(){this.j=null,Ko.prototype.doActivate.call(this)},rt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},rt.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 st(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new st(a.x-this.j.x,a.y-this.j.y)}}},rt.className="OverviewDraggingTool";function $e(){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}$e.prototype.toString=function(){return"CommandHandler"},$e.prototype.Xe=function(a){this.H=a},$e.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()},$e.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},$e.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof xs&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},$e.prototype.canStopCommand=function(){return!0},$e.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=""}},$e.prototype.canSelectAll=function(){return this.diagram.allowSelect},$e.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 Cn,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=""}},$e.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},$e.prototype.copySelection=function(){var a=this.diagram,y=new Cn;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)},$e.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},$e.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},$e.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},$e.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 Wn,x.addAll(z),ld=x,Bh=y.model.dataFormat}}y.R("ClipboardChanged",x)},$e.prototype.pasteFromClipboard=function(){var a=new Cn,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},$e.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 st(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=""}},$e.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)},$e.prototype.undo=function(){this.diagram.undoManager.undo()},$e.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},$e.prototype.redo=function(){this.diagram.undoManager.redo()},$e.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},$e.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))},$e.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)},$e.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))},$e.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)},$e.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},$e.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},$e.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)},$e.prototype.canZoomToFit=function(){return this.diagram.allowZoom},$e.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=Pt(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 Ki&&ae.isTreeExpanded&&(!(ae instanceof Io)||ae.isSubGraphExpanded);)ae=b.pop();0<b.length?(ae instanceof zr&&y.tv(ae.actualBounds),ae instanceof Ki&&!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 Pt(a,y,x){if(y.isVisible())return x;if(y instanceof Ga)Pt(a,y.adornedPart,x);else if(y instanceof mi){var E=y.fromNode;E!==null&&Pt(a,E,x),y=y.toNode,y!==null&&Pt(a,y,x)}else y instanceof Ki&&(E=y.labeledLink,E!==null&&Pt(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),Pt(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Pt(a,y,x));return x}$e.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)},$e.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 Wn;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 Ki&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},$e.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ki&&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 Ki&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},$e.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 Wn;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 Ki&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},$e.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ki)||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 Ki&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},$e.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 Wn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new Wn,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);Sn(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=""}}}},$e.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 tn(a){var y=ur();for(a=a.iterator;a.next();){var x=a.value;x instanceof mi||y.push(x)}a=new Cn,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}$e.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof mi)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},$e.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 Wn;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 Wn;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 mi)){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=""}},$e.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},$e.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=tn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},$e.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 Wn;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")}},$e.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},$e.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 Wn;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")}},$e.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},$e.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)}},$e.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},$e.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 Ct?b=a.ga(Sa):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new st(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,Ui(x,!1,a)}},$e.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)},$e.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 mi&&(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($e.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||$t("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}}}),$e.className="CommandHandler",Ur=function(){return new $e};function Ct(){Po(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new st(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 bn,Ln,er,Cr,qr,jo,La,ta,za,ps;Ct.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())},Ct.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)},Ct.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Ct.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},Ct.prototype.copy=function(){return this.clone()},Ee=Ct.prototype,Ee.qb=function(a){a.classType===mi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:$t("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Ct&&(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===wn?ee=!0:a.startCondition===Gn&&(ee=!1),ee?(z=new Wt,Ni(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 ui&&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 ui&&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=st.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return st.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),st.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)),st.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=st.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)))),st.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=st.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)))),st.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=st.allocAt(0,0),b=st.allocAt(0,x.height),z=st.allocAt(x.width,x.height),ee=st.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=st.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)))),st.free(ae),cn.free(x),!re&&(Ot.us(a,E,b)||Ot.us(a,b,z)||Ot.us(a,z,ee)||Ot.us(a,ee,E))&&(re=!0)}return st.free(E),st.free(b),st.free(z),st.free(ee),re},Ee.ga=function(a,y){if(y===void 0&&(y=new st),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=st.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),st.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 st),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,Ot.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=Ot.Ff(0,0,E.width,E.height,ee,a,y,x,b),b.transform(z),x)},Ct.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 ui;switch(yc(this,!0)){case Ln:ee=b=0,re&&(y=a=1/0);break;case bn: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 qr: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()||$t("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Rl(this,!1)}},Ct.prototype.Wl=function(){},Ct.prototype.Dd=function(){return!1},Ct.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()||$t("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),gd(this,!1),cn.free(z)},Ee=Ct.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=Ln),y){case Ln:(x>E||z>b)&&(Rl(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case bn:Rl(a,!0),a.measure(E,b,0,0);break;case Cr:Rl(a,!0),a.measure(E,z,0,0);break;case qr: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 Ki&&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 ui&&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,tt=Se.dx,Ze=Se.m12,ht=Se.m22,gt=Se.dy,xt,Dt=xt=0;Se=xt*Ae+Dt*De+tt;var qt=xt*Ze+Dt*ht+gt;xt=we.width+fe,Dt=0;var zi=xt*Ae+Dt*De+tt;xt=xt*Ze+Dt*ht+gt,Dt=Math.min(Se,zi);var cr=Math.min(qt,xt),tr=Math.max(Se+0,zi)-Dt,gi=Math.max(qt+0,xt)-cr;Se=Dt,qt=cr,xt=we.width+fe,Dt=we.height+fe,zi=xt*Ae+Dt*De+tt,xt=xt*Ze+Dt*ht+gt,Dt=Math.min(Se,zi),cr=Math.min(qt,xt),tr=Math.max(Se+tr,zi)-Dt,gi=Math.max(qt+gi,xt)-cr,Se=Dt,qt=cr,xt=0,Dt=we.height+fe,zi=xt*Ae+Dt*De+tt,xt=xt*Ze+Dt*ht+gt,Dt=Math.min(Se,zi),cr=Math.min(qt,xt),tr=Math.max(Se+tr,zi)-Dt,gi=Math.max(qt+gi,xt)-cr,Se=Dt,qt=cr,fe=y.viewportBounds,we=fe.x,Ae=fe.y,Se=!(Se>fe.width+we||we>tr+Se||qt>fe.height+Ae||Ae>gi+qt)}if(Se){if(Se=(this.l&256)!==0,a.clipInsteadOfFill&&(Se=!1),this instanceof ks&&(a.font=this.font),Se){if(qt=re.se()?re.naturalBounds:re.actualBounds,tr=Math.max(ee.x,qt.x),gi=Math.max(ee.y,qt.y),fe=Math.min(ee.right,qt.right)-tr,we=Math.min(ee.bottom,qt.bottom)-gi,Ae=this.tb,Ae!==null&&(tr=Ae.x,gi=Ae.y,fe=Ae.width,we=Ae.height),tr>ee.width+ee.x||ee.x>qt.width+qt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(tr,gi,fe,we),a.clip()}if(ce){if(!le.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ae&&(qt=le.shadowOffset,a.Ev(qt.x*y.scale*this.scale*y.Mb,qt.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 ui)),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===ui.Auto||y.type===ui.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===ui.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 ui;var re=a instanceof ui?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 ui&&(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 ui?qd(this):!1;if(!(this instanceof ui&&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 ui)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 ui))&&(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,tt=0;if(tt=De=0,b?(De=ee.x,tt=ee.y):E||(De-=le/2,tt-=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+=tt,Ae+=tt,x.type===Od)ce=y.createLinearGradient(fe,Se,we,Ae);else if(x.type===eh)tt=isNaN(x.endRadius)?Math.max(re,ae)/2:x.endRadius,isNaN(x.startRadius)?(De=0,tt=Math.max(re,ae)/2):De=x.startRadius,ce=y.createRadialGradient(fe,Se,De,we,Ae,tt);else if(x.type===jg)try{ce=y.createPattern(x.pattern,"repeat")}catch(ht){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 ui)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 ui?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=st.alloc();z.yi(y,x,E,b,Sa),a.rotate(this.Kb,z.x,z.y),st.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 Ki&&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===ui.Table?Rh(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ui.Auto&&E.Pb()===a?cu(a,bn,y):x===jo?E!==null?E.type===ui.Spot&&E.Pb()===a?cu(a,bn,y):(x=E.defaultStretch,x===jo?cu(a,Ln,y):cu(a,x,y)):cu(a,Ln,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 qr:z=!0;break;case bn:z=!0}switch(x.stretch){case Cr:b=!0;break;case bn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Cr||y===bn),z===null&&(z=y===qr||y===bn),b===!0&&z===!0?cu(a,bn,E):b===!0?cu(a,Cr,E):z===!0?cu(a,qr,E):cu(a,Ln,E)}function cu(a,y,x){if(x)return y;if(y===Ln||(x=a.desiredSize,x.w()))return Ln;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Cr)return Ln;if(y===bn)return qr}else{if(y===qr)return Ln;if(y===bn)return Cr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===qr)return Ln;if(y===bn)return Cr}else{if(y===Cr)return Ln;if(y===bn)return qr}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 Ki&&(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 ui?a instanceof Ki?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)&&$t("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new Wn),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 ui?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),Sn(E)||$t('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Ut.go[a]}if(E===null&&(b!=null&&b.constructor||$t("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 Et&&1<x.length){z=E;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(wi(z,ee),b++)}for(;b<x.length;b++)z=x[b],z===void 0?$t("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 ui)y=bh.I(y),y!==null&&(a.type=y);else if(a instanceof as){var x=Yo(as,y);x!==null?a.type=x:$t("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof di?(y=Yo(di,y),y!==null&&(a.type=y)):a instanceof Ca&&(y=Yo(Ca,y),y!==null&&(a.type=y));else if(y instanceof Ct)a instanceof ui||$t("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):$t("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 Ct||a instanceof jl?a.bind(y):$t("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Ai)a instanceof Ct?a.Jv(y):$t("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof wl)a instanceof di&&a.type===di.o?a.figures.add(y):$t("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):$t("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof $s)a instanceof Et||a instanceof Io?a.layout=y:$t("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)&&$t("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)&&$t("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 $t('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(Ct.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)&&Wr(a,"0 <= value <= 1",Ct,"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 st(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&&$t("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:Ln},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()&&$t("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&&Wr(a,">= 0",Ct,"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&&Wr(a,">= 1",Ct,"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&&Wr(a,">= 0",Ct,"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&&Wr(a,">= 1",Ct,"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 Ki||$t("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&&Wr(a,">= 0",Ct,"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&&Wr(a,">= 0",Ct,"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&&Wr(a,">= 0",Ct,"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&&Wr(a,">= 0",Ct,"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))}}}),Ct.prototype.trigger=Ct.prototype.Jv,Ct.prototype.findBindingPanel=Ct.prototype.ih,Ct.prototype.findTemplateBinder=Ct.prototype.pz,Ct.prototype.setProperties=Ct.prototype.nm,Ct.prototype.apply=Ct.prototype.apply,Ct.prototype.attach=Ct.prototype.Du,Ct.prototype.set=Ct.prototype.set,Ct.prototype.isEnabledObject=Ct.prototype.If,Ct.prototype.isVisibleObject=Ct.prototype.Ed,Ct.prototype.isContainedBy=Ct.prototype.rg,Ct.prototype.getNearestIntersectionPoint=Ct.prototype.rs,Ct.prototype.getLocalPoint=Ct.prototype.qs,Ct.prototype.getDocumentScale=Ct.prototype.Df,Ct.prototype.getDocumentAngle=Ct.prototype.li,Ct.prototype.getDocumentBounds=Ct.prototype.mi,Ct.prototype.getDocumentPoint=Ct.prototype.ga,Ct.prototype.intersectsRect=Ct.prototype.Yc,Ct.prototype.containedInRect=Ct.prototype.fh,Ct.prototype.containsRect=Ct.prototype.Re,Ct.prototype.containsPoint=Ct.prototype.ca,Ct.prototype.raiseChanged=Ct.prototype.g,Ct.prototype.raiseChangedEvent=Ct.prototype.cb,Ct.prototype.addCopyProperty=Ct.prototype.Vw;var Dg=null;Ct.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(ui,ui.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ui){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 ui&&(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 ui&&(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 ui&&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 ui&&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 ui&&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 ui&&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 Ki){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,ui.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new st(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,ui.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new st(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:bn,geometryStretch:er,visible:!1},y!==""?new Dl("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ui){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(ui,"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}),Ct.None=Ln=new ln(Ct,"None",0),Ct.Default=jo=new ln(Ct,"Default",0),Ct.Vertical=qr=new ln(Ct,"Vertical",4),Ct.Horizontal=Cr=new ln(Ct,"Horizontal",5),Ct.Fill=bn=new ln(Ct,"Fill",3),Ct.Uniform=er=new ln(Ct,"Uniform",1),Ct.UniformToFill=La=new ln(Ct,"UniformToFill",2),Ct.FlipVertical=ta=new ln(Ct,"FlipVertical",1),Ct.FlipHorizontal=za=new ln(Ct,"FlipHorizontal",2),Ct.FlipBoth=ps=new ln(Ct,"FlipBoth",3),Ct.make=$c,Ct.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},Ct.defineBuilder=Jd,Ct.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 Ct))return y&&E.set(y),E;$t('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Ct.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=Ln,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?Ut.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),Sn(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},Ot.$(E,re)&&Ot.$(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",Et.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new ed(this,Ut.document));var y=new ed(this,Ut.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)},Et.prototype.makeSvg=Et.prototype.Cs,Et.prototype.av=function(a){return this.Cs(a)},Et.prototype.makeSVG=Et.prototype.av;function dh(a,y,x,E){this.ownerDocument=y=y===void 0?Ut.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&&$t("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)&&$t("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&&_i(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Wr(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&&_i(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&&_i(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:$t("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||$t("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&&_i(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&&_i(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&_i(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&_i(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&_i(this,a),0>a&&Wr(a,">= zero",as,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&_i(this,a),0>a&&Wr(a,">= zero",as,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&_i(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&_i(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 ui}}}),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=ur(),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!==Ln&&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,tt=yc(ce,!1);(isNaN(ce.desiredSize.height)&&tt===bn||tt===qr)&&(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=ur();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!==Ln&&ce!==qr)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,tt=yc(ce,!1);(isNaN(ce.desiredSize.width)&&tt===bn||tt===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,tt=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 ht=!0,gt=Id(a),xt=0;xt<re;xt++){var Dt=E[xt];Se=y;var qt=x;if(Dt!==ae&&(Dt.visible||Dt===gt)){le=Dt.margin;var zi=le.left,cr=le.top;switch(we=le.right+le.left,Ae=le.top+le.bottom,le=yc(Dt,!1),le){case bn:Se=z,qt=ee,cr=zi=Ae=we=0;break;case Cr:Se=z,zi=we=0;break;case qr:qt=ee,cr=Ae=0}Dt.measure(Se,qt,0,0),Se=Dt.measuredBounds,we=Math.max(Se.width+we,0),Ae=Math.max(Se.height+Ae,0),le=Dt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=Sa);var tr=Dt.alignmentFocus;if(tr.Xb()&&(tr=Sa),qt=null,Dt instanceof ui&&Dt.$e!==""&&(qt=Dt.fb(Dt.$e),qt===Dt&&(qt=null)),zi=Ze.x-zi,cr=Ze.y-cr,qt!==null){for(Dt.arrange(0,0,Se.width,Se.height),Se=qt.actualBounds,Se=st.allocAt(Se.x+(tr.x*Se.width-tr.offsetX),Se.y+(tr.y*Se.height-tr.offsetY)),qt=qt.panel;qt!==Dt;)qt.transform.Ga(Se),qt=qt.panel;zi+=le.x*z+le.offsetX-Se.x,cr+=le.y*ee+le.offsetY-Se.y,st.free(Se)}else zi+=le.x*z+le.offsetX-(tr.x*Se.width+tr.offsetX),cr+=le.y*ee+le.offsetY-(tr.y*Se.height+tr.offsetY);ht?(ht=!1,b.h(zi,cr,we,Ae)):_s(b,zi,cr,we,Ae)}}switch(ht?b.assign(tt):De?b.Uu(Ze.x,Ze.y,Ze.width,Ze.height):_s(b,tt.x,tt.y,tt.width,tt.height),cn.free(tt),cn.free(Ze),le=ae.stretch,le===jo&&(le=yc(ae,!1)),le){case Ln:return;case bn:if(!isFinite(y)&&!isFinite(x))return;break;case Cr:if(!isFinite(y))return;break;case qr: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!==gt||(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),ht?(ht=!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));ht?b.assign(tt):De?b.Uu(Ze.x,Ze.y,Ze.width,Ze.height):_s(b,tt.x,tt.y,tt.width,tt.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 ui&&fe.$e!==""&&(le=fe.fb(fe.$e),le===fe&&(le=null)),le!==null){var De=le.actualBounds;for(Ae=st.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,st.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 ui&&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 tt=Math.max(le.width+Se,0);le=Math.max(le.height+we,0);var Ze=w0(ae),ht=Ze.x*tt+Ze.offsetX;Ze=Ze.y*le+Ze.offsetY;var gt=P0(ae),xt=gt.x*tt+gt.offsetX;for(gt=gt.y*le+gt.offsetY,isFinite(y)&&(ce=Math.max(Math.abs(ht-xt)-Ae,0)),isFinite(x)&&(fe=Math.max(Math.abs(Ze-gt)-Ae,0)),Ae=fn.alloc(),Ae.h(0,0),a=Id(a),gt=0;gt<re;gt++)Ze=E[gt],Ze===ae||!Ze.visible&&Ze!==a||(le=Ze.margin,tt=le.right+le.left,ht=le.top+le.bottom,Ze.measure(ce,fe,0,0),le=Ze.measuredBounds,tt=Math.max(le.width+tt,0),le=Math.max(le.height+ht,0),Ae.h(Math.max(tt,Ae.width),Math.max(le,Ae.height)));if(re===1)b.width=tt,b.height=le,fn.free(Ae);else{switch(Ze=w0(ae),gt=P0(ae),re=E=0,gt.x!==Ze.x&>.y!==Ze.y&&(E=Ae.width/Math.abs(gt.x-Ze.x),re=Ae.height/Math.abs(gt.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(gt.offsetX)+Ae,re+=Math.abs(Ze.offsetY)+Math.abs(gt.offsetY)+Ae,De=ae.stretch,De===jo&&(De=yc(ae,!1)),De){case Ln:ee=z=0;break;case bn:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case Cr:isFinite(y)&&(E=y),ee=0;break;case qr: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=ur(),re=ur(),ae=0;ae<z;ae++){var le=E[ae],ce=le instanceof ui?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===ui.TableRow?Ae.row=le.row:ce.type===ui.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=[],tt=0;tt<z;tt++){var Ze=ee[tt];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 ht=ur(),gt=ur(),xt=ur(),Dt={count:0},qt={count:0},zi=y,cr=x,tr=a.rowDefs,gi=a.colDefs,_n=null;z=tr.length;for(var Bo=0;Bo<z;Bo++)_n=tr[Bo],_n!==void 0&&(_n.actual=0);z=gi.length;for(var xo=0;xo<z;xo++)_n=gi[xo],_n!==void 0&&(_n.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);ht[Qu]===void 0&&(cf.actual=0,cf.oc=0,ht[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||gt.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===Ln||id||Tl<ru||Qu<Ju||(Dt[Qu]!==void 0||qu!==bn&&qu!==Cr||(Dt[Qu]=-1,Dt.count++),qt[Tl]!==void 0||qu!==bn&&qu!==qr||(qt[Tl]=-1,qt.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===Ln||qu===Cr)){_n=a.Fb(Tl);var Of=_n.Wc();Ql=Math.max(jc-_n.actual,0),Ql+Of>cr&&(Ql=Math.max(cr-Of,0));var Yv=_n.oa===0;_n.oc=_n.oc+Ql,_n.actual=_n.oa+Ql,cr=Math.max(cr-(Ql+(Yv?Of:0)),0)}if(Mc.columnSpan===1&&(qu===Ln||qu===qr)){_n=a.Eb(Qu);var lm=_n.Wc();Ql=Math.max(ng-_n.actual,0),Ql+lm>zi&&(Ql=Math.max(zi-lm,0));var Ky=_n.oa===0;_n.oc=_n.oc+Ql,_n.actual=_n.oa+Ql,zi=Math.max(zi-(Ql+(Ky?lm:0)),0)}Bf&&Mc.Uj()}}}}}Nr(ht);var bd=0,zd=0;z=a.columnCount;for(var bg=0;bg<z;bg++){var If=gi[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=cr=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;Dt[rd.column]=Wd.oc===0&&Dt[rd.column]!==void 0?Math.max(cp.width+ig,Dt[rd.column]):null,qt[rd.row]=Zv.oc===0&&qt[rd.row]!==void 0?Math.max(cp.height+od,qt[rd.row]):null}var Ag=0,hp=0,Nh;for(Nh in qt)Nh!=="count"&&(Ag+=qt[Nh]);for(Nh in Dt)Nh!=="count"&&(hp+=Dt[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)&&Dt[hc.column]!==null?hp===0?Hd=dc.actual+zi:Hd=Dt[hc.column]/hp*hf:Dt[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(cr)&&qt[hc.row]!==null?Ag===0?df=Bl.actual+cr:df=qt[hc.row]/Ag*Ad:qt[hc.row]!==null?df=cr:df=Bl.actual||cr,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+cr);break;case qr: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(cr)&&(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,cr=Math.max(cr-Ql,0),qt[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),Dt[hc.column]===null&&(hf=Math.max(hf-Ql,0))}}Nr(xt);var _d=fn.alloc(),Gh=ur(),oh=ur();if(z=gt.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=gt[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 bn: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 qr: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++)_n=a.Fb(Cl.row+ff),Ql=0,Ql=qu===bn||qu===qr?Math.max(_n.minimum,Gh[Cl.row+ff]===0?_n.maximum:Math.min(Gh[Cl.row+ff],_n.maximum)):Math.max(_n.minimum,isNaN(_n.Hc)?_n.maximum:Math.min(_n.Hc,_n.maximum)),_d.height+=Ql,zc+=_n.minimum;for(var yh=1;yh<Cl.columnSpan&&!(Cl.column+yh>=a.columnCount);yh++)_n=a.Eb(Cl.column+yh),Ql=0,Ql=qu===bn||qu===Cr?Math.max(_n.minimum,oh[Cl.column+yh]===0?_n.maximum:Math.min(oh[Cl.column+yh],_n.maximum)):Math.max(_n.minimum,isNaN(_n.Hc)?_n.maximum:Math.min(_n.Hc,_n.maximum)),_d.width+=Ql,Qv+=_n.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++)_n=a.Fb(Cl.row+vp),Hf+=_n.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++){_n=a.Fb(Cl.row+Vd);var mf=_n.oa||0,sg=pf(Cl,_n,Md);_n.actual=Math.min(_n.maximum,mf+sg),_n.oa!==mf&&(gf-=_n.oa-mf)}for(;0<gf;){var Uh=_n.oa||0;if(isNaN(_n.height)&&_n.maximum>Uh&&(_n.actual=Math.min(_n.maximum,Uh+gf),_n.oa!==Uh&&(gf-=_n.oa-Uh)),_n.index===0)break;_n=a.Fb(_n.index-1)}}for(var Lg=0,vf=0;vf<Cl.columnSpan&&!(Cl.column+vf>=a.columnCount);vf++)_n=a.Eb(Cl.column+vf),Lg+=_n.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++){_n=a.Eb(Cl.column+lg);var hm=_n.oa||0,Yy=Kd(Cl,_n,Uy);_n.actual=Math.min(_n.maximum,hm+Yy),_n.oa!==hm&&(kg-=_n.oa-hm)}for(;0<kg;){var qv=_n.oa||0;if(isNaN(_n.width)&&_n.maximum>qv&&(_n.actual=Math.min(_n.maximum,qv+kg),_n.oa!==qv&&(kg-=_n.oa-qv)),_n.index===0)break;_n=a.Eb(_n.index-1)}}}}Nr(gt),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++)gi[e0]!==void 0&&(_n=a.Eb(e0),isFinite(_n.width)?(dm+=_n.width,dm+=_n.Wc()):Bm(_n)===Ep?(dm+=_n.oa,dm+=_n.Wc()):_n.oa!==0&&(bd+=_n.oa,bd+=_n.Wc()));isFinite($v.width)?Fg=Math.min($v.width,Sx.width):Fg=qu!==Ln&&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++)gi[t0]!==void 0&&(_n=a.Eb(t0),isFinite(_n.width)||Bm(_n)===Ep||(_n.actual=_n.oa*aw),_n.position=b.width,_n.oa!==0&&(b.width+=_n.oa,b.width+=_n.Wc()));z=a.rowCount;for(var n0=0;n0<z;n0++)tr[n0]!==void 0&&(_n=a.Fb(n0),isFinite(_n.height)?(fm+=_n.height,fm+=_n.Wc()):Bm(_n)===Ep?(fm+=_n.oa,fm+=_n.Wc()):_n.oa!==0&&(zd+=_n.oa,zd+=_n.Wc()));isFinite($v.height)?Ng=Math.min($v.height,Sx.height):Ng=qu!==Ln&&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&&(_n=a.Fb(i0),isFinite(_n.height)||Bm(_n)===Ep||(_n.actual=_n.oa*sw),_n.position=b.height,_n.oa!==0&&(b.height+=_n.oa,b.height+=_n.Wc()));z=re.length;for(var Zy=0;Zy<z;Zy++){var gm=re[Zy],Xy=0,Jy=0;gm.type===ui.TableRow?(Xy=b.width,_n=a.Fb(gm.row),Jy=_n.actual):(_n=a.Eb(gm.column),Xy=_n.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,tt=0;De!==le&&ae[De]===void 0;)De++;for(;tt!==le&&re[tt]===void 0;)tt++;ce=a.part,a.Fb(De),a.Eb(tt);for(var Ze=0;Ze<y.length;Ze++){var ht=y[Ze];if(ht instanceof ui&&ht.visible&&qd(ht)){if(ht.type===ui.TableRow){re=a.Fb(ht.row);var gt=a.Eb(tt)}else re=a.Fb(De),gt=a.Eb(ht.column);ae=re.position+fe+b,re.oa!==0&&(ae+=re.Io(Math.max(De,we))),re=gt.position+Se+z,gt.oa!==0&&(re+=gt.Io(Math.max(tt,Ae))),gt=ht.measuredBounds,ht.Uk(),ht.actualBounds.ka();var xt=ht.actualBounds,Dt=cn.allocAt(xt.x,xt.y,xt.width,xt.height);xt.x=ht.type===ui.TableRow?z:re,xt.y=ht.type===ui.TableColumn?b:ae,xt.width=gt.width,xt.height=gt.height,ht.actualBounds.freeze(),gd(ht,!1),Ys(Dt,xt)||ce===null||(ce.oh(),ht.Pn(ce)),cn.free(Dt)}}for(Ze=fn.alloc(),ht=0;ht<le;ht++)if(ee[ht]){for(ce=ee[ht].length,gt=a.Fb(ht),ae=gt.position+fe+b,gt.oa!==0&&(ae+=gt.Io(Math.max(De,we))),xt=0;xt<ce;xt++)if(ee[ht][xt]){Dt=a.Eb(xt),re=Dt.position+Se+z,Dt.oa!==0&&(re+=Dt.Io(Math.max(tt,Ae)));for(var qt=ee[ht][xt],zi=qt.length,cr=0;cr<zi;cr++){var tr=qt[cr],gi=tr.measuredBounds;Ze.h(0,0);for(var _n=1;_n<tr.rowSpan&&!(ht+_n>=a.rowCount);_n++){var Bo=a.Fb(ht+_n);Bo.oa!==0&&(Ze.height+=Bo.total)}for(_n=1;_n<tr.columnSpan&&!(xt+_n>=a.columnCount);_n++)Bo=a.Eb(xt+_n),Bo.oa!==0&&(Ze.width+=Bo.total);var xo=Dt.oa+Ze.width,qa=gt.oa+Ze.height;_n=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=Dt.alignment,mh=gt.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=gi.width,mh=gi.height;var Ic=tr.margin,Mc=Ic.left+Ic.right,Bf=Ic.top+Ic.bottom,Vh=Rh(tr,gt,Dt,!1);!isNaN(tr.desiredSize.width)||Vh!==bn&&Vh!==Cr||(Xc=Math.max(xo-Mc,0)),!isNaN(tr.desiredSize.height)||Vh!==bn&&Vh!==qr||(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,_n+=Ls*_h-(Xc+Mc)*_h+cf+Ic.left,Bo+=Jl*Qu-xo*Qu+Tl+Ic.top,tr.visible&&(il(ru,Ju,Ql,uf,_n,Bo,gi.width,gi.height)?tr.arrange(_n,Bo,Xc,mh):tr.arrange(_n,Bo,Xc,mh,new cn(ru,Ju,Ql,uf)))}}}for(fn.free(Ze),a=0;a<E;a++)x=y[a],z=x instanceof ui?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&&$t("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,tt=0;tt<De;tt++){var Ze=Ae[tt],ht=[];if(we.push(ht),Ze.visible){var gt=Ze.interval;if(!(0>gt)){Ze=S0(Ze.figure);for(var xt=0;xt<De;xt++)if(xt!==tt){var Dt=Ae[xt];Dt.visible&&S0(Dt.figure)===Ze&&(Dt=Dt.interval,Dt>gt&&ht.push(Dt))}}}}for(Ae=a.O.s,De=Ae.length,tt=0;tt<De;tt++){var qt=Ae[tt];if(qt.visible&&(ht=qt.interval||1,Ze=Math.abs(ht),!(2>b*Ze*x))){if(gt=qt.segmentIndex,(!isFinite(gt)||isNaN(gt))&&(gt=0),0>gt&&(gt=Ze-Math.min(-gt,Ze)),gt=Math.round(gt%Ze),Ze=qt.opacity,xt=1,Ze!==1){if(Ze===0)continue;xt=y.globalAlpha,y.globalAlpha=xt*Ze}Dt=we[tt];var zi=!1,cr=qt.strokeDashArray;if(cr!==null&&(zi=!0,y.js(cr,qt.strokeDashOffset)),qt.figure==="LineV"&&qt.stroke!==null&&0<qt.strokeWidth){for(y.lineWidth=qt.strokeWidth,Sl(a,y,qt.stroke,!1,!1,z,ee),y.beginPath(),cr=qt=Math.floor((Se-b)/b);cr<=qt+le;cr++){var tr=cr*b+Se;0<=tr&&tr<=re&&Lm(cr,ht,gt,Dt)&&(y.moveTo(tr,0),y.lineTo(tr,ae))}y.stroke(),y.Se()}else if(qt.figure==="LineH"&&qt.stroke!==null&&0<qt.strokeWidth){for(y.lineWidth=qt.strokeWidth,Sl(a,y,qt.stroke,!1,!1,z,ee),y.beginPath(),cr=qt=Math.floor((fe-E)/E);cr<=qt+ce;cr++)tr=cr*E+fe,0<=tr&&tr<=ae&&Lm(cr,ht,gt,Dt)&&(y.moveTo(0,tr),y.lineTo(re,tr));y.stroke(),y.Se()}else if(qt.figure==="BarV"&&qt.fill!==null)for(Sl(a,y,qt.fill,!0,!1,z,ee),qt=qt.width,isNaN(qt)&&(qt=b),tr=cr=Math.floor((Se-b)/b);tr<=cr+le;tr++){var gi=tr*b+Se;0<=gi+qt&&gi<=re&&Lm(tr,ht,gt,Dt)&&y.fillRect(gi,0,qt,ae)}else if(qt.figure==="BarH"&&qt.fill!==null)for(Sl(a,y,qt.fill,!0,!1,z,ee),qt=qt.height,isNaN(qt)&&(qt=E),tr=cr=Math.floor((fe-E)/E);tr<=cr+ce;tr++)gi=tr*E+fe,0<=gi+qt&&gi<=ae&&Lm(tr,ht,gt,Dt)&&y.fillRect(0,gi,re,qt);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 mi){var ee=null,re=null;if(a instanceof mi&&(ee=a),a instanceof Ga&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof mi){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=st.alloc(),tt=st.alloc(),Ze=0;Ze<z;Ze++){var ht=E[Ze];if(ht!==le)if(ht.isPanelMain&&ht instanceof Zo){lS(a,re,Se,ht);var gt=ht.measuredBounds;x.ed(gt),we.push(gt)}else if(2>fe)ht.measure(1/0,1/0,0,0),gt=ht.measuredBounds,x.ed(gt),we.push(gt);else{var xt=ht.segmentIndex,Dt=ht.segmentFraction,qt=ht.alignmentFocus;qt.Mc()&&(qt=Sa);var zi=ht.segmentOrientation,cr=ht.segmentOffset;if(isNaN(xt)){var tr=ae.ua;gt=ur(),tr.Qu(Dt,gt);var gi=st.allocAt(gt[0],gt[1]);if(gi.add(ae.i(0)),tr.type===di.j?gi.offset(-tr.startX,-tr.startY):(tr=tr.figures.first(),tr!==null&&gi.offset(-tr.startX,-tr.startY)),tr=gt[2],zi!==ac){var _n=ae.computeAngle(ht,zi,tr);ht.Kb=_n}_n=gi.x-y.x;var Bo=gi.y-y.y;st.free(gi),Nr(gt)}else if(xt<-fe||xt>=fe)gt=st.alloc(),ae.vg(),ae.computeMidPoint(gt),tr=ae.midAngle,zi!==ac&&(_n=ae.computeAngle(ht,zi,tr),ht.Kb=_n),_n=gt.x-y.x,Bo=gt.y-y.y,st.free(gt);else{if(_n=0,0<=xt?(Bo=ce.M(xt),gt=xt<fe-1?ce.M(xt+1):Bo):(_n=fe+xt,Bo=ce.M(_n),gt=0<_n?ce.M(_n-1):Bo),Bo.Xa(gt)){0<=xt?(tr=0<xt?ce.M(xt-1):Bo,_n=xt<fe-2?ce.M(xt+2):gt):(tr=_n<fe-1?ce.M(_n+1):Bo,_n=1<_n?ce.M(_n-2):gt),gi=tr.Bf(Bo);var xo=gt.Bf(_n);tr=gi>xo+10?0<=xt?tr.ab(Bo):Bo.ab(tr):xo>gi+10?0<=xt?gt.ab(_n):_n.ab(gt):0<=xt?tr.ab(_n):_n.ab(tr)}else tr=0<=xt?Bo.ab(gt):gt.ab(Bo);zi!==ac&&(_n=ae.computeAngle(ht,zi,tr),ht.Kb=_n),_n=Bo.x+(gt.x-Bo.x)*Dt-y.x,Bo=Bo.y+(gt.y-Bo.y)*Dt-y.y}ht.measure(1/0,1/0,0,0),gt=ht.measuredBounds,gi=ht.naturalBounds;var qa=0;ht instanceof Zo&&(qa=ht.strokeWidth),xo=gi.width+qa;var Ls=gi.height+qa;Ae.reset(),Ae.translate(-gt.x,-gt.y),Ae.scale(ht.scale,ht.scale),Ae.rotate(zi===ac?ht.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),gi=new cn(0,0,xo,Ls),De.xi(gi,qt),Ae.Ga(De),qt=-De.x+qa/2*ht.scale,ht=-De.y+qa/2*ht.scale,tt.assign(cr),qa=isNaN(cr.x);var Jl=isNaN(cr.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)?(tt.x=Jl?xo:cr.y,tt.y=qa?Ls:cr.x,ru?0<=xt||isNaN(xt)&&.5>Dt||!qa||(tt.y=-Ls):Ju&&((0<=xt||isNaN(xt)&&.5>Dt)&&qa&&(tt.y=-Ls),Jl&&(tt.x=-xo))):(qa&&(tt.x=0<=xt||isNaN(xt)&&.5>Dt?xo:-xo),Jl&&(tt.y=-Ls),tt.rotate(tr))}else tt.rotate(tr);_n+=tt.x,Bo+=tt.y,gi.set(gt),gi.h(_n+qt,Bo+ht,gt.width,gt.height),we.push(gi),x.ed(gi)}}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),st.free(De),st.free(tt)}}}},km.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ga||a instanceof mi){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 mi)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=ur();we.Qu(ae,Ae);var De=st.allocAt(Ae[0],Ae[1]);De.add(fe.i(0)),we.type===di.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 tt=De.y;st.free(De),Nr(Ae)}else if(re<-x||re>=x)Ae=st.alloc(),we=fe,tt=Ae,we.vg(),we.computeMidPoint(tt),we=fe.midAngle,le!==ac&&(fe=fe.computeAngle(ee,le,we),ee.angle=fe),fe=Ae.x,tt=Ae.y,st.free(Ae);else{if(De=0,0<=re?(Ae=y.s[re],tt=re<x-1?y.s[re+1]:Ae):(De=x+re,Ae=y.s[De],tt=0<De?y.s[De-1]:Ae),Ae.Xa(tt)){0<=re?(we=0<re?y.s[re-1]:Ae,De=re<x-2?y.s[re+2]:tt):(we=De<x-1?y.s[De+1]:Ae,De=1<De?y.s[De-2]:tt);var Ze=we.Bf(Ae),ht=tt.Bf(De);we=Ze>ht+10?0<=re?we.ab(Ae):Ae.ab(we):ht>Ze+10?0<=re?tt.ab(De):De.ab(tt):0<=re?we.ab(De):De.ab(we)}else we=0<=re?Ae.ab(tt):tt.ab(Ae);le!==ac&&(fe=fe.computeAngle(ee,le,we),ee.angle=fe),fe=Ae.x+(tt.x-Ae.x)*ae,tt=Ae.y+(tt.y-Ae.y)*ae}if(Se.ys())ee.location=new st(fe,tt);else{Se.Mc()&&(Se=Sa),Ae=Fo.alloc(),Ae.reset(),Ae.scale(ee.scale,ee.scale),Ae.rotate(ee.angle,0,0);var gt=ee.naturalBounds;De=cn.allocAt(0,0,gt.width,gt.height),Ze=st.alloc(),Ze.xi(De,Se),Ae.Ga(Ze),Se=-Ze.x,ht=-Ze.y;var xt=gt.width,Dt=gt.height;gt=st.alloc(),gt.assign(ce);var qt=isNaN(ce.x),zi=isNaN(ce.y);if(qt||zi){xt=xt/2+3,Dt=Dt/2+3;var cr=45<=we&&135>=we,tr=225<=we&&315>=we;le===ac&&(cr||tr)?(gt.x=zi?xt:ce.y,gt.y=qt?Dt:ce.x,cr?0<=re||isNaN(re)&&.5>ae||!qt||(gt.y=-Dt):tr&&((0<=re||isNaN(re)&&.5>ae)&&qt&&(gt.y=-Dt),zi&&(gt.x=-xt))):(qt&&(gt.x=0<=re||isNaN(re)&&.5>ae?xt:-xt),zi&&(gt.y=-Dt),gt.rotate(we))}else gt.rotate(we);fe+=gt.x,tt+=gt.y,Ae.pp(De),Se+=De.x,ht+=De.y,re=st.allocAt(fe+Se,tt+ht),ee.move(re),st.free(re),st.free(gt),st.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),st.free(E)}};function lS(a,y,x,E){if(Gc(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Ga&&a.type===ui.Link&&a.adornedObject instanceof Zo&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof mi&&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,tt=we.flattenedLengths,Ze=we.flattenedTotalLength,ht=De.length,gt=0,xt=0,Dt=ur(),qt=0;qt<ht;qt++){var zi=De[qt],cr=[];xt=gt=0;for(var tr=zi.length,gi=0;gi<tr;gi+=2){var _n=zi[gi],Bo=zi[gi+1];if(gi!==0){var xo=180*Math.atan2(Bo-xt,_n-gt)/Math.PI;0>xo&&(xo+=360),cr.push(xo)}gt=_n,xt=Bo}Dt.push(cr)}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=tt[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=Dt[id][Lc],hf=tt[id][Lc];id<tt.length;){for(;Ic>Eg&&Lc<tt[id].length-1;)Lc++,Ad=Dt[id][Lc],hf=tt[id][Lc],Eg+=hf;if(Ic<=Eg)break;id++,Lc=0,Ad=Dt[id][Lc],hf=tt[id][Lc],Eg+=hf}var kc=De[id],rd=kc[2*Lc],Zv=kc[2*Lc+1],Wd=(Ic-(Eg-hf))/hf,cp=new st(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=Dt[id];if(!(.5005>Wd&&.4995<Wd)){var od=Kh;if(.5>Wd?0<Lc?od=ig[Lc-1]:Ot.$(kc[0],kc[kc.length-2])&&Ot.$(kc[1],kc[kc.length-1])&&(od=ig[ig.length-1]):.5<Wd&&(Lc+1<ig.length?od=ig[Lc+1]:Ot.$(kc[0],kc[kc.length-2])&&Ot.$(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(Dt);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=st.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)}st.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=mi.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=st.alloc();vf.xi(Lg,ff),Uh.Ga(vf);var kg=-vf.x,Uy=-vf.y,Kd=st.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),st.free(Kd),st.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,tt=Se.strokeWidth*Se.scale,Ze=Se.alignmentFocus;Ze.Mc()&&(Ze=Bu);for(var ht=0;ht<Ae;ht++){var gt=we[ht].$l,xt=we[ht].angle,Dt=Ze,qt=Se.Ab;qt.reset(),qt.translate(gt.x+re.x,gt.y+re.y),qt.rotate(xt+Se.angle,0,0),qt.translate(-De.width*Dt.x+Dt.offsetX+tt/2,-De.height*Dt.y+Dt.offsetY+tt/2),qt.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),tt=0;tt<Ae;tt++)Ze=we[tt],Ze.actualBounds&&Ze.measuredBounds&&Ze.naturalBounds&&(De.ec=Ze.text||"",De.Kb=Ze.Sz||0,De.Gc=Ze.lineCount||0,ht=Ze.lines,ht!==void 0&&(De.Cb=ht[0],De.Ih=ht[1],De.df=ht[2],De.Le=ht[3],De.Qc=ht[4],De.Qb=ht[5],De.ze=ht[6]),Ze.naturalBounds&&(De.dc=Ze.naturalBounds),Ze.actualBounds&&(ht=Ze.actualBounds,De.arrange(ht.x,ht.y,ht.width,ht.height)),ht=Ze.actualBounds,De.arrange(ht.x,ht.y,ht.width,ht.height),gt=Ze.measuredBounds,Ze=Ze.naturalBounds,xt=De.Ab,xt.reset(),xt.translate(ht.x+re.x,ht.y+re.y),xt.translate(-gt.x,-gt.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 ui(a,y){if(Ct.call(this),this.na=null,a===void 0)this.na=ui.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=ui.Position,y=a);this.na===null&&$t("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ui.Grid?1048576:0),this.O=new Wn,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(ui,Ct),ui.prototype.cloneProtected=function(a){Ct.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},ui.prototype.Af=function(a){Ct.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},ui.prototype.copy=function(){var a=Ct.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 Ki&&(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=ui.prototype,Ee.toString=function(){return"Panel("+this.type.name+")#"+ds(this)},Ee.Pn=function(a){Ct.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===ui.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ui.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ui.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===ui.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(!Ct.prototype.kk.call(this,a,y,x))return!1;if(this.type===ui.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===ui.Grid||this.na===ui.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 Ct.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,Ot.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=Ot.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=st.alloc(),Se=null,y=1/0;var Ae=null,De=this.isClipping&&this.na===ui.Spot;De&&(Ae=st.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 tt=0;tt<we;tt++){var Ze=fe[tt];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),st.free(Ae)),st.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();Ct.prototype.Gj.call(this)},Ee.v=function(a){if(!Gc(this)){Ct.prototype.v.call(this,a),a=null,(this.na===ui.Auto||this.na===ui.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 ui||b instanceof ks||z!==Ln)&&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=Ln),a){case Ln:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case bn: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 qr: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=st.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(xi(b.set(a),z.transform),z.ca(b)))return st.free(b),!0}return st.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 ui){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 ui&&hS(a,z,x)}}function Ax(a,y){dS(a,a,y)}function dS(a,y,x){if(x(y),y instanceof ui){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 ui){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 ui){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 ui?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===ui.TableRow||this.type===ui.TableColumn)};function qd(a){return a.type===ui.TableRow||a.type===ui.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:xi(st.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=st.alloc(),le=(ae=this.isClipping&&this.na===ui.Spot)?this.Pb():null,ae&&(le.se()?xi(re.set(a),le.transform):re.set(a),!le.ca(re)))return st.free(re),z||st.free(ee),null;for(var fe=Id(this);ce--;){var Se=b[ce];if((Se.visible||Se===fe)&&(Se.se()?xi(re.set(a),Se.transform):re.set(a),!ae||Se!==le)){var we=null;if(Se instanceof ui?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 st.free(re),z||st.free(ee),we}}st.free(re)}return this.background===null&&this.areaBackground===null?(z||st.free(ee),null):(a=il(0,0,E.width,E.height,ee.x,ee.y)?this:null,z||st.free(ee),a)}return z||st.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:xi(st.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=st.alloc(),ce=Id(this);ae--;){var fe=re[ae];if(fe.visible||fe===ce){fe.se()?xi(le.set(a),fe.transform):le.set(a);var Se=fe;fe=fe instanceof ui?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))}}st.free(le)}return z||st.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||st.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 ui?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 ui&&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:xi(st.allocAt(a.x,a.y),this.transform),le=re?y:xi(st.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||(st.free(ae),st.free(le)),fe){if(!this.isAtomic){ae=st.alloc(),le=st.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,tt=this.naturalBounds;(!re||!(De.x>tt.width||De.y>tt.height||0>De.x+De.width||0>De.y+De.height))&&(Ae.se()?(De=Ae.transform,xi(ae.set(a),De),xi(le.set(y),De)):(ae.set(a),le.set(y)),De=Ae,Ae=Ae instanceof ui?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)))}}st.free(ae),st.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&&$t("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&$t("Cannot make a Panel contain itself: "+this.toString()),$t("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&$t("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!==ui.Grid||y instanceof Zo||$t("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ui.Graduated||y instanceof Zo||y instanceof ks||$t("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 $t("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 ui&&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 Ki&&(x.Te=!0),x.Te&&x instanceof Ki&&(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 Ki&&(E instanceof ui?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&&Wr(a,">= 0",ui,"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&&Wr(a,">= 0",ui,"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&&Wr(a,">= 0",ui,"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&&Wr(a,">= 0",ui,"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!==ui.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!==ui.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 st(NaN,NaN)),this.type!==ui.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!==ui.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&&$t("Template cannot have .data be non-null: "+a),a.allBindings=y=new Wn;else if(y._isFrozen)return;var x=new Wn;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 Wn),we.srcBindings.add(Se))),y.add(Se)}if(ce instanceof ui&&ce.type===ui.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 Wn),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 ui&&(ee=re.substring(0,ae),re=re.substr(ae+1),ae=z.fb(ee),ae!==null?(z=ae,b.targetProperty=re):Br('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 Ct?(ee=ds(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):$t("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 ui&&(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 ui))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 ui&&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 ui)||z.data!==y[ee])return!0;b++,ee++}return!1}function Cp(a){if(a.type===ui.Spot||a.type===ui.Auto)return Math.min(a.O.length,1);if(a.type===ui.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===ui.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ui&&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 ui){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 Ki&&(y.Te=!0),y.Te&&y instanceof Ki&&(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 ui){var b=y,z=x;E.type===ui.TableRow?E.row=b:E.type===ui.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;$t("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,Br('No item template Panel found for category "'+y+'" on '+a),Br(" Using default item template."),a=new ui,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 ui){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ui&&!z.isEnabled||Dm(a,z,x)}}}function td(a,y){y.name=a,bh.add(a,y)}un.Object.defineProperties(ui.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ui.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&&Wr(a,">= 0",ui,"padding"),a=new Mo(a)):(0>a.left&&Wr(a.left,">= 0",ui,"padding:value.left"),0>a.right&&Wr(a.right,">= 0",ui,"padding:value.right"),0>a.top&&Wr(a.top,">= 0",ui,"padding:value.top"),0>a.bottom&&Wr(a.bottom,">= 0",ui,"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)||$t("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)||$t("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||$t("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()||$t("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)&&$t("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)&&$t("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 mi?(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)&&$t("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(ui,{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")}}}),ui.prototype.rebuildItemElements=ui.prototype.mv,ui.prototype.findItemPanelForData=ui.prototype.sx,ui.prototype.updateTargetBindings=ui.prototype.La,ui.prototype.copyTemplate=ui.prototype.Uy,ui.prototype.graduatedValueForPoint=ui.prototype.Gz,ui.prototype.graduatedPointForValue=ui.prototype.Fz,ui.prototype.findColumnForLocalX=ui.prototype.fz,ui.prototype.findRowForLocalY=ui.prototype.nz,ui.prototype.addColumnDefinition=ui.prototype.By,ui.prototype.addRowDefinition=ui.prototype.Hy,ui.prototype.addRowColumnDefinition=ui.prototype.Gy,ui.prototype.removeColumnDefinition=ui.prototype.jA,ui.prototype.getColumnDefinition=ui.prototype.Eb,ui.prototype.removeRowDefinition=ui.prototype.oA,ui.prototype.getRowDefinition=ui.prototype.Fb,ui.prototype.removeAt=ui.prototype.mb,ui.prototype.remove=ui.prototype.remove,ui.prototype.insertAt=ui.prototype.Gb,ui.prototype.elt=ui.prototype.M,ui.prototype.add=ui.prototype.add,ui.prototype.findObject=ui.prototype.fb,ui.prototype.findInVisualTree=ui.prototype.Nl,ui.prototype.walkVisualTreeFrom=ui.prototype.qm,ui.prototype.findMainElement=ui.prototype.Pb;var SS=!1,xS=null,bh=new wr;ui.className="Panel",ui.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===ui.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)&&$t("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new Wn),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&&Wr(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&&Wr(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))&&Wr(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&&Wr(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)||$t("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){Ct.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,Ct),Zo.prototype.cloneProtected=function(a){Ct.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(){Ct.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ee.qb=function(a){a===Ln||a===er||a===La||a===jo?this.geometryStretch=a:Ct.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,tt=ur(),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),tt.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=tt[Ze],fe=Ae[0],we=Ae[1],Se=Ae[2],Ae=Ae[3];for(var ht=0;.1<=De;){if(ht===0&&(ce?(b=x,b-=le,De-=le,ce=!1):b=x,b===0&&(b=1)),b>De){Nr(tt);return}b>Ae?(ht=b-Ae,b=Ae):ht=0;var gt=Math.sqrt(b*b/(1+Se*Se));if(0>fe&&(gt=-gt),re+=gt,ae+=Se*gt,a.translate(re,ae),a.rotate(we),a.translate(-(ee/2),-(z/2)),ht===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-we),a.translate(-re,-ae),De-=b,Ae-=b,ht!==0){if(Ze++,Ze===tt.length){Nr(tt);return}Ae=tt[Ze],fe=Ae[0],we=Ae[1],Se=Ae[2],Ae=Ae[3],b=ht}}Nr(tt)}}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===ui.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===di.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===di.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===di.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+Ot.wg*b,ae-Se,le+b,ae-Ot.wg*Se,le+b,ae),a.bezierCurveTo(le+b,ae+Ot.wg*Se,le+Ot.wg*b,ae+Se,le,ae+Se),a.bezierCurveTo(le-Ot.wg*b,ae+Se,le-b,ae+Ot.wg*Se,le-b,ae),a.bezierCurveTo(le-b,ae-Ot.wg*Se,le-Ot.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===di.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 tt=Math.PI/180;a.arc(De.point1X,De.point1Y,De.radiusX,De.startAngle*tt,(De.startAngle+De.sweepAngle)*tt,0>De.sweepAngle,we!==null?we.endX:le.startX,we!==null?we.endY:le.startY)}else if(we=mu(De,le),tt=we.length,tt===0)a.lineTo(De.centerX,De.centerY);else for(var Ze=0;Ze<tt;Ze++){var ht=we[Ze];Ze===0&&a.lineTo(ht[0],ht[1]),a.bezierCurveTo(ht[2],ht[3],ht[4],ht[5],ht[6],ht[7])}break;case su:if(Ze=tt=0,we!==null&&we.type===sl){if(we=mu(we,le),ht=we.length,ht===0){a.lineTo(De.endX,De.endY);break}we=we[ht-1]||null,we!==null&&(tt=we[6],Ze=we[7])}else tt=we!==null?we.endX:le.startX,Ze=we!==null?we.endY:le.startY;if(we=au(De,le,tt,Ze),tt=we.length,tt===0){a.lineTo(De.endX,De.endY);break}for(Ze=0;Ze<tt;Ze++)ht=we[Ze],a.bezierCurveTo(ht[2],ht[3],ht[4],ht[5],ht[6],ht[7]);break;default:$t("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=ur(),z.type===di.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===di.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:Ot.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:Ot.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(tt=0;tt<we;tt++)Ze=De[tt],Ot.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(tt=0;tt<we;tt++)Ze=De[tt],Ot.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:$t("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===di.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===di.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],Ot.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!Ct.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:Ct.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 st),a instanceof kr){a.Mc()&&$t("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=st.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),st.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!==di.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===di.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),Ot.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===di.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===di.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===di.o)return cn.free(z),this.fill===null?Eu(x,a.x,a.y,b):ec(x,a,b,1<this.strokeWidth,y);$t("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=Ot.Ze[re];typeof le=="string"&&(le=Ot.Ze[le]),typeof le=="function"?(ae=le(null,100,100),k0[re]=ae):$t("Unsupported Figure: "+re)}ee=ae.bounds}re=ee.width,ae=ee.height,le=ee.width;var ce=ee.height;switch(yc(this,!0)){case Ln:E=x=0;break;case bn: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 qr: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 Ln:break;case bn:re=le,ae=ce;break;case er:x=Math.min(le/re,ce/ae),isFinite(x)||(x=1),re*=x,ae*=x;break;default:$t(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&&Ot.$(this.ua.Sk,a-z)&&Ot.$(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?bn: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===di.j)if(1.5>=this.strokeWidth)ce=Ot.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=ur(),a=new st,Ot.Ve(le.startX+E,le.startY+ce,le.endX+E,le.endY+ce,z,ee,re,ae,a)&&y.push(a),a=new st,Ot.Ve(le.startX-E,le.startY-ce,le.endX-E,le.endY-ce,z,ee,re,ae,a)&&y.push(a),a=new st,Ot.Ve(le.startX+E,le.startY+ce,le.startX-E,le.startY-ce,z,ee,re,ae,a)&&y.push(a),a=new st,Ot.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===di.u)ce=Ot.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===di.F){y=cn.allocAt(we.x,we.y,we.width,we.height).Bc(fe,fe);e:if(y.width===0)ce=Ot.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,ae,b);else if(y.height===0)ce=Ot.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===di.o){Se=st.alloc();var Ae=re-z,De=ae-ee,tt=Ae*Ae+De*De,Ze=z,ht=ee;if(0<tt&&we.contains(Ze,ht)&&(Se.x=Ze,Se.y=ht,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,ht-=De;we.contains(Ze,ht);)Ze-=Ae,ht-=De;for(b.x=re,b.y=ae,De=0;De<le.figures.count;De++){var gt=le.figures.s[De],xt=gt.isFilled?Ze:z,Dt=gt.isFilled?ht:ee,qt=gt.segments;we=gt.startX,Ae=gt.startY;for(var zi=we,cr=Ae,tr=0;tr<qt.count;tr++){var gi=qt.s[tr],_n=gi.type,Bo=gi.endX,xo=gi.endY,qa=!1;switch(_n){case ll:zi=Bo,cr=xo;break;case fs:qa=Rm(we,Ae,Bo,xo,xt,Dt,re,ae,Se);break;case Ml:qa=Ot.Eo(we,Ae,gi.point1X,gi.point1Y,gi.point2X,gi.point2Y,Bo,xo,xt,Dt,re,ae,.6,Se);break;case Fu:qa=Ot.Eo(we,Ae,we+2/3*(gi.point1X-we),Ae+2/3*(gi.point1Y-Ae),Bo+2/3*(gi.point1X-Bo),xo+2/3*(gi.point1Y-xo),Bo,xo,xt,Dt,re,ae,.6,Se);break;case sl:case su:_n=gi.type===sl?mu(gi,gt):au(gi,gt,we,Ae);var Ls=_n.length;if(Ls===0){qa=Rm(we,Ae,gi.type===sl?gi.centerX:gi.endX,gi.type===sl?gi.centerY:gi.endY,xt,Dt,re,ae,Se);break}for(xo=null,Bo=0;Bo<Ls;Bo++){if(xo=_n[Bo],Bo===0&&Rm(we,Ae,xo[0],xo[1],xt,Dt,re,ae,Se)){var Jl=Im(xt,Dt,Se,tt,b);Jl<tt&&(tt=Jl,ce=!0)}Ot.Eo(xo[0],xo[1],xo[2],xo[3],xo[4],xo[5],xo[6],xo[7],xt,Dt,re,ae,.6,Se)&&(Jl=Im(xt,Dt,Se,tt,b),Jl<tt&&(tt=Jl,ce=!0))}Bo=xo[6],xo=xo[7];break;default:$t("Unknown Segment type: "+_n)}we=Bo,Ae=xo,qa&&(qa=Im(xt,Dt,Se,tt,b),qa<tt&&(tt=qa,ce=!0)),gi.isClosed&&(Bo=zi,xo=cr,Rm(we,Ae,Bo,xo,xt,Dt,re,ae,Se)&&(gi=Im(xt,Dt,Se,tt,b),gi<tt&&(tt=gi,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,st.free(Se)}else $t("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(Ot.$(a,x)&&Ot.$(y,E)||Ot.$(b,ee)&&Ot.$(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||Ot.$(ae.y,a))&&(ae.y<y||Ot.$(ae.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(ae.x>y||Ot.$(ae.x,y))&&(ae.x<a||Ot.$(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=st.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)))),st.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=st.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 st.free(ee),!0;var re=st.alloc(),ae=st.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)))),st.free(ee),Fo.free(x),st.free(re),st.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(tt,Ze){for(var ht=tt.length,gt=0;gt<ht;gt+=2)if(Ze.zd(tt[gt],tt[gt+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,Zi(a.x,a.y,re,ae)<=b&&Zi(a.x,a.y,le,ae)<=b&&Zi(a.x,a.y,re,ee)<=b&&Zi(a.x,a.y,le,ee)<=b)return!0}if(re=y.startX,ae=y.startY,le=y.endX,ee=y.endY,y.type===di.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===di.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===di.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=Ot.$y(ce,fe,y,z),a*a<=b)return!0}else return!(Zi(y,z,-ce,0)>=b||Zi(y,z,0,-fe)>=b||Zi(y,z,0,fe)>=b||Zi(y,z,ce,0)>=b)}else if(y.type===di.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=ur();if(Ot.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=ur(),Ot.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=ur(),De=0;De<we;De++)if(fe=Se[De],Ae.length=0,Ot.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:$t("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=Ot.Ze[a.figure],typeof E=="string"&&(E=Ot.Ze[E]),E===void 0&&$t("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=Ot.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 Ot.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=di.parse(Ot.um[E],!1),vd[E]=a,x!==E&&(vd[x]=E),E}}return typeof y=="string"?y:y instanceof di?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=di.parse(a);var y=a.normalize();this.geometry=a,this.position=a=st.allocAt(-y.x,-y.y),st.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 Wr(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"?Wr(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"?Wr(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)||$t("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=Ot.Ze[a];typeof x=="function"?x=a:(x=Ot.Ze[a.toLowerCase()])||$t("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?$t("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?$t("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 Ot.Ze)y!==y.toLowerCase()&&a.add(y,Ot.Ze[y]);return a.freeze(),a},Zo.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=Ot.Ze;E[a]=y,E[x]=a},Zo.getArrowheadGeometries=function(){var a=new wr;for(E in Ot.um)if(vd[E]===void 0){var y=di.parse(Ot.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 di&&a.add(x,E)}return a.freeze(),a},Zo.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=di.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||$t("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 Ct.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,Ct),ks.prototype.cloneProtected=function(a){Ct.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(){Ct.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:Ct.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(){Ct.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 ta: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 ta: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(!Ct.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:Ct.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:Ln},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&&Wr(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=Ln,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){Ct.call(this),this.Eg=null,this.qo="",this.Xg=Is,this.Nk=bn,this.Zg=this.Hd=null,this.Mk=Sa,this.Xf=Ln,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,Ct),xc.prototype.cloneProtected=function(a){Ct.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===Ln||a===er||a===La?this.imageStretch=a:Ct.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=ur();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 Ln: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 bn: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,tt=ae*re/De,Ze=x.__goCache;we=null;var ht=kx;if(!b){if(x.sq&&Ze!==void 0&&4<De&&tt>ht*ht)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<tt;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(gt){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(gt){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 ta: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(gt){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(gt){this.en=!1}switch(this.flip){case za:a.scale(-1,1),a.translate(-Math.min(E.width,fe),0);break;case ta: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===bn||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===bn||z===qr?(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||$t("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 Cn),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=ri("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 di,this.mc=null}Kg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new di,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=Ot.Ze;E[a]=y,E[x]=a}Uu("Rectangle",function(a,y,x){a="r"+y+","+x;var E=Ot.Mf[a];return E!==void 0||(E=new di(di.u),E.endX=y,E.endY=x,Ot.Nf<Ot.vm&&(Ot.Mf[a]=E,Ot.Nf++)),E}),Uu("Square",function(a,y,x){a="s"+y+","+x;var E=Ot.Mf[a];return E!==void 0||(E=new di(di.u),E.endX=y,E.endY=x,E.defaultStretch=er,Ot.Nf<Ot.vm&&(Ot.Mf[a]=E,Ot.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=Ot.Mf[E];if(b!==void 0)return b;var z=a*Ot.wg;return b=new di().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)),Ot.Nf<Ot.vm&&(Ot.Mf[E]=b,Ot.Nf++),b}),Uu("Border","RoundedRectangle"),Uu("Ellipse",function(a,y,x){a="e"+y+","+x;var E=Ot.Mf[a];return E!==void 0||(E=new di(di.F),E.endX=y,E.endY=x,E.spot1=nu,E.spot2=ol,Ot.Nf<Ot.vm&&(Ot.Mf[a]=E,Ot.Nf++)),E}),Uu("Circle",function(a,y,x){a="c"+y+","+x;var E=Ot.Mf[a];return E!==void 0||(E=new di(di.F),E.endX=y,E.endY=x,E.spot1=nu,E.spot2=ol,E.defaultStretch=er,Ot.Nf<Ot.vm&&(Ot.Mf[a]=E,Ot.Nf++)),E}),Uu("TriangleRight",function(a,y,x){return new di().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 di().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 di().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 di().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 di().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 di(di.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 di(di.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 di().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 di().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 di().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 di().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 di().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 di().add(new wl(0,.75*x,!1).add(new Ca(fs,.5*y,.25*x)).add(new Ca(fs,y,.75*x)))}),Ot.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=Rt,this.Kq=gn,this.Up=null,this.Cq=127,this.zr=Hn,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"?ui.call(this,a):(ui.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 st(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,ui),zr.prototype.cloneProtected=function(a){ui.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){ui.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(){ui.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 ui?Zf(b,function(ae){hy(re.partManager,ae),bl(re,ae)}):ul(re,b):a===Zs&&y==="elements"&&(b instanceof ui?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(ui.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 ui&&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=ur();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=ui.Link),x.adornedObject=y)}if(x!==null){x.type===ui.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=st.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),st.free(ee)}},zr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},zr.prototype.moveTo=function(a,y,x){a=st.allocAt(a,y),this.move(a,x),st.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=ui.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 st),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=st.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()||Ot.B(y.width,a.width)&&Ot.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 Ki&&!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 st(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 st(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,st.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 st(z,ee),y),E||y.x===z&&y.y===ee||a.g("position",new st(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 Ki&&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,Br('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Br(" 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 Ki&&(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 Ki&&(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(){ui.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Ki&&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 Ki&&(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 Ki&&(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 Ki&&(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 Ki){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 Ki&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Io&&Ym(y,!1),y instanceof Ki&&(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 Ki&&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 Ki&&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 Ki){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 mi)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!==ui.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:Rt},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 mi||(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 mi?(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&&$t("Cannot make a Group a member of itself: "+this.toString()),$t("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 Cn,Cf(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Ki)for(E=E.linksConnected;E.next();)Ug(E.value)}if(this instanceof Ki){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 $t("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 Ki&&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:Hn},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 mi&&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 ui){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 ui&&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 Ki(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 Wn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Ft(Ki,zr),Ki.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=Ki.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 Cn),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},Ki.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Ki.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Ki.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},Ki.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)}},Ki.prototype.qx=function(){var a=new Cn,y=new Cn;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)})}}Ki.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=Ki.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 Cn,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 Cn,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 Cn,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 Cn,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}}}Ki.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ee=Ki.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=ur()),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 Ki)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 Cn;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 Wn,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 Wn,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 Cn;return Cf(y,this,!1,a,!0),y},Ki.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 Cn;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}Ki.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 Cn;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(Ki.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))}}}),Ki.prototype.expandTree=Ki.prototype.expandTree,Ki.prototype.collapseTree=Ki.prototype.collapseTree,Ki.prototype.findTreeParts=Ki.prototype.wz,Ki.prototype.findTreeChildrenNodes=Ki.prototype.Ou,Ki.prototype.findTreeChildrenLinks=Ki.prototype.Qo,Ki.prototype.findTreeLevel=Ki.prototype.uz,Ki.prototype.findTreeParentChain=Ki.prototype.vz,Ki.prototype.findTreeParentNode=Ki.prototype.pg,Ki.prototype.findTreeParentLink=Ki.prototype.kh,Ki.prototype.findCommonTreeParent=Ki.prototype.gz,Ki.prototype.findTreeRoot=Ki.prototype.xz,Ki.prototype.isInTreeOf=Ki.prototype.Nz,Ki.prototype.findPort=Ki.prototype.ns,Ki.prototype.findLinksTo=Ki.prototype.kz,Ki.prototype.findLinksBetween=Ki.prototype.jz,Ki.prototype.findNodesInto=Ki.prototype.Oo,Ki.prototype.findNodesOutOf=Ki.prototype.Po,Ki.prototype.findNodesConnected=Ki.prototype.Mu,Ki.prototype.findLinksInto=Ki.prototype.Sd,Ki.prototype.findLinksOutOf=Ki.prototype.Mo,Ki.prototype.findExternalTreeLinksConnected=Ki.prototype.qx,Ki.prototype.invalidateConnectedLinks=Ki.prototype.Bd,Ki.prototype.invalidateLinkBundle=Ki.prototype.Lz;var Tx=new ln(Ki,"SpreadingNone",10),Jm=new ln(Ki,"SpreadingEvenly",11),Y0=new ln(Ki,"SpreadingPacked",12);Ki.className="Node",Ki.SpreadingNone=Tx,Ki.SpreadingEvenly=Jm,Ki.SpreadingPacked=Y0;function Io(a,y){a===void 0||a instanceof Hl||typeof a=="string"?Ki.call(this,a):(Ki.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Cn,this.$a=null,this.Sc=new $s,this.Sc.group=this,this.gl=new Cn,this.tb=this.$p=null,y&&Object.assign(this,y)}Ft(Io,Ki),Io.prototype.cloneProtected=function(a){Ki.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){Ki.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 Ki)x.Bd(y);else if(x instanceof mi)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&&$t("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ui){var re=b.Nl(function(ae){return ae instanceof oc});re instanceof oc&&(this.$a===null?this.$a=re:this.$a!==re&&$t("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 ui&&this.$a.rg(E)&&(this.$a=null));Ki.prototype.gk.call(this,a,y,x,E,b,z,ee)},Ee.Xl=function(a,y){Ki.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ui.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ui&&(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,Ki.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 mi||y.Va()}),Ki.prototype.Va.call(this)},Ee.si=function(){if(!Ki.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Ki){if(y.isVisible()&&ic(y))return!1}else if(y instanceof mi&&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 mi&&!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 mi&&!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)}Ki.prototype.Lj.call(this)},Io.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=tn(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=tn(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(Ki.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 Cn,E=y.iterator;E.next();){var b=E.value;if(b instanceof Ki)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 Cn,x=a.iterator;x.next();){var E=x.value;if(E instanceof Ki)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 Cn;return a(this,y),y},Ee.Rj=function(){var a=new Cn;return Cf(a,this,!0,0,!0),a.remove(this),a},Ee.Zb=function(a){Ki.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 Ki)z.Bd(y),x.Aj(z,E);else if(z instanceof mi)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 Ki)z.Bd(y),x.Cj(z,E);else if(z instanceof mi)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=st.alloc(),Ki.prototype.move.call(this,a,y),a=new Cn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof mi&&(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 Ki&&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 mi&&(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());st.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&&$t("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){Ct.call(this),this.yb=$l,this.ko=new cn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Ft(oc,Ct),oc.prototype.cloneProtected=function(a){Ct.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)||$t("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=st.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),st.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!==ui.Link&&(re=z.ga(a.category==="Selection"?Rs:a.locationSpot,st.alloc()),a.location=re,st.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(Rs,st.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),st.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 mi&&(!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 mi(a){zr.call(this,ui.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 Wn().freeze(),this.Tg=this.Mg=null,this.ml=new cn,this.ua=new di,this.u=this.o=this.Sf=this.Wf=null,this.su=new st,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Ft(mi,zr),mi.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=mi.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===mi?(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&&$t("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},mi.prototype.computeAngle=function(a,y,x){return mi.computeAngle(y,x)},mi.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=Ot.bp(y),90<a&&270>a&&(a-=180);break;case Ip:a=Ot.bp(y+90),90<a&&270>a&&(a-=180);break;case Rp:a=Ot.bp(y-90),90<a&&270>a&&(a-=180);break;case ov:if(a=Ot.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ot.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=mi.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 Cn),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))},mi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},mi.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=st.allocAt(x.x+E,x.y+b),zr.prototype.move.call(this,a,!1),st.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)},mi.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},mi.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},mi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Oi),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 Ot.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),Ot.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},mi.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),Ot.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=mi.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 st(y,x))},Ee.Kz=function(a,y){this.Nb.Gb(a,y)},Ee.m=function(a,y,x){this.Nb.Gb(a,new st(y,x))},Ee.ne=function(a){this.Nb.add(a)},Ee.yf=function(a,y){this.Nb.add(new st(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 Wn,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new st(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()}}},mi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(pg||(pg=new Ki,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 Ki,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,tt=Ae;Ot.B(ae,0)?tt=0<re?tt-le:tt+le:(ce=-re/ae,fe=Math.sqrt(le*le/(ce*ce+1)),0>le&&(fe=-fe),De=(0>ae?-1:1)*fe+we,tt=ce*(De-we)+Ae),we=z.x+2*re/3,Ae=z.y+2*ae/3;var Ze=we,ht=Ae;Ot.B(ae,0)?ht=0<re?ht-le:ht+le:(Ze=(0>ae?-1:1)*fe+we,ht=ce*(Ze-we)+Ae),this.Fj(),this.ne(z),this.yf(De,tt),this.yf(Ze,ht),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,Ot.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 st),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=Se.ga($m(x),new st),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 gt=le?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ce,E,b),we=De=Ae=0,(ce||!re||le)&&(tt=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>gt&&(we-=180)),0>we?we+=360:360<=we&&(we-=360),le&&(tt+=Math.abs(gt)*(ce?1:2)),we===0?Ae=tt:we===90?De=tt:we===180?Ae=-tt:we===270?De=-tt:(Ae=tt*Math.cos(we*Math.PI/180),De=tt*Math.sin(we*Math.PI/180)),ee.Mc()&&le&&(tt=y.ga(Sa,st.alloc()),Ze=st.allocAt(tt.x+1e3*Ae,tt.y+1e3*De),this.getLinkPointFromPoint(a,y,tt,Ze,!0,fe),st.free(tt),st.free(Ze))),tt=this.getLinkPoint(E,b,x,!1,ce,a,y);var xt=ht=Ze=0;if(ce||!ae||le){var Dt=this.computeEndSegmentLength(E,b,x,!1);xt=this.getLinkDirection(E,b,tt,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>gt&&(xt+=180)),0>xt?xt+=360:360<=xt&&(xt-=360),le&&(Dt+=Math.abs(gt)*(ce?1:2)),xt===0?Ze=Dt:xt===90?ht=Dt:xt===180?Ze=-Dt:xt===270?ht=-Dt:(Ze=Dt*Math.cos(xt*Math.PI/180),ht=Dt*Math.sin(xt*Math.PI/180)),x.Mc()&&le&&(x=b.ga(Sa,st.alloc()),ee=st.allocAt(x.x+1e3*Ze,x.y+1e3*ht),this.getLinkPointFromPoint(E,b,x,ee,!1,tt),st.free(x),st.free(ee))}x=fe,(ce||!re||le)&&(x=new st(fe.x+Ae,fe.y+De)),ee=tt,(ce||!ae||le)&&(ee=new st(tt.x+Ze,tt.y+ht)),!Se&&!ce&&re&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,tt):!Se&&!ce&&ae&&3<z&&this.adjustPoints(1,x,z-1,tt)?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,tt)):(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(tt))}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}mi.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new st),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)}mi.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new st),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=st.alloc(),le=st.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),st.free(ae),st.free(le)}}return re}}return x=y.ga($m(x),st.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=st.alloc(),ee=ee.ga($m(ae),z),b&&(ee=J0(x,ee)),st.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),st.free(x),re},mi.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,st.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?J0(ae,re.copy()):x):(x=st.alloc(),re=re.ga(Sa,x),st.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,st.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},mi.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)},mi.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}mi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ac&&4<this.pointsCount?this.computeMidPoint(new st):(a=y.Zn,a=a!==null?d1(a,this):null,a!==null?a.Zo:y.ga(Sa))},mi.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},mi.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 ui)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 tt=st.alloc(),Ze=st.alloc(),ht=st.alloc(),gt=Fo.alloc();gt.set(Ae),gt.bv(ce.transform),gt.Vj(),Ze.x=Se,Ze.y=De,Ze.transform(gt),tt.x=re,tt.y=De,tt.transform(gt),Ae=!1,Jf(ce,tt,Ze,ht)?Ae=!0:(tt.x=Se,tt.y=we,tt.transform(gt),Jf(ce,tt,Ze,ht)?Ae=!0:(Ze.x=re,Ze.y=we,Ze.transform(gt),Jf(ce,tt,Ze,ht)?Ae=!0:(tt.x=re,tt.y=De,tt.transform(gt),Jf(ce,tt,Ze,ht)&&(Ae=!0)))),Fo.free(gt),st.free(tt),st.free(Ze),st.free(ht),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},mi.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},mi.prototype.computeCorner=function(){if(this.curve===Yc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},mi.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},mi.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},mi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ac&&x.bb()}},mi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=s1;var y=this.Sf;if(y!==null){for(var x=ur(),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},mi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},mi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},mi.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(!Ot.$(le,0)){if(Ot.$(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),Ot.$(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),Ot.$(y,0)||(Ot.$(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,tt=y.y,Ze=.5;le!==0&&(Ze=((b-De)*(b-ee)+(z-tt)*(z-fe))/le);var ht=b+Ze*(ee-b),gt=z+Ze*(fe-z);y=Math.sqrt((De-ht)*(De-ht)+(tt-gt)*(tt-gt)),tt<Ae*(De-ht)+gt&&(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,Ot.B(b.y,z.y)?Ot.B(z.x,ee.x)?ce=y.y:Ot.B(z.y,ee.y)&&(re=y.x):Ot.B(b.x,z.x)&&(Ot.B(z.y,ee.y)?re=y.x:Ot.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,Ot.B(b.y,z.y)?Ot.B(z.x,ee.x)?ce=E.y:Ot.B(z.y,ee.y)&&(re=E.x):Ot.B(b.x,z.x)&&(Ot.B(z.y,ee.y)?re=E.x:Ot.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}},mi.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=st.alloc(),ce=st.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=st.alloc();Xg(we,a.x,a.y)||(Ot.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)):Ot.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)):Ot.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)||(Ot.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)):Ot.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)):Ot.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))),st.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?Ot.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)):Ot.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)&&(Ot.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)):Ot.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())),st.free(le),st.free(ce)}},mi.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)}mi.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},mi.prototype.qc=function(){this.lk=!1,this.v()},mi.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)}}},mi.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&&!Ot.$(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=di.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&&!Ot.$(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=st.allocAt(E,ae),x=st.alloc(),x.assign(this.i(1)),z=st.allocAt(E,ae),b=st.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((!Ot.$(Se.x,we.x)||!Ot.$(we.x,Ae.x))&&(!Ot.$(Se.y,we.y)||!Ot.$(we.y,Ae.y))){var De=ce;isNaN(De)&&(De=this.smoothness/3);var tt=Se.x;Se=Se.y;var Ze=we.x;we=we.y;var ht=Ae.x;Ae=Ae.y;var gt=De*ev(tt,Se,Ze,we);De*=ev(Ze,we,ht,Ae),Ot.$(Se,we)&&Ot.$(Ze,ht)&&(Ze>tt?Ae>we?(z.x=Ze-gt,z.y=we-gt,b.x=Ze+De,b.y=we+De):(z.x=Ze-gt,z.y=we+gt,b.x=Ze+De,b.y=we-De):Ae>we?(z.x=Ze+gt,z.y=we-gt,b.x=Ze-De,b.y=we+De):(z.x=Ze+gt,z.y=we+gt,b.x=Ze-De,b.y=we-De)),Ot.$(tt,Ze)&&Ot.$(we,Ae)&&(we>Se?(ht>Ze?(z.x=Ze-gt,z.y=we-gt,b.x=Ze+De):(z.x=Ze+gt,z.y=we-gt,b.x=Ze-De),b.y=we+De):(ht>Ze?(z.x=Ze-gt,z.y=we+gt,b.x=Ze+De):(z.x=Ze+gt,z.y=we+gt,b.x=Ze-De),b.y=we-De)),(Ot.$(tt,Ze)&&Ot.$(Ze,ht)||Ot.$(Se,we)&&Ot.$(we,Ae))&&(tt=.5*(tt+ht),Se=.5*(Se+Ae),z.x=tt,z.y=Se,b.x=tt,b.y=Se),(fe===1||fe===2&&Ot.$(ee.x,this.i(0).x)&&Ot.$(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),st.free(y),st.free(x),st.free(z),st.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=st.alloc(),z.assign(this.i(0)),b=st.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,tt=-ae,Se=ce,Ze=this.i(le),De=x,Ot.B(z.y,Se.y)&&Ot.B(Se.x,Ze.x))if(Ae=Math.min(ee,Math.abs(Se.x-b.x)/2),Ae=gt=Math.min(Ae,Math.abs(Ze.y-Se.y)/2),Ot.B(Ae,0))gg(this,re,fe,tt,z,Se,De),z.assign(Se);else{var xt=Se.x,Dt=Se.y;we=xt,ht=Dt,Se.x>z.x?xt=Se.x-Ae:xt=Se.x+Ae,Ze.y>Se.y?ht=Se.y+gt:ht=Se.y-gt,Ze=st.allocAt(xt,Dt),gg(this,re,fe,tt,z,Ze,De),st.free(Ze),Km(re,Se.x+fe,Se.y+tt,we+fe,ht+tt),z.h(we,ht)}else Ot.B(z.x,Se.x)&&Ot.B(Se.y,Ze.y)?(Ae=Math.min(ee,Math.abs(Se.y-b.y)/2),Ae=gt=Math.min(Ae,Math.abs(Ze.x-Se.x)/2),Ot.B(gt,0)?(gg(this,re,fe,tt,z,Se,De),z.assign(Se)):(xt=Se.x,Dt=Se.y,we=xt,ht=Dt,Se.y>z.y?Dt=Se.y-Ae:Dt=Se.y+Ae,Ze.x>Se.x?we=Se.x+gt:we=Se.x-gt,Ze=st.allocAt(xt,Dt),gg(this,re,fe,tt,z,Ze,De),st.free(Ze),Km(re,Se.x+fe,Se.y+tt,we+fe,ht+tt),z.h(we,ht))):(gg(this,re,fe,tt,z,Se,De),z.assign(Se));b.assign(ce),fe=le}st.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=di.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),Ot.$(a,0)?y:Ot.$(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;Ot.$(y.x,z.x)&&Ot.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Ot.$(y.x,z.x)&&!Ot.$(y.y,z.y))return x-1;for(var ee=z;Ot.$(y.x,z.x)&&Ot.$(z.x,ee.x)&&(!E||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Ot.$(y.y,z.y)&&Ot.$(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}mi.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(Ot.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(Ot.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 mi){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=Ot.B(a.y,y.y),z=E.pointsCount,ee=E.i(0),re=st.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,tt=le.y;if(Ot.B(ce,Se)){if(!Ot.B(fe,we)&&Ot.B(ee,tt)&&Math.min(fe,we)<ee&&Math.max(fe,we)>ee&&Math.min(Ae,De)<ce&&Math.max(Ae,De)>ce&&!Ot.B(Ae,De)){re.x=ce,re.y=ee,ce=!0;break e}}else if(Ot.B(fe,we)&&Ot.B(Ae,De)&&Math.min(ce,Se)<Ae&&Math.max(ce,Se)>Ae&&Math.min(ee,tt)<fe&&Math.max(ee,tt)>fe&&!Ot.B(ee,tt)){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}st.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()))}mi.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 mi&&(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 mi&&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())}}mi.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},mi.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},mi.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)},mi.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()))}mi.prototype.ph=function(){return!0},un.Object.defineProperties(mi.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&&Wr(a,">= 0",mi,"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&&Wr(a,">= 0",mi,"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),Ot.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);Ot.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 st)}},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);Ot.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):Ot.$(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 Wn,E=0;E<a.length/2;E++)b=new st(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(!Sn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new Wn,E=0;E<a.length;E++)b=a[E],x.add(new st(b.x,b.y).freeze())}}else if(a instanceof Wn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else $t("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)}}}),mi.prototype.invalidateOtherJumpOvers=mi.prototype.Xo,mi.prototype.findClosestSegment=mi.prototype.ez,mi.prototype.updateRoute=mi.prototype.vg,mi.prototype.invalidateRoute=mi.prototype.bb,mi.prototype.rollbackRoute=mi.prototype.rv,mi.prototype.commitRoute=mi.prototype.zf,mi.prototype.startRoute=mi.prototype.uh,mi.prototype.clearPoints=mi.prototype.Fj,mi.prototype.removePoint=mi.prototype.pv,mi.prototype.addPointAt=mi.prototype.yf,mi.prototype.addPoint=mi.prototype.ne,mi.prototype.insertPointAt=mi.prototype.m,mi.prototype.insertPoint=mi.prototype.Kz,mi.prototype.setPointAt=mi.prototype.L,mi.prototype.setPoint=mi.prototype.dd,mi.prototype.getPoint=mi.prototype.i,mi.prototype.getOtherPort=mi.prototype.Cz,mi.prototype.getOtherNode=mi.prototype.To;var pg=null,mg=null,ey=new ln(mi,"Normal",1),Ix=new ln(mi,"Orthogonal",2),Rx=new ln(mi,"AvoidsNodes",6),a1=new ln(mi,"AvoidsNodesStraight",7),ac=new ln(mi,"None",0),Yc=new ln(mi,"Bezier",9),rf=new ln(mi,"JumpGap",10),Zg=new ln(mi,"JumpOver",11),Dp=new ln(mi,"End",17),nv=new ln(mi,"Scale",18),iv=new ln(mi,"Stretch",19),Tp=new ln(mi,"OrientAlong",21),Bp=new ln(mi,"OrientPlus90",22),Op=new ln(mi,"OrientMinus90",23),ty=new ln(mi,"OrientOpposite",24),rv=new ln(mi,"OrientUpright",25),Ip=new ln(mi,"OrientPlus90Upright",26),Rp=new ln(mi,"OrientMinus90Upright",27),ov=new ln(mi,"OrientUpright45",28),s1=16,l1=14,jp=8;mi.className="Link",mi.Normal=ey,mi.Orthogonal=Ix,mi.AvoidsNodes=Rx,mi.AvoidsNodesStraight=a1,mi.None=ac,mi.Bezier=Yc,mi.JumpGap=rf,mi.JumpOver=Zg,mi.End=Dp,mi.Scale=nv,mi.Stretch=iv,mi.OrientAlong=Tp,mi.OrientPlus90=Bp,mi.OrientMinus90=Op,mi.OrientOpposite=ty,mi.OrientUpright=rv,mi.OrientPlus90Upright=Ip,mi.OrientMinus90Upright=Rp,mi.OrientUpright45=ov,mi.EndSegmentStep=8,mi.CurvinessStart=s1,mi.SpacingMin=l1,mi.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=ur(),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,st.alloc()),ae=a.port.ga(eu,st.alloc());for(b=cn.allocAt(re.x,re.y,0,0),b.Ye(ae),st.free(re),st.free(ae),re=st.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(st.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=st.alloc(),ae=st.alloc(),ee=st.alloc(),le=st.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 tt=De.link.computeThickness();switch(De.Nc){case 8:Se+=tt;break;case 2:we+=tt;break;case 1:fe+=tt;break;default:case 4:ce+=tt}}}var Ze=Ae=0,ht=1,gt=De=0;for(tt=0;tt<z.length;tt++){var xt=z[tt];if(xt!==null){if(Ae!==xt.Nc){switch(Ae=xt.Nc,Ae){case 8:var Dt=ee;Ze=le;break;case 2:Dt=le,Ze=re;break;case 1:Dt=re,Ze=ae;break;default:case 4:Dt=ae,Ze=ee}switch(De=Ze.x-Dt.x,gt=Ze.y-Dt.y,Ae){case 8:Se>Math.abs(De)?(ht=Math.abs(De)/Se,Se=Math.abs(De)):ht=1;break;case 2:we>Math.abs(gt)?(ht=Math.abs(gt)/we,we=Math.abs(gt)):ht=1;break;case 1:fe>Math.abs(De)?(ht=Math.abs(De)/fe,fe=Math.abs(De)):ht=1;break;default:case 4:ce>Math.abs(gt)?(ht=Math.abs(gt)/ce,ce=Math.abs(gt)):ht=1}Ze=0}var qt=xt.Zo;if(E===Y0){switch(xt=xt.link.computeThickness(),xt*=ht,qt.set(Dt),Ae){case 8:qt.x=Dt.x+De/2+Se/2-Ze-xt/2;break;case 2:qt.y=Dt.y+gt/2+we/2-Ze-xt/2;break;case 1:qt.x=Dt.x+De/2-fe/2+Ze+xt/2;break;default:case 4:qt.y=Dt.y+gt/2-ce/2+Ze+xt/2}Ze+=xt}else{var zi=.5;E===Jm&&(zi=(xt.Uo+1)/(xt.Gl+1)),qt.x=Dt.x+De*zi,qt.y=Dt.y+gt*zi}}}for(st.free(re),st.free(ae),st.free(ee),st.free(le),Dt=a.pe,z=0;z<Dt.length;z++)E=Dt[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 st,this.Gl=this.Uo=0,this.Zo=new st,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 st(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 Et?(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 Cn;a instanceof Et?(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 mi)&&(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 Ki?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 mi?y.add(ae):!re||!ae.Zc()||ae instanceof Ki||(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 Cn;return a instanceof Et?(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 Cn,this.ye=new Cn,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 Cn,this.ye=new Cn,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 Ki)return!ee.isLinkLabel;if(ee instanceof mi){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 Ki&&(!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 mi&&(!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=ur(),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=ur(),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=ur(),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=ur(),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 Wn;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 Cn,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 st(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Wn,this.mg=new Wn}_l.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Wn,this.mg=new Wn},_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;Sn(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 Cn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Cn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Cn,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 Wn,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:$t("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,tt=0,Ze=0,ht=0;ht<b.length;ht++){var gt=b[ht],xt=this.ni(gt,le),Dt=Math.ceil((xt.width+re)/ce)*ce,qt=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&&tt>z-1||0<ee&&0<tt&&zi-we>ee)&&(E.push(new cn(0,De,ee+re,Ze)),tt=0,Ae=we,De+=Ze,Ze=0),Ze=Math.max(Ze,qt),Se){case jh:xt=-xt.width;break;default:xt=0}switch(gt.moveTo(Ae+xt,De),Se){case jh:Ae-=Dt;break;default:Ae+=Dt}tt++}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=st.alloc(),Ae=0;Ae<b.length;Ae++)Ze=b[Ae],tt=this.ni(Ze,ee),Ze=ef(Ze,Ze.locationObject,Ze.locationSpot,re),le=Math.max(le,Ze.x),De=Math.max(De,tt.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 cr=Ze=this.arrangementOrigin.x;for(ht=this.arrangementOrigin.y,De=0,ae>=le&&(ae-=le),le=gt=0,Dt=Math.max(this.cellSize.height,1),xt=z=0,qt=!0,tt=st.alloc(),zi=0;zi<b.length;zi++){var tr=b[zi],gi=this.ni(tr,ee),_n=ef(tr,tr.locationObject,tr.locationSpot,re);if(0<De)switch(Ae){case jh:cr=(cr-Ze-(gi.width-_n.x))/we,cr=Ot.$(Math.round(cr),cr)?Math.round(cr):Math.floor(cr),cr=cr*we+Ze;break;default:cr=(cr-Ze+_n.x)/we,cr=Ot.$(Math.round(cr),cr)?Math.round(cr):Math.ceil(cr),cr=cr*we+Ze}else switch(Ae){case jh:gt=cr+_n.x+gi.width;break;default:gt=cr-_n.x}switch(Ae){case jh:var Bo=-(cr+_n.x)+gt;break;default:Bo=cr+gi.width-_n.x-gt}if(0<ce&&De>ce-1||0<ae&&0<De&&Bo>ae){for(E.push(new cn(0,qt?ht-z:ht,ae+fe,xt+z+Se)),cr=0;cr<De&&zi!==De;cr++){Bo=b[zi-De+cr];var xo=ef(Bo,Bo.locationObject,Bo.locationSpot,tt);Bo.moveTo(Bo.position.x,Bo.position.y+z-xo.y)}xt+=Se,ht=qt?ht+xt:ht+(xt+z),De=xt=z=0,cr=Ze,qt=!1}switch(cr===Ze&&(le=Ae===jh?Math.max(le,gi.width-_n.x):Math.min(le,-_n.x)),z=Math.max(z,_n.y),xt=Math.max(xt,gi.height-_n.y),isFinite(Dt)&&(xt=Math.max(xt,Math.max(gi.height,Dt)-_n.y)),qt?tr.moveTo(cr-_n.x,ht-_n.y):tr.moveTo(cr-_n.x,ht),Ae){case jh:cr-=_n.x+fe;break;default:cr+=gi.width-_n.x+fe}De++}if(E.push(new cn(0,ht,ae+fe,(qt?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(st.free(re),st.free(tt),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 st(b+y/2-(z+b),ee-x/2)):this.commitLayers(E,new st(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 Cn,this.Dn=new Cn,this.Pa=new Cn,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 Ki){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 mi?this.Dn.add(a):a instanceof Ga||this.Pa.add(a);y=a.data,y===null||a instanceof Ga||(a instanceof mi?this.bf.add(y,a):this.cf.add(y,a))},Ee.pc=function(a){if(a.Ej(),a instanceof Ki){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 mi?this.Dn.remove(a):a instanceof Ga||this.Pa.remove(a);y=a.data,y===null||a instanceof Ga||(a instanceof mi?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)&&$t('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||$t('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 mi||$t('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=ur(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=ur(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=ur(),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,Br('No Group template found for category "'+x+'"'),Br(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(y1||(y1=!0,Br('No Node template found for category "'+x+'"'),Br(" 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,Br('No Link template found for category "'+a+'"'),Br(" 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 Ki?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 Ki?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 Cn;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(Sn(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 Cn;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(Sn(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(Sn(y)&&Sn(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"&&Sn(ee)&&p1(this,ee),y.isModified=!0}else if(x===Zs){var re=a.oldValue;E==="nodeDataArray"&&Sn(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 Cn,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=ur()),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 Cn;for(var z=new wr,ee=E.iterator;ee.next();){var re=ee.value;if(re instanceof mi)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof Ki&&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 Ki){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 mi||ee===null||(ee.containingGroup=z)}else if(y instanceof mi&&z instanceof mi)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 Ki&&(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 mi||(E=b.copyNodeData(E),Sn(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 mi||(b=y.copyNodeData(E)),Sn(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 Ki&&(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 Ki&&(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 tt=this.Kc(a.object);if(tt!==null){var Ze=a.oldValue,ht=a.newValue;Array.isArray(Ze)&&Ze.forEach(function(_n){0<=ht.indexOf(_n)||(_n=y.Vb(_n),_n!==null&&(_n.labeledLink=null))}),Array.isArray(ht)&&ht.forEach(function(_n){_n=y.Vb(_n),_n!==null&&(_n.labeledLink=tt)})}}else if(b==="linkCategory"){var gt=this.Kc(a.object),xt=a.newValue;gt!==null&&typeof xt=="string"&&(gt.category=xt)}else b==="linkDataArray"&&(C1(this,a.oldValue),w1(this,a.newValue));x.isModified=!0}else if(E===Ms){var Dt=a.newValue;if(b==="linkDataArray"&&typeof Dt=="object"&&Dt!==null)P1(this,Dt);else if(b==="linkLabelKeys"&&Af(Dt)){var qt=this.Kc(a.object),zi=this.Vb(Dt);qt!==null&&zi!==null&&(zi.labeledLink=qt)}x.isModified=!0}else if(E===Zs){var cr=a.oldValue;if(b==="linkDataArray"&&typeof cr=="object"&&cr!==null)this.ip(cr);else if(b==="linkLabelKeys"&&Af(cr)){var tr=this.Vb(cr);tr!==null&&(tr.labeledLink=null)}x.isModified=!0}}else if(E===As){var gi=a.propertyName;a.object!==x.model||gi!=="linkFromKeyProperty"&&gi!=="linkToKeyProperty"&&gi!=="linkFromPortIdProperty"&&gi!=="linkToPortIdProperty"&&gi!=="linkLabelKeysProperty"&&gi!=="nodeIsGroupProperty"&&gi!=="nodeGroupKeyProperty"&&gi!=="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 Cn,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 mi){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 Cn().addAll(y);var ee=new Cn;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 Ki&&(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 Ki){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 mi)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 mi){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 Ki&&(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 Ki||(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 Ki&&(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 Ki&&y.mh(z)===x&&gv(this,b,this.ii(z))}Wh(y,x)}a=y.mh(a),a!==void 0&&b instanceof Ki&&(a=this.Vb(a),gv(this,a,b))}},nh.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ki){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 Cn,this.il=new Cn,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 Wn,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&&$t("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 Cn,z=new Cn,ee=new Cn,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(!Sn(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 st||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 di||y instanceof ln)return y;if(y instanceof Wn)ae=new Wn().addAll(Qg(a,y.Fa(),!1,E,b,z)),ee(y,ae);else if(y instanceof Cn)ae=new Cn().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,Sn(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 Cn,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 Cn,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(Sn(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 Cn,z=new Cn,ee=new Cn,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)&&$t("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&&$t("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=Ut.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:$t("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&$t("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(Sn(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:$t("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Sn(a)){for(y in a)if(x=a[y],Sn(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 Wn,E=0;E<x.length/2;E++)b.add(new st(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):Sn(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 st)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 di?(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===di.o&&(y.path=di.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 Wn){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 st(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,Sn(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=di.parse(a.path):x=new di,x.type=Yo(di,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,Sn(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))):$t("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Zs?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Sn(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))):$t("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==vu&&$t("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;$t("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&&$t("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&&$t("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 Cn&&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 Cn,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 Cn&&(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 Cn?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),Sn(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&&Sn(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 st||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 Ct&&(F1=!0,Br('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Br(" 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&&$t("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;$t("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]:Ut.go!==void 0&&Ut.go[a]?Ut.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===""&&$t("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&$t("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];Sn(b)||$t("Model.nodeDataArray must only contain Objects, not: "+b),Ws(b)}for(this.Tc=a,E=new Wn,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=Ut.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:$t("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=Ut[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof yr?y=a:$t("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=di,Mh.Margin=Mo,Mh.Panel=ui,Mh.Point=st,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 Cn}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==="")Br("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&&_i(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&_i(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&_i(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&_i(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&_i(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&_i(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&_i(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&_i(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 Cn,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===""&&$t("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 Cn,z=new Cn,ee=new Cn,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 Cn,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===""&&$t("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 Cn,z=new Cn,ee=new Cn,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)&&$t("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,Sn(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,Sn(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;$t((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 $t(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&&$t(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;$t("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&&$t("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&&$t("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===""&&$t("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),Sn(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;$t("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=ur();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;$t("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];Sn(b)||$t("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Ws(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new Wn,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 Cn,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&&$t("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;$t("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:($t("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=ur();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 st,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 Wn;y.addAll(a.iterator),a=new Wn;var x=new Wn,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 Wn,E.addAll(a),E.addAll(x)):(this.arrangement===kh&&x.reverse(),E=new Wn,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=st.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(st.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=st.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(st.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 st(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:$t("Invalid sorting type.")}return a};function _x(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Wn;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 Wn;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],tt=y[le],Ze=0,ht=0;ht<ee.length;ht++){var gt=z[ee[ht]],xt=z[re[ht]];if(gt<xt){var Dt=gt;gt=xt}else Dt=xt;if(Dt<De&&De<=gt)for(xt=0;xt<tt.length;xt++){var qt=tt[xt];0>x.indexOf(qt)||Dt<z[qt]&&z[qt]<gt||Dt===z[qt]||gt===z[qt]||Ze++}else for(xt=0;xt<tt.length;xt++)qt=tt[xt],0>x.indexOf(qt)||Dt<z[qt]&&z[qt]<gt&&Dt!==z[qt]&>!==z[qt]&&Ze++}for(tt=Ze,ht=Ze=0;ht<y[le].length;ht++)Dt=x.indexOf(y[le][ht]),0<=Dt&&(Dt=Math.abs(De-(Dt>=De?Dt+1:Dt)),Ze+=Dt<x.length+1-Dt?Dt:x.length+1-Dt);for(ht=0;ht<ee.length;ht++)Dt=z[ee[ht]],gt=z[re[ht]],Dt>=De&&Dt++,gt>=De&>++,Dt>gt&&(xt=gt,gt=Dt,Dt=xt),gt-Dt<(x.length+2)/2==(Dt<De&&De<=gt)&&Ze++;(tt<ce||tt===ce&&Ze<fe)&&(ce=tt,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=ur(),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 st(fe.x+fe.width+E.width,fe.y),le[1]=new st(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 st(we.x+fe.width+E.width,we.y),De=new st(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 st(Se.x+Se.width+E.width,Se.y),le[1]=new st(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 st(fe.x+Se.width+E.width,fe.y),Se=new st(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 Wn),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 Wn,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===E&&(re=ee.Hj,re===null&&(re=new Wn,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,Ot.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=Ot.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 st(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 st(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=Ot.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=Ot.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,Ot.sqrt(x*x+a*a)):a+x<y?(E=E+b-ee,a=a+x-y,Ot.sqrt(E*E+a*a)):ee-(E+b):E>ee+re?a>y+z?(x=E-ee-re,a=a-y-z,Ot.sqrt(x*x+a*a)):a+x<y?(E=E-ee-re,a=a+x-y,Ot.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,tt){return De===null||tt===null||De===tt?0:De.centerX-tt.centerX}):y.sort(function(De,tt){return De===null||tt===null||De===tt?0:De.centerY-tt.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"&&$t('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 st,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:$t("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=st.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=st.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),st.free(we),st.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 tt=De.fromPort,Ze=De.toPort;if(tt!==null&&Ze!==null){var ht=De.fromNode;if(Se=De.toNode,ht!==null&&Se!==null){var gt=Nv(this,!0),xt=Nv(this,!1),Dt=this.setsPortSpots?gt:De.computeSpot(!0,tt);Ae=this.setsPortSpots?xt:De.computeSpot(!1,Ze);var qt=De.isOrthogonal;Dt.$c()&&Dt.Hf(xt)&&Ae.$c()&&Ae.Hf(gt)?fe=0:(gt=De.getLinkPoint(ht,tt,Dt,!0,qt,Se,Ze,st.alloc()),xt=De.getLinkDirection(ht,tt,gt,Dt,!0,qt,Se,Ze),st.free(gt),Dt.ys()||xt!==tx(this,E,!0)?this.setsPortSpots&&ht!==null&&ht.ports.count===1&&E.rev&&(fe+=1):fe+=1,Dt=De.getLinkPoint(Se,Ze,Ae,!1,qt,ht,tt,st.alloc()),De=De.getLinkDirection(Se,Ze,Dt,Ae,!1,qt,ht,tt),st.free(Dt),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,tt=Ae.portToPos;Ae=Ae.portFromPos,ce<tt&&(fe>De||fe===De&&we>Ae)&&re++,tt<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,tt=Ae.portToPos,Ae=Ae.portFromPos,we<Ae&&(fe>De||fe===De&&ce>tt)&&re++,Ae<we&&(De>fe||De===fe&&tt>ce)&&re++)}for(z[ee*b+ee]=re,ae=ee+1;ae<b;ae++){var Ze=0,ht=0;if(0<=x){re=E[ee].sourceEdgesArrayAccess;var gt=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<gt.length;Se++)Ae=gt[Se],Ae.valid&&Ae.fromVertex.layer!==y&&(De=Ae.fromVertex.index,Ae=Ae.portFromPos,(fe<De||fe===De&&we<Ae)&&ht++,(De<fe||De===fe&&Ae<we)&&Ze++)}if(0>=x){for(re=E[ee].destinationEdgesArrayAccess,gt=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<gt.length;Se++)Ae=gt[Se],Ae.valid&&Ae.toVertex.layer!==y&&(De=Ae.toVertex.index,tt=Ae.portToPos,(fe<De||fe===De&&ce<tt)&&ht++,(De<fe||De===fe&&tt<ce)&&Ze++)}z[ee*b+ae]=Ze,z[ae*b+ee]=ht}}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,tt=a.nodeMinColumnSpace(E[z],!0),Ze=a.nodeMinColumnSpace(E[z],!1),ht=a.nodeMinColumnSpace(E[z+1],!0),gt=a.nodeMinColumnSpace(E[z+1],!1);tt=Ae-tt+ht,Ze=De-Ze+gt;var xt=E[z].sourceEdges.iterator;for(xt.reset();xt.next();)if(ht=xt.value,gt=ht.fromVertex,ht.valid&>.layer===y){for(ht=0;E[ht]!==gt;)ht++;ht<z&&(Se+=2*(z-ht),we+=2*(z+1-ht)),ht===z+1&&(Se+=1),ht>z+1&&(Se+=4*(ht-z),we+=4*(ht-(z+1)))}for(xt=E[z].destinationEdges.iterator,xt.reset();xt.next();)if(ht=xt.value,gt=ht.toVertex,ht.valid&>.layer===y){for(ht=0;E[ht]!==gt;)ht++;ht===z+1&&(we+=1)}for(xt=E[z+1].sourceEdges.iterator,xt.reset();xt.next();)if(ht=xt.value,gt=ht.fromVertex,ht.valid&>.layer===y){for(ht=0;E[ht]!==gt;)ht++;ht<z&&(Se+=2*(z+1-ht),we+=2*(z-ht)),ht===z&&(we+=1),ht>z+1&&(Se+=4*(ht-(z+1)),we+=4*(ht-z))}for(xt=E[z+1].destinationEdges.iterator,xt.reset();xt.next();)if(ht=xt.value,gt=ht.toVertex,ht.valid&>.layer===y){for(ht=0;E[ht]!==gt;)ht++;ht===z&&(Se+=1)}ht=gt=0,xt=ee[E[z].index];var Dt=re[E[z].index],qt=ee[E[z+1].index],zi=re[E[z+1].index];xt!==-1&&(gt+=Math.abs(xt-Ae),ht+=Math.abs(xt-Ze)),Dt!==-1&&(gt+=Math.abs(Dt-Ae),ht+=Math.abs(Dt-Ze)),qt!==-1&&(gt+=Math.abs(qt-De),ht+=Math.abs(qt-tt)),zi!==-1&&(gt+=Math.abs(zi-De),ht+=Math.abs(zi-tt)),(we<Se-.5||we===Se&&fe<ce-.5||we===Se&&fe===ce&&ht<gt-.5)&&(le=ae=!0,E[z].column=Ze,E[z+1].column=tt,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 tt=b[E].sourceEdges.iterator;tt.next();){var Ze=tt.value,ht=Ze.fromVertex;if(Ze.valid&&ht.layer!==y){var gt=yy(Ze),xt=Ze.portFromColOffset;Ze=Ze.portToColOffset,ht=ht.column,Se+=(Math.abs(ce+Ze-(ht+xt))+1)*gt,Ae+=(Math.abs(we+Ze-(ht+xt))+1)*gt,De+=(Math.abs(fe+Ze-(ht+xt))+1)*gt}}if(0<=x)for(tt=b[E].destinationEdges.iterator;tt.next();)Ze=tt.value,ht=Ze.toVertex,Ze.valid&&ht.layer!==y&&(gt=yy(Ze),xt=Ze.portFromColOffset,Ze=Ze.portToColOffset,ht=ht.column,Se+=(Math.abs(ce+xt-(ht+Ze))+1)*gt,Ae+=(Math.abs(we+xt-(ht+Ze))+1)*gt,De+=(Math.abs(fe+xt-(ht+Ze))+1)*gt);Ze=xt=gt=0,tt=ee[b[E].index],ht=re[b[E].index],tt!==-1&&(gt+=Math.abs(tt-ce),xt+=Math.abs(tt-we),Ze+=Math.abs(tt-fe)),ht!==-1&&(gt+=Math.abs(ht-ce),xt+=Math.abs(ht-we),Ze+=Math.abs(ht-fe)),Ae<Se||Ae===Se&&xt<gt?(le=ae=!0,b[E].column=we):(De<Se||De===Se&&Ze<gt)&&(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=ur(),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 Cn,$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=ur();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(tt,Ze){return tt-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,tt=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&&(tt=ee?fe.focusX:fe.focusY))}else Ae=Iv(fe,ce),De=Ae.portToPos,tt=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&&(tt=ee?fe.focusX:fe.focusY));Se=E?ce.qg+(Se-De)-(we-tt):ce.qg+De-tt,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&&$t("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=ur(),b=ur(),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 st(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 tt=y.pointsCount;4<tt&&y.points.removeRange(2,tt-3)}else if(y.curve===Yc)Se=!0,tt=y.pointsCount,4<tt&&y.points.removeRange(2,tt-3),tt===4&&(De=2);else{tt=y.pointsCount;var Ze=le===hl,ht=ae===hl;2<tt&&Ze&&ht?y.points.removeRange(1,tt-2):3<tt&&Ze&&!ht?y.points.removeRange(1,tt-3):3<tt&&!Ze&&ht?y.points.removeRange(2,tt-2):4<tt&&!Ze&&!ht&&y.points.removeRange(2,tt-3)}if(x.rev){for(;fe!==null&&ce!==fe;){var gt=tt=null;for(Ze=fe.sourceEdges.iterator;Ze.next()&&(ht=Ze.value,ht.link!==x.link||(tt=ht.fromVertex,gt=ht.toVertex,tt.node!==null)););if(tt===null)break;if(tt!==ce){Ze=y.i(De-1).x,ht=y.i(De-1).y;var xt=tt.centerX,Dt=tt.centerY;if(we)this.K===180||this.K===0?De===y.firstPickIndex+1?(y.m(De++,Ze,ht),y.m(De++,Ze,Dt)):(gt!==null?gt.centerY:ht)!==Dt&&(gt=this.Ta[tt.layer-1]+this.Rf.x,y.m(De++,gt,ht),y.m(De++,gt,Dt)):De===y.firstPickIndex+1?(y.m(De++,Ze,ht),y.m(De++,xt,ht)):(gt!==null?gt.centerX:Ze)!==xt&&(gt=this.Ta[tt.layer-1]+this.Rf.y,y.m(De++,Ze,gt),y.m(De++,xt,gt));else if(De===y.firstPickIndex+1){gt=Math.max(10,this.he[fe.layer]);var qt=Math.max(10,this.Ld[fe.layer]);if(Se)this.K===180?xt<=fe.bounds.x?(fe=fe.bounds.x,y.m(De++,fe-gt,Dt),y.m(De++,fe,Dt),y.m(De++,fe+qt,Dt)):(y.m(De++,xt-gt,Dt),y.m(De++,xt,Dt),y.m(De++,xt+qt,Dt)):this.K===90?Dt>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(De++,xt,fe+qt),y.m(De++,xt,fe),y.m(De++,xt,fe-gt)):(y.m(De++,xt,Dt+qt),y.m(De++,xt,Dt),y.m(De++,xt,Dt-gt)):this.K===270?Dt<=fe.bounds.y?(fe=fe.bounds.y,y.m(De++,xt,fe-gt),y.m(De++,xt,fe),y.m(De++,xt,fe+qt)):(y.m(De++,xt,Dt-gt),y.m(De++,xt,Dt),y.m(De++,xt,Dt+qt)):this.K===0&&(xt>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(De++,fe+qt,Dt),y.m(De++,fe,Dt),y.m(De++,fe-gt,Dt)):(y.m(De++,xt+qt,Dt),y.m(De++,xt,Dt),y.m(De++,xt-gt,Dt)));else{y.m(De++,Ze,ht);var zi=0;this.K===180||this.K===0?((this.K===180?xt>=fe.bounds.right:xt<=fe.bounds.x)&&(zi=(this.K===0?-gt:qt)/2),y.m(De++,Ze+zi,Dt)):((this.K===270?Dt>=fe.bounds.bottom:Dt<=fe.bounds.y)&&(zi=(this.K===90?-gt:qt)/2),y.m(De++,xt,ht+zi)),y.m(De++,xt,Dt)}}else gt=Math.max(10,this.he[tt.layer]),qt=Math.max(10,this.Ld[tt.layer]),Se?this.K===180?(y.m(De++,xt-gt-Ae,Dt),y.m(De++,Math.min(xt-gt+Ae/2,xt),Dt),y.m(De++,xt,Dt),y.m(De++,xt,Dt),y.m(De++,Math.max(xt+qt-Ae/2,xt),Dt),y.m(De++,xt+qt+Ae,Dt)):this.K===90?(y.m(De++,xt,Dt+qt+Ae),y.m(De++,xt,Math.max(Dt+qt-Ae/2,Dt)),y.m(De++,xt,Dt),y.m(De++,xt,Dt),y.m(De++,xt,Math.min(Dt-gt+Ae/2,Dt)),y.m(De++,xt,Dt-gt-Ae)):this.K===270?(y.m(De++,xt,Dt-gt-Ae),y.m(De++,xt,Math.min(Dt-gt+Ae/2,Dt)),y.m(De++,xt,Dt),y.m(De++,xt,Dt),y.m(De++,xt,Math.max(Dt+qt-Ae/2,Dt)),y.m(De++,xt,Dt+qt+Ae)):(y.m(De++,xt+qt+Ae,Dt),y.m(De++,Math.max(xt+qt-Ae/2,xt),Dt),y.m(De++,xt,Dt),y.m(De++,xt,Dt),y.m(De++,Math.min(xt-gt+Ae/2,xt),Dt),y.m(De++,xt-gt-Ae,Dt)):y.m(De++,xt,Dt)}fe=tt}(re===null||le!==hl||we)&&(Ze=y.i(De-1).x,ht=y.i(De-1).y,xt=y.i(De).x,Dt=y.i(De).y,we?(Ae=this.Ld[ce.layer],this.K===180||this.K===0?(we=ht,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,ht),y.m(De++,fe,we)),y.m(De++,xt,we)):(we=Ze,we>=ce.bounds.x&&we<=ce.bounds.right&&(this.K===270?Dt>=ce.bounds.y:Dt<=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,Dt)),y.m(De++,xt,Dt)):Se?(gt=Math.max(10,this.he[ce.layer]),qt=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,ht),y.L(De-1,fe+qt,ht)):this.K===90&&Dt<=ce.bounds.bottom?(fe=ce.bounds.y,y.L(De-2,Ze,fe),y.L(De-1,Ze,fe-gt)):this.K===270&&Dt>=ce.bounds.y?(fe=ce.bounds.y+ce.bounds.height,y.L(De-2,Ze,fe),y.L(De-1,Ze,fe+qt)):this.K===0&&xt<=ce.bounds.right&&(fe=ce.bounds.x,y.L(De-2,fe,ht),y.L(De-1,fe-gt,ht))):(gt=Math.max(10,this.he[ce.layer]),qt=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?qt:-gt)/2),y.m(De++,xt+we,ht)):((this.K===270?Dt<=ce.bounds.y:Dt>=ce.bounds.bottom)&&(we=(this.K===90?qt:-gt)/2),y.m(De++,Ze,Dt+we)),y.m(De++,xt,Dt)))}else{for(;ce!==null&&ce!==fe;){for(gt=tt=null,ce=ce.destinationEdges.iterator;ce.next()&&(Ze=ce.value,Ze.link!==x.link||(tt=Ze.toVertex,gt=Ze.fromVertex,gt.node!==null&&(gt=null),tt.node!==null)););if(tt===null)break;tt!==fe&&(Ze=y.i(De-1).x,ht=y.i(De-1).y,xt=tt.centerX,Dt=tt.centerY,we?this.K===180||this.K===0?(gt!==null?gt.centerY:ht)!==Dt&&(gt=this.Ta[tt.layer]+this.Rf.x,De===y.firstPickIndex+1&&(gt=this.K===0?Math.max(gt,Ze):Math.min(gt,Ze)),y.m(De++,gt,ht),y.m(De++,gt,Dt)):(gt!==null?gt.centerX:Ze)!==xt&&(gt=this.Ta[tt.layer]+this.Rf.y,De===y.firstPickIndex+1&&(gt=this.K===90?Math.max(gt,ht):Math.min(gt,ht)),y.m(De++,Ze,gt),y.m(De++,xt,gt)):(gt=Math.max(10,this.he[tt.layer]),qt=Math.max(10,this.Ld[tt.layer]),Se?this.K===180?(y.m(De++,xt+qt+Ae,Dt),y.m(De++,Math.max(xt+qt-Ae/2,xt),Dt),y.m(De++,xt,Dt),y.m(De++,xt,Dt),y.m(De++,Math.min(xt-gt+Ae/2,xt),Dt),y.m(De++,xt-gt-Ae,Dt)):this.K===90?(y.m(De++,xt,Dt-gt-Ae),y.m(De++,xt,Math.min(Dt-gt+Ae/2,Dt)),y.m(De++,xt,Dt),y.m(De++,xt,Dt),y.m(De++,xt,Math.max(Dt+qt-Ae/2,Dt)),y.m(De++,xt,Dt+qt+Ae)):this.K===270?(y.m(De++,xt,Dt+qt+Ae),y.m(De++,xt,Math.max(Dt+qt-Ae/2,Dt)),y.m(De++,xt,Dt),y.m(De++,xt,Dt),y.m(De++,xt,Math.min(Dt-gt+Ae/2,Dt)),y.m(De++,xt,Dt-gt-Ae)):(y.m(De++,xt-gt-Ae,Dt),y.m(De++,Math.min(xt-gt+Ae/2,xt),Dt),y.m(De++,xt,Dt),y.m(De++,xt,Dt),y.m(De++,Math.max(xt+qt-Ae/2,xt),Dt),y.m(De++,xt+qt+Ae,Dt)):this.K===180?(y.m(De++,xt+qt,Dt),y.m(De++,xt-gt,Dt)):this.K===90?(y.m(De++,xt,Dt-gt),y.m(De++,xt,Dt+qt)):this.K===270?(y.m(De++,xt,Dt+qt),y.m(De++,xt,Dt-gt)):(y.m(De++,xt-gt,Dt),y.m(De++,xt+qt,Dt)))),ce=tt}we&&(Ze=y.i(De-1).x,ht=y.i(De-1).y,xt=y.i(De).x,Dt=y.i(De).y,this.K===180||this.K===0?ht!==Dt&&(gt=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++,gt,ht),y.m(De++,gt,Dt)):Ze!==xt&&(gt=this.K===90?Math.min(Math.max((Dt+ht)/2,this.Ta[fe.layer]+this.Rf.y),Dt):Math.max(Math.min((Dt+ht)/2,this.Ta[fe.layer]+this.Rf.y),Dt),y.m(De++,Ze,gt),y.m(De++,xt,gt)))}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 Wn,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)&&$t("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()):$t("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;$t("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 Cn,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:$t("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 Ki)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof mi){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 Et?(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 Et&&(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 Cn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Ki?(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 Cn,this.isValidLayout=!0};function rw(a){var y=new Cn;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:$t("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:$t("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 Wn,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 Wn,E=y.sourceVertexes;E.next();)b=E.value,cx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:$t("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:$t("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=st.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(st.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 tt=a.height,Ze=0,ht=0,gt=0,xt=null,Dt=null,qt=0,zi=0,cr=0,tr=0,gi=0,_n=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:ht=135>b?px(this,a,ee,xo,Ze,ht):mx(this,a,ee,xo,Ze,ht),xo=ht.x,Ze=ht.width,ht=ht.height;break;case lf:for(xt=0;xt<re;xt++)Dt=ee[xt],fe=Dt.Da,gt=_n===0?0:Ae,y?(Dt.S.h(z-fe.width,tr+gt),Ze=Math.max(Ze,fe.width),ht=Math.max(ht,tr+gt+fe.height),tr+=gt+fe.height):(Dt.S.h(cr+gt,z-fe.height),Ze=Math.max(Ze,cr+gt+fe.width),ht=Math.max(ht,fe.height),cr+=gt+fe.width),_n++;break;case jd:for(xt=0;xt<re;xt++)Dt=ee[xt],z=Dt.Da,fe=_n===0?0:Ae,y?(Dt.S.h(Se/2+a.focus.x,tr+fe),Ze=Math.max(Ze,z.width),ht=Math.max(ht,tr+fe+z.height),tr+=fe+z.height):(Dt.S.h(cr+fe,Se/2+a.focus.y),Ze=Math.max(Ze,cr+fe+z.width),ht=Math.max(ht,z.height),cr+=fe+z.width),_n++}xt=Ac(this,2),Dt=Ac(this,2),y?(xt[0].h(0,0),xt[1].h(0,ht),Dt[0].h(Ze,0)):(xt[0].h(0,0),xt[1].h(Ze,0),Dt[0].h(0,ht)),Dt[1].h(Ze,ht)}else for(qa=0;qa<re;qa++){var Ls=ee[qa],Jl=Ls.Da;if(y){0<fe&&0<_n&&cr+Se+Jl.width>fe&&(cr<z&&tg(a,ae,z-cr,0,Bo,qa-1),gi++,_n=0,Bo=qa,gt=ht,cr=0,tr=135<b?-ht-Ae:ht+Ae),jv(this,Ls,0,tr);var ru=0;if(_n===0)xt=Ls.Yo,Dt=Ls.kp,qt=Jl.width,zi=Jl.height,(xt===null||Dt===null||b!==Fh(Ls))&&(xt=Ac(this,2),Dt=Ac(this,2),xt[0].h(0,0),xt[1].h(0,zi),Dt[0].h(qt,0),Dt[1].h(qt,zi));else{var Ju=ur();zi=vx(this,a,Ls,xt,Dt,qt,zi,Ju),ru=zi.x,xt=Ju[0],Dt=Ju[1],qt=zi.width,zi=zi.height,Nr(Ju),cr<Jl.width&&0>ru&&(xg(a,-ru,0,Bo,qa-1),zv(xt,-ru,0),zv(Dt,-ru,0),ru=0)}Ls.S.h(ru,tr),Ze=Math.max(Ze,qt),ht=Math.max(ht,gt+(gi===0?0:Ae)+Jl.height),cr=qt}else 0<fe&&0<_n&&tr+Se+Jl.height>fe&&(tr<z&&tg(a,ae,0,z-tr,Bo,qa-1),gi++,_n=0,Bo=qa,gt=Ze,tr=0,cr=135<b?-Ze-Ae:Ze+Ae),jv(this,Ls,cr,0),ru=0,_n===0?(xt=Ls.Yo,Dt=Ls.kp,qt=Jl.width,zi=Jl.height,(xt===null||Dt===null||b!==Fh(Ls))&&(xt=Ac(this,2),Dt=Ac(this,2),xt[0].h(0,0),xt[1].h(qt,0),Dt[0].h(0,zi),Dt[1].h(qt,zi))):(Ju=ur(),zi=vx(this,a,Ls,xt,Dt,qt,zi,Ju),ru=zi.x,xt=Ju[0],Dt=Ju[1],qt=zi.width,zi=zi.height,Nr(Ju),tr<Jl.height&&0>ru&&(xg(a,0,-ru,Bo,qa-1),zv(xt,0,-ru),zv(Dt,0,-ru),ru=0)),Ls.S.h(cr,ru),ht=Math.max(ht,zi),Ze=Math.max(Ze,gt+(gi===0?0:Ae)+Jl.width),tr=zi;_n++}switch(0<gi&&(y?(ht+=Math.max(0,x),cr<Ze&&tg(a,ae,Ze-cr,0,Bo,re-1),0<De&&(le||xg(a,De,0,0,re-1),Ze+=De)):(Ze+=Math.max(0,x),tr<ht&&tg(a,ae,0,ht-tr,Bo,re-1),0<De&&(le||xg(a,0,De,0,re-1),ht+=De))),De=le=0,ae){case ap:y?le+=Ze/2-a.focus.x-we/2:De+=ht/2-a.focus.y-we/2;break;case Pg:0<gi?y?le+=Ze/2-a.focus.x-we/2:De+=ht/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,ht+=we);break;case Cd:y?(le+=Ze-a.width+we,Ze+=we):(De+=ht-a.height+we,ht+=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+=ht+Se/2-a.focus.y;break;case jd:break;default:ht=this.customAlignment(a,le,De,Ze,ht),le=ht[0],De=ht[1],Ze=ht[2],ht=ht[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?-ht:-xo.Da.height)+xo.la.y-x:tt+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+=ht+x),ht+=tt+x,ae===jd&&(ee+=Se/2+a.focus.x),re+=tt+x):(135<b&&(le+=Ze+x),Ze+=E+x,ht=By(a,ht,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+=ht+x),ht=Math.max(Math.max(ht,tt),ht+tt+x),re+=tt+x):(135<b&&(le+=Ze+x),Ze=Math.max(Math.max(Ze,E),Ze+E+x),a.comments===null?tt>ht&&(ht=Oy(ae,0,tt-ht),ee=ht.x,re=ht.y,ht=tt,De=0):ht=By(a,ht,De),0>De&&(re-=De,De=0),ee+=E+x),0<gi)b=Ac(this,4),gi=Ac(this,4),y?(b[2].h(0,tt+x),b[3].h(b[2].x,ht),gi[2].h(Ze,b[2].y),gi[3].h(gi[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Ze,b[2].y),gi[2].h(b[2].x,ht),gi[3].h(b[3].x,gi[2].y));else{for(b=Ac(this,xt.length+2),gi=Ac(this,Dt.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<Dt.length;ae++)ce=Dt[ae],gi[ae+2].h(ce.x+ee,ce.y+re)}y?(b[0].h(le,0),b[1].h(b[0].x,tt),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])),gi[0].h(le+E,0),gi[1].h(gi[0].x,tt),gi[2].y<gi[1].y&&(gi[2].x<gi[0].x?gi[2].assign(gi[1]):gi[1].assign(gi[2])),gi[3].y<gi[2].y&&(gi[3].x<gi[0].x?gi[3].assign(gi[2]):gi[2].assign(gi[3])),b[2].y-=x/2,gi[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])),gi[0].h(0,De+tt),gi[1].h(E,gi[0].y),gi[2].x<gi[1].x&&(gi[2].y<gi[0].y?gi[2].assign(gi[1]):gi[1].assign(gi[2])),gi[3].x<gi[2].x&&(gi[3].y<gi[0].y?gi[3].assign(gi[2]):gi[2].assign(gi[3])),b[2].x-=x/2,gi[2].x-=x/2),Hh(this,xt),Hh(this,Dt),a.Yo=b,a.kp=gi,a.la.h(le,De),a.Da.h(Ze,ht)}break;default:$t("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,tt=y.rowSpacing,Ze=0;(ce||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(Ze=Math.max(0,y.rowIndent)),ce=y.width;var ht=y.height,gt=0,xt=0,Dt=0,qt=0,zi=0,cr=0,tr=0,gi=0,_n=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?_n=Math.max(_n,(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&&(_n=x?b[0].Da.width:b[0].Da.height);if(re)switch(le){case sf:case Ed:xt=135>E?px(a,y,b,_n,gt,xt):mx(a,y,b,_n,gt,xt),_n=xt.x,gt=xt.width,xt=xt.height;break;case lf:for(Se=0;Se<ee;Se++)De=b[Se],Dt=De.Da,Bo=tr===0?0:tt,x?(De.S.h(z-Dt.width,zi+Bo),gt=Math.max(gt,Dt.width),xt=Math.max(xt,zi+Bo+Dt.height),zi+=Bo+Dt.height):(De.S.h(qt+Bo,z-Dt.height),gt=Math.max(gt,qt+Bo+Dt.width),xt=Math.max(xt,Dt.height),qt+=Bo+Dt.width),tr++;break;case jd:for(z=0;z<ee;z++)Se=b[z],De=Se.Da,Dt=tr===0?0:tt,x?(Se.S.h(we/2+y.focus.x,zi+Dt),gt=Math.max(gt,De.width),xt=Math.max(xt,zi+Dt+De.height),zi+=Dt+De.height):(Se.S.h(qt+Dt,we/2+y.focus.y),gt=Math.max(gt,qt+Dt+De.width),xt=Math.max(xt,De.height),qt+=Dt+De.width),tr++}else for(Bo=0;Bo<ee;Bo++)xo=b[Bo],qa=xo.Da,x?(0<Se&&0<tr&&qt+we+qa.width>Se&&(qt<z&&tg(y,le,z-qt,0,gi,Bo-1),cr++,tr=0,gi=Bo,Dt=xt,qt=0,zi=135<E?-xt-tt:xt+tt),Ls=tr===0?De:we,jv(a,xo,0,zi),xo.S.h(qt+Ls,zi),gt=Math.max(gt,qt+Ls+qa.width),xt=Math.max(xt,Dt+(cr===0?0:tt)+qa.height),qt+=Ls+qa.width):(0<Se&&0<tr&&zi+we+qa.height>Se&&(zi<z&&tg(y,le,0,z-zi,gi,Bo-1),cr++,tr=0,gi=Bo,Dt=gt,zi=0,qt=135<E?-gt-tt:gt+tt),Ls=tr===0?De:we,jv(a,xo,qt,0),xo.S.h(qt,zi+Ls),xt=Math.max(xt,zi+Ls+qa.height),gt=Math.max(gt,Dt+(cr===0?0:tt)+qa.width),zi+=Ls+qa.height),tr++;switch(0<cr&&(x?(xt+=Math.max(0,ae),qt<gt&&tg(y,le,gt-qt,0,gi,ee-1),0<Ze&&(fe||xg(y,Ze,0,0,ee-1),gt+=Ze)):(gt+=Math.max(0,ae),zi<xt&&tg(y,le,0,xt-zi,gi,ee-1),0<Ze&&(fe||xg(y,0,Ze,0,ee-1),xt+=Ze))),Ze=fe=0,le){case ap:x?fe+=gt/2-y.focus.x-Ae/2:Ze+=xt/2-y.focus.y-Ae/2;break;case Pg:0<cr?x?fe+=gt/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,gt+=Ae):(Ze-=Ae,xt+=Ae);break;case Cd:x?(fe+=gt-y.width+Ae,gt+=Ae):(Ze+=xt-y.height+Ae,xt+=Ae);break;case sf:case Ed:x?1<ee?fe+=_n+we/2-y.focus.x:fe+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?Ze+=_n+we/2-y.focus.y:Ze+=b[0].focus.y-y.focus.y+b[0].la.y;break;case lf:x?fe+=gt+we/2-y.focus.x:Ze+=xt+we/2-y.focus.y;break;case jd:break;default:a=a.customAlignment(y,fe,Ze,gt,xt),fe=a[0],Ze=a[1],gt=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:ht+ae+Ae.la.y)):Ae.S.h(Ae.S.x+(135<E?(re?-gt:-Ae.Da.width)+Ae.la.x-ae:ce+ae+Ae.la.x),Ae.S.y+Ae.la.y-Ze);x?(gt=Ty(y,gt,fe),0>fe&&(fe=0),135<E&&(Ze+=xt+ae),xt=Math.max(Math.max(xt,ht),xt+ht+ae)):(135<E&&(fe+=gt+ae),gt=Math.max(Math.max(gt,ce),gt+ce+ae),xt=By(y,xt,Ze),0>Ze&&(Ze=0)),y.la.h(fe,Ze),y.Da.h(gt,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,tt=ce===0?0:ae;if(le){var Ze=a.computeBusNodeSpacing(Ae)-re;Ae.S.h(E-(De.width+Ze),Se+tt),b=Math.max(b,De.width+Ze),z=Math.max(z,Se+tt+De.height),Se+=tt+De.height}else Ze=a.computeBusNodeSpacing(Ae)-re,Ae.S.h(fe+tt,E-(De.height+Ze)),z=Math.max(z,De.height+Ze),b=Math.max(b,fe+tt+De.width),fe+=tt+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){tt=x[De],Ze=tt.Da;var ht=ce===0?0:ae;if(le){var gt=a.computeBusNodeSpacing(tt)-re;tt.S.h(fe+gt,Se+ht),b=Math.max(b,fe+Ze.width+gt),z=Math.max(z,Se+ht+Ze.height),Se+=ht+Ze.height}else gt=a.computeBusNodeSpacing(tt)-re,tt.S.h(fe+ht,Se+gt),b=Math.max(b,fe+ht+Ze.width),z=Math.max(z,Se+Ze.height+gt),fe+=ht+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,tt=ce===0?0:ae;if(le){var Ze=a.computeBusNodeSpacing(Ae)-re;Se-=tt+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-=tt+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){tt=x[De],Ze=tt.Da;var ht=ce===0?0:ae;if(le){var gt=a.computeBusNodeSpacing(tt)-re;Se-=ht+Ze.height,tt.S.h(fe+gt,Se),b=Math.max(b,fe+Ze.width+gt),z=Math.max(z,Math.abs(Se))}else gt=a.computeBusNodeSpacing(tt)-re,fe-=ht+Ze.width,tt.S.h(fe,Se+gt),z=Math.max(z,Se+Ze.height+gt),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:$t("Unhandled alignment value "+a.toString())}return new st(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:$t("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 tt=we[b];ae=tt.x,le=tt.y,ae+=E;var Ze=z;x+1<fe.length&&(Ze=fe[x+1]);var ht=tt;tt=ht.x,ht=ht.y,b+1<we.length&&(ht=we[b+1],tt=ht.x,ht=ht.y,tt+=E);var gt=Se;z.y===le?gt=ae-z.x:z.y>le&&z.y<ht?gt=ae+(z.y-le)/(ht-le)*(tt-ae)-z.x:le>z.y&&le<Ze.y&&(gt=ae-(z.x+(le-z.y)/(Ze.y-z.y)*(Ze.x-z.x))),gt<Se&&(Se=gt),Ze.y<=z.y?x++:ht<=le?b++:(Ze.y<=ht&&x++,ht<=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],tt=we[b],ae=tt.x,le=tt.y,le+=Se,Ze=z,x+1<fe.length&&(Ze=fe[x+1]),ht=tt,tt=ht.x,ht=ht.y,b+1<we.length&&(ht=we[b+1],tt=ht.x,ht=ht.y,ht+=Se),gt=E,z.x===ae?gt=le-z.y:z.x>ae&&z.x<tt?gt=le+(z.x-ae)/(tt-ae)*(ht-le)-z.y:ae>z.x&&ae<Ze.x&&(gt=le-(z.y+(ae-z.x)/(Ze.x-z.x)*(Ze.y-z.y))),gt<E&&(E=gt),Ze.x<=z.x?x++:tt<=ae?b++:(Ze.x<=tt&&x++,tt<=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 st;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:$t("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:$t("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 st(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new st(-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()):$t("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 st(0,0),this.Da=new fn(0,0),this.la=new st(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 st(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:$t("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))):$t("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 nn,this.mouseDownTools),this.gb("Relinking",new Be,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 vn,this.mouseMoveTools),this.gb("Panning",new Mn,this.mouseMoveTools),this.gb("ContextMenu",new Wi,this.mouseUpTools),this.gb("TextEditing",new bi,this.mouseUpTools),this.gb("ClickCreating",new Bn,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=Ut.go,Vy={get licenseKey(){return Et.licenseKey},set licenseKey(a){Et.licenseKey=a},get version(){return Et.version},Group:Io,EnumValue:ln,List:Wn,Set:Cn,Map:wr,Point:st,Size:fn,Rect:cn,Margin:Mo,Spot:kr,Geometry:di,PathFigure:wl,PathSegment:Ca,InputEvent:Gl,DiagramEvent:tc,ChangedEvent:Bs,Model:yr,GraphLinksModel:Ta,TreeModel:uc,Binding:Dl,Transaction:Pl,UndoManager:js,CommandHandler:$e,Tool:_r,DraggingTool:Ko,DraggingInfo:Ch,DraggingOptions:oe,LinkingBaseTool:oo,LinkingTool:ja,RelinkingTool:Be,LinkReshapingTool:it,ResizingTool:Ye,RotatingTool:kt,ClickSelectingTool:_t,ActionTool:nn,ClickCreatingTool:Bn,HTMLInfo:Xn,ContextMenuTool:Wi,DragSelectingTool:vn,PanningTool:Mn,TextEditingTool:bi,ToolManager:xs,Animation:Wt,AnimationManager:Ea,AnimationTrigger:Ai,Layer:$n,Diagram:Et,Palette:he,Overview:pe,Brush:as,GraphObject:Ct,Panel:ui,RowColumnDefinition:jl,Shape:Zo,TextBlock:ks,Picture:xc,Part:zr,Adornment:Ga,Node:Ki,Link:mi,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&&Br("WARNING: a `go` object on the root object is already defined. "+("Debug"in Uv?"debug ":"")+"version: "+Uv.version+", replaced with version: "+Vy.version),Et.prototype.go=Vy,Ut.go=Vy,typeof Dn.exports=="object"&&(Dn.exports=typeof be.g!="undefined"?be.g.go:self.go)}();var ve=typeof be.g!="undefined"?be.g.go:self.go;const ot=typeof be.g!="undefined"?be.g.go:self.go,wt=ot.Group,Qt=ot.EnumValue,Nt=ot.List,Re=ot.Set,Je=ot.Map,pt=ot.Point,mt=ot.Size,yt=ot.Rect,Vt=ot.Margin,ct=ot.Spot,We=ot.Geometry,Te=ot.PathFigure,ne=ot.PathSegment,te=ot.InputEvent,ue=ot.DiagramEvent,se=ot.ChangedEvent,ge=ot.Model,me=ot.GraphLinksModel,xe=ot.TreeModel,Pe=ot.Binding,Ke=ot.Transaction,nt=ot.UndoManager,ft=ot.CommandHandler,qe=ot.Tool,at=ot.DraggingTool,jt=ot.DraggingInfo,Mt=ot.LinkingBaseTool,bt=ot.LinkingTool,Bt=ot.RelinkingTool,Ht=ot.LinkReshapingTool,Jn=ot.ResizingTool,qn=ot.RotatingTool,sn=ot.ClickSelectingTool,Nn=ot.ActionTool,lt=ot.ClickCreatingTool,Ge=ot.HTMLInfo,Ne=ot.ContextMenuTool,Rn=ot.DragSelectingTool,ai=ot.PanningTool,Zt=ot.TextEditingTool,ci=ot.ToolManager,On=ot.Animation,Mi=ot.AnimationManager,Xt=ot.AnimationTrigger,At=ot.Layer,on=ot.Diagram,Si=ot.Palette,Gt=ot.Overview,Xe=ot.Brush,ke=ot.GraphObject,Me=ot.Panel,He=ot.RowColumnDefinition,et=ot.Shape,Oe=ot.TextBlock,ut=ot.TextBlockMetrics,Vn=ot.Picture,jn=ot.Part,An=ot.Adornment,Pn=ot.Node,si=ot.Link,mn=ot.Placeholder,Fi=ot.Layout,Vi=ot.LayoutNetwork,Ir=ot.LayoutVertex,Qi=ot.LayoutEdge,Di=ot.GridLayout,$r=ot.PanelLayout,Yi=ot.CircularLayout,hr=ot.CircularNetwork,dr=ot.CircularVertex,kn=ot.CircularEdge,Ii=ot.ForceDirectedLayout,ra=ot.ForceDirectedNetwork,Un=ot.ForceDirectedVertex,Kr=ot.ForceDirectedEdge,ia=ot.LayeredDigraphLayout,sa=ot.LayeredDigraphNetwork,Wa=ot.LayeredDigraphVertex,ma=ot.LayeredDigraphEdge,Ha=ot.TreeLayout,da=ot.TreeNetwork,la=ot.TreeVertex,No=ot.TreeEdge,ti=ot.version},19575:function(Dn,ei,be){var ve,ot;(function(wt,Qt){Dn.exports=Qt(wt)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof be.g!="undefined"?be.g:this,function(wt){"use strict";wt=wt||{};var Qt=wt.Base64,Nt="2.6.4",Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=function(Bt){for(var Ht={},Jn=0,qn=Bt.length;Jn<qn;Jn++)Ht[Bt.charAt(Jn)]=Jn;return Ht}(Re),pt=String.fromCharCode,mt=function(Bt){if(Bt.length<2){var Ht=Bt.charCodeAt(0);return Ht<128?Bt:Ht<2048?pt(192|Ht>>>6)+pt(128|Ht&63):pt(224|Ht>>>12&15)+pt(128|Ht>>>6&63)+pt(128|Ht&63)}else{var Ht=65536+(Bt.charCodeAt(0)-55296)*1024+(Bt.charCodeAt(1)-56320);return pt(240|Ht>>>18&7)+pt(128|Ht>>>12&63)+pt(128|Ht>>>6&63)+pt(128|Ht&63)}},yt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Vt=function(Bt){return Bt.replace(yt,mt)},ct=function(Bt){var Ht=[0,2,1][Bt.length%3],Jn=Bt.charCodeAt(0)<<16|(Bt.length>1?Bt.charCodeAt(1):0)<<8|(Bt.length>2?Bt.charCodeAt(2):0),qn=[Re.charAt(Jn>>>18),Re.charAt(Jn>>>12&63),Ht>=2?"=":Re.charAt(Jn>>>6&63),Ht>=1?"=":Re.charAt(Jn&63)];return qn.join("")},We=wt.btoa&&typeof wt.btoa=="function"?function(Bt){return wt.btoa(Bt)}:function(Bt){if(Bt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Bt.replace(/[\s\S]{1,3}/g,ct)},Te=function(Bt){return We(Vt(String(Bt)))},ne=function(Bt){return Bt.replace(/[+\/]/g,function(Ht){return Ht=="+"?"-":"_"}).replace(/=/g,"")},te=function(Bt,Ht){return Ht?ne(Te(Bt)):Te(Bt)},ue=function(Bt){return te(Bt,!0)},se;wt.Uint8Array&&(se=function(Bt,Ht){for(var Jn="",qn=0,sn=Bt.length;qn<sn;qn+=3){var Nn=Bt[qn],lt=Bt[qn+1],Ge=Bt[qn+2],Ne=Nn<<16|lt<<8|Ge;Jn+=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 Ht?ne(Jn):Jn});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(Bt){switch(Bt.length){case 4:var Ht=(7&Bt.charCodeAt(0))<<18|(63&Bt.charCodeAt(1))<<12|(63&Bt.charCodeAt(2))<<6|63&Bt.charCodeAt(3),Jn=Ht-65536;return pt((Jn>>>10)+55296)+pt((Jn&1023)+56320);case 3:return pt((15&Bt.charCodeAt(0))<<12|(63&Bt.charCodeAt(1))<<6|63&Bt.charCodeAt(2));default:return pt((31&Bt.charCodeAt(0))<<6|63&Bt.charCodeAt(1))}},xe=function(Bt){return Bt.replace(ge,me)},Pe=function(Bt){var Ht=Bt.length,Jn=Ht%4,qn=(Ht>0?Je[Bt.charAt(0)]<<18:0)|(Ht>1?Je[Bt.charAt(1)]<<12:0)|(Ht>2?Je[Bt.charAt(2)]<<6:0)|(Ht>3?Je[Bt.charAt(3)]:0),sn=[pt(qn>>>16),pt(qn>>>8&255),pt(qn&255)];return sn.length-=[0,0,2,1][Jn],sn.join("")},Ke=wt.atob&&typeof wt.atob=="function"?function(Bt){return wt.atob(Bt)}:function(Bt){return Bt.replace(/\S{1,4}/g,Pe)},nt=function(Bt){return Ke(String(Bt).replace(/[^A-Za-z0-9\+\/]/g,""))},ft=function(Bt){return xe(Ke(Bt))},qe=function(Bt){return String(Bt).replace(/[-_]/g,function(Ht){return Ht=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},at=function(Bt){return ft(qe(Bt))},jt;wt.Uint8Array&&(jt=function(Bt){return Uint8Array.from(nt(qe(Bt)),function(Ht){return Ht.charCodeAt(0)})});var Mt=function(){var Bt=wt.Base64;return wt.Base64=Qt,Bt};if(wt.Base64={VERSION:Nt,atob:nt,btoa:We,fromBase64:at,toBase64:te,utob:Vt,encode:te,encodeURI:ue,btou:xe,decode:at,noConflict:Mt,fromUint8Array:se,toUint8Array:jt},typeof Object.defineProperty=="function"){var bt=function(Bt){return{value:Bt,enumerable:!1,writable:!0,configurable:!0}};wt.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",bt(function(){return at(this)})),Object.defineProperty(String.prototype,"toBase64",bt(function(Bt){return te(this,Bt)})),Object.defineProperty(String.prototype,"toBase64URI",bt(function(){return te(this,!0)}))}}return wt.Meteor&&(Base64=wt.Base64),Dn.exports?Dn.exports.Base64=wt.Base64:(ve=[],ot=function(){return wt.Base64}.apply(ei,ve),ot!==void 0&&(Dn.exports=ot)),{Base64:wt.Base64}})},15979:function(Dn,ei,be){"use strict";be.d(ei,{hP:function(){return Gt}});var ve=function(Xe,ke){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,He){Me.__proto__=He}||function(Me,He){for(var et in He)Object.prototype.hasOwnProperty.call(He,et)&&(Me[et]=He[et])})(Xe,ke)};function ot(Xe,ke){function Me(){this.constructor=Xe}ve(Xe,ke),Xe.prototype=ke===null?Object.create(ke):(Me.prototype=ke.prototype,new Me)}function wt(Xe,ke,Me,He){return new(Me||(Me=Promise))(function(et,Oe){function ut(An){try{jn(He.next(An))}catch(Pn){Oe(Pn)}}function Vn(An){try{jn(He.throw(An))}catch(Pn){Oe(Pn)}}function jn(An){var Pn;An.done?et(An.value):(Pn=An.value,Pn instanceof Me?Pn:new Me(function(si){si(Pn)})).then(ut,Vn)}jn((He=He.apply(Xe,ke||[])).next())})}function Qt(Xe,ke){var Me,He,et,Oe,ut={label:0,sent:function(){if(1&et[0])throw et[1];return et[1]},trys:[],ops:[]};return Oe={next:Vn(0),throw:Vn(1),return:Vn(2)},typeof Symbol=="function"&&(Oe[Symbol.iterator]=function(){return this}),Oe;function Vn(jn){return function(An){return function(Pn){if(Me)throw new TypeError("Generator is already executing.");for(;ut;)try{if(Me=1,He&&(et=2&Pn[0]?He.return:Pn[0]?He.throw||((et=He.return)&&et.call(He),0):He.next)&&!(et=et.call(He,Pn[1])).done)return et;switch(He=0,et&&(Pn=[2&Pn[0],et.value]),Pn[0]){case 0:case 1:et=Pn;break;case 4:return ut.label++,{value:Pn[1],done:!1};case 5:ut.label++,He=Pn[1],Pn=[0];continue;case 7:Pn=ut.ops.pop(),ut.trys.pop();continue;default:if(et=ut.trys,!((et=et.length>0&&et[et.length-1])||Pn[0]!==6&&Pn[0]!==2)){ut=0;continue}if(Pn[0]===3&&(!et||Pn[1]>et[0]&&Pn[1]<et[3])){ut.label=Pn[1];break}if(Pn[0]===6&&ut.label<et[1]){ut.label=et[1],et=Pn;break}if(et&&ut.label<et[2]){ut.label=et[2],ut.ops.push(Pn);break}et[2]&&ut.ops.pop(),ut.trys.pop();continue}Pn=ke.call(Xe,ut)}catch(si){Pn=[6,si],He=0}finally{Me=et=0}if(5&Pn[0])throw Pn[1];return{value:Pn[0]?Pn[1]:void 0,done:!0}}([jn,An])}}}function Nt(){for(var Xe=0,ke=0,Me=arguments.length;ke<Me;ke++)Xe+=arguments[ke].length;var He=Array(Xe),et=0;for(ke=0;ke<Me;ke++)for(var Oe=arguments[ke],ut=0,Vn=Oe.length;ut<Vn;ut++,et++)He[et]=Oe[ut];return He}var Re=function(){function Xe(){}return Xe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Xe.setAttributes=function(ke,Me){for(var He=0,et=Me;He<et.length;He++){var Oe=et[He],ut=Oe[0],Vn=Oe[1];ke.setAttribute(ut,Vn)}},Xe.createRect=function(ke,Me,He){var et=document.createElementNS("http://www.w3.org/2000/svg","rect");return et.setAttribute("width",ke.toString()),et.setAttribute("height",Me.toString()),He&&Xe.setAttributes(et,He),et},Xe.createLine=function(ke,Me,He,et,Oe){var ut=document.createElementNS("http://www.w3.org/2000/svg","line");return ut.setAttribute("x1",ke.toString()),ut.setAttribute("y1",Me.toString()),ut.setAttribute("x2",He.toString()),ut.setAttribute("y2",et.toString()),Oe&&Xe.setAttributes(ut,Oe),ut},Xe.createPolygon=function(ke,Me){var He=document.createElementNS("http://www.w3.org/2000/svg","polygon");return He.setAttribute("points",ke),Me&&Xe.setAttributes(He,Me),He},Xe.createCircle=function(ke,Me){var He=document.createElementNS("http://www.w3.org/2000/svg","circle");return He.setAttribute("cx",(ke/2).toString()),He.setAttribute("cy",(ke/2).toString()),He.setAttribute("r",ke.toString()),Me&&Xe.setAttributes(He,Me),He},Xe.createEllipse=function(ke,Me,He){var et=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return et.setAttribute("cx",(ke/2).toString()),et.setAttribute("cy",(Me/2).toString()),et.setAttribute("rx",(ke/2).toString()),et.setAttribute("ry",(Me/2).toString()),He&&Xe.setAttributes(et,He),et},Xe.createGroup=function(ke){var Me=document.createElementNS("http://www.w3.org/2000/svg","g");return ke&&Xe.setAttributes(Me,ke),Me},Xe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Xe.createMarker=function(ke,Me,He,et,Oe,ut,Vn){var jn=document.createElementNS("http://www.w3.org/2000/svg","marker");return Xe.setAttributes(jn,[["id",ke],["orient",Me],["markerWidth",He.toString()],["markerHeight",et.toString()],["refX",Oe.toString()],["refY",ut.toString()]]),jn.appendChild(Vn),jn},Xe.createText=function(ke){var Me=document.createElementNS("http://www.w3.org/2000/svg","text");return Me.setAttribute("x","0"),Me.setAttribute("y","0"),ke&&Xe.setAttributes(Me,ke),Me},Xe.createTSpan=function(ke,Me){var He=document.createElementNS("http://www.w3.org/2000/svg","tspan");return He.textContent=ke,Me&&Xe.setAttributes(He,Me),He},Xe.createImage=function(ke){var Me=document.createElementNS("http://www.w3.org/2000/svg","image");return ke&&Xe.setAttributes(Me,ke),Me},Xe.createPoint=function(ke,Me){var He=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return He.x=ke,He.y=Me,He},Xe.createPath=function(ke,Me){var He=document.createElementNS("http://www.w3.org/2000/svg","path");return He.setAttribute("d",ke),Me&&Xe.setAttributes(He,Me),He},Xe}(),Je=function(){function Xe(){}return Xe.addKey=function(ke){Xe.key=ke},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(ke,Me,He){var et=this;return new Promise(function(Oe){var ut=He!==void 0?He:document.createElement("canvas");ke===null&&(et.markersOnly=!0,et.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,et.naturalSize===!0?(Vn.width.baseVal.value=ke.naturalWidth,Vn.height.baseVal.value=ke.naturalHeight):et.width!==void 0&&et.height!==void 0&&(Vn.width.baseVal.value=et.width,Vn.height.baseVal.value=et.height),ut.width=Vn.width.baseVal.value,ut.height=Vn.height.baseVal.value;var jn=Vn.outerHTML,An=ut.getContext("2d");et.markersOnly!==!0&&An.drawImage(ke,0,0,ut.width,ut.height);var Pn=window.URL,si=new Image(ut.width,ut.height);si.setAttribute("crossOrigin","anonymous");var mn=new Blob([jn],{type:"image/svg+xml"}),Fi=Pn.createObjectURL(mn);si.onload=function(){An.drawImage(si,0,0),Pn.revokeObjectURL(Fi);var Vi=ut.toDataURL(et.imageType,et.imageQuality);Oe(Vi)},si.src=Fi})},Xe}(),mt=function(){},yt=function(){function Xe(ke){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ke+"_"}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(ke){return this.styleSheet===void 0&&this.addStyleSheet(),ke.name=""+this.classNamePrefix+ke.localName,this.classes.push(ke),this.styleSheet.sheet.insertRule("."+ke.name+" {"+ke.style+"}",this.styleSheet.sheet.cssRules.length),ke},Xe.prototype.addRule=function(ke){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ke),this.styleSheet.sheet.insertRule(ke.selector+" {"+ke.style+"}",this.styleSheet.sheet.cssRules.length)},Xe.prototype.addStyleSheet=function(){var ke;this.styleSheet=document.createElement("style"),((ke=this.styleSheetRoot)!==null&&ke!==void 0?ke: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 ke;this.styleSheet&&(((ke=this.styleSheetRoot)!==null&&ke!==void 0?ke:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Xe}(),Vt=function(Xe,ke){this.selector=Xe,this.style=ke},ct=function(Xe,ke){this.localName=Xe,this.style=ke},We=function(){function Xe(ke,Me,He,et,Oe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ke,this.displayMode=Me,this.markerItems=He,this.uiStyleSettings=et,this.styles=Oe,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(ke){var Me=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ke,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var He=document.createElement("div");He.className=this.toolbarBlockStyleClass.name,He.style.whiteSpace="nowrap",this.uiContainer.appendChild(He),this.addActionButton(He,'<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(He,'<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(He,'<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(He,'<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(He,'<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(He,'<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(He,'<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(He,'<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(Oe){var ut=document.createElement("div");ut.className=""+Me.toolbarButtonStyleClass.name,ut.setAttribute("data-type-name",Oe.typeName),ut.innerHTML=Oe.icon,ut.addEventListener("click",function(){Me.markerToolbarButtonClicked(ut,Oe)}),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 et=document.createElement("div");et.className=this.toolbarBlockStyleClass.name,et.style.whiteSpace="nowrap",et.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(et),this.addActionButton(et,'<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(et,'<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(ke){this.buttonClickListeners.push(ke)},Xe.prototype.removeButtonClickListener=function(ke){this.buttonClickListeners.indexOf(ke)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ke),1)},Xe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Xe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ke=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<ke||Me===ke&&this.markerButtons.length-1===ke?this.markerButtonBlock.appendChild(this.markerButtons[Me]):(Me===ke&&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 ke=this;this.buttons.forEach(function(Me){Me.className=Me.className.replace(ke.uiStyleSettings.toolbarButtonStyleColorsClassName?ke.uiStyleSettings.toolbarButtonStyleColorsClassName:ke.toolbarButtonStyleColorsClass.name,"").trim(),Me.className=Me.className.replace(ke.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ke.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ke.toolbarActiveButtonStyleColorsClass.name,"").trim(),Me.className+=" "+(ke.uiStyleSettings.toolbarButtonStyleColorsClassName?ke.uiStyleSettings.toolbarButtonStyleColorsClassName:ke.toolbarButtonStyleColorsClass.name)})},Xe.prototype.addActionButton=function(ke,Me,He){var et=this,Oe=document.createElement("div");switch(Oe.className=""+this.toolbarButtonStyleClass.name,Oe.innerHTML=Me,Oe.setAttribute("data-action",He),Oe.addEventListener("click",function(){et.actionToolbarButtonClicked(Oe,He)}),He){case"select":Oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Oe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Oe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Oe.style.fill=this.uiStyleSettings.closeButtonColor}ke.appendChild(Oe),this.buttons.push(Oe)},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 ke=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ct("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ke)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ke)+`px;
|
|
padding: `+ke+`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(ke,Me){this.setActiveButton(ke),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(He){return He("marker",Me)}),this.markerButtonOverflowBlock.style.display="none"},Xe.prototype.actionToolbarButtonClicked=function(ke,Me){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(He){return He("action",Me)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Xe.prototype.setActiveButton=function(ke){this.resetButtonStyles(),ke.className=ke.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ke.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Xe.prototype.setActiveMarkerButton=function(ke){var Me=this.markerButtons.find(function(He){return He.getAttribute("data-type-name")===ke});Me&&this.setActiveButton(Me)},Xe.prototype.setCurrentMarker=function(ke){var Me=this;this.currentMarker=ke,this.buttons.filter(function(He){return/delete|notes/.test(He.getAttribute("data-action"))}).forEach(function(He){Me.currentMarker===void 0?(He.style.fillOpacity="0.4",He.style.pointerEvents="none"):(He.style.fillOpacity="1",He.style.pointerEvents="all")})},Xe}(),Te=function(){function Xe(ke,Me,He,et){this.panels=[],this.panelButtons=[],this.markerjsContainer=ke,this.displayMode=Me,this.uiStyleSettings=He,this.styles=et,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Xe.prototype.addStyles=function(){var ke;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: `+((ke=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ke!==void 0?ke: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(ke){var Me;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ke,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(ke){var Me,He,et=this;this.panels=ke,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+" "+((He=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&He!==void 0?He:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Oe){var ut;Oe.uiStyleSettings=et.uiStyleSettings;var Vn=document.createElement("div");Vn.className=et.toolboxButtonStyleClass.name+" "+((ut=et.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ut!==void 0?ut:et.toolboxButtonStyleColorsClass.name),Vn.innerHTML=Oe.icon,Vn.title=Oe.title,Vn.addEventListener("click",function(){et.panelButtonClick(Oe)}),et.panelButtons.push(Vn),et.buttonRow.appendChild(Vn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Xe.prototype.panelButtonClick=function(ke){var Me=this,He=-1;if(ke!==this.activePanel){He=this.panels.indexOf(ke),this.panelRow.innerHTML="";var et=ke.getUi();et.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(et),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=ke}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(Oe,ut){var Vn,jn;Oe.className=Me.toolboxButtonStyleClass.name+" "+(ut===He?""+((Vn=Me.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Vn!==void 0?Vn:Me.toolboxActiveButtonStyleColorsClass.name):""+((jn=Me.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&jn!==void 0?jn:Me.toolboxButtonStyleColorsClass.name))})},Xe}(),ne=function(Xe,ke){this.title=Xe,this.icon=ke},te=function(Xe){function ke(Me,He,et,Oe){var ut=Xe.call(this,Me,Oe||'<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=He,ut.currentColor=et,ut.setCurrentColor=ut.setCurrentColor.bind(ut),ut.getColorBox=ut.getColorBox.bind(ut),ut}return ot(ke,Xe),ke.prototype.getUi=function(){var Me=this,He=document.createElement("div");return He.style.overflow="hidden",He.style.whiteSpace="nowrap",this.colors.forEach(function(et){var Oe=Me.getColorBox(et);He.appendChild(Oe),Me.colorBoxes.push(Oe)}),He},ke.prototype.getColorBox=function(Me){var He=this,et=this.uiStyleSettings.toolbarHeight/4,Oe=this.uiStyleSettings.toolbarHeight-et,ut=document.createElement("div");ut.style.display="inline-block",ut.style.boxSizing="content-box",ut.style.width=Oe-2+"px",ut.style.height=Oe-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=(Oe+2)/2+"px",ut.style.borderColor=Me===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ut.addEventListener("click",function(){He.setCurrentColor(Me,ut)});var Vn=document.createElement("div");return Vn.style.display="inline-block",Vn.style.width=Oe-2+"px",Vn.style.height=Oe-2+"px",Vn.style.backgroundColor=Me,Vn.style.borderRadius=Oe/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},ke.prototype.setCurrentColor=function(Me,He){var et=this;this.currentColor=Me,this.colorBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===He?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Me)},ke}(ne),ue=function(){function Xe(ke,Me,He){this._state="new",this._isSelected=!1,this._container=ke,this._overlayContainer=Me,this.globalSettings=He,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(ke){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(ke,Me){},Xe.prototype.dblClick=function(ke,Me){},Xe.prototype.manipulate=function(ke){},Xe.prototype.pointerUp=function(ke){this.stateChanged()},Xe.prototype.dispose=function(){},Xe.prototype.addMarkerVisualToContainer=function(ke){this.container.childNodes.length>0?this.container.insertBefore(ke,this.container.childNodes[0]):this.container.appendChild(ke)},Xe.prototype.getState=function(){return{typeName:Xe.typeName,state:this.state,notes:this.notes}},Xe.prototype.restoreState=function(ke){this._state=ke.state,this.notes=ke.notes},Xe.prototype.scale=function(ke,Me){},Xe.prototype.colorChanged=function(ke){this.onColorChanged&&this.onColorChanged(ke),this.stateChanged()},Xe.prototype.fillColorChanged=function(ke){this.onFillColorChanged&&this.onFillColorChanged(ke),this.stateChanged()},Xe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ke=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ke.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ke)&&this.onStateChanged(this)}},Xe.typeName="MarkerBase",Xe}(),se=function(){function Xe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Xe.prototype.findGripByVisual=function(ke){return this.topLeft.ownsTarget(ke)?this.topLeft:this.topCenter.ownsTarget(ke)?this.topCenter:this.topRight.ownsTarget(ke)?this.topRight:this.centerLeft.ownsTarget(ke)?this.centerLeft:this.centerRight.ownsTarget(ke)?this.centerRight:this.bottomLeft.ownsTarget(ke)?this.bottomLeft:this.bottomCenter.ownsTarget(ke)?this.bottomCenter:this.bottomRight.ownsTarget(ke)?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(ke){return ke===this.visual||ke===this.visual.childNodes[0]||ke===this.visual.childNodes[1]},Xe}(),me=function(){function Xe(){}return Xe.toITransformMatrix=function(ke){return{a:ke.a,b:ke.b,c:ke.c,d:ke.d,e:ke.e,f:ke.f}},Xe.toSVGMatrix=function(ke,Me){return ke.a=Me.a,ke.b=Me.b,ke.c=Me.c,ke.d=Me.d,ke.e=Me.e,ke.f=Me.f,ke},Xe}(),xe=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.left=0,Oe.top=0,Oe.width=0,Oe.height=0,Oe.defaultSize={x:50,y:20},Oe.offsetX=0,Oe.offsetY=0,Oe.rotationAngle=0,Oe.CB_DISTANCE=10,Oe._suppressMarkerCreateEvent=!1,Oe.container.transform.baseVal.appendItem(Re.createTransform()),Oe.setupControlBox(),Oe}return ot(ke,Xe),Object.defineProperty(ke.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ke.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ke.prototype,"visual",{get:function(){return this._visual},set:function(Me){this._visual=Me;var He=Re.createTransform();this._visual.transform.baseVal.appendItem(He)},enumerable:!1,configurable:!0}),ke.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))},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),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 et=this.unrotatePoint(Me);if(this.manipulationStartX=et.x,this.manipulationStartY=et.y,this.offsetX=et.x-this.left,this.offsetY=et.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(He),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(He)){this.activeGrip=this.rotatorGrip;var Oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Oe.x-this.width/2,this.top=Oe.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"},ke.prototype.pointerUp=function(Me){var He=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",He==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ke.prototype.moveVisual=function(Me){this.visual.style.transform="translate("+Me.x+"px, "+Me.y+"px)"},ke.prototype.manipulate=function(Me){var He=this.unrotatePoint(Me);this.state==="creating"?this.resize(Me):this.state==="move"?(this.left=this.manipulationStartLeft+(He.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(He.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(He):this.state==="rotate"&&this.rotate(Me)},ke.prototype.resize=function(Me){var He=this.manipulationStartLeft,et=this.manipulationStartWidth,Oe=this.manipulationStartTop,ut=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:He=this.manipulationStartLeft+Me.x-this.manipulationStartX,et=this.manipulationStartWidth+this.manipulationStartLeft-He;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:et=this.manipulationStartWidth+Me.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Oe=this.manipulationStartTop+Me.y-this.manipulationStartY,ut=this.manipulationStartHeight+this.manipulationStartTop-Oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ut=this.manipulationStartHeight+Me.y-this.manipulationStartY}et>=0?(this.left=He,this.width=et):(this.left=He+et,this.width=-et),ut>=0?(this.top=Oe,this.height=ut):(this.top=Oe+ut,this.height=-ut),this.setSize()},ke.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ke.prototype.rotate=function(Me){if(Math.abs(Me.x-this.centerX)>.1){var He=Math.sign(Me.x-this.centerX);this.rotationAngle=180*Math.atan((Me.y-this.centerY)/(Me.x-this.centerX))/Math.PI+90*He,this.applyRotation()}},ke.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)},ke.prototype.rotatePoint=function(Me){if(this.rotationAngle===0)return Me;var He=this.container.getCTM(),et=Re.createPoint(Me.x,Me.y);return{x:(et=et.matrixTransform(He)).x,y:et.y}},ke.prototype.unrotatePoint=function(Me){if(this.rotationAngle===0)return Me;var He=this.container.getCTM();He=He.inverse();var et=Re.createPoint(Me.x,Me.y);return{x:(et=et.matrixTransform(He)).x,y:et.y}},ke.prototype.select=function(){Xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ke.prototype.deselect=function(){Xe.prototype.deselect.call(this),this.controlBox.style.display="none"},ke.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"},ke.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()},ke.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()},ke.prototype.createGrip=function(){var Me=new ge;return Me.visual.transform.baseVal.appendItem(Re.createTransform()),this.controlBox.appendChild(Me.visual),Me},ke.prototype.positionGrips=function(){var Me=this.controlGrips.topLeft.GRIP_SIZE,He=-Me/2,et=He,Oe=(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,jn=this.width+this.CB_DISTANCE-Me/2;this.positionGrip(this.controlGrips.topLeft.visual,He,et),this.positionGrip(this.controlGrips.topCenter.visual,Oe,et),this.positionGrip(this.controlGrips.topRight.visual,jn,et),this.positionGrip(this.controlGrips.centerLeft.visual,He,ut),this.positionGrip(this.controlGrips.centerRight.visual,jn,ut),this.positionGrip(this.controlGrips.bottomLeft.visual,He,Vn),this.positionGrip(this.controlGrips.bottomCenter.visual,Oe,Vn),this.positionGrip(this.controlGrips.bottomRight.visual,jn,Vn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Oe,et-3*this.CB_DISTANCE)},ke.prototype.positionGrip=function(Me,He,et){var Oe=Me.transform.baseVal.getItem(0);Oe.setTranslate(He,et),Me.transform.baseVal.replaceItem(Oe,0)},ke.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ke.prototype.showControlBox=function(){this.controlBox.style.display=""},ke.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))},ke.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var He=Me;this.left=He.left,this.top=He.top,this.width=He.width,this.height=He.height,this.rotationAngle=He.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,He.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,He.containerTransformMatrix))},ke.prototype.scale=function(Me,He){Xe.prototype.scale.call(this,Me,He);var et=this.rotatePoint({x:this.left,y:this.top}),Oe=this.unrotatePoint({x:et.x*Me,y:et.y*He});this.left=Oe.x,this.top=Oe.y,this.width=this.width*Me,this.height=this.height*He,this.adjustControlBox()},ke}(ue),Pe=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.opacity=1,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual)},ke.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)},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),this.state==="new"&&(this.createVisual(),this.moveVisual(Me),this._state="creating")},ke.prototype.manipulate=function(Me){Xe.prototype.manipulate.call(this,Me)},ke.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.setSize()},ke.prototype.setSize=function(){Xe.prototype.setSize.call(this),Re.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ke.prototype.pointerUp=function(Me){Xe.prototype.pointerUp.call(this,Me),this.setSize()},ke.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.visual&&Re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Me),this.stateChanged()},ke.prototype.setFillColor=function(Me){this.fillColor=Me,this.visual&&Re.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ke.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.visual&&Re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ke.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.visual&&Re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ke.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))},ke.prototype.restoreState=function(Me){var He=Me;this.fillColor=He.fillColor,this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.opacity=He.opacity,this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.setSize()},ke.prototype.scale=function(Me,He){Xe.prototype.scale.call(this,Me,He),this.setSize()},ke.title="Rectangle marker",ke}(xe),Ke=function(Xe){function ke(Me,He,et,Oe){var ut=Xe.call(this,Me,Oe||'<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=He,ut.currentWidth=et,ut.setCurrentWidth=ut.setCurrentWidth.bind(ut),ut}return ot(ke,Xe),ke.prototype.getUi=function(){var Me=this,He=document.createElement("div");return He.style.display="flex",He.style.overflow="hidden",He.style.flexGrow="2",this.widths.forEach(function(et){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.flexGrow="2",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=et===Me.currentWidth?Me.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){Me.setCurrentWidth(et,Oe)}),He.appendChild(Oe);var ut=document.createElement("div");ut.innerText=et.toString(),ut.style.marginRight="5px",Oe.appendChild(ut);var Vn=document.createElement("div");Vn.style.minHeight="20px",Vn.style.flexGrow="2",Vn.style.display="flex",Vn.style.alignItems="center";var jn=document.createElement("hr");jn.style.minWidth="20px",jn.style.border="0px",jn.style.borderTop=et+"px solid "+Me.uiStyleSettings.toolboxColor,jn.style.flexGrow="2",Vn.appendChild(jn),Oe.appendChild(Vn),Me.widthBoxes.push(Oe)}),He},ke.prototype.setCurrentWidth=function(Me,He){var et=this;this.currentWidth=Me,this.widthBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===He?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ke}(ne),nt=function(Xe){function ke(Me,He,et,Oe){var ut=Xe.call(this,Me,Oe||'<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=He,ut.currentStyle=et,ut.setCurrentStyle=ut.setCurrentStyle.bind(ut),ut}return ot(ke,Xe),ke.prototype.getUi=function(){var Me=this,He=document.createElement("div");return He.style.display="flex",He.style.overflow="hidden",He.style.flexGrow="2",this.styles.forEach(function(et){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.overflow="hidden",Oe.style.maxWidth=100/Me.styles.length-5+"%",Oe.style.borderColor=et===Me.currentStyle?Me.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){Me.setCurrentStyle(et,Oe)}),He.appendChild(Oe);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" '+(et!==""?'stroke-dasharray="'+et+'"':"")+` />
|
|
</svg>`;ut.innerHTML=Vn,Oe.appendChild(ut),Me.styleBoxes.push(Oe)}),He},ke.prototype.setCurrentStyle=function(Me,He){var et=this;this.currentStyle=Me,this.styleBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===He?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ke}(ne),ft=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.strokeColor=et.defaultColor,Oe.strokeWidth=et.defaultStrokeWidth,Oe.strokeDasharray=et.defaultStrokeDasharray,Oe.strokePanel=new te("Line color",et.defaultColorSet,et.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Ke("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return ot(ke,Xe),Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ke.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=ke.typeName,Me},ke.typeName="FrameMarker",ke.title="Frame marker",ke.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ke}(Pe),qe=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"},at=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.x1=0,Oe.y1=0,Oe.x2=0,Oe.y2=0,Oe.defaultLength=50,Oe.manipulationStartX=0,Oe.manipulationStartY=0,Oe.manipulationStartX1=0,Oe.manipulationStartY1=0,Oe.manipulationStartX2=0,Oe.manipulationStartY2=0,Oe.setupControlBox(),Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return!!Xe.prototype.ownsTarget.call(this,Me)||!(!this.grip1.ownsTarget(Me)&&!this.grip2.ownsTarget(Me))},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),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(He)?this.activeGrip=this.grip1:this.grip2.ownsTarget(He)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ke.prototype.pointerUp=function(Me){var He=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",He==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ke.prototype.adjustVisual=function(){},ke.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)},ke.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()},ke.prototype.select=function(){Xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ke.prototype.deselect=function(){Xe.prototype.deselect.call(this),this.controlBox.style.display="none"},ke.prototype.setupControlBox=function(){this.controlBox=Re.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ke.prototype.adjustControlBox=function(){this.positionGrips()},ke.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ke.prototype.createGrip=function(){var Me=new ge;return Me.visual.transform.baseVal.appendItem(Re.createTransform()),this.controlBox.appendChild(Me.visual),Me},ke.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)},ke.prototype.positionGrip=function(Me,He,et){var Oe=Me.transform.baseVal.getItem(0);Oe.setTranslate(He,et),Me.transform.baseVal.replaceItem(Oe,0)},ke.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Xe.prototype.getState.call(this))},ke.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var He=Me;this.x1=He.x1,this.y1=He.y1,this.x2=He.x2,this.y2=He.y2},ke.prototype.scale=function(Me,He){Xe.prototype.scale.call(this,Me,He),this.x1=this.x1*Me,this.y1=this.y1*He,this.x2=this.x2*Me,this.y2=this.y2*He,this.adjustVisual(),this.adjustControlBox()},ke}(ue),jt=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.strokeColor=et.defaultColor,Oe.strokeWidth=et.defaultStrokeWidth,Oe.strokeDasharray=et.defaultStrokeDasharray,Oe.strokePanel=new te("Line color",et.defaultColorSet,et.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Ke("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual&&Me!==this.selectorLine&&Me!==this.visibleLine)},ke.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)},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ke.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()]]))},ke.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.adjustVisual(),this.colorChanged(Me)},ke.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.adjustVisual()},ke.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ke.prototype.getState=function(){var Me=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Xe.prototype.getState.call(this));return Me.typeName=ke.typeName,Me},ke.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var He=Me;this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.createVisual(),this.adjustVisual()},ke.typeName="LineMarker",ke.title="Line marker",ke.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ke}(at),Mt=function(Xe){function ke(Me,He,et,Oe){var ut=Xe.call(this,Me,Oe||'<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=He,ut.currentFont=et,ut.setCurrentFont=ut.setCurrentFont.bind(ut),ut}return ot(ke,Xe),ke.prototype.getUi=function(){var Me=this,He=document.createElement("div");return He.style.overflow="hidden",He.style.flexGrow="2",this.fonts.forEach(function(et){var Oe=document.createElement("div");Oe.style.display="inline-block",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.overflow="hidden",Oe.style.maxWidth=100/Me.fonts.length-5+"%",Oe.style.borderColor=et===Me.currentFont?Me.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){Me.setCurrentFont(et,Oe)}),He.appendChild(Oe);var ut=document.createElement("div");ut.style.display="flex",ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.fontFamily=et,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),Oe.appendChild(ut),Me.fontBoxes.push(Oe)}),He},ke.prototype.setCurrentFont=function(Me,He){var et=this;this.currentFont=Me,this.fontBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===He?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ke}(ne),bt=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.color="transparent",Oe.padding=5,Oe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Oe.text=Oe.DEFAULT_TEXT,Oe.isMoved=!1,Oe.color=et.defaultColor,Oe.fontFamily=et.defaultFontFamily,Oe.defaultSize={x:100,y:30},Oe.setColor=Oe.setColor.bind(Oe),Oe.setFont=Oe.setFont.bind(Oe),Oe.renderText=Oe.renderText.bind(Oe),Oe.sizeText=Oe.sizeText.bind(Oe),Oe.textEditDivClicked=Oe.textEditDivClicked.bind(Oe),Oe.showTextEditor=Oe.showTextEditor.bind(Oe),Oe.setSize=Oe.setSize.bind(Oe),Oe.positionTextEditor=Oe.positionTextEditor.bind(Oe),Oe.colorPanel=new te("Color",et.defaultColorSet,et.defaultColor),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.fontFamilyPanel=new Mt("Font",et.defaultFontFamilies,et.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){if(Xe.prototype.ownsTarget.call(this,Me)||Me===this.visual||Me===this.textElement||Me===this.bgRectangle)return!0;var He=!1;return this.textElement.childNodes.forEach(function(et){et===Me&&(He=!0)}),He},ke.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()},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),this.isMoved=!1,this.pointerDownPoint=Me,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Me),this._state="creating")},ke.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(He){Me.textElement.appendChild(Re.createTSpan(He.trim()===""?" ":He.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ke.prototype.getTextScale=function(){var Me=this.textElement.getBBox(),He=1;if(Me.width>0&&Me.height>0){var et=(1*this.width-this.width*this.padding*2/100)/Me.width,Oe=(1*this.height-this.height*this.padding*2/100)/Me.height;He=Math.min(et,Oe)}return He},ke.prototype.getTextPosition=function(Me){var He=this.textElement.getBBox(),et=0,Oe=0;return He.width>0&&He.height>0&&(et=(this.width-He.width*Me)/2,Oe=this.height/2-He.height*Me/2),{x:et,y:Oe}},ke.prototype.sizeText=function(){var Me=this.textElement.getBBox(),He=this.getTextScale(),et=this.getTextPosition(He);et.y-=Me.y*He,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+et.x+"px, "+et.y+"px) scale("+He+", "+He+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(et.x,et.y),this.textElement.transform.baseVal.getItem(1).setScale(He,He))},ke.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)},ke.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.isMoved=!0,this.setSize(),this.sizeText()},ke.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()]]))},ke.prototype.pointerUp=function(Me){var He=this.state;He==="creating"&&(this._suppressMarkerCreateEvent=!0),Xe.prototype.pointerUp.call(this,Me),this.setSize(),(He==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ke.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(He){He.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var He=Number.parseFloat(Me.textEditor.style.fontSize);Me.textEditor.clientWidth>=Number.parseInt(Me.textEditor.style.maxWidth)&&He>.9;)He-=.1,Me.textEditor.style.fontSize=Math.max(He,.9)+"em"}),this.textEditor.addEventListener("keyup",function(He){He.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(He){if(He.clipboardData){var et=He.clipboardData.getData("text"),Oe=window.getSelection();if(!Oe.rangeCount)return!1;Oe.deleteFromDocument(),Oe.getRangeAt(0).insertNode(document.createTextNode(et)),He.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")},ke.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Me=this.getTextScale(),He=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),et=this.textElement.getBBox(),Oe={x:et.width*Me,y:et.height*Me};He.x-=Oe.x/2,He.y-=Oe.y/2,this.textEditor.style.top=He.y+"px",this.textEditor.style.left=He.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-He.x+"px",this.textEditor.style.fontSize=Math.max(16*Me,12)+"px",this.textElement.style.display="none"}},ke.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()},ke.prototype.select=function(){Xe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ke.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Xe.prototype.deselect.call(this)},ke.prototype.dblClick=function(Me,He){Xe.prototype.dblClick.call(this,Me,He),this.showTextEditor()},ke.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)},ke.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()},ke.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ke.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ke.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=ke.typeName,Me},ke.prototype.restoreState=function(Me){var He=Me;this.color=He.color,this.fontFamily=He.fontFamily,this.padding=He.padding,this.text=He.text,this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.setSize()},ke.prototype.scale=function(Me,He){Xe.prototype.scale.call(this,Me,He),this.setSize(),this.sizeText(),this.positionTextEditor()},ke.typeName="TextMarker",ke.title="Text marker",ke.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>',ke}(xe),Bt=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.color="transparent",Oe.lineWidth=3,Oe.drawing=!1,Oe.pixelRatio=1,Oe.color=et.defaultColor,Oe.lineWidth=et.defaultStrokeWidth,Oe.pixelRatio=et.freehandPixelRatio,Oe.setColor=Oe.setColor.bind(Oe),Oe.addCanvas=Oe.addCanvas.bind(Oe),Oe.finishCreation=Oe.finishCreation.bind(Oe),Oe.setLineWidth=Oe.setLineWidth.bind(Oe),Oe.colorPanel=new te("Color",et.defaultColorSet,et.defaultColor),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.lineWidthPanel=new Ke("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Oe.lineWidthPanel.onWidthChanged=Oe.setLineWidth,Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual&&Me!==this.drawingImage)},ke.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)},ke.prototype.pointerDown=function(Me,He){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,He)},ke.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)},ke.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()]])},ke.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)},ke.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)},ke.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Xe.prototype.select.call(this)},ke.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Xe.prototype.deselect.call(this)},ke.prototype.finishCreation=function(){for(var Me=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),He=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],et=He[0],Oe=He[1],ut=He[2],Vn=He[3],jn=!1,An=0;An<this.canvasElement.height;An++)for(var Pn=0;Pn<this.canvasElement.width;Pn++)Me.data[An*this.canvasElement.width*4+4*Pn+3]>0&&(jn=!0,An<Oe&&(Oe=An),Pn<et&&(et=Pn),An>Vn&&(Vn=An),Pn>ut&&(ut=Pn));if(jn){this.left=et/this.pixelRatio,this.top=Oe/this.pixelRatio,this.width=(ut-et)/this.pixelRatio,this.height=(Vn-Oe)/this.pixelRatio;var si=document.createElement("canvas");si.width=ut-et,si.height=Vn-Oe,si.getContext("2d").putImageData(this.canvasContext.getImageData(et,Oe,ut-et,Vn-Oe),0,0),this.drawingImgUrl=si.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ke.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})},ke.prototype.setColor=function(Me){this.color=Me,this.colorChanged(Me)},ke.prototype.setLineWidth=function(Me){this.lineWidth=Me},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ke.prototype.getState=function(){var Me=Object.assign({drawingImgUrl:this.drawingImgUrl},Xe.prototype.getState.call(this));return Me.typeName=ke.typeName,Me},ke.prototype.restoreState=function(Me){this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.drawingImgUrl=Me.drawingImgUrl,this.setDrawingImage()},ke.prototype.scale=function(Me,He){Xe.prototype.scale.call(this,Me,He),this.setDrawingImage()},ke.typeName="FreehandMarker",ke.title="Freehand marker",ke.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>',ke}(xe),Ht=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,et||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Oe.typeBoxes=[],Oe.currentType=He,Oe.setCurrentType=Oe.setCurrentType.bind(Oe),Oe}return ot(ke,Xe),ke.prototype.getUi=function(){var Me=this,He=document.createElement("div");He.style.display="flex",He.style.overflow="hidden",He.style.flexGrow="2";for(var et=function(Vn){var jn="both";switch(Vn){case 0:jn="both";break;case 1:jn="start";break;case 2:jn="end";break;case 3:jn="none"}var An=document.createElement("div");if(An.style.display="flex",An.style.flexGrow="2",An.style.alignItems="center",An.style.justifyContent="space-between",An.style.padding="5px",An.style.borderWidth="2px",An.style.borderStyle="solid",An.style.borderColor=jn===Oe.currentType?Oe.uiStyleSettings.toolboxAccentColor:"transparent",An.addEventListener("click",function(){Me.setCurrentType(jn,An)}),He.appendChild(An),jn==="both"||jn==="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="`+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Pn.style.marginLeft="5px",An.appendChild(Pn)}var si=document.createElement("div");si.style.display="flex",si.style.alignItems="center",si.style.minHeight="20px",si.style.flexGrow="2";var mn=document.createElement("hr");if(mn.style.minWidth="20px",mn.style.border="0px",mn.style.borderTop="3px solid "+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee"),mn.style.flexGrow="2",si.appendChild(mn),An.appendChild(si),jn==="both"||jn==="end"){var Fi=document.createElement("div");Fi.style.display="flex",Fi.style.alignItems="center",Fi.style.minHeight="20px",Fi.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="`+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Fi.style.marginRight="5px",An.appendChild(Fi)}Oe.typeBoxes.push(An)},Oe=this,ut=0;ut<4;ut++)et(ut);return He},ke.prototype.setCurrentType=function(Me,He){var et=this;this.currentType=Me,this.typeBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===He?et.uiStyleSettings!==void 0?et.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ke}(ne),Jn=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.arrowType="end",Oe.arrowBaseHeight=10,Oe.arrowBaseWidth=10,Oe.getArrowPoints=Oe.getArrowPoints.bind(Oe),Oe.setArrowType=Oe.setArrowType.bind(Oe),Oe.arrowTypePanel=new Ht("Arrow type","end"),Oe.arrowTypePanel.onArrowTypeChanged=Oe.setArrowType,Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.arrow1&&Me!==this.arrow2)},ke.prototype.getArrowPoints=function(Me,He){var et=this.arrowBaseWidth+2*this.strokeWidth,Oe=this.arrowBaseHeight+2*this.strokeWidth;return Me-et/2+","+(He+Oe/2)+" "+Me+","+(He-Oe/2)+" "+(Me+et/2)+","+(He+Oe/2)},ke.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)},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),this.state==="creating"&&this.createTips()},ke.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 He=this.arrow1.transform.baseVal.getItem(0);He.setRotate(Me,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(He,0);var et=this.arrow2.transform.baseVal.getItem(0);et.setRotate(Me+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(et,0)}},ke.prototype.setArrowType=function(Me){this.arrowType=Me,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ke.prototype.getState=function(){var Me=Object.assign({arrowType:this.arrowType},Xe.prototype.getState.call(this));return Me.typeName=ke.typeName,Me},ke.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var He=Me;this.arrowType=He.arrowType,this.createTips(),this.adjustVisual()},ke.typeName="ArrowMarker",ke.title="Arrow marker",ke.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ke}(jt),qn=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.fillColor=et.defaultFillColor,Oe.strokeWidth=0,Oe.fillPanel=new te("Color",et.defaultColorSet,et.defaultFillColor),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe}return ot(ke,Xe),Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ke.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=ke.typeName,Me},ke.typeName="CoverMarker",ke.title="Cover marker",ke.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ke}(Pe),sn=function(Xe){function ke(Me,He,et,Oe){var ut=Xe.call(this,Me,Oe||'<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=He,ut.currentOpacity=et,ut.setCurrentOpacity=ut.setCurrentOpacity.bind(ut),ut}return ot(ke,Xe),ke.prototype.getUi=function(){var Me=this,He=document.createElement("div");return He.style.display="flex",He.style.overflow="hidden",He.style.flexGrow="2",He.style.justifyContent="space-between",this.opacities.forEach(function(et){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.justifyContent="center",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=et===Me.currentOpacity?Me.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){Me.setCurrentOpacity(et,Oe)}),He.appendChild(Oe);var ut=document.createElement("div");ut.innerText=100*et+"%",Oe.appendChild(ut),Me.opacityBoxes.push(Oe)}),He},ke.prototype.setCurrentOpacity=function(Me,He){var et=this;this.currentOpacity=Me,this.opacityBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===He?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ke}(ne),Nn=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.setOpacity=Oe.setOpacity.bind(Oe),Oe.fillColor=et.defaultHighlightColor,Oe.strokeWidth=0,Oe.opacity=et.defaultHighlightOpacity,Oe.fillPanel=new te("Color",et.defaultColorSet,Oe.fillColor),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.opacityPanel=new sn("Opacity",et.defaultOpacitySteps,Oe.opacity),Oe.opacityPanel.onOpacityChanged=Oe.setOpacity,Oe}return ot(ke,Xe),ke.prototype.setOpacity=function(Me){this.opacity=Me,this.visual&&Re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ke.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=ke.typeName,Me},ke.typeName="HighlightMarker",ke.title="Highlight marker",ke.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>',ke}(qn),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 ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.bgColor="transparent",Oe.tipPosition={x:0,y:0},Oe.tipBase1Position={x:0,y:0},Oe.tipBase2Position={x:0,y:0},Oe.tipMoving=!1,Oe.color=et.defaultStrokeColor,Oe.bgColor=et.defaultFillColor,Oe.fontFamily=et.defaultFontFamily,Oe.defaultSize={x:100,y:30},Oe.setBgColor=Oe.setBgColor.bind(Oe),Oe.getTipPoints=Oe.getTipPoints.bind(Oe),Oe.positionTip=Oe.positionTip.bind(Oe),Oe.setTipPoints=Oe.setTipPoints.bind(Oe),Oe.colorPanel=new te("Text color",et.defaultColorSet,Oe.color,lt),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.bgColorPanel=new te("Fill color",et.defaultColorSet,Oe.bgColor,Ge),Oe.bgColorPanel.onColorChanged=Oe.setBgColor,Oe.fontFamilyPanel=new Mt("Font",et.defaultFontFamilies,et.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe.tipGrip=new ge,Oe.tipGrip.visual.transform.baseVal.appendItem(Re.createTransform()),Oe.controlBox.appendChild(Oe.tipGrip.visual),Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return Xe.prototype.ownsTarget.call(this,Me)||this.tipGrip.ownsTarget(Me)||this.tip===Me},ke.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)},ke.prototype.pointerDown=function(Me,He){this.state==="new"&&Xe.prototype.pointerDown.call(this,Me,He),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(He)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Xe.prototype.pointerDown.call(this,Me,He)},ke.prototype.pointerUp=function(Me){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Xe.prototype.pointerUp.call(this,Me);else{var He=this.state==="creating";Xe.prototype.pointerUp.call(this,Me),this.setTipPoints(He),this.positionTip()}},ke.prototype.manipulate=function(Me){if(this.tipMoving){var He=this.unrotatePoint(Me);this.tipPosition={x:He.x-this.manipulationStartLeft,y:He.y-this.manipulationStartTop},this.positionTip()}else Xe.prototype.manipulate.call(this,Me)},ke.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)},ke.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},ke.prototype.setTipPoints=function(Me){Me===void 0&&(Me=!1);var He=Math.min(this.height/2,15),et=this.height/5;Me&&(this.tipPosition={x:He+et/2,y:this.height+20});var Oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Oe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(et=this.width/5,He=Math.min(this.width/2,15),this.tipBase1Position={x:He,y:0},this.tipBase2Position={x:He+et,y:0}):(this.tipBase1Position={x:0,y:He},this.tipBase2Position={x:0,y:He+et}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Oe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(et=this.width/5,He=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-He-et,y:0},this.tipBase2Position={x:this.width-He,y:0}):(this.tipBase1Position={x:this.width,y:He},this.tipBase2Position={x:this.width,y:He+et}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Oe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(et=this.width/5,He=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-He-et,y:this.height},this.tipBase2Position={x:this.width-He,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-He-et},this.tipBase2Position={x:this.width,y:this.height-He}):Oe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(et=this.width/5,He=Math.min(this.width/2,15),this.tipBase1Position={x:He,y:this.height},this.tipBase2Position={x:He+et,y:this.height}):(this.tipBase1Position={x:0,y:this.height-He},this.tipBase2Position={x:0,y:this.height-He-et})},ke.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.positionTip()},ke.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(ke.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ke.prototype.select=function(){this.positionTip(),Xe.prototype.select.call(this)},ke.prototype.getState=function(){var Me=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Xe.prototype.getState.call(this));return Me.typeName=ke.typeName,Me},ke.prototype.restoreState=function(Me){var He=Me;this.bgColor=He.bgColor,this.tipPosition=He.tipPosition,Xe.prototype.restoreState.call(this,Me),this.createTip(),this.setTipPoints()},ke.prototype.scale=function(Me,He){Xe.prototype.scale.call(this,Me,He),this.tipPosition={x:this.tipPosition.x*Me,y:this.tipPosition.y*He},this.positionTip()},ke.typeName="CalloutMarker",ke.title="Callout marker",ke.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>',ke}(bt),Rn=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.opacity=1,Oe.strokeColor=et.defaultColor,Oe.strokeWidth=et.defaultStrokeWidth,Oe.strokeDasharray=et.defaultStrokeDasharray,Oe.fillColor=et.defaultFillColor,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.setOpacity=Oe.setOpacity.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe.strokePanel=new te("Line color",Nt(et.defaultColorSet,["transparent"]),et.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.fillPanel=new te("Fill color",Nt(et.defaultColorSet,["transparent"]),Oe.fillColor,Ge),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.strokeWidthPanel=new Ke("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe.opacityPanel=new sn("Opacity",et.defaultOpacitySteps,Oe.opacity),Oe.opacityPanel.onOpacityChanged=Oe.setOpacity,Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual)},ke.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)},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),this.state==="new"&&(this.createVisual(),this.moveVisual(Me),this._state="creating")},ke.prototype.manipulate=function(Me){Xe.prototype.manipulate.call(this,Me)},ke.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.setSize()},ke.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()]])},ke.prototype.pointerUp=function(Me){Xe.prototype.pointerUp.call(this,Me),this.setSize()},ke.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.visual&&Re.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Me),this.stateChanged()},ke.prototype.setFillColor=function(Me){this.fillColor=Me,this.visual&&Re.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Me),this.stateChanged()},ke.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.visual&&Re.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ke.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.visual&&Re.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ke.prototype.setOpacity=function(Me){this.opacity=Me,this.visual&&Re.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ke.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=ke.typeName,Me},ke.prototype.restoreState=function(Me){var He=Me;this.fillColor=He.fillColor,this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.opacity=He.opacity,this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.setSize()},ke.prototype.scale=function(Me,He){Xe.prototype.scale.call(this,Me,He),this.setSize()},ke.typeName="EllipseMarker",ke.title="Ellipse marker",ke.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>',ke}(xe),ai=function(Xe){function ke(Me,He,et){return Xe.call(this,Me,He,et)||this}return ot(ke,Xe),Object.defineProperty(ke.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ke.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.tip1&&Me!==this.tip2)},ke.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)},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),this.state==="creating"&&this.createTips()},ke.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),He=this.tip1.transform.baseVal.getItem(0);He.setRotate(Me,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(He,0);var et=this.tip2.transform.baseVal.getItem(0);et.setRotate(Me+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(et,0)}},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ke.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=ke.typeName,Me},ke.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me),this.createTips(),this.adjustVisual()},ke.typeName="MeasurementMarker",ke.title="Measurement marker",ke.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>',ke}(jt),Zt=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.strokePanel.colors=et.defaultColorSet,Oe.fillColor="transparent",Oe}return ot(ke,Xe),Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ke.prototype.getState=function(){var Me=Xe.prototype.getState.call(this);return Me.typeName=ke.typeName,Me},ke.typeName="EllipseFrameMarker",ke.title="Ellipse frame marker",ke.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>',ke}(Rn),ci=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(ke){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ke)||(this.undoStack.push(ke),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ke)&&this.redoStack.splice(0,this.redoStack.length))},Xe.prototype.replaceLastUndoStep=function(ke){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ke)},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 ke=this.undoStack.pop();return ke!==void 0&&this.redoStack.push(ke),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}(),On=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.curveX=0,Oe.curveY=0,Oe.manipulationStartCurveX=0,Oe.manipulationStartCurveY=0,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.positionGrips=Oe.positionGrips.bind(Oe),Oe.addControlGrips=Oe.addControlGrips.bind(Oe),Oe.adjustVisual=Oe.adjustVisual.bind(Oe),Oe.setupControlBox=Oe.setupControlBox.bind(Oe),Oe.resize=Oe.resize.bind(Oe),Oe.strokeColor=et.defaultColor,Oe.strokeWidth=et.defaultStrokeWidth,Oe.strokeDasharray=et.defaultStrokeDasharray,Oe.strokePanel=new te("Line color",et.defaultColorSet,et.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Ke("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual&&Me!==this.selectorCurve&&Me!==this.visibleCurve&&!this.curveGrip.ownsTarget(Me))},ke.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ke.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)},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),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(He)&&(this.activeGrip=this.curveGrip,this._state="resize")},ke.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()]]))},ke.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)},ke.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Xe.prototype.addControlGrips.call(this)},ke.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()))},ke.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)},ke.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)},ke.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.adjustVisual(),this.colorChanged(Me)},ke.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.adjustVisual()},ke.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.adjustVisual()},ke.prototype.scale=function(Me,He){this.curveX=this.curveX*Me,this.curveY=this.curveY*He,Xe.prototype.scale.call(this,Me,He)},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ke.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=ke.typeName,Me},ke.prototype.restoreState=function(Me){Xe.prototype.restoreState.call(this,Me);var He=Me;this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.curveX=He.curveX,this.curveY=He.curveY,this.createVisual(),this.adjustVisual()},ke.typeName="CurveMarker",ke.title="Curve marker",ke.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>',ke}(at),Mi=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,He,et)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.textColor="transparent",Oe.fontSize="1rem",Oe.isMoved=!1,Oe.captionText="Caption",Oe.PADDING=5,Oe.captionBoxWidth=0,Oe.captionBoxHeight=0,Oe.strokeColor=et.defaultColor,Oe.strokeWidth=et.defaultStrokeWidth,Oe.strokeDasharray=et.defaultStrokeDasharray,Oe.fillColor=et.defaultFillColor,Oe.textColor=et.defaultStrokeColor,Oe.fontFamily=et.defaultFontFamily,Oe.fontSize=et.defaultCaptionFontSize,Oe.captionText=et.defaultCaptionText,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe.sizeCaption=Oe.sizeCaption.bind(Oe),Oe.setCaptionText=Oe.setCaptionText.bind(Oe),Oe.showTextEditor=Oe.showTextEditor.bind(Oe),Oe.positionTextEditor=Oe.positionTextEditor.bind(Oe),Oe.finishTextEditing=Oe.finishTextEditing.bind(Oe),Oe.setFont=Oe.setFont.bind(Oe),Oe.setTextColor=Oe.setTextColor.bind(Oe),Oe.strokePanel=new te("Line color",Nt(et.defaultColorSet,["transparent"]),Oe.strokeColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.fillPanel=new te("Fill color",Nt(et.defaultColorSet,["transparent"]),Oe.fillColor,Ge),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.strokeWidthPanel=new Ke("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe.fontFamilyPanel=new Mt("Font",et.defaultFontFamilies,et.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe.textColorPanel=new te("Text color",et.defaultColorSet,Oe.textColor,lt),Oe.textColorPanel.onColorChanged=Oe.setTextColor,Oe}return ot(ke,Xe),ke.prototype.ownsTarget=function(Me){return!(!Xe.prototype.ownsTarget.call(this,Me)&&Me!==this.visual&&Me!==this.frame&&Me!==this.captionBg&&Me!==this.captionElement)},ke.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()},ke.prototype.setCaptionText=function(Me){this.captionText=Me,this.captionElement.textContent=this.captionText,this.sizeCaption()},ke.prototype.pointerDown=function(Me,He){Xe.prototype.pointerDown.call(this,Me,He),this.isMoved=!1,this.pointerDownPoint=Me,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Me),this._state="creating")},ke.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)},ke.prototype.resize=function(Me){Xe.prototype.resize.call(this,Me),this.setSize()},ke.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')"]])},ke.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(He){He.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(He){He.key==="Enter"&&Me.finishTextEditing(Me.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(He){He.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()},ke.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"))},ke.prototype.finishTextEditing=function(Me){this.setCaptionText(Me.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ke.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()},ke.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()},ke.prototype.setSize=function(){Xe.prototype.setSize.call(this),Re.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ke.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},ke.prototype.dblClick=function(Me,He){Xe.prototype.dblClick.call(this,Me,He),this.showTextEditor()},ke.prototype.setStrokeColor=function(Me){this.strokeColor=Me,this.frame&&Re.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Me),this.stateChanged()},ke.prototype.setFillColor=function(Me){this.fillColor=Me,this.captionBg&&Re.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Me),this.stateChanged()},ke.prototype.setStrokeWidth=function(Me){this.strokeWidth=Me,this.frame&&Re.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ke.prototype.setStrokeDasharray=function(Me){this.strokeDasharray=Me,this.frame&&Re.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ke.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ke.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},ke.prototype.restoreState=function(Me){var He=Me;this.fillColor=He.fillColor,this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.textColor=He.textColor,this.fontFamily=He.fontFamily,this.captionText=He.captionText,this.fontSize=He.fontSize,this.createVisual(),Xe.prototype.restoreState.call(this,Me),this.setSize()},ke.prototype.scale=function(Me,He){Xe.prototype.scale.call(this,Me,He),this.setSize()},ke.typeName="CaptionFrameMarker",ke.title="Caption frame marker",ke.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>',ke}(xe),Xt=function(){function Xe(ke,Me){Me===void 0&&(Me=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ke,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}(),At=function(Xe){function ke(Me,He,et){var Oe=Xe.call(this,Me,!1)||this;return Oe.dataUrl=He,Oe.state=et,Oe}return ot(ke,Xe),ke}(Xt),on=function(Xe){function ke(Me,He,et){et===void 0&&(et=!1);var Oe=Xe.call(this,Me,et)||this;return Oe.marker=He,Oe}return ot(ke,Xe),ke}(Xt),Si=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(ke,Me){this[ke].push(Me)},Xe.prototype.removeEventListener=function(ke,Me){var He=this[ke].indexOf(Me);He>-1&&this[ke].splice(He,1)},Xe}(),Gt=function(){function Xe(ke){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new qe,this._isOpen=!1,this.undoRedoManager=new ci,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 Si,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Xe.instanceCounter++,this.styles=new yt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ke,this.targetRoot=document.body,this.width=ke.clientWidth,this.height=ke.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,Bt,Jn,bt,Zt,Rn,Nn,Ne,ai,qn,jt,On,Mi]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ft,Bt,Jn,bt,Rn,Nn,Ne]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ft,Bt,Jn,bt,Nn]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ke){var Me=this;this._availableMarkerTypes.splice(0),ke.forEach(function(He){if(typeof He=="string"){var et=Me.ALL_MARKER_TYPES.find(function(Oe){return Oe.typeName===He});et!==void 0&&Me._availableMarkerTypes.push(et)}else Me._availableMarkerTypes.push(He)})},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(ke){this._zoomLevel=ke,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 ke=this;this.styles.styleSheetRoot===void 0&&mt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=mt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Me){return Me(new Xt(ke))})},Xe.prototype.render=function(){return wt(this,void 0,void 0,function(){var ke;return Qt(this,function(Me){switch(Me.label){case 0:return this.setCurrentMarker(),(ke=new pt).naturalSize=this.renderAtNaturalSize,ke.imageType=this.renderImageType,ke.imageQuality=this.renderImageQuality,ke.markersOnly=this.renderMarkersOnly,ke.width=this.renderWidth,ke.height=this.renderHeight,[4,ke.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Me.sent(),[4,ke.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Me.sent()]}})})},Xe.prototype.close=function(ke){var Me=this;if(ke===void 0&&(ke=!1),this.isOpen){var He=!1;ke||this.eventListeners.beforeclose.forEach(function(et){var Oe=new Xt(Me,!0);et(Oe),Oe.defaultPrevented&&(He=!0)}),He||(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(et){return et(new Xt(Me))}),this.detachEvents(),this._isOpen=!1)}},Xe.prototype.addMarkersToToolbar=function(){for(var ke,Me=[],He=0;He<arguments.length;He++)Me[He]=arguments[He];(ke=this._availableMarkerTypes).push.apply(ke,Me)},Xe.prototype.addRenderEventListener=function(ke){this.addEventListener("render",function(Me){ke(Me.dataUrl,Me.state)})},Xe.prototype.removeRenderEventListener=function(ke){},Xe.prototype.addCloseEventListener=function(ke){this.addEventListener("close",function(){ke()})},Xe.prototype.removeCloseEventListener=function(ke){},Xe.prototype.setupResizeObserver=function(){var ke=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ke.resize(ke.target.clientWidth,ke.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ke.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Xe.prototype.onPopupTargetResize=function(){var ke=1*this.target.clientWidth/this.target.clientHeight,Me=this.editorCanvas.clientWidth/ke>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ke:this.editorCanvas.clientWidth,He=Me<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ke;this.resize(Me,He)},Xe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Xe.prototype.resize=function(ke,Me){this._isResizing=!0;var He=ke/this.imageWidth,et=Me/this.imageHeight;this.imageWidth=Math.round(ke),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(He,et),this._isResizing=!1},Xe.prototype.scaleMarkers=function(ke,Me){var He,et=this;this._currentMarker&&this._currentMarker instanceof bt?this._currentMarker.scale(ke,Me):(He=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Oe){Oe!==et._currentMarker&&Oe.scale(ke,Me)}),He!==void 0&&this.setCurrentMarker(He)},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 ke=this.editingTarget.getBoundingClientRect(),Me=this.editorCanvas.getBoundingClientRect();this.left=ke.left-Me.left,this.top=ke.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 ke,Me=[],He=0;He<arguments.length;He++)Me[He]=arguments[He];this.defs=Re.createDefs(),this.addDefsToImage(),(ke=this.defs).append.apply(ke,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 ke=document.createElement("a");ke.href="https://markerjs.com/",ke.target="_blank",ke.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>',ke.title="Powered by marker.js",ke.style.display="grid",ke.style.alignItems="center",ke.style.justifyItems="center",ke.style.padding="3px",ke.style.width="20px",ke.style.height="20px",this.logoUI.appendChild(ke),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 ke=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=ke+"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 We(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(ke){this.markerImage.removeChild(ke.container),this.markers.indexOf(ke)>-1&&this.markers.splice(this.markers.indexOf(ke),1),ke.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(ke,Me){if(ke==="marker"&&Me!==void 0)this.createNewMarker(Me);else if(ke==="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 ke=this;if(this._currentMarker!==void 0){var Me=!1;if(this.eventListeners.markerbeforedelete.forEach(function(et){var Oe=new on(ke,ke._currentMarker,!0);et(Oe),Oe.defaultPrevented&&(Me=!0)}),!Me){var He=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(et){return et(new on(ke,He))})}}},Xe.prototype.clear=function(){var ke=this,Me=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ut){var Vn=new on(ke,void 0,!0);ut(Vn),Vn.defaultPrevented&&(Me=!0)}),!Me)){this.setCurrentMarker();for(var He=function(ut){var Vn=et.markers[ut];et.setCurrentMarker(et.markers[ut]),et._currentMarker.dispose(),et.markerImage.removeChild(et._currentMarker.container),et.markers.splice(et.markers.indexOf(et._currentMarker),1),et.eventListeners.markerdelete.forEach(function(jn){return jn(new on(ke,Vn))})},et=this,Oe=this.markers.length-1;Oe>=0;Oe--)He(Oe);this.addUndoStep()}},Object.defineProperty(Xe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Xe.prototype.showNotesEditor=function(){var ke;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=(ke=this._currentMarker.notes)!==null&&ke!==void 0?ke:"",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 ke=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Me=this.getState(),He=this.undoRedoManager.getLastUndoStep();if(!He||He.width===Me.width&&He.height===Me.height){var et=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Me),et<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Oe){return Oe(new Xt(ke))})}else this.undoRedoManager.replaceLastUndoStep(Me),this.eventListeners.statechange.forEach(function(Oe){return Oe(new Xt(ke))})}},Xe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Xe.prototype.undoStep=function(){var ke=this,Me=this.undoRedoManager.undo();Me!==void 0&&(this.restoreState(Me),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(He){return He(new Xt(ke))}))},Xe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Xe.prototype.redoStep=function(){var ke=this,Me=this.undoRedoManager.redo();Me!==void 0&&(this.restoreState(Me),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(He){return He(new Xt(ke))}))},Xe.prototype.stepZoom=function(){var ke=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ke<this.zoomSteps.length-1?this.zoomSteps[ke+1]:this.zoomSteps[0]},Xe.prototype.panTo=function(ke){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ke.x,top:this.prevPanPoint.y-ke.y}),this.prevPanPoint=ke},Xe.prototype.startRenderAndClose=function(){return wt(this,void 0,void 0,function(){var ke,Me,He=this;return Qt(this,function(et){switch(et.label){case 0:return[4,this.render()];case 1:return ke=et.sent(),Me=this.getState(),this.eventListeners.render.forEach(function(Oe){return Oe(new At(He,ke,Me))}),this.close(!0),[2]}})})},Xe.prototype.getState=function(ke){ke===!0&&this.setCurrentMarker();var Me={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(He){return Me.markers.push(He.getState())}),Me},Xe.prototype.restoreState=function(ke){var Me=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ke.markers.forEach(function(He){var et=Me._availableMarkerTypes.find(function(ut){return ut.typeName===He.typeName});if(et!==void 0){var Oe=Me.addNewMarker(et);Oe.restoreState(He),Me.markers.push(Oe)}}),ke.width&&ke.height&&(ke.width!==this.imageWidth||ke.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ke.width,this.imageHeight/ke.height),this.eventListeners.restorestate.forEach(function(He){return He(new Xt(Me))})},Xe.prototype.addNewMarker=function(ke){var Me=Re.createGroup();return this.markerImage.appendChild(Me),new ke(Me,this.overlayContainer,this.settings)},Xe.prototype.createNewMarker=function(ke){var Me,He=this;(Me=typeof ke=="string"?this._availableMarkerTypes.find(function(et){return et.typeName===ke}):ke)&&(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(et){return et(new on(He,He._currentMarker))}))},Xe.prototype.markerCreated=function(ke){var Me=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ke),this.setCurrentMarker(ke),ke instanceof Bt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Bt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(He){return He(new on(Me,Me._currentMarker))})},Xe.prototype.colorChanged=function(ke){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ke,this.settings.defaultStrokeColor=ke)},Xe.prototype.fillColorChanged=function(ke){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ke)},Xe.prototype.markerStateChanged=function(ke){var Me=this;this.eventListeners.markerchange.forEach(function(He){return He(new on(Me,ke))})},Xe.prototype.setCurrentMarker=function(ke){var Me=this;this._currentMarker!==ke&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(He){return He(new on(Me,Me._currentMarker))})),this._currentMarker=ke,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(He){return He(new on(Me,Me._currentMarker))}))},Xe.prototype.onPointerDown=function(ke){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ke.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(He){return He.ownsTarget(ke.target)});Me!==void 0?(this.setCurrentMarker(Me),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ke.clientX,ke.clientY),ke.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ke.clientX,y:ke.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ke.clientX,ke.clientY))},Xe.prototype.onDblClick=function(ke){if(this._isFocused||this.focus(),this.mode==="select"){var Me=this.markers.find(function(He){return He.ownsTarget(ke.target)});Me!==void 0&&Me!==this._currentMarker&&this.setCurrentMarker(Me),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ke.clientX,ke.clientY),ke.target):this.setCurrentMarker()}},Xe.prototype.onPointerMove=function(ke){this.touchPoints!==1&&ke.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ke.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ke.clientX,ke.clientY)):this.zoomLevel>1&&this.panTo({x:ke.clientX,y:ke.clientY}))},Xe.prototype.onPointerUp=function(ke){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ke.clientX,ke.clientY)),this.isDragging=!1,this.addUndoStep()},Xe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Xe.prototype.onKeyUp=function(ke){this._currentMarker===void 0||this.notesArea!==void 0||ke.key!=="Delete"&&ke.key!=="Backspace"||this.deleteSelectedMarker()},Xe.prototype.clientToLocalCoordinates=function(ke,Me){var He=this.markerImage.getBoundingClientRect();return{x:(ke-He.left)/this.zoomLevel,y:(Me-He.top)/this.zoomLevel}},Xe.prototype.onWindowResize=function(){this.positionUI()},Xe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ke=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ke+"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(ke){Je.addKey(ke)},Xe.prototype.addEventListener=function(ke,Me){this.eventListeners.addEventListener(ke,Me)},Xe.prototype.removeEventListener=function(ke,Me){this.eventListeners.removeEventListener(ke,Me)},Xe.prototype.renderState=function(ke){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ke),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Xe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Xe.prototype.focus=function(){var ke=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 Xt(ke))}))},Xe.prototype.blur=function(){var ke=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Me){return Me(new Xt(ke))}))},Xe.instanceCounter=0,Xe}()},13272:function(Dn,ei,be){"use strict";be.d(ei,{s:function(){return rs},default:function(){return an}});function ve(){return ve=Object.assign?Object.assign.bind():function(Ce){for(var Le=1;Le<arguments.length;Le++){var _e=arguments[Le];for(var Ye in _e)({}).hasOwnProperty.call(_e,Ye)&&(Ce[Ye]=_e[Ye])}return Ce},ve.apply(null,arguments)}function ot(Ce){"@babel/helpers - typeof";return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Le){return typeof Le}:function(Le){return Le&&typeof Symbol=="function"&&Le.constructor===Symbol&&Le!==Symbol.prototype?"symbol":typeof Le},ot(Ce)}function wt(Ce,Le){if(ot(Ce)!="object"||!Ce)return Ce;var _e=Ce[Symbol.toPrimitive];if(_e!==void 0){var Ye=_e.call(Ce,Le||"default");if(ot(Ye)!="object")return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Le==="string"?String:Number)(Ce)}function Qt(Ce){var Le=wt(Ce,"string");return ot(Le)=="symbol"?Le:Le+""}function Nt(Ce,Le,_e){return(Le=Qt(Le))in Ce?Object.defineProperty(Ce,Le,{value:_e,enumerable:!0,configurable:!0,writable:!0}):Ce[Le]=_e,Ce}function Re(Ce,Le){var _e=Object.keys(Ce);if(Object.getOwnPropertySymbols){var Ye=Object.getOwnPropertySymbols(Ce);Le&&(Ye=Ye.filter(function(kt){return Object.getOwnPropertyDescriptor(Ce,kt).enumerable})),_e.push.apply(_e,Ye)}return _e}function Je(Ce){for(var Le=1;Le<arguments.length;Le++){var _e=arguments[Le]!=null?arguments[Le]:{};Le%2?Re(Object(_e),!0).forEach(function(Ye){Nt(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,Le){(Le==null||Le>Ce.length)&&(Le=Ce.length);for(var _e=0,Ye=Array(Le);_e<Le;_e++)Ye[_e]=Ce[_e];return Ye}function mt(Ce){if(Array.isArray(Ce))return pt(Ce)}function yt(Ce){if(typeof Symbol!="undefined"&&Ce[Symbol.iterator]!=null||Ce["@@iterator"]!=null)return Array.from(Ce)}function Vt(Ce,Le){if(Ce){if(typeof Ce=="string")return pt(Ce,Le);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,Le):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 We(Ce){return mt(Ce)||yt(Ce)||Vt(Ce)||ct()}function Te(Ce){if(Array.isArray(Ce))return Ce}function ne(Ce,Le){var _e=Ce==null?null:typeof Symbol!="undefined"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(_e!=null){var Ye,kt,_t,nn,Bn=[],vn=!0,Mn=!1;try{if(_t=(_e=_e.call(Ce)).next,Le===0){if(Object(_e)!==_e)return;vn=!1}else for(;!(vn=(Ye=_t.call(_e)).done)&&(Bn.push(Ye.value),Bn.length!==Le);vn=!0);}catch(Xn){Mn=!0,kt=Xn}finally{try{if(!vn&&_e.return!=null&&(nn=_e.return(),Object(nn)!==nn))return}finally{if(Mn)throw kt}}return Bn}}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,Le){return Te(Ce)||ne(Ce,Le)||Vt(Ce,Le)||te()}function se(Ce,Le){if(Ce==null)return{};var _e={};for(var Ye in Ce)if({}.hasOwnProperty.call(Ce,Ye)){if(Le.indexOf(Ye)!==-1)continue;_e[Ye]=Ce[Ye]}return _e}function ge(Ce,Le){if(Ce==null)return{};var _e,Ye,kt=se(Ce,Le);if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(Ce);for(Ye=0;Ye<_t.length;Ye++)_e=_t[Ye],Le.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 Le=1;Le<arguments.length;Le++){var _e=arguments[Le];for(var Ye in _e)Object.prototype.hasOwnProperty.call(_e,Ye)&&(Ce[Ye]=_e[Ye])}return Ce},me.apply(this,arguments)}function xe(Ce,Le){(Le==null||Le>Ce.length)&&(Le=Ce.length);for(var _e=0,Ye=new Array(Le);_e<Le;_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 nt(Ce,Le){if(Ce){if(typeof Ce=="string")return xe(Ce,Le);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,Le)}}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 qe(Ce){return Pe(Ce)||Ke(Ce)||nt(Ce)||ft()}function at(Ce){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Le){return typeof Le}:function(Le){return Le&&typeof Symbol=="function"&&Le.constructor===Symbol&&Le!==Symbol.prototype?"symbol":typeof Le},at(Ce)}function jt(Ce,Le){if(at(Ce)!=="object"||Ce===null)return Ce;var _e=Ce[Symbol.toPrimitive];if(_e!==void 0){var Ye=_e.call(Ce,Le||"default");if(at(Ye)!=="object")return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Le==="string"?String:Number)(Ce)}function Mt(Ce){var Le=jt(Ce,"string");return at(Le)==="symbol"?Le:String(Le)}function bt(Ce,Le,_e){return Le=Mt(Le),Le in Ce?Object.defineProperty(Ce,Le,{value:_e,enumerable:!0,configurable:!0,writable:!0}):Ce[Le]=_e,Ce}function Bt(Ce,Le){var _e=Object.keys(Ce);if(Object.getOwnPropertySymbols){var Ye=Object.getOwnPropertySymbols(Ce);Le&&(Ye=Ye.filter(function(kt){return Object.getOwnPropertyDescriptor(Ce,kt).enumerable})),_e.push.apply(_e,Ye)}return _e}function Ht(Ce){for(var Le=1;Le<arguments.length;Le++){var _e=arguments[Le]!=null?arguments[Le]:{};Le%2?Bt(Object(_e),!0).forEach(function(Ye){bt(Ce,Ye,_e[Ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ce,Object.getOwnPropertyDescriptors(_e)):Bt(Object(_e)).forEach(function(Ye){Object.defineProperty(Ce,Ye,Object.getOwnPropertyDescriptor(_e,Ye))})}return Ce}function Jn(Ce){if(Array.isArray(Ce))return Ce}function qn(Ce,Le){var _e=Ce==null?null:typeof Symbol!="undefined"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(_e!=null){var Ye,kt,_t,nn,Bn=[],vn=!0,Mn=!1;try{if(_t=(_e=_e.call(Ce)).next,Le===0){if(Object(_e)!==_e)return;vn=!1}else for(;!(vn=(Ye=_t.call(_e)).done)&&(Bn.push(Ye.value),Bn.length!==Le);vn=!0);}catch(Xn){Mn=!0,kt=Xn}finally{try{if(!vn&&_e.return!=null&&(nn=_e.return(),Object(nn)!==nn))return}finally{if(Mn)throw kt}}return Bn}}function sn(){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 Nn(Ce,Le){return Jn(Ce)||qn(Ce,Le)||nt(Ce,Le)||sn()}function lt(Ce,Le){if(Ce==null)return{};var _e={},Ye=Object.keys(Ce),kt,_t;for(_t=0;_t<Ye.length;_t++)kt=Ye[_t],!(Le.indexOf(kt)>=0)&&(_e[kt]=Ce[kt]);return _e}function Ge(Ce,Le){if(Ce==null)return{};var _e=lt(Ce,Le),Ye,kt;if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(Ce);for(kt=0;kt<_t.length;kt++)Ye=_t[kt],!(Le.indexOf(Ye)>=0)&&Object.prototype.propertyIsEnumerable.call(Ce,Ye)&&(_e[Ye]=Ce[Ye])}return _e}var Ne=be(67294);function Rn(Ce){var Le=Ne.useRef();Le.current=Ce;var _e=Ne.useCallback(function(){for(var Ye,kt=arguments.length,_t=new Array(kt),nn=0;nn<kt;nn++)_t[nn]=arguments[nn];return(Ye=Le.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[Le].concat(_t))},[]);return _e}function ai(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Zt=ai()?Ne.useLayoutEffect:Ne.useEffect,ci=Zt,On=function(Le,_e){var Ye=Ne.useRef(!0);Zt(function(){if(!Ye.current)return Le()},_e),Zt(function(){return Ye.current=!1,function(){Ye.current=!0}},[])};function Mi(Ce){var Le=Ne.useRef(!1),_e=Ne.useState(Ce),Ye=Nn(_e,2),kt=Ye[0],_t=Ye[1];Ne.useEffect(function(){return Le.current=!1,function(){Le.current=!0}},[]);function nn(Bn,vn){vn&&Le.current||_t(Bn)}return[kt,nn]}function Xt(Ce){return Ce!==void 0}function At(Ce,Le){var _e=Le||{},Ye=_e.defaultValue,kt=_e.value,_t=_e.onChange,nn=_e.postState,Bn=Mi(function(){return Xt(kt)?kt:Xt(Ye)?typeof Ye=="function"?Ye():Ye:typeof Ce=="function"?Ce():Ce}),vn=Nn(Bn,2),Mn=vn[0],Xn=vn[1],Qn=kt!==void 0?kt:Mn,Wi=nn?nn(Qn):Qn,yi=Rn(_t),oi=Mi([Qn]),Li=Nn(oi,2),Ui=Li[0],sr=Li[1];On(function(){var br=Ui[0];Mn!==br&&yi(Mn,br)},[Ui]),On(function(){Xt(kt)||Xn(kt)},[kt]);var to=Rn(function(br,Sr){Xn(br,Sr),sr([Qn],Sr)});return[Wi,to]}var on={};function Si(Ce,Le){}function Gt(Ce,Le){}function Xe(){on={}}function ke(Ce,Le,_e){!Le&&!on[_e]&&(Ce(!1,_e),on[_e]=!0)}function Me(Ce,Le){ke(Si,Ce,Le)}function He(Ce,Le){ke(Gt,Ce,Le)}var et=Me,Oe=be(94184),ut=be.n(Oe),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))},jn=be(16357);function An(Ce,Le,_e){var Ye=Ne.useRef({});return(!("value"in Ye.current)||_e(Ye.current.condition,Le))&&(Ye.current.value=Ce(),Ye.current.condition=Le),Ye.current.value}function Pn(Ce,Le){typeof Ce=="function"?Ce(Le):at(Ce)==="object"&&Ce&&"current"in Ce&&(Ce.current=Le)}function si(){for(var Ce=arguments.length,Le=new Array(Ce),_e=0;_e<Ce;_e++)Le[_e]=arguments[_e];var Ye=Le.filter(function(kt){return kt});return Ye.length<=1?Ye[0]:function(kt){Le.forEach(function(_t){Pn(_t,kt)})}}function mn(){for(var Ce=arguments.length,Le=new Array(Ce),_e=0;_e<Ce;_e++)Le[_e]=arguments[_e];return An(function(){return si.apply(void 0,Le)},Le,function(Ye,kt){return Ye.length===kt.length&&Ye.every(function(_t,nn){return _t===kt[nn]})})}function Fi(Ce){var Le,_e,Ye=isMemo(Ce)?Ce.type.type:Ce.type;return!(typeof Ye=="function"&&!((Le=Ye.prototype)!==null&&Le!==void 0&&Le.render)||typeof Ce=="function"&&!((_e=Ce.prototype)!==null&&_e!==void 0&&_e.render))}var Vi=function(Le){var _e=Le.className,Ye=Le.customizeIcon,kt=Le.customizeIconProps,_t=Le.children,nn=Le.onMouseDown,Bn=Le.onClick,vn=typeof Ye=="function"?Ye(kt):Ye;return Ne.createElement("span",{className:_e,onMouseDown:function(Xn){Xn.preventDefault(),nn==null||nn(Xn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Bn,"aria-hidden":!0},vn!==void 0?vn:Ne.createElement("span",{className:ut()(_e.split(/\s+/).map(function(Mn){return"".concat(Mn,"-icon")}))},_t))},Ir=Vi,Qi=function(Le,_e,Ye,kt,_t){var nn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Bn=arguments.length>6?arguments[6]:void 0,vn=arguments.length>7?arguments[7]:void 0,Mn=Ne.useMemo(function(){if(at(kt)==="object")return kt.clearIcon;if(_t)return _t},[kt,_t]),Xn=Ne.useMemo(function(){return!!(!nn&&kt&&(Ye.length||Bn)&&!(vn==="combobox"&&Bn===""))},[kt,nn,Ye.length,Bn,vn]);return{allowClear:Xn,clearIcon:Ne.createElement(Ir,{className:"".concat(Le,"-clear"),onMouseDown:_e,customizeIcon:Mn},"\xD7")}},Di=Ne.createContext(null);function $r(){return Ne.useContext(Di)}function Yi(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Le=Ne.useState(!1),_e=Nn(Le,2),Ye=_e[0],kt=_e[1],_t=Ne.useRef(null),nn=function(){window.clearTimeout(_t.current)};Ne.useEffect(function(){return nn},[]);var Bn=function(Mn,Xn){nn(),_t.current=window.setTimeout(function(){kt(Mn),Xn&&Xn()},Ce)};return[Ye,Bn,nn]}function hr(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Le=Ne.useRef(null),_e=Ne.useRef(null);Ne.useEffect(function(){return function(){window.clearTimeout(_e.current)}},[]);function Ye(kt){(kt||Le.current===null)&&(Le.current=kt),window.clearTimeout(_e.current),_e.current=window.setTimeout(function(){Le.current=null},Ce)}return[function(){return Le.current},Ye]}function dr(Ce,Le,_e,Ye){var kt=Ne.useRef(null);kt.current={open:Le,triggerOpen:_e,customizedTrigger:Ye},Ne.useEffect(function(){function _t(nn){var Bn;if(!((Bn=kt.current)!==null&&Bn!==void 0&&Bn.customizedTrigger)){var vn=nn.target;vn.shadowRoot&&nn.composed&&(vn=nn.composedPath()[0]||vn),kt.current.open&&Ce().filter(function(Mn){return Mn}).every(function(Mn){return!Mn.contains(vn)&&Mn!==vn})&&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(Le){var _e=Le.keyCode;if(Le.altKey&&!Le.ctrlKey||Le.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(Le){if(Le>=kn.ZERO&&Le<=kn.NINE||Le>=kn.NUM_ZERO&&Le<=kn.NUM_MULTIPLY||Le>=kn.A&&Le<=kn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Le===0)return!0;switch(Le){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}}},Ii=kn;function ra(Ce){return Ce&&![Ii.ESC,Ii.SHIFT,Ii.BACKSPACE,Ii.TAB,Ii.WIN_KEY,Ii.ALT,Ii.META,Ii.WIN_KEY_RIGHT,Ii.CTRL,Ii.SEMICOLON,Ii.EQUALS,Ii.CAPS_LOCK,Ii.CONTEXT_MENU,Ii.F1,Ii.F2,Ii.F3,Ii.F4,Ii.F5,Ii.F6,Ii.F7,Ii.F8,Ii.F9,Ii.F10,Ii.F11,Ii.F12].includes(Ce)}var Un=`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`,Kr=`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`,ia="".concat(Un," ").concat(Kr).split(/[\s\n]+/),sa="aria-",Wa="data-";function ma(Ce,Le){return Ce.indexOf(Le)===0}function Ha(Ce){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e;Le===!1?_e={aria:!0,data:!0,attr:!0}:Le===!0?_e={aria:!0}:_e=Ht({},Le);var Ye={};return Object.keys(Ce).forEach(function(kt){(_e.aria&&(kt==="role"||ma(kt,sa))||_e.data&&ma(kt,Wa)||_e.attr&&ia.includes(kt))&&(Ye[kt]=Ce[kt])}),Ye}function da(){return da=Object.assign?Object.assign.bind():function(Ce){for(var Le=1;Le<arguments.length;Le++){var _e=arguments[Le];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(Le){return typeof Le}:function(Le){return Le&&typeof Symbol=="function"&&Le.constructor===Symbol&&Le!==Symbol.prototype?"symbol":typeof Le},la(Ce)}function No(Ce,Le){if(la(Ce)!=="object"||Ce===null)return Ce;var _e=Ce[Symbol.toPrimitive];if(_e!==void 0){var Ye=_e.call(Ce,Le||"default");if(la(Ye)!=="object")return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Le==="string"?String:Number)(Ce)}function ti(Ce){var Le=No(Ce,"string");return la(Le)==="symbol"?Le:String(Le)}function Ee(Ce,Le,_e){return Le=ti(Le),Le in Ce?Object.defineProperty(Ce,Le,{value:_e,enumerable:!0,configurable:!0,writable:!0}):Ce[Le]=_e,Ce}function pn(Ce,Le){var _e=Object.keys(Ce);if(Object.getOwnPropertySymbols){var Ye=Object.getOwnPropertySymbols(Ce);Le&&(Ye=Ye.filter(function(kt){return Object.getOwnPropertyDescriptor(Ce,kt).enumerable})),_e.push.apply(_e,Ye)}return _e}function hn(Ce){for(var Le=1;Le<arguments.length;Le++){var _e=arguments[Le]!=null?arguments[Le]:{};Le%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 ii(Ce){if(Array.isArray(Ce))return Ce}function Yn(Ce,Le){var _e=Ce==null?null:typeof Symbol!="undefined"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(_e!=null){var Ye,kt,_t,nn,Bn=[],vn=!0,Mn=!1;try{if(_t=(_e=_e.call(Ce)).next,Le===0){if(Object(_e)!==_e)return;vn=!1}else for(;!(vn=(Ye=_t.call(_e)).done)&&(Bn.push(Ye.value),Bn.length!==Le);vn=!0);}catch(Xn){Mn=!0,kt=Xn}finally{try{if(!vn&&_e.return!=null&&(nn=_e.return(),Object(nn)!==nn))return}finally{if(Mn)throw kt}}return Bn}}function In(Ce,Le){(Le==null||Le>Ce.length)&&(Le=Ce.length);for(var _e=0,Ye=new Array(Le);_e<Le;_e++)Ye[_e]=Ce[_e];return Ye}function en(Ce,Le){if(Ce){if(typeof Ce=="string")return In(Ce,Le);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 In(Ce,Le)}}function ni(){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 zt(Ce,Le){return ii(Ce)||Yn(Ce,Le)||en(Ce,Le)||ni()}function Kt(Ce,Le){if(Ce==null)return{};var _e={},Ye=Object.keys(Ce),kt,_t;for(_t=0;_t<Ye.length;_t++)kt=Ye[_t],!(Le.indexOf(kt)>=0)&&(_e[kt]=Ce[kt]);return _e}function Ft(Ce,Le){if(Ce==null)return{};var _e=Kt(Ce,Le),Ye,kt;if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(Ce);for(kt=0;kt<_t.length;kt++)Ye=_t[kt],!(Le.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,hi=function(Le,_e){var Ye=Ne.useRef(!0);Ri(function(){return Le(Ye.current)},_e),Ri(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},Ut=function(Le,_e){hi(function(Ye){if(!Ye)return Le()},_e)},zn=hi,xn=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fr=void 0;function ri(Ce,Le){var _e=Ce.prefixCls,Ye=Ce.invalidate,kt=Ce.item,_t=Ce.renderItem,nn=Ce.responsive,Bn=Ce.responsiveDisabled,vn=Ce.registerSize,Mn=Ce.itemKey,Xn=Ce.className,Qn=Ce.style,Wi=Ce.children,yi=Ce.display,oi=Ce.order,Li=Ce.component,Ui=Li===void 0?"div":Li,sr=Ft(Ce,xn),to=nn&&!yi;function br(mr){vn(Mn,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:nn?oi:Fr,pointerEvents:to?"none":Fr,position:to?"absolute":Fr});var bi={};to&&(bi["aria-hidden"]=!0);var Xr=Ne.createElement(Ui,da({className:ut()(!Ye&&_e,Xn),style:hn(hn({},wo),Qn)},bi,sr,{ref:Le}),Sr);return nn&&(Xr=Ne.createElement(un.Z,{onResize:function(ao){var po=ao.offsetWidth;br(po)},disabled:Bn},Xr)),Xr}var $t=Ne.forwardRef(ri);$t.displayName="Item";var _i=$t;function Wr(Ce){var Le=Ne.useRef();Le.current=Ce;var _e=Ne.useCallback(function(){for(var Ye,kt=arguments.length,_t=new Array(kt),nn=0;nn<kt;nn++)_t[nn]=arguments[nn];return(Ye=Le.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[Le].concat(_t))},[]);return _e}var Br=be(73935),Sn=function(Le){return+setTimeout(Le,16)},or=function(Le){return clearTimeout(Le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Sn=function(Le){return window.requestAnimationFrame(Le)},or=function(Le){return window.cancelAnimationFrame(Le)});var Xo=0,Na=new Map;function aa(Ce){Na.delete(Ce)}var ur=function(Le){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),Le();else{var nn=Sn(function(){kt(_t-1)});Na.set(Ye,nn)}}return kt(_e),Ye};ur.cancel=function(Ce){var Le=Na.get(Ce);return aa(Le),or(Le)};var Nr=ur;function io(Ce){if(typeof MessageChannel=="undefined")Nr(Ce);else{var Le=new MessageChannel;Le.port1.onmessage=function(){return Ce()},Le.port2.postMessage(void 0)}}function va(){var Ce=Ne.useRef(null),Le=function(Ye){Ce.current||(Ce.current=[],io(function(){(0,Br.unstable_batchedUpdates)(function(){Ce.current.forEach(function(kt){kt()}),Ce.current=null})})),Ce.current.push(Ye)};return Le}function Ho(Ce,Le){var _e=Ne.useState(Le),Ye=zt(_e,2),kt=Ye[0],_t=Ye[1],nn=Wr(function(Bn){Ce(function(){_t(Bn)})});return[kt,nn]}var pi=Ne.createContext(null),lo=["component"],al=["className"],el=["className"],Ns=function(Le,_e){var Ye=Ne.useContext(pi);if(!Ye){var kt=Le.component,_t=kt===void 0?"div":kt,nn=Ft(Le,lo);return Ne.createElement(_t,da({},nn,{ref:_e}))}var Bn=Ye.className,vn=Ft(Ye,al),Mn=Le.className,Xn=Ft(Le,el);return Ne.createElement(pi.Provider,{value:null},Ne.createElement(_i,da({ref:_e,className:ut()(Bn,Mn)},vn,Xn)))},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,Le){var _e=Ce.prefixCls,Ye=_e===void 0?"rc-overflow":_e,kt=Ce.data,_t=kt===void 0?[]:kt,nn=Ce.renderItem,Bn=Ce.renderRawItem,vn=Ce.itemKey,Mn=Ce.itemWidth,Xn=Mn===void 0?10:Mn,Qn=Ce.ssr,Wi=Ce.style,yi=Ce.className,oi=Ce.maxCount,Li=Ce.renderRest,Ui=Ce.renderRawRest,sr=Ce.suffix,to=Ce.component,br=to===void 0?"div":to,Sr=Ce.itemComponent,wo=Ce.onVisibleChange,bi=Ft(Ce,Va),Xr=Qn==="full",mr=va(),ao=Ho(mr,null),po=zt(ao,2),Ar=po[0],To=po[1],mo=Ar||0,zo=Ho(mr,new Map),Dr=zt(zo,2),Co=Dr[0],ca=Dr[1],Da=Ho(mr,0),ga=zt(Da,2),Jr=ga[0],Jo=ga[1],ua=Ho(mr,0),Ea=zt(ua,2),es=Ea[0],ba=Ea[1],_o=Ho(mr,0),yo=zt(_o,2),ea=yo[0],Ka=yo[1],Vo=(0,Ne.useState)(null),Zr=zt(Vo,2),ho=Zr[0],fo=Zr[1],Mr=(0,Ne.useState)(null),Gr=zt(Mr,2),Do=Gr[0],ye=Gr[1],Ie=Ne.useMemo(function(){return Do===null&&Xr?Number.MAX_SAFE_INTEGER:Do||0},[Do,Ar]),je=(0,Ne.useState)(!1),Ue=zt(je,2),dt=Ue[0],Wt=Ue[1],Jt="".concat(Ye,"-item"),rn=Math.max(Jr,es),Fn=oi===Ao,Kn=_t.length&&Fn,En=oi===ms,Ci=Kn||typeof oi=="number"&&_t.length>oi,Gi=(0,Ne.useMemo)(function(){var wi=_t;return Kn?Ar===null&&Xr?wi=_t:wi=_t.slice(0,Math.min(_t.length,mo/Xn)):typeof oi=="number"&&(wi=_t.slice(0,oi)),wi},[_t,Xn,Ar,oi,Kn]),Pi=(0,Ne.useMemo)(function(){return Kn?_t.slice(Ie+1):_t.slice(Gi.length)},[_t,Gi,Kn,Ie]),Ai=(0,Ne.useCallback)(function(wi,qi){var Hi;return typeof vn=="function"?vn(wi):(Hi=vn&&(wi==null?void 0:wi[vn]))!==null&&Hi!==void 0?Hi:qi},[vn]),Ni=(0,Ne.useCallback)(nn||function(wi){return wi},[nn]);function ki(wi,qi,Hi){Do===wi&&(qi===void 0||qi===ho)||(ye(wi),Hi||(Wt(wi<_t.length-1),wo==null||wo(wi)),qi!==void 0&&fo(qi))}function wn(wi,qi){To(qi.clientWidth)}function Gn(wi,qi){ca(function(Hi){var Lr=new Map(Hi);return qi===null?Lr.delete(wi):Lr.set(wi,qi),Lr})}function $n(wi,qi){ba(qi),Jo(es)}function fi(wi,qi){Ka(qi)}function rr(wi){return Co.get(Ai(Gi[wi],wi))}zn(function(){if(mo&&typeof rn=="number"&&Gi){var wi=ea,qi=Gi.length,Hi=qi-1;if(!qi){ki(0,null);return}for(var Lr=0;Lr<qi;Lr+=1){var Eo=rr(Lr);if(Xr&&(Eo=Eo||0),Eo===void 0){ki(Lr-1,void 0,!0);break}if(wi+=Eo,Hi===0&&wi<=mo||Lr===Hi-1&&wi+rr(Hi)<=mo){ki(Hi,null);break}else if(wi+rn>mo){ki(Lr-1,wi-Eo-ea+es);break}}sr&&rr(0)+ea>mo&&fo(null)}},[mo,Co,es,ea,Ai,Gi]);var $i=dt&&!!Pi.length,ar={};ho!==null&&Kn&&(ar={position:"absolute",left:ho,top:0});var Et={prefixCls:Jt,responsive:Kn,component:Sr,invalidate:En},lr=Bn?function(wi,qi){var Hi=Ai(wi,qi);return Ne.createElement(pi.Provider,{key:Hi,value:hn(hn({},Et),{},{order:qi,item:wi,itemKey:Hi,registerSize:Gn,display:qi<=Ie})},Bn(wi,qi))}:function(wi,qi){var Hi=Ai(wi,qi);return Ne.createElement(_i,da({},Et,{order:qi,key:Hi,item:wi,renderItem:Ni,itemKey:Hi,registerSize:Gn,display:qi<=Ie}))},Pr,Or={order:$i?Ie:Number.MAX_SAFE_INTEGER,className:"".concat(Jt,"-rest"),registerSize:$n,display:$i};if(Ui)Ui&&(Pr=Ne.createElement(pi.Provider,{value:hn(hn({},Et),Or)},Ui(Pi)));else{var Oo=Li||Ba;Pr=Ne.createElement(_i,da({},Et,Or),typeof Oo=="function"?Oo(Pi):Oo)}var Ur=Ne.createElement(br,da({className:ut()(!En&&Ye,yi),style:Wi,ref:Le},bi),Gi.map(lr),Ci?Pr:null,sr&&Ne.createElement(_i,da({},Et,{responsive:Fn,responsiveDisabled:!Kn,order:Ie,className:"".concat(Jt,"-suffix"),registerSize:fi,display:!0,style:ar}),sr));return Fn&&(Ur=Ne.createElement(un.Z,{onResize:wn,disabled:!Kn},Ur)),Ur}var Er=Ne.forwardRef($a);Er.displayName="Overflow",Er.Item=Yo,Er.RESPONSIVE=Ao,Er.INVALIDATE=ms;var uo=Er,So=uo,Wn=function(Le,_e){var Ye,kt=Le.prefixCls,_t=Le.id,nn=Le.inputElement,Bn=Le.disabled,vn=Le.tabIndex,Mn=Le.autoFocus,Xn=Le.autoComplete,Qn=Le.editable,Wi=Le.activeDescendantId,yi=Le.value,oi=Le.maxLength,Li=Le.onKeyDown,Ui=Le.onMouseDown,sr=Le.onChange,to=Le.onPaste,br=Le.onCompositionStart,Sr=Le.onCompositionEnd,wo=Le.onBlur,bi=Le.open,Xr=Le.attrs,mr=nn||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,Ht(Ht(Ht({type:"search"},Ar),{},{id:_t,ref:si(_e,po),disabled:Bn,tabIndex:vn,autoComplete:Xn||"off",autoFocus:Mn,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":bi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(_t,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(_t,"_list"),"aria-activedescendant":bi?Wi:void 0},Xr),{},{value:Qn?yi:"",maxLength:oi,readOnly:!Qn,unselectable:Qn?null:"on",style:Ht(Ht({},Da),{},{opacity:Qn?null:0}),onKeyDown:function(Jr){Li(Jr),To&&To(Jr)},onMouseDown:function(Jr){Ui(Jr),zo&&zo(Jr)},onChange:function(Jr){sr(Jr),mo&&mo(Jr)},onCompositionStart:function(Jr){br(Jr),Dr&&Dr(Jr)},onCompositionEnd:function(Jr){Sr(Jr),Co&&Co(Jr)},onPaste:to,onBlur:function(Jr){wo(Jr),ca&&ca(Jr)}})),mr},ka=Ne.forwardRef(Wn),Cn=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(at(Ce))}function us(Ce){var Le=void 0;return Ce&&(Ua(Ce.title)?Le=Ce.title.toString():Ua(Ce.label)&&(Le=Ce.label.toString())),Le}function tl(Ce,Le){ds?Ne.useLayoutEffect(Ce,Le):Ne.useEffect(Ce,Le)}function ts(Ce){var Le;return(Le=Ce.key)!==null&&Le!==void 0?Le:Ce.value}var wr=function(Le){Le.preventDefault(),Le.stopPropagation()},st=function(Le){var _e=Le.id,Ye=Le.prefixCls,kt=Le.values,_t=Le.open,nn=Le.searchValue,Bn=Le.autoClearSearchValue,vn=Le.inputRef,Mn=Le.placeholder,Xn=Le.disabled,Qn=Le.mode,Wi=Le.showSearch,yi=Le.autoFocus,oi=Le.autoComplete,Li=Le.activeDescendantId,Ui=Le.tabIndex,sr=Le.removeIcon,to=Le.maxTagCount,br=Le.maxTagTextLength,Sr=Le.maxTagPlaceholder,wo=Sr===void 0?function(Mr){return"+ ".concat(Mr.length," ...")}:Sr,bi=Le.tagRender,Xr=Le.onToggleOpen,mr=Le.onRemove,ao=Le.onInputChange,po=Le.onInputPaste,Ar=Le.onInputKeyDown,To=Le.onInputMouseDown,mo=Le.onInputCompositionStart,zo=Le.onInputCompositionEnd,Dr=Le.onInputBlur,Co=Ne.useRef(null),ca=(0,Ne.useState)(0),Da=Nn(ca,2),ga=Da[0],Jr=Da[1],Jo=(0,Ne.useState)(!1),ua=Nn(Jo,2),Ea=ua[0],es=ua[1],ba="".concat(Ye,"-selection"),_o=_t||Qn==="multiple"&&Bn===!1||Qn==="tags"?nn:"",yo=Qn==="tags"||Qn==="multiple"&&Bn===!1||Wi&&(_t||Ea);tl(function(){Jr(Co.current.scrollWidth)},[_o]);var ea=function(Gr,Do,ye,Ie,je){return Ne.createElement("span",{title:us(Gr),className:ut()("".concat(ba,"-item"),bt({},"".concat(ba,"-item-disabled"),ye))},Ne.createElement("span",{className:"".concat(ba,"-item-content")},Do),Ie&&Ne.createElement(Ir,{className:"".concat(ba,"-item-remove"),onMouseDown:wr,onClick:je,customizeIcon:sr},"\xD7"))},Ka=function(Gr,Do,ye,Ie,je,Ue){var dt=function(Jt){wr(Jt),Xr(!_t)};return Ne.createElement("span",{onMouseDown:dt},bi({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=!Xn&&!Do,Ue=ye;if(typeof br=="number"&&(typeof ye=="string"||typeof ye=="number")){var dt=String(Ue);dt.length>br&&(Ue="".concat(dt.slice(0,br),"..."))}var Wt=function(rn){rn&&rn.stopPropagation(),mr(Gr)};return typeof bi=="function"?Ka(Ie,Ue,Do,je,Wt):ea(Gr,Ue,Do,je,Wt)},Zr=function(Gr){if(!kt.length)return null;var Do=typeof wo=="function"?wo(Gr):wo;return typeof bi=="function"?Ka(void 0,Do,!1,!1,void 0,!0):ea({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(Cn,{ref:vn,open:_t,prefixCls:Ye,id:_e,inputElement:null,disabled:Xn,autoFocus:yi,autoComplete:oi,editable:yo,activeDescendantId:Li,value:_o,onKeyDown:Ar,onMouseDown:To,onChange:ao,onPaste:po,onCompositionStart:mo,onCompositionEnd:zo,onBlur:Dr,tabIndex:Ui,attrs:Ha(Le,!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")},Mn))},St=st,Rt=function(Le){var _e=Le.inputElement,Ye=Le.prefixCls,kt=Le.id,_t=Le.inputRef,nn=Le.disabled,Bn=Le.autoFocus,vn=Le.autoComplete,Mn=Le.activeDescendantId,Xn=Le.mode,Qn=Le.open,Wi=Le.values,yi=Le.placeholder,oi=Le.tabIndex,Li=Le.showSearch,Ui=Le.searchValue,sr=Le.activeValue,to=Le.maxLength,br=Le.onInputKeyDown,Sr=Le.onInputMouseDown,wo=Le.onInputChange,bi=Le.onInputPaste,Xr=Le.onInputCompositionStart,mr=Le.onInputCompositionEnd,ao=Le.onInputBlur,po=Le.title,Ar=Ne.useState(!1),To=Nn(Ar,2),mo=To[0],zo=To[1],Dr=Xn==="combobox",Co=Dr||Li,ca=Wi[0],Da=Ui||"";Dr&&sr&&!mo&&(Da=sr),Ne.useEffect(function(){Dr&&zo(!1)},[Dr,sr]);var ga=Xn!=="combobox"&&!Qn&&!Li?!1:!!Da,Jr=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},yi)},[ca,ga,yi,Ye]);return Ne.createElement("span",{className:"".concat(Ye,"-selection-wrap")},Ne.createElement("span",{className:"".concat(Ye,"-selection-search")},Ne.createElement(Cn,{ref:_t,prefixCls:Ye,id:kt,open:Qn,inputElement:_e,disabled:nn,autoFocus:Bn,autoComplete:vn,editable:Co,activeDescendantId:Mn,value:Da,onKeyDown:br,onMouseDown:Sr,onChange:function(Ea){zo(!0),wo(Ea)},onPaste:bi,onCompositionStart:Xr,onCompositionEnd:mr,onBlur:ao,tabIndex:oi,attrs:Ha(Le,!0),maxLength:Dr?to:void 0})),!Dr&&ca?Ne.createElement("span",{className:"".concat(Ye,"-selection-item"),title:Jr,style:ga?{visibility:"hidden"}:void 0},ca.label):null,Jo)},gn=Rt,Hn=function(Le,_e){var Ye=(0,Ne.useRef)(null),kt=(0,Ne.useRef)(!1),_t=Le.prefixCls,nn=Le.open,Bn=Le.mode,vn=Le.showSearch,Mn=Le.tokenWithEnter,Xn=Le.disabled,Qn=Le.prefix,Wi=Le.autoClearSearchValue,yi=Le.onSearch,oi=Le.onSearchSubmit,Li=Le.onToggleOpen,Ui=Le.onInputKeyDown,sr=Le.onInputBlur,to=Le.domRef;Ne.useImperativeHandle(_e,function(){return{focus:function(Jr){Ye.current.focus(Jr)},blur:function(){Ye.current.blur()}}});var br=hr(0),Sr=Nn(br,2),wo=Sr[0],bi=Sr[1],Xr=function(Jr){var Jo=Jr.which,ua=Ye.current instanceof HTMLTextAreaElement;!ua&&nn&&(Jo===Ii.UP||Jo===Ii.DOWN)&&Jr.preventDefault(),Ui&&Ui(Jr),Jo===Ii.ENTER&&Bn==="tags"&&!kt.current&&!nn&&(oi==null||oi(Jr.target.value)),!(ua&&!nn&&~[Ii.UP,Ii.DOWN,Ii.LEFT,Ii.RIGHT].indexOf(Jo))&&ra(Jo)&&Li(!0)},mr=function(){bi(!0)},ao=(0,Ne.useRef)(null),po=function(Jr){yi(Jr,!0,kt.current)!==!1&&Li(!0)},Ar=function(){kt.current=!0},To=function(Jr){kt.current=!1,Bn!=="combobox"&&po(Jr.target.value)},mo=function(Jr){var Jo=Jr.target.value;if(Mn&&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(Jr){var Jo=Jr.clipboardData,ua=Jo==null?void 0:Jo.getData("text");ao.current=ua||""},Dr=function(Jr){var Jo=Jr.target;if(Jo!==Ye.current){var ua=document.body.style.msTouchAction!==void 0;ua?setTimeout(function(){Ye.current.focus()}):Ye.current.focus()}},Co=function(Jr){var Jo=wo();Jr.target!==Ye.current&&!Jo&&!(Bn==="combobox"&&Xn)&&Jr.preventDefault(),(Bn!=="combobox"&&(!vn||!Jo)||!nn)&&(nn&&Wi!==!1&&yi("",!0,!1),Li())},ca={inputRef:Ye,onInputKeyDown:Xr,onInputMouseDown:mr,onInputChange:mo,onInputPaste:zo,onInputCompositionStart:Ar,onInputCompositionEnd:To,onInputBlur:sr},Da=Bn==="multiple"||Bn==="tags"?Ne.createElement(St,me({},Le,ca)):Ne.createElement(gn,me({},Le,ca));return Ne.createElement("div",{ref:to,className:"".concat(_t,"-selector"),onClick:Dr,onMouseDown:Co},Qn&&Ne.createElement("div",{className:"".concat(_t,"-prefix")},Qn),Da)},Oi=Ne.forwardRef(Hn),Yt=Oi,Zn=be(98280),Ji=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xi=function(Le){var _e=Le===!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(Le,_e){var Ye=Le.prefixCls,kt=Le.disabled,_t=Le.visible,nn=Le.children,Bn=Le.popupElement,vn=Le.animation,Mn=Le.transitionName,Xn=Le.dropdownStyle,Qn=Le.dropdownClassName,Wi=Le.direction,yi=Wi===void 0?"ltr":Wi,oi=Le.placement,Li=Le.builtinPlacements,Ui=Le.dropdownMatchSelectWidth,sr=Le.dropdownRender,to=Le.dropdownAlign,br=Le.getPopupContainer,Sr=Le.empty,wo=Le.getTriggerDOMNode,bi=Le.onPopupVisibleChange,Xr=Le.onPopupMouseEnter,mr=Ge(Le,Ji),ao="".concat(Ye,"-dropdown"),po=Bn;sr&&(po=sr(Bn));var Ar=Ne.useMemo(function(){return Li||xi(Ui)},[Li,Ui]),To=vn?"".concat(ao,"-").concat(vn):Mn,mo=typeof Ui=="number",zo=Ne.useMemo(function(){return mo?null:Ui===!1?"minWidth":"width"},[Ui,mo]),Dr=Xn;mo&&(Dr=Ht(Ht({},Dr),{},{width:Ui}));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(Zn.Z,me({},mr,{showAction:bi?["click"]:[],hideAction:bi?["click"]:[],popupPlacement:oi||(yi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ar,prefixCls:ao,popupTransitionName:To,popup:Ne.createElement("div",{onMouseEnter:Xr},po),ref:Co,stretch:zo,popupAlign:to,popupVisible:_t,getPopupContainer:br,popupClassName:ut()(Qn,bt({},"".concat(ao,"-empty"),Sr)),popupStyle:Dr,getTriggerDOMNode:wo,onPopupVisibleChange:bi}),nn)},Zi=Ne.forwardRef(nr),vi=Zi;function pr(Ce){return Jn(Ce)||Ke(Ce)||nt(Ce)||sn()}function fn(Ce,Le){var _e=Ce.key,Ye;return"value"in Ce&&(Ye=Ce.value),_e!=null?_e:Ye!==void 0?Ye:"rc-index-key-".concat(Le)}function eo(Ce){return typeof Ce!="undefined"&&!Number.isNaN(Ce)}function so(Ce,Le){var _e=Ce||{},Ye=_e.label,kt=_e.value,_t=_e.options,nn=_e.groupLabel,Bn=Ye||(Le?"children":"label");return{label:Bn,value:kt||"value",options:_t||"options",groupLabel:nn||Bn}}function ya(Ce){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=Le.fieldNames,Ye=Le.childrenAsData,kt=[],_t=so(_e,!1),nn=_t.label,Bn=_t.value,vn=_t.options,Mn=_t.groupLabel;function Xn(Qn,Wi){Array.isArray(Qn)&&Qn.forEach(function(yi){if(Wi||!(vn in yi)){var oi=yi[Bn];kt.push({key:fn(yi,kt.length),groupOption:Wi,data:yi,label:yi[nn],value:oi})}else{var Li=yi[Mn];Li===void 0&&Ye&&(Li=yi.label),kt.push({key:fn(yi,kt.length),group:!0,data:yi,label:Li}),Xn(yi[vn],!0)}})}return Xn(Ce,!1),kt}function fa(Ce){var Le=Ht({},Ce);return"props"in Le||Object.defineProperty(Le,"props",{get:function(){return et(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Le}}),Le}var Ia=function(Le,_e,Ye){if(!_e||!_e.length)return null;var kt=!1,_t=function Bn(vn,Mn){var Xn=pr(Mn),Qn=Xn[0],Wi=Xn.slice(1);if(!Qn)return[vn];var yi=vn.split(Qn);return kt=kt||yi.length>1,yi.reduce(function(oi,Li){return[].concat(qe(oi),qe(Bn(Li,Wi)))},[]).filter(Boolean)},nn=_t(Le,_e);return kt?typeof Ye!="undefined"?nn.slice(0,Ye):nn:null},ns=Ne.createContext(null),Us=ns;function Ds(Ce){var Le=Ce.visible,_e=Ce.values;if(!Le)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,nn=kt.value;return["number","string"].includes(at(_t))?_t:nn}).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(Le){return Le==="tags"||Le==="multiple"},nl=Ne.forwardRef(function(Ce,Le){var _e,Ye=Ce.id,kt=Ce.prefixCls,_t=Ce.className,nn=Ce.showSearch,Bn=Ce.tagRender,vn=Ce.direction,Mn=Ce.omitDomProps,Xn=Ce.displayValues,Qn=Ce.onDisplayValuesChange,Wi=Ce.emptyOptions,yi=Ce.notFoundContent,oi=yi===void 0?"Not Found":yi,Li=Ce.onClear,Ui=Ce.mode,sr=Ce.disabled,to=Ce.loading,br=Ce.getInputElement,Sr=Ce.getRawInputElement,wo=Ce.open,bi=Ce.defaultOpen,Xr=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,Jr=Ce.OptionList,Jo=Ce.animation,ua=Ce.transitionName,Ea=Ce.dropdownStyle,es=Ce.dropdownClassName,ba=Ce.dropdownMatchSelectWidth,_o=Ce.dropdownRender,yo=Ce.dropdownAlign,ea=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(Ui),Ue=(nn!==void 0?nn:je)||Ui==="combobox",dt=Ht({},Ie);Hs.forEach(function(Uo){delete dt[Uo]}),Mn==null||Mn.forEach(function(Uo){delete dt[Uo]});var Wt=Ne.useState(!1),Jt=Nn(Wt,2),rn=Jt[0],Fn=Jt[1];Ne.useEffect(function(){Fn(Vn())},[]);var Kn=Ne.useRef(null),En=Ne.useRef(null),Ci=Ne.useRef(null),Gi=Ne.useRef(null),Pi=Ne.useRef(null),Ai=Ne.useRef(!1),Ni=Yi(),ki=Nn(Ni,3),wn=ki[0],Gn=ki[1],$n=ki[2];Ne.useImperativeHandle(Le,function(){var Uo,jr;return{focus:(Uo=Gi.current)===null||Uo===void 0?void 0:Uo.focus,blur:(jr=Gi.current)===null||jr===void 0?void 0:jr.blur,scrollTo:function(os){var vs;return(vs=Pi.current)===null||vs===void 0?void 0:vs.scrollTo(os)},nativeElement:Kn.current||En.current}});var fi=Ne.useMemo(function(){var Uo;if(Ui!=="combobox")return Ar;var jr=(Uo=Xn[0])===null||Uo===void 0?void 0:Uo.value;return typeof jr=="string"||typeof jr=="number"?String(jr):""},[Ar,Ui,Xn]),rr=Ui==="combobox"&&typeof br=="function"&&br()||null,$i=typeof Sr=="function"&&Sr(),ar=mn(En,$i==null||(_e=$i.props)===null||_e===void 0?void 0:_e.ref),Et=Ne.useState(!1),lr=Nn(Et,2),Pr=lr[0],Or=lr[1];ci(function(){Or(!0)},[]);var Oo=At(!1,{defaultValue:bi,value:wo}),Ur=Nn(Oo,2),wi=Ur[0],qi=Ur[1],Hi=Pr?wi:!1,Lr=!oi&&Wi;(sr||Lr&&Hi&&Ui==="combobox")&&(Hi=!1);var Eo=Lr?!1:Hi,vr=Ne.useCallback(function(Uo){var jr=Uo!==void 0?Uo:!Hi;sr||(qi(jr),Hi!==jr&&(Xr==null||Xr(jr)))},[sr,Hi,qi,Xr]),Qr=Ne.useMemo(function(){return(Dr||[]).some(function(Uo){return[`
|
|
`,`\r
|
|
`].includes(Uo)})},[Dr]),xr=Ne.useContext(Us)||{},fr=xr.maxCount,Hr=xr.rawValues,Vr=function(jr,Wo,os){if(!(je&&eo(fr)&&(Hr==null?void 0:Hr.size)>=fr)){var vs=!0,Ps=jr;ao==null||ao(null);var bl=Ia(jr,Dr,eo(fr)?fr-Hr.size:void 0),ul=os?null:bl;return Ui!=="combobox"&&ul&&(Ps="",zo==null||zo(ul),vr(!1),vs=!1),mo&&fi!==Ps&&mo(Ps,{source:Wo?"typing":"effect"}),vs}},Aa=function(jr){!jr||!jr.trim()||mo(jr,{source:"submit"})};Ne.useEffect(function(){!Hi&&!je&&Ui!=="combobox"&&Vr("",!1,!1)},[Hi]),Ne.useEffect(function(){wi&&sr&&qi(!1),sr&&!Ai.current&&Gn(!1)},[sr]);var Ya=hr(),bo=Nn(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&&(Ui!=="combobox"&&jr.preventDefault(),Hi||vr(!0)),vo(!!fi),os==="Backspace"&&!Wo&&je&&!fi&&Xn.length){for(var Ps=qe(Xn),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&&Qn(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=Pi.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=Pi.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=Xn.filter(function(os){return os!==jr});Qn(Wo,{type:"remove",values:[jr]})},Rr=function(){Qo.current=!1},wa=Ne.useRef(!1),Pa=function(){Gn(!0),sr||(fo&&!wa.current&&fo.apply(void 0,arguments),ho.includes("focus")&&vr(!0)),wa.current=!0},gs=function(){Ai.current=!0,Gn(!1,function(){wa.current=!1,Ai.current=!1,vr(!1)}),!sr&&(fi&&(Ui==="tags"?mo(fi,{source:"submit"}):Ui==="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=Ci.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),$n(),!rn&&!vs.contains(document.activeElement)){var bu;(bu=Gi.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=Nn(Es,2),Qa=Ma[1];function Ks(){Qa({})}var Xs;$i&&(Xs=function(jr){vr(jr)}),dr(function(){var Uo;return[Kn.current,(Uo=Ci.current)===null||Uo===void 0?void 0:Uo.getPopupElement()]},Eo,vr,!!$i);var vl=Ne.useMemo(function(){return Ht(Ht({},Ce),{},{notFoundContent:oi,open:Hi,triggerOpen:Eo,id:Ye,showSearch:Ue,multiple:je,toggleOpen:vr})},[Ce,oi,Eo,Hi,Ye,Ue,je,vr]),hs=!!Da||to,Yl;hs&&(Yl=Ne.createElement(Ir,{className:ut()("".concat(kt,"-arrow"),bt({},"".concat(kt,"-arrow-loading"),to)),customizeIcon:Da,customizeIconProps:{loading:to,searchValue:fi,open:Hi,focused:wn,showSearch:Ue}}));var Js=function(){var jr;Li==null||Li(),(jr=Gi.current)===null||jr===void 0||jr.focus(),Qn([],{type:"clear",values:Xn}),Vr("",!1,!1)},ws=Qi(kt,Js,Xn,Co,ga,sr,fi,Ui),bs=ws.allowClear,Za=ws.clearIcon,Go=Ne.createElement(Jr,{ref:Pi}),yl=ut()(kt,_t,bt(bt(bt(bt(bt(bt(bt(bt(bt(bt({},"".concat(kt,"-focused"),wn),"".concat(kt,"-multiple"),je),"".concat(kt,"-single"),!je),"".concat(kt,"-allow-clear"),Co),"".concat(kt,"-show-arrow"),hs),"".concat(kt,"-disabled"),sr),"".concat(kt,"-loading"),to),"".concat(kt,"-open"),Hi),"".concat(kt,"-customize-input"),rr),"".concat(kt,"-show-search"),Ue)),pa=Ne.createElement(vi,{ref:Ci,disabled:sr,prefixCls:kt,visible:Eo,popupElement:Go,animation:Jo,transitionName:ua,dropdownStyle:Ea,dropdownClassName:es,direction:vn,dropdownMatchSelectWidth:ba,dropdownRender:_o,dropdownAlign:yo,placement:ea,builtinPlacements:Ka,getPopupContainer:Vo,empty:Wi,getTriggerDOMNode:function(jr){return En.current||jr},onPopupVisibleChange:Xs,onPopupMouseEnter:Ks},$i?Ne.cloneElement($i,{ref:ar}):Ne.createElement(Yt,me({},Ce,{domRef:En,prefixCls:kt,inputElement:rr,ref:Gi,id:Ye,prefix:ca,showSearch:Ue,autoClearSearchValue:To,mode:Ui,activeDescendantId:po,tagRender:Bn,values:Xn,open:Hi,onToggleOpen:vr,activeValue:mr,searchValue:fi,onSearch:Vr,onSearchSubmit:Aa,onRemove:no,tokenWithEnter:Qr,onInputBlur:Rr}))),Lo;return $i?Lo=pa:Lo=Ne.createElement("div",me({className:yl},dt,{ref:Kn,onMouseDown:Ja,onKeyDown:xa,onKeyUp:Oa,onFocus:Pa,onBlur:gs}),Ne.createElement(Ds,{visible:wn&&!Hi,values:Xn}),pa,Yl,bs&&Za),Ne.createElement(Di.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,Le){var _e=Ht({},Ce);return Array.isArray(Le)&&Le.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(Le,_e){var Ye=$r(),kt=Ye.prefixCls,_t=Ye.id,nn=Ye.open,Bn=Ye.multiple,vn=Ye.mode,Mn=Ye.searchValue,Xn=Ye.toggleOpen,Qn=Ye.notFoundContent,Wi=Ye.onPopupScroll,yi=Ne.useContext(Us),oi=yi.maxCount,Li=yi.flattenOptions,Ui=yi.onActiveValue,sr=yi.defaultActiveFirstOption,to=yi.onSelect,br=yi.menuItemSelectedIcon,Sr=yi.rawValues,wo=yi.fieldNames,bi=yi.virtual,Xr=yi.direction,mr=yi.listHeight,ao=yi.listItemHeight,po=yi.optionRender,Ar="".concat(kt,"-item"),To=An(function(){return Li},[nn,Li],function(Zr,ho){return ho[0]&&Zr[1]!==ho[1]}),mo=Ne.useRef(null),zo=Ne.useMemo(function(){return Bn&&eo(oi)&&(Sr==null?void 0:Sr.size)>=oi},[Bn,oi,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 vn==="combobox"?!1:Sr.has(Zr)},[vn,qe(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)}),Jr=Nn(ga,2),Jo=Jr[0],ua=Jr[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){Ui(null,-1,Mr);return}Ui(Gr.value,ho,Mr)};(0,Ne.useEffect)(function(){Ea(sr!==!1?Da(0):-1)},[To.length,Mn]);var es=Ne.useCallback(function(Zr){return vn==="combobox"?String(Zr).toLowerCase()===Mn.toLowerCase():Sr.has(Zr)},[vn,Mn,qe(Sr).toString(),Sr.size]);(0,Ne.useEffect)(function(){var Zr=setTimeout(function(){if(!Bn&&nn&&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(nn){var ho;(ho=mo.current)===null||ho===void 0||ho.scrollTo(void 0)}return function(){return clearTimeout(Zr)}},[nn,Mn]);var ba=function(ho){ho!==void 0&&to(ho,{selected:!Sr.has(ho)}),Bn||Xn(!1)};if(Ne.useImperativeHandle(_e,function(){return{onKeyDown:function(ho){var fo=ho.which,Mr=ho.ctrlKey;switch(fo){case Ii.N:case Ii.P:case Ii.UP:case Ii.DOWN:{var Gr=0;if(fo===Ii.UP?Gr=-1:fo===Ii.DOWN?Gr=1:il()&&Mr&&(fo===Ii.N?Gr=1:fo===Ii.P&&(Gr=-1)),Gr!==0){var Do=Da(Jo+Gr,Gr);Co(Do),Ea(Do,!0)}break}case Ii.TAB:case Ii.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),nn&&ho.preventDefault();break}case Ii.ESC:Xn(!1),nn&&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},Qn);var _o=Object.keys(wo).map(function(Zr){return wo[Zr]}),yo=function(ho){return ho.label};function ea(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},ea(fo,ho),{"aria-selected":es(Gr)}),Gr):null},Vo={role:"listbox",id:"".concat(_t,"_list")};return Ne.createElement(Ne.Fragment,null,bi&&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:bi,direction:Xr,innerProps:bi?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 dt=Gr.disabled,Wt=Gr.title,Jt=Gr.children,rn=Gr.style,Fn=Gr.className,Kn=Ge(Gr,Ra),En=fc(Kn,_o),Ci=ca(ye),Gi=dt||!Ci&&zo,Pi="".concat(Ar,"-option"),Ai=ut()(Ar,Pi,Fn,bt(bt(bt(bt({},"".concat(Pi,"-grouped"),Mr),"".concat(Pi,"-active"),Jo===ho&&!Gi),"".concat(Pi,"-disabled"),Gi),"".concat(Pi,"-selected"),Ci)),Ni=yo(Zr),ki=!br||typeof br=="function"||Ci,wn=typeof Ni=="number"?Ni:Ni||ye,Gn=Xa(wn)?wn.toString():void 0;return Wt!==void 0&&(Gn=Wt),Ne.createElement("div",me({},Ha(En),bi?{}:ea(Zr,ho),{"aria-selected":es(ye),className:Ai,title:Gn,onMouseMove:function(){Jo===ho||Gi||Ea(ho)},onClick:function(){Gi||ba(ye)},style:rn}),Ne.createElement("div",{className:"".concat(Pi,"-content")},typeof po=="function"?po(Zr,{index:ho}):wn),Ne.isValidElement(br)||Ci,ki&&Ne.createElement(Ir,{className:"".concat(Ar,"-option-state"),customizeIcon:br,customizeIconProps:{value:ye,disabled:Gi,isSelected:Ci}},Ci?"\u2713":null))}))},pl=Ne.forwardRef(Is),Mo=pl,$u=function(Ce,Le){var _e=Ne.useRef({values:new Map,options:new Map}),Ye=Ne.useMemo(function(){var _t=_e.current,nn=_t.values,Bn=_t.options,vn=Ce.map(function(Qn){if(Qn.label===void 0){var Wi;return Ht(Ht({},Qn),{},{label:(Wi=nn.get(Qn.value))===null||Wi===void 0?void 0:Wi.label})}return Qn}),Mn=new Map,Xn=new Map;return vn.forEach(function(Qn){Mn.set(Qn.value,Qn),Xn.set(Qn.value,Le.get(Qn.value)||Bn.get(Qn.value))}),_e.current.values=Mn,_e.current.options=Xn,vn},[Ce,Le]),kt=Ne.useCallback(function(_t){return Le.get(_t)||_e.current.options.get(_t)},[Le]);return[Ye,kt]};function Pu(Ce,Le){return Po(Ce).join("").toUpperCase().includes(Le)}var $l=function(Ce,Le,_e,Ye,kt){return Ne.useMemo(function(){if(!_e||Ye===!1)return Ce;var _t=Le.options,nn=Le.label,Bn=Le.value,vn=[],Mn=typeof Ye=="function",Xn=_e.toUpperCase(),Qn=Mn?Ye:function(yi,oi){return kt?Pu(oi[kt],Xn):oi[_t]?Pu(oi[nn!=="children"?nn:"label"],Xn):Pu(oi[Bn],Xn)},Wi=Mn?function(yi){return fa(yi)}:function(yi){return yi};return Ce.forEach(function(yi){if(yi[_t]){var oi=Qn(_e,Wi(yi));if(oi)vn.push(yi);else{var Li=yi[_t].filter(function(Ui){return Qn(_e,Wi(Ui))});Li.length&&vn.push(Ht(Ht({},yi),{},bt({},_t,Li)))}return}Qn(_e,Wi(yi))&&vn.push(yi)}),vn},[Ce,Ye,kt,_e,Le])},ou=0,gc=ai();function kr(){var Ce;return gc?(Ce=ou,ou+=1):Ce="TEST_OR_SSR",Ce}function hl(Ce){var Le=Ne.useState(),_e=Nn(Le,2),Ye=_e[0],kt=_e[1];return Ne.useEffect(function(){kt("rc_select_".concat(kr()))},[]),Ce||Ye}function Rs(Ce){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=[];return Ne.Children.forEach(Ce,function(Ye){Ye==null&&!Le.keepEmpty||(Array.isArray(Ye)?_e=_e.concat(Rs(Ye)):(0,jn.isFragment)(Ye)&&Ye.props?_e=_e.concat(Rs(Ye.props.children,Le)):_e.push(Ye))}),_e}var Bu=["children","value"],zu=["children"];function Ou(Ce){var Le=Ce,_e=Le.key,Ye=Le.props,kt=Ye.children,_t=Ye.value,nn=Ge(Ye,Bu);return Ht({key:_e,value:_t!==void 0?_t:_e,children:kt},nn)}function Sa(Ce){var Le=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,nn=kt.key,Bn=kt.props,vn=Bn.children,Mn=Ge(Bn,zu);return Le||!_t?Ou(_e):Ht(Ht({key:"__RC_SELECT_GRP__".concat(nn===null?Ye:nn,"__"),label:nn},Mn),{},{options:Sa(vn)})}).filter(function(_e){return _e})}var Lu=function(Le,_e,Ye,kt,_t){return Ne.useMemo(function(){var nn=Le,Bn=!Le;Bn&&(nn=Sa(_e));var vn=new Map,Mn=new Map,Xn=function(yi,oi,Li){Li&&typeof Li=="string"&&yi.set(oi[Li],oi)},Qn=function Wi(yi){for(var oi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Li=0;Li<yi.length;Li+=1){var Ui=yi[Li];!Ui[Ye.options]||oi?(vn.set(Ui[Ye.value],Ui),Xn(Mn,Ui,Ye.label),Xn(Mn,Ui,kt),Xn(Mn,Ui,_t)):Wi(Ui[Ye.options],!0)}};return Qn(nn),{options:nn,valueOptions:vn,labelOptions:Mn}},[Le,_e,Ye,kt,_t])},Fl=Lu;function Il(Ce){var Le=Ne.useRef();Le.current=Ce;var _e=Ne.useCallback(function(){return Le.current.apply(Le,arguments)},[]);return _e}function eu(Ce){var Le=Ce.mode,_e=Ce.options,Ye=Ce.children,kt=Ce.backfill,_t=Ce.allowClear,nn=Ce.placeholder,Bn=Ce.getInputElement,vn=Ce.showSearch,Mn=Ce.onSearch,Xn=Ce.defaultOpen,Qn=Ce.autoFocus,Wi=Ce.labelInValue,yi=Ce.value,oi=Ce.inputValue,Li=Ce.optionLabelProp,Ui=isMultiple(Le),sr=vn!==void 0?vn:Ui||Le==="combobox",to=_e||convertChildrenToData(Ye);if(warning(Le!=="tags"||to.every(function(bi){return!bi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Le==="tags"||Le==="combobox"){var br=to.some(function(bi){return bi.options?bi.options.some(function(Xr){return typeof("value"in Xr?Xr.value:Xr.key)=="number"}):typeof("value"in bi?bi.value:bi.key)=="number"});warning(!br,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Le!=="combobox"||!Li,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Le==="combobox"||!kt,"`backfill` only works with `combobox` mode."),warning(Le==="combobox"||!Bn,"`getInputElement` only work with `combobox` mode."),noteOnce(Le!=="combobox"||!Bn||!_t||!nn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Mn&&!sr&&Le!=="combobox"&&Le!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Xn||Qn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),yi!=null){var Sr=toArray(yi);warning(!Wi||Sr.every(function(bi){return _typeof(bi)==="object"&&("key"in bi||"value"in bi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ui||Array.isArray(yi),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ye){var wo=null;toNodeArray(Ye).some(function(bi){if(!React.isValidElement(bi)||!bi.type)return!1;var Xr=bi,mr=Xr.type;if(mr.isSelectOption)return!1;if(mr.isSelectOptGroup){var ao=toNodeArray(bi.props.children).every(function(po){return!React.isValidElement(po)||!bi.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(oi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Cc(Ce,Le){if(Ce){var _e=function Ye(kt){for(var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=0;nn<kt.length;nn++){var Bn=kt[nn];if(Bn[Le==null?void 0:Le.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!_t&&Array.isArray(Bn[Le==null?void 0:Le.options])&&Ye(Bn[Le==null?void 0:Le.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||at(Ce)!=="object"}var ah=Ne.forwardRef(function(Ce,Le){var _e=Ce.id,Ye=Ce.mode,kt=Ce.prefixCls,_t=kt===void 0?"rc-select":kt,nn=Ce.backfill,Bn=Ce.fieldNames,vn=Ce.inputValue,Mn=Ce.searchValue,Xn=Ce.onSearch,Qn=Ce.autoClearSearchValue,Wi=Qn===void 0?!0:Qn,yi=Ce.onSelect,oi=Ce.onDeselect,Li=Ce.dropdownMatchSelectWidth,Ui=Li===void 0?!0:Li,sr=Ce.filterOption,to=Ce.filterSort,br=Ce.optionFilterProp,Sr=Ce.optionLabelProp,wo=Ce.options,bi=Ce.optionRender,Xr=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,Jr=Ce.onChange,Jo=Ce.maxCount,ua=Ge(Ce,Ol),Ea=hl(_e),es=cn(Ye),ba=!!(!wo&&Xr),_o=Ne.useMemo(function(){return sr===void 0&&Ye==="combobox"?!1:sr},[sr,Ye]),yo=Ne.useMemo(function(){return so(Bn,ba)},[JSON.stringify(Bn),ba]),ea=At("",{value:Mn!==void 0?Mn:vn,postState:function(Qr){return Qr||""}}),Ka=Nn(ea,2),Vo=Ka[0],Zr=Ka[1],ho=Fl(wo,Xr,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,Hr,Vr,Aa,Ya;if(Wc(xr))fr=xr;else{var bo;Vr=xr.key,Hr=xr.label,fr=(bo=xr.value)!==null&&bo!==void 0?bo:Vr}var co=fo.get(fr);if(co){var vo;if(Hr===void 0&&(Hr=co==null?void 0:co[Sr||yo.label]),Vr===void 0&&(Vr=(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:Hr,value:fr,key:Vr,disabled:Aa,title:Ya}})},[yo,Sr,fo]),ye=At(Da,{value:ca}),Ie=Nn(ye,2),je=Ie[0],Ue=Ie[1],dt=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]),Wt=$u(dt,fo),Jt=Nn(Wt,2),rn=Jt[0],Fn=Jt[1],Kn=Ne.useMemo(function(){if(!Ye&&rn.length===1){var vr=rn[0];if(vr.value===null&&(vr.label===null||vr.label===void 0))return[]}return rn.map(function(Qr){var xr;return Ht(Ht({},Qr),{},{label:(xr=typeof Co=="function"?Co(Qr):Qr.label)!==null&&xr!==void 0?xr:Qr.value})})},[Ye,rn,Co]),En=Ne.useMemo(function(){return new Set(rn.map(function(vr){return vr.value}))},[rn]);Ne.useEffect(function(){if(Ye==="combobox"){var vr,Qr=(vr=rn[0])===null||vr===void 0?void 0:vr.value;Zr(kl(Qr)?String(Qr):"")}},[rn]);var Ci=Il(function(vr,Qr){var xr=Qr!=null?Qr:vr;return bt(bt({},yo.value,vr),yo.label,xr)}),Gi=Ne.useMemo(function(){if(Ye!=="tags")return Gr;var vr=qe(Gr),Qr=function(fr){return fo.has(fr)};return qe(rn).sort(function(xr,fr){return xr.value<fr.value?-1:1}).forEach(function(xr){var fr=xr.value;Qr(fr)||vr.push(Ci(fr,xr.label))}),vr},[Ci,Gr,fo,rn,Ye]),Pi=$l(Gi,yo,Vo,_o,br),Ai=Ne.useMemo(function(){return Ye!=="tags"||!Vo||Pi.some(function(vr){return vr[br||"value"]===Vo})||Pi.some(function(vr){return vr[yo.value]===Vo})?Pi:[Ci(Vo)].concat(qe(Pi))},[Ci,br,Ye,Pi,Vo,yo]),Ni=function vr(Qr){var xr=qe(Qr).sort(function(fr,Hr){return to(fr,Hr,{searchValue:Vo})});return xr.map(function(fr){return Array.isArray(fr.options)?Ht(Ht({},fr),{},{options:fr.options.length>0?vr(fr.options):fr.options}):fr})},ki=Ne.useMemo(function(){return to?Ni(Ai):Ai},[Ai,to,Vo]),wn=Ne.useMemo(function(){return ya(ki,{fieldNames:yo,childrenAsData:ba})},[ki,yo,ba]),Gn=function(Qr){var xr=Do(Qr);if(Ue(xr),Jr&&(xr.length!==rn.length||xr.some(function(Vr,Aa){var Ya;return((Ya=rn[Aa])===null||Ya===void 0?void 0:Ya.value)!==(Vr==null?void 0:Vr.value)}))){var fr=ga?xr:xr.map(function(Vr){return Vr.value}),Hr=xr.map(function(Vr){return fa(Fn(Vr.value))});Jr(es?fr:fr[0],es?Hr:Hr[0])}},$n=Ne.useState(null),fi=Nn($n,2),rr=fi[0],$i=fi[1],ar=Ne.useState(0),Et=Nn(ar,2),lr=Et[0],Pr=Et[1],Or=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,Hr=fr===void 0?"keyboard":fr;Pr(Qr),nn&&Ye==="combobox"&&vr!==null&&Hr==="keyboard"&&$i(String(vr))},[nn,Ye]),Ur=function(Qr,xr,fr){var Hr=function(){var no,Rr=Fn(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&&yi){var Vr=Hr(),Aa=Nn(Vr,2),Ya=Aa[0],bo=Aa[1];yi(Ya,bo)}else if(!xr&&oi&&fr!=="clear"){var co=Hr(),vo=Nn(co,2),Qo=vo[0],xa=vo[1];oi(Qo,xa)}},wi=Il(function(vr,Qr){var xr,fr=es?Qr.selected:!0;fr?xr=es?[].concat(qe(rn),[vr]):[vr]:xr=rn.filter(function(Hr){return Hr.value!==vr}),Gn(xr),Ur(vr,fr),Ye==="combobox"?$i(""):(!cn||Wi)&&(Zr(""),$i(""))}),qi=function(Qr,xr){Gn(Qr);var fr=xr.type,Hr=xr.values;(fr==="remove"||fr==="clear")&&Hr.forEach(function(Vr){Ur(Vr.value,!1,fr)})},Hi=function(Qr,xr){if(Zr(Qr),$i(null),xr.source==="submit"){var fr=(Qr||"").trim();if(fr){var Hr=Array.from(new Set([].concat(qe(En),[fr])));Gn(Hr),Ur(fr,!0),Zr("")}return}xr.source!=="blur"&&(Ye==="combobox"&&Gn(Qr),Xn==null||Xn(Qr))},Lr=function(Qr){var xr=Qr;Ye!=="tags"&&(xr=Qr.map(function(Hr){var Vr=Mr.get(Hr);return Vr==null?void 0:Vr.value}).filter(function(Hr){return Hr!==void 0}));var fr=Array.from(new Set([].concat(qe(En),qe(xr))));Gn(fr),fr.forEach(function(Hr){Ur(Hr,!0)})},Eo=Ne.useMemo(function(){var vr=po!==!1&&Ui!==!1;return Ht(Ht({},ho),{},{flattenOptions:wn,onActiveValue:Oo,defaultActiveFirstOption:Or,onSelect:wi,menuItemSelectedIcon:ao,rawValues:En,fieldNames:yo,virtual:vr,direction:Ar,listHeight:mo,listItemHeight:Dr,childrenAsData:ba,maxCount:Jo,optionRender:bi})},[Jo,ho,wn,Oo,Or,wi,ao,En,yo,po,Ui,Ar,mo,Dr,ba,bi]);return Ne.createElement(Us.Provider,{value:Eo},Ne.createElement(dl,me({},ua,{id:Ea,prefixCls:_t,ref:Le,omitDomProps:Cu,mode:Ye,displayValues:Kn,onDisplayValuesChange:qi,direction:Ar,searchValue:Vo,onSearch:Hi,autoClearSearchValue:Wi,onSearchSplit:Lr,dropdownMatchSelectWidth:Ui,OptionList:Mo,emptyOptions:!wn.length,activeValue:rr,activeDescendantId:"".concat(Ea,"_list_").concat(lr)})))}),Hc=ah;Hc.Option=hu,Hc.OptGroup=Ys;var Yh=null,Wu=null;function El(Ce){var Le=Ne.useRef();Le.current=Ce;var _e=Ne.useCallback(function(){for(var Ye,kt=arguments.length,_t=new Array(kt),nn=0;nn<kt;nn++)_t[nn]=arguments[nn];return(Ye=Le.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[Le].concat(_t))},[]);return _e}function Hu(Ce){if(Array.isArray(Ce))return Ce}function Iu(Ce,Le){var _e=Ce==null?null:typeof Symbol!="undefined"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(_e!=null){var Ye,kt,_t,nn,Bn=[],vn=!0,Mn=!1;try{if(_t=(_e=_e.call(Ce)).next,Le===0){if(Object(_e)!==_e)return;vn=!1}else for(;!(vn=(Ye=_t.call(_e)).done)&&(Bn.push(Ye.value),Bn.length!==Le);vn=!0);}catch(Xn){Mn=!0,kt=Xn}finally{try{if(!vn&&_e.return!=null&&(nn=_e.return(),Object(nn)!==nn))return}finally{if(Mn)throw kt}}return Bn}}function ku(Ce,Le){(Le==null||Le>Ce.length)&&(Le=Ce.length);for(var _e=0,Ye=new Array(Le);_e<Le;_e++)Ye[_e]=Ce[_e];return Ye}function Jc(Ce,Le){if(Ce){if(typeof Ce=="string")return ku(Ce,Le);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,Le)}}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,Le){return Hu(Ce)||Iu(Ce,Le)||Jc(Ce,Le)||Sh()}function sh(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var lh=sh()?Ne.useLayoutEffect:Ne.useEffect,Nc=function(Le,_e){var Ye=Ne.useRef(!0);lh(function(){return Le(Ye.current)},_e),lh(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},Ec=function(Le,_e){Nc(function(Ye){if(!Ye)return Le()},_e)},tu=null;function Vl(Ce){var Le=Ne.useRef(!1),_e=Ne.useState(Ce),Ye=ml(_e,2),kt=Ye[0],_t=Ye[1];Ne.useEffect(function(){return Le.current=!1,function(){Le.current=!0}},[]);function nn(Bn,vn){vn&&Le.current||_t(Bn)}return[kt,nn]}function xl(Ce){return Ce!==void 0}function Ts(Ce,Le){var _e=Le||{},Ye=_e.defaultValue,kt=_e.value,_t=_e.onChange,nn=_e.postState,Bn=Vl(function(){return xl(kt)?kt:xl(Ye)?typeof Ye=="function"?Ye():Ye:typeof Ce=="function"?Ce():Ce}),vn=ml(Bn,2),Mn=vn[0],Xn=vn[1],Qn=kt!==void 0?kt:Mn,Wi=nn?nn(Qn):Qn,yi=El(_t),oi=Vl([Qn]),Li=ml(oi,2),Ui=Li[0],sr=Li[1];Ec(function(){var br=Ui[0];Mn!==br&&yi(Mn,br)},[Ui]),Ec(function(){xl(kt)||Xn(kt)},[kt]);var to=El(function(br,Sr){Xn(br,Sr),sr([Qn],Sr)});return[Wi,to]}var nu=Ne.createContext({}),ol=nu,Vs="__rc_cascader_search_mark__",Wl=function(Le,_e,Ye){var kt=Ye.label,_t=kt===void 0?"":kt;return _e.some(function(nn){return String(nn[_t]).toLowerCase().includes(Le.toLowerCase())})},fu=function(Le,_e,Ye,kt){return _e.map(function(_t){return _t[kt.label]}).join(" / ")},Ru=function(Le,_e,Ye,kt,_t,nn){var Bn=_t.filter,vn=Bn===void 0?Wl:Bn,Mn=_t.render,Xn=Mn===void 0?fu:Mn,Qn=_t.limit,Wi=Qn===void 0?50:Qn,yi=_t.sort;return Ne.useMemo(function(){var oi=[];if(!Le)return[];function Li(Ui,sr){var to=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ui.forEach(function(br){if(!(!yi&&Wi!==!1&&Wi>0&&oi.length>=Wi)){var Sr=[].concat(We(sr),[br]),wo=br[Ye.children],bi=to||br.disabled;if((!wo||wo.length===0||nn)&&vn(Le,Sr,{label:Ye.label})){var Xr;oi.push(Je(Je({},br),{},(Xr={disabled:bi},Nt(Xr,Ye.label,Xn(Le,Sr,kt,Ye)),Nt(Xr,Vs,Sr),Nt(Xr,Ye.children,void 0),Xr)))}wo&&Li(br[Ye.children],Sr,bi)}})}return Li(_e,[]),yi&&oi.sort(function(Ui,sr){return yi(Ui[Vs],sr[Vs],Le,Ye)}),Wi!==!1&&Wi>0?oi.slice(0,Wi):oi},[Le,_e,Ye,kt,Xn,nn,vn,yi,Wi])},Fo=Ru,gu="__RC_CASCADER_SPLIT__",Ot="SHOW_PARENT",di="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 Le=Ce||{},_e=Le.label,Ye=Le.value,kt=Le.children,_t=Ye||"value";return{label:_e||"label",value:_t,key:_t,children:kt||"children"}}function Eu(Ce,Le){var _e,Ye;return(_e=Ce.isLeaf)!==null&&_e!==void 0?_e:!((Ye=Ce[Le.children])!==null&&Ye!==void 0&&Ye.length)}function pc(Ce){var Le=Ce.parentElement;if(Le){var _e=Ce.offsetTop-Le.offsetTop;_e-Le.scrollTop<0?Le.scrollTo({top:_e}):_e+Ce.offsetHeight-Le.scrollTop>Le.offsetHeight&&Le.scrollTo({top:_e+Ce.offsetHeight-Le.offsetHeight})}}function mc(Ce,Le){return Ce.map(function(_e){var Ye;return(Ye=_e[Vs])===null||Ye===void 0?void 0:Ye.map(function(kt){return kt[Le.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(Le){return Array.isArray(Le)?Le:[Le]}):[]}function mu(Ce,Le,_e){var Ye=new Set(Ce),kt=Le();return Ce.filter(function(_t){var nn=kt[_t],Bn=nn?nn.parent:null,vn=nn?nn.children:null;return nn&&nn.node.disabled?!0:_e===di?!(vn&&vn.some(function(Mn){return Mn.key&&Ye.has(Mn.key)})):!(Bn&&!Bn.node.disabled&&Ye.has(Bn.key))})}function au(Ce,Le,_e){for(var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,kt=Le,_t=[],nn=function(){var Mn,Xn,Qn,Wi=Ce[Bn],yi=(Mn=kt)===null||Mn===void 0?void 0:Mn.findIndex(function(Li){var Ui=Li[_e.value];return Ye?String(Ui)===String(Wi):Ui===Wi}),oi=yi!==-1?(Xn=kt)===null||Xn===void 0?void 0:Xn[yi]:null;_t.push({value:(Qn=oi==null?void 0:oi[_e.value])!==null&&Qn!==void 0?Qn:Wi,index:yi,option:oi}),kt=oi==null?void 0:oi[_e.children]},Bn=0;Bn<Ce.length;Bn+=1)nn();return _t}var ll=function(Ce,Le,_e,Ye,kt){return Ne.useMemo(function(){var _t=kt||function(nn){var Bn=Ye?nn.slice(-1):nn,vn=" / ";return Bn.every(function(Mn){return["string","number"].includes(ot(Mn))})?Bn.join(vn):Bn.reduce(function(Mn,Xn,Qn){var Wi=Ne.isValidElement(Xn)?Ne.cloneElement(Xn,{key:Qn}):Xn;return Qn===0?[Wi]:[].concat(We(Mn),[vn,Wi])},[])};return Ce.map(function(nn){var Bn,vn=au(nn,Le,_e),Mn=_t(vn.map(function(Qn){var Wi,yi=Qn.option,oi=Qn.value;return(Wi=yi==null?void 0:yi[_e.label])!==null&&Wi!==void 0?Wi:oi}),vn.map(function(Qn){var Wi=Qn.option;return Wi})),Xn=Kl(nn);return{label:Mn,value:Xn,key:Xn,valueCells:nn,disabled:(Bn=vn[vn.length-1])===null||Bn===void 0||(Bn=Bn.option)===null||Bn===void 0?void 0:Bn.disabled}})},[Ce,Le,_e,kt,Ye])};function fs(Ce,Le){return Ne.useCallback(function(_e){var Ye=[],kt=[];return _e.forEach(function(_t){var nn=au(_t,Ce,Le);nn.every(function(Bn){return Bn.option})?kt.push(_t):Ye.push(_t)}),[kt,Ye]},[Ce,Le])}var Ml=be(1089),Fu=function(Ce,Le){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:Le,initWrapper:function(_t){return Je(Je({},_t),{},{pathKeyEntities:{}})},processEntity:function(_t,nn){var Bn=_t.nodes.map(function(vn){return vn[Le.value]}).join(gu);nn.pathKeyEntities[Bn]=_t,_t.key=Bn}})),_e.current.info.pathKeyEntities},[Le,Ce]);return Ye};function sl(Ce,Le){var _e=Ne.useMemo(function(){return Le||[]},[Le]),Ye=Fu(_e,Ce),kt=Ne.useCallback(function(_t){var nn=Ye();return _t.map(function(Bn){var vn=nn[Bn].nodes;return vn.map(function(Mn){return Mn[Ce.value]})})},[Ye,Ce]);return[_e,Ye,kt]}var su={},Gl=[],tc=function(Le){Gl.push(Le)};function Bs(Ce,Le){if(0)var _e}function vu(Ce,Le){if(0)var _e}function As(){su={}}function Ms(Ce,Le,_e){!Le&&!su[_e]&&(Ce(!1,_e),su[_e]=!0)}function Zs(Ce,Le){Ms(Bs,Ce,Le)}function Pl(Ce,Le){Ms(vu,Ce,Le)}Zs.preMessage=tc,Zs.resetWarned=As,Zs.noteOnce=Pl;var js=null;function _c(Ce){return Ne.useMemo(function(){if(!Ce)return[!1,{}];var Le={matchInputWidth:!0,limit:50};return Ce&&ot(Ce)==="object"&&(Le=Je(Je({},Le),Ce)),Le.limit<=0&&(Le.limit=!1),[!0,Le]},[Ce])}var _r=be(17341);function ju(Ce,Le,_e,Ye,kt,_t,nn,Bn){return function(vn){if(!Ce)Le(vn);else{var Mn=Kl(vn),Xn=Yu(_e),Qn=Yu(Ye),Wi=Xn.includes(Mn),yi=kt.some(function(bi){return Kl(bi)===Mn}),oi=_e,Li=kt;if(yi&&!Wi)Li=kt.filter(function(bi){return Kl(bi)!==Mn});else{var Ui=Wi?Xn.filter(function(bi){return bi!==Mn}):[].concat(We(Xn),[Mn]),sr=_t(),to;if(Wi){var br=(0,_r.S)(Ui,{checked:!1,halfCheckedKeys:Qn},sr);to=br.checkedKeys}else{var Sr=(0,_r.S)(Ui,!0,sr);to=Sr.checkedKeys}var wo=mu(to,_t,Bn);oi=nn(wo)}Le([].concat(We(Li),We(oi)))}}}function xs(Ce,Le,_e,Ye,kt){return Ne.useMemo(function(){var _t=kt(Le),nn=ue(_t,2),Bn=nn[0],vn=nn[1];if(!Ce||!Le.length)return[Bn,[],vn];var Mn=Yu(Bn),Xn=_e(),Qn=(0,_r.S)(Mn,!0,Xn),Wi=Qn.checkedKeys,yi=Qn.halfCheckedKeys;return[Ye(Wi),Ye(yi),vn]},[Ce,Le,_e,Ye,kt])}var sd=Ne.memo(function(Ce){var Le=Ce.children;return Le},function(Ce,Le){return!Le.open}),Vc=sd;function xh(Ce){var Le,_e=Ce.prefixCls,Ye=Ce.checked,kt=Ce.halfChecked,_t=Ce.disabled,nn=Ce.onClick,Bn=Ce.disableCheckbox,vn=Ne.useContext(ol),Mn=vn.checkable,Xn=typeof Mn!="boolean"?Mn:null;return Ne.createElement("span",{className:ut()("".concat(_e),(Le={},Nt(Le,"".concat(_e,"-checked"),Ye),Nt(Le,"".concat(_e,"-indeterminate"),!Ye&&kt),Nt(Le,"".concat(_e,"-disabled"),_t||Bn),Le)),onClick:nn},Xn)}var Th="__cascader_fix_label__";function _u(Ce){var Le=Ce.prefixCls,_e=Ce.multiple,Ye=Ce.options,kt=Ce.activeValue,_t=Ce.prevValuePath,nn=Ce.onToggleOpen,Bn=Ce.onSelect,vn=Ce.onActive,Mn=Ce.checkedSet,Xn=Ce.halfCheckedSet,Qn=Ce.loadingKeys,Wi=Ce.isSelectable,yi=Ce.disabled,oi="".concat(Le,"-menu"),Li="".concat(Le,"-menu-item"),Ui=Ne.useContext(ol),sr=Ui.fieldNames,to=Ui.changeOnSelect,br=Ui.expandTrigger,Sr=Ui.expandIcon,wo=Ui.loadingIcon,bi=Ui.dropdownMenuColumnStyle,Xr=Ui.optionRender,mr=br==="hover",ao=function(To){return yi||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[sr.label],ca=Ar[sr.value],Da=Eu(Ar,sr),ga=Dr?Dr.map(function(es){return es[sr.value]}):[].concat(We(_t),[ca]),Jr=Kl(ga),Jo=Qn.includes(Jr),ua=Mn.has(Jr),Ea=Xn.has(Jr);return{disabled:mo,label:Co,value:ca,isLeaf:Da,isLoading:Jo,checked:ua,halfChecked:Ea,option:Ar,disableCheckbox:zo,fullPath:ga,fullPathKey:Jr}})},[Ye,Mn,sr,Xn,Qn,_t]);return Ne.createElement("ul",{className:oi,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,Jr=Ar.option,Jo=Ar.fullPath,ua=Ar.fullPathKey,Ea=Ar.disableCheckbox,es=function(){if(!ao(mo)){var ea=We(Jo);mr&&Co&&ea.pop(),vn(ea)}},ba=function(){Wi(Jr)&&!ao(mo)&&Bn(Jo,Co)},_o;return typeof Jr.title=="string"?_o=Jr.title:typeof zo=="string"&&(_o=zo),Ne.createElement("li",{key:ua,className:ut()(Li,(To={},Nt(To,"".concat(Li,"-expand"),!Co),Nt(To,"".concat(Li,"-active"),kt===Dr||kt===ua),Nt(To,"".concat(Li,"-disabled"),ao(mo)),Nt(To,"".concat(Li,"-loading"),ca),To)),style:bi,role:"menuitemcheckbox",title:_o,"aria-checked":Da,"data-path-key":ua,onClick:function(){es(),!Ea&&(!_e||Co)&&ba()},onDoubleClick:function(){to&&nn(!1)},onMouseEnter:function(){mr&&es()},onMouseDown:function(ea){ea.preventDefault()}},_e&&Ne.createElement(xh,{prefixCls:"".concat(Le,"-checkbox"),checked:Da,halfChecked:ga,disabled:ao(mo)||Ea,disableCheckbox:Ea,onClick:function(ea){Ea||(ea.stopPropagation(),ba())}}),Ne.createElement("div",{className:"".concat(Li,"-content")},Xr?Xr(Jr):zo),!ca&&Sr&&!Co&&Ne.createElement("div",{className:"".concat(Li,"-expand-icon")},Sr),ca&&wo&&Ne.createElement("div",{className:"".concat(Li,"-loading-icon")},wo))}))}var Dc=function(Le,_e){var Ye=Ne.useContext(ol),kt=Ye.values,_t=kt[0],nn=Ne.useState([]),Bn=ue(nn,2),vn=Bn[0],Mn=Bn[1];return Ne.useEffect(function(){Le||Mn(_t||[])},[_e,_t]),[vn,Mn]},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(Le){var _e=Le.keyCode;if(Le.altKey&&!Le.ctrlKey||Le.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(Le){if(Le>=Ko.ZERO&&Le<=Ko.NINE||Le>=Ko.NUM_ZERO&&Le<=Ko.NUM_MULTIPLY||Le>=Ko.A&&Le<=Ko.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Le===0)return!0;switch(Le){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,Le,_e,Ye,kt,_t,nn){var Bn=nn.direction,vn=nn.searchValue,Mn=nn.toggleOpen,Xn=nn.open,Qn=Bn==="rtl",Wi=Ne.useMemo(function(){for(var bi=-1,Xr=Le,mr=[],ao=[],po=Ye.length,Ar=mc(Le,_e),To=function(ca){var Da=Xr.findIndex(function(ga,Jr){return(Ar[Jr]?Kl(Ar[Jr]):ga[_e.value])===Ye[ca]});if(Da===-1)return 1;bi=Da,mr.push(bi),ao.push(Ye[ca]),Xr=Xr[bi][_e.children]},mo=0;mo<po&&Xr&&!To(mo);mo+=1);for(var zo=Le,Dr=0;Dr<mr.length-1;Dr+=1)zo=zo[mr[Dr]][_e.children];return[ao,bi,zo,Ar]},[Ye,_e,Le]),yi=ue(Wi,4),oi=yi[0],Li=yi[1],Ui=yi[2],sr=yi[3],to=function(Xr){kt(Xr)},br=function(Xr){var mr=Ui.length,ao=Li;ao===-1&&Xr<0&&(ao=mr);for(var po=0;po<mr;po+=1){ao=(ao+Xr+mr)%mr;var Ar=Ui[ao];if(Ar&&!Ar.disabled){var To=oi.slice(0,-1).concat(sr[ao]?Kl(sr[ao]):Ar[_e.value]);to(To);return}}},Sr=function(){if(oi.length>1){var Xr=oi.slice(0,-1);to(Xr)}else Mn(!1)},wo=function(){var Xr,mr=((Xr=Ui[Li])===null||Xr===void 0?void 0:Xr[_e.children])||[],ao=mr.find(function(Ar){return!Ar.disabled});if(ao){var po=[].concat(We(oi),[ao[_e.value]]);to(po)}};Ne.useImperativeHandle(Ce,function(){return{onKeyDown:function(Xr){var mr=Xr.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(vn)break;Qn?wo():Sr();break}case lu.RIGHT:{if(vn)break;Qn?Sr():wo();break}case lu.BACKSPACE:{vn||Sr();break}case lu.ENTER:{if(oi.length){var po=Ui[Li],Ar=(po==null?void 0:po[Vs])||[];Ar.length?_t(Ar.map(function(To){return To[_e.value]}),Ar[Ar.length-1]):_t(oi,Ui[Li])}break}case lu.ESC:Mn(!1),Xn&&Xr.stopPropagation()}},onKeyUp:function(){}}})},Lt=Ne.forwardRef(function(Ce,Le){var _e,Ye,kt,_t=Ce.prefixCls,nn=Ce.multiple,Bn=Ce.searchValue,vn=Ce.toggleOpen,Mn=Ce.notFoundContent,Xn=Ce.direction,Qn=Ce.open,Wi=Ce.disabled,yi=Ne.useRef(null),oi=Xn==="rtl",Li=Ne.useContext(ol),Ui=Li.options,sr=Li.values,to=Li.halfValues,br=Li.fieldNames,Sr=Li.changeOnSelect,wo=Li.onSelect,bi=Li.searchOptions,Xr=Li.dropdownPrefixCls,mr=Li.loadData,ao=Li.expandTrigger,po=Xr||_t,Ar=Ne.useState([]),To=ue(Ar,2),mo=To[0],zo=To[1],Dr=function(Mr){if(!(!mr||Bn)){var Gr=au(Mr,Ui,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(We(je),[Ie])}),mr(Do)}}};Ne.useEffect(function(){mo.length&&mo.forEach(function(fo){var Mr=ec(fo),Gr=au(Mr,Ui,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})})})},[Ui,mo,br]);var Co=Ne.useMemo(function(){return new Set(Yu(sr))},[sr]),ca=Ne.useMemo(function(){return new Set(Yu(to))},[to]),Da=Zu(nn,Qn),ga=ue(Da,2),Jr=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||nn)},es=function(Mr,Gr){var Do=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;wo(Mr),!nn&&(Gr||Sr&&(ao==="hover"||Do))&&vn(!1)},ba=Ne.useMemo(function(){return Bn?bi:Ui},[Bn,bi,Ui]),_o=Ne.useMemo(function(){for(var fo=[{options:ba}],Mr=ba,Gr=mc(Mr,br),Do=function(){var je=Jr[ye],Ue=Mr.find(function(Wt,Jt){return(Gr[Jt]?Kl(Gr[Jt]):Wt[br.value])===je}),dt=Ue==null?void 0:Ue[br.children];if(!(dt!=null&&dt.length))return 1;Mr=dt,fo.push({options:dt})},ye=0;ye<Jr.length&&!Do();ye+=1);return fo},[ba,Jr,br]),yo=function(Mr,Gr){Ea(Gr)&&es(Mr,Eu(Gr,br),!0)};Qe(Le,ba,br,Jr,ua,yo,{direction:Xn,searchValue:Bn,toggleOpen:vn,open:Qn}),Ne.useEffect(function(){if(!Bn)for(var fo=0;fo<Jr.length;fo+=1){var Mr,Gr=Jr.slice(0,fo+1),Do=Kl(Gr),ye=(Mr=yi.current)===null||Mr===void 0?void 0:Mr.querySelector('li[data-path-key="'.concat(Do.replace(/\\{0,2}"/g,'\\"'),'"]'));ye&&pc(ye)}},[Jr,Bn]);var ea=!((_e=_o[0])!==null&&_e!==void 0&&(_e=_e.options)!==null&&_e!==void 0&&_e.length),Ka=[(Ye={},Nt(Ye,br.value,"__EMPTY__"),Nt(Ye,Th,Mn),Nt(Ye,"disabled",!0),Ye)],Vo=Je(Je({},Ce),{},{multiple:!ea&&nn,onSelect:es,onActive:ua,onToggleOpen:vn,checkedSet:Co,halfCheckedSet:ca,loadingKeys:mo,isSelectable:Ea}),Zr=ea?[{options:Ka}]:_o,ho=Zr.map(function(fo,Mr){var Gr=Jr.slice(0,Mr),Do=Jr[Mr];return Ne.createElement(_u,ve({key:Mr},Vo,{prefixCls:po,options:fo.options,prevValuePath:Gr,activeValue:Do}))});return Ne.createElement(Vc,{open:Qn},Ne.createElement("div",{className:ut()("".concat(po,"-menus"),(kt={},Nt(kt,"".concat(po,"-menu-empty"),ea),Nt(kt,"".concat(po,"-rtl"),oi),kt)),ref:yi},ho))}),Tt=Lt,It=Ne.forwardRef(function(Ce,Le){var _e=$r();return Ne.createElement(Tt,ve({},Ce,_e,{ref:Le}))}),dn=It,yn=be(80705);function Tn(Ce,Le,_e){var Ye=React.useRef({});return(!("value"in Ye.current)||_e(Ye.current.condition,Le))&&(Ye.current.value=Ce(),Ye.current.condition=Le),Ye.current.value}var li=Symbol.for("react.element"),ji=Symbol.for("react.transitional.element"),Ei=Symbol.for("react.fragment");function gr(Ce){return Ce&&_typeof(Ce)==="object"&&(Ce.$$typeof===li||Ce.$$typeof===ji)&&Ce.type===Ei}var Bi=Number(Ne.version.split(".")[0]),ir=function(Le,_e){typeof Le=="function"?Le(_e):_typeof(Le)==="object"&&Le&&"current"in Le&&(Le.current=_e)},Xi=function(){for(var Le=arguments.length,_e=new Array(Le),Ye=0;Ye<Le;Ye++)_e[Ye]=arguments[Ye];var kt=_e.filter(Boolean);return kt.length<=1?kt[0]:function(_t){_e.forEach(function(nn){ir(nn,_t)})}},Tr=function(){for(var Le=arguments.length,_e=new Array(Le),Ye=0;Ye<Le;Ye++)_e[Ye]=arguments[Ye];return useMemo(function(){return Xi.apply(void 0,_e)},_e,function(kt,_t){return kt.length!==_t.length||kt.every(function(nn,Bn){return nn!==_t[Bn]})})},ro=function(Le){var _e,Ye;if(!Le)return!1;if(Ro(Le)&&Bi>=19)return!0;var kt=isMemo(Le)?Le.type.type:Le.type;return!(typeof kt=="function"&&!((_e=kt.prototype)!==null&&_e!==void 0&&_e.render)&&kt.$$typeof!==ForwardRef||typeof Le=="function"&&!((Ye=Le.prototype)!==null&&Ye!==void 0&&Ye.render)&&Le.$$typeof!==ForwardRef)};function Ro(Ce){return isValidElement(Ce)&&!isFragment(Ce)}var na=function(Le){return Ro(Le)&&ro(Le)},Yr=function(Le){if(Le&&Ro(Le)){var _e=Le;return _e.props.propertyIsEnumerable("ref")?_e.props.ref:_e.ref}return null};function ko(Ce,Le,_e,Ye){if(!Le.length)return _e;var kt=_toArray(Le),_t=kt[0],nn=kt.slice(1),Bn;return!Ce&&typeof _t=="number"?Bn=[]:Array.isArray(Ce)?Bn=_toConsumableArray(Ce):Bn=_objectSpread({},Ce),Ye&&_e===void 0&&nn.length===1?delete Bn[_t][nn[0]]:Bn[_t]=ko(Bn[_t],nn,_e,Ye),Bn}function oo(Ce,Le,_e){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Le.length&&Ye&&_e===void 0&&!get(Ce,Le.slice(0,-1))?Ce:ko(Ce,Le,_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,Le=new Array(Ce),_e=0;_e<Ce;_e++)Le[_e]=arguments[_e];var Ye=_a(Le[0]);return Le.forEach(function(kt){function _t(nn,Bn){var vn=new Set(Bn),Mn=get(kt,nn),Xn=Array.isArray(Mn);if(Xn||oa(Mn)){if(!vn.has(Mn)){vn.add(Mn);var Qn=get(Ye,nn);Xn?Ye=oo(Ye,nn,[]):(!Qn||_typeof(Qn)!=="object")&&(Ye=oo(Ye,nn,_a(Mn))),qo(Mn).forEach(function(Wi){_t([].concat(_toConsumableArray(nn),[Wi]),vn)})}}else Ye=oo(Ye,nn,Mn)}_t([])}),Ye}function ja(){}function rs(Ce){var Le,_e=Ce,Ye=_e.prefixCls,kt=Ye===void 0?"rc-cascader":Ye,_t=_e.style,nn=_e.className,Bn=_e.options,vn=_e.checkable,Mn=_e.defaultValue,Xn=_e.value,Qn=_e.fieldNames,Wi=_e.changeOnSelect,yi=_e.onChange,oi=_e.showCheckedStrategy,Li=_e.loadData,Ui=_e.expandTrigger,sr=_e.expandIcon,to=sr===void 0?">":sr,br=_e.loadingIcon,Sr=_e.direction,wo=_e.notFoundContent,bi=wo===void 0?"Not Found":wo,Xr=_e.disabled,mr=!!vn,ao=Ts(Mn,{value:Xn,postState:Ca}),po=ue(ao,2),Ar=po[0],To=po[1],mo=Ne.useMemo(function(){return pu(Qn)},[JSON.stringify(Qn)]),zo=sl(mo,Bn),Dr=ue(zo,3),Co=Dr[0],ca=Dr[1],Da=Dr[2],ga=fs(Co,mo),Jr=xs(mr,Ar,ca,Da,ga),Jo=ue(Jr,3),ua=Jo[0],Ea=Jo[1],es=Jo[2],ba=El(function(Zr){if(To(Zr),yi){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];yi(Mr,Gr)}}),_o=ju(mr,ba,ua,Ea,es,ca,Da,oi),yo=El(function(Zr){_o(Zr)}),ea=Ne.useMemo(function(){return{options:Co,fieldNames:mo,values:ua,halfValues:Ea,changeOnSelect:Wi,onSelect:yo,checkable:vn,searchOptions:[],dropdownPrefixCls:void 0,loadData:Li,expandTrigger:Ui,expandIcon:to,loadingIcon:br,dropdownMenuColumnStyle:void 0}},[Co,mo,ua,Ea,Wi,yo,vn,Li,Ui,to,br]),Ka="".concat(kt,"-panel"),Vo=!Co.length;return Ne.createElement(ol.Provider,{value:ea},Ne.createElement("div",{className:ut()(Ka,(Le={},Nt(Le,"".concat(Ka,"-rtl"),Sr==="rtl"),Nt(Le,"".concat(Ka,"-empty"),Vo),Le),nn),style:_t},Vo?bi:Ne.createElement(Tt,{prefixCls:kt,searchValue:"",multiple:mr,toggleOpen:ja,open:!0,direction:Sr,disabled:Xr})))}function qs(Ce){var Le=Ce.onPopupVisibleChange,_e=Ce.popupVisible,Ye=Ce.popupClassName,kt=Ce.popupPlacement;warning(!Le,"`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,Le){if(Ce){var _e=function Ye(kt){for(var _t=0;_t<kt.length;_t++){var nn=kt[_t];if(nn[Le==null?void 0:Le.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(nn[Le==null?void 0:Le.children])&&Ye(nn[Le==null?void 0:Le.children]))return!0}};_e(Ce)}}var Be=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,Le){var _e=Ce.id,Ye=Ce.prefixCls,kt=Ye===void 0?"rc-cascader":Ye,_t=Ce.fieldNames,nn=Ce.defaultValue,Bn=Ce.value,vn=Ce.changeOnSelect,Mn=Ce.onChange,Xn=Ce.displayRender,Qn=Ce.checkable,Wi=Ce.autoClearSearchValue,yi=Wi===void 0?!0:Wi,oi=Ce.searchValue,Li=Ce.onSearch,Ui=Ce.showSearch,sr=Ce.expandTrigger,to=Ce.options,br=Ce.dropdownPrefixCls,Sr=Ce.loadData,wo=Ce.popupVisible,bi=Ce.open,Xr=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,Jr=ga===void 0?!1:ga,Jo=Ce.showCheckedStrategy,ua=Jo===void 0?Ot:Jo,Ea=Ce.optionRender,es=ge(Ce,ze),ba=hl(_e),_o=!!Qn,yo=Ts(nn,{value:Bn,postState:Ca}),ea=ue(yo,2),Ka=ea[0],Vo=ea[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:oi,postState:function(wi){return wi||""}}),Ie=ue(ye,2),je=Ie[0],Ue=Ie[1],dt=function(wi,qi){Ue(wi),qi.source!=="blur"&&Li&&Li(wi)},Wt=_c(Ui),Jt=ue(Wt,2),rn=Jt[0],Fn=Jt[1],Kn=Fo(je,Mr,Zr,br||kt,Fn,vn||_o),En=fs(Mr,Zr),Ci=xs(_o,Ka,Gr,Do,En),Gi=ue(Ci,3),Pi=Gi[0],Ai=Gi[1],Ni=Gi[2],ki=Ne.useMemo(function(){var Ur=Yu(Pi),wi=mu(Ur,Gr,ua);return[].concat(We(Ni),We(Do(wi)))},[Pi,Gr,Do,Ni,ua]),wn=ll(ki,Mr,Zr,_o,Xn),Gn=El(function(Ur){if(Vo(Ur),Mn){var wi=Ca(Ur),qi=wi.map(function(Eo){return au(Eo,Mr,Zr).map(function(vr){return vr.option})}),Hi=_o?wi:wi[0],Lr=_o?qi:qi[0];Mn(Hi,Lr)}}),$n=ju(_o,Gn,Pi,Ai,Ni,Gr,Do,ua),fi=El(function(Ur){(!_o||yi)&&Ue(""),$n(Ur)}),rr=function(wi,qi){if(qi.type==="clear"){Gn([]);return}var Hi=qi.values[0],Lr=Hi.valueCells;fi(Lr)},$i=bi!==void 0?bi:wo,ar=mr||Xr,Et=To||Ar,lr=function(wi){mo==null||mo(wi),zo==null||zo(wi)},Pr=Ne.useMemo(function(){return{options:Mr,fieldNames:Zr,values:Pi,halfValues:Ai,changeOnSelect:vn,onSelect:fi,checkable:Qn,searchOptions:Kn,dropdownPrefixCls:br,loadData:Sr,expandTrigger:sr,expandIcon:Co,loadingIcon:ca,dropdownMenuColumnStyle:ao,optionRender:Ea}},[Mr,Zr,Pi,Ai,vn,fi,Qn,Kn,br,Sr,sr,Co,ca,ao,Ea]),Or=!(je?Kn:Mr).length,Oo=je&&Fn.matchInputWidth||Or?{}:{minWidth:"auto"};return Ne.createElement(ol.Provider,{value:Pr},Ne.createElement(dl,ve({},es,{ref:Le,id:ba,prefixCls:kt,autoClearSearchValue:yi,dropdownMatchSelectWidth:Jr,dropdownStyle:Je(Je({},Oo),po),displayValues:wn,onDisplayValuesChange:rr,mode:_o?"multiple":void 0,searchValue:je,onSearch:dt,showSearch:rn,OptionList:dn,emptyOptions:Or,open:$i,dropdownClassName:ar,placement:Et,onDropdownVisibleChange:lr,getRawInputElement:function(){return Da}})))});it.SHOW_PARENT=Ot,it.SHOW_CHILD=di,it.Panel=rs;var vt=it,an=vt},42767:function(Dn,ei){"use strict";var be;var ve=typeof Symbol=="function"&&Symbol.for,ot=ve?Symbol.for("react.element"):60103,wt=ve?Symbol.for("react.portal"):60106,Qt=ve?Symbol.for("react.fragment"):60107,Nt=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,mt=ve?Symbol.for("react.async_mode"):60111,yt=ve?Symbol.for("react.concurrent_mode"):60111,Vt=ve?Symbol.for("react.forward_ref"):60112,ct=ve?Symbol.for("react.suspense"):60113,We=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 ot:switch(Pe=Pe.type,Pe){case mt:case yt:case Qt:case Re:case Nt: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 wt:return Ke}}}function xe(Pe){return me(Pe)===yt}be=mt,be=yt,be=pt,be=Je,be=ot,be=Vt,be=Qt,be=ne,be=Te,be=wt,be=Re,be=Nt,be=ct,be=function(Pe){return xe(Pe)||me(Pe)===mt},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===ot},be=function(Pe){return me(Pe)===Vt},ei.isFragment=function(Pe){return me(Pe)===Qt},be=function(Pe){return me(Pe)===ne},be=function(Pe){return me(Pe)===Te},be=function(Pe){return me(Pe)===wt},be=function(Pe){return me(Pe)===Re},be=function(Pe){return me(Pe)===Nt},be=function(Pe){return me(Pe)===ct},be=function(Pe){return typeof Pe=="string"||typeof Pe=="function"||Pe===Qt||Pe===yt||Pe===Re||Pe===Nt||Pe===ct||Pe===We||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(Dn,ei,be){"use strict";Dn.exports=be(42767)},16404:function(Dn,ei){"use strict";var be;var ve=Symbol.for("react.element"),ot=Symbol.for("react.portal"),wt=Symbol.for("react.fragment"),Qt=Symbol.for("react.strict_mode"),Nt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),mt=Symbol.for("react.forward_ref"),yt=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),We=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 wt:case Nt:case Qt:case yt:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case mt:case We:case ct:case Re:return ue;default:return se}}case ot:return se}}}be=Je,be=Re,be=ve,be=mt,be=wt,be=We,be=ct,be=ot,be=Nt,be=Qt,be=yt,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)===mt},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===We},be=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===ot},be=function(ue){return te(ue)===Nt},be=function(ue){return te(ue)===Qt},be=function(ue){return te(ue)===yt},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===wt||ue===Nt||ue===Qt||ue===yt||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===We||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===mt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},80705:function(Dn,ei,be){"use strict";be(16404)},31457:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return on}});var ve=be(4942),ot=be(87462),wt=be(71002),Qt=be(1413),Nt=be(97685),Re=be(94184),Je=be.n(Re),pt=be(67294);function mt(Si){var Gt=pt.useRef();Gt.current=Si;var Xe=pt.useCallback(function(){for(var ke,Me=arguments.length,He=new Array(Me),et=0;et<Me;et++)He[et]=arguments[et];return(ke=Gt.current)===null||ke===void 0?void 0:ke.call.apply(ke,[Gt].concat(He))},[]);return Xe}function yt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Vt=yt()?pt.useLayoutEffect:pt.useEffect,ct=function(Gt,Xe){var ke=pt.useRef(!0);Vt(function(){return Gt(ke.current)},Xe),Vt(function(){return ke.current=!1,function(){ke.current=!0}},[])},We=function(Gt,Xe){ct(function(ke){if(!ke)return Gt()},Xe)},Te=null;function ne(Si){var Gt=pt.useRef(!1),Xe=pt.useState(Si),ke=(0,Nt.Z)(Xe,2),Me=ke[0],He=ke[1];pt.useEffect(function(){return Gt.current=!1,function(){Gt.current=!0}},[]);function et(Oe,ut){ut&&Gt.current||He(Oe)}return[Me,et]}function te(Si){return Si!==void 0}function ue(Si,Gt){var Xe=Gt||{},ke=Xe.defaultValue,Me=Xe.value,He=Xe.onChange,et=Xe.postState,Oe=ne(function(){return te(Me)?Me:te(ke)?typeof ke=="function"?ke():ke:typeof Si=="function"?Si():Si}),ut=(0,Nt.Z)(Oe,2),Vn=ut[0],jn=ut[1],An=Me!==void 0?Me:Vn,Pn=et?et(An):An,si=mt(He),mn=ne([An]),Fi=(0,Nt.Z)(mn,2),Vi=Fi[0],Ir=Fi[1];We(function(){var Di=Vi[0];Vn!==Di&&si(Vn,Di)},[Vi]),We(function(){te(Me)||jn(Me)},[Me]);var Qi=mt(function(Di,$r){jn(Di,$r),Ir([An],$r)});return[Pn,Qi]}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(Gt){var Xe=Gt.keyCode;if(Gt.altKey&&!Gt.ctrlKey||Gt.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(Gt){if(Gt>=se.ZERO&&Gt<=se.NINE||Gt>=se.NUM_ZERO&&Gt<=se.NUM_MULTIPLY||Gt>=se.A&&Gt<=se.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Gt===0)return!0;switch(Gt){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-",nt="data-";function ft(Si,Gt){return Si.indexOf(Gt)===0}function qe(Si){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe;Gt===!1?Xe={aria:!0,data:!0,attr:!0}:Gt===!0?Xe={aria:!0}:Xe=(0,Qt.Z)({},Gt);var ke={};return Object.keys(Si).forEach(function(Me){(Xe.aria&&(Me==="role"||ft(Me,Ke))||Xe.data&&ft(Me,nt)||Xe.attr&&Pe.includes(Me))&&(ke[Me]=Si[Me])}),ke}var at={},jt=[],Mt=function(Gt){jt.push(Gt)};function bt(Si,Gt){if(0)var Xe}function Bt(Si,Gt){if(0)var Xe}function Ht(){at={}}function Jn(Si,Gt,Xe){!Gt&&!at[Xe]&&(Si(!1,Xe),at[Xe]=!0)}function qn(Si,Gt){Jn(bt,Si,Gt)}function sn(Si,Gt){Jn(Bt,Si,Gt)}qn.preMessage=Mt,qn.resetWarned=Ht,qn.noteOnce=sn;var Nn=null,lt=be(81626),Ge=[10,20,50,100],Ne=function(Gt){var Xe=Gt.pageSizeOptions,ke=Xe===void 0?Ge:Xe,Me=Gt.locale,He=Gt.changeSize,et=Gt.pageSize,Oe=Gt.goButton,ut=Gt.quickGo,Vn=Gt.rootPrefixCls,jn=Gt.disabled,An=Gt.buildOptionText,Pn=Gt.showSizeChanger,si=Gt.sizeChangerRender,mn=pt.useState(""),Fi=(0,Nt.Z)(mn,2),Vi=Fi[0],Ir=Fi[1],Qi=function(){return!Vi||Number.isNaN(Vi)?void 0:Number(Vi)},Di=typeof An=="function"?An:function(Kr){return"".concat(Kr," ").concat(Me.items_per_page)},$r=function(ia){Ir(ia.target.value)},Yi=function(ia){Oe||Vi===""||(Ir(""),!(ia.relatedTarget&&(ia.relatedTarget.className.indexOf("".concat(Vn,"-item-link"))>=0||ia.relatedTarget.className.indexOf("".concat(Vn,"-item"))>=0))&&(ut==null||ut(Qi())))},hr=function(ia){Vi!==""&&(ia.keyCode===ge.ENTER||ia.type==="click")&&(Ir(""),ut==null||ut(Qi()))},dr=function(){return ke.some(function(ia){return ia.toString()===et.toString()})?ke:ke.concat([et]).sort(function(ia,sa){var Wa=Number.isNaN(Number(ia))?0:Number(ia),ma=Number.isNaN(Number(sa))?0:Number(sa);return Wa-ma})},kn="".concat(Vn,"-options");if(!Pn&&!ut)return null;var Ii=null,ra=null,Un=null;return Pn&&si&&(Ii=si({disabled:jn,size:et,onSizeChange:function(ia){He==null||He(Number(ia))},"aria-label":Me.page_size,className:"".concat(kn,"-size-changer"),options:dr().map(function(Kr){return{label:Di(Kr),value:Kr}})})),ut&&(Oe&&(Un=typeof Oe=="boolean"?pt.createElement("button",{type:"button",onClick:hr,onKeyUp:hr,disabled:jn,className:"".concat(kn,"-quick-jumper-button")},Me.jump_to_confirm):pt.createElement("span",{onClick:hr,onKeyUp:hr},Oe)),ra=pt.createElement("div",{className:"".concat(kn,"-quick-jumper")},Me.jump_to,pt.createElement("input",{disabled:jn,type:"text",value:Vi,onChange:$r,onKeyUp:hr,onBlur:Yi,"aria-label":Me.page}),Me.page,Un)),pt.createElement("li",{className:kn},Ii,ra)},Rn=Ne,ai=function(Gt){var Xe=Gt.rootPrefixCls,ke=Gt.page,Me=Gt.active,He=Gt.className,et=Gt.showTitle,Oe=Gt.onClick,ut=Gt.onKeyPress,Vn=Gt.itemRender,jn="".concat(Xe,"-item"),An=Je()(jn,"".concat(jn,"-").concat(ke),(0,ve.Z)((0,ve.Z)({},"".concat(jn,"-active"),Me),"".concat(jn,"-disabled"),!ke),He),Pn=function(){Oe(ke)},si=function(Vi){ut(Vi,Oe,ke)},mn=Vn(ke,"page",pt.createElement("a",{rel:"nofollow"},ke));return mn?pt.createElement("li",{title:et?String(ke):null,className:An,onClick:Pn,onKeyDown:si,tabIndex:0},mn):null},Zt=ai,ci=function(Gt,Xe,ke){return ke};function On(){}function Mi(Si){var Gt=Number(Si);return typeof Gt=="number"&&!Number.isNaN(Gt)&&isFinite(Gt)&&Math.floor(Gt)===Gt}function Xt(Si,Gt,Xe){var ke=typeof Si=="undefined"?Gt:Si;return Math.floor((Xe-1)/ke)+1}var At=function(Gt){var Xe=Gt.prefixCls,ke=Xe===void 0?"rc-pagination":Xe,Me=Gt.selectPrefixCls,He=Me===void 0?"rc-select":Me,et=Gt.className,Oe=Gt.current,ut=Gt.defaultCurrent,Vn=ut===void 0?1:ut,jn=Gt.total,An=jn===void 0?0:jn,Pn=Gt.pageSize,si=Gt.defaultPageSize,mn=si===void 0?10:si,Fi=Gt.onChange,Vi=Fi===void 0?On:Fi,Ir=Gt.hideOnSinglePage,Qi=Gt.align,Di=Gt.showPrevNextJumpers,$r=Di===void 0?!0:Di,Yi=Gt.showQuickJumper,hr=Gt.showLessItems,dr=Gt.showTitle,kn=dr===void 0?!0:dr,Ii=Gt.onShowSizeChange,ra=Ii===void 0?On:Ii,Un=Gt.locale,Kr=Un===void 0?lt.Z:Un,ia=Gt.style,sa=Gt.totalBoundaryShowSizeChanger,Wa=sa===void 0?50:sa,ma=Gt.disabled,Ha=Gt.simple,da=Gt.showTotal,la=Gt.showSizeChanger,No=la===void 0?An>Wa:la,ti=Gt.sizeChangerRender,Ee=Gt.pageSizeOptions,pn=Gt.itemRender,hn=pn===void 0?ci:pn,ii=Gt.jumpPrevIcon,Yn=Gt.jumpNextIcon,In=Gt.prevIcon,en=Gt.nextIcon,ni=pt.useRef(null),zt=ue(10,{value:Pn,defaultValue:mn}),Kt=(0,Nt.Z)(zt,2),Ft=Kt[0],un=Kt[1],Ti=ue(1,{value:Oe,defaultValue:Vn,postState:function(eo){return Math.max(1,Math.min(eo,Xt(void 0,Ft,An)))}}),Ri=(0,Nt.Z)(Ti,2),hi=Ri[0],Ut=Ri[1],zn=pt.useState(hi),xn=(0,Nt.Z)(zn,2),Fr=xn[0],ri=xn[1];(0,pt.useEffect)(function(){ri(hi)},[hi]);var $t=Vi!==On,_i="current"in Gt,Wr=Math.max(1,hi-(hr?3:5)),Br=Math.min(Xt(void 0,Ft,An),hi+(hr?3:5));function Sn(fn,eo){var so=fn||pt.createElement("button",{type:"button","aria-label":eo,className:"".concat(ke,"-item-link")});return typeof fn=="function"&&(so=pt.createElement(fn,(0,Qt.Z)({},Gt))),so}function or(fn){var eo=fn.target.value,so=Xt(void 0,Ft,An),ya;return eo===""?ya=eo:Number.isNaN(Number(eo))?ya=Fr:eo>=so?ya=so:ya=Number(eo),ya}function Xo(fn){return Mi(fn)&&fn!==hi&&Mi(An)&&An>0}var Na=An>Ft?Yi:!1;function aa(fn){(fn.keyCode===ge.UP||fn.keyCode===ge.DOWN)&&fn.preventDefault()}function ur(fn){var eo=or(fn);switch(eo!==Fr&&ri(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=Xt(fn,Ft,An),so=hi>eo&&eo!==0?eo:hi;un(fn),ri(so),ra==null||ra(hi,fn),Ut(so),Vi==null||Vi(so,fn)}function va(fn){if(Xo(fn)&&!ma){var eo=Xt(void 0,Ft,An),so=fn;return fn>eo?so=eo:fn<1&&(so=1),so!==Fr&&ri(so),Ut(so),Vi==null||Vi(so,Ft),so}return hi}var Ho=hi>1,pi=hi<Xt(void 0,Ft,An);function lo(){Ho&&va(hi-1)}function al(){pi&&va(hi+1)}function el(){va(Wr)}function Ns(){va(Br)}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",Sn(In,"prev page"));return pt.isValidElement(eo)?pt.cloneElement(eo,{disabled:!Ho}):eo}function $a(fn){var eo=hn(fn,"next",Sn(en,"next page"));return pt.isValidElement(eo)?pt.cloneElement(eo,{disabled:!pi}):eo}function Er(fn){(fn.type==="click"||fn.keyCode===ge.ENTER)&&va(Fr)}var uo=null,So=qe(Gt,{aria:!0,data:!0}),Wn=da&&pt.createElement("li",{className:"".concat(ke,"-total-text")},da(An,[An===0?0:(hi-1)*Ft+1,hi*Ft>An?An:hi*Ft])),ka=null,Cn=Xt(void 0,Ft,An);if(Ir&&An<=Ft)return null;var Po=[],Ws={rootPrefixCls:ke,onClick:va,onKeyPress:ln,showTitle:kn,itemRender:hn,page:-1},ds=hi-1>0?hi-1:0,kl=hi+1<Cn?hi+1:Cn,Ss=Yi&&Yi.goButton,Ua=(0,wt.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},Kr.jump_to_confirm):us=pt.createElement("span",{onClick:Er,onKeyUp:Er},Ss),us=pt.createElement("li",{title:kn?"".concat(Kr.jump_to).concat(hi,"/").concat(Cn):null,className:"".concat(ke,"-simple-pager")},us)),tl=pt.createElement("li",{title:kn?"".concat(hi,"/").concat(Cn):null,className:"".concat(ke,"-simple-pager")},Ua?Fr:pt.createElement("input",{type:"text","aria-label":Kr.jump_to,value:Fr,disabled:ma,onKeyDown:aa,onKeyUp:ur,onChange:ur,onBlur:Nr,size:3}),pt.createElement("span",{className:"".concat(ke,"-slash")},"/"),Cn));var ts=hr?1:2;if(Cn<=3+ts*2){Cn||Po.push(pt.createElement(Zt,(0,ot.Z)({},Ws,{key:"noPager",page:1,className:"".concat(ke,"-item-disabled")})));for(var wr=1;wr<=Cn;wr+=1)Po.push(pt.createElement(Zt,(0,ot.Z)({},Ws,{key:wr,page:wr,active:hi===wr})))}else{var st=hr?Kr.prev_3:Kr.prev_5,St=hr?Kr.next_3:Kr.next_5,Rt=hn(Wr,"jump-prev",Sn(ii,"prev page")),gn=hn(Br,"jump-next",Sn(Yn,"next page"));$r&&(uo=Rt?pt.createElement("li",{title:kn?st:null,key:"prev",onClick:el,tabIndex:0,onKeyDown:Ao,className:Je()("".concat(ke,"-jump-prev"),(0,ve.Z)({},"".concat(ke,"-jump-prev-custom-icon"),!!ii))},Rt):null,ka=gn?pt.createElement("li",{title:kn?St:null,key:"next",onClick:Ns,tabIndex:0,onKeyDown:ms,className:Je()("".concat(ke,"-jump-next"),(0,ve.Z)({},"".concat(ke,"-jump-next-custom-icon"),!!Yn))},gn):null);var Hn=Math.max(1,hi-ts),Oi=Math.min(hi+ts,Cn);hi-1<=ts&&(Oi=1+ts*2),Cn-hi<=ts&&(Hn=Cn-ts*2);for(var Yt=Hn;Yt<=Oi;Yt+=1)Po.push(pt.createElement(Zt,(0,ot.Z)({},Ws,{key:Yt,page:Yt,active:hi===Yt})));if(hi-1>=ts*2&&hi!==3&&(Po[0]=pt.cloneElement(Po[0],{className:Je()("".concat(ke,"-item-after-jump-prev"),Po[0].props.className)}),Po.unshift(uo)),Cn-hi>=ts*2&&hi!==Cn-2){var Zn=Po[Po.length-1];Po[Po.length-1]=pt.cloneElement(Zn,{className:Je()("".concat(ke,"-item-before-jump-next"),Zn.props.className)}),Po.push(ka)}Hn!==1&&Po.unshift(pt.createElement(Zt,(0,ot.Z)({},Ws,{key:1,page:1}))),Oi!==Cn&&Po.push(pt.createElement(Zt,(0,ot.Z)({},Ws,{key:Cn,page:Cn})))}var Ji=Ba(ds);if(Ji){var xi=!Ho||!Cn;Ji=pt.createElement("li",{title:kn?Kr.prev_page:null,onClick:lo,tabIndex:xi?null:0,onKeyDown:Yo,className:Je()("".concat(ke,"-prev"),(0,ve.Z)({},"".concat(ke,"-disabled"),xi)),"aria-disabled":xi},Ji)}var nr=$a(kl);if(nr){var Zi,vi;Ha?(Zi=!pi,vi=Ho?0:null):(Zi=!pi||!Cn,vi=Zi?null:0),nr=pt.createElement("li",{title:kn?Kr.next_page:null,onClick:al,tabIndex:vi,onKeyDown:Va,className:Je()("".concat(ke,"-next"),(0,ve.Z)({},"".concat(ke,"-disabled"),Zi)),"aria-disabled":Zi},nr)}var pr=Je()(ke,et,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(ke,"-start"),Qi==="start"),"".concat(ke,"-center"),Qi==="center"),"".concat(ke,"-end"),Qi==="end"),"".concat(ke,"-simple"),Ha),"".concat(ke,"-disabled"),ma));return pt.createElement("ul",(0,ot.Z)({className:pr,style:ia,ref:ni},So),Wn,Ji,Ha?tl:Po,nr,pt.createElement(Rn,{locale:Kr,rootPrefixCls:ke,disabled:ma,selectPrefixCls:He,changeSize:io,pageSize:Ft,pageSizeOptions:Ee,quickGo:Na?va:null,goButton:us,showSizeChanger:No,sizeChangerRender:ti}))},on=At},63697:function(Dn,ei,be){"use strict";var ve=be(27484),ot=be.n(ve),wt=be(6833),Qt=be.n(wt),Nt=be(96036),Re=be.n(Nt),Je=be(55183),pt=be.n(Je),mt=be(172),yt=be.n(mt),Vt=be(28734),ct=be.n(Vt),We=be(10285),Te=be.n(We);ot().extend(Te()),ot().extend(ct()),ot().extend(Qt()),ot().extend(Re()),ot().extend(pt()),ot().extend(yt()),ot().extend(function(ge,me){var xe=me.prototype,Pe=xe.format;xe.format=function(nt){var ft=(nt||"").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=ot()();return typeof me.tz=="function"?me.tz():me},getFixedDate:function(me){return ot()(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 ot()().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 ot()().locale(te(me)).localeData().weekdaysMin()},getShortMonths:function(me){return ot()().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),nt=0;nt<Pe.length;nt+=1){var ft=Pe[nt],qe=xe;if(ft.includes("wo")||ft.includes("Wo")){for(var at=qe.split("-")[0],jt=qe.split("-")[1],Mt=ot()(at,"YYYY").startOf("year").locale(Ke),bt=0;bt<=52;bt+=1){var Bt=Mt.add(bt,"week");if(Bt.format("Wo")===jt)return Bt}return ue(),null}var Ht=ot()(qe,ft,!0).locale(Ke);if(Ht.isValid())return Ht}return xe&&ue(),null}}};ei.Z=se},24465:function(Dn,ei,be){"use strict";be.d(ei,{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 ot(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 wt(ye){if(Array.isArray(ye))return ot(ye)}function Qt(ye){if(typeof Symbol!="undefined"&&ye[Symbol.iterator]!=null||ye["@@iterator"]!=null)return Array.from(ye)}function Nt(ye,Ie){if(ye){if(typeof ye=="string")return ot(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)?ot(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 wt(ye)||Qt(ye)||Nt(ye)||Re()}var pt=be(46394);function mt(ye){if(Array.isArray(ye))return ye}function yt(ye,Ie){var je=ye==null?null:typeof Symbol!="undefined"&&ye[Symbol.iterator]||ye["@@iterator"];if(je!=null){var Ue,dt,Wt,Jt,rn=[],Fn=!0,Kn=!1;try{if(Wt=(je=je.call(ye)).next,Ie===0){if(Object(je)!==je)return;Fn=!1}else for(;!(Fn=(Ue=Wt.call(je)).done)&&(rn.push(Ue.value),rn.length!==Ie);Fn=!0);}catch(En){Kn=!0,dt=En}finally{try{if(!Fn&&je.return!=null&&(Jt=je.return(),Object(Jt)!==Jt))return}finally{if(Kn)throw dt}}return rn}}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 mt(ye)||yt(ye,Ie)||Nt(ye,Ie)||Vt()}var We=be(67294);function Te(ye){var Ie=We.useRef();Ie.current=ye;var je=We.useCallback(function(){for(var Ue,dt=arguments.length,Wt=new Array(dt),Jt=0;Jt<dt;Jt++)Wt[Jt]=arguments[Jt];return(Ue=Ie.current)===null||Ue===void 0?void 0:Ue.call.apply(Ue,[Ie].concat(Wt))},[]);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,dt,Wt,Jt,rn=[],Fn=!0,Kn=!1;try{if(Wt=(je=je.call(ye)).next,Ie===0){if(Object(je)!==je)return;Fn=!1}else for(;!(Fn=(Ue=Wt.call(je)).done)&&(rn.push(Ue.value),rn.length!==Ie);Fn=!0);}catch(En){Kn=!0,dt=En}finally{try{if(!Fn&&je.return!=null&&(Jt=je.return(),Object(Jt)!==Jt))return}finally{if(Kn)throw dt}}return rn}}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()?We.useLayoutEffect:We.useEffect,Ke=function(Ie,je){var Ue=We.useRef(!0);Pe(function(){return Ie(Ue.current)},je),Pe(function(){return Ue.current=!1,function(){Ue.current=!0}},[])},nt=function(Ie,je){Ke(function(Ue){if(!Ue)return Ie()},je)},ft=Ke;function qe(ye){var Ie=We.useRef(!1),je=We.useState(ye),Ue=me(je,2),dt=Ue[0],Wt=Ue[1];We.useEffect(function(){return Ie.current=!1,function(){Ie.current=!0}},[]);function Jt(rn,Fn){Fn&&Ie.current||Wt(rn)}return[dt,Jt]}function at(ye){return ye!==void 0}function jt(ye,Ie){var je=Ie||{},Ue=je.defaultValue,dt=je.value,Wt=je.onChange,Jt=je.postState,rn=qe(function(){return at(dt)?dt:at(Ue)?typeof Ue=="function"?Ue():Ue:typeof ye=="function"?ye():ye}),Fn=me(rn,2),Kn=Fn[0],En=Fn[1],Ci=dt!==void 0?dt:Kn,Gi=Jt?Jt(Ci):Ci,Pi=Te(Wt),Ai=qe([Ci]),Ni=me(Ai,2),ki=Ni[0],wn=Ni[1];nt(function(){var $n=ki[0];Kn!==$n&&Pi(Kn,$n)},[ki]),nt(function(){at(dt)||En(dt)},[dt]);var Gn=Te(function($n,fi){En($n,fi),wn([Ci],fi)});return[Gi,Gn]}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 bt=be(17756);function Bt(ye,Ie,je){var Ue=We.useRef({});return(!("value"in Ue.current)||je(Ue.current.condition,Ie))&&(Ue.current.value=ye(),Ue.current.condition=Ie),Ue.current.value}var Ht=Symbol.for("react.element"),Jn=Symbol.for("react.transitional.element"),qn=Symbol.for("react.fragment");function sn(ye){return ye&&Mt(ye)==="object"&&(ye.$$typeof===Ht||ye.$$typeof===Jn)&&ye.type===qn}var Nn=Number(We.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 dt=je.filter(Boolean);return dt.length<=1?dt[0]:function(Wt){je.forEach(function(Jt){lt(Jt,Wt)})}},Ne=function(){for(var Ie=arguments.length,je=new Array(Ie),Ue=0;Ue<Ie;Ue++)je[Ue]=arguments[Ue];return Bt(function(){return Ge.apply(void 0,je)},je,function(dt,Wt){return dt.length!==Wt.length||dt.every(function(Jt,rn){return Jt!==Wt[rn]})})},Rn=function(Ie){var je,Ue;if(!Ie)return!1;if(ai(Ie)&&Nn>=19)return!0;var dt=(0,bt.isMemo)(Ie)?Ie.type.type:Ie.type;return!(typeof dt=="function"&&!((je=dt.prototype)!==null&&je!==void 0&&je.render)&&dt.$$typeof!==bt.ForwardRef||typeof Ie=="function"&&!((Ue=Ie.prototype)!==null&&Ue!==void 0&&Ue.render)&&Ie.$$typeof!==bt.ForwardRef)};function ai(ye){return(0,We.isValidElement)(ye)&&!sn(ye)}var Zt=function(Ie){return ai(Ie)&&Rn(Ie)},ci=function(Ie){if(Ie&&ai(Ie)){var je=Ie;return je.props.propertyIsEnumerable("ref")?je.props.ref:je.ref}return null};function On(ye,Ie,je,Ue){if(!Ie.length)return je;var dt=_toArray(Ie),Wt=dt[0],Jt=dt.slice(1),rn;return!ye&&typeof Wt=="number"?rn=[]:Array.isArray(ye)?rn=_toConsumableArray(ye):rn=_objectSpread({},ye),Ue&&je===void 0&&Jt.length===1?delete rn[Wt][Jt[0]]:rn[Wt]=On(rn[Wt],Jt,je,Ue),rn}function Mi(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:On(ye,Ie,je,Ue)}function Xt(ye){return _typeof(ye)==="object"&&ye!==null&&Object.getPrototypeOf(ye)===Object.prototype}function At(ye){return Array.isArray(ye)?[]:{}}var on=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Si(){for(var ye=arguments.length,Ie=new Array(ye),je=0;je<ye;je++)Ie[je]=arguments[je];var Ue=At(Ie[0]);return Ie.forEach(function(dt){function Wt(Jt,rn){var Fn=new Set(rn),Kn=get(dt,Jt),En=Array.isArray(Kn);if(En||Xt(Kn)){if(!Fn.has(Kn)){Fn.add(Kn);var Ci=get(Ue,Jt);En?Ue=Mi(Ue,Jt,[]):(!Ci||_typeof(Ci)!=="object")&&(Ue=Mi(Ue,Jt,At(Kn))),on(Kn).forEach(function(Gi){Wt([].concat(_toConsumableArray(Jt),[Gi]),Fn)})}}else Ue=Mi(Ue,Jt,Kn)}Wt([])}),Ue}var Gt={},Xe=[],ke=function(Ie){Xe.push(Ie)};function Me(ye,Ie){if(0)var je}function He(ye,Ie){if(0)var je}function et(){Gt={}}function Oe(ye,Ie,je){!Ie&&!Gt[je]&&(ye(!1,je),Gt[je]=!0)}function ut(ye,Ie){Oe(Me,ye,Ie)}function Vn(ye,Ie){Oe(He,ye,Ie)}ut.preMessage=ke,ut.resetWarned=et,ut.noteOnce=Vn;var jn=ut;function An(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 si(ye){var Ie=Pn(ye,"string");return Mt(Ie)==="symbol"?Ie:String(Ie)}function mn(ye,Ie,je){return Ie=si(Ie),Ie in ye?Object.defineProperty(ye,Ie,{value:je,enumerable:!0,configurable:!0,writable:!0}):ye[Ie]=je,ye}function Fi(ye,Ie){var je=Object.keys(ye);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(ye);Ie&&(Ue=Ue.filter(function(dt){return Object.getOwnPropertyDescriptor(ye,dt).enumerable})),je.push.apply(je,Ue)}return je}function Vi(ye){for(var Ie=1;Ie<arguments.length;Ie++){var je=arguments[Ie]!=null?arguments[Ie]:{};Ie%2?Fi(Object(je),!0).forEach(function(Ue){mn(ye,Ue,je[Ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ye,Object.getOwnPropertyDescriptors(je)):Fi(Object(je)).forEach(function(Ue){Object.defineProperty(ye,Ue,Object.getOwnPropertyDescriptor(je,Ue))})}return ye}var Ir=`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`,Qi=`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`,Di="".concat(Ir," ").concat(Qi).split(/[\s\n]+/),$r="aria-",Yi="data-";function hr(ye,Ie){return ye.indexOf(Ie)===0}function dr(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=Vi({},Ie);var Ue={};return Object.keys(ye).forEach(function(dt){(je.aria&&(dt==="role"||hr(dt,$r))||je.data&&hr(dt,Yi)||je.attr&&Di.includes(dt))&&(Ue[dt]=ye[dt])}),Ue}var kn=be(53550),Ii=be(98280),ra=be(94184),Un=be.n(ra);function Kr(ye,Ie){return ye!==void 0?ye:Ie?"bottomRight":"bottomLeft"}var ia=We.createContext(null),sa=ia,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,dt=ye.popupAlign,Wt=ye.transitionName,Jt=ye.getPopupContainer,rn=ye.children,Fn=ye.range,Kn=ye.placement,En=ye.builtinPlacements,Ci=En===void 0?Wa:En,Gi=ye.direction,Pi=ye.visible,Ai=ye.onClose,Ni=We.useContext(sa),ki=Ni.prefixCls,wn="".concat(ki,"-dropdown"),Gn=Kr(Kn,Gi==="rtl");return We.createElement(Ii.Z,{showAction:[],hideAction:["click"],popupPlacement:Gn,builtinPlacements:Ci,prefixCls:wn,popupTransitionName:Wt,popup:Ie,popupAlign:dt,popupVisible:Pi,popupClassName:Un()(Ue,(0,kn.Z)((0,kn.Z)({},"".concat(wn,"-range"),Fn),"".concat(wn,"-rtl"),Gi==="rtl")),popupStyle:je,stretch:"minWidth",getPopupContainer:Jt,onPopupVisibleChange:function(fi){fi||Ai()}},rn)}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 ti(ye,Ie){var je={},Ue=Ie||Object.keys(ye);return Ue.forEach(function(dt){ye[dt]!==void 0&&(je[dt]=ye[dt])}),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],dt=Ie.find(function(Wt){return ye[Wt]});return Ue!==dt?ye[dt]:void 0}function hn(ye){return ti(ye,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ii(ye,Ie,je,Ue){var dt=We.useMemo(function(){return ye||function(Jt,rn){var Fn=Jt;return Ie&&rn.type==="date"?Ie(Fn,rn.today):je&&rn.type==="month"?je(Fn,rn.locale):rn.originNode}},[ye,je,Ie]),Wt=We.useCallback(function(Jt,rn){return dt(Jt,(0,pt.Z)((0,pt.Z)({},rn),{},{range:Ue}))},[dt,Ue]);return Wt}function Yn(ye,Ie){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ue=We.useState([!1,!1]),dt=ct(Ue,2),Wt=dt[0],Jt=dt[1],rn=function(En,Ci){Jt(function(Gi){return No(Gi,Ci,En)})},Fn=We.useMemo(function(){return Wt.map(function(Kn,En){if(Kn)return!0;var Ci=ye[En];return Ci?!!(!je[En]&&!Ci||Ci&&Ie(Ci,{activeIndex:En})):!1})},[ye,Wt,Ie,je]);return[Fn,rn]}function In(ye,Ie,je,Ue,dt){var Wt="",Jt=[];return ye&&Jt.push(dt?"hh":"HH"),Ie&&Jt.push("mm"),je&&Jt.push("ss"),Wt=Jt.join(":"),Ue&&(Wt+=".SSS"),dt&&(Wt+=" A"),Wt}function en(ye,Ie,je,Ue,dt,Wt){var Jt=ye.fieldDateTimeFormat,rn=ye.fieldDateFormat,Fn=ye.fieldTimeFormat,Kn=ye.fieldMonthFormat,En=ye.fieldYearFormat,Ci=ye.fieldWeekFormat,Gi=ye.fieldQuarterFormat,Pi=ye.yearFormat,Ai=ye.cellYearFormat,Ni=ye.cellQuarterFormat,ki=ye.dayFormat,wn=ye.cellDateFormat,Gn=In(Ie,je,Ue,dt,Wt);return(0,pt.Z)((0,pt.Z)({},ye),{},{fieldDateTimeFormat:Jt||"YYYY-MM-DD ".concat(Gn),fieldDateFormat:rn||"YYYY-MM-DD",fieldTimeFormat:Fn||Gn,fieldMonthFormat:Kn||"YYYY-MM",fieldYearFormat:En||"YYYY",fieldWeekFormat:Ci||"gggg-wo",fieldQuarterFormat:Gi||"YYYY-[Q]Q",yearFormat:Pi||"YYYY",cellYearFormat:Ai||"YYYY",cellQuarterFormat:Ni||"[Q]Q",cellDateFormat:wn||ki||"D"})}function ni(ye,Ie){var je=Ie.showHour,Ue=Ie.showMinute,dt=Ie.showSecond,Wt=Ie.showMillisecond,Jt=Ie.use12Hours;return We.useMemo(function(){return en(ye,je,Ue,dt,Wt,Jt)},[ye,je,Ue,dt,Wt,Jt])}var zt=be(19706);function Kt(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=ti(ye,Ft),je=ye.format,Ue=ye.picker,dt=null;return je&&(dt=je,Array.isArray(dt)&&(dt=dt[0]),dt=(0,zt.Z)(dt)==="object"?dt.format:dt),Ue==="time"&&(Ie.format=dt),[Ie,dt]}function Ti(ye){return ye&&typeof ye=="string"}function Ri(ye,Ie,je,Ue){return[ye,Ie,je,Ue].some(function(dt){return dt!==void 0})}function hi(ye,Ie,je,Ue,dt){var Wt=Ie,Jt=je,rn=Ue;if(!ye&&!Wt&&!Jt&&!rn&&!dt)Wt=!0,Jt=!0,rn=!0;else if(ye){var Fn,Kn,En,Ci=[Wt,Jt,rn].some(function(Ai){return Ai===!1}),Gi=[Wt,Jt,rn].some(function(Ai){return Ai===!0}),Pi=Ci?!0:!Gi;Wt=(Fn=Wt)!==null&&Fn!==void 0?Fn:Pi,Jt=(Kn=Jt)!==null&&Kn!==void 0?Kn:Pi,rn=(En=rn)!==null&&En!==void 0?En:Pi}return[Wt,Jt,rn,dt]}function Ut(ye){var Ie=ye.showTime,je=un(ye),Ue=ct(je,2),dt=Ue[0],Wt=Ue[1],Jt=Ie&&(0,zt.Z)(Ie)==="object"?Ie:{},rn=(0,pt.Z)((0,pt.Z)({defaultOpenValue:Jt.defaultOpenValue||Jt.defaultValue},dt),Jt),Fn=rn.showMillisecond,Kn=rn.showHour,En=rn.showMinute,Ci=rn.showSecond,Gi=Ri(Kn,En,Ci,Fn),Pi=hi(Gi,Kn,En,Ci,Fn),Ai=ct(Pi,3);return Kn=Ai[0],En=Ai[1],Ci=Ai[2],[rn,(0,pt.Z)((0,pt.Z)({},rn),{},{showHour:Kn,showMinute:En,showSecond:Ci,showMillisecond:Fn}),rn.format,Wt]}function zn(ye,Ie,je,Ue,dt){var Wt=ye==="time";if(ye==="datetime"||Wt){for(var Jt=Ue,rn=Ee(ye,dt,null),Fn=rn,Kn=[Ie,je],En=0;En<Kn.length;En+=1){var Ci=la(Kn[En])[0];if(Ti(Ci)){Fn=Ci;break}}var Gi=Jt.showHour,Pi=Jt.showMinute,Ai=Jt.showSecond,Ni=Jt.showMillisecond,ki=Jt.use12Hours,wn=Kt(Fn,["a","A","LT","LLL","LTS"],ki),Gn=Ri(Gi,Pi,Ai,Ni);Gn||(Gi=Kt(Fn,["H","h","k","LT","LLL"]),Pi=Kt(Fn,["m","LT","LLL"]),Ai=Kt(Fn,["s","LTS"]),Ni=Kt(Fn,["SSS"]));var $n=hi(Gn,Gi,Pi,Ai,Ni),fi=ct($n,3);Gi=fi[0],Pi=fi[1],Ai=fi[2];var rr=Ie||In(Gi,Pi,Ai,Ni,wn);return(0,pt.Z)((0,pt.Z)({},Jt),{},{format:rr,showHour:Gi,showMinute:Pi,showSecond:Ai,showMillisecond:Ni,use12Hours:wn})}return null}function xn(ye,Ie,je){if(Ie===!1)return null;var Ue=Ie&&(0,zt.Z)(Ie)==="object"?Ie:{};return Ue.clearIcon||je||We.createElement("span",{className:"".concat(ye,"-clear-btn")})}var Fr=7;function ri(ye,Ie,je){return!ye&&!Ie||ye===Ie?!0:!ye||!Ie?!1:je()}function $t(ye,Ie,je){return ri(Ie,je,function(){var Ue=Math.floor(ye.getYear(Ie)/10),dt=Math.floor(ye.getYear(je)/10);return Ue===dt})}function _i(ye,Ie,je){return ri(Ie,je,function(){return ye.getYear(Ie)===ye.getYear(je)})}function Wr(ye,Ie){var je=Math.floor(ye.getMonth(Ie)/3);return je+1}function Br(ye,Ie,je){return ri(Ie,je,function(){return _i(ye,Ie,je)&&Wr(ye,Ie)===Wr(ye,je)})}function Sn(ye,Ie,je){return ri(Ie,je,function(){return _i(ye,Ie,je)&&ye.getMonth(Ie)===ye.getMonth(je)})}function or(ye,Ie,je){return ri(Ie,je,function(){return _i(ye,Ie,je)&&Sn(ye,Ie,je)&&ye.getDate(Ie)===ye.getDate(je)})}function Xo(ye,Ie,je){return ri(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 ri(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 ri(je,Ue,function(){var dt=ye.locale.getWeekFirstDate(Ie,je),Wt=ye.locale.getWeekFirstDate(Ie,Ue);return _i(ye,dt,Wt)&&ye.locale.getWeek(Ie,je)===ye.locale.getWeek(Ie,Ue)})}function ur(ye,Ie,je,Ue,dt){switch(dt){case"date":return or(ye,je,Ue);case"week":return aa(ye,Ie.locale,je,Ue);case"month":return Sn(ye,je,Ue);case"quarter":return Br(ye,je,Ue);case"year":return _i(ye,je,Ue);case"decade":return $t(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,dt){return ur(ye,Ie,je,Ue,dt)?!0:ye.isAfter(je,Ue)}function va(ye,Ie,je){var Ue=Ie.locale.getWeekFirstDay(ye),dt=Ie.setDate(je,1),Wt=Ie.getWeekDay(dt),Jt=Ie.addDate(dt,Ue-Wt);return Ie.getMonth(Jt)===Ie.getMonth(je)&&Ie.getDate(Jt)>1&&(Jt=Ie.addDate(Jt,-7)),Jt}function Ho(ye,Ie){var je=Ie.generateConfig,Ue=Ie.locale,dt=Ie.format;return ye?typeof dt=="function"?dt(ye):je.locale.format(Ue.locale,ye,dt):""}function pi(ye,Ie,je){var Ue=Ie,dt=["getHour","getMinute","getSecond","getMillisecond"],Wt=["setHour","setMinute","setSecond","setMillisecond"];return Wt.forEach(function(Jt,rn){je?Ue=ye[Jt](Ue,ye[dt[rn]](je)):Ue=ye[Jt](Ue,0)}),Ue}function lo(ye,Ie,je,Ue,dt){var Wt=Te(function(Jt,rn){return!!(je&&je(Jt,rn)||Ue&&ye.isAfter(Ue,Jt)&&!ur(ye,Ie,Ue,Jt,rn.type)||dt&&ye.isAfter(Jt,dt)&&!ur(ye,Ie,dt,Jt,rn.type))});return Wt}function al(ye,Ie,je){return We.useMemo(function(){var Ue=Ee(ye,Ie,je),dt=la(Ue),Wt=dt[0],Jt=(0,zt.Z)(Wt)==="object"&&Wt.type==="mask"?Wt.format:null;return[dt.map(function(rn){return typeof rn=="string"||typeof rn=="function"?rn:rn.format}),Jt]},[ye,Ie,je])}function el(ye,Ie,je){return typeof ye[0]=="function"||je?!0:Ie}function Ns(ye,Ie,je,Ue){var dt=Te(function(Wt,Jt){var rn=(0,pt.Z)({type:Ie},Jt);if(delete rn.activeIndex,!ye.isValidate(Wt)||je&&je(Wt,rn))return!0;if((Ie==="date"||Ie==="time")&&Ue){var Fn,Kn=Jt&&Jt.activeIndex===1?"end":"start",En=((Fn=Ue.disabledTime)===null||Fn===void 0?void 0:Fn.call(Ue,Wt,Kn,{from:rn.from}))||{},Ci=En.disabledHours,Gi=En.disabledMinutes,Pi=En.disabledSeconds,Ai=En.disabledMilliseconds,Ni=Ue.disabledHours,ki=Ue.disabledMinutes,wn=Ue.disabledSeconds,Gn=Ci||Ni,$n=Gi||ki,fi=Pi||wn,rr=ye.getHour(Wt),$i=ye.getMinute(Wt),ar=ye.getSecond(Wt),Et=ye.getMillisecond(Wt);if(Gn&&Gn().includes(rr)||$n&&$n(rr).includes($i)||fi&&fi(rr,$i).includes(ar)||Ai&&Ai(rr,$i,ar).includes(Et))return!0}return!1});return dt}function ln(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=We.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,dt=ye.picker,Wt=dt===void 0?"date":dt,Jt=ye.prefixCls,rn=Jt===void 0?"rc-picker":Jt,Fn=ye.styles,Kn=Fn===void 0?{}:Fn,En=ye.classNames,Ci=En===void 0?{}:En,Gi=ye.order,Pi=Gi===void 0?!0:Gi,Ai=ye.components,Ni=Ai===void 0?{}:Ai,ki=ye.inputRender,wn=ye.allowClear,Gn=ye.clearIcon,$n=ye.needConfirm,fi=ye.multiple,rr=ye.format,$i=ye.inputReadOnly,ar=ye.disabledDate,Et=ye.minDate,lr=ye.maxDate,Pr=ye.showTime,Or=ye.value,Oo=ye.defaultValue,Ur=ye.pickerValue,wi=ye.defaultPickerValue,qi=ln(Or),Hi=ln(Oo),Lr=ln(Ur),Eo=ln(wi),vr=Wt==="date"&&Pr?"datetime":Wt,Qr=vr==="time"||vr==="datetime",xr=Qr||fi,fr=$n!=null?$n:Qr,Hr=Ut(ye),Vr=ct(Hr,4),Aa=Vr[0],Ya=Vr[1],bo=Vr[2],co=Vr[3],vo=ni(Ue,Ya),Qo=We.useMemo(function(){return zn(vr,bo,co,Aa,vo)},[vr,bo,co,Aa,vo]),xa=We.useMemo(function(){return(0,pt.Z)((0,pt.Z)({},ye),{},{prefixCls:rn,locale:vo,picker:Wt,styles:Kn,classNames:Ci,order:Pi,components:(0,pt.Z)({input:ki},Ni),clearIcon:xn(rn,wn,Gn),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,fi),gs=lo(je,Ue,ar,Et,lr),Fa=Ns(je,Wt,gs,Qo),Ja=We.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 dt(Wt){if(Wt===0)$a(Ue),Ie();else{var Jt=Va(function(){dt(Wt-1)});Ba.set(Ue,Jt)}}return dt(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=jt(Ie,{value:ye}),dt=ct(Ue,2),Wt=dt[0],Jt=dt[1],rn=We.useRef(ye),Fn=We.useRef(),Kn=function(){uo.cancel(Fn.current)},En=Te(function(){Jt(rn.current),je&&Wt!==rn.current&&je(rn.current)}),Ci=Te(function(Gi,Pi){Kn(),rn.current=Gi,Gi||Pi?En():Fn.current=uo(En)});return We.useEffect(function(){return Kn},[]),[Wt,Ci]}function Wn(ye,Ie){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ue=arguments.length>3?arguments[3]:void 0,dt=je.every(function(En){return En})?!1:ye,Wt=So(dt,Ie||!1,Ue),Jt=ct(Wt,2),rn=Jt[0],Fn=Jt[1];function Kn(En){var Ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!Ci.inherit||rn)&&Fn(En,Ci.force)}return[rn,Kn]}function ka(ye){var Ie=We.useRef();return We.useImperativeHandle(ye,function(){var je;return{nativeElement:(je=Ie.current)===null||je===void 0?void 0:je.nativeElement,focus:function(dt){var Wt;(Wt=Ie.current)===null||Wt===void 0||Wt.focus(dt)},blur:function(){var dt;(dt=Ie.current)===null||dt===void 0||dt.blur()}}}),Ie}function Cn(ye,Ie){return We.useMemo(function(){return ye||(Ie?(jn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ie).map(function(je){var Ue=ct(je,2),dt=Ue[0],Wt=Ue[1];return{label:dt,value:Wt}})):[])},[ye,Ie])}function Po(ye,Ie){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ue=We.useRef(Ie);Ue.current=Ie,nt(function(){if(ye)Ue.current(ye);else{var dt=uo(function(){Ue.current(ye)},je);return function(){uo.cancel(dt)}}},[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=We.useState(0),dt=ct(Ue,2),Wt=dt[0],Jt=dt[1],rn=We.useState(!1),Fn=ct(rn,2),Kn=Fn[0],En=Fn[1],Ci=We.useRef([]),Gi=We.useRef(null),Pi=We.useRef(null),Ai=function(fi){Gi.current=fi},Ni=function(fi){return Gi.current===fi},ki=function(fi){En(fi)},wn=function(fi){return fi&&(Pi.current=fi),Pi.current},Gn=function(fi){var rr=Ci.current,$i=new Set(rr.filter(function(Et){return fi[Et]||Ie[Et]})),ar=rr[rr.length-1]===0?1:0;return $i.size>=2||ye[ar]?null:ar};return Po(Kn||je,function(){Kn||(Ci.current=[],Ai(null))}),We.useEffect(function(){Kn&&Ci.current.push(Wt)},[Kn,Wt]),[Kn,ki,wn,Wt,Jt,Gn,Ci.current,Ai,Ni]}function ds(ye,Ie,je,Ue,dt,Wt){var Jt=je[je.length-1],rn=function(Kn,En){var Ci=ct(ye,2),Gi=Ci[0],Pi=Ci[1],Ai=(0,pt.Z)((0,pt.Z)({},En),{},{from:pn(ye,je)});return Jt===1&&Ie[0]&&Gi&&!ur(Ue,dt,Gi,Kn,Ai.type)&&Ue.isAfter(Gi,Kn)||Jt===0&&Ie[1]&&Pi&&!ur(Ue,dt,Pi,Kn,Ai.type)&&Ue.isAfter(Kn,Pi)?!0:Wt==null?void 0:Wt(Kn,Ai)};return rn}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,dt,Wt,Jt,rn){var Fn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Ss,Kn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Ss,En=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Ss,Ci=arguments.length>11?arguments[11]:void 0,Gi=arguments.length>12?arguments[12]:void 0,Pi=arguments.length>13?arguments[13]:void 0,Ai=Jt==="time",Ni=Wt||0,ki=function(Lr){var Eo=ye.getNow();return Ai&&(Eo=pi(ye,Eo)),Fn[Lr]||je[Lr]||Eo},wn=ct(Kn,2),Gn=wn[0],$n=wn[1],fi=jt(function(){return ki(0)},{value:Gn}),rr=ct(fi,2),$i=rr[0],ar=rr[1],Et=jt(function(){return ki(1)},{value:$n}),lr=ct(Et,2),Pr=lr[0],Or=lr[1],Oo=We.useMemo(function(){var Hi=[$i,Pr][Ni];return Ai?Hi:pi(ye,Hi,En[Ni])},[Ai,$i,Pr,Ni,ye,En]),Ur=function(Lr){var Eo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",vr=[ar,Or][Ni];vr(Lr);var Qr=[$i,Pr];Qr[Ni]=Lr,Ci&&(!ur(ye,Ie,$i,Qr[0],Jt)||!ur(ye,Ie,Pr,Qr[1],Jt))&&Ci(Qr,{source:Eo,range:Ni===1?"end":"start",mode:Ue})},wi=function(Lr,Eo){if(rn){var vr={date:"month",week:"month",month:"year",quarter:"year"},Qr=vr[Jt];if(Qr&&!ur(ye,Ie,Lr,Eo,Qr))return kl(ye,Jt,Eo,-1);if(Jt==="year"&&Lr){var xr=Math.floor(ye.getYear(Lr)/10),fr=Math.floor(ye.getYear(Eo)/10);if(xr!==fr)return kl(ye,Jt,Eo,-1)}}return Eo},qi=We.useRef(null);return ft(function(){if(dt&&!Fn[Ni]){var Hi=Ai?null:ye.getNow();if(qi.current!==null&&qi.current!==Ni?Hi=[$i,Pr][Ni^1]:je[Ni]?Hi=Ni===0?je[0]:wi(je[0],je[1]):je[Ni^1]&&(Hi=je[Ni^1]),Hi){Gi&&ye.isAfter(Gi,Hi)&&(Hi=Gi);var Lr=rn?kl(ye,Jt,Hi,1):Hi;Pi&&ye.isAfter(Lr,Pi)&&(Hi=rn?kl(ye,Jt,Pi,-1):Pi),Ur(Hi,"reset")}}},[dt,Ni,je[Ni]]),We.useEffect(function(){dt?qi.current=Ni:qi.current=null},[dt,Ni]),ft(function(){dt&&Fn&&Fn[Ni]&&Ur(Fn[Ni],"reset")},[dt,Ni]),[Oo,Ur]}function us(ye,Ie){var je=We.useRef(ye),Ue=We.useState({}),dt=ct(Ue,2),Wt=dt[1],Jt=function(Kn){return Kn&&Ie!==void 0?Ie:je.current},rn=function(Kn){je.current=Kn,Wt({})};return[Jt,rn,Jt(!0)]}var tl=[];function ts(ye,Ie,je){var Ue=function(Jt){return Jt.map(function(rn){return Ho(rn,{generateConfig:ye,locale:Ie,format:je[0]})})},dt=function(Jt,rn){for(var Fn=Math.max(Jt.length,rn.length),Kn=-1,En=0;En<Fn;En+=1){var Ci=Jt[En]||null,Gi=rn[En]||null;if(Ci!==Gi&&!Na(ye,Ci,Gi)){Kn=En;break}}return[Kn<0,Kn!==0]};return[Ue,dt]}function wr(ye,Ie){return Je(ye).sort(function(je,Ue){return Ie.isAfter(je,Ue)?1:-1})}function st(ye){var Ie=us(ye),je=ct(Ie,2),Ue=je[0],dt=je[1],Wt=Te(function(){dt(ye)});return We.useEffect(function(){Wt()},[ye]),[Ue,dt]}function St(ye,Ie,je,Ue,dt,Wt,Jt,rn,Fn){var Kn=jt(Wt,{value:Jt}),En=ct(Kn,2),Ci=En[0],Gi=En[1],Pi=Ci||tl,Ai=st(Pi),Ni=ct(Ai,2),ki=Ni[0],wn=Ni[1],Gn=ts(ye,Ie,je),$n=ct(Gn,2),fi=$n[0],rr=$n[1],$i=Te(function(Et){var lr=Je(Et);if(Ue)for(var Pr=0;Pr<2;Pr+=1)lr[Pr]=lr[Pr]||null;else dt&&(lr=wr(lr.filter(function(Hi){return Hi}),ye));var Or=rr(ki(),lr),Oo=ct(Or,2),Ur=Oo[0],wi=Oo[1];if(!Ur&&(wn(lr),rn)){var qi=fi(lr);rn(lr,qi,{range:wi?"end":"start"})}}),ar=function(){Fn&&Fn(ki())};return[Pi,Gi,ki,$i,ar]}function Rt(ye,Ie,je,Ue,dt,Wt,Jt,rn,Fn,Kn){var En=ye.generateConfig,Ci=ye.locale,Gi=ye.picker,Pi=ye.onChange,Ai=ye.allowEmpty,Ni=ye.order,ki=Wt.some(function(Ur){return Ur})?!1:Ni,wn=ts(En,Ci,Jt),Gn=ct(wn,2),$n=Gn[0],fi=Gn[1],rr=us(Ie),$i=ct(rr,2),ar=$i[0],Et=$i[1],lr=Te(function(){Et(Ie)});We.useEffect(function(){lr()},[Ie]);var Pr=Te(function(Ur){var wi=Ur===null,qi=Je(Ur||ar());if(wi)for(var Hi=Math.max(Wt.length,qi.length),Lr=0;Lr<Hi;Lr+=1)Wt[Lr]||(qi[Lr]=null);ki&&qi[0]&&qi[1]&&(qi=wr(qi,En)),dt(qi);var Eo=qi,vr=ct(Eo,2),Qr=vr[0],xr=vr[1],fr=!Qr,Hr=!xr,Vr=Ai?(!fr||Ai[0])&&(!Hr||Ai[1]):!0,Aa=!Ni||fr||Hr||ur(En,Ci,Qr,xr,Gi)||En.isAfter(xr,Qr),Ya=(Wt[0]||!Qr||!Kn(Qr,{activeIndex:0}))&&(Wt[1]||!xr||!Kn(xr,{from:Qr,activeIndex:1})),bo=wi||Vr&&Aa&&Ya;if(bo){je(qi);var co=fi(qi,Ie),vo=ct(co,1),Qo=vo[0];Pi&&!Qo&&Pi(wi&&qi.every(function(xa){return!xa})?null:qi,$n(qi))}return bo}),Or=Te(function(Ur,wi){var qi=No(ar(),Ur,Ue()[Ur]);Et(qi),wi&&Pr()}),Oo=!rn&&!Fn;return Po(!Oo,function(){Oo&&(Pr(),dt(Ie),lr())},2),[Or,Pr]}function gn(ye,Ie,je,Ue,dt){return Ie!=="date"&&Ie!=="time"?!1:je!==void 0?je:Ue!==void 0?Ue:!dt&&(ye==="date"||ye==="time")}function Hn(){return Hn=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},Hn.apply(this,arguments)}function Oi(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=[];return We.Children.forEach(ye,function(Ue){Ue==null&&!Ie.keepEmpty||(Array.isArray(Ue)?je=je.concat(Oi(Ue)):sn(Ue)&&Ue.props?je=je.concat(Oi(Ue.props.children,Ie)):je.push(Ue))}),je}function Yt(ye){"@babel/helpers - typeof";return Yt=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},Yt(ye)}function Zn(ye,Ie){if(Yt(ye)!=="object"||ye===null)return ye;var je=ye[Symbol.toPrimitive];if(je!==void 0){var Ue=je.call(ye,Ie||"default");if(Yt(Ue)!=="object")return Ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ie==="string"?String:Number)(ye)}function Ji(ye){var Ie=Zn(ye,"string");return Yt(Ie)==="symbol"?Ie:String(Ie)}function xi(ye,Ie,je){return Ie=Ji(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(dt){return Object.getOwnPropertyDescriptor(ye,dt).enumerable})),je.push.apply(je,Ue)}return je}function Zi(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){xi(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 vi=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 We.Component){var je;return(je=vi.findDOMNode)===null||je===void 0?void 0:je.call(vi,ye)}return null}var so=We.createContext(null);function ya(ye){var Ie=ye.children,je=ye.onBatchResize,Ue=We.useRef(0),dt=We.useRef([]),Wt=We.useContext(so),Jt=We.useCallback(function(rn,Fn,Kn){Ue.current+=1;var En=Ue.current;dt.current.push({size:rn,element:Fn,data:Kn}),Promise.resolve().then(function(){En===Ue.current&&(je==null||je(dt.current),dt.current=[])}),Wt==null||Wt(rn,Fn,Kn)},[je,Wt]);return We.createElement(so.Provider,{value:Jt},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(dt){return dt(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,Ji(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,dt){return Ue.__proto__=dt,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&&(Yt(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),dt;if(Ie){var Wt=hu(this).constructor;dt=Reflect.construct(Ue,arguments,Wt)}else dt=Ue.apply(this,arguments);return il(this,dt)}}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}(We.Component);function Is(ye,Ie){var je=ye.children,Ue=ye.disabled,dt=We.useRef(null),Wt=We.useRef(null),Jt=We.useContext(so),rn=typeof je=="function",Fn=rn?je(dt):je,Kn=We.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),En=!rn&&We.isValidElement(Fn)&&Rn(Fn),Ci=En?ci(Fn):null,Gi=Ne(Ci,dt),Pi=function(){var wn;return eo(dt.current)||(dt.current&&Yt(dt.current)==="object"?eo((wn=dt.current)===null||wn===void 0?void 0:wn.nativeElement):null)||eo(Wt.current)};We.useImperativeHandle(Ie,function(){return Pi()});var Ai=We.useRef(ye);Ai.current=ye;var Ni=We.useCallback(function(ki){var wn=Ai.current,Gn=wn.onResize,$n=wn.data,fi=ki.getBoundingClientRect(),rr=fi.width,$i=fi.height,ar=ki.offsetWidth,Et=ki.offsetHeight,lr=Math.floor(rr),Pr=Math.floor($i);if(Kn.current.width!==lr||Kn.current.height!==Pr||Kn.current.offsetWidth!==ar||Kn.current.offsetHeight!==Et){var Or={width:lr,height:Pr,offsetWidth:ar,offsetHeight:Et};Kn.current=Or;var Oo=ar===Math.round(rr)?rr:ar,Ur=Et===Math.round($i)?$i:Et,wi=Zi(Zi({},Or),{},{offsetWidth:Oo,offsetHeight:Ur});Jt==null||Jt(wi,ki,$n),Gn&&Promise.resolve().then(function(){Gn(wi,ki)})}},[]);return We.useEffect(function(){var ki=Pi();return ki&&!Ue&&Hs(ki,Ni),function(){return cn(ki,Ni)}},[dt.current,Ue]),We.createElement(Xa,{ref:Wt},En?We.cloneElement(Fn,{ref:Gi}):Fn)}var pl=We.forwardRef(Is),Mo=pl,$u="rc-observer-key";function Pu(ye,Ie){var je=ye.children,Ue=typeof je=="function"?[je]:Oi(je);return Ue.map(function(dt,Wt){var Jt=(dt==null?void 0:dt.key)||"".concat($u,"-").concat(Wt);return We.createElement(Mo,Hn({},ye,{key:Jt,ref:Wt===0?Ie:void 0}),dt)})}var $l=We.forwardRef(Pu);$l.Collection=ya;var ou=$l;function gc(ye,Ie,je,Ue,dt,Wt){var Jt=ye;function rn(Ci,Gi,Pi){var Ai=Wt[Ci](Jt),Ni=Pi.find(function($n){return $n.value===Ai});if(!Ni||Ni.disabled){var ki=Pi.filter(function($n){return!$n.disabled}),wn=Je(ki).reverse(),Gn=wn.find(function($n){return $n.value<=Ai})||ki[0];Gn&&(Ai=Gn.value,Jt=Wt[Gi](Jt,Ai))}return Ai}var Fn=rn("getHour","setHour",Ie()),Kn=rn("getMinute","setMinute",je(Fn)),En=rn("getSecond","setSecond",Ue(Fn,Kn));return rn("getMillisecond","setMillisecond",dt(Fn,Kn,En)),Jt}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,dt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Wt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Jt=[],rn=je>=1?je|0:1,Fn=ye;Fn<=Ie;Fn+=rn){var Kn=dt.includes(Fn);(!Kn||!Ue)&&Jt.push({label:da(Fn,Wt),value:Fn,disabled:Kn})}return Jt}function Rs(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2?arguments[2]:void 0,Ue=Ie||{},dt=Ue.use12Hours,Wt=Ue.hourStep,Jt=Wt===void 0?1:Wt,rn=Ue.minuteStep,Fn=rn===void 0?1:rn,Kn=Ue.secondStep,En=Kn===void 0?1:Kn,Ci=Ue.millisecondStep,Gi=Ci===void 0?100:Ci,Pi=Ue.hideDisabledOptions,Ai=Ue.disabledTime,Ni=Ue.disabledHours,ki=Ue.disabledMinutes,wn=Ue.disabledSeconds,Gn=We.useMemo(function(){return je||ye.getNow()},[je,ye]);if(0)var $n,fi,rr;var $i=We.useCallback(function(xr){var fr=(Ai==null?void 0:Ai(xr))||{};return[fr.disabledHours||Ni||kr,fr.disabledMinutes||ki||kr,fr.disabledSeconds||wn||kr,fr.disabledMilliseconds||kr]},[Ai,Ni,ki,wn]),ar=We.useMemo(function(){return $i(Gn)},[Gn,$i]),Et=ct(ar,4),lr=Et[0],Pr=Et[1],Or=Et[2],Oo=Et[3],Ur=We.useCallback(function(xr,fr,Hr,Vr){var Aa=hl(0,23,Jt,Pi,xr()),Ya=dt?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,Fn,Pi,fr(xa))},co=function(xa,Oa){return hl(0,59,En,Pi,Hr(xa,Oa))},vo=function(xa,Oa,no){return hl(0,999,Gi,Pi,Vr(xa,Oa,no),3)};return[Ya,bo,co,vo]},[Pi,Jt,dt,Gi,Fn,En]),wi=We.useMemo(function(){return Ur(lr,Pr,Or,Oo)},[Ur,lr,Pr,Or,Oo]),qi=ct(wi,4),Hi=qi[0],Lr=qi[1],Eo=qi[2],vr=qi[3],Qr=function(fr,Hr){var Vr=function(){return Hi},Aa=Lr,Ya=Eo,bo=vr;if(Hr){var co=$i(Hr),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];Vr=function(){return Pa},Aa=gs,Ya=Fa,bo=Ja}var Es=gc(fr,Vr,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,dt=ye.showNow,Wt=ye.showTime,Jt=ye.onSubmit,rn=ye.onNow,Fn=ye.invalid,Kn=ye.needConfirm,En=ye.generateConfig,Ci=ye.disabledDate,Gi=We.useContext(sa),Pi=Gi.prefixCls,Ai=Gi.locale,Ni=Gi.button,ki=Ni===void 0?"button":Ni,wn=En.getNow(),Gn=Rs(En,Wt,wn),$n=ct(Gn,1),fi=$n[0],rr=Ue==null?void 0:Ue(Ie),$i=Ci(wn,{type:Ie}),ar=function(){if(!$i){var wi=fi(wn);rn(wi)}},Et="".concat(Pi,"-now"),lr="".concat(Et,"-btn"),Pr=dt&&We.createElement("li",{className:Et},We.createElement("a",{className:Un()(lr,$i&&"".concat(lr,"-disabled")),"aria-disabled":$i,onClick:ar},je==="date"?Ai.today:Ai.now)),Or=Kn&&We.createElement("li",{className:"".concat(Pi,"-ok")},We.createElement(ki,{disabled:Fn,onClick:Jt},Ai.ok)),Oo=(Pr||Or)&&We.createElement("ul",{className:"".concat(Pi,"-ranges")},Pr,Or);return!rr&&!Oo?null:We.createElement("div",{className:"".concat(Pi,"-footer")},rr&&We.createElement("div",{className:"".concat(Pi,"-footer-extra")},rr),Oo)}function zu(ye,Ie,je){function Ue(dt,Wt){var Jt=dt.findIndex(function(Fn){return ur(ye,Ie,Fn,Wt,je)});if(Jt===-1)return[].concat(Je(dt),[Wt]);var rn=Je(dt);return rn.splice(Jt,1),rn}return Ue}var Ou=We.createContext(null);function Sa(){return We.useContext(Ou)}function Lu(ye,Ie){var je=ye.prefixCls,Ue=ye.generateConfig,dt=ye.locale,Wt=ye.disabledDate,Jt=ye.minDate,rn=ye.maxDate,Fn=ye.cellRender,Kn=ye.hoverValue,En=ye.hoverRangeValue,Ci=ye.onHover,Gi=ye.values,Pi=ye.pickerValue,Ai=ye.onSelect,Ni=ye.prevIcon,ki=ye.nextIcon,wn=ye.superPrevIcon,Gn=ye.superNextIcon,$n=Ue.getNow(),fi={now:$n,values:Gi,pickerValue:Pi,prefixCls:je,disabledDate:Wt,minDate:Jt,maxDate:rn,cellRender:Fn,hoverValue:Kn,hoverRangeValue:En,onHover:Ci,locale:dt,generateConfig:Ue,onSelect:Ai,panelType:Ie,prevIcon:Ni,nextIcon:ki,superPrevIcon:wn,superNextIcon:Gn};return[fi,$n]}var Fl=We.createContext({});function Il(ye){for(var Ie=ye.rowNum,je=ye.colNum,Ue=ye.baseDate,dt=ye.getCellDate,Wt=ye.prefixColumn,Jt=ye.rowClassName,rn=ye.titleFormat,Fn=ye.getCellText,Kn=ye.getCellClassName,En=ye.headerCells,Ci=ye.cellSelection,Gi=Ci===void 0?!0:Ci,Pi=ye.disabledDate,Ai=Sa(),Ni=Ai.prefixCls,ki=Ai.panelType,wn=Ai.now,Gn=Ai.disabledDate,$n=Ai.cellRender,fi=Ai.onHover,rr=Ai.hoverValue,$i=Ai.hoverRangeValue,ar=Ai.generateConfig,Et=Ai.values,lr=Ai.locale,Pr=Ai.onSelect,Or=Pi||Gn,Oo="".concat(Ni,"-cell"),Ur=We.useContext(Fl),wi=Ur.onCellDblClick,qi=function(Hr){return Et.some(function(Vr){return Vr&&ur(ar,lr,Hr,Vr,ki)})},Hi=[],Lr=0;Lr<Ie;Lr+=1){for(var Eo=[],vr=void 0,Qr=function(){var Hr=Lr*je+xr,Vr=dt(Ue,Hr),Aa=Or==null?void 0:Or(Vr,{type:ki});xr===0&&(vr=Vr,Wt&&Eo.push(Wt(vr)));var Ya=!1,bo=!1,co=!1;if(Gi&&$i){var vo=ct($i,2),Qo=vo[0],xa=vo[1];Ya=Nr(ar,Qo,xa,Vr),bo=ur(ar,lr,Vr,Qo,ki),co=ur(ar,lr,Vr,xa,ki)}var Oa=rn?Ho(Vr,{locale:lr,format:rn,generateConfig:ar}):void 0,no=We.createElement("div",{className:"".concat(Oo,"-inner")},Fn(Vr));Eo.push(We.createElement("td",{key:xr,title:Oa,className:Un()(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 ur(ar,lr,Vr,Rr,ki)})),"".concat(Oo,"-in-range"),Ya&&!bo&&!co),"".concat(Oo,"-range-start"),bo),"".concat(Oo,"-range-end"),co),"".concat(Ni,"-cell-selected"),!$i&&ki!=="week"&&qi(Vr)),Kn(Vr))),onClick:function(){Aa||Pr(Vr)},onDoubleClick:function(){!Aa&&wi&&wi()},onMouseEnter:function(){Aa||fi==null||fi(Vr)},onMouseLeave:function(){Aa||fi==null||fi(null)}},$n?$n(Vr,{prefixCls:Ni,originNode:no,today:wn,type:ki,locale:lr}):no))},xr=0;xr<je;xr+=1)Qr();Hi.push(We.createElement("tr",{key:Lr,className:Jt==null?void 0:Jt(vr)},Eo))}return We.createElement("div",{className:"".concat(Ni,"-body")},We.createElement("table",{className:"".concat(Ni,"-content")},En&&We.createElement("thead",null,We.createElement("tr",null,En)),We.createElement("tbody",null,Hi)))}var eu={visibility:"hidden"};function Cc(ye){var Ie=ye.offset,je=ye.superOffset,Ue=ye.onChange,dt=ye.getStart,Wt=ye.getEnd,Jt=ye.children,rn=Sa(),Fn=rn.prefixCls,Kn=rn.prevIcon,En=Kn===void 0?"\u2039":Kn,Ci=rn.nextIcon,Gi=Ci===void 0?"\u203A":Ci,Pi=rn.superPrevIcon,Ai=Pi===void 0?"\xAB":Pi,Ni=rn.superNextIcon,ki=Ni===void 0?"\xBB":Ni,wn=rn.minDate,Gn=rn.maxDate,$n=rn.generateConfig,fi=rn.locale,rr=rn.pickerValue,$i=rn.panelType,ar="".concat(Fn,"-header"),Et=We.useContext(Fl),lr=Et.hidePrev,Pr=Et.hideNext,Or=Et.hideHeader,Oo=We.useMemo(function(){if(!wn||!Ie||!Wt)return!1;var fr=Wt(Ie(-1,rr));return!io($n,fi,fr,wn,$i)},[wn,Ie,rr,Wt,$n,fi,$i]),Ur=We.useMemo(function(){if(!wn||!je||!Wt)return!1;var fr=Wt(je(-1,rr));return!io($n,fi,fr,wn,$i)},[wn,je,rr,Wt,$n,fi,$i]),wi=We.useMemo(function(){if(!Gn||!Ie||!dt)return!1;var fr=dt(Ie(1,rr));return!io($n,fi,Gn,fr,$i)},[Gn,Ie,rr,dt,$n,fi,$i]),qi=We.useMemo(function(){if(!Gn||!je||!dt)return!1;var fr=dt(je(1,rr));return!io($n,fi,Gn,fr,$i)},[Gn,je,rr,dt,$n,fi,$i]),Hi=function(Hr){Ie&&Ue(Ie(Hr,rr))},Lr=function(Hr){je&&Ue(je(Hr,rr))};if(Or)return null;var Eo="".concat(ar,"-prev-btn"),vr="".concat(ar,"-next-btn"),Qr="".concat(ar,"-super-prev-btn"),xr="".concat(ar,"-super-next-btn");return We.createElement("div",{className:ar},je&&We.createElement("button",{type:"button","aria-label":fi.previousYear,onClick:function(){return Lr(-1)},tabIndex:-1,className:Un()(Qr,Ur&&"".concat(Qr,"-disabled")),disabled:Ur,style:lr?eu:{}},Ai),Ie&&We.createElement("button",{type:"button","aria-label":fi.previousMonth,onClick:function(){return Hi(-1)},tabIndex:-1,className:Un()(Eo,Oo&&"".concat(Eo,"-disabled")),disabled:Oo,style:lr?eu:{}},En),We.createElement("div",{className:"".concat(ar,"-view")},Jt),Ie&&We.createElement("button",{type:"button","aria-label":fi.nextMonth,onClick:function(){return Hi(1)},tabIndex:-1,className:Un()(vr,wi&&"".concat(vr,"-disabled")),disabled:wi,style:Pr?eu:{}},Gi),je&&We.createElement("button",{type:"button","aria-label":fi.nextYear,onClick:function(){return Lr(1)},tabIndex:-1,className:Un()(xr,qi&&"".concat(xr,"-disabled")),disabled:qi,style:Pr?eu:{}},ki))}var du=Cc;function Ol(ye){var Ie=ye.prefixCls,je=ye.panelName,Ue=je===void 0?"date":je,dt=ye.locale,Wt=ye.generateConfig,Jt=ye.pickerValue,rn=ye.onPickerValueChange,Fn=ye.onModeChange,Kn=ye.mode,En=Kn===void 0?"date":Kn,Ci=ye.disabledDate,Gi=ye.onSelect,Pi=ye.onHover,Ai=ye.showWeek,Ni="".concat(Ie,"-").concat(Ue,"-panel"),ki="".concat(Ie,"-cell"),wn=En==="week",Gn=Lu(ye,En),$n=ct(Gn,2),fi=$n[0],rr=$n[1],$i=Wt.locale.getWeekFirstDay(dt.locale),ar=Wt.setDate(Jt,1),Et=va(dt.locale,Wt,ar),lr=Wt.getMonth(Jt),Pr=Ai===void 0?wn:Ai,Or=Pr?function(fr){var Hr=Ci==null?void 0:Ci(fr,{type:"week"});return We.createElement("td",{key:"week",className:Un()(ki,"".concat(ki,"-week"),(0,kn.Z)({},"".concat(ki,"-disabled"),Hr)),onClick:function(){Hr||Gi(fr)},onMouseEnter:function(){Hr||Pi==null||Pi(fr)},onMouseLeave:function(){Hr||Pi==null||Pi(null)}},We.createElement("div",{className:"".concat(ki,"-inner")},Wt.locale.getWeek(dt.locale,fr)))}:null,Oo=[],Ur=dt.shortWeekDays||(Wt.locale.getShortWeekDays?Wt.locale.getShortWeekDays(dt.locale):[]);Or&&Oo.push(We.createElement("th",{key:"empty"},We.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},dt.week)));for(var wi=0;wi<Fr;wi+=1)Oo.push(We.createElement("th",{key:wi},Ur[(wi+$i)%Fr]));var qi=function(Hr,Vr){return Wt.addDate(Hr,Vr)},Hi=function(Hr){return Ho(Hr,{locale:dt,format:dt.cellDateFormat,generateConfig:Wt})},Lr=function(Hr){var Vr=(0,kn.Z)((0,kn.Z)({},"".concat(Ie,"-cell-in-view"),Sn(Wt,Hr,Jt)),"".concat(Ie,"-cell-today"),or(Wt,Hr,rr));return Vr},Eo=dt.shortMonths||(Wt.locale.getShortMonths?Wt.locale.getShortMonths(dt.locale):[]),vr=We.createElement("button",{type:"button","aria-label":dt.yearSelect,key:"year",onClick:function(){Fn("year",Jt)},tabIndex:-1,className:"".concat(Ie,"-year-btn")},Ho(Jt,{locale:dt,format:dt.yearFormat,generateConfig:Wt})),Qr=We.createElement("button",{type:"button","aria-label":dt.monthSelect,key:"month",onClick:function(){Fn("month",Jt)},tabIndex:-1,className:"".concat(Ie,"-month-btn")},dt.monthFormat?Ho(Jt,{locale:dt,format:dt.monthFormat,generateConfig:Wt}):Eo[lr]),xr=dt.monthBeforeYear?[Qr,vr]:[vr,Qr];return We.createElement(Ou.Provider,{value:fi},We.createElement("div",{className:Un()(Ni,Ai&&"".concat(Ni,"-show-week"))},We.createElement(du,{offset:function(Hr){return Wt.addMonth(Jt,Hr)},superOffset:function(Hr){return Wt.addYear(Jt,Hr)},onChange:rn,getStart:function(Hr){return Wt.setDate(Hr,1)},getEnd:function(Hr){var Vr=Wt.setDate(Hr,1);return Vr=Wt.addMonth(Vr,1),Wt.addDate(Vr,-1)}},xr),We.createElement(Il,ve({titleFormat:dt.fieldDateFormat},ye,{colNum:Fr,rowNum:6,baseDate:Et,headerCells:Oo,getCellDate:qi,getCellText:Hi,getCellClassName:Lr,prefixColumn:Or,cellSelection:!wn}))))}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 dt=ye.getBoundingClientRect(),Wt=dt.width,Jt=dt.height;if(Wt||Jt)return!0}}return!1},Wc=1/3;function ah(ye,Ie){var je=We.useRef(!1),Ue=We.useRef(null),dt=We.useRef(null),Wt=function(){return je.current},Jt=function(){uo.cancel(Ue.current),je.current=!1},rn=We.useRef(),Fn=function(){var Ci=ye.current;if(dt.current=null,rn.current=0,Ci){var Gi=Ci.querySelector('[data-value="'.concat(Ie,'"]')),Pi=Ci.querySelector("li"),Ai=function Ni(){Jt(),je.current=!0,rn.current+=1;var ki=Ci.scrollTop,wn=Pi.offsetTop,Gn=Gi.offsetTop,$n=Gn-wn;if(Gn===0&&Gi!==Pi||!Cu(Ci)){rn.current<=5&&(Ue.current=uo(Ni));return}var fi=ki+($n-ki)*Wc,rr=Math.abs($n-fi);if(dt.current!==null&&dt.current<rr){Jt();return}if(dt.current=rr,rr<=1){Ci.scrollTop=$n,Jt();return}Ci.scrollTop=fi,Ue.current=uo(Ni)};Gi&&Pi&&Ai()}},Kn=Te(Fn);return[Kn,Jt,Wt]}var Hc=300;function Yh(ye){return ye.map(function(Ie){var je=Ie.value,Ue=Ie.label,dt=Ie.disabled;return[je,Ue,dt].join(",")}).join(";")}function Wu(ye){var Ie=ye.units,je=ye.value,Ue=ye.optionalValue,dt=ye.type,Wt=ye.onChange,Jt=ye.onHover,rn=ye.onDblClick,Fn=ye.changeOnScroll,Kn=Sa(),En=Kn.prefixCls,Ci=Kn.cellRender,Gi=Kn.now,Pi=Kn.locale,Ai="".concat(En,"-time-panel"),Ni="".concat(En,"-time-panel-cell"),ki=We.useRef(null),wn=We.useRef(),Gn=function(){clearTimeout(wn.current)},$n=ah(ki,je!=null?je:Ue),fi=ct($n,3),rr=fi[0],$i=fi[1],ar=fi[2];ft(function(){return rr(),Gn(),function(){$i(),Gn()}},[je,Ue,Yh(Ie)]);var Et=function(Or){Gn();var Oo=Or.target;!ar()&&Fn&&(wn.current=setTimeout(function(){var Ur=ki.current,wi=Ur.querySelector("li").offsetTop,qi=Array.from(Ur.querySelectorAll("li")),Hi=qi.map(function(xr){return xr.offsetTop-wi}),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&&Wt(Qr.value)},Hc))},lr="".concat(Ai,"-column");return We.createElement("ul",{className:lr,ref:ki,"data-type":dt,onScroll:Et},Ie.map(function(Pr){var Or=Pr.label,Oo=Pr.value,Ur=Pr.disabled,wi=We.createElement("div",{className:"".concat(Ni,"-inner")},Or);return We.createElement("li",{key:Oo,className:Un()(Ni,(0,kn.Z)((0,kn.Z)({},"".concat(Ni,"-selected"),je===Oo),"".concat(Ni,"-disabled"),Ur)),onClick:function(){Ur||Wt(Oo)},onDoubleClick:function(){!Ur&&rn&&rn()},onMouseEnter:function(){Jt(Oo)},onMouseLeave:function(){Jt(null)},"data-value":Oo},Ci?Ci(Oo,{prefixCls:En,originNode:wi,today:Gi,type:"time",subType:dt,locale:Pi}):wi)}))}function El(ye){return ye<12}function Hu(ye){var Ie=ye.showHour,je=ye.showMinute,Ue=ye.showSecond,dt=ye.showMillisecond,Wt=ye.use12Hours,Jt=ye.changeOnScroll,rn=Sa(),Fn=rn.prefixCls,Kn=rn.values,En=rn.generateConfig,Ci=rn.locale,Gi=rn.onSelect,Pi=rn.onHover,Ai=Pi===void 0?function(){}:Pi,Ni=rn.pickerValue,ki=(Kn==null?void 0:Kn[0])||null,wn=We.useContext(Fl),Gn=wn.onCellDblClick,$n=Rs(En,ye,ki),fi=ct($n,5),rr=fi[0],$i=fi[1],ar=fi[2],Et=fi[3],lr=fi[4],Pr=function(Wo){var os=ki&&En[Wo](ki),vs=Ni&&En[Wo](Ni);return[os,vs]},Or=Pr("getHour"),Oo=ct(Or,2),Ur=Oo[0],wi=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],Hr=Pr("getMillisecond"),Vr=ct(Hr,2),Aa=Vr[0],Ya=Vr[1],bo=Ur===null?null:El(Ur)?"am":"pm",co=We.useMemo(function(){return Wt?El(Ur)?$i.filter(function(jr){return El(jr.value)}):$i.filter(function(jr){return!El(jr.value)}):$i},[Ur,$i,Wt]),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=We.useMemo(function(){return ar(Qo)},[ar,Qo]),Oa=vo(xa,Lr),no=We.useMemo(function(){return Et(Qo,Oa)},[Et,Qo,Oa]),Rr=vo(no,xr),wa=We.useMemo(function(){return lr(Qo,Oa,Rr)},[lr,Qo,Oa,Rr]),Pa=vo(wa,Aa),gs=We.useMemo(function(){if(!Wt)return[];var jr=En.getNow(),Wo=En.setHour(jr,6),os=En.setHour(jr,18),vs=function(bl,ul){var Nu=Ci.cellMeridiemFormat;return Nu?Ho(bl,{generateConfig:En,locale:Ci,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,Wt,En,Ci]),Fa=function(Wo){var os=rr(Wo);Gi(os)},Ja=We.useMemo(function(){var jr=ki||Ni||En.getNow(),Wo=function(vs){return vs!=null};return Wo(Ur)?(jr=En.setHour(jr,Ur),jr=En.setMinute(jr,Lr),jr=En.setSecond(jr,xr),jr=En.setMillisecond(jr,Aa)):Wo(wi)?(jr=En.setHour(jr,wi),jr=En.setMinute(jr,Eo),jr=En.setSecond(jr,fr),jr=En.setMillisecond(jr,Ya)):Wo(Qo)&&(jr=En.setHour(jr,Qo),jr=En.setMinute(jr,Oa),jr=En.setSecond(jr,Rr),jr=En.setMillisecond(jr,Pa)),jr},[ki,Ni,Ur,Lr,xr,Aa,Qo,Oa,Rr,Pa,wi,Eo,fr,Ya,En]),Es=function(Wo,os){return Wo===null?null:En[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)?En.setHour(Ja,Ur-12):Wo==="pm"&&El(Ur)?En.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){Ai(Ma(Wo))},Go=function(Wo){Ai(Qa(Wo))},yl=function(Wo){Ai(Ks(Wo))},pa=function(Wo){Ai(Xs(Wo))},Lo=function(Wo){Ai(vl(Wo))},Uo={onDblClick:Gn,changeOnScroll:Jt};return We.createElement("div",{className:"".concat(Fn,"-content")},Ie&&We.createElement(Wu,ve({units:co,value:Ur,optionalValue:wi,type:"hour",onChange:hs,onHover:Za},Uo)),je&&We.createElement(Wu,ve({units:xa,value:Lr,optionalValue:Eo,type:"minute",onChange:Yl,onHover:Go},Uo)),Ue&&We.createElement(Wu,ve({units:no,value:xr,optionalValue:fr,type:"second",onChange:Js,onHover:yl},Uo)),dt&&We.createElement(Wu,ve({units:wa,value:Aa,optionalValue:Ya,type:"millisecond",onChange:ws,onHover:pa},Uo)),Wt&&We.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,dt=ye.generateConfig,Wt=ye.showTime,Jt=Wt||{},rn=Jt.format,Fn="".concat(Ie,"-time-panel"),Kn=Lu(ye,"time"),En=ct(Kn,1),Ci=En[0];return We.createElement(Ou.Provider,{value:Ci},We.createElement("div",{className:Un()(Fn)},We.createElement(du,null,je?Ho(je,{locale:Ue,format:rn,generateConfig:dt}):"\xA0"),We.createElement(Hu,Wt)))}function ku(ye){var Ie=ye.prefixCls,je=ye.generateConfig,Ue=ye.showTime,dt=ye.onSelect,Wt=ye.value,Jt=ye.pickerValue,rn=ye.onHover,Fn="".concat(Ie,"-datetime-panel"),Kn=Rs(je,Ue),En=ct(Kn,1),Ci=En[0],Gi=function(ki){return Wt?pi(je,ki,Wt):pi(je,ki,Jt)},Pi=function(ki){rn==null||rn(ki&&Gi(ki))},Ai=function(ki){var wn=Gi(ki);dt(Ci(wn,wn))};return We.createElement("div",{className:Fn},We.createElement(Ol,ve({},ye,{onSelect:Ai,onHover:Pi})),We.createElement(Iu,ye))}function Jc(ye){var Ie=ye.prefixCls,je=ye.locale,Ue=ye.generateConfig,dt=ye.pickerValue,Wt=ye.disabledDate,Jt=ye.onPickerValueChange,rn="".concat(Ie,"-decade-panel"),Fn=Lu(ye,"decade"),Kn=ct(Fn,1),En=Kn[0],Ci=function($i){var ar=Math.floor(Ue.getYear($i)/100)*100;return Ue.setYear($i,ar)},Gi=function($i){var ar=Ci($i);return Ue.addYear(ar,99)},Pi=Ci(dt),Ai=Gi(dt),Ni=Ue.addYear(Pi,-10),ki=function($i,ar){return Ue.addYear($i,ar*10)},wn=function($i){var ar=je.cellYearFormat,Et=Ho($i,{locale:je,format:ar,generateConfig:Ue}),lr=Ho(Ue.addYear($i,9),{locale:je,format:ar,generateConfig:Ue});return"".concat(Et,"-").concat(lr)},Gn=function($i){return(0,kn.Z)({},"".concat(Ie,"-cell-in-view"),$t(Ue,$i,Pi)||$t(Ue,$i,Ai)||Nr(Ue,Pi,Ai,$i))},$n=Wt?function(rr,$i){var ar=Ue.setDate(rr,1),Et=Ue.setMonth(ar,0),lr=Ue.setYear(Et,Math.floor(Ue.getYear(Et)/10)*10),Pr=Ue.addYear(lr,10),Or=Ue.addDate(Pr,-1);return Wt(lr,$i)&&Wt(Or,$i)}:null,fi="".concat(Ho(Pi,{locale:je,format:je.yearFormat,generateConfig:Ue}),"-").concat(Ho(Ai,{locale:je,format:je.yearFormat,generateConfig:Ue}));return We.createElement(Ou.Provider,{value:En},We.createElement("div",{className:rn},We.createElement(du,{superOffset:function($i){return Ue.addYear(dt,$i*100)},onChange:Jt,getStart:Ci,getEnd:Gi},fi),We.createElement(Il,ve({},ye,{disabledDate:$n,colNum:3,rowNum:4,baseDate:Ni,getCellDate:ki,getCellText:wn,getCellClassName:Gn}))))}function Sh(ye){var Ie=ye.prefixCls,je=ye.locale,Ue=ye.generateConfig,dt=ye.pickerValue,Wt=ye.disabledDate,Jt=ye.onPickerValueChange,rn=ye.onModeChange,Fn="".concat(Ie,"-month-panel"),Kn=Lu(ye,"month"),En=ct(Kn,1),Ci=En[0],Gi=Ue.setMonth(dt,0),Pi=je.shortMonths||(Ue.locale.getShortMonths?Ue.locale.getShortMonths(je.locale):[]),Ai=function(fi,rr){return Ue.addMonth(fi,rr)},Ni=function(fi){var rr=Ue.getMonth(fi);return je.monthFormat?Ho(fi,{locale:je,format:je.monthFormat,generateConfig:Ue}):Pi[rr]},ki=function(){return(0,kn.Z)({},"".concat(Ie,"-cell-in-view"),!0)},wn=Wt?function($n,fi){var rr=Ue.setDate($n,1),$i=Ue.setMonth(rr,Ue.getMonth(rr)+1),ar=Ue.addDate($i,-1);return Wt(rr,fi)&&Wt(ar,fi)}:null,Gn=We.createElement("button",{type:"button",key:"year","aria-label":je.yearSelect,onClick:function(){rn("year")},tabIndex:-1,className:"".concat(Ie,"-year-btn")},Ho(dt,{locale:je,format:je.yearFormat,generateConfig:Ue}));return We.createElement(Ou.Provider,{value:Ci},We.createElement("div",{className:Fn},We.createElement(du,{superOffset:function(fi){return Ue.addYear(dt,fi)},onChange:Jt,getStart:function(fi){return Ue.setMonth(fi,0)},getEnd:function(fi){return Ue.setMonth(fi,11)}},Gn),We.createElement(Il,ve({},ye,{disabledDate:wn,titleFormat:je.fieldMonthFormat,colNum:3,rowNum:4,baseDate:Gi,getCellDate:Ai,getCellText:Ni,getCellClassName:ki}))))}function ml(ye){var Ie=ye.prefixCls,je=ye.locale,Ue=ye.generateConfig,dt=ye.pickerValue,Wt=ye.onPickerValueChange,Jt=ye.onModeChange,rn="".concat(Ie,"-quarter-panel"),Fn=Lu(ye,"quarter"),Kn=ct(Fn,1),En=Kn[0],Ci=Ue.setMonth(dt,0),Gi=function(wn,Gn){return Ue.addMonth(wn,Gn*3)},Pi=function(wn){return Ho(wn,{locale:je,format:je.cellQuarterFormat,generateConfig:Ue})},Ai=function(){return(0,kn.Z)({},"".concat(Ie,"-cell-in-view"),!0)},Ni=We.createElement("button",{type:"button",key:"year","aria-label":je.yearSelect,onClick:function(){Jt("year")},tabIndex:-1,className:"".concat(Ie,"-year-btn")},Ho(dt,{locale:je,format:je.yearFormat,generateConfig:Ue}));return We.createElement(Ou.Provider,{value:En},We.createElement("div",{className:rn},We.createElement(du,{superOffset:function(wn){return Ue.addYear(dt,wn)},onChange:Wt,getStart:function(wn){return Ue.setMonth(wn,0)},getEnd:function(wn){return Ue.setMonth(wn,11)}},Ni),We.createElement(Il,ve({},ye,{titleFormat:je.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:Ci,getCellDate:Gi,getCellText:Pi,getCellClassName:Ai}))))}function sh(ye){var Ie=ye.prefixCls,je=ye.generateConfig,Ue=ye.locale,dt=ye.value,Wt=ye.hoverValue,Jt=ye.hoverRangeValue,rn=Ue.locale,Fn="".concat(Ie,"-week-panel-row"),Kn=function(Ci){var Gi={};if(Jt){var Pi=ct(Jt,2),Ai=Pi[0],Ni=Pi[1],ki=aa(je,rn,Ai,Ci),wn=aa(je,rn,Ni,Ci);Gi["".concat(Fn,"-range-start")]=ki,Gi["".concat(Fn,"-range-end")]=wn,Gi["".concat(Fn,"-range-hover")]=!ki&&!wn&&Nr(je,Ai,Ni,Ci)}return Wt&&(Gi["".concat(Fn,"-hover")]=Wt.some(function(Gn){return aa(je,rn,Ci,Gn)})),Un()(Fn,(0,kn.Z)({},"".concat(Fn,"-selected"),!Jt&&aa(je,rn,dt,Ci)),Gi)};return We.createElement(Ol,ve({},ye,{mode:"week",panelName:"week",rowClassName:Kn}))}function lh(ye){var Ie=ye.prefixCls,je=ye.locale,Ue=ye.generateConfig,dt=ye.pickerValue,Wt=ye.disabledDate,Jt=ye.onPickerValueChange,rn=ye.onModeChange,Fn="".concat(Ie,"-year-panel"),Kn=Lu(ye,"year"),En=ct(Kn,1),Ci=En[0],Gi=function(ar){var Et=Math.floor(Ue.getYear(ar)/10)*10;return Ue.setYear(ar,Et)},Pi=function(ar){var Et=Gi(ar);return Ue.addYear(Et,9)},Ai=Gi(dt),Ni=Pi(dt),ki=Ue.addYear(Ai,-1),wn=function(ar,Et){return Ue.addYear(ar,Et)},Gn=function(ar){return Ho(ar,{locale:je,format:je.cellYearFormat,generateConfig:Ue})},$n=function(ar){return(0,kn.Z)({},"".concat(Ie,"-cell-in-view"),_i(Ue,ar,Ai)||_i(Ue,ar,Ni)||Nr(Ue,Ai,Ni,ar))},fi=Wt?function($i,ar){var Et=Ue.setMonth($i,0),lr=Ue.setDate(Et,1),Pr=Ue.addYear(lr,1),Or=Ue.addDate(Pr,-1);return Wt(lr,ar)&&Wt(Or,ar)}:null,rr=We.createElement("button",{type:"button",key:"decade","aria-label":je.decadeSelect,onClick:function(){rn("decade")},tabIndex:-1,className:"".concat(Ie,"-decade-btn")},Ho(Ai,{locale:je,format:je.yearFormat,generateConfig:Ue}),"-",Ho(Ni,{locale:je,format:je.yearFormat,generateConfig:Ue}));return We.createElement(Ou.Provider,{value:Ci},We.createElement("div",{className:Fn},We.createElement(du,{superOffset:function(ar){return Ue.addYear(dt,ar*10)},onChange:Jt,getStart:Gi,getEnd:Pi},rr),We.createElement(Il,ve({},ye,{disabledDate:fi,titleFormat:je.fieldYearFormat,colNum:3,rowNum:4,baseDate:ki,getCellDate:wn,getCellText:Gn,getCellClassName:$n}))))}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,dt=ye.generateConfig,Wt=ye.direction,Jt=ye.prefixCls,rn=ye.tabIndex,Fn=rn===void 0?0:rn,Kn=ye.multiple,En=ye.defaultValue,Ci=ye.value,Gi=ye.onChange,Pi=ye.onSelect,Ai=ye.defaultPickerValue,Ni=ye.pickerValue,ki=ye.onPickerValueChange,wn=ye.mode,Gn=ye.onPanelChange,$n=ye.picker,fi=$n===void 0?"date":$n,rr=ye.showTime,$i=ye.hoverValue,ar=ye.hoverRangeValue,Et=ye.cellRender,lr=ye.dateRender,Pr=ye.monthCellRender,Or=ye.components,Oo=Or===void 0?{}:Or,Ur=ye.hideHeader,wi=((je=We.useContext(sa))===null||je===void 0?void 0:je.prefixCls)||Jt||"rc-picker",qi=We.useRef();We.useImperativeHandle(Ie,function(){return{nativeElement:qi.current}});var Hi=Ut(ye),Lr=ct(Hi,4),Eo=Lr[0],vr=Lr[1],Qr=Lr[2],xr=Lr[3],fr=ni(Ue,vr),Hr=fi==="date"&&rr?"datetime":fi,Vr=We.useMemo(function(){return zn(Hr,Qr,xr,Eo,fr)},[Hr,Qr,xr,Eo,fr]),Aa=dt.getNow(),Ya=jt(fi,{value:wn,postState:function(Lo){return Lo||"date"}}),bo=ct(Ya,2),co=bo[0],vo=bo[1],Qo=co==="date"&&Vr?"datetime":co,xa=zu(dt,Ue,Hr),Oa=jt(En,{value:Ci}),no=ct(Oa,2),Rr=no[0],wa=no[1],Pa=We.useMemo(function(){var pa=la(Rr).filter(function(Lo){return Lo});return Kn?pa:pa.slice(0,1)},[Rr,Kn]),gs=Te(function(pa){wa(pa),Gi&&(pa===null||Pa.length!==pa.length||Pa.some(function(Lo,Uo){return!ur(dt,Ue,Lo,pa[Uo],Hr)}))&&(Gi==null||Gi(Kn?pa:pa[0]))}),Fa=Te(function(pa){if(Pi==null||Pi(pa),co===fi){var Lo=Kn?xa(Pa,pa):[pa];gs(Lo)}}),Ja=jt(Ai||Pa[0]||Aa,{value:Ni}),Es=ct(Ja,2),Ma=Es[0],Qa=Es[1];We.useEffect(function(){Pa[0]&&!Ni&&Qa(Pa[0])},[Pa[0]]);var Ks=function(Lo,Uo){Gn==null||Gn(Lo||Ni,Uo||co)},Xs=function(Lo){var Uo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Qa(Lo),ki==null||ki(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!==fi){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[fi]||jr,vs=os.indexOf(co),Ps=os[vs+1];Ps&&vl(Ps,Lo)}},Yl=We.useMemo(function(){var pa,Lo;if(Array.isArray(ar)){var Uo=ct(ar,2);pa=Uo[0],Lo=Uo[1]}else pa=ar;return!pa&&!Lo?null:(pa=pa||Lo,Lo=Lo||pa,dt.isAfter(pa,Lo)?[Lo,pa]:[pa,Lo])},[ar,dt]),Js=ii(Et,lr,Pr),ws=Oo[Qo]||Nc[Qo]||Ol,bs=We.useContext(Fl),Za=We.useMemo(function(){return(0,pt.Z)((0,pt.Z)({},bs),{},{hideHeader:Ur})},[bs,Ur]),Go="".concat(wi,"-panel"),yl=ti(ye,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return We.createElement(Fl.Provider,{value:Za},We.createElement("div",{ref:qi,tabIndex:Fn,className:Un()(Go,(0,kn.Z)({},"".concat(Go,"-rtl"),Wt==="rtl"))},We.createElement(ws,ve({},yl,{showTime:Vr,prefixCls:wi,locale:fr,generateConfig:dt,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=We.memo(We.forwardRef(Ec)),Vl=tu;function xl(ye){var Ie=ye.picker,je=ye.multiplePanel,Ue=ye.pickerValue,dt=ye.onPickerValueChange,Wt=ye.needConfirm,Jt=ye.onSubmit,rn=ye.range,Fn=ye.hoverValue,Kn=We.useContext(sa),En=Kn.prefixCls,Ci=Kn.generateConfig,Gi=We.useCallback(function(Gn,$n){return kl(Ci,Ie,Gn,$n)},[Ci,Ie]),Pi=We.useMemo(function(){return Gi(Ue,1)},[Ue,Gi]),Ai=function($n){dt(Gi($n,-1))},Ni={onCellDblClick:function(){Wt&&Jt()}},ki=Ie==="time",wn=(0,pt.Z)((0,pt.Z)({},ye),{},{hoverValue:null,hoverRangeValue:null,hideHeader:ki});return rn?wn.hoverRangeValue=Fn:wn.hoverValue=Fn,je?We.createElement("div",{className:"".concat(En,"-panels")},We.createElement(Fl.Provider,{value:(0,pt.Z)((0,pt.Z)({},Ni),{},{hideNext:!0})},We.createElement(Vl,wn)),We.createElement(Fl.Provider,{value:(0,pt.Z)((0,pt.Z)({},Ni),{},{hidePrev:!0})},We.createElement(Vl,ve({},wn,{pickerValue:Pi,onPickerValueChange:Ai})))):We.createElement(Fl.Provider,{value:(0,pt.Z)({},Ni)},We.createElement(Vl,wn))}function Ts(ye){return typeof ye=="function"?ye():ye}function nu(ye){var Ie=ye.prefixCls,je=ye.presets,Ue=ye.onClick,dt=ye.onHover;return je.length?We.createElement("div",{className:"".concat(Ie,"-presets")},We.createElement("ul",null,je.map(function(Wt,Jt){var rn=Wt.label,Fn=Wt.value;return We.createElement("li",{key:Jt,onClick:function(){Ue(Ts(Fn))},onMouseEnter:function(){dt(Ts(Fn))},onMouseLeave:function(){dt(null)}},rn)}))):null}function ol(ye){var Ie=ye.panelRender,je=ye.internalMode,Ue=ye.picker,dt=ye.showNow,Wt=ye.range,Jt=ye.multiple,rn=ye.activeInfo,Fn=rn===void 0?[0,0,0]:rn,Kn=ye.presets,En=ye.onPresetHover,Ci=ye.onPresetSubmit,Gi=ye.onFocus,Pi=ye.onBlur,Ai=ye.onPanelMouseDown,Ni=ye.direction,ki=ye.value,wn=ye.onSelect,Gn=ye.isInvalid,$n=ye.defaultOpenValue,fi=ye.onOk,rr=ye.onSubmit,$i=We.useContext(sa),ar=$i.prefixCls,Et="".concat(ar,"-panel"),lr=Ni==="rtl",Pr=We.useRef(null),Or=We.useRef(null),Oo=We.useState(0),Ur=ct(Oo,2),wi=Ur[0],qi=Ur[1],Hi=We.useState(0),Lr=ct(Hi,2),Eo=Lr[0],vr=Lr[1],Qr=We.useState(0),xr=ct(Qr,2),fr=xr[0],Hr=xr[1],Vr=function(hs){hs.width&&qi(hs.width)},Aa=ct(Fn,3),Ya=Aa[0],bo=Aa[1],co=Aa[2],vo=We.useState(0),Qo=ct(vo,2),xa=Qo[0],Oa=Qo[1];We.useEffect(function(){Oa(10)},[Ya]),We.useEffect(function(){if(Wt&&Or.current){var vl,hs=((vl=Pr.current)===null||vl===void 0?void 0:vl.offsetWidth)||0,Yl=Or.current.getBoundingClientRect();if(!Yl.height||Yl.right<0){Oa(function(Za){return Math.max(0,Za-1)});return}var Js=(lr?bo-hs:Ya)-Yl.left;if(Hr(Js),wi&&wi<co){var ws=lr?Yl.right-(bo-hs+wi):Ya+hs-Yl.left-wi,bs=Math.max(0,ws);vr(bs)}else vr(0)}},[xa,lr,wi,Ya,bo,co,Wt]);function no(vl){return vl.filter(function(hs){return hs})}var Rr=We.useMemo(function(){return no(la(ki))},[ki]),wa=Ue==="time"&&!Rr.length,Pa=We.useMemo(function(){return wa?no([$n]):Rr},[wa,Rr,$n]),gs=wa?$n:Rr,Fa=We.useMemo(function(){return Pa.length?Pa.some(function(vl){return Gn(vl)}):!0},[Pa,Gn]),Ja=function(){wa&&wn($n),fi(),rr()},Es=We.createElement("div",{className:"".concat(ar,"-panel-layout")},We.createElement(nu,{prefixCls:ar,presets:Kn,onClick:Ci,onHover:En}),We.createElement("div",null,We.createElement(xl,ve({},ye,{value:gs})),We.createElement(Bu,ve({},ye,{showNow:Jt?!1:dt,invalid:Fa,onSubmit:Ja}))));Ie&&(Es=Ie(Es));var Ma="".concat(Et,"-container"),Qa="marginLeft",Ks="marginRight",Xs=We.createElement("div",{onMouseDown:Ai,tabIndex:-1,className:Un()(Ma,"".concat(ar,"-").concat(je,"-panel-container")),style:(0,kn.Z)((0,kn.Z)({},lr?Ks:Qa,Eo),lr?Qa:Ks,"auto"),onFocus:Gi,onBlur:Pi},Es);return Wt&&(Xs=We.createElement("div",{onMouseDown:Ai,ref:Or,className:Un()("".concat(ar,"-range-wrapper"),"".concat(ar,"-").concat(Ue,"-range-wrapper"))},We.createElement("div",{ref:Pr,className:"".concat(ar,"-range-arrow"),style:{left:fr}}),We.createElement(ou,{onResize:Vr},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,dt=Vs(ye,Ie);if(Object.getOwnPropertySymbols){var Wt=Object.getOwnPropertySymbols(ye);for(Ue=0;Ue<Wt.length;Ue++)je=Wt[Ue],Ie.indexOf(je)===-1&&{}.propertyIsEnumerable.call(ye,je)&&(dt[je]=ye[je])}return dt}function fu(ye,Ie){var je=ye.format,Ue=ye.maskFormat,dt=ye.generateConfig,Wt=ye.locale,Jt=ye.preserveInvalidOnBlur,rn=ye.inputReadOnly,Fn=ye.required,Kn=ye["aria-required"],En=ye.onSubmit,Ci=ye.onFocus,Gi=ye.onBlur,Pi=ye.onInputChange,Ai=ye.onInvalid,Ni=ye.open,ki=ye.onOpenChange,wn=ye.onKeyDown,Gn=ye.onChange,$n=ye.activeHelp,fi=ye.name,rr=ye.autoComplete,$i=ye.id,ar=ye.value,Et=ye.invalid,lr=ye.placeholder,Pr=ye.disabled,Or=ye.activeIndex,Oo=ye.allHelp,Ur=ye.picker,wi=function(fr,Hr){var Vr=dt.locale.parse(Wt.locale,fr,[Hr]);return Vr&&dt.isValidate(Vr)?Vr:null},qi=je[0],Hi=We.useCallback(function(xr){return Ho(xr,{locale:Wt,format:qi,generateConfig:dt})},[Wt,dt,qi]),Lr=We.useMemo(function(){return ar.map(Hi)},[ar,Hi]),Eo=We.useMemo(function(){var xr=Ur==="time"?8:10,fr=typeof qi=="function"?qi(dt.getNow()).length:qi.length;return Math.max(xr,fr)+2},[qi,Ur,dt]),vr=function(fr){for(var Hr=0;Hr<je.length;Hr+=1){var Vr=je[Hr];if(typeof Vr=="string"){var Aa=wi(fr,Vr);if(Aa)return Aa}}return!1},Qr=function(fr){function Hr(Ya){return fr!==void 0?Ya[fr]:Ya}var Vr=dr(ye,{aria:!0,data:!0}),Aa=(0,pt.Z)((0,pt.Z)({},Vr),{},{format:Ue,validateFormat:function(bo){return!!vr(bo)},preserveInvalidOnBlur:Jt,readOnly:rn,required:Fn,"aria-required":Kn,name:fi,autoComplete:rr,size:Eo,id:Hr($i),value:Hr(Lr)||"",invalid:Hr(Et),placeholder:Hr(lr),active:Or===fr,helped:Oo||$n&&Or===fr,disabled:Hr(Pr),onFocus:function(bo){Ci(bo,fr)},onBlur:function(bo){Gi(bo,fr)},onSubmit:En,onChange:function(bo){Pi();var co=vr(bo);if(co){Ai(!1,fr),Gn(co,fr);return}Ai(!!bo,fr)},onHelp:function(){ki(!0,{index:fr})},onKeyDown:function(bo){var co=!1;if(wn==null||wn(bo,function(){co=!0}),!bo.defaultPrevented&&!co)switch(bo.key){case"Escape":ki(!1,{index:fr});break;case"Enter":Ni||ki(!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 We.useMemo(function(){return ti(ye,Ru)},[ye])}var gu=["icon","type"],Ot=["onClear"];function di(ye){var Ie=ye.icon,je=ye.type,Ue=Wl(ye,gu),dt=We.useContext(sa),Wt=dt.prefixCls;return Ie?We.createElement("span",ve({className:"".concat(Wt,"-").concat(je)},Ue),Ie):null}function Kl(ye){var Ie=ye.onClear,je=Wl(ye,Ot);return We.createElement(di,ve({},je,{type:"clear",role:"button",onMouseDown:function(dt){dt.preventDefault()},onClick:function(dt){dt.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(rn){return"(".concat(rn,")")}).join("|"),Ue=new RegExp(je,"g");this.maskFormat=Ie.replace(Ue,function(rn){return mc.repeat(rn.length)});var dt=new RegExp("(".concat(pc.join("|"),")")),Wt=(Ie.split(dt)||[]).filter(function(rn){return rn}),Jt=0;this.cells=Wt.map(function(rn){var Fn=pc.includes(rn),Kn=Jt,En=Jt+rn.length;return Jt=En,{text:rn,mask:Fn,start:Kn,end:En}}),this.maskCells=this.cells.filter(function(rn){return rn.mask})}return Eu(ye,[{key:"getSelection",value:function(je){var Ue=this.maskCells[je]||{},dt=Ue.start,Wt=Ue.end;return[dt||0,Wt||0]}},{key:"match",value:function(je){for(var Ue=0;Ue<this.maskFormat.length;Ue+=1){var dt=this.maskFormat[Ue],Wt=je[Ue];if(!Wt||dt!==mc&&dt!==Wt)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(je){for(var Ue=Number.MAX_SAFE_INTEGER,dt=0,Wt=0;Wt<this.maskCells.length;Wt+=1){var Jt=this.maskCells[Wt],rn=Jt.start,Fn=Jt.end;if(je>=rn&&je<=Fn)return Wt;var Kn=Math.min(Math.abs(je-rn),Math.abs(je-Fn));Kn<Ue&&(Ue=Kn,dt=Wt)}return dt}}]),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=We.forwardRef(function(ye,Ie){var je=ye.active,Ue=ye.showActiveCls,dt=Ue===void 0?!0:Ue,Wt=ye.suffixIcon,Jt=ye.format,rn=ye.validateFormat,Fn=ye.onChange,Kn=ye.onInput,En=ye.helped,Ci=ye.onHelp,Gi=ye.onSubmit,Pi=ye.onKeyDown,Ai=ye.preserveInvalidOnBlur,Ni=Ai===void 0?!1:Ai,ki=ye.invalid,wn=ye.clearIcon,Gn=Wl(ye,mu),$n=ye.value,fi=ye.onFocus,rr=ye.onBlur,$i=ye.onMouseUp,ar=We.useContext(sa),Et=ar.prefixCls,lr=ar.input,Pr=lr===void 0?"input":lr,Or="".concat(Et,"-input"),Oo=We.useState(!1),Ur=ct(Oo,2),wi=Ur[0],qi=Ur[1],Hi=We.useState($n),Lr=ct(Hi,2),Eo=Lr[0],vr=Lr[1],Qr=We.useState(""),xr=ct(Qr,2),fr=xr[0],Hr=xr[1],Vr=We.useState(null),Aa=ct(Vr,2),Ya=Aa[0],bo=Aa[1],co=We.useState(null),vo=ct(co,2),Qo=vo[0],xa=vo[1],Oa=Eo||"";We.useEffect(function(){vr($n)},[$n]);var no=We.useRef(),Rr=We.useRef();We.useImperativeHandle(Ie,function(){return{nativeElement:no.current,inputElement:Rr.current,focus:function(Lo){Rr.current.focus(Lo)},blur:function(){Rr.current.blur()}}});var wa=We.useMemo(function(){return new wl(Jt||"")},[Jt]),Pa=We.useMemo(function(){return En?[0,0]:wa.getSelection(Ya)},[wa,Ya,En]),gs=ct(Pa,2),Fa=gs[0],Ja=gs[1],Es=function(Lo){Lo&&Lo!==Jt&&Lo!==$n&&Ci()},Ma=Te(function(pa){rn(pa)&&Fn(pa),vr(pa),Es(pa)}),Qa=function(Lo){if(!Jt){var Uo=Lo.target.value;Es(Uo),vr(Uo),Fn(Uo)}},Ks=function(Lo){var Uo=Lo.clipboardData.getData("text");rn(Uo)&&Ma(Uo)},Xs=We.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),Hr(""),fi(Lo)},Js=function(Lo){rr(Lo)},ws=function(Lo){qi(!1),Js(Lo)};Po(je,function(){!je&&!Ni&&vr($n)});var bs=function(Lo){Lo.key==="Enter"&&rn(Oa)&&Gi(),Pi==null||Pi(Lo)},Za=function(Lo){bs(Lo);var Uo=Lo.key,jr=null,Wo=null,os=Ja-Fa,vs=Jt.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&&(Hr(jr),jr.length>=os&&(Ps(1),Hr(""))),Wo!==null){var ul=Oa.slice(0,Fa)+da(Wo,os)+Oa.slice(Ja);Ma(ul.slice(0,Jt.length))}xa({})},Go=We.useRef();ft(function(){if(!(!wi||!Jt||Xs.current)){if(!wa.match(Oa)){Ma(Jt);return}return Rr.current.setSelectionRange(Fa,Ja),Go.current=uo(function(){Rr.current.setSelectionRange(Fa,Ja)}),function(){uo.cancel(Go.current)}}},[wa,Jt,wi,Oa,Ya,Fa,Ja,Qo,Ma]);var yl=Jt?{onFocus:Yl,onBlur:ws,onKeyDown:Za,onMouseDown:vl,onMouseUp:hs,onPaste:Ks}:{};return We.createElement("div",{ref:no,className:Un()(Or,(0,kn.Z)((0,kn.Z)({},"".concat(Or,"-active"),je&&dt),"".concat(Or,"-placeholder"),En))},We.createElement(Pr,ve({ref:Rr,"aria-invalid":ki,autoComplete:"off"},Gn,{onKeyDown:bs,onBlur:Js},yl,{value:Oa,onChange:Qa})),We.createElement(di,{type:"suffix",icon:Wt}),wn)}),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,dt=ye.clearIcon,Wt=ye.suffixIcon,Jt=ye.separator,rn=Jt===void 0?"~":Jt,Fn=ye.activeIndex,Kn=ye.activeHelp,En=ye.allHelp,Ci=ye.focused,Gi=ye.onFocus,Pi=ye.onBlur,Ai=ye.onKeyDown,Ni=ye.locale,ki=ye.generateConfig,wn=ye.placeholder,Gn=ye.className,$n=ye.style,fi=ye.onClick,rr=ye.onClear,$i=ye.value,ar=ye.onChange,Et=ye.onSubmit,lr=ye.onInputChange,Pr=ye.format,Or=ye.maskFormat,Oo=ye.preserveInvalidOnBlur,Ur=ye.onInvalid,wi=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,Hr=ye["aria-required"],Vr=ye.autoFocus,Aa=ye.tabIndex,Ya=Wl(ye,fs),bo=Lr==="rtl",co=We.useContext(sa),vo=co.prefixCls,Qo=We.useMemo(function(){if(typeof je=="string")return[je];var Js=je||{};return[Js.start,Js.end]},[je]),xa=We.useRef(),Oa=We.useRef(),no=We.useRef(),Rr=function(ws){var bs;return(bs=[Oa,no][ws])===null||bs===void 0?void 0:bs.current};We.useImperativeHandle(Ie,function(){return{nativeElement:xa.current,focus:function(ws){if((0,zt.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=We.useMemo(function(){return Array.isArray(wn)?wn:[wn,wn]},[wn]),gs=fu((0,pt.Z)((0,pt.Z)({},ye),{},{id:Qo,placeholder:Pa})),Fa=ct(gs,1),Ja=Fa[0],Es=We.useState({position:"absolute",width:0}),Ma=ct(Es,2),Qa=Ma[0],Ks=Ma[1],Xs=Te(function(){var Js=Rr(Fn);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])}});We.useEffect(function(){Xs()},[Fn]);var vl=dt&&($i[0]&&!wi[0]||$i[1]&&!wi[1]),hs=Vr&&!wi[0],Yl=Vr&&!hs&&!wi[1];return We.createElement(ou,{onResize:Xs},We.createElement("div",ve({},wa,{className:Un()(vo,"".concat(vo,"-range"),(0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)({},"".concat(vo,"-focused"),Ci),"".concat(vo,"-disabled"),wi.every(function(Js){return Js})),"".concat(vo,"-invalid"),qi.some(function(Js){return Js})),"".concat(vo,"-rtl"),bo),Gn),style:$n,ref:xa,onClick:fi,onMouseDown:function(ws){var bs=ws.target;bs!==Oa.current.inputElement&&bs!==no.current.inputElement&&ws.preventDefault(),xr==null||xr(ws)}}),Ue&&We.createElement("div",{className:"".concat(vo,"-prefix")},Ue),We.createElement(ll,ve({ref:Oa},Ja(0),{autoFocus:hs,tabIndex:Aa,"date-range":"start"})),We.createElement("div",{className:"".concat(vo,"-range-separator")},rn),We.createElement(ll,ve({ref:no},Ja(1),{autoFocus:Yl,tabIndex:Aa,"date-range":"end"})),We.createElement("div",{className:"".concat(vo,"-active-bar"),style:Qa}),We.createElement(di,{type:"suffix",icon:Wt}),vl&&We.createElement(Kl,{icon:dt,onClear:rr})))}var sl=We.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 tn=ye.disabled,Ct=ye.allowEmpty,bn=Gl(tn,!1),Ln=Gl(Ct,!1);return{disabled:bn,allowEmpty:Ln}}),Ue=ct(je,6),dt=Ue[0],Wt=Ue[1],Jt=Ue[2],rn=Ue[3],Fn=Ue[4],Kn=Ue[5],En=dt.prefixCls,Ci=dt.styles,Gi=dt.classNames,Pi=dt.defaultValue,Ai=dt.value,Ni=dt.needConfirm,ki=dt.onKeyDown,wn=dt.disabled,Gn=dt.allowEmpty,$n=dt.disabledDate,fi=dt.minDate,rr=dt.maxDate,$i=dt.defaultOpen,ar=dt.open,Et=dt.onOpenChange,lr=dt.locale,Pr=dt.generateConfig,Or=dt.picker,Oo=dt.showNow,Ur=dt.showToday,wi=dt.showTime,qi=dt.mode,Hi=dt.onPanelChange,Lr=dt.onCalendarChange,Eo=dt.onOk,vr=dt.defaultPickerValue,Qr=dt.pickerValue,xr=dt.onPickerValueChange,fr=dt.inputReadOnly,Hr=dt.suffixIcon,Vr=dt.onFocus,Aa=dt.onBlur,Ya=dt.presets,bo=dt.ranges,co=dt.components,vo=dt.cellRender,Qo=dt.dateRender,xa=dt.monthCellRender,Oa=dt.onClick,no=ka(Ie),Rr=Wn(ar,$i,wn,Et),wa=ct(Rr,2),Pa=wa[0],gs=wa[1],Fa=function(Ct,bn){(wn.some(function(Ln){return!Ln})||!Ct)&&gs(Ct,bn)},Ja=St(Pr,lr,rn,!0,!1,Pi,Ai,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(wn,Gn,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(Ct,bn){bs(!0),Vr==null||Vr(Ct,{range:tc(bn!=null?bn:Go)})},os=function(Ct,bn){bs(!1),Aa==null||Aa(Ct,{range:tc(bn!=null?bn:Go)})},vs=We.useMemo(function(){if(!wi)return null;var tn=wi.disabledTime,Ct=tn?function(bn){var Ln=tc(Go),er=pn(hs,Lo,Go);return tn(bn,Ln,{from:er})}:void 0;return(0,pt.Z)((0,pt.Z)({},wi),{},{disabledTime:Ct})},[wi,Go,hs,Lo]),Ps=jt([Or,Or],{value:qi}),bl=ct(Ps,2),ul=bl[0],Nu=bl[1],Nl=ul[Go]||Or,bu=Nl==="date"&&vs?"datetime":Nl,is=bu===Or&&bu!=="time",rl=gn(Or,Nl,Oo,Ur,!0),Zl=Rt(dt,Ma,Qa,Ks,Xs,wn,rn,ws,Pa,Kn),Du=ct(Zl,2),uh=Du[0],Zh=Du[1],Xh=ds(hs,wn,Lo,Pr,lr,$n),Jh=Yn(hs,Kn,Gn),Ld=ct(Jh,2),_f=Ld[0],Gd=Ld[1],wh=Ua(Pr,lr,hs,ul,Pa,Go,Wt,is,vr,Qr,vs==null?void 0:vs.defaultOpenValue,xr,fi,rr),Ud=ct(wh,2),kd=Ud[0],yf=Ud[1],ch=Te(function(tn,Ct,bn){var Ln=No(ul,Go,Ct);if((Ln[0]!==ul[0]||Ln[1]!==ul[1])&&Nu(Ln),Hi&&bn!==!1){var er=Je(hs);tn&&(er[Go]=tn),Hi(er,Ln)}}),Yd=function(Ct,bn){return No(hs,bn,Ct)},zs=function(Ct,bn){var Ln=hs;Ct&&(Ln=Yd(Ct,Go)),Uo(Go);var er=pa(Ln);Xs(Ln),uh(Go,er===null),er===null?Fa(!1,{force:!0}):bn||no.current.focus({index:er})},ld=function(Ct){var bn,Ln=Ct.target.getRootNode();if(!no.current.nativeElement.contains((bn=Ln.activeElement)!==null&&bn!==void 0?bn:document.activeElement)){var er=wn.findIndex(function(Cr){return!Cr});er>=0&&no.current.focus({index:er})}Fa(!0),Oa==null||Oa(Ct)},Bh=function(){Zh(null),Fa(!1,{force:!0})},Au=We.useState(null),Vu=ct(Au,2),Qh=Vu[0],qh=Vu[1],Ph=We.useState(null),ud=ct(Ph,2),cd=ud[0],Fd=ud[1],Zd=We.useMemo(function(){return cd||hs},[hs,cd]);We.useEffect(function(){Pa||Fd(null)},[Pa]);var Oh=We.useState([0,0,0]),$h=ct(Oh,2),Ih=$h[0],Al=$h[1],Xd=Cn(Ya,bo),Sf=function(Ct){Fd(Ct),qh("preset")},hd=function(Ct){var bn=Zh(Ct);bn&&Fa(!1,{force:!0})},dd=function(Ct){zs(Ct)},Nd=function(Ct){Fd(Ct?Yd(Ct,Go):null),qh("cell")},Vf=function(Ct){Fa(!0),Wo(Ct)},yu=function(){Za("panel")},Kf=function(Ct){var bn=No(hs,Go,Ct);Xs(bn),!Ni&&!Jt&&Wt===bu&&zs(Ct)},fd=function(){Fa(!1)},Ch=ii(vo,Qo,xa,tc(Go)),Dd=hs[Go]||null,ie=Te(function(tn){return Kn(tn,{activeIndex:Go})}),oe=We.useMemo(function(){var tn=dr(dt,!1),Ct=An(dt,[].concat(Je(Object.keys(tn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Ct},[dt]),he=We.createElement(ol,ve({},oe,{showNow:rl,showTime:vs,range:!0,multiplePanel:is,activeInfo:Ih,disabledDate:Xh,onFocus:Vf,onBlur:os,onPanelMouseDown:yu,picker:Or,mode:Nl,internalMode:bu,onPanelChange:ch,format:Fn,value:Dd,isInvalid:ie,onChange:null,onSelect:Kf,pickerValue:kd,defaultOpenValue:la(wi==null?void 0:wi.defaultOpenValue)[Go],onPickerValueChange:yf,hoverValue:Zd,onHover:Nd,needConfirm:Ni,onSubmit:zs,onOk:vl,presets:Xd,onPresetHover:Sf,onPresetSubmit:hd,onNow:dd,cellRender:Ch})),de=function(Ct,bn){var Ln=Yd(Ct,bn);Xs(Ln)},pe=function(){Za("input")},Fe=function(Ct,bn){var Ln=Lo.length,er=Lo[Ln-1];if(Ln&&er!==bn&&Ni&&!Gn[er]&&!jr(er)&&hs[er]){no.current.focus({index:er});return}Za("input"),Fa(!0,{inherit:!0}),Go!==bn&&Pa&&!Ni&&Jt&&zs(null,!0),yl(bn),Wo(Ct,bn)},Ve=function(Ct,bn){if(Fa(!1),!Ni&&Za()==="input"){var Ln=pa(hs);uh(Go,Ln===null)}os(Ct,bn)},rt=function(Ct,bn){Ct.key==="Tab"&&zs(null,!0),ki==null||ki(Ct,bn)},$e=We.useMemo(function(){return{prefixCls:En,locale:lr,generateConfig:Pr,button:co.button,input:co.input}},[En,lr,Pr,co.button,co.input]);if(ft(function(){Pa&&Go!==void 0&&ch(null,Or,!1)},[Pa,Go,Or]),ft(function(){var tn=Za();!Pa&&tn==="input"&&(Fa(!1),zs(null,!0)),!Pa&&Jt&&!Ni&&tn==="panel"&&(Fa(!0),zs())},[Pa]),0)var Pt;return We.createElement(sa.Provider,{value:$e},We.createElement(Ha,ve({},hn(dt),{popupElement:he,popupStyle:Ci.popup,popupClassName:Gi.popup,visible:Pa,onClose:fd,range:!0}),We.createElement(su,ve({},dt,{ref:no,suffixIcon:Hr,activeIndex:ws||Pa?Go:null,activeHelp:!!cd,allHelp:!!cd&&Qh==="preset",focused:ws,onFocus:Fe,onBlur:Ve,onKeyDown:rt,onSubmit:zs,value:Zd,maskFormat:Fn,onChange:de,onInputChange:pe,format:rn,inputReadOnly:fr,disabled:wn,open:Pa,onOpenChange:Fa,onClick:ld,onClear:Bh,invalid:_f,onInvalid:Gd,onActiveInfo:Al}))))}var vu=We.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 _r(ye,Ie){var je=Object.keys(ye);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(ye);Ie&&(Ue=Ue.filter(function(dt){return Object.getOwnPropertyDescriptor(ye,dt).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?_r(Object(je),!0).forEach(function(Ue){_c(ye,Ue,je[Ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ye,Object.getOwnPropertyDescriptors(je)):_r(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,dt,Wt,Jt,rn=[],Fn=!0,Kn=!1;try{if(Wt=(je=je.call(ye)).next,Ie===0){if(Object(je)!==je)return;Fn=!1}else for(;!(Fn=(Ue=Wt.call(je)).done)&&(rn.push(Ue.value),rn.length!==Ie);Fn=!0);}catch(En){Kn=!0,dt=En}finally{try{if(!Fn&&je.return!=null&&(Jt=je.return(),Object(Jt)!==Jt))return}finally{if(Kn)throw dt}}return rn}}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),dt,Wt;for(Wt=0;Wt<Ue.length;Wt++)dt=Ue[Wt],!(Ie.indexOf(dt)>=0)&&(je[dt]=ye[dt]);return je}function Zu(ye,Ie){if(ye==null)return{};var je=Dc(ye,Ie),Ue,dt;if(Object.getOwnPropertySymbols){var Wt=Object.getOwnPropertySymbols(ye);for(dt=0;dt<Wt.length;dt++)Ue=Wt[dt],!(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 We.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 Tt(ye,Ie){}function It(){Qe={}}function dn(ye,Ie,je){!Ie&&!Qe[je]&&(ye(!1,je),Qe[je]=!0)}function yn(ye,Ie){dn(Lt,ye,Ie)}function Tn(ye,Ie){dn(Tt,ye,Ie)}var li=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 Ei(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(dt){return dt});return Ue.length<=1?Ue[0]:function(dt){Ie.forEach(function(Wt){Ei(Wt,dt)})}}function Bi(){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,dt){return Ue.length===dt.length&&Ue.every(function(Wt,Jt){return Wt===dt[Jt]})})}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 Xi(ye){return ye instanceof HTMLElement||ye instanceof SVGElement}function Tr(ye){return Xi(ye)?ye:ye instanceof We.Component?vi.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(dt){return dt(Ue)})})}var na=new fa.Z(Ro),Yr=null,ko=null;function oo(ye,Ie){ro.has(ye)||(ro.set(ye,new Set),na.observe(ye)),ro.get(ye).add(Ie)}function oa(ye,Ie){ro.has(ye)&&(ro.get(ye).delete(Ie),ro.get(ye).size||(na.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,dt){return Ue.__proto__=dt,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 Be(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 Be(ye)}function it(ye){var Ie=Cs();return function(){var Ue=qs(ye),dt;if(Ie){var Wt=qs(this).constructor;dt=Reflect.construct(Ue,arguments,Wt)}else dt=Ue.apply(this,arguments);return ze(this,dt)}}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}(We.Component),an=We.createContext(null);function Ce(ye){var Ie=ye.children,je=ye.onBatchResize,Ue=We.useRef(0),dt=We.useRef([]),Wt=We.useContext(an),Jt=We.useCallback(function(rn,Fn,Kn){Ue.current+=1;var En=Ue.current;dt.current.push({size:rn,element:Fn,data:Kn}),Promise.resolve().then(function(){En===Ue.current&&(je==null||je(dt.current),dt.current=[])}),Wt==null||Wt(rn,Fn,Kn)},[je,Wt]);return We.createElement(an.Provider,{value:Jt},Ie)}function Le(ye,Ie){var je=ye.children,Ue=ye.disabled,dt=We.useRef(null),Wt=We.useRef(null),Jt=We.useContext(an),rn=typeof je=="function",Fn=rn?je(dt):je,Kn=We.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),En=!rn&&We.isValidElement(Fn)&&ir(Fn),Ci=En?Fn.ref:null,Gi=We.useMemo(function(){return gr(Ci,dt)},[Ci,dt]),Pi=function(){return Tr(dt.current)||Tr(Wt.current)};We.useImperativeHandle(Ie,function(){return Pi()});var Ai=We.useRef(ye);Ai.current=ye;var Ni=We.useCallback(function(ki){var wn=Ai.current,Gn=wn.onResize,$n=wn.data,fi=ki.getBoundingClientRect(),rr=fi.width,$i=fi.height,ar=ki.offsetWidth,Et=ki.offsetHeight,lr=Math.floor(rr),Pr=Math.floor($i);if(Kn.current.width!==lr||Kn.current.height!==Pr||Kn.current.offsetWidth!==ar||Kn.current.offsetHeight!==Et){var Or={width:lr,height:Pr,offsetWidth:ar,offsetHeight:Et};Kn.current=Or;var Oo=ar===Math.round(rr)?rr:ar,Ur=Et===Math.round($i)?$i:Et,wi=ju(ju({},Or),{},{offsetWidth:Oo,offsetHeight:Ur});Jt==null||Jt(wi,ki,$n),Gn&&Promise.resolve().then(function(){Gn(wi,ki)})}},[]);return We.useEffect(function(){var ki=Pi();return ki&&!Ue&&oo(ki,Ni),function(){return oa(ki,Ni)}},[dt.current,Ue]),We.createElement(vt,{ref:Wt},En?We.cloneElement(Fn,{ref:Gi}):Fn)}var _e=We.forwardRef(Le),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(dt,Wt){var Jt=(dt==null?void 0:dt.key)||"".concat(kt,"-").concat(Wt);return We.createElement(Ye,Ms({},ye,{key:Jt,ref:Wt===0?Ie:void 0}),dt)})}var nn=We.forwardRef(_t);nn.Collection=Ce;var Bn=nn;function vn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Mn=vn()?We.useLayoutEffect:We.useEffect,Xn=function(Ie,je){var Ue=We.useRef(!0);Mn(function(){return Ie(Ue.current)},je),Mn(function(){return Ue.current=!1,function(){Ue.current=!0}},[])},Qn=function(Ie,je){Xn(function(Ue){if(!Ue)return Ie()},je)},Wi=Xn,yi=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],oi=void 0;function Li(ye,Ie){var je=ye.prefixCls,Ue=ye.invalidate,dt=ye.item,Wt=ye.renderItem,Jt=ye.responsive,rn=ye.responsiveDisabled,Fn=ye.registerSize,Kn=ye.itemKey,En=ye.className,Ci=ye.style,Gi=ye.children,Pi=ye.display,Ai=ye.order,Ni=ye.component,ki=Ni===void 0?"div":Ni,wn=Zu(ye,yi),Gn=Jt&&!Pi;function $n(Et){Fn(Kn,Et)}We.useEffect(function(){return function(){$n(null)}},[]);var fi=Wt&&dt!==oi?Wt(dt,{index:Ai}):Gi,rr;Ue||(rr={opacity:Gn?0:1,height:Gn?0:oi,overflowY:Gn?"hidden":oi,order:Jt?Ai:oi,pointerEvents:Gn?"none":oi,position:Gn?"absolute":oi});var $i={};Gn&&($i["aria-hidden"]=!0);var ar=We.createElement(ki,Ms({className:Un()(!Ue&&je,En),style:ju(ju({},rr),Ci)},$i,wn,{ref:Ie}),fi);return Jt&&(ar=We.createElement(Bn,{onResize:function(lr){var Pr=lr.offsetWidth;$n(Pr)},disabled:rn},ar)),ar}var Ui=We.forwardRef(Li);Ui.displayName="Item";var sr=Ui;function to(ye){var Ie=We.useRef();Ie.current=ye;var je=We.useCallback(function(){for(var Ue,dt=arguments.length,Wt=new Array(dt),Jt=0;Jt<dt;Jt++)Wt[Jt]=arguments[Jt];return(Ue=Ie.current)===null||Ue===void 0?void 0:Ue.call.apply(Ue,[Ie].concat(Wt))},[]);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,bi=new Map;function Xr(ye){bi.delete(ye)}var mr=function(Ie){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;wo+=1;var Ue=wo;function dt(Wt){if(Wt===0)Xr(Ue),Ie();else{var Jt=br(function(){dt(Wt-1)});bi.set(Ue,Jt)}}return dt(je),Ue};mr.cancel=function(ye){var Ie=bi.get(ye);return Xr(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=We.useRef(null),Ie=function(Ue){ye.current||(ye.current=[],po(function(){(0,vi.unstable_batchedUpdates)(function(){ye.current.forEach(function(dt){dt()}),ye.current=null})})),ye.current.push(Ue)};return Ie}function To(ye,Ie){var je=We.useState(Ie),Ue=_u(je,2),dt=Ue[0],Wt=Ue[1],Jt=to(function(rn){ye(function(){Wt(rn)})});return[dt,Jt]}var mo=We.createContext(null),zo=["component"],Dr=["className"],Co=["className"],ca=function(Ie,je){var Ue=We.useContext(mo);if(!Ue){var dt=Ie.component,Wt=dt===void 0?"div":dt,Jt=Zu(Ie,zo);return We.createElement(Wt,Ms({},Jt,{ref:je}))}var rn=Ue.className,Fn=Zu(Ue,Dr),Kn=Ie.className,En=Zu(Ie,Co);return We.createElement(mo.Provider,{value:null},We.createElement(sr,Ms({ref:je,className:Un()(rn,Kn)},Fn,En)))},Da=We.forwardRef(ca);Da.displayName="RawItem";var ga=Da,Jr=["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,dt=ye.data,Wt=dt===void 0?[]:dt,Jt=ye.renderItem,rn=ye.renderRawItem,Fn=ye.itemKey,Kn=ye.itemWidth,En=Kn===void 0?10:Kn,Ci=ye.ssr,Gi=ye.style,Pi=ye.className,Ai=ye.maxCount,Ni=ye.renderRest,ki=ye.renderRawRest,wn=ye.suffix,Gn=ye.component,$n=Gn===void 0?"div":Gn,fi=ye.itemComponent,rr=ye.onVisibleChange,$i=Zu(ye,Jr),ar=Ci==="full",Et=Ar(),lr=To(Et,null),Pr=_u(lr,2),Or=Pr[0],Oo=Pr[1],Ur=Or||0,wi=To(Et,new Map),qi=_u(wi,2),Hi=qi[0],Lr=qi[1],Eo=To(Et,0),vr=_u(Eo,2),Qr=vr[0],xr=vr[1],fr=To(Et,0),Hr=_u(fr,2),Vr=Hr[0],Aa=Hr[1],Ya=To(Et,0),bo=_u(Ya,2),co=bo[0],vo=bo[1],Qo=(0,We.useState)(null),xa=_u(Qo,2),Oa=xa[0],no=xa[1],Rr=(0,We.useState)(null),wa=_u(Rr,2),Pa=wa[0],gs=wa[1],Fa=We.useMemo(function(){return Pa===null&&ar?Number.MAX_SAFE_INTEGER:Pa||0},[Pa,Or]),Ja=(0,We.useState)(!1),Es=_u(Ja,2),Ma=Es[0],Qa=Es[1],Ks="".concat(Ue,"-item"),Xs=Math.max(Qr,Vr),vl=Ai===Jo,hs=Wt.length&&vl,Yl=Ai===ua,Js=hs||typeof Ai=="number"&&Wt.length>Ai,ws=(0,We.useMemo)(function(){var is=Wt;return hs?Or===null&&ar?is=Wt:is=Wt.slice(0,Math.min(Wt.length,Ur/En)):typeof Ai=="number"&&(is=Wt.slice(0,Ai)),is},[Wt,En,Or,Ai,hs]),bs=(0,We.useMemo)(function(){return hs?Wt.slice(Fa+1):Wt.slice(ws.length)},[Wt,ws,hs,Fa]),Za=(0,We.useCallback)(function(is,rl){var Zl;return typeof Fn=="function"?Fn(is):(Zl=Fn&&(is==null?void 0:is[Fn]))!==null&&Zl!==void 0?Zl:rl},[Fn]),Go=(0,We.useCallback)(Jt||function(is){return is},[Jt]);function yl(is,rl,Zl){Pa===is&&(rl===void 0||rl===Oa)||(gs(is),Zl||(Qa(is<Wt.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(Vr)}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(ar&&(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+Vr);break}}wn&&Wo(0)+co>Ur&&no(null)}},[Ur,Hi,Vr,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:fi,invalidate:Yl},bl=rn?function(is,rl){var Zl=Za(is,rl);return We.createElement(mo.Provider,{key:Zl,value:ju(ju({},Ps),{},{order:rl,item:is,itemKey:Zl,registerSize:Lo,display:rl<=Fa})},rn(is,rl))}:function(is,rl){var Zl=Za(is,rl);return We.createElement(sr,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=Ni||Ea,Nl=ki?We.createElement(mo.Provider,{value:ju(ju({},Ps),ul)},ki(bs)):We.createElement(sr,Ms({},Ps,ul),typeof Nu=="function"?Nu(bs):Nu),bu=We.createElement($n,Ms({className:Un()(!Yl&&Ue,Pi),style:Gi,ref:Ie},$i),ws.map(bl),Js?Nl:null,wn&&We.createElement(sr,Ms({},Ps,{responsive:vl,responsiveDisabled:!hs,order:Fa,className:"".concat(Ks,"-suffix"),registerSize:jr,display:!0,style:vs}),wn));return vl?We.createElement(Bn,{onResize:pa,disabled:!hs},bu):bu}var ba=We.forwardRef(es);ba.displayName="Overflow",ba.Item=ga,ba.RESPONSIVE=Jo,ba.INVALIDATE=ua;var _o=ba,yo=_o;function ea(ye){var Ie=ye.prefixCls,je=ye.value,Ue=ye.onRemove,dt=ye.removeIcon,Wt=dt===void 0?"\xD7":dt,Jt=ye.formatDate,rn=ye.disabled,Fn=ye.maxTagCount,Kn=ye.placeholder,En="".concat(Ie,"-selector"),Ci="".concat(Ie,"-selection"),Gi="".concat(Ci,"-overflow");function Pi(ki,wn){return We.createElement("span",{className:Un()("".concat(Ci,"-item")),title:typeof ki=="string"?ki:null},We.createElement("span",{className:"".concat(Ci,"-item-content")},ki),!rn&&wn&&We.createElement("span",{onMouseDown:function($n){$n.preventDefault()},onClick:wn,className:"".concat(Ci,"-item-remove")},Wt))}function Ai(ki){var wn=Jt(ki),Gn=function(fi){fi&&fi.stopPropagation(),Ue(ki)};return Pi(wn,Gn)}function Ni(ki){var wn="+ ".concat(ki.length," ...");return Pi(wn)}return We.createElement("div",{className:En},We.createElement(yo,{prefixCls:Gi,data:je,renderItem:Ai,renderRest:Ni,itemKey:function(wn){return Jt(wn)},maxCount:Fn}),!je.length&&We.createElement("span",{className:"".concat(Ie,"-selection-placeholder")},Kn))}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,dt=ye.prefix,Wt=ye.clearIcon,Jt=ye.suffixIcon,rn=ye.activeHelp,Fn=ye.allHelp,Kn=ye.focused,En=ye.onFocus,Ci=ye.onBlur,Gi=ye.onKeyDown,Pi=ye.locale,Ai=ye.generateConfig,Ni=ye.placeholder,ki=ye.className,wn=ye.style,Gn=ye.onClick,$n=ye.onClear,fi=ye.internalPicker,rr=ye.value,$i=ye.onChange,ar=ye.onSubmit,Et=ye.onInputChange,lr=ye.multiple,Pr=ye.maxTagCount,Or=ye.format,Oo=ye.maskFormat,Ur=ye.preserveInvalidOnBlur,wi=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"],Hr=ye.autoFocus,Vr=ye.tabIndex,Aa=ye.removeIcon,Ya=Wl(ye,Ka),bo=Eo==="rtl",co=We.useContext(sa),vo=co.prefixCls,Qo=We.useRef(),xa=We.useRef();We.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&&!ur(Ai,Pi,Xs,Qa,fi)});$i(Ks),Ue||ar()},wa=fu((0,pt.Z)((0,pt.Z)({},ye),{},{onChange:no}),function(Ma){var Qa=Ma.valueTexts;return{value:Qa[0]||"",active:Kn}}),Pa=ct(wa,2),gs=Pa[0],Fa=Pa[1],Ja=!!(Wt&&rr.length&&!qi),Es=lr?We.createElement(We.Fragment,null,We.createElement(ea,{prefixCls:vo,value:rr,onRemove:Rr,formatDate:Fa,maxTagCount:Pr,disabled:qi,removeIcon:Aa,placeholder:Ni}),We.createElement("input",{className:"".concat(vo,"-multiple-input"),value:rr.map(Fa).join(","),ref:xa,readOnly:!0,autoFocus:Hr,tabIndex:Vr}),We.createElement(di,{type:"suffix",icon:Jt}),Ja&&We.createElement(Kl,{icon:Wt,onClear:$n})):We.createElement(ll,ve({ref:xa},gs(),{autoFocus:Hr,tabIndex:Vr,suffixIcon:Jt,clearIcon:Ja&&We.createElement(Kl,{icon:Wt,onClear:$n}),showActiveCls:!1}));return We.createElement("div",ve({},Oa,{className:Un()(vo,(0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)((0,kn.Z)({},"".concat(vo,"-multiple"),lr),"".concat(vo,"-focused"),Kn),"".concat(vo,"-disabled"),qi),"".concat(vo,"-invalid"),Hi),"".concat(vo,"-rtl"),bo),ki),style:wn,ref:Qo,onClick:Gn,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)}}),dt&&We.createElement("div",{className:"".concat(vo,"-prefix")},dt),Es)}var Zr=We.forwardRef(Vo),ho=Zr;function fo(ye,Ie){var je=Yo(ye),Ue=ct(je,6),dt=Ue[0],Wt=Ue[1],Jt=Ue[2],rn=Ue[3],Fn=Ue[4],Kn=Ue[5],En=dt,Ci=En.prefixCls,Gi=En.styles,Pi=En.classNames,Ai=En.order,Ni=En.defaultValue,ki=En.value,wn=En.needConfirm,Gn=En.onChange,$n=En.onKeyDown,fi=En.disabled,rr=En.disabledDate,$i=En.minDate,ar=En.maxDate,Et=En.defaultOpen,lr=En.open,Pr=En.onOpenChange,Or=En.locale,Oo=En.generateConfig,Ur=En.picker,wi=En.showNow,qi=En.showToday,Hi=En.showTime,Lr=En.mode,Eo=En.onPanelChange,vr=En.onCalendarChange,Qr=En.onOk,xr=En.multiple,fr=En.defaultPickerValue,Hr=En.pickerValue,Vr=En.onPickerValueChange,Aa=En.inputReadOnly,Ya=En.suffixIcon,bo=En.removeIcon,co=En.onFocus,vo=En.onBlur,Qo=En.presets,xa=En.components,Oa=En.cellRender,no=En.dateRender,Rr=En.monthCellRender,wa=En.onClick,Pa=ka(Ie);function gs(oe){return oe===null?null:xr?oe:oe[0]}var Fa=zu(Oo,Or,Wt),Ja=Wn(lr,Et,[fi],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,Or,rn,!1,Ai,Ni,ki,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([fi]),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=jt(Ur,{value:Lr}),bl=ct(Ps,2),ul=bl[0],Nu=bl[1],Nl=ul==="date"&&Hi?"datetime":ul,bu=gn(Ur,ul,wi,qi),is=Gn&&function(oe,he){Gn(gs(oe),gs(he))},rl=Rt((0,pt.Z)((0,pt.Z)({},dt),{},{onChange:is}),Yl,Js,ws,bs,[],rn,Lo,Ma,Kn),Zl=ct(rl,2),Du=Zl[1],uh=Yn(Go,Kn),Zh=ct(uh,2),Xh=Zh[0],Jh=Zh[1],Ld=We.useMemo(function(){return Xh.some(function(oe){return oe})},[Xh]),_f=function(he,de){if(Vr){var pe=(0,pt.Z)((0,pt.Z)({},de),{},{mode:de.mode[0]});delete pe.range,Vr(he[0],pe)}},Gd=Ua(Oo,Or,Go,[ul],Ma,Wo,Wt,!1,fr,Hr,la(Hi==null?void 0:Hi.defaultOpenValue),_f,$i,ar),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){!fi&&!Pa.current.nativeElement.contains(document.activeElement)&&Pa.current.focus(),Qa(!0),wa==null||wa(he)},zs=function(){Du(null),Qa(!1,{force:!0})},ld=We.useState(null),Bh=ct(ld,2),Au=Bh[0],Vu=Bh[1],Qh=We.useState(null),qh=ct(Qh,2),Ph=qh[0],ud=qh[1],cd=We.useMemo(function(){var oe=[Ph].concat(Je(Go)).filter(function(he){return he});return xr?oe:oe.slice(0,1)},[Go,Ph,xr]),Fd=We.useMemo(function(){return!xr&&Ph?[Ph]:Go.filter(function(oe){return oe})},[Go,Ph,xr]);We.useEffect(function(){Ma||ud(null)},[Ma]);var Zd=Cn(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),!wn&&!Jt&&Wt===Nl&&ch()}},hd=function(){Qa(!1)},dd=ii(Oa,no,Rr),Nd=We.useMemo(function(){var oe=dr(dt,!1),he=An(dt,[].concat(Je(Object.keys(oe)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,pt.Z)((0,pt.Z)({},he),{},{multiple:dt.multiple})},[dt]),Vf=We.createElement(ol,ve({},Nd,{showNow:bu,showTime:Hi,disabledDate:rr,onFocus:Xd,onBlur:vs,picker:Ur,mode:ul,internalMode:Nl,onPanelChange:yf,format:Fn,value:Go,isInvalid:Kn,onChange:null,onSelect:Sf,pickerValue:Ud,defaultOpenValue:Hi==null?void 0:Hi.defaultOpenValue,onPickerValueChange:kd,hoverValue:cd,onHover:Al,needConfirm:wn,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(),$n==null||$n(he,de)},ie=We.useMemo(function(){return{prefixCls:Ci,locale:Or,generateConfig:Oo,button:xa.button,input:xa.input}},[Ci,Or,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&&Jt&&!wn&&oe==="panel"&&ch()},[Ma]),We.createElement(sa.Provider,{value:ie},We.createElement(Ha,ve({},hn(dt),{popupElement:Vf,popupStyle:Gi.popup,popupClassName:Pi.popup,visible:Ma,onClose:hd}),We.createElement(ho,ve({},dt,{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:Fn,onChange:yu,onInputChange:Kf,internalPicker:Wt,format:rn,inputReadOnly:Aa,disabled:fi,open:Ma,onOpenChange:Qa,onClick:Yd,onClear:zs,invalid:Ld,onInvalid:function(he){Jh(he,0)}}))))}var Mr=We.forwardRef(fo),Gr=Mr,Do=Gr},50538:function(Dn,ei){"use strict";var be;var ve=typeof Symbol=="function"&&Symbol.for,ot=ve?Symbol.for("react.element"):60103,wt=ve?Symbol.for("react.portal"):60106,Qt=ve?Symbol.for("react.fragment"):60107,Nt=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,mt=ve?Symbol.for("react.async_mode"):60111,yt=ve?Symbol.for("react.concurrent_mode"):60111,Vt=ve?Symbol.for("react.forward_ref"):60112,ct=ve?Symbol.for("react.suspense"):60113,We=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 ot:switch(Pe=Pe.type,Pe){case mt:case yt:case Qt:case Re:case Nt: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 wt:return Ke}}}function xe(Pe){return me(Pe)===yt}be=mt,be=yt,be=pt,be=Je,be=ot,be=Vt,be=Qt,be=ne,be=Te,be=wt,be=Re,be=Nt,be=ct,be=function(Pe){return xe(Pe)||me(Pe)===mt},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===ot},be=function(Pe){return me(Pe)===Vt},ei.isFragment=function(Pe){return me(Pe)===Qt},be=function(Pe){return me(Pe)===ne},ei.isMemo=function(Pe){return me(Pe)===Te},be=function(Pe){return me(Pe)===wt},be=function(Pe){return me(Pe)===Re},be=function(Pe){return me(Pe)===Nt},be=function(Pe){return me(Pe)===ct},be=function(Pe){return typeof Pe=="string"||typeof Pe=="function"||Pe===Qt||Pe===yt||Pe===Re||Pe===Nt||Pe===ct||Pe===We||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(Dn,ei,be){"use strict";Dn.exports=be(50538)},36963:function(Dn,ei){"use strict";var be;var ve=Symbol.for("react.element"),ot=Symbol.for("react.portal"),wt=Symbol.for("react.fragment"),Qt=Symbol.for("react.strict_mode"),Nt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),mt=Symbol.for("react.forward_ref"),yt=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),We=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 wt:case Nt:case Qt:case yt:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case mt:case We:case ct:case Re:return ue;default:return se}}case ot:return se}}}be=Je,be=Re,be=ve,ei.ForwardRef=mt,be=wt,be=We,be=ct,be=ot,be=Nt,be=Qt,be=yt,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)===mt},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===We},ei.isMemo=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===ot},be=function(ue){return te(ue)===Nt},be=function(ue){return te(ue)===Qt},be=function(ue){return te(ue)===yt},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===wt||ue===Nt||ue===Qt||ue===yt||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===We||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===mt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},17756:function(Dn,ei,be){"use strict";Dn.exports=be(36963)},71032:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return me}});var ve=be(87462),ot=be(4942),wt=be(97685),Qt=be(45987),Nt=be(94184),Re=be.n(Nt),Je=be(21770),pt=be(15105),mt=be(64217),yt=be(67294);function Vt(xe,Pe){var Ke=xe.disabled,nt=xe.prefixCls,ft=xe.character,qe=xe.characterRender,at=xe.index,jt=xe.count,Mt=xe.value,bt=xe.allowHalf,Bt=xe.focused,Ht=xe.onHover,Jn=xe.onClick,qn=function(Zt){Ht(Zt,at)},sn=function(Zt){Jn(Zt,at)},Nn=function(Zt){Zt.keyCode===pt.Z.ENTER&&Jn(Zt,at)},lt=at+1,Ge=new Set([nt]);Mt===0&&at===0&&Bt?Ge.add("".concat(nt,"-focused")):bt&&Mt+.5>=lt&&Mt<lt?(Ge.add("".concat(nt,"-half")),Ge.add("".concat(nt,"-active")),Bt&&Ge.add("".concat(nt,"-focused"))):(lt<=Mt?Ge.add("".concat(nt,"-full")):Ge.add("".concat(nt,"-zero")),lt===Mt&&Bt&&Ge.add("".concat(nt,"-focused")));var Ne=typeof ft=="function"?ft(xe):ft,Rn=yt.createElement("li",{className:Re()(Array.from(Ge)),ref:Pe},yt.createElement("div",{onClick:Ke?null:sn,onKeyDown:Ke?null:Nn,onMouseMove:Ke?null:qn,role:"radio","aria-checked":Mt>at?"true":"false","aria-posinset":at+1,"aria-setsize":jt,tabIndex:Ke?-1:0},yt.createElement("div",{className:"".concat(nt,"-first")},Ne),yt.createElement("div",{className:"".concat(nt,"-second")},Ne)));return qe&&(Rn=qe(Rn,xe)),Rn}var ct=yt.forwardRef(Vt);function We(){var xe=yt.useRef({});function Pe(nt){return xe.current[nt]}function Ke(nt){return function(ft){xe.current[nt]=ft}}return[Pe,Ke]}function Te(xe){var Pe=xe.pageXOffset,Ke="scrollLeft";if(typeof Pe!="number"){var nt=xe.document;Pe=nt.documentElement[Ke],typeof Pe!="number"&&(Pe=nt.body[Ke])}return Pe}function ne(xe){var Pe,Ke,nt=xe.ownerDocument,ft=nt.body,qe=nt&&nt.documentElement,at=xe.getBoundingClientRect();return Pe=at.left,Ke=at.top,Pe-=qe.clientLeft||ft.clientLeft||0,Ke-=qe.clientTop||ft.clientTop||0,{left:Pe,top:Ke}}function te(xe){var Pe=ne(xe),Ke=xe.ownerDocument,nt=Ke.defaultView||Ke.parentWindow;return Pe.left+=Te(nt),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,nt=Ke===void 0?"rc-rate":Ke,ft=xe.className,qe=xe.defaultValue,at=xe.value,jt=xe.count,Mt=jt===void 0?5:jt,bt=xe.allowHalf,Bt=bt===void 0?!1:bt,Ht=xe.allowClear,Jn=Ht===void 0?!0:Ht,qn=xe.keyboard,sn=qn===void 0?!0:qn,Nn=xe.character,lt=Nn===void 0?"\u2605":Nn,Ge=xe.characterRender,Ne=xe.disabled,Rn=xe.direction,ai=Rn===void 0?"ltr":Rn,Zt=xe.tabIndex,ci=Zt===void 0?0:Zt,On=xe.autoFocus,Mi=xe.onHoverChange,Xt=xe.onChange,At=xe.onFocus,on=xe.onBlur,Si=xe.onKeyDown,Gt=xe.onMouseLeave,Xe=(0,Qt.Z)(xe,ue),ke=We(),Me=(0,wt.Z)(ke,2),He=Me[0],et=Me[1],Oe=yt.useRef(null),ut=function(){if(!Ne){var No;(No=Oe.current)===null||No===void 0||No.focus()}};yt.useImperativeHandle(Pe,function(){return{focus:ut,blur:function(){if(!Ne){var No;(No=Oe.current)===null||No===void 0||No.blur()}}}});var Vn=(0,Je.Z)(qe||0,{value:at}),jn=(0,wt.Z)(Vn,2),An=jn[0],Pn=jn[1],si=(0,Je.Z)(null),mn=(0,wt.Z)(si,2),Fi=mn[0],Vi=mn[1],Ir=function(No,ti){var Ee=ai==="rtl",pn=No+1;if(Bt){var hn=He(No),ii=te(hn),Yn=hn.clientWidth;(Ee&&ti-ii>Yn/2||!Ee&&ti-ii<Yn/2)&&(pn-=.5)}return pn},Qi=function(No){Pn(No),Xt==null||Xt(No)},Di=yt.useState(!1),$r=(0,wt.Z)(Di,2),Yi=$r[0],hr=$r[1],dr=function(){hr(!0),At==null||At()},kn=function(){hr(!1),on==null||on()},Ii=yt.useState(null),ra=(0,wt.Z)(Ii,2),Un=ra[0],Kr=ra[1],ia=function(No,ti){var Ee=Ir(ti,No.pageX);Ee!==Fi&&(Kr(Ee),Vi(null)),Mi==null||Mi(Ee)},sa=function(No){Ne||(Kr(null),Vi(null),Mi==null||Mi(void 0)),No&&(Gt==null||Gt(No))},Wa=function(No,ti){var Ee=Ir(ti,No.pageX),pn=!1;Jn&&(pn=Ee===An),sa(),Qi(pn?0:Ee),Vi(pn?Ee:null)},ma=function(No){var ti=No.keyCode,Ee=ai==="rtl",pn=Bt?.5:1;sn&&(ti===pt.Z.RIGHT&&An<Mt&&!Ee?(Qi(An+pn),No.preventDefault()):ti===pt.Z.LEFT&&An>0&&!Ee||ti===pt.Z.RIGHT&&An>0&&Ee?(Qi(An-pn),No.preventDefault()):ti===pt.Z.LEFT&&An<Mt&&Ee&&(Qi(An+pn),No.preventDefault())),Si==null||Si(No)};yt.useEffect(function(){On&&!Ne&&ut()},[]);var Ha=new Array(Mt).fill(0).map(function(la,No){return yt.createElement(ct,{ref:et(No),index:No,count:Mt,disabled:Ne,prefixCls:"".concat(nt,"-star"),allowHalf:Bt,value:Un===null?An:Un,onClick:Wa,onHover:ia,key:la||No,character:lt,characterRender:Ge,focused:Yi})}),da=Re()(nt,ft,(0,ot.Z)((0,ot.Z)({},"".concat(nt,"-disabled"),Ne),"".concat(nt,"-rtl"),ai==="rtl"));return yt.createElement("ul",(0,ve.Z)({className:da,onMouseLeave:sa,tabIndex:Ne?-1:ci,onFocus:Ne?null:dr,onBlur:Ne?null:kn,onKeyDown:Ne?null:ma,ref:Oe},(0,mt.Z)(Xe,{aria:!0,data:!0,attr:!0})),Ha)}var ge=yt.forwardRef(se),me=ge},58212:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return Nn}});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 Rn in Ne)Object.prototype.hasOwnProperty.call(Ne,Rn)&&(lt[Rn]=Ne[Rn])}return lt},ve.apply(this,arguments)}function ot(lt){"@babel/helpers - typeof";return ot=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},ot(lt)}function wt(lt,Ge){if(ot(lt)!=="object"||lt===null)return lt;var Ne=lt[Symbol.toPrimitive];if(Ne!==void 0){var Rn=Ne.call(lt,Ge||"default");if(ot(Rn)!=="object")return Rn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ge==="string"?String:Number)(lt)}function Qt(lt){var Ge=wt(lt,"string");return ot(Ge)==="symbol"?Ge:String(Ge)}function Nt(lt,Ge,Ne){return Ge=Qt(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"&<[Symbol.iterator]||lt["@@iterator"];if(Ne!=null){var Rn,ai,Zt,ci,On=[],Mi=!0,Xt=!1;try{if(Zt=(Ne=Ne.call(lt)).next,Ge===0){if(Object(Ne)!==Ne)return;Mi=!1}else for(;!(Mi=(Rn=Zt.call(Ne)).done)&&(On.push(Rn.value),On.length!==Ge);Mi=!0);}catch(At){Xt=!0,ai=At}finally{try{if(!Mi&&Ne.return!=null&&(ci=Ne.return(),Object(ci)!==ci))return}finally{if(Xt)throw ai}}return On}}function pt(lt,Ge){(Ge==null||Ge>lt.length)&&(Ge=lt.length);for(var Ne=0,Rn=new Array(Ge);Ne<Ge;Ne++)Rn[Ne]=lt[Ne];return Rn}function mt(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"&<.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 yt(){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)||mt(lt,Ge)||yt()}function ct(lt,Ge){if(lt==null)return{};var Ne={},Rn=Object.keys(lt),ai,Zt;for(Zt=0;Zt<Rn.length;Zt++)ai=Rn[Zt],!(Ge.indexOf(ai)>=0)&&(Ne[ai]=lt[ai]);return Ne}function We(lt,Ge){if(lt==null)return{};var Ne=ct(lt,Ge),Rn,ai;if(Object.getOwnPropertySymbols){var Zt=Object.getOwnPropertySymbols(lt);for(ai=0;ai<Zt.length;ai++)Rn=Zt[ai],!(Ge.indexOf(Rn)>=0)&&Object.prototype.propertyIsEnumerable.call(lt,Rn)&&(Ne[Rn]=lt[Rn])}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"&<[Symbol.iterator]||lt["@@iterator"];if(Ne!=null){var Rn,ai,Zt,ci,On=[],Mi=!0,Xt=!1;try{if(Zt=(Ne=Ne.call(lt)).next,Ge===0){if(Object(Ne)!==Ne)return;Mi=!1}else for(;!(Mi=(Rn=Zt.call(Ne)).done)&&(On.push(Rn.value),On.length!==Ge);Mi=!0);}catch(At){Xt=!0,ai=At}finally{try{if(!Mi&&Ne.return!=null&&(ci=Ne.return(),Object(ci)!==ci))return}finally{if(Xt)throw ai}}return On}}function ge(lt,Ge){(Ge==null||Ge>lt.length)&&(Ge=lt.length);for(var Ne=0,Rn=new Array(Ge);Ne<Ge;Ne++)Rn[Ne]=lt[Ne];return Rn}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"&<.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 Rn,ai=arguments.length,Zt=new Array(ai),ci=0;ci<ai;ci++)Zt[ci]=arguments[ci];return(Rn=Ge.current)===null||Rn===void 0?void 0:Rn.call.apply(Rn,[Ge].concat(Zt))},[]);return Ne}function nt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ft=nt()?Te.useLayoutEffect:Te.useEffect,qe=function(Ge,Ne){var Rn=Te.useRef(!0);ft(function(){return Ge(Rn.current)},Ne),ft(function(){return Rn.current=!1,function(){Rn.current=!0}},[])},at=function(Ge,Ne){qe(function(Rn){if(!Rn)return Ge()},Ne)},jt=null;function Mt(lt){var Ge=Te.useRef(!1),Ne=Te.useState(lt),Rn=Pe(Ne,2),ai=Rn[0],Zt=Rn[1];Te.useEffect(function(){return Ge.current=!1,function(){Ge.current=!0}},[]);function ci(On,Mi){Mi&&Ge.current||Zt(On)}return[ai,ci]}function bt(lt){return lt!==void 0}function Bt(lt,Ge){var Ne=Ge||{},Rn=Ne.defaultValue,ai=Ne.value,Zt=Ne.onChange,ci=Ne.postState,On=Mt(function(){return bt(ai)?ai:bt(Rn)?typeof Rn=="function"?Rn():Rn:typeof lt=="function"?lt():lt}),Mi=Pe(On,2),Xt=Mi[0],At=Mi[1],on=ai!==void 0?ai:Xt,Si=ci?ci(on):on,Gt=Ke(Zt),Xe=Mt([on]),ke=Pe(Xe,2),Me=ke[0],He=ke[1];at(function(){var Oe=Me[0];Xt!==Oe&&Gt(Xt,Oe)},[Me]),at(function(){bt(ai)||At(ai)},[ai]);var et=Ke(function(Oe,ut){At(Oe,ut),He([on],ut)});return[Si,et]}var Ht={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>=Ht.F1&&Ne<=Ht.F12)return!1;switch(Ne){case Ht.ALT:case Ht.CAPS_LOCK:case Ht.CONTEXT_MENU:case Ht.CTRL:case Ht.DOWN:case Ht.END:case Ht.ESC:case Ht.HOME:case Ht.INSERT:case Ht.LEFT:case Ht.MAC_FF_META:case Ht.META:case Ht.NUMLOCK:case Ht.NUM_CENTER:case Ht.PAGE_DOWN:case Ht.PAGE_UP:case Ht.PAUSE:case Ht.PRINT_SCREEN:case Ht.RIGHT:case Ht.SHIFT:case Ht.UP:case Ht.WIN_KEY:case Ht.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ge){if(Ge>=Ht.ZERO&&Ge<=Ht.NINE||Ge>=Ht.NUM_ZERO&&Ge<=Ht.NUM_MULTIPLY||Ge>=Ht.A&&Ge<=Ht.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ge===0)return!0;switch(Ge){case Ht.SPACE:case Ht.QUESTION_MARK:case Ht.NUM_PLUS:case Ht.NUM_MINUS:case Ht.NUM_PERIOD:case Ht.NUM_DIVISION:case Ht.SEMICOLON:case Ht.DASH:case Ht.EQUALS:case Ht.COMMA:case Ht.PERIOD:case Ht.SLASH:case Ht.APOSTROPHE:case Ht.SINGLE_QUOTE:case Ht.OPEN_SQUARE_BRACKET:case Ht.BACKSLASH:case Ht.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Jn=Ht,qn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],sn=Te.forwardRef(function(lt,Ge){var Ne,Rn=lt.prefixCls,ai=Rn===void 0?"rc-switch":Rn,Zt=lt.className,ci=lt.checked,On=lt.defaultChecked,Mi=lt.disabled,Xt=lt.loadingIcon,At=lt.checkedChildren,on=lt.unCheckedChildren,Si=lt.onClick,Gt=lt.onChange,Xe=lt.onKeyDown,ke=We(lt,qn),Me=Bt(!1,{value:ci,defaultValue:On}),He=Vt(Me,2),et=He[0],Oe=He[1];function ut(Pn,si){var mn=et;return Mi||(mn=Pn,Oe(mn),Gt==null||Gt(mn,si)),mn}function Vn(Pn){Pn.which===Jn.LEFT?ut(!1,Pn):Pn.which===Jn.RIGHT&&ut(!0,Pn),Xe==null||Xe(Pn)}function jn(Pn){var si=ut(!et,Pn);Si==null||Si(si,Pn)}var An=te()(ai,Zt,(Ne={},Nt(Ne,"".concat(ai,"-checked"),et),Nt(Ne,"".concat(ai,"-disabled"),Mi),Ne));return Te.createElement("button",ve({},ke,{type:"button",role:"switch","aria-checked":et,disabled:Mi,className:An,ref:Ge,onKeyDown:Vn,onClick:jn}),Xt,Te.createElement("span",{className:"".concat(ai,"-inner")},Te.createElement("span",{className:"".concat(ai,"-inner-checked")},At),Te.createElement("span",{className:"".concat(ai,"-inner-unchecked")},on)))});sn.displayName="Switch";var Nn=sn},45233:function(Dn,ei,be){"use strict";be.d(ei,{R:function(){return ot},w:function(){return ve}});var ve={},ot="rc-table-internal-hook"},54768:function(Dn,ei,be){"use strict";be.d(ei,{L:function(){return ue},Z:function(){return Pe}});var ve=be(97685),ot=be(4942),wt=be(74902),Qt=be(71002),Nt=be(1413),Re=be(45987),Je=be(63295),pt=be(67294);function mt(Ke){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=[];return pt.Children.forEach(Ke,function(qe){qe==null&&!nt.keepEmpty||(Array.isArray(qe)?ft=ft.concat(mt(qe)):(0,Je.Z)(qe)&&qe.props?ft=ft.concat(mt(qe.props.children,nt)):ft.push(qe))}),ft}var yt=be(40830),Vt=be(45233),ct=be(62978);function We(Ke){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof nt=="number"?nt:nt.endsWith("%")?Ke*parseFloat(nt)/100:null}function Te(Ke,nt,ft){return pt.useMemo(function(){if(nt&&nt>0){var qe=0,at=0;Ke.forEach(function(sn){var Nn=We(nt,sn.width);Nn?qe+=Nn:at+=1});var jt=Math.max(nt,ft),Mt=Math.max(jt-qe,at),bt=at,Bt=Mt/at,Ht=0,Jn=Ke.map(function(sn){var Nn=(0,Nt.Z)({},sn),lt=We(nt,Nn.width);if(lt)Nn.width=lt;else{var Ge=Math.floor(Bt);Nn.width=bt===1?Mt:Ge,Mt-=Ge,bt-=1}return Ht+=Nn.width,Nn});if(Ht<jt){var qn=jt/Ht;Mt=jt,Jn.forEach(function(sn,Nn){var lt=Math.floor(sn.width*qn);sn.width=Nn===Jn.length-1?Mt:lt,Mt-=lt})}return[Jn,Math.max(Ht,jt)]}return[Ke,nt]},[Ke,nt,ft])}var ne=["children"],te=["fixed"];function ue(Ke){return mt(Ke).filter(function(nt){return pt.isValidElement(nt)}).map(function(nt){var ft=nt.key,qe=nt.props,at=qe.children,jt=(0,Re.Z)(qe,ne),Mt=(0,Nt.Z)({key:ft},jt);return at&&(Mt.children=ue(at)),Mt})}function se(Ke){return Ke.filter(function(nt){return nt&&(0,Qt.Z)(nt)==="object"&&!nt.hidden}).map(function(nt){var ft=nt.children;return ft&&ft.length>0?(0,Nt.Z)((0,Nt.Z)({},nt),{},{children:se(ft)}):nt})}function ge(Ke){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ke.filter(function(ft){return ft&&(0,Qt.Z)(ft)==="object"}).reduce(function(ft,qe,at){var jt=qe.fixed,Mt=jt===!0?"left":jt,bt="".concat(nt,"-").concat(at),Bt=qe.children;return Bt&&Bt.length>0?[].concat((0,wt.Z)(ft),(0,wt.Z)(ge(Bt,bt).map(function(Ht){return(0,Nt.Z)({fixed:Mt},Ht)}))):[].concat((0,wt.Z)(ft),[(0,Nt.Z)((0,Nt.Z)({key:bt},qe),{},{fixed:Mt})])},[])}function me(Ke){return Ke.map(function(nt){var ft=nt.fixed,qe=(0,Re.Z)(nt,te),at=ft;return ft==="left"?at="right":ft==="right"&&(at="left"),(0,Nt.Z)({fixed:at},qe)})}function xe(Ke,nt){var ft=Ke.prefixCls,qe=Ke.columns,at=Ke.children,jt=Ke.expandable,Mt=Ke.expandedKeys,bt=Ke.columnTitle,Bt=Ke.getRowKey,Ht=Ke.onTriggerExpand,Jn=Ke.expandIcon,qn=Ke.rowExpandable,sn=Ke.expandIconColumnIndex,Nn=Ke.direction,lt=Ke.expandRowByClick,Ge=Ke.columnWidth,Ne=Ke.fixed,Rn=Ke.scrollWidth,ai=Ke.clientWidth,Zt=pt.useMemo(function(){var Xe=qe||ue(at)||[];return se(Xe.slice())},[qe,at]),ci=pt.useMemo(function(){if(jt){var Xe=Zt.slice();if(!Xe.includes(Vt.w)){var ke=sn||0;ke>=0&&(ke||Ne==="left"||!Ne)&&Xe.splice(ke,0,Vt.w),Ne==="right"&&Xe.splice(Zt.length,0,Vt.w)}var Me=Xe.indexOf(Vt.w);Xe=Xe.filter(function(ut,Vn){return ut!==Vt.w||Vn===Me});var He=Zt[Me],et;Ne?et=Ne:et=He?He.fixed:null;var Oe=(0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)({},ct.v,{className:"".concat(ft,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",bt),"fixed",et),"className","".concat(ft,"-row-expand-icon-cell")),"width",Ge),"render",function(Vn,jn,An){var Pn=Bt(jn,An),si=Mt.has(Pn),mn=qn?qn(jn):!0,Fi=Jn({prefixCls:ft,expanded:si,expandable:mn,record:jn,onExpand:Ht});return lt?pt.createElement("span",{onClick:function(Ir){return Ir.stopPropagation()}},Fi):Fi});return Xe.map(function(ut){return ut===Vt.w?Oe:ut})}return Zt.filter(function(ut){return ut!==Vt.w})},[jt,Zt,Bt,Mt,Jn,Nn]),On=pt.useMemo(function(){var Xe=ci;return nt&&(Xe=nt(Xe)),Xe.length||(Xe=[{render:function(){return null}}]),Xe},[nt,ci,Nn]),Mi=pt.useMemo(function(){return Nn==="rtl"?me(ge(On)):ge(On)},[On,Nn,Rn]),Xt=pt.useMemo(function(){for(var Xe=-1,ke=Mi.length-1;ke>=0;ke-=1){var Me=Mi[ke].fixed;if(Me==="left"||Me===!0){Xe=ke;break}}if(Xe>=0)for(var He=0;He<=Xe;He+=1){var et=Mi[He].fixed;if(et!=="left"&&et!==!0)return!0}var Oe=Mi.findIndex(function(jn){var An=jn.fixed;return An==="right"});if(Oe>=0)for(var ut=Oe;ut<Mi.length;ut+=1){var Vn=Mi[ut].fixed;if(Vn!=="right")return!0}return!1},[Mi]),At=Te(Mi,Rn,ai),on=(0,ve.Z)(At,2),Si=on[0],Gt=on[1];return[On,Si,Gt,Xt]}var Pe=xe},29104:function(Dn,ei,be){"use strict";be.d(ei,{w2:function(){return ve.w},vP:function(){return Er.v},RQ:function(){return ve.R},ER:function(){return ti},Q$:function(){return il},TN:function(){return Zu}});var ve=be(45233),ot=be(97685),wt=be(66680),Qt=be(8410),Nt=be(91881),Re=be(67294),Je=be(73935);function pt(Qe){var Lt=Re.createContext(void 0),Tt=function(dn){var yn=dn.value,Tn=dn.children,li=Re.useRef(yn);li.current=yn;var ji=Re.useState(function(){return{getValue:function(){return li.current},listeners:new Set}}),Ei=(0,ot.Z)(ji,1),gr=Ei[0];return(0,Qt.Z)(function(){(0,Je.unstable_batchedUpdates)(function(){gr.listeners.forEach(function(Bi){Bi(yn)})})},[yn]),Re.createElement(Lt.Provider,{value:gr},Tn)};return{Context:Lt,Provider:Tt,defaultValue:Qe}}function mt(Qe,Lt){var Tt=(0,wt.Z)(typeof Lt=="function"?Lt:function(Bi){if(Lt===void 0)return Bi;if(!Array.isArray(Lt))return Bi[Lt];var ir={};return Lt.forEach(function(Xi){ir[Xi]=Bi[Xi]}),ir}),It=Re.useContext(Qe==null?void 0:Qe.Context),dn=It||{},yn=dn.listeners,Tn=dn.getValue,li=Re.useRef();li.current=Tt(It?Tn():Qe==null?void 0:Qe.defaultValue);var ji=Re.useState({}),Ei=(0,ot.Z)(ji,2),gr=Ei[1];return(0,Qt.Z)(function(){if(!It)return;function Bi(ir){var Xi=Tt(ir);(0,Nt.Z)(li.current,Xi,!0)||gr({})}return yn.add(Bi),function(){yn.delete(Bi)}},[It]),li.current}var yt=be(87462),Vt=be(42550);function ct(){var Qe=Re.createContext(null);function Lt(){return Re.useContext(Qe)}function Tt(dn,yn){var Tn=(0,Vt.Yr)(dn),li=function(Ei,gr){var Bi=Tn?{ref:gr}:{},ir=Re.useRef(0),Xi=Re.useRef(Ei),Tr=Lt();return Tr!==null?Re.createElement(dn,(0,yt.Z)({},Ei,Bi)):((!yn||yn(Xi.current,Ei))&&(ir.current+=1),Xi.current=Ei,Re.createElement(Qe.Provider,{value:ir.current},Re.createElement(dn,(0,yt.Z)({},Ei,Bi))))};return Tn?Re.forwardRef(li):li}function It(dn,yn){var Tn=(0,Vt.Yr)(dn),li=function(Ei,gr){var Bi=Tn?{ref:gr}:{};return Lt(),Re.createElement(dn,(0,yt.Z)({},Ei,Bi))};return Tn?Re.memo(Re.forwardRef(li),yn):Re.memo(li,yn)}return{makeImmutable:Tt,responseImmutable:It,useImmutableMark:Lt}}var We=ct(),Te=We.makeImmutable,ne=We.responseImmutable,te=We.useImmutableMark,ue=ct(),se=ue.makeImmutable,ge=ue.responseImmutable,me=ue.useImmutableMark,xe=pt(),Pe=xe;function Ke(Qe,Lt){var Tt=React.useRef(0);Tt.current+=1;var It=React.useRef(Qe),dn=[];Object.keys(Qe||{}).map(function(Tn){var li;(Qe==null?void 0:Qe[Tn])!==((li=It.current)===null||li===void 0?void 0:li[Tn])&&dn.push(Tn)}),It.current=Qe;var yn=React.useRef([]);return dn.length&&(yn.current=dn),React.useDebugValue(Tt.current),React.useDebugValue(yn.current.join(", ")),Lt&&console.log("".concat(Lt,":"),Tt.current,yn.current),Tt.current}var nt=null,ft=null,qe=be(71002),at=be(1413),jt=be(4942),Mt=be(94184),bt=be.n(Mt);function Bt(Qe,Lt,Tt){var It=Re.useRef({});return(!("value"in It.current)||Tt(It.current.condition,Lt))&&(It.current.value=Qe(),It.current.condition=Lt),It.current.value}var Ht=be(40830);function Jn(Qe,Lt){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,It=new Set;function dn(yn,Tn){var li=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ji=It.has(yn);if((0,Ht.ZP)(!ji,"Warning: There may be circular references"),ji)return!1;if(yn===Tn)return!0;if(Tt&&li>1)return!1;It.add(yn);var Ei=li+1;if(Array.isArray(yn)){if(!Array.isArray(Tn)||yn.length!==Tn.length)return!1;for(var gr=0;gr<yn.length;gr++)if(!dn(yn[gr],Tn[gr],Ei))return!1;return!0}if(yn&&Tn&&(0,qe.Z)(yn)==="object"&&(0,qe.Z)(Tn)==="object"){var Bi=Object.keys(yn);return Bi.length!==Object.keys(Tn).length?!1:Bi.every(function(ir){return dn(yn[ir],Tn[ir],Ei)})}return!1}return dn(Qe,Lt)}var qn=Jn;function sn(Qe,Lt){for(var Tt=Qe,It=0;It<Lt.length;It+=1){if(Tt==null)return;Tt=Tt[Lt[It]]}return Tt}var Nn=Re.createContext({renderWithProps:!1}),lt=Nn,Ge="RC_TABLE_KEY";function Ne(Qe){return Qe==null?[]:Array.isArray(Qe)?Qe:[Qe]}function Rn(Qe){var Lt=[],Tt={};return Qe.forEach(function(It){for(var dn=It||{},yn=dn.key,Tn=dn.dataIndex,li=yn||Ne(Tn).join("-")||Ge;Tt[li];)li="".concat(li,"_next");Tt[li]=!0,Lt.push(li)}),Lt}function ai(Qe){return Qe!=null}function Zt(Qe){return typeof Qe=="number"&&!Number.isNaN(Qe)}function ci(Qe){return Qe&&(0,qe.Z)(Qe)==="object"&&!Array.isArray(Qe)&&!Re.isValidElement(Qe)}function On(Qe,Lt,Tt,It,dn,yn){var Tn=Re.useContext(lt),li=me(),ji=Bt(function(){if(ai(It))return[It];var Ei=Lt==null||Lt===""?[]:Array.isArray(Lt)?Lt:[Lt],gr=sn(Qe,Ei),Bi=gr,ir=void 0;if(dn){var Xi=dn(gr,Qe,Tt);ci(Xi)?(Bi=Xi.children,ir=Xi.props,Tn.renderWithProps=!0):Bi=Xi}return[Bi,ir]},[li,Qe,It,Lt,dn,Tt],function(Ei,gr){if(yn){var Bi=(0,ot.Z)(Ei,2),ir=Bi[1],Xi=(0,ot.Z)(gr,2),Tr=Xi[1];return yn(Tr,ir)}return Tn.renderWithProps?!0:!qn(Ei,gr,!0)});return ji}function Mi(Qe,Lt,Tt,It){var dn=Qe+Lt-1;return Qe<=It&&dn>=Tt}function Xt(Qe,Lt){return mt(Pe,function(Tt){var It=Mi(Qe,Lt||1,Tt.hoverStartRow,Tt.hoverEndRow);return[It,Tt.onHover]})}function At(Qe){var Lt=Re.useRef();Lt.current=Qe;var Tt=Re.useCallback(function(){for(var It,dn=arguments.length,yn=new Array(dn),Tn=0;Tn<dn;Tn++)yn[Tn]=arguments[Tn];return(It=Lt.current)===null||It===void 0?void 0:It.call.apply(It,[Lt].concat(yn))},[]);return Tt}function on(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Si=on()?Re.useLayoutEffect:Re.useEffect,Gt=function(Lt,Tt){var It=React.useRef(!0);Si(function(){return Lt(It.current)},Tt),Si(function(){return It.current=!1,function(){It.current=!0}},[])},Xe=function(Lt,Tt){Gt(function(It){if(!It)return Lt()},Tt)},ke=null;function Me(Qe){var Lt=React.useRef(!1),Tt=React.useState(Qe),It=_slicedToArray(Tt,2),dn=It[0],yn=It[1];React.useEffect(function(){return Lt.current=!1,function(){Lt.current=!0}},[]);function Tn(li,ji){ji&&Lt.current||yn(li)}return[dn,Tn]}function He(Qe){return Qe!==void 0}function et(Qe,Lt){var Tt=Lt||{},It=Tt.defaultValue,dn=Tt.value,yn=Tt.onChange,Tn=Tt.postState,li=useState(function(){return He(dn)?dn:He(It)?typeof It=="function"?It():It:typeof Qe=="function"?Qe():Qe}),ji=_slicedToArray(li,2),Ei=ji[0],gr=ji[1],Bi=dn!==void 0?dn:Ei,ir=Tn?Tn(Bi):Bi,Xi=useEvent(yn),Tr=useState([Bi]),ro=_slicedToArray(Tr,2),Ro=ro[0],na=ro[1];useLayoutUpdateEffect(function(){var ko=Ro[0];Ei!==ko&&Xi(Ei,ko)},[Ro]),useLayoutUpdateEffect(function(){He(dn)||gr(dn)},[dn]);var Yr=useEvent(function(ko,oo){gr(ko,oo),na([Bi],oo)});return[ir,Yr]}var Oe=be(35110),ut=be(63295),Vn=Number(Re.version.split(".")[0]),jn=function(Lt,Tt){typeof Lt=="function"?Lt(Tt):(0,qe.Z)(Lt)==="object"&&Lt&&"current"in Lt&&(Lt.current=Tt)},An=function(){for(var Lt=arguments.length,Tt=new Array(Lt),It=0;It<Lt;It++)Tt[It]=arguments[It];var dn=Tt.filter(Boolean);return dn.length<=1?dn[0]:function(yn){Tt.forEach(function(Tn){jn(Tn,yn)})}},Pn=function(){for(var Lt=arguments.length,Tt=new Array(Lt),It=0;It<Lt;It++)Tt[It]=arguments[It];return useMemo(function(){return An.apply(void 0,Tt)},Tt,function(dn,yn){return dn.length!==yn.length||dn.every(function(Tn,li){return Tn!==yn[li]})})},si=function(Lt){var Tt,It;if(!Lt)return!1;if(mn(Lt)&&Vn>=19)return!0;var dn=isMemo(Lt)?Lt.type.type:Lt.type;return!(typeof dn=="function"&&!((Tt=dn.prototype)!==null&&Tt!==void 0&&Tt.render)&&dn.$$typeof!==ForwardRef||typeof Lt=="function"&&!((It=Lt.prototype)!==null&&It!==void 0&&It.render)&&Lt.$$typeof!==ForwardRef)};function mn(Qe){return isValidElement(Qe)&&!isFragment(Qe)}var Fi=function(Lt){return mn(Lt)&&si(Lt)},Vi=function(Lt){if(Lt&&mn(Lt)){var Tt=Lt;return Tt.props.propertyIsEnumerable("ref")?Tt.props.ref:Tt.ref}return null};function Ir(Qe,Lt,Tt,It){if(!Lt.length)return Tt;var dn=_toArray(Lt),yn=dn[0],Tn=dn.slice(1),li;return!Qe&&typeof yn=="number"?li=[]:Array.isArray(Qe)?li=_toConsumableArray(Qe):li=_objectSpread({},Qe),It&&Tt===void 0&&Tn.length===1?delete li[yn][Tn[0]]:li[yn]=Ir(li[yn],Tn,Tt,It),li}function Qi(Qe,Lt,Tt){var It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Lt.length&&It&&Tt===void 0&&!get(Qe,Lt.slice(0,-1))?Qe:Ir(Qe,Lt,Tt,It)}function Di(Qe){return _typeof(Qe)==="object"&&Qe!==null&&Object.getPrototypeOf(Qe)===Object.prototype}function $r(Qe){return Array.isArray(Qe)?[]:{}}var Yi=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function hr(){for(var Qe=arguments.length,Lt=new Array(Qe),Tt=0;Tt<Qe;Tt++)Lt[Tt]=arguments[Tt];var It=$r(Lt[0]);return Lt.forEach(function(dn){function yn(Tn,li){var ji=new Set(li),Ei=get(dn,Tn),gr=Array.isArray(Ei);if(gr||Di(Ei)){if(!ji.has(Ei)){ji.add(Ei);var Bi=get(It,Tn);gr?It=Qi(It,Tn,[]):(!Bi||_typeof(Bi)!=="object")&&(It=Qi(It,Tn,$r(Ei))),Yi(Ei).forEach(function(ir){yn([].concat(_toConsumableArray(Tn),[ir]),ji)})}}else It=Qi(It,Tn,Ei)}yn([])}),It}var dr=function(Lt){var Tt=Lt.ellipsis,It=Lt.rowType,dn=Lt.children,yn,Tn=Tt===!0?{showTitle:!0}:Tt;return Tn&&(Tn.showTitle||It==="header")&&(typeof dn=="string"||typeof dn=="number"?yn=dn.toString():Re.isValidElement(dn)&&typeof dn.props.children=="string"&&(yn=dn.props.children)),yn};function kn(Qe){var Lt,Tt,It,dn,yn,Tn,li,ji,Ei=Qe.component,gr=Qe.children,Bi=Qe.ellipsis,ir=Qe.scope,Xi=Qe.prefixCls,Tr=Qe.className,ro=Qe.align,Ro=Qe.record,na=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,Be=Qe.firstFixRight,ze=Qe.lastFixRight,it=Qe.appendNode,vt=Qe.additionalProps,an=vt===void 0?{}:vt,Ce=Qe.isSticky,Le="".concat(Xi,"-cell"),_e=mt(Pe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ye=_e.supportSticky,kt=_e.allColumnsFixedLeft,_t=_e.rowHoverable,nn=On(Ro,Yr,ko,gr,na,oo),Bn=(0,ot.Z)(nn,2),vn=Bn[0],Mn=Bn[1],Xn={},Qn=typeof ja=="number"&&Ye,Wi=typeof rs=="number"&&Ye;Qn&&(Xn.position="sticky",Xn.left=ja),Wi&&(Xn.position="sticky",Xn.right=rs);var yi=(Lt=(Tt=(It=Mn==null?void 0:Mn.colSpan)!==null&&It!==void 0?It:an.colSpan)!==null&&Tt!==void 0?Tt:qo)!==null&&Lt!==void 0?Lt:1,oi=(dn=(yn=(Tn=Mn==null?void 0:Mn.rowSpan)!==null&&Tn!==void 0?Tn:an.rowSpan)!==null&&yn!==void 0?yn:cs)!==null&&dn!==void 0?dn:1,Li=Xt(oa,oi),Ui=(0,ot.Z)(Li,2),sr=Ui[0],to=Ui[1],br=At(function(po){var Ar;Ro&&to(oa,oa+oi-1),an==null||(Ar=an.onMouseEnter)===null||Ar===void 0||Ar.call(an,po)}),Sr=At(function(po){var Ar;Ro&&to(-1,-1),an==null||(Ar=an.onMouseLeave)===null||Ar===void 0||Ar.call(an,po)});if(yi===0||oi===0)return null;var wo=(li=an.title)!==null&&li!==void 0?li:dr({rowType:_a,ellipsis:Bi,children:vn}),bi=bt()(Le,Tr,(ji={},(0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)(ji,"".concat(Le,"-fix-left"),Qn&&Ye),"".concat(Le,"-fix-left-first"),qs&&Ye),"".concat(Le,"-fix-left-last"),Cs&&Ye),"".concat(Le,"-fix-left-all"),Cs&&kt&&Ye),"".concat(Le,"-fix-right"),Wi&&Ye),"".concat(Le,"-fix-right-first"),Be&&Ye),"".concat(Le,"-fix-right-last"),ze&&Ye),"".concat(Le,"-ellipsis"),Bi),"".concat(Le,"-with-append"),it),"".concat(Le,"-fix-sticky"),(Qn||Wi)&&Ce&&Ye),(0,jt.Z)(ji,"".concat(Le,"-row-hover"),!Mn&&sr)),an.className,Mn==null?void 0:Mn.className),Xr={};ro&&(Xr.textAlign=ro);var mr=(0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)({},Mn==null?void 0:Mn.style),Xn),Xr),an.style),ao=vn;return(0,qe.Z)(ao)==="object"&&!Array.isArray(ao)&&!Re.isValidElement(ao)&&(ao=null),Bi&&(Cs||Be)&&(ao=Re.createElement("span",{className:"".concat(Le,"-content")},ao)),Re.createElement(Ei,(0,yt.Z)({},Mn,an,{className:bi,style:mr,title:wo,scope:ir,onMouseEnter:_t?br:void 0,onMouseLeave:_t?Sr:void 0,colSpan:yi!==1?yi:null,rowSpan:oi!==1?oi:null}),it,ao)}var Ii=Re.memo(kn);function ra(Qe,Lt,Tt,It,dn){var yn=Tt[Qe]||{},Tn=Tt[Lt]||{},li,ji;yn.fixed==="left"?li=It.left[dn==="rtl"?Lt:Qe]:Tn.fixed==="right"&&(ji=It.right[dn==="rtl"?Qe:Lt]);var Ei=!1,gr=!1,Bi=!1,ir=!1,Xi=Tt[Lt+1],Tr=Tt[Qe-1],ro=Xi&&!Xi.fixed||Tr&&!Tr.fixed||Tt.every(function(oo){return oo.fixed==="left"});if(dn==="rtl"){if(li!==void 0){var Ro=Tr&&Tr.fixed==="left";ir=!Ro&&ro}else if(ji!==void 0){var na=Xi&&Xi.fixed==="right";Bi=!na&&ro}}else if(li!==void 0){var Yr=Xi&&Xi.fixed==="left";Ei=!Yr&&ro}else if(ji!==void 0){var ko=Tr&&Tr.fixed==="right";gr=!ko&&ro}return{fixLeft:li,fixRight:ji,lastFixLeft:Ei,firstFixRight:gr,lastFixRight:Bi,firstFixLeft:ir,isSticky:It.isSticky}}var Un=Re.createContext({}),Kr=Un;function ia(Qe){var Lt=Qe.className,Tt=Qe.index,It=Qe.children,dn=Qe.colSpan,yn=dn===void 0?1:dn,Tn=Qe.rowSpan,li=Qe.align,ji=mt(Pe,["prefixCls","direction"]),Ei=ji.prefixCls,gr=ji.direction,Bi=Re.useContext(Kr),ir=Bi.scrollColumnIndex,Xi=Bi.stickyOffsets,Tr=Bi.flattenColumns,ro=Tt+yn-1,Ro=ro+1===ir?yn+1:yn,na=ra(Tt,Tt+Ro-1,Tr,Xi,gr);return Re.createElement(Ii,(0,yt.Z)({className:Lt,index:Tt,component:"td",prefixCls:Ei,record:null,dataIndex:null,align:li,colSpan:Ro,rowSpan:Tn,render:function(){return It}},na))}var sa=be(45987),Wa=["children"];function ma(Qe){var Lt=Qe.children,Tt=(0,sa.Z)(Qe,Wa);return Re.createElement("tr",Tt,Lt)}function Ha(Qe){var Lt=Qe.children;return Lt}Ha.Row=ma,Ha.Cell=ia;var da=Ha;function la(Qe){var Lt=Qe.children,Tt=Qe.stickyOffsets,It=Qe.flattenColumns,dn=mt(Pe,"prefixCls"),yn=It.length-1,Tn=It[yn],li=Re.useMemo(function(){return{stickyOffsets:Tt,flattenColumns:It,scrollColumnIndex:Tn!=null&&Tn.scrollbar?yn:null}},[Tn,It,yn,Tt]);return Re.createElement(Kr.Provider,{value:li},Re.createElement("tfoot",{className:"".concat(dn,"-summary")},Lt))}var No=ge(la),ti=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(),Tt=Lt.width,It=Lt.height;if(Tt||It)return!0}if(Qe.getBoundingClientRect){var dn=Qe.getBoundingClientRect(),yn=dn.width,Tn=dn.height;if(yn||Tn)return!0}}return!1},hn=function(Lt){if(on()&&window.document.documentElement){var Tt=Array.isArray(Lt)?Lt:[Lt],It=window.document.documentElement;return Tt.some(function(dn){return dn in It.style})}return!1},ii=function(Lt,Tt){if(!hn(Lt))return!1;var It=document.createElement("div"),dn=It.style[Lt];return It.style[Lt]=Tt,It.style[Lt]!==dn};function Yn(Qe,Lt){return!Array.isArray(Qe)&&Lt!==void 0?ii(Qe,Lt):hn(Qe)}function In(Qe,Lt){if(!Qe)return!1;if(Qe.contains)return Qe.contains(Lt);for(var Tt=Lt;Tt;){if(Tt===Qe)return!0;Tt=Tt.parentNode}return!1}var en="data-rc-order",ni="data-rc-priority",zt="rc-util-key",Kt=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):zt}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((Kt.get(Qe)||Qe).children).filter(function(Lt){return Lt.tagName==="STYLE"})}function hi(Qe){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!on())return null;var Tt=Lt.csp,It=Lt.prepend,dn=Lt.priority,yn=dn===void 0?0:dn,Tn=Ti(It),li=Tn==="prependQueue",ji=document.createElement("style");ji.setAttribute(en,Tn),li&&yn&&ji.setAttribute(ni,"".concat(yn)),Tt!=null&&Tt.nonce&&(ji.nonce=Tt==null?void 0:Tt.nonce),ji.innerHTML=Qe;var Ei=un(Lt),gr=Ei.firstChild;if(It){if(li){var Bi=(Lt.styles||Ri(Ei)).filter(function(ir){if(!["prepend","prependQueue"].includes(ir.getAttribute(en)))return!1;var Xi=Number(ir.getAttribute(ni)||0);return yn>=Xi});if(Bi.length)return Ei.insertBefore(ji,Bi[Bi.length-1].nextSibling),ji}Ei.insertBefore(ji,gr)}else Ei.appendChild(ji);return ji}function Ut(Qe){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=un(Lt);return(Lt.styles||Ri(Tt)).find(function(It){return It.getAttribute(Ft(Lt))===Qe})}function zn(Qe){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=Ut(Qe,Lt);if(Tt){var It=un(Lt);It.removeChild(Tt)}}function xn(Qe,Lt){var Tt=Kt.get(Qe);if(!Tt||!In(document,Tt)){var It=hi("",Lt),dn=It.parentNode;Kt.set(Qe,dn),Qe.removeChild(It)}}function Fr(){Kt.clear()}function ri(Qe,Lt){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},It=un(Tt),dn=Ri(It),yn=(0,at.Z)((0,at.Z)({},Tt),{},{styles:dn});xn(It,yn);var Tn=Ut(Lt,yn);if(Tn){var li,ji;if((li=yn.csp)!==null&&li!==void 0&&li.nonce&&Tn.nonce!==((ji=yn.csp)===null||ji===void 0?void 0:ji.nonce)){var Ei;Tn.nonce=(Ei=yn.csp)===null||Ei===void 0?void 0:Ei.nonce}return Tn.innerHTML!==Qe&&(Tn.innerHTML=Qe),Tn}var gr=hi(Qe,yn);return gr.setAttribute(Ft(yn),Lt),gr}var $t;function _i(Qe){var Lt="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),Tt=document.createElement("div");Tt.id=Lt;var It=Tt.style;It.position="absolute",It.left="0",It.top="0",It.width="100px",It.height="100px",It.overflow="scroll";var dn,yn;if(Qe){var Tn=getComputedStyle(Qe);It.scrollbarColor=Tn.scrollbarColor,It.scrollbarWidth=Tn.scrollbarWidth;var li=getComputedStyle(Qe,"::-webkit-scrollbar"),ji=parseInt(li.width,10),Ei=parseInt(li.height,10);try{var gr=ji?"width: ".concat(li.width,";"):"",Bi=Ei?"height: ".concat(li.height,";"):"";ri(`
|
|
#`.concat(Lt,`::-webkit-scrollbar {
|
|
`).concat(gr,`
|
|
`).concat(Bi,`
|
|
}`),Lt)}catch(Tr){console.error(Tr),dn=ji,yn=Ei}}document.body.appendChild(Tt);var ir=Qe&&dn&&!isNaN(dn)?dn:Tt.offsetWidth-Tt.clientWidth,Xi=Qe&&yn&&!isNaN(yn)?yn:Tt.offsetHeight-Tt.clientHeight;return document.body.removeChild(Tt),zn(Lt),{width:ir,height:Xi}}function Wr(Qe){return typeof document=="undefined"?0:((Qe||$t===void 0)&&($t=_i()),$t.width)}function Br(Qe){return typeof document=="undefined"||!Qe||!(Qe instanceof Element)?{width:0,height:0}:_i(Qe)}var Sn=`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(Sn," ").concat(or).split(/[\s\n]+/),Na="aria-",aa="data-";function ur(Qe,Lt){return Qe.indexOf(Lt)===0}function Nr(Qe){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt;Lt===!1?Tt={aria:!0,data:!0,attr:!0}:Lt===!0?Tt={aria:!0}:Tt=(0,at.Z)({},Lt);var It={};return Object.keys(Qe).forEach(function(dn){(Tt.aria&&(dn==="role"||ur(dn,Na))||Tt.data&&ur(dn,aa)||Tt.attr&&Xo.includes(dn))&&(It[dn]=Qe[dn])}),It}function io(Qe,Lt,Tt,It,dn,yn,Tn){Qe.push({record:Lt,indent:Tt,index:Tn});var li=yn(Lt),ji=dn==null?void 0:dn.has(li);if(Lt&&Array.isArray(Lt[It])&&ji)for(var Ei=0;Ei<Lt[It].length;Ei+=1)io(Qe,Lt[It][Ei],Tt+1,It,dn,yn,Ei)}function va(Qe,Lt,Tt,It){var dn=Re.useMemo(function(){if(Tt!=null&&Tt.size){for(var yn=[],Tn=0;Tn<(Qe==null?void 0:Qe.length);Tn+=1){var li=Qe[Tn];io(yn,li,0,Lt,Tt,It,Tn)}return yn}return Qe==null?void 0:Qe.map(function(ji,Ei){return{record:ji,indent:0,index:Ei}})},[Qe,Lt,Tt,It]);return dn}function Ho(Qe,Lt,Tt,It){var dn=mt(Pe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),yn=dn.flattenColumns,Tn=dn.expandableType,li=dn.expandedKeys,ji=dn.childrenColumnName,Ei=dn.onTriggerExpand,gr=dn.rowExpandable,Bi=dn.onRow,ir=dn.expandRowByClick,Xi=dn.rowClassName,Tr=Tn==="nest",ro=Tn==="row"&&(!gr||gr(Qe)),Ro=ro||Tr,na=li&&li.has(Lt),Yr=ji&&Qe&&Qe[ji],ko=At(Ei),oo=Bi==null?void 0:Bi(Qe,Tt),oa=oo==null?void 0:oo.onClick,_a=function(rs){ir&&Ro&&Ei(Qe,rs);for(var qs=arguments.length,Cs=new Array(qs>1?qs-1:0),Be=1;Be<qs;Be++)Cs[Be-1]=arguments[Be];oa==null||oa.apply(void 0,[rs].concat(Cs))},qo;typeof Xi=="string"?qo=Xi:typeof Xi=="function"&&(qo=Xi(Qe,Tt,It));var cs=Rn(yn);return(0,at.Z)((0,at.Z)({},dn),{},{columnsKey:cs,nestExpandable:Tr,expanded:na,hasNestChildren:Yr,record:Qe,onTriggerExpand:ko,rowSupportExpand:ro,expandable:Ro,rowProps:(0,at.Z)((0,at.Z)({},oo),{},{className:bt()(qo,oo==null?void 0:oo.className),onClick:_a})})}function pi(Qe){var Lt=Qe.prefixCls,Tt=Qe.children,It=Qe.component,dn=Qe.cellComponent,yn=Qe.className,Tn=Qe.expanded,li=Qe.colSpan,ji=Qe.isEmpty,Ei=mt(Pe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),gr=Ei.scrollbarSize,Bi=Ei.fixHeader,ir=Ei.fixColumn,Xi=Ei.componentWidth,Tr=Ei.horizonScroll,ro=Tt;return(ji?Tr&&Xi:ir)&&(ro=Re.createElement("div",{style:{width:Xi-(Bi&&!ji?gr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Lt,"-expanded-row-fixed")},ro)),Re.createElement(It,{className:yn,style:{display:Tn?null:"none"}},Re.createElement(Ii,{component:dn,prefixCls:Lt,colSpan:li},ro))}var lo=pi;function al(Qe){var Lt=Qe.prefixCls,Tt=Qe.record,It=Qe.onExpand,dn=Qe.expanded,yn=Qe.expandable,Tn="".concat(Lt,"-row-expand-icon");if(!yn)return Re.createElement("span",{className:bt()(Tn,"".concat(Lt,"-row-spaced"))});var li=function(Ei){It(Tt,Ei),Ei.stopPropagation()};return Re.createElement("span",{className:bt()(Tn,(0,jt.Z)((0,jt.Z)({},"".concat(Lt,"-row-expanded"),dn),"".concat(Lt,"-row-collapsed"),!dn)),onClick:li})}function el(Qe,Lt,Tt){var It=[];function dn(yn){(yn||[]).forEach(function(Tn,li){It.push(Lt(Tn,li)),dn(Tn[Tt])})}return dn(Qe),It}function Ns(Qe,Lt,Tt,It){return typeof Qe=="string"?Qe:typeof Qe=="function"?Qe(Lt,Tt,It):""}function ln(Qe,Lt,Tt,It,dn){var yn=Qe.record,Tn=Qe.prefixCls,li=Qe.columnsKey,ji=Qe.fixedInfoList,Ei=Qe.expandIconColumnIndex,gr=Qe.nestExpandable,Bi=Qe.indentSize,ir=Qe.expandIcon,Xi=Qe.expanded,Tr=Qe.hasNestChildren,ro=Qe.onTriggerExpand,Ro=li[Tt],na=ji[Tt],Yr;Tt===(Ei||0)&&gr&&(Yr=Re.createElement(Re.Fragment,null,Re.createElement("span",{style:{paddingLeft:"".concat(Bi*It,"px")},className:"".concat(Tn,"-row-indent indent-level-").concat(It)}),ir({prefixCls:Tn,expanded:Xi,expandable:Tr,record:yn,onExpand:ro})));var ko;return Lt.onCell&&(ko=Lt.onCell(yn,dn)),{key:Ro,fixedInfo:na,appendCellNode:Yr,additionalCellProps:ko||{}}}function Yo(Qe){var Lt=Qe.className,Tt=Qe.style,It=Qe.record,dn=Qe.index,yn=Qe.renderIndex,Tn=Qe.rowKey,li=Qe.indent,ji=li===void 0?0:li,Ei=Qe.rowComponent,gr=Qe.cellComponent,Bi=Qe.scopeCellComponent,ir=Ho(It,Tn,dn,ji),Xi=ir.prefixCls,Tr=ir.flattenColumns,ro=ir.expandedRowClassName,Ro=ir.expandedRowRender,na=ir.rowProps,Yr=ir.expanded,ko=ir.rowSupportExpand,oo=Re.useRef(!1);oo.current||(oo.current=Yr);var oa=Ns(ro,It,dn,ji),_a=Re.createElement(Ei,(0,yt.Z)({},na,{"data-row-key":Tn,className:bt()(Lt,"".concat(Xi,"-row"),"".concat(Xi,"-row-level-").concat(ji),na==null?void 0:na.className,(0,jt.Z)({},oa,ji>=1)),style:(0,at.Z)((0,at.Z)({},Tt),na==null?void 0:na.style)}),Tr.map(function(ja,rs){var qs=ja.render,Cs=ja.dataIndex,Be=ja.className,ze=ln(ir,ja,rs,ji,dn),it=ze.key,vt=ze.fixedInfo,an=ze.appendCellNode,Ce=ze.additionalCellProps;return Re.createElement(Ii,(0,yt.Z)({className:Be,ellipsis:ja.ellipsis,align:ja.align,scope:ja.rowScope,component:ja.rowScope?Bi:gr,prefixCls:Xi,key:it,record:It,index:dn,renderIndex:yn,dataIndex:Cs,render:qs,shouldCellUpdate:ja.shouldCellUpdate},vt,{appendNode:an,additionalProps:Ce}))})),qo;if(ko&&(oo.current||Yr)){var cs=Ro(It,dn,ji+1,Yr);qo=Re.createElement(lo,{expanded:Yr,className:bt()("".concat(Xi,"-expanded-row"),"".concat(Xi,"-expanded-row-level-").concat(ji+1),oa),prefixCls:Xi,component:Ei,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,Tt=Qe.onColumnResize,It=Re.useRef();return Re.useEffect(function(){It.current&&Tt(Lt,It.current.offsetWidth)},[]),Re.createElement(Ee.Z,{data:Lt},Re.createElement("td",{ref:It,style:{padding:0,border:0,height:0}},Re.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ms(Qe){var Lt=Qe.prefixCls,Tt=Qe.columnsKey,It=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(yn){yn.forEach(function(Tn){var li=Tn.data,ji=Tn.size;It(li,ji.offsetWidth)})}},Tt.map(function(dn){return Re.createElement(Ao,{key:dn,columnKey:dn,onColumnResize:It})})))}function Ba(Qe){var Lt=Qe.data,Tt=Qe.measureColumnWidth,It=mt(Pe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),dn=It.prefixCls,yn=It.getComponent,Tn=It.onColumnResize,li=It.flattenColumns,ji=It.getRowKey,Ei=It.expandedKeys,gr=It.childrenColumnName,Bi=It.emptyNode,ir=va(Lt,gr,Ei,ji),Xi=Re.useRef({renderWithProps:!1}),Tr=yn(["body","wrapper"],"tbody"),ro=yn(["body","row"],"tr"),Ro=yn(["body","cell"],"td"),na=yn(["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:na,indent:qo})}):Yr=Re.createElement(lo,{expanded:!0,className:"".concat(dn,"-placeholder"),prefixCls:dn,component:ro,cellComponent:Ro,colSpan:li.length,isEmpty:!0},Bi);var ko=Rn(li);return Re.createElement(lt.Provider,{value:Xi.current},Re.createElement(Tr,{className:"".concat(dn,"-tbody")},Tt&&Re.createElement(ms,{prefixCls:dn,columnsKey:ko,onColumnResize:Tn}),Yr))}var $a=ge(Ba),Er=be(62978),uo=["columnType"];function So(Qe){for(var Lt=Qe.colWidths,Tt=Qe.columns,It=Qe.columCount,dn=mt(Pe,["tableLayout"]),yn=dn.tableLayout,Tn=[],li=It||Tt.length,ji=!1,Ei=li-1;Ei>=0;Ei-=1){var gr=Lt[Ei],Bi=Tt&&Tt[Ei],ir=void 0,Xi=void 0;if(Bi&&(ir=Bi[Er.v],yn==="auto"&&(Xi=Bi.minWidth)),gr||Xi||ir||ji){var Tr=ir||{},ro=Tr.columnType,Ro=(0,sa.Z)(Tr,uo);Tn.unshift(Re.createElement("col",(0,yt.Z)({key:Ei,style:{width:gr,minWidth:Xi}},Ro))),ji=!0}}return Re.createElement("colgroup",null,Tn)}var Wn=So,ka=be(74902),Cn=["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 Tt=[],It=0;It<Lt;It+=1){var dn=Qe[It];if(dn!==void 0)Tt[It]=dn;else return null}return Tt},[Qe.join("_"),Lt])}var Ws=Re.forwardRef(function(Qe,Lt){var Tt=Qe.className,It=Qe.noData,dn=Qe.columns,yn=Qe.flattenColumns,Tn=Qe.colWidths,li=Qe.columCount,ji=Qe.stickyOffsets,Ei=Qe.direction,gr=Qe.fixHeader,Bi=Qe.stickyTopOffset,ir=Qe.stickyBottomOffset,Xi=Qe.stickyClassName,Tr=Qe.onScroll,ro=Qe.maxContentScroll,Ro=Qe.children,na=(0,sa.Z)(Qe,Cn),Yr=mt(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){jn(Lt,Ce),jn(ja,Ce)},[]);Re.useEffect(function(){var Ce;function Le(_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",Le,{passive:!1}),function(){var _e;(_e=ja.current)===null||_e===void 0||_e.removeEventListener("wheel",Le)}},[]);var qs=Re.useMemo(function(){return yn.every(function(Ce){return Ce.width})},[yn]),Cs=yn[yn.length-1],Be={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),[Be]):dn},[cs,dn]),it=(0,Re.useMemo)(function(){return cs?[].concat((0,ka.Z)(yn),[Be]):yn},[cs,yn]),vt=(0,Re.useMemo)(function(){var Ce=ji.right,Le=ji.left;return(0,at.Z)((0,at.Z)({},ji),{},{left:Ei==="rtl"?[].concat((0,ka.Z)(Le.map(function(_e){return _e+cs})),[0]):Le,right:Ei==="rtl"?Ce:[].concat((0,ka.Z)(Ce.map(function(_e){return _e+cs})),[0]),isSticky:oa})},[cs,ji,oa]),an=Po(Tn,li);return Re.createElement("div",{style:(0,at.Z)({overflow:"hidden"},oa?{top:Bi,bottom:ir}:{}),ref:rs,className:bt()(Tt,(0,jt.Z)({},Xi,!!Xi))},Re.createElement(qo,{style:{tableLayout:"fixed",visibility:It||an?null:"hidden"}},(!It||!ro||qs)&&Re.createElement(Wn,{colWidths:an?[].concat((0,ka.Z)(an),[cs]):[],columCount:li+1,columns:it}),Ro((0,at.Z)((0,at.Z)({},na),{},{stickyOffsets:vt,columns:ze,flattenColumns:it}))))}),ds=Re.memo(Ws),kl=function(Lt){var Tt=Lt.cells,It=Lt.stickyOffsets,dn=Lt.flattenColumns,yn=Lt.rowComponent,Tn=Lt.cellComponent,li=Lt.onHeaderRow,ji=Lt.index,Ei=mt(Pe,["prefixCls","direction"]),gr=Ei.prefixCls,Bi=Ei.direction,ir;li&&(ir=li(Tt.map(function(Tr){return Tr.column}),ji));var Xi=Rn(Tt.map(function(Tr){return Tr.column}));return Re.createElement(yn,ir,Tt.map(function(Tr,ro){var Ro=Tr.column,na=ra(Tr.colStart,Tr.colEnd,dn,It,Bi),Yr;return Ro&&Ro.onHeaderCell&&(Yr=Tr.column.onHeaderCell(Ro)),Re.createElement(Ii,(0,yt.Z)({},Tr,{scope:Ro.title?Tr.colSpan>1?"colgroup":"col":null,ellipsis:Ro.ellipsis,align:Ro.align,component:Tn,prefixCls:gr,key:Xi[ro]},na,{additionalProps:Yr,rowType:"header"}))}))},Ss=kl;function Ua(Qe){var Lt=[];function Tt(Tn,li){var ji=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Lt[ji]=Lt[ji]||[];var Ei=li,gr=Tn.filter(Boolean).map(function(Bi){var ir={key:Bi.key,className:Bi.className||"",children:Bi.title,column:Bi,colStart:Ei},Xi=1,Tr=Bi.children;return Tr&&Tr.length>0&&(Xi=Tt(Tr,Ei,ji+1).reduce(function(ro,Ro){return ro+Ro},0),ir.hasSubColumns=!0),"colSpan"in Bi&&(Xi=Bi.colSpan),"rowSpan"in Bi&&(ir.rowSpan=Bi.rowSpan),ir.colSpan=Xi,ir.colEnd=ir.colStart+Xi-1,Lt[ji].push(ir),Ei+=Xi,Xi});return gr}Tt(Qe,0);for(var It=Lt.length,dn=function(li){Lt[li].forEach(function(ji){!("rowSpan"in ji)&&!ji.hasSubColumns&&(ji.rowSpan=It-li)})},yn=0;yn<It;yn+=1)dn(yn);return Lt}var us=function(Lt){var Tt=Lt.stickyOffsets,It=Lt.columns,dn=Lt.flattenColumns,yn=Lt.onHeaderRow,Tn=mt(Pe,["prefixCls","getComponent"]),li=Tn.prefixCls,ji=Tn.getComponent,Ei=Re.useMemo(function(){return Ua(It)},[It]),gr=ji(["header","wrapper"],"thead"),Bi=ji(["header","row"],"tr"),ir=ji(["header","cell"],"th");return Re.createElement(gr,{className:"".concat(li,"-thead")},Ei.map(function(Xi,Tr){var ro=Re.createElement(Ss,{key:Tr,flattenColumns:dn,cells:Xi,stickyOffsets:Tt,rowComponent:Bi,cellComponent:ir,onHeaderRow:yn,index:Tr});return ro}))},tl=ge(us),ts=be(54768);function wr(Qe,Lt,Tt){var It=(0,Er.g)(Qe),dn=It.expandIcon,yn=It.expandedRowKeys,Tn=It.defaultExpandedRowKeys,li=It.defaultExpandAllRows,ji=It.expandedRowRender,Ei=It.onExpand,gr=It.onExpandedRowsChange,Bi=It.childrenColumnName,ir=dn||al,Xi=Bi||"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,qe.Z)(oa)==="object"&&oa[Xi]})?"nest":!1},[!!ji,Lt]),ro=Re.useState(function(){return Tn||(li?el(Lt,Tt,Xi):[])}),Ro=(0,ot.Z)(ro,2),na=Ro[0],Yr=Ro[1],ko=Re.useMemo(function(){return new Set(yn||na||[])},[yn,na]),oo=Re.useCallback(function(oa){var _a=Tt(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),Ei&&Ei(!cs,oa),gr&&gr(qo)},[Tt,ko,Lt,Ei,gr]);return[It,Tr,ko,ir,Xi,oo]}function st(Qe,Lt,Tt){var It=Qe.map(function(dn,yn){return ra(yn,yn,Qe,Lt,Tt)});return Bt(function(){return It},[It],function(dn,yn){return!qn(dn,yn)})}function St(Qe){var Lt=(0,Re.useRef)(Qe),Tt=(0,Re.useState)({}),It=(0,ot.Z)(Tt,2),dn=It[1],yn=(0,Re.useRef)(null),Tn=(0,Re.useRef)([]);function li(ji){Tn.current.push(ji);var Ei=Promise.resolve();yn.current=Ei,Ei.then(function(){if(yn.current===Ei){var gr=Tn.current,Bi=Lt.current;Tn.current=[],gr.forEach(function(ir){Lt.current=ir(Lt.current)}),yn.current=null,Bi!==Lt.current&&dn({})}})}return(0,Re.useEffect)(function(){return function(){yn.current=null}},[]),[Lt.current,li]}function Rt(Qe){var Lt=(0,Re.useRef)(Qe||null),Tt=(0,Re.useRef)();function It(){window.clearTimeout(Tt.current)}function dn(Tn){Lt.current=Tn,It(),Tt.current=window.setTimeout(function(){Lt.current=null,Tt.current=void 0},100)}function yn(){return Lt.current}return(0,Re.useEffect)(function(){return It},[]),[dn,yn]}function gn(){var Qe=Re.useState(-1),Lt=(0,ot.Z)(Qe,2),Tt=Lt[0],It=Lt[1],dn=Re.useState(-1),yn=(0,ot.Z)(dn,2),Tn=yn[0],li=yn[1],ji=Re.useCallback(function(Ei,gr){It(Ei),li(gr)},[]);return[Tt,Tn,ji]}var Hn=on()?window:null;function Oi(Qe,Lt){var Tt=(0,qe.Z)(Qe)==="object"?Qe:{},It=Tt.offsetHeader,dn=It===void 0?0:It,yn=Tt.offsetSummary,Tn=yn===void 0?0:yn,li=Tt.offsetScroll,ji=li===void 0?0:li,Ei=Tt.getContainer,gr=Ei===void 0?function(){return Hn}:Ei,Bi=gr()||Hn,ir=!!Qe;return Re.useMemo(function(){return{isSticky:ir,stickyClassName:ir?"".concat(Lt,"-sticky-holder"):"",offsetHeader:dn,offsetSummary:Tn,offsetScroll:ji,container:Bi}},[ir,ji,dn,Tn,Lt,Bi])}function Yt(Qe,Lt,Tt){var It=(0,Re.useMemo)(function(){var dn=Lt.length,yn=function(Ei,gr,Bi){for(var ir=[],Xi=0,Tr=Ei;Tr!==gr;Tr+=Bi)ir.push(Xi),Lt[Tr].fixed&&(Xi+=Qe[Tr]||0);return ir},Tn=yn(0,dn,1),li=yn(dn-1,-1,-1).reverse();return Tt==="rtl"?{left:li,right:Tn}:{left:Tn,right:li}},[Qe,Lt,Tt]);return It}var Zn=Yt;function Ji(Qe){var Lt=Qe.className,Tt=Qe.children;return Re.createElement("div",{className:Lt},Tt)}var xi=Ji;function nr(Qe,Lt,Tt,It){var dn=Je.unstable_batchedUpdates?function(Tn){Je.unstable_batchedUpdates(Tt,Tn)}:Tt;return Qe!=null&&Qe.addEventListener&&Qe.addEventListener(Lt,dn,It),{remove:function(){Qe!=null&&Qe.removeEventListener&&Qe.removeEventListener(Lt,dn,It)}}}var Zi=function(Lt){return+setTimeout(Lt,16)},vi=function(Lt){return clearTimeout(Lt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Zi=function(Lt){return window.requestAnimationFrame(Lt)},vi=function(Lt){return window.cancelAnimationFrame(Lt)});var pr=0,fn=new Map;function eo(Qe){fn.delete(Qe)}var so=function(Lt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;pr+=1;var It=pr;function dn(yn){if(yn===0)eo(It),Lt();else{var Tn=Zi(function(){dn(yn-1)});fn.set(It,Tn)}}return dn(Tt),It};so.cancel=function(Qe){var Lt=fn.get(Qe);return eo(Qe),vi(Lt)};var ya=so;function fa(Qe){return Qe instanceof HTMLElement||Qe instanceof SVGElement}function Ia(Qe){return Qe&&(0,qe.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 Tt;return(Tt=ReactDOM.findDOMNode)===null||Tt===void 0?void 0:Tt.call(ReactDOM,Qe)}return null}function Us(Qe){var Lt=Ia(Qe),Tt=Lt.getBoundingClientRect(),It=document.documentElement;return{left:Tt.left+(window.pageXOffset||It.scrollLeft)-(It.clientLeft||document.body.clientLeft||0),top:Tt.top+(window.pageYOffset||It.scrollTop)-(It.clientTop||document.body.clientTop||0)}}var Ds=function(Lt,Tt){var It,dn,yn=Lt.scrollBodyRef,Tn=Lt.onScroll,li=Lt.offsetScroll,ji=Lt.container,Ei=Lt.direction,gr=mt(Pe,"prefixCls"),Bi=((It=yn.current)===null||It===void 0?void 0:It.scrollWidth)||0,ir=((dn=yn.current)===null||dn===void 0?void 0:dn.clientWidth)||0,Xi=Bi&&ir*(ir/Bi),Tr=Re.useRef(),ro=St({scrollLeft:0,isHiddenScrollBar:!0}),Ro=(0,ot.Z)(ro,2),na=Ro[0],Yr=Ro[1],ko=Re.useRef({delta:0,x:0}),oo=Re.useState(!1),oa=(0,ot.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-na.scrollLeft,ko.current.x=0,qo(!0),it.preventDefault()},qs=function(it){var vt,an=it||((vt=window)===null||vt===void 0?void 0:vt.event),Ce=an.buttons;if(!_a||Ce===0){_a&&qo(!1);return}var Le=ko.current.x+it.pageX-ko.current.x-ko.current.delta,_e=Ei==="rtl";Le=Math.max(_e?Xi-ir:0,Math.min(_e?0:ir-Xi,Le));var Ye=!_e||Math.abs(Le)+Math.abs(Xi)<ir;Ye&&(Tn({scrollLeft:Le/ir*(Bi+2)}),ko.current.x=it.pageX)},Cs=function(){ya.cancel(cs.current),cs.current=ya(function(){if(yn.current){var it=Us(yn.current).top,vt=it+yn.current.offsetHeight,an=ji===window?document.documentElement.scrollTop+window.innerHeight:Us(ji).top+ji.clientHeight;vt-Wr()<=an||it>=an-li?Yr(function(Ce){return(0,at.Z)((0,at.Z)({},Ce),{},{isHiddenScrollBar:!0})}):Yr(function(Ce){return(0,at.Z)((0,at.Z)({},Ce),{},{isHiddenScrollBar:!1})})}})},Be=function(it){Yr(function(vt){return(0,at.Z)((0,at.Z)({},vt),{},{scrollLeft:it/Bi*ir||0})})};return Re.useImperativeHandle(Tt,function(){return{setScrollLeft:Be,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()}},[Xi,_a]),Re.useEffect(function(){if(yn.current){for(var ze=[],it=Ia(yn.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(){na.isHiddenScrollBar||Yr(function(ze){var it=yn.current;return it?(0,at.Z)((0,at.Z)({},ze),{},{scrollLeft:it.scrollLeft/it.scrollWidth*it.clientWidth}):ze})},[na.isHiddenScrollBar]),Bi<=ir||!Xi||na.isHiddenScrollBar?null:Re.createElement("div",{style:{height:Wr(),width:ir,bottom:li},className:"".concat(gr,"-sticky-scroll")},Re.createElement("div",{onMouseDown:rs,ref:Tr,className:bt()("".concat(gr,"-sticky-scroll-bar"),(0,jt.Z)({},"".concat(gr,"-sticky-scroll-bar-active"),_a)),style:{width:"".concat(Xi,"px"),transform:"translate3d(".concat(na.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 Tt=(0,at.Z)({rowKey:"key",prefixCls:gl,emptyText:hu},Qe),It=Tt.prefixCls,dn=Tt.className,yn=Tt.rowClassName,Tn=Tt.style,li=Tt.data,ji=Tt.rowKey,Ei=Tt.scroll,gr=Tt.tableLayout,Bi=Tt.direction,ir=Tt.title,Xi=Tt.footer,Tr=Tt.summary,ro=Tt.caption,Ro=Tt.id,na=Tt.showHeader,Yr=Tt.components,ko=Tt.emptyText,oo=Tt.onRow,oa=Tt.onHeaderRow,_a=Tt.onScroll,qo=Tt.internalHooks,cs=Tt.transformColumns,ja=Tt.internalRefs,rs=Tt.tailor,qs=Tt.getContainerWidth,Cs=Tt.sticky,Be=Tt.rowHoverable,ze=Be===void 0?!0:Be,it=li||Ys,vt=!!it.length,an=qo===ve.R,Ce=Re.useCallback(function(no,Rr){return sn(Yr,no)||Rr},[Yr]),Le=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,ot.Z)(Ye,3),_t=kt[0],nn=kt[1],Bn=kt[2],vn=wr(Tt,it,Le),Mn=(0,ot.Z)(vn,6),Xn=Mn[0],Qn=Mn[1],Wi=Mn[2],yi=Mn[3],oi=Mn[4],Li=Mn[5],Ui=Ei==null?void 0:Ei.x,sr=Re.useState(0),to=(0,ot.Z)(sr,2),br=to[0],Sr=to[1],wo=(0,ts.Z)((0,at.Z)((0,at.Z)((0,at.Z)({},Tt),Xn),{},{expandable:!!Xn.expandedRowRender,columnTitle:Xn.columnTitle,expandedKeys:Wi,getRowKey:Le,onTriggerExpand:Li,expandIcon:yi,expandIconColumnIndex:Xn.expandIconColumnIndex,direction:Bi,scrollWidth:an&&rs&&typeof Ui=="number"?Ui:null,clientWidth:br}),an?cs:null),bi=(0,ot.Z)(wo,4),Xr=bi[0],mr=bi[1],ao=bi[2],po=bi[3],Ar=ao!=null?ao:Ui,To=Re.useMemo(function(){return{columns:Xr,flattenColumns:mr}},[Xr,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(Zt(gs)){var Ja;(Ja=Dr.current)===null||Ja===void 0||Ja.scrollTo({top:gs})}else{var Es,Ma=Fa!=null?Fa:Le(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,ot.Z)(Da,2),Jr=ga[0],Jo=ga[1],ua=Re.useState(!1),Ea=(0,ot.Z)(ua,2),es=Ea[0],ba=Ea[1],_o=St(new Map),yo=(0,ot.Z)(_o,2),ea=yo[0],Ka=yo[1],Vo=Rn(mr),Zr=Vo.map(function(no){return ea.get(no)}),ho=Re.useMemo(function(){return Zr},[Zr.join("_")]),fo=Zn(ho,mr,Bi),Mr=Ei&&ai(Ei.y),Gr=Ei&&ai(Ar)||!!Xn.fixed,Do=Gr&&mr.some(function(no){var Rr=no.fixed;return Rr}),ye=Re.useRef(),Ie=Oi(Cs,It),je=Ie.isSticky,Ue=Ie.offsetHeader,dt=Ie.offsetSummary,Wt=Ie.offsetScroll,Jt=Ie.stickyClassName,rn=Ie.container,Fn=Re.useMemo(function(){return Tr==null?void 0:Tr(it)},[Tr,it]),Kn=(Mr||je)&&Re.isValidElement(Fn)&&Fn.type===da&&Fn.props.fixed,En,Ci,Gi;Mr&&(Ci={overflowY:vt?"scroll":"auto",maxHeight:Ei.y}),Gr&&(En={overflowX:"auto"},Mr||(Ci={overflowY:"hidden"}),Gi={width:Ar===!0?"auto":Ar,minWidth:"100%"});var Pi=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})},[]),Ai=Rt(null),Ni=(0,ot.Z)(Ai,2),ki=Ni[0],wn=Ni[1];function Gn(no,Rr){Rr&&(typeof Rr=="function"?Rr(no):Rr.scrollLeft!==no&&(Rr.scrollLeft=no,Rr.scrollLeft!==no&&setTimeout(function(){Rr.scrollLeft=no},0)))}var $n=At(function(no){var Rr=no.currentTarget,wa=no.scrollLeft,Pa=Bi==="rtl",gs=typeof wa=="number"?wa:Rr.scrollLeft,Fa=Rr||Ul;if(!wn()||wn()===Fa){var Ja;ki(Fa),Gn(gs,zo.current),Gn(gs,Dr.current),Gn(gs,ca.current),Gn(gs,(Ja=ye.current)===null||Ja===void 0?void 0:Ja.setScrollLeft)}var Es=Rr||zo.current;if(Es){var Ma=an&&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))}}),fi=At(function(no){$n(no),_a==null||_a(no)}),rr=function(){if(Gr&&Dr.current){var Rr;$n({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;an&&qs&&mo.current&&(gs=qs(mo.current,gs)||gs),gs!==br&&(rr(),Sr(gs))},ar=Re.useRef(!1);Re.useEffect(function(){ar.current&&rr()},[Gr,li,Xr.length]),Re.useEffect(function(){ar.current=!0},[]);var Et=Re.useState(0),lr=(0,ot.Z)(Et,2),Pr=lr[0],Or=lr[1],Oo=Re.useState(!0),Ur=(0,ot.Z)(Oo,2),wi=Ur[0],qi=Ur[1];Re.useEffect(function(){(!rs||!an)&&(Dr.current instanceof Element?Or(Br(Dr.current).width):Or(Br(Co.current).width)),qi(Yn("position","sticky"))},[]),Re.useEffect(function(){an&&ja&&(ja.body.current=Dr.current)});var Hi=Re.useCallback(function(no){return Re.createElement(Re.Fragment,null,Re.createElement(tl,no),Kn==="top"&&Re.createElement(No,no,Fn))},[Kn,Fn]),Lr=Re.useCallback(function(no){return Re.createElement(No,no,Fn)},[Fn]),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:Ei},fr=Re.useMemo(function(){return vt?null:typeof ko=="function"?ko():ko},[vt,ko]),Hr=Re.createElement($a,{data:it,measureColumnWidth:Mr||Gr||je}),Vr=Re.createElement(Wn,{colWidths:mr.map(function(no){var Rr=no.width;return Rr}),columns:mr}),Aa=ro!=null?Re.createElement("caption",{className:"".concat(It,"-caption")},ro):void 0,Ya=Nr(Tt,{data:!0}),bo=Nr(Tt,{aria:!0});if(Mr||je){var co;typeof _e=="function"?(co=_e(it,{scrollbarSize:Pr,ref:Dr,onScroll:$n}),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,at.Z)((0,at.Z)({},En),Ci),onScroll:fi,ref:Dr,className:bt()("".concat(It,"-body"))},Re.createElement(Eo,(0,yt.Z)({style:(0,at.Z)((0,at.Z)({},Gi),{},{tableLayout:vr})},bo),Aa,Vr,Hr,!Kn&&Fn&&Re.createElement(No,{stickyOffsets:fo,flattenColumns:mr},Fn)));var vo=(0,at.Z)((0,at.Z)((0,at.Z)({noData:!it.length,maxContentScroll:Gr&&Ar==="max-content"},xr),To),{},{direction:Bi,stickyClassName:Jt,onScroll:$n});Qr=Re.createElement(Re.Fragment,null,na!==!1&&Re.createElement(ds,(0,yt.Z)({},vo,{stickyTopOffset:Ue,className:"".concat(It,"-header"),ref:zo}),Hi),co,Kn&&Kn!=="top"&&Re.createElement(ds,(0,yt.Z)({},vo,{stickyBottomOffset:dt,className:"".concat(It,"-summary"),ref:ca}),Lr),je&&Dr.current&&Dr.current instanceof Element&&Re.createElement(fl,{ref:ye,offsetScroll:Wt,scrollBodyRef:Dr,onScroll:$n,container:rn,direction:Bi}))}else Qr=Re.createElement("div",{style:(0,at.Z)((0,at.Z)({},En),Ci),className:bt()("".concat(It,"-content")),onScroll:$n,ref:Dr},Re.createElement(Eo,(0,yt.Z)({style:(0,at.Z)((0,at.Z)({},Gi),{},{tableLayout:vr})},bo),Aa,Vr,na!==!1&&Re.createElement(tl,(0,yt.Z)({},xr,To)),Hr,Fn&&Re.createElement(No,{stickyOffsets:fo,flattenColumns:mr},Fn)));var Qo=Re.createElement("div",(0,yt.Z)({className:bt()(It,dn,(0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)({},"".concat(It,"-rtl"),Bi==="rtl"),"".concat(It,"-ping-left"),Jr),"".concat(It,"-ping-right"),es),"".concat(It,"-layout-fixed"),gr==="fixed"),"".concat(It,"-fixed-header"),Mr),"".concat(It,"-fixed-column"),Do),"".concat(It,"-fixed-column-gapped"),Do&&po),"".concat(It,"-scroll-horizontal"),Gr),"".concat(It,"-has-fix-left"),mr[0]&&mr[0].fixed),"".concat(It,"-has-fix-right"),mr[mr.length-1]&&mr[mr.length-1].fixed==="right")),style:Tn,id:Ro,ref:mo},Ya),ir&&Re.createElement(xi,{className:"".concat(It,"-title")},ir(it)),Re.createElement("div",{ref:Co,className:"".concat(It,"-container")},Qr),Xi&&Re.createElement(xi,{className:"".concat(It,"-footer")},Xi(it)));Gr&&(Qo=Re.createElement(Ee.Z,{onResize:$i},Qo));var xa=st(mr,fo,Bi),Oa=Re.useMemo(function(){return{scrollX:Ar,prefixCls:It,getComponent:Ce,scrollbarSize:Pr,direction:Bi,fixedInfoList:xa,isSticky:je,supportSticky:wi,componentWidth:br,fixHeader:Mr,fixColumn:Do,horizonScroll:Gr,tableLayout:vr,rowClassName:yn,expandedRowClassName:Xn.expandedRowClassName,expandIcon:yi,expandableType:Qn,expandRowByClick:Xn.expandRowByClick,expandedRowRender:Xn.expandedRowRender,onTriggerExpand:Li,expandIconColumnIndex:Xn.expandIconColumnIndex,indentSize:Xn.indentSize,allColumnsFixedLeft:mr.every(function(no){return no.fixed==="left"}),emptyNode:fr,columns:Xr,flattenColumns:mr,onColumnResize:Pi,hoverStartRow:_t,hoverEndRow:nn,onHover:Bn,rowExpandable:Xn.rowExpandable,onRow:oo,getRowKey:Le,expandedKeys:Wi,childrenColumnName:oi,rowHoverable:ze}},[Ar,It,Ce,Pr,Bi,xa,je,wi,br,Mr,Do,Gr,vr,yn,Xn.expandedRowClassName,yi,Qn,Xn.expandRowByClick,Xn.expandedRowRender,Li,Xn.expandIconColumnIndex,Xn.indentSize,fr,Xr,mr,Pi,_t,nn,Bn,Xn.rowExpandable,oo,Le,Wi,oi,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=ti;var Xa=Ra;function Is(Qe){var Lt=Re.useRef();Lt.current=Qe;var Tt=Re.useCallback(function(){for(var It,dn=arguments.length,yn=new Array(dn),Tn=0;Tn<dn;Tn++)yn[Tn]=arguments[Tn];return(It=Lt.current)===null||It===void 0?void 0:It.call.apply(It,[Lt].concat(yn))},[]);return Tt}function pl(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Mo=pl()?Re.useLayoutEffect:Re.useEffect,$u=function(Lt,Tt){var It=Re.useRef(!0);Mo(function(){return Lt(It.current)},Tt),Mo(function(){return It.current=!1,function(){It.current=!0}},[])},Pu=function(Lt,Tt){$u(function(It){if(!It)return Lt()},Tt)},$l=$u;function ou(Qe){var Lt=React.useRef(!1),Tt=React.useState(Qe),It=_slicedToArray(Tt,2),dn=It[0],yn=It[1];React.useEffect(function(){return Lt.current=!1,function(){Lt.current=!0}},[]);function Tn(li,ji){ji&&Lt.current||yn(li)}return[dn,Tn]}function gc(Qe){return Qe!==void 0}function kr(Qe,Lt){var Tt=Lt||{},It=Tt.defaultValue,dn=Tt.value,yn=Tt.onChange,Tn=Tt.postState,li=useState(function(){return gc(dn)?dn:gc(It)?typeof It=="function"?It():It:typeof Qe=="function"?Qe():Qe}),ji=_slicedToArray(li,2),Ei=ji[0],gr=ji[1],Bi=dn!==void 0?dn:Ei,ir=Tn?Tn(Bi):Bi,Xi=useEvent(yn),Tr=useState([Bi]),ro=_slicedToArray(Tr,2),Ro=ro[0],na=ro[1];useLayoutUpdateEffect(function(){var ko=Ro[0];Ei!==ko&&Xi(Ei,ko)},[Ro]),useLayoutUpdateEffect(function(){gc(dn)||gr(dn)},[dn]);var Yr=useEvent(function(ko,oo){gr(ko,oo),na([Bi],oo)});return[ir,Yr]}function hl(Qe,Lt,Tt){var It=React.useRef({});return(!("value"in It.current)||Tt(It.current.condition,Lt))&&(It.current.value=Qe(),It.current.condition=Lt),It.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),Tt=0;Tt<Qe;Tt++)Lt[Tt]=arguments[Tt];var It=Lt.filter(function(dn){return dn});return It.length<=1?It[0]:function(dn){Lt.forEach(function(yn){Rs(yn,dn)})}}function zu(){for(var Qe=arguments.length,Lt=new Array(Qe),Tt=0;Tt<Qe;Tt++)Lt[Tt]=arguments[Tt];return useMemo(function(){return Bu.apply(void 0,Lt)},Lt,function(It,dn){return It.length!==dn.length||It.every(function(yn,Tn){return yn!==dn[Tn]})})}function Ou(Qe){var Lt,Tt,It=isMemo(Qe)?Qe.type.type:Qe.type;return!(typeof It=="function"&&!((Lt=It.prototype)!==null&&Lt!==void 0&&Lt.render)||typeof Qe=="function"&&!((Tt=Qe.prototype)!==null&&Tt!==void 0&&Tt.render))}function Sa(Qe){return!isValidElement(Qe)||isFragment(Qe)?!1:Ou(Qe)}function Lu(Qe,Lt,Tt,It){if(!Lt.length)return Tt;var dn=_toArray(Lt),yn=dn[0],Tn=dn.slice(1),li;return!Qe&&typeof yn=="number"?li=[]:Array.isArray(Qe)?li=_toConsumableArray(Qe):li=_objectSpread({},Qe),It&&Tt===void 0&&Tn.length===1?delete li[yn][Tn[0]]:li[yn]=Lu(li[yn],Tn,Tt,It),li}function Fl(Qe,Lt,Tt){var It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Lt.length&&It&&Tt===void 0&&!get(Qe,Lt.slice(0,-1))?Qe:Lu(Qe,Lt,Tt,It)}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),Tt=0;Tt<Qe;Tt++)Lt[Tt]=arguments[Tt];var It=eu(Lt[0]);return Lt.forEach(function(dn){function yn(Tn,li){var ji=new Set(li),Ei=get(dn,Tn),gr=Array.isArray(Ei);if(gr||Il(Ei)){if(!ji.has(Ei)){ji.add(Ei);var Bi=get(It,Tn);gr?It=Fl(It,Tn,[]):(!Bi||_typeof(Bi)!=="object")&&(It=Fl(It,Tn,eu(Ei))),Cc(Ei).forEach(function(ir){yn([].concat(_toConsumableArray(Tn),[ir]),ji)})}}else It=Fl(It,Tn,Ei)}yn([])}),It}var Ol={},Cu=[],Wc=function(Lt){Cu.push(Lt)};function ah(Qe,Lt){if(0)var Tt}function Hc(Qe,Lt){if(0)var Tt}function Yh(){Ol={}}function Wu(Qe,Lt,Tt){!Lt&&!Ol[Tt]&&(Qe(!1,Tt),Ol[Tt]=!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 Tt=Qe.height,It=Qe.offsetY,dn=Qe.offsetX,yn=Qe.children,Tn=Qe.prefixCls,li=Qe.onInnerResize,ji=Qe.innerProps,Ei=Qe.rtl,gr=Qe.extra,Bi={},ir={display:"flex",flexDirection:"column"};return It!==void 0&&(Bi={height:Tt,position:"relative",overflow:"hidden"},ir=(0,at.Z)((0,at.Z)({},ir),{},(0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)({transform:"translateY(".concat(It,"px)")},Ei?"marginRight":"marginLeft",-dn),"position","absolute"),"left",0),"right",0),"top",0))),Re.createElement("div",{style:Bi},Re.createElement(Ee.Z,{onResize:function(Tr){var ro=Tr.offsetHeight;ro&&li&&li()}},Re.createElement("div",(0,yt.Z)({style:ir,className:bt()((0,jt.Z)({},"".concat(Tn,"-holder-inner"),Tn)),ref:Lt},ji),yn,gr)))});ku.displayName="Filler";var Jc=ku;function Sh(Qe){var Lt=Qe.children,Tt=Qe.setRef,It=Re.useCallback(function(dn){Tt(dn)},[]);return Re.cloneElement(Lt,{ref:It})}function ml(Qe,Lt,Tt,It,dn,yn,Tn,li){var ji=li.getKey;return Qe.slice(Lt,Tt+1).map(function(Ei,gr){var Bi=Lt+gr,ir=Tn(Ei,Bi,{style:{width:It},offsetX:dn}),Xi=ji(Ei);return Re.createElement(Sh,{key:Xi,setRef:function(ro){return yn(Ei,ro)}},ir)})}function sh(Qe,Lt,Tt,It){var dn=Tt-Qe,yn=Lt-Tt,Tn=Math.min(dn,yn)*2;if(It<=Tn){var li=Math.floor(It/2);return It%2?Tt+li+1:Tt-li}return dn>yn?Tt-(It-yn):Tt+(It-dn)}function lh(Qe,Lt,Tt){var It=Qe.length,dn=Lt.length,yn,Tn;if(It===0&&dn===0)return null;It<dn?(yn=Qe,Tn=Lt):(yn=Lt,Tn=Qe);var li={__EMPTY_ITEM__:!0};function ji(Tr){return Tr!==void 0?Tt(Tr):li}for(var Ei=null,gr=Math.abs(It-dn)!==1,Bi=0;Bi<Tn.length;Bi+=1){var ir=ji(yn[Bi]),Xi=ji(Tn[Bi]);if(ir!==Xi){Ei=Bi,gr=gr||ir!==ji(Tn[Bi+1]);break}}return Ei===null?null:{index:Ei,multiple:gr}}function Nc(Qe,Lt,Tt){var It=Re.useState(Qe),dn=(0,ot.Z)(It,2),yn=dn[0],Tn=dn[1],li=Re.useState(null),ji=(0,ot.Z)(li,2),Ei=ji[0],gr=ji[1];return Re.useEffect(function(){var Bi=lh(yn||[],Qe||[],Lt);(Bi==null?void 0:Bi.index)!==void 0&&(Tt==null||Tt(Bi.index),gr(Qe[Bi.index])),Tn(Qe)},[Qe]),[Ei]}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 Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vl+=1;var It=Vl;function dn(yn){if(yn===0)Ts(It),Lt();else{var Tn=Ec(function(){dn(yn-1)});xl.set(It,Tn)}}return dn(Tt),It};nu.cancel=function(Qe){var Lt=xl.get(Qe);return Ts(Lt),tu(Lt)};var ol=nu,Vs=(typeof navigator=="undefined"?"undefined":(0,qe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Wl=Vs,fu=function(Qe,Lt,Tt,It){var dn=(0,Re.useRef)(!1),yn=(0,Re.useRef)(null);function Tn(){clearTimeout(yn.current),dn.current=!0,yn.current=setTimeout(function(){dn.current=!1},50)}var li=(0,Re.useRef)({top:Qe,bottom:Lt,left:Tt,right:It});return li.current.top=Qe,li.current.bottom=Lt,li.current.left=Tt,li.current.right=It,function(ji,Ei){var gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Bi=ji?Ei<0&&li.current.left||Ei>0&&li.current.right:Ei<0&&li.current.top||Ei>0&&li.current.bottom;return gr&&Bi?(clearTimeout(yn.current),dn.current=!1):(!Bi||dn.current)&&Tn(),!dn.current&&Bi}};function Ru(Qe,Lt,Tt,It,dn,yn,Tn){var li=(0,Re.useRef)(0),ji=(0,Re.useRef)(null),Ei=(0,Re.useRef)(null),gr=(0,Re.useRef)(!1),Bi=fu(Lt,Tt,It,dn);function ir(Yr,ko){if(ol.cancel(ji.current),!Bi(!1,ko)){var oo=Yr;if(!oo._virtualHandled)oo._virtualHandled=!0;else return;li.current+=ko,Ei.current=ko,Wl||oo.preventDefault(),ji.current=ol(function(){var oa=gr.current?10:1;Tn(li.current*oa,!1),li.current=0})}}function Xi(Yr,ko){Tn(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=yn&&cs>ja?"x":"y"),Tr.current==="y"?ir(Yr,qo):Xi(Yr,_a)}}function na(Yr){Qe&&(gr.current=Yr.detail===Ei.current)}return[Ro,na]}function Fo(Qe,Lt,Tt,It){var dn=Re.useMemo(function(){return[new Map,[]]},[Qe,Tt.id,It]),yn=(0,ot.Z)(dn,2),Tn=yn[0],li=yn[1],ji=function(gr){var Bi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gr,ir=Tn.get(gr),Xi=Tn.get(Bi);if(ir===void 0||Xi===void 0)for(var Tr=Qe.length,ro=li.length;ro<Tr;ro+=1){var Ro,na=Qe[ro],Yr=Lt(na);Tn.set(Yr,ro);var ko=(Ro=Tt.get(Yr))!==null&&Ro!==void 0?Ro:It;if(li[ro]=(li[ro-1]||0)+ko,Yr===gr&&(ir=ro),Yr===Bi&&(Xi=ro),ir!==void 0&&Xi!==void 0)break}return{top:li[ir-1]||0,bottom:li[Xi]}};return ji}var gu=be(15671),Ot=be(43144),di=function(){function Qe(){(0,gu.Z)(this,Qe),(0,jt.Z)(this,"maps",void 0),(0,jt.Z)(this,"id",0),(0,jt.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ot.Z)(Qe,[{key:"set",value:function(Tt,It){this.maps[Tt]=It,this.id+=1,this.diffKeys.add(Tt)}},{key:"get",value:function(Tt){return this.maps[Tt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Qe}(),Kl=di;function Yu(Qe){var Lt=parseFloat(Qe);return isNaN(Lt)?0:Lt}function ec(Qe,Lt,Tt){var It=Re.useState(0),dn=(0,ot.Z)(It,2),yn=dn[0],Tn=dn[1],li=(0,Re.useRef)(new Map),ji=(0,Re.useRef)(new Kl),Ei=(0,Re.useRef)(0);function gr(){Ei.current+=1}function Bi(){var Xi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gr();var Tr=function(){var na=!1;li.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),na=!0)}}),na&&Tn(function(Yr){return Yr+1})};if(Xi)Tr();else{Ei.current+=1;var ro=Ei.current;Promise.resolve().then(function(){ro===Ei.current&&Tr()})}}function ir(Xi,Tr){var ro=Qe(Xi),Ro=li.current.get(ro);Tr?(li.current.set(ro,Tr),Bi()):li.current.delete(ro),!Ro!=!Tr&&(Tr?Lt==null||Lt(Xi):Tt==null||Tt(Xi))}return(0,Re.useEffect)(function(){return gr},[]),[ir,Bi,ji.current,yn]}var pu=14/15;function Eu(Qe,Lt,Tt){var It=(0,Re.useRef)(!1),dn=(0,Re.useRef)(0),yn=(0,Re.useRef)(0),Tn=(0,Re.useRef)(null),li=(0,Re.useRef)(null),ji,Ei=function(Xi){if(It.current){var Tr=Math.ceil(Xi.touches[0].pageX),ro=Math.ceil(Xi.touches[0].pageY),Ro=dn.current-Tr,na=yn.current-ro,Yr=Math.abs(Ro)>Math.abs(na);Yr?dn.current=Tr:yn.current=ro;var ko=Tt(Yr,Yr?Ro:na,!1,Xi);ko&&Xi.preventDefault(),clearInterval(li.current),ko&&(li.current=setInterval(function(){Yr?Ro*=pu:na*=pu;var oo=Math.floor(Yr?Ro:na);(!Tt(Yr,oo,!0)||Math.abs(oo)<=.1)&&clearInterval(li.current)},16))}},gr=function(){It.current=!1,ji()},Bi=function(Xi){ji(),Xi.touches.length===1&&!It.current&&(It.current=!0,dn.current=Math.ceil(Xi.touches[0].pageX),yn.current=Math.ceil(Xi.touches[0].pageY),Tn.current=Xi.target,Tn.current.addEventListener("touchmove",Ei,{passive:!1}),Tn.current.addEventListener("touchend",gr,{passive:!0}))};ji=function(){Tn.current&&(Tn.current.removeEventListener("touchmove",Ei),Tn.current.removeEventListener("touchend",gr))},$l(function(){return Qe&&Lt.current.addEventListener("touchstart",Bi,{passive:!0}),function(){var ir;(ir=Lt.current)===null||ir===void 0||ir.removeEventListener("touchstart",Bi),ji(),clearInterval(li.current)}},[Qe])}function pc(Qe){return Math.floor(Math.pow(Qe,.5))}function mc(Qe,Lt){var Tt="touches"in Qe?Qe.touches[0]:Qe;return Tt[Lt?"pageX":"pageY"]-window[Lt?"scrollX":"scrollY"]}function wl(Qe,Lt,Tt){Re.useEffect(function(){var It=Lt.current;if(Qe&&It){var dn=!1,yn,Tn,li=function(){ol.cancel(yn)},ji=function ir(){li(),yn=ol(function(){Tt(Tn),ir()})},Ei=function(Xi){if(!(Xi.target.draggable||Xi.button!==0)){var Tr=Xi;Tr._virtualHandled||(Tr._virtualHandled=!0,dn=!0)}},gr=function(){dn=!1,li()},Bi=function(Xi){if(dn){var Tr=mc(Xi,!1),ro=It.getBoundingClientRect(),Ro=ro.top,na=ro.bottom;if(Tr<=Ro){var Yr=Ro-Tr;Tn=-pc(Yr),ji()}else if(Tr>=na){var ko=Tr-na;Tn=pc(ko),ji()}else li()}};return It.addEventListener("mousedown",Ei),It.ownerDocument.addEventListener("mouseup",gr),It.ownerDocument.addEventListener("mousemove",Bi),function(){It.removeEventListener("mousedown",Ei),It.ownerDocument.removeEventListener("mouseup",gr),It.ownerDocument.removeEventListener("mousemove",Bi),li()}}},[Qe])}var Ca=10;function mu(Qe,Lt,Tt,It,dn,yn,Tn,li){var ji=Re.useRef(),Ei=Re.useState(null),gr=(0,ot.Z)(Ei,2),Bi=gr[0],ir=gr[1];return $l(function(){if(Bi&&Bi.times<Ca){if(!Qe.current){ir(function(Le){return(0,at.Z)({},Le)});return}yn();var Xi=Bi.targetAlign,Tr=Bi.originAlign,ro=Bi.index,Ro=Bi.offset,na=Qe.current.clientHeight,Yr=!1,ko=Xi,oo=null;if(na){for(var oa=Xi||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=Tt.get(qs);cs=qo+(Cs===void 0?It:Cs),_a=cs}for(var Be=oa==="top"?Ro:na-Ro,ze=ja;ze>=0;ze-=1){var it=dn(Lt[ze]),vt=Tt.get(it);if(vt===void 0){Yr=!0;break}if(Be-=vt,Be<=0)break}switch(oa){case"top":oo=qo-Ro;break;case"bottom":oo=cs-na+Ro;break;default:{var an=Qe.current.scrollTop,Ce=an+na;qo<an?ko="top":cs>Ce&&(ko="bottom")}}oo!==null&&Tn(oo),oo!==Bi.lastTop&&(Yr=!0)}Yr&&ir((0,at.Z)((0,at.Z)({},Bi),{},{times:Bi.times+1,targetAlign:ko,lastTop:oo}))}},[Bi,Qe.current]),function(Xi){if(Xi==null){li();return}if(ol.cancel(ji.current),typeof Xi=="number")Tn(Xi);else if(Xi&&(0,qe.Z)(Xi)==="object"){var Tr,ro=Xi.align;"index"in Xi?Tr=Xi.index:Tr=Lt.findIndex(function(Yr){return dn(Yr)===Xi.key});var Ro=Xi.offset,na=Ro===void 0?0:Ro;ir({times:0,index:Tr,offset:na,originAlign:ro})}}}var au=Re.forwardRef(function(Qe,Lt){var Tt=Qe.prefixCls,It=Qe.rtl,dn=Qe.scrollOffset,yn=Qe.scrollRange,Tn=Qe.onStartMove,li=Qe.onStopMove,ji=Qe.onScroll,Ei=Qe.horizontal,gr=Qe.spinSize,Bi=Qe.containerSize,ir=Qe.style,Xi=Qe.thumbStyle,Tr=Qe.showScrollBar,ro=Re.useState(!1),Ro=(0,ot.Z)(ro,2),na=Ro[0],Yr=Ro[1],ko=Re.useState(null),oo=(0,ot.Z)(ko,2),oa=oo[0],_a=oo[1],qo=Re.useState(null),cs=(0,ot.Z)(qo,2),ja=cs[0],rs=cs[1],qs=!It,Cs=Re.useRef(),Be=Re.useRef(),ze=Re.useState(Tr),it=(0,ot.Z)(ze,2),vt=it[0],an=it[1],Ce=Re.useRef(),Le=function(){Tr===!0||Tr===!1||(clearTimeout(Ce.current),an(!0),Ce.current=setTimeout(function(){an(!1)},3e3))},_e=yn-Bi||0,Ye=Bi-gr||0,kt=Re.useMemo(function(){if(dn===0||_e===0)return 0;var yi=dn/_e;return yi*Ye},[dn,_e,Ye]),_t=function(oi){oi.stopPropagation(),oi.preventDefault()},nn=Re.useRef({top:kt,dragging:na,pageY:oa,startTop:ja});nn.current={top:kt,dragging:na,pageY:oa,startTop:ja};var Bn=function(oi){Yr(!0),_a(mc(oi,Ei)),rs(nn.current.top),Tn(),oi.stopPropagation(),oi.preventDefault()};Re.useEffect(function(){var yi=function(sr){sr.preventDefault()},oi=Cs.current,Li=Be.current;return oi.addEventListener("touchstart",yi,{passive:!1}),Li.addEventListener("touchstart",Bn,{passive:!1}),function(){oi.removeEventListener("touchstart",yi),Li.removeEventListener("touchstart",Bn)}},[]);var vn=Re.useRef();vn.current=_e;var Mn=Re.useRef();Mn.current=Ye,Re.useEffect(function(){if(na){var yi,oi=function(sr){var to=nn.current,br=to.dragging,Sr=to.pageY,wo=to.startTop;ol.cancel(yi);var bi=Cs.current.getBoundingClientRect(),Xr=Bi/(Ei?bi.width:bi.height);if(br){var mr=(mc(sr,Ei)-Sr)*Xr,ao=wo;!qs&&Ei?ao-=mr:ao+=mr;var po=vn.current,Ar=Mn.current,To=Ar?ao/Ar:0,mo=Math.ceil(To*po);mo=Math.max(mo,0),mo=Math.min(mo,po),yi=ol(function(){ji(mo,Ei)})}},Li=function(){Yr(!1),li()};return window.addEventListener("mousemove",oi,{passive:!0}),window.addEventListener("touchmove",oi,{passive:!0}),window.addEventListener("mouseup",Li,{passive:!0}),window.addEventListener("touchend",Li,{passive:!0}),function(){window.removeEventListener("mousemove",oi),window.removeEventListener("touchmove",oi),window.removeEventListener("mouseup",Li),window.removeEventListener("touchend",Li),ol.cancel(yi)}}},[na]),Re.useEffect(function(){return Le(),function(){clearTimeout(Ce.current)}},[dn]),Re.useImperativeHandle(Lt,function(){return{delayHidden:Le}});var Xn="".concat(Tt,"-scrollbar"),Qn={position:"absolute",visibility:vt?null:"hidden"},Wi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ei?(Qn.height=8,Qn.left=0,Qn.right=0,Qn.bottom=0,Wi.height="100%",Wi.width=gr,qs?Wi.left=kt:Wi.right=kt):(Qn.width=8,Qn.top=0,Qn.bottom=0,qs?Qn.right=0:Qn.left=0,Wi.width="100%",Wi.height=gr,Wi.top=kt),Re.createElement("div",{ref:Cs,className:bt()(Xn,(0,jt.Z)((0,jt.Z)((0,jt.Z)({},"".concat(Xn,"-horizontal"),Ei),"".concat(Xn,"-vertical"),!Ei),"".concat(Xn,"-visible"),vt)),style:(0,at.Z)((0,at.Z)({},Qn),ir),onMouseDown:_t,onMouseMove:Le},Re.createElement("div",{ref:Be,className:bt()("".concat(Xn,"-thumb"),(0,jt.Z)({},"".concat(Xn,"-thumb-moving"),na)),style:(0,at.Z)((0,at.Z)({},Wi),Xi),onMouseDown:Bn}))}),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,Tt=Qe/Lt*Qe;return isNaN(Tt)&&(Tt=0),Tt=Math.max(Tt,fs),Math.floor(Tt)}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 Tt=Qe.prefixCls,It=Tt===void 0?"rc-virtual-list":Tt,dn=Qe.className,yn=Qe.height,Tn=Qe.itemHeight,li=Qe.fullHeight,ji=li===void 0?!0:li,Ei=Qe.style,gr=Qe.data,Bi=Qe.children,ir=Qe.itemKey,Xi=Qe.virtual,Tr=Qe.direction,ro=Qe.scrollWidth,Ro=Qe.component,na=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(wn){return typeof ir=="function"?ir(wn):wn==null?void 0:wn[ir]},[ir]),Cs=ec(qs,null,null),Be=(0,ot.Z)(Cs,4),ze=Be[0],it=Be[1],vt=Be[2],an=Be[3],Ce=!!(Xi!==!1&&yn&&Tn),Le=Re.useMemo(function(){return Object.values(vt.maps).reduce(function(wn,Gn){return wn+Gn},0)},[vt.id,vt.maps]),_e=Ce&&gr&&(Math.max(Tn*gr.length,Le)>yn||!!ro),Ye=Tr==="rtl",kt=bt()(It,(0,jt.Z)({},"".concat(It,"-rtl"),Ye),dn),_t=gr||sl,nn=(0,Re.useRef)(),Bn=(0,Re.useRef)(),vn=(0,Re.useRef)(),Mn=(0,Re.useState)(0),Xn=(0,ot.Z)(Mn,2),Qn=Xn[0],Wi=Xn[1],yi=(0,Re.useState)(0),oi=(0,ot.Z)(yi,2),Li=oi[0],Ui=oi[1],sr=(0,Re.useState)(!1),to=(0,ot.Z)(sr,2),br=to[0],Sr=to[1],wo=function(){Sr(!0)},bi=function(){Sr(!1)},Xr={getKey:qs};function mr(wn){Wi(function(Gn){var $n;typeof wn=="function"?$n=wn(Gn):$n=wn;var fi=Vo($n);return nn.current.scrollTop=fi,fi})}var ao=(0,Re.useRef)({start:0,end:_t.length}),po=(0,Re.useRef)(),Ar=Nc(_t,qs),To=(0,ot.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 wn;return{scrollHeight:((wn=Bn.current)===null||wn===void 0?void 0:wn.offsetHeight)||0,start:0,end:_t.length-1,offset:void 0}}for(var Gn=0,$n,fi,rr,$i=_t.length,ar=0;ar<$i;ar+=1){var Et=_t[ar],lr=qs(Et),Pr=vt.get(lr),Or=Gn+(Pr===void 0?Tn:Pr);Or>=Qn&&$n===void 0&&($n=ar,fi=Gn),Or>Qn+yn&&rr===void 0&&(rr=ar),Gn=Or}return $n===void 0&&($n=0,fi=0,rr=Math.ceil(yn/Tn)),rr===void 0&&(rr=_t.length-1),rr=Math.min(rr+1,_t.length-1),{scrollHeight:Gn,start:$n,end:rr,offset:fi}},[_e,Ce,Qn,_t,an,yn]),Dr=zo.scrollHeight,Co=zo.start,ca=zo.end,Da=zo.offset;ao.current.start=Co,ao.current.end=ca,Re.useLayoutEffect(function(){var wn=vt.getRecord();if(wn.size===1){var Gn=Array.from(wn)[0],$n=_t[Co];if($n){var fi=qs($n);if(fi===Gn){var rr=vt.get(Gn),$i=rr-Tn;mr(function(ar){return ar+$i})}}}vt.resetRecord()},[Dr]);var ga=Re.useState({width:0,height:yn}),Jr=(0,ot.Z)(ga,2),Jo=Jr[0],ua=Jr[1],Ea=function(Gn){ua({width:Gn.offsetWidth,height:Gn.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]),ea=Dr-yn,Ka=(0,Re.useRef)(ea);Ka.current=ea;function Vo(wn){var Gn=wn;return Number.isNaN(Ka.current)||(Gn=Math.min(Gn,Ka.current)),Gn=Math.max(Gn,0),Gn}var Zr=Qn<=0,ho=Qn>=ea,fo=Li<=0,Mr=Li>=ro,Gr=fu(Zr,ho,fo,Mr),Do=function(){return{x:Ye?-Li:Li,y:Qn}},ye=(0,Re.useRef)(Do()),Ie=Is(function(wn){if(ko){var Gn=(0,at.Z)((0,at.Z)({},Do()),wn);(ye.current.x!==Gn.x||ye.current.y!==Gn.y)&&(ko(Gn),ye.current=Gn)}});function je(wn,Gn){var $n=wn;Gn?((0,Je.flushSync)(function(){Ui($n)}),Ie()):mr($n)}function Ue(wn){var Gn=wn.currentTarget.scrollTop;Gn!==Qn&&mr(Gn),Yr==null||Yr(wn),Ie()}var dt=function(Gn){var $n=Gn,fi=ro?ro-Jo.width:0;return $n=Math.max($n,0),$n=Math.min($n,fi),$n},Wt=Is(function(wn,Gn){Gn?((0,Je.flushSync)(function(){Ui(function($n){var fi=$n+(Ye?-wn:wn);return dt(fi)})}),Ie()):mr(function($n){var fi=$n+wn;return fi})}),Jt=Ru(Ce,Zr,ho,fo,Mr,!!ro,Wt),rn=(0,ot.Z)(Jt,2),Fn=rn[0],Kn=rn[1];Eu(Ce,nn,function(wn,Gn,$n,fi){var rr=fi;return Gr(wn,Gn,$n)?!1:!rr||!rr._virtualHandled?(rr&&(rr._virtualHandled=!0),Fn({preventDefault:function(){},deltaX:wn?Gn:0,deltaY:wn?0:Gn}),!0):!1}),wl(_e,nn,function(wn){mr(function(Gn){return Gn+wn})}),$l(function(){function wn($n){var fi=Zr&&$n.detail<0,rr=ho&&$n.detail>0;Ce&&!fi&&!rr&&$n.preventDefault()}var Gn=nn.current;return Gn.addEventListener("wheel",Fn,{passive:!1}),Gn.addEventListener("DOMMouseScroll",Kn,{passive:!0}),Gn.addEventListener("MozMousePixelScroll",wn,{passive:!1}),function(){Gn.removeEventListener("wheel",Fn),Gn.removeEventListener("DOMMouseScroll",Kn),Gn.removeEventListener("MozMousePixelScroll",wn)}},[Ce,Zr,ho]),$l(function(){if(ro){var wn=dt(Li);Ui(wn),Ie({x:wn})}},[Jo.width,ro]);var En=function(){var Gn,$n;(Gn=es.current)===null||Gn===void 0||Gn.delayHidden(),($n=ba.current)===null||$n===void 0||$n.delayHidden()},Ci=mu(nn,_t,vt,Tn,qs,function(){return it(!0)},mr,En);Re.useImperativeHandle(Lt,function(){return{nativeElement:vn.current,getScrollInfo:Do,scrollTo:function(Gn){function $n(fi){return fi&&(0,qe.Z)(fi)==="object"&&("left"in fi||"top"in fi)}$n(Gn)?(Gn.left!==void 0&&Ui(dt(Gn.left)),Ci(Gn.top)):Ci(Gn)}}}),$l(function(){if(oo){var wn=_t.slice(Co,ca+1);oo(wn,_t)}},[Co,ca,_t]);var Gi=Fo(_t,qs,vt,Tn),Pi=_a==null?void 0:_a({start:Co,end:ca,virtual:_e,offsetX:Li,offsetY:Da,rtl:Ye,getSize:Gi}),Ai=ml(_t,Co,ca,ro,Li,ze,Bi,Xr),Ni=null;yn&&(Ni=(0,at.Z)((0,jt.Z)({},ji?"height":"maxHeight",yn),su),Ce&&(Ni.overflowY="hidden",ro&&(Ni.overflowX="hidden"),br&&(Ni.pointerEvents="none")));var ki={};return Ye&&(ki.dir="rtl"),Re.createElement("div",(0,yt.Z)({ref:vn,style:(0,at.Z)((0,at.Z)({},Ei),{},{position:"relative"}),className:kt},ki,rs),Re.createElement(Ee.Z,{onResize:Ea},Re.createElement(na,{className:"".concat(It,"-holder"),style:Ni,ref:nn,onScroll:Ue,onMouseEnter:En},Re.createElement(Jc,{prefixCls:It,height:Dr,offsetX:Li,offsetY:Da,scrollWidth:ro,onInnerResize:it,ref:Bn,innerProps:oa,rtl:Ye,extra:Pi},Ai))),_e&&Dr>yn&&Re.createElement(ll,{ref:es,prefixCls:It,scrollOffset:Qn,scrollRange:Dr,rtl:Ye,onScroll:je,onStartMove:wo,onStopMove:bi,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:It,scrollOffset:Li,scrollRange:ro,rtl:Ye,onScroll:je,onStartMove:wo,onStopMove:bi,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,Tt){var It=Lt||1;return Tt[Qe+It]-(Tt[Qe]||0)}function Pl(Qe){var Lt=Qe.rowInfo,Tt=Qe.column,It=Qe.colIndex,dn=Qe.indent,yn=Qe.index,Tn=Qe.component,li=Qe.renderIndex,ji=Qe.record,Ei=Qe.style,gr=Qe.className,Bi=Qe.inverse,ir=Qe.getHeight,Xi=Tt.render,Tr=Tt.dataIndex,ro=Tt.className,Ro=Tt.width,na=mt(Ms,["columnsOffset"]),Yr=na.columnsOffset,ko=ln(Lt,Tt,It,dn,yn),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,Be=It-1,ze=Zs(Be,rs,Yr),it=rs>1?Ro-ze:0,vt=(0,at.Z)((0,at.Z)((0,at.Z)({},cs),Ei),{},{flex:"0 0 ".concat(ze,"px"),width:"".concat(ze,"px"),marginRight:it,pointerEvents:"auto"}),an=Re.useMemo(function(){return Bi?Cs<=1:rs===0||Cs===0||Cs>1},[Cs,rs,Bi]);an?vt.visibility="hidden":Bi&&(vt.height=ir==null?void 0:ir(Cs));var Ce=an?function(){return null}:Xi,Le={};return(Cs===0||rs===0)&&(Le.rowSpan=1,Le.colSpan=1),Re.createElement(Ii,(0,yt.Z)({className:bt()(ro,gr),ellipsis:Tt.ellipsis,align:Tt.align,scope:Tt.rowScope,component:Tn,prefixCls:Lt.prefixCls,key:oo,record:ji,index:yn,renderIndex:li,dataIndex:Tr,render:Ce,shouldCellUpdate:Tt.shouldCellUpdate},oa,{appendNode:_a,additionalProps:(0,at.Z)((0,at.Z)({},qo),{},{style:vt},Le)}))}var js=Pl,_c=["data","index","className","rowKey","style","extra","getHeight"],_r=Re.forwardRef(function(Qe,Lt){var Tt=Qe.data,It=Qe.index,dn=Qe.className,yn=Qe.rowKey,Tn=Qe.style,li=Qe.extra,ji=Qe.getHeight,Ei=(0,sa.Z)(Qe,_c),gr=Tt.record,Bi=Tt.indent,ir=Tt.index,Xi=mt(Pe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Tr=Xi.scrollX,ro=Xi.flattenColumns,Ro=Xi.prefixCls,na=Xi.fixColumn,Yr=Xi.componentWidth,ko=mt(As,["getComponent"]),oo=ko.getComponent,oa=Ho(gr,yn,It,Bi),_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,Be;if(cs&&ja){var ze=qs(gr,It,Bi+1,ja),it=Ns(Cs,gr,It,Bi),vt={};na&&(vt={style:(0,jt.Z)({},"--virtual-width","".concat(Yr,"px"))});var an="".concat(Ro,"-expanded-row-cell");Be=Re.createElement(_a,{className:bt()("".concat(Ro,"-expanded-row"),"".concat(Ro,"-expanded-row-level-").concat(Bi+1),it)},Re.createElement(Ii,{component:qo,prefixCls:Ro,className:bt()(an,(0,jt.Z)({},"".concat(an,"-fixed"),na)),additionalProps:vt},ze))}var Ce=(0,at.Z)((0,at.Z)({},Tn),{},{width:Tr});li&&(Ce.position="absolute",Ce.pointerEvents="none");var Le=Re.createElement(_a,(0,yt.Z)({},rs,Ei,{"data-row-key":yn,ref:cs?null:Lt,className:bt()(dn,"".concat(Ro,"-row"),rs==null?void 0:rs.className,(0,jt.Z)({},"".concat(Ro,"-row-extra"),li)),style:(0,at.Z)((0,at.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:Bi,index:It,renderIndex:ir,record:gr,inverse:li,getHeight:ji})}));return cs?Re.createElement("div",{ref:Lt},Le,Be):Le}),ju=ge(_r),xs=ju,sd=Re.forwardRef(function(Qe,Lt){var Tt=Qe.data,It=Qe.onScroll,dn=mt(Pe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),yn=dn.flattenColumns,Tn=dn.onColumnResize,li=dn.getRowKey,ji=dn.expandedKeys,Ei=dn.prefixCls,gr=dn.childrenColumnName,Bi=dn.scrollX,ir=dn.direction,Xi=mt(As),Tr=Xi.sticky,ro=Xi.scrollY,Ro=Xi.listItemHeight,na=Xi.getComponent,Yr=Xi.onScroll,ko=Re.useRef(),oo=va(Tt,gr,ji,li),oa=Re.useMemo(function(){var Be=0;return yn.map(function(ze){var it=ze.width,vt=ze.key;return Be+=it,[vt,it,Be]})},[yn]),_a=Re.useMemo(function(){return oa.map(function(Be){return Be[2]})},[oa]);Re.useEffect(function(){oa.forEach(function(Be){var ze=(0,ot.Z)(Be,2),it=ze[0],vt=ze[1];Tn(it,vt)})},[oa]),Re.useImperativeHandle(Lt,function(){var Be,ze={scrollTo:function(vt){var an;(an=ko.current)===null||an===void 0||an.scrollTo(vt)},nativeElement:(Be=ko.current)===null||Be===void 0?void 0:Be.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 an;(an=ko.current)===null||an===void 0||an.scrollTo({left:vt})}}),ze});var qo=function(ze,it){var vt,an=(vt=oo[it])===null||vt===void 0?void 0:vt.record,Ce=ze.onCell;if(Ce){var Le,_e=Ce(an,it);return(Le=_e==null?void 0:_e.rowSpan)!==null&&Le!==void 0?Le:1}return 1},cs=function(ze){var it=ze.start,vt=ze.end,an=ze.getSize,Ce=ze.offsetY;if(vt<0)return null;for(var Le=yn.filter(function(yi){return qo(yi,it)===0}),_e=it,Ye=function(oi){if(Le=Le.filter(function(Li){return qo(Li,oi)===0}),!Le.length)return _e=oi,1},kt=it;kt>=0&&!Ye(kt);kt-=1);for(var _t=yn.filter(function(yi){return qo(yi,vt)!==1}),nn=vt,Bn=function(oi){if(_t=_t.filter(function(Li){return qo(Li,oi)!==1}),!_t.length)return nn=Math.max(oi-1,vt),1},vn=vt;vn<oo.length&&!Bn(vn);vn+=1);for(var Mn=[],Xn=function(oi){var Li=oo[oi];if(!Li)return 1;yn.some(function(Ui){return qo(Ui,oi)>1})&&Mn.push(oi)},Qn=_e;Qn<=nn;Qn+=1)Xn(Qn);var Wi=Mn.map(function(yi){var oi=oo[yi],Li=li(oi.record,yi),Ui=function(br){var Sr=yi+br-1,wo=li(oo[Sr].record,Sr),bi=an(Li,wo);return bi.bottom-bi.top},sr=an(Li);return Re.createElement(xs,{key:yi,data:oi,rowKey:Li,index:yi,style:{top:-Ce+sr.top},extra:!0,getHeight:Ui})});return Wi},ja=Re.useMemo(function(){return{columnsOffset:_a}},[_a]),rs="".concat(Ei,"-tbody"),qs=na(["body","wrapper"]),Cs={};return Tr&&(Cs.position="sticky",Cs.bottom=0,(0,qe.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 li(ze.record)},component:qs,scrollWidth:Bi,direction:ir,onVirtualScroll:function(ze){var it,vt=ze.x;It({currentTarget:(it=ko.current)===null||it===void 0?void 0:it.nativeElement,scrollLeft:vt})},onScroll:Yr,extraRender:cs},function(Be,ze,it){var vt=li(Be.record,ze);return Re.createElement(xs,{data:Be,rowKey:vt,index:ze,style:it.style})}))}),Vc=ge(sd),xh=Vc,Th=function(Lt,Tt){var It=Tt.ref,dn=Tt.onScroll;return Re.createElement(xh,{ref:It,data:Lt,onScroll:dn})};function _u(Qe,Lt){var Tt=Qe.data,It=Qe.columns,dn=Qe.scroll,yn=Qe.sticky,Tn=Qe.prefixCls,li=Tn===void 0?gl:Tn,ji=Qe.className,Ei=Qe.listItemHeight,gr=Qe.components,Bi=Qe.onScroll,ir=dn||{},Xi=ir.x,Tr=ir.y;typeof Xi!="number"&&(Xi=1),typeof Tr!="number"&&(Tr=500);var ro=At(function(Yr,ko){return sn(gr,Yr)||ko}),Ro=At(Bi),na=Re.useMemo(function(){return{sticky:yn,scrollY:Tr,listItemHeight:Ei,getComponent:ro,onScroll:Ro}},[yn,Tr,Ei,ro,Ro]);return Re.createElement(As.Provider,{value:na},Re.createElement(Xa,(0,yt.Z)({},Qe,{className:bt()(ji,"".concat(li,"-virtual")),scroll:(0,at.Z)((0,at.Z)({},dn),{},{x:Xi}),components:(0,at.Z)((0,at.Z)({},gr),{},{body:Tt!=null&&Tt.length?Th:void 0}),columns:It,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(Dn,ei,be){"use strict";be.d(ei,{g:function(){return Re},v:function(){return Nt}});var ve=be(1413),ot=be(45987),wt=be(40830),Qt=["expandable"],Nt="RC_TABLE_INTERNAL_COL_DEFINE";function Re(Je){var pt=Je.expandable,mt=(0,ot.Z)(Je,Qt),yt;return"expandable"in Je?yt=(0,ve.Z)((0,ve.Z)({},mt),pt):yt=mt,yt.showExpandColumn===!1&&(yt.expandIconColumnIndex=-1),yt}},63295:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return Nt}});var ve=be(71002),ot=Symbol.for("react.element"),wt=Symbol.for("react.transitional.element"),Qt=Symbol.for("react.fragment");function Nt(Re){return Re&&(0,ve.Z)(Re)==="object"&&(Re.$$typeof===ot||Re.$$typeof===wt)&&Re.type===Qt}},40830:function(Dn,ei,be){"use strict";var ve={},ot=[],wt=function(Vt){ot.push(Vt)};function Qt(yt,Vt){if(0)var ct}function Nt(yt,Vt){if(0)var ct}function Re(){ve={}}function Je(yt,Vt,ct){!Vt&&!ve[ct]&&(yt(!1,ct),ve[ct]=!0)}function pt(yt,Vt){Je(Qt,yt,Vt)}function mt(yt,Vt){Je(Nt,yt,Vt)}pt.preMessage=wt,pt.resetWarned=Re,pt.noteOnce=mt,ei.ZP=pt},46762:function(Dn,ei){"use strict";var be;var ve=Symbol.for("react.element"),ot=Symbol.for("react.portal"),wt=Symbol.for("react.fragment"),Qt=Symbol.for("react.strict_mode"),Nt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),mt=Symbol.for("react.forward_ref"),yt=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),We=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 wt:case Nt:case Qt:case yt:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case mt:case We:case ct:case Re:return ue;default:return se}}case ot:return se}}}be=Je,be=Re,be=ve,be=mt,be=wt,be=We,be=ct,be=ot,be=Nt,be=Qt,be=yt,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)===mt},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===We},be=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===ot},be=function(ue){return te(ue)===Nt},be=function(ue){return te(ue)===Qt},be=function(ue){return te(ue)===yt},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===wt||ue===Nt||ue===Qt||ue===yt||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===We||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===mt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},35110:function(Dn,ei,be){"use strict";be(46762)},48387:function(Dn,ei,be){"use strict";be.d(ei,{Qw:function(){return na},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(Be){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze];for(var vt in it)({}).hasOwnProperty.call(it,vt)&&(Be[vt]=it[vt])}return Be},ve.apply(null,arguments)}function ot(Be,ze){(ze==null||ze>Be.length)&&(ze=Be.length);for(var it=0,vt=Array(ze);it<ze;it++)vt[it]=Be[it];return vt}function wt(Be){if(Array.isArray(Be))return ot(Be)}function Qt(Be){if(typeof Symbol!="undefined"&&Be[Symbol.iterator]!=null||Be["@@iterator"]!=null)return Array.from(Be)}function Nt(Be,ze){if(Be){if(typeof Be=="string")return ot(Be,ze);var it={}.toString.call(Be).slice(8,-1);return it==="Object"&&Be.constructor&&(it=Be.constructor.name),it==="Map"||it==="Set"?Array.from(Be):it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it)?ot(Be,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(Be){return wt(Be)||Qt(Be)||Nt(Be)||Re()}function pt(Be){"@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(Be)}function mt(Be,ze){if(pt(Be)!="object"||!Be)return Be;var it=Be[Symbol.toPrimitive];if(it!==void 0){var vt=it.call(Be,ze||"default");if(pt(vt)!="object")return vt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ze==="string"?String:Number)(Be)}function yt(Be){var ze=mt(Be,"string");return pt(ze)=="symbol"?ze:ze+""}function Vt(Be,ze,it){return(ze=yt(ze))in Be?Object.defineProperty(Be,ze,{value:it,enumerable:!0,configurable:!0,writable:!0}):Be[ze]=it,Be}function ct(Be,ze){var it=Object.keys(Be);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Be);ze&&(vt=vt.filter(function(an){return Object.getOwnPropertyDescriptor(Be,an).enumerable})),it.push.apply(it,vt)}return it}function We(Be){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(Be,vt,it[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(it)):ct(Object(it)).forEach(function(vt){Object.defineProperty(Be,vt,Object.getOwnPropertyDescriptor(it,vt))})}return Be}function Te(Be){if(Array.isArray(Be))return Be}function ne(Be,ze){var it=Be==null?null:typeof Symbol!="undefined"&&Be[Symbol.iterator]||Be["@@iterator"];if(it!=null){var vt,an,Ce,Le,_e=[],Ye=!0,kt=!1;try{if(Ce=(it=it.call(Be)).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,an=_t}finally{try{if(!Ye&&it.return!=null&&(Le=it.return(),Object(Le)!==Le))return}finally{if(kt)throw an}}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(Be,ze){return Te(Be)||ne(Be,ze)||Nt(Be,ze)||te()}function se(Be,ze){if(Be==null)return{};var it={};for(var vt in Be)if({}.hasOwnProperty.call(Be,vt)){if(ze.indexOf(vt)!==-1)continue;it[vt]=Be[vt]}return it}function ge(Be,ze){if(Be==null)return{};var it,vt,an=se(Be,ze);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(Be);for(vt=0;vt<Ce.length;vt++)it=Ce[vt],ze.indexOf(it)===-1&&{}.propertyIsEnumerable.call(Be,it)&&(an[it]=Be[it])}return an}function me(){return me=Object.assign?Object.assign.bind():function(Be){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze];for(var vt in it)Object.prototype.hasOwnProperty.call(it,vt)&&(Be[vt]=it[vt])}return Be},me.apply(this,arguments)}function xe(Be,ze){(ze==null||ze>Be.length)&&(ze=Be.length);for(var it=0,vt=new Array(ze);it<ze;it++)vt[it]=Be[it];return vt}function Pe(Be){if(Array.isArray(Be))return xe(Be)}function Ke(Be){if(typeof Symbol!="undefined"&&Be[Symbol.iterator]!=null||Be["@@iterator"]!=null)return Array.from(Be)}function nt(Be,ze){if(Be){if(typeof Be=="string")return xe(Be,ze);var it=Object.prototype.toString.call(Be).slice(8,-1);if(it==="Object"&&Be.constructor&&(it=Be.constructor.name),it==="Map"||it==="Set")return Array.from(Be);if(it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it))return xe(Be,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 qe(Be){return Pe(Be)||Ke(Be)||nt(Be)||ft()}function at(Be){"@babel/helpers - typeof";return at=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},at(Be)}function jt(Be,ze){if(at(Be)!=="object"||Be===null)return Be;var it=Be[Symbol.toPrimitive];if(it!==void 0){var vt=it.call(Be,ze||"default");if(at(vt)!=="object")return vt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ze==="string"?String:Number)(Be)}function Mt(Be){var ze=jt(Be,"string");return at(ze)==="symbol"?ze:String(ze)}function bt(Be,ze,it){return ze=Mt(ze),ze in Be?Object.defineProperty(Be,ze,{value:it,enumerable:!0,configurable:!0,writable:!0}):Be[ze]=it,Be}function Bt(Be,ze){var it=Object.keys(Be);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Be);ze&&(vt=vt.filter(function(an){return Object.getOwnPropertyDescriptor(Be,an).enumerable})),it.push.apply(it,vt)}return it}function Ht(Be){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze]!=null?arguments[ze]:{};ze%2?Bt(Object(it),!0).forEach(function(vt){bt(Be,vt,it[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(it)):Bt(Object(it)).forEach(function(vt){Object.defineProperty(Be,vt,Object.getOwnPropertyDescriptor(it,vt))})}return Be}function Jn(Be){if(Array.isArray(Be))return Be}function qn(Be,ze){var it=Be==null?null:typeof Symbol!="undefined"&&Be[Symbol.iterator]||Be["@@iterator"];if(it!=null){var vt,an,Ce,Le,_e=[],Ye=!0,kt=!1;try{if(Ce=(it=it.call(Be)).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,an=_t}finally{try{if(!Ye&&it.return!=null&&(Le=it.return(),Object(Le)!==Le))return}finally{if(kt)throw an}}return _e}}function sn(){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 Nn(Be,ze){return Jn(Be)||qn(Be,ze)||nt(Be,ze)||sn()}function lt(Be,ze){if(Be==null)return{};var it={},vt=Object.keys(Be),an,Ce;for(Ce=0;Ce<vt.length;Ce++)an=vt[Ce],!(ze.indexOf(an)>=0)&&(it[an]=Be[an]);return it}function Ge(Be,ze){if(Be==null)return{};var it=lt(Be,ze),vt,an;if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(Be);for(an=0;an<Ce.length;an++)vt=Ce[an],!(ze.indexOf(vt)>=0)&&Object.prototype.propertyIsEnumerable.call(Be,vt)&&(it[vt]=Be[vt])}return it}var Ne=be(67294);function Rn(Be){var ze=Ne.useRef();ze.current=Be;var it=Ne.useCallback(function(){for(var vt,an=arguments.length,Ce=new Array(an),Le=0;Le<an;Le++)Ce[Le]=arguments[Le];return(vt=ze.current)===null||vt===void 0?void 0:vt.call.apply(vt,[ze].concat(Ce))},[]);return it}function ai(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Zt=ai()?Ne.useLayoutEffect:Ne.useEffect,ci=Zt,On=function(ze,it){var vt=Ne.useRef(!0);Zt(function(){if(!vt.current)return ze()},it),Zt(function(){return vt.current=!1,function(){vt.current=!0}},[])};function Mi(Be){var ze=Ne.useRef(!1),it=Ne.useState(Be),vt=Nn(it,2),an=vt[0],Ce=vt[1];Ne.useEffect(function(){return ze.current=!1,function(){ze.current=!0}},[]);function Le(_e,Ye){Ye&&ze.current||Ce(_e)}return[an,Le]}function Xt(Be){return Be!==void 0}function At(Be,ze){var it=ze||{},vt=it.defaultValue,an=it.value,Ce=it.onChange,Le=it.postState,_e=Mi(function(){return Xt(an)?an:Xt(vt)?typeof vt=="function"?vt():vt:typeof Be=="function"?Be():Be}),Ye=Nn(_e,2),kt=Ye[0],_t=Ye[1],nn=an!==void 0?an:kt,Bn=Le?Le(nn):nn,vn=Rn(Ce),Mn=Mi([nn]),Xn=Nn(Mn,2),Qn=Xn[0],Wi=Xn[1];On(function(){var oi=Qn[0];kt!==oi&&vn(kt,oi)},[Qn]),On(function(){Xt(an)||_t(an)},[an]);var yi=Rn(function(oi,Li){_t(oi,Li),Wi([nn],Li)});return[Bn,yi]}var on={};function Si(Be,ze){}function Gt(Be,ze){}function Xe(){on={}}function ke(Be,ze,it){!ze&&!on[it]&&(Be(!1,it),on[it]=!0)}function Me(Be,ze){ke(Si,Be,ze)}function He(Be,ze){ke(Gt,Be,ze)}var et=Me,Oe=be(94184),ut=be.n(Oe),Vn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Be=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(Be)||/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(Be==null?void 0:Be.substr(0,4))},jn=be(95936);function An(Be,ze,it){var vt=Ne.useRef({});return(!("value"in vt.current)||it(vt.current.condition,ze))&&(vt.current.value=Be(),vt.current.condition=ze),vt.current.value}function Pn(Be,ze){typeof Be=="function"?Be(ze):at(Be)==="object"&&Be&&"current"in Be&&(Be.current=ze)}function si(){for(var Be=arguments.length,ze=new Array(Be),it=0;it<Be;it++)ze[it]=arguments[it];var vt=ze.filter(function(an){return an});return vt.length<=1?vt[0]:function(an){ze.forEach(function(Ce){Pn(Ce,an)})}}function mn(){for(var Be=arguments.length,ze=new Array(Be),it=0;it<Be;it++)ze[it]=arguments[it];return An(function(){return si.apply(void 0,ze)},ze,function(vt,an){return vt.length===an.length&&vt.every(function(Ce,Le){return Ce===an[Le]})})}function Fi(Be){var ze,it,vt=isMemo(Be)?Be.type.type:Be.type;return!(typeof vt=="function"&&!((ze=vt.prototype)!==null&&ze!==void 0&&ze.render)||typeof Be=="function"&&!((it=Be.prototype)!==null&&it!==void 0&&it.render))}var Vi=function(ze){var it=ze.className,vt=ze.customizeIcon,an=ze.customizeIconProps,Ce=ze.children,Le=ze.onMouseDown,_e=ze.onClick,Ye=typeof vt=="function"?vt(an):vt;return Ne.createElement("span",{className:it,onMouseDown:function(_t){_t.preventDefault(),Le==null||Le(_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))},Ir=Vi,Qi=function(ze,it,vt,an,Ce){var Le=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(at(an)==="object")return an.clearIcon;if(Ce)return Ce},[an,Ce]),_t=Ne.useMemo(function(){return!!(!Le&&an&&(vt.length||_e)&&!(Ye==="combobox"&&_e===""))},[an,Le,vt.length,_e,Ye]);return{allowClear:_t,clearIcon:Ne.createElement(Ir,{className:"".concat(ze,"-clear"),onMouseDown:it,customizeIcon:kt},"\xD7")}},Di=Ne.createContext(null);function $r(){return Ne.useContext(Di)}function Yi(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ze=Ne.useState(!1),it=Nn(ze,2),vt=it[0],an=it[1],Ce=Ne.useRef(null),Le=function(){window.clearTimeout(Ce.current)};Ne.useEffect(function(){return Le},[]);var _e=function(kt,_t){Le(),Ce.current=window.setTimeout(function(){an(kt),_t&&_t()},Be)};return[vt,_e,Le]}function hr(){var Be=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(an){(an||ze.current===null)&&(ze.current=an),window.clearTimeout(it.current),it.current=window.setTimeout(function(){ze.current=null},Be)}return[function(){return ze.current},vt]}function dr(Be,ze,it,vt){var an=Ne.useRef(null);an.current={open:ze,triggerOpen:it,customizedTrigger:vt},Ne.useEffect(function(){function Ce(Le){var _e;if(!((_e=an.current)!==null&&_e!==void 0&&_e.customizedTrigger)){var Ye=Le.target;Ye.shadowRoot&&Le.composed&&(Ye=Le.composedPath()[0]||Ye),an.current.open&&Be().filter(function(kt){return kt}).every(function(kt){return!kt.contains(Ye)&&kt!==Ye})&&an.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}}},Ii=kn;function ra(Be){return Be&&![Ii.ESC,Ii.SHIFT,Ii.BACKSPACE,Ii.TAB,Ii.WIN_KEY,Ii.ALT,Ii.META,Ii.WIN_KEY_RIGHT,Ii.CTRL,Ii.SEMICOLON,Ii.EQUALS,Ii.CAPS_LOCK,Ii.CONTEXT_MENU,Ii.F1,Ii.F2,Ii.F3,Ii.F4,Ii.F5,Ii.F6,Ii.F7,Ii.F8,Ii.F9,Ii.F10,Ii.F11,Ii.F12].includes(Be)}var Un=`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`,Kr=`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`,ia="".concat(Un," ").concat(Kr).split(/[\s\n]+/),sa="aria-",Wa="data-";function ma(Be,ze){return Be.indexOf(ze)===0}function Ha(Be){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=Ht({},ze);var vt={};return Object.keys(Be).forEach(function(an){(it.aria&&(an==="role"||ma(an,sa))||it.data&&ma(an,Wa)||it.attr&&ia.includes(an))&&(vt[an]=Be[an])}),vt}function da(){return da=Object.assign?Object.assign.bind():function(Be){for(var ze=1;ze<arguments.length;ze++){var it=arguments[ze];for(var vt in it)Object.prototype.hasOwnProperty.call(it,vt)&&(Be[vt]=it[vt])}return Be},da.apply(this,arguments)}function la(Be){"@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(Be)}function No(Be,ze){if(la(Be)!=="object"||Be===null)return Be;var it=Be[Symbol.toPrimitive];if(it!==void 0){var vt=it.call(Be,ze||"default");if(la(vt)!=="object")return vt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ze==="string"?String:Number)(Be)}function ti(Be){var ze=No(Be,"string");return la(ze)==="symbol"?ze:String(ze)}function Ee(Be,ze,it){return ze=ti(ze),ze in Be?Object.defineProperty(Be,ze,{value:it,enumerable:!0,configurable:!0,writable:!0}):Be[ze]=it,Be}function pn(Be,ze){var it=Object.keys(Be);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Be);ze&&(vt=vt.filter(function(an){return Object.getOwnPropertyDescriptor(Be,an).enumerable})),it.push.apply(it,vt)}return it}function hn(Be){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(Be,vt,it[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(it)):pn(Object(it)).forEach(function(vt){Object.defineProperty(Be,vt,Object.getOwnPropertyDescriptor(it,vt))})}return Be}function ii(Be){if(Array.isArray(Be))return Be}function Yn(Be,ze){var it=Be==null?null:typeof Symbol!="undefined"&&Be[Symbol.iterator]||Be["@@iterator"];if(it!=null){var vt,an,Ce,Le,_e=[],Ye=!0,kt=!1;try{if(Ce=(it=it.call(Be)).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,an=_t}finally{try{if(!Ye&&it.return!=null&&(Le=it.return(),Object(Le)!==Le))return}finally{if(kt)throw an}}return _e}}function In(Be,ze){(ze==null||ze>Be.length)&&(ze=Be.length);for(var it=0,vt=new Array(ze);it<ze;it++)vt[it]=Be[it];return vt}function en(Be,ze){if(Be){if(typeof Be=="string")return In(Be,ze);var it=Object.prototype.toString.call(Be).slice(8,-1);if(it==="Object"&&Be.constructor&&(it=Be.constructor.name),it==="Map"||it==="Set")return Array.from(Be);if(it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it))return In(Be,ze)}}function ni(){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 zt(Be,ze){return ii(Be)||Yn(Be,ze)||en(Be,ze)||ni()}function Kt(Be,ze){if(Be==null)return{};var it={},vt=Object.keys(Be),an,Ce;for(Ce=0;Ce<vt.length;Ce++)an=vt[Ce],!(ze.indexOf(an)>=0)&&(it[an]=Be[an]);return it}function Ft(Be,ze){if(Be==null)return{};var it=Kt(Be,ze),vt,an;if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(Be);for(an=0;an<Ce.length;an++)vt=Ce[an],!(ze.indexOf(vt)>=0)&&Object.prototype.propertyIsEnumerable.call(Be,vt)&&(it[vt]=Be[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,hi=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}},[])},Ut=function(ze,it){hi(function(vt){if(!vt)return ze()},it)},zn=hi,xn=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fr=void 0;function ri(Be,ze){var it=Be.prefixCls,vt=Be.invalidate,an=Be.item,Ce=Be.renderItem,Le=Be.responsive,_e=Be.responsiveDisabled,Ye=Be.registerSize,kt=Be.itemKey,_t=Be.className,nn=Be.style,Bn=Be.children,vn=Be.display,Mn=Be.order,Xn=Be.component,Qn=Xn===void 0?"div":Xn,Wi=Ft(Be,xn),yi=Le&&!vn;function oi(br){Ye(kt,br)}Ne.useEffect(function(){return function(){oi(null)}},[]);var Li=Ce&&an!==Fr?Ce(an):Bn,Ui;vt||(Ui={opacity:yi?0:1,height:yi?0:Fr,overflowY:yi?"hidden":Fr,order:Le?Mn:Fr,pointerEvents:yi?"none":Fr,position:yi?"absolute":Fr});var sr={};yi&&(sr["aria-hidden"]=!0);var to=Ne.createElement(Qn,da({className:ut()(!vt&&it,_t),style:hn(hn({},Ui),nn)},sr,Wi,{ref:ze}),Li);return Le&&(to=Ne.createElement(un.Z,{onResize:function(Sr){var wo=Sr.offsetWidth;oi(wo)},disabled:_e},to)),to}var $t=Ne.forwardRef(ri);$t.displayName="Item";var _i=$t;function Wr(Be){var ze=Ne.useRef();ze.current=Be;var it=Ne.useCallback(function(){for(var vt,an=arguments.length,Ce=new Array(an),Le=0;Le<an;Le++)Ce[Le]=arguments[Le];return(vt=ze.current)===null||vt===void 0?void 0:vt.call.apply(vt,[ze].concat(Ce))},[]);return it}var Br=be(73935),Sn=function(ze){return+setTimeout(ze,16)},or=function(ze){return clearTimeout(ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Sn=function(ze){return window.requestAnimationFrame(ze)},or=function(ze){return window.cancelAnimationFrame(ze)});var Xo=0,Na=new Map;function aa(Be){Na.delete(Be)}var ur=function(ze){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xo+=1;var vt=Xo;function an(Ce){if(Ce===0)aa(vt),ze();else{var Le=Sn(function(){an(Ce-1)});Na.set(vt,Le)}}return an(it),vt};ur.cancel=function(Be){var ze=Na.get(Be);return aa(ze),or(ze)};var Nr=ur;function io(Be){if(typeof MessageChannel=="undefined")Nr(Be);else{var ze=new MessageChannel;ze.port1.onmessage=function(){return Be()},ze.port2.postMessage(void 0)}}function va(){var Be=Ne.useRef(null),ze=function(vt){Be.current||(Be.current=[],io(function(){(0,Br.unstable_batchedUpdates)(function(){Be.current.forEach(function(an){an()}),Be.current=null})})),Be.current.push(vt)};return ze}function Ho(Be,ze){var it=Ne.useState(ze),vt=zt(it,2),an=vt[0],Ce=vt[1],Le=Wr(function(_e){Be(function(){Ce(_e)})});return[an,Le]}var pi=Ne.createContext(null),lo=["component"],al=["className"],el=["className"],Ns=function(ze,it){var vt=Ne.useContext(pi);if(!vt){var an=ze.component,Ce=an===void 0?"div":an,Le=Ft(ze,lo);return Ne.createElement(Ce,da({},Le,{ref:it}))}var _e=vt.className,Ye=Ft(vt,al),kt=ze.className,_t=Ft(ze,el);return Ne.createElement(pi.Provider,{value:null},Ne.createElement(_i,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(Be){return"+ ".concat(Be.length," ...")}function $a(Be,ze){var it=Be.prefixCls,vt=it===void 0?"rc-overflow":it,an=Be.data,Ce=an===void 0?[]:an,Le=Be.renderItem,_e=Be.renderRawItem,Ye=Be.itemKey,kt=Be.itemWidth,_t=kt===void 0?10:kt,nn=Be.ssr,Bn=Be.style,vn=Be.className,Mn=Be.maxCount,Xn=Be.renderRest,Qn=Be.renderRawRest,Wi=Be.suffix,yi=Be.component,oi=yi===void 0?"div":yi,Li=Be.itemComponent,Ui=Be.onVisibleChange,sr=Ft(Be,Va),to=nn==="full",br=va(),Sr=Ho(br,null),wo=zt(Sr,2),bi=wo[0],Xr=wo[1],mr=bi||0,ao=Ho(br,new Map),po=zt(ao,2),Ar=po[0],To=po[1],mo=Ho(br,0),zo=zt(mo,2),Dr=zo[0],Co=zo[1],ca=Ho(br,0),Da=zt(ca,2),ga=Da[0],Jr=Da[1],Jo=Ho(br,0),ua=zt(Jo,2),Ea=ua[0],es=ua[1],ba=(0,Ne.useState)(null),_o=zt(ba,2),yo=_o[0],ea=_o[1],Ka=(0,Ne.useState)(null),Vo=zt(Ka,2),Zr=Vo[0],ho=Vo[1],fo=Ne.useMemo(function(){return Zr===null&&to?Number.MAX_SAFE_INTEGER:Zr||0},[Zr,bi]),Mr=(0,Ne.useState)(!1),Gr=zt(Mr,2),Do=Gr[0],ye=Gr[1],Ie="".concat(vt,"-item"),je=Math.max(Dr,ga),Ue=Mn===Ao,dt=Ce.length&&Ue,Wt=Mn===ms,Jt=dt||typeof Mn=="number"&&Ce.length>Mn,rn=(0,Ne.useMemo)(function(){var lr=Ce;return dt?bi===null&&to?lr=Ce:lr=Ce.slice(0,Math.min(Ce.length,mr/_t)):typeof Mn=="number"&&(lr=Ce.slice(0,Mn)),lr},[Ce,_t,bi,Mn,dt]),Fn=(0,Ne.useMemo)(function(){return dt?Ce.slice(fo+1):Ce.slice(rn.length)},[Ce,rn,dt,fo]),Kn=(0,Ne.useCallback)(function(lr,Pr){var Or;return typeof Ye=="function"?Ye(lr):(Or=Ye&&(lr==null?void 0:lr[Ye]))!==null&&Or!==void 0?Or:Pr},[Ye]),En=(0,Ne.useCallback)(Le||function(lr){return lr},[Le]);function Ci(lr,Pr,Or){Zr===lr&&(Pr===void 0||Pr===yo)||(ho(lr),Or||(ye(lr<Ce.length-1),Ui==null||Ui(lr)),Pr!==void 0&&ea(Pr))}function Gi(lr,Pr){Xr(Pr.clientWidth)}function Pi(lr,Pr){To(function(Or){var Oo=new Map(Or);return Pr===null?Oo.delete(lr):Oo.set(lr,Pr),Oo})}function Ai(lr,Pr){Jr(Pr),Co(ga)}function Ni(lr,Pr){es(Pr)}function ki(lr){return Ar.get(Kn(rn[lr],lr))}zn(function(){if(mr&&typeof je=="number"&&rn){var lr=Ea,Pr=rn.length,Or=Pr-1;if(!Pr){Ci(0,null);return}for(var Oo=0;Oo<Pr;Oo+=1){var Ur=ki(Oo);if(to&&(Ur=Ur||0),Ur===void 0){Ci(Oo-1,void 0,!0);break}if(lr+=Ur,Or===0&&lr<=mr||Oo===Or-1&&lr+ki(Or)<=mr){Ci(Or,null);break}else if(lr+je>mr){Ci(Oo-1,lr-Ur-Ea+ga);break}}Wi&&ki(0)+Ea>mr&&ea(null)}},[mr,Ar,ga,Ea,Kn,rn]);var wn=Do&&!!Fn.length,Gn={};yo!==null&&dt&&(Gn={position:"absolute",left:yo,top:0});var $n={prefixCls:Ie,responsive:dt,component:Li,invalidate:Wt},fi=_e?function(lr,Pr){var Or=Kn(lr,Pr);return Ne.createElement(pi.Provider,{key:Or,value:hn(hn({},$n),{},{order:Pr,item:lr,itemKey:Or,registerSize:Pi,display:Pr<=fo})},_e(lr,Pr))}:function(lr,Pr){var Or=Kn(lr,Pr);return Ne.createElement(_i,da({},$n,{order:Pr,key:Or,item:lr,renderItem:En,itemKey:Or,registerSize:Pi,display:Pr<=fo}))},rr,$i={order:wn?fo:Number.MAX_SAFE_INTEGER,className:"".concat(Ie,"-rest"),registerSize:Ai,display:wn};if(Qn)Qn&&(rr=Ne.createElement(pi.Provider,{value:hn(hn({},$n),$i)},Qn(Fn)));else{var ar=Xn||Ba;rr=Ne.createElement(_i,da({},$n,$i),typeof ar=="function"?ar(Fn):ar)}var Et=Ne.createElement(oi,da({className:ut()(!Wt&&vt,vn),style:Bn,ref:ze},sr),rn.map(fi),Jt?rr:null,Wi&&Ne.createElement(_i,da({},$n,{responsive:Ue,responsiveDisabled:!dt,order:fo,className:"".concat(Ie,"-suffix"),registerSize:Ni,display:!0,style:Gn}),Wi));return Ue&&(Et=Ne.createElement(un.Z,{onResize:Gi,disabled:!dt},Et)),Et}var Er=Ne.forwardRef($a);Er.displayName="Overflow",Er.Item=Yo,Er.RESPONSIVE=Ao,Er.INVALIDATE=ms;var uo=Er,So=uo,Wn=function(ze,it){var vt,an=ze.prefixCls,Ce=ze.id,Le=ze.inputElement,_e=ze.disabled,Ye=ze.tabIndex,kt=ze.autoFocus,_t=ze.autoComplete,nn=ze.editable,Bn=ze.activeDescendantId,vn=ze.value,Mn=ze.maxLength,Xn=ze.onKeyDown,Qn=ze.onMouseDown,Wi=ze.onChange,yi=ze.onPaste,oi=ze.onCompositionStart,Li=ze.onCompositionEnd,Ui=ze.onBlur,sr=ze.open,to=ze.attrs,br=Le||Ne.createElement("input",null),Sr=br,wo=Sr.ref,bi=Sr.props,Xr=bi.onKeyDown,mr=bi.onChange,ao=bi.onMouseDown,po=bi.onCompositionStart,Ar=bi.onCompositionEnd,To=bi.onBlur,mo=bi.style;return"maxLength"in br.props,br=Ne.cloneElement(br,Ht(Ht(Ht({type:"search"},bi),{},{id:Ce,ref:si(it,wo),disabled:_e,tabIndex:Ye,autoComplete:_t||"off",autoFocus:kt,className:ut()("".concat(an,"-selection-search-input"),(vt=br)===null||vt===void 0||(vt=vt.props)===null||vt===void 0?void 0:vt.className),role:"combobox","aria-expanded":sr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ce,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ce,"_list"),"aria-activedescendant":sr?Bn:void 0},to),{},{value:nn?vn:"",maxLength:Mn,readOnly:!nn,unselectable:nn?null:"on",style:Ht(Ht({},mo),{},{opacity:nn?null:0}),onKeyDown:function(Dr){Xn(Dr),Xr&&Xr(Dr)},onMouseDown:function(Dr){Qn(Dr),ao&&ao(Dr)},onChange:function(Dr){Wi(Dr),mr&&mr(Dr)},onCompositionStart:function(Dr){oi(Dr),po&&po(Dr)},onCompositionEnd:function(Dr){Li(Dr),Ar&&Ar(Dr)},onPaste:yi,onBlur:function(Dr){Ui(Dr),To&&To(Dr)}})),br},ka=Ne.forwardRef(Wn),Cn=ka;function Po(Be){return Array.isArray(Be)?Be:Be!==void 0?[Be]:[]}var Ws=typeof window!="undefined"&&window.document&&window.document.documentElement,ds=Ws;function kl(Be){return Be!=null}function Ss(Be){return!Be&&Be!==0}function Ua(Be){return["string","number"].includes(at(Be))}function us(Be){var ze=void 0;return Be&&(Ua(Be.title)?ze=Be.title.toString():Ua(Be.label)&&(ze=Be.label.toString())),ze}function tl(Be,ze){ds?Ne.useLayoutEffect(Be,ze):Ne.useEffect(Be,ze)}function ts(Be){var ze;return(ze=Be.key)!==null&&ze!==void 0?ze:Be.value}var wr=function(ze){ze.preventDefault(),ze.stopPropagation()},st=function(ze){var it=ze.id,vt=ze.prefixCls,an=ze.values,Ce=ze.open,Le=ze.searchValue,_e=ze.autoClearSearchValue,Ye=ze.inputRef,kt=ze.placeholder,_t=ze.disabled,nn=ze.mode,Bn=ze.showSearch,vn=ze.autoFocus,Mn=ze.autoComplete,Xn=ze.activeDescendantId,Qn=ze.tabIndex,Wi=ze.removeIcon,yi=ze.maxTagCount,oi=ze.maxTagTextLength,Li=ze.maxTagPlaceholder,Ui=Li===void 0?function(Ka){return"+ ".concat(Ka.length," ...")}:Li,sr=ze.tagRender,to=ze.onToggleOpen,br=ze.onRemove,Sr=ze.onInputChange,wo=ze.onInputPaste,bi=ze.onInputKeyDown,Xr=ze.onInputMouseDown,mr=ze.onInputCompositionStart,ao=ze.onInputCompositionEnd,po=ze.onInputBlur,Ar=Ne.useRef(null),To=(0,Ne.useState)(0),mo=Nn(To,2),zo=mo[0],Dr=mo[1],Co=(0,Ne.useState)(!1),ca=Nn(Co,2),Da=ca[0],ga=ca[1],Jr="".concat(vt,"-selection"),Jo=Ce||nn==="multiple"&&_e===!1||nn==="tags"?Le:"",ua=nn==="tags"||nn==="multiple"&&_e===!1||Bn&&(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(Jr,"-item"),bt({},"".concat(Jr,"-item-disabled"),ho))},Ne.createElement("span",{className:"".concat(Jr,"-item-content")},Zr),fo&&Ne.createElement(Ir,{className:"".concat(Jr,"-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},sr({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 oi=="number"&&(typeof ho=="string"||typeof ho=="number")){var Do=String(Gr);Do.length>oi&&(Gr="".concat(Do.slice(0,oi),"..."))}var ye=function(je){je&&je.stopPropagation(),br(Vo)};return typeof sr=="function"?es(fo,Gr,Zr,Mr,ye):Ea(Vo,Gr,Zr,Mr,ye)},_o=function(Vo){if(!an.length)return null;var Zr=typeof Ui=="function"?Ui(Vo):Ui;return typeof sr=="function"?es(void 0,Zr,!1,!1,void 0,!0):Ea({title:Zr},Zr,!1)},yo=Ne.createElement("div",{className:"".concat(Jr,"-search"),style:{width:zo},onFocus:function(){ga(!0)},onBlur:function(){ga(!1)}},Ne.createElement(Cn,{ref:Ye,open:Ce,prefixCls:vt,id:it,inputElement:null,disabled:_t,autoFocus:vn,autoComplete:Mn,editable:ua,activeDescendantId:Xn,value:Jo,onKeyDown:bi,onMouseDown:Xr,onChange:Sr,onPaste:wo,onCompositionStart:mr,onCompositionEnd:ao,onBlur:po,tabIndex:Qn,attrs:Ha(ze,!0)}),Ne.createElement("span",{ref:Ar,className:"".concat(Jr,"-search-mirror"),"aria-hidden":!0},Jo,"\xA0")),ea=Ne.createElement(So,{prefixCls:"".concat(Jr,"-overflow"),data:an,renderItem:ba,renderRest:_o,suffix:yo,itemKey:ts,maxCount:yi});return Ne.createElement("span",{className:"".concat(Jr,"-wrap")},ea,!an.length&&!Jo&&Ne.createElement("span",{className:"".concat(Jr,"-placeholder")},kt))},St=st,Rt=function(ze){var it=ze.inputElement,vt=ze.prefixCls,an=ze.id,Ce=ze.inputRef,Le=ze.disabled,_e=ze.autoFocus,Ye=ze.autoComplete,kt=ze.activeDescendantId,_t=ze.mode,nn=ze.open,Bn=ze.values,vn=ze.placeholder,Mn=ze.tabIndex,Xn=ze.showSearch,Qn=ze.searchValue,Wi=ze.activeValue,yi=ze.maxLength,oi=ze.onInputKeyDown,Li=ze.onInputMouseDown,Ui=ze.onInputChange,sr=ze.onInputPaste,to=ze.onInputCompositionStart,br=ze.onInputCompositionEnd,Sr=ze.onInputBlur,wo=ze.title,bi=Ne.useState(!1),Xr=Nn(bi,2),mr=Xr[0],ao=Xr[1],po=_t==="combobox",Ar=po||Xn,To=Bn[0],mo=Qn||"";po&&Wi&&!mr&&(mo=Wi),Ne.useEffect(function(){po&&ao(!1)},[po,Wi]);var zo=_t!=="combobox"&&!nn&&!Xn?!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},vn)},[To,zo,vn,vt]);return Ne.createElement("span",{className:"".concat(vt,"-selection-wrap")},Ne.createElement("span",{className:"".concat(vt,"-selection-search")},Ne.createElement(Cn,{ref:Ce,prefixCls:vt,id:an,open:nn,inputElement:it,disabled:Le,autoFocus:_e,autoComplete:Ye,editable:Ar,activeDescendantId:kt,value:mo,onKeyDown:oi,onMouseDown:Li,onChange:function(Da){ao(!0),Ui(Da)},onPaste:sr,onCompositionStart:to,onCompositionEnd:br,onBlur:Sr,tabIndex:Mn,attrs:Ha(ze,!0),maxLength:po?yi: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=Rt,Hn=function(ze,it){var vt=(0,Ne.useRef)(null),an=(0,Ne.useRef)(!1),Ce=ze.prefixCls,Le=ze.open,_e=ze.mode,Ye=ze.showSearch,kt=ze.tokenWithEnter,_t=ze.disabled,nn=ze.prefix,Bn=ze.autoClearSearchValue,vn=ze.onSearch,Mn=ze.onSearchSubmit,Xn=ze.onToggleOpen,Qn=ze.onInputKeyDown,Wi=ze.onInputBlur,yi=ze.domRef;Ne.useImperativeHandle(it,function(){return{focus:function(Dr){vt.current.focus(Dr)},blur:function(){vt.current.blur()}}});var oi=hr(0),Li=Nn(oi,2),Ui=Li[0],sr=Li[1],to=function(Dr){var Co=Dr.which,ca=vt.current instanceof HTMLTextAreaElement;!ca&&Le&&(Co===Ii.UP||Co===Ii.DOWN)&&Dr.preventDefault(),Qn&&Qn(Dr),Co===Ii.ENTER&&_e==="tags"&&!an.current&&!Le&&(Mn==null||Mn(Dr.target.value)),!(ca&&!Le&&~[Ii.UP,Ii.DOWN,Ii.LEFT,Ii.RIGHT].indexOf(Co))&&ra(Co)&&Xn(!0)},br=function(){sr(!0)},Sr=(0,Ne.useRef)(null),wo=function(Dr){vn(Dr,!0,an.current)!==!1&&Xn(!0)},bi=function(){an.current=!0},Xr=function(Dr){an.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=Ui();Dr.target!==vt.current&&!Co&&!(_e==="combobox"&&_t)&&Dr.preventDefault(),(_e!=="combobox"&&(!Ye||!Co)||!Le)&&(Le&&Bn!==!1&&vn("",!0,!1),Xn())},To={inputRef:vt,onInputKeyDown:to,onInputMouseDown:br,onInputChange:mr,onInputPaste:ao,onInputCompositionStart:bi,onInputCompositionEnd:Xr,onInputBlur:Wi},mo=_e==="multiple"||_e==="tags"?Ne.createElement(St,me({},ze,To)):Ne.createElement(gn,me({},ze,To));return Ne.createElement("div",{ref:yi,className:"".concat(Ce,"-selector"),onClick:po,onMouseDown:Ar},nn&&Ne.createElement("div",{className:"".concat(Ce,"-prefix")},nn),mo)},Oi=Ne.forwardRef(Hn),Yt=Oi,Zn=be(98280),Ji=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xi=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,an=ze.disabled,Ce=ze.visible,Le=ze.children,_e=ze.popupElement,Ye=ze.animation,kt=ze.transitionName,_t=ze.dropdownStyle,nn=ze.dropdownClassName,Bn=ze.direction,vn=Bn===void 0?"ltr":Bn,Mn=ze.placement,Xn=ze.builtinPlacements,Qn=ze.dropdownMatchSelectWidth,Wi=ze.dropdownRender,yi=ze.dropdownAlign,oi=ze.getPopupContainer,Li=ze.empty,Ui=ze.getTriggerDOMNode,sr=ze.onPopupVisibleChange,to=ze.onPopupMouseEnter,br=Ge(ze,Ji),Sr="".concat(vt,"-dropdown"),wo=_e;Wi&&(wo=Wi(_e));var bi=Ne.useMemo(function(){return Xn||xi(Qn)},[Xn,Qn]),Xr=Ye?"".concat(Sr,"-").concat(Ye):kt,mr=typeof Qn=="number",ao=Ne.useMemo(function(){return mr?null:Qn===!1?"minWidth":"width"},[Qn,mr]),po=_t;mr&&(po=Ht(Ht({},po),{},{width:Qn}));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(Zn.Z,me({},br,{showAction:sr?["click"]:[],hideAction:sr?["click"]:[],popupPlacement:Mn||(vn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:bi,prefixCls:Sr,popupTransitionName:Xr,popup:Ne.createElement("div",{onMouseEnter:to},wo),ref:Ar,stretch:ao,popupAlign:yi,popupVisible:Ce,getPopupContainer:oi,popupClassName:ut()(nn,bt({},"".concat(Sr,"-empty"),Li)),popupStyle:po,getTriggerDOMNode:Ui,onPopupVisibleChange:sr}),Le)},Zi=Ne.forwardRef(nr),vi=Zi;function pr(Be){return Jn(Be)||Ke(Be)||nt(Be)||sn()}function fn(Be,ze){var it=Be.key,vt;return"value"in Be&&(vt=Be.value),it!=null?it:vt!==void 0?vt:"rc-index-key-".concat(ze)}function eo(Be){return typeof Be!="undefined"&&!Number.isNaN(Be)}function so(Be,ze){var it=Be||{},vt=it.label,an=it.value,Ce=it.options,Le=it.groupLabel,_e=vt||(ze?"children":"label");return{label:_e,value:an||"value",options:Ce||"options",groupLabel:Le||_e}}function ya(Be){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=ze.fieldNames,vt=ze.childrenAsData,an=[],Ce=so(it,!1),Le=Ce.label,_e=Ce.value,Ye=Ce.options,kt=Ce.groupLabel;function _t(nn,Bn){Array.isArray(nn)&&nn.forEach(function(vn){if(Bn||!(Ye in vn)){var Mn=vn[_e];an.push({key:fn(vn,an.length),groupOption:Bn,data:vn,label:vn[Le],value:Mn})}else{var Xn=vn[kt];Xn===void 0&&vt&&(Xn=vn.label),an.push({key:fn(vn,an.length),group:!0,data:vn,label:Xn}),_t(vn[Ye],!0)}})}return _t(Be,!1),an}function fa(Be){var ze=Ht({},Be);return"props"in ze||Object.defineProperty(ze,"props",{get:function(){return et(!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 an=!1,Ce=function _e(Ye,kt){var _t=pr(kt),nn=_t[0],Bn=_t.slice(1);if(!nn)return[Ye];var vn=Ye.split(nn);return an=an||vn.length>1,vn.reduce(function(Mn,Xn){return[].concat(qe(Mn),qe(_e(Xn,Bn)))},[]).filter(Boolean)},Le=Ce(ze,it);return an?typeof vt!="undefined"?Le.slice(0,vt):Le:null},ns=Ne.createContext(null),Us=ns;function Ds(Be){var ze=Be.visible,it=Be.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(an){var Ce=an.label,Le=an.value;return["number","string"].includes(at(Ce))?Ce:Le}).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(Be,ze){var it,vt=Be.id,an=Be.prefixCls,Ce=Be.className,Le=Be.showSearch,_e=Be.tagRender,Ye=Be.direction,kt=Be.omitDomProps,_t=Be.displayValues,nn=Be.onDisplayValuesChange,Bn=Be.emptyOptions,vn=Be.notFoundContent,Mn=vn===void 0?"Not Found":vn,Xn=Be.onClear,Qn=Be.mode,Wi=Be.disabled,yi=Be.loading,oi=Be.getInputElement,Li=Be.getRawInputElement,Ui=Be.open,sr=Be.defaultOpen,to=Be.onDropdownVisibleChange,br=Be.activeValue,Sr=Be.onActiveValueChange,wo=Be.activeDescendantId,bi=Be.searchValue,Xr=Be.autoClearSearchValue,mr=Be.onSearch,ao=Be.onSearchSplit,po=Be.tokenSeparators,Ar=Be.allowClear,To=Be.prefix,mo=Be.suffixIcon,zo=Be.clearIcon,Dr=Be.OptionList,Co=Be.animation,ca=Be.transitionName,Da=Be.dropdownStyle,ga=Be.dropdownClassName,Jr=Be.dropdownMatchSelectWidth,Jo=Be.dropdownRender,ua=Be.dropdownAlign,Ea=Be.placement,es=Be.builtinPlacements,ba=Be.getPopupContainer,_o=Be.showAction,yo=_o===void 0?[]:_o,ea=Be.onFocus,Ka=Be.onBlur,Vo=Be.onKeyUp,Zr=Be.onKeyDown,ho=Be.onMouseDown,fo=Ge(Be,fl),Mr=cn(Qn),Gr=(Le!==void 0?Le:Mr)||Qn==="combobox",Do=Ht({},fo);Hs.forEach(function(Za){delete Do[Za]}),kt==null||kt.forEach(function(Za){delete Do[Za]});var ye=Ne.useState(!1),Ie=Nn(ye,2),je=Ie[0],Ue=Ie[1];Ne.useEffect(function(){Ue(Vn())},[]);var dt=Ne.useRef(null),Wt=Ne.useRef(null),Jt=Ne.useRef(null),rn=Ne.useRef(null),Fn=Ne.useRef(null),Kn=Ne.useRef(!1),En=Yi(),Ci=Nn(En,3),Gi=Ci[0],Pi=Ci[1],Ai=Ci[2];Ne.useImperativeHandle(ze,function(){var Za,Go;return{focus:(Za=rn.current)===null||Za===void 0?void 0:Za.focus,blur:(Go=rn.current)===null||Go===void 0?void 0:Go.blur,scrollTo:function(pa){var Lo;return(Lo=Fn.current)===null||Lo===void 0?void 0:Lo.scrollTo(pa)},nativeElement:dt.current||Wt.current}});var Ni=Ne.useMemo(function(){var Za;if(Qn!=="combobox")return bi;var Go=(Za=_t[0])===null||Za===void 0?void 0:Za.value;return typeof Go=="string"||typeof Go=="number"?String(Go):""},[bi,Qn,_t]),ki=Qn==="combobox"&&typeof oi=="function"&&oi()||null,wn=typeof Li=="function"&&Li(),Gn=mn(Wt,wn==null||(it=wn.props)===null||it===void 0?void 0:it.ref),$n=Ne.useState(!1),fi=Nn($n,2),rr=fi[0],$i=fi[1];ci(function(){$i(!0)},[]);var ar=At(!1,{defaultValue:sr,value:Ui}),Et=Nn(ar,2),lr=Et[0],Pr=Et[1],Or=rr?lr:!1,Oo=!Mn&&Bn;(Wi||Oo&&Or&&Qn==="combobox")&&(Or=!1);var Ur=Oo?!1:Or,wi=Ne.useCallback(function(Za){var Go=Za!==void 0?Za:!Or;Wi||(Pr(Go),Or!==Go&&(to==null||to(Go)))},[Wi,Or,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 Qn!=="combobox"&&Wo&&(Uo="",ao==null||ao(Wo),wi(!1),Lo=!1),mr&&Ni!==Uo&&mr(Uo,{source:yl?"typing":"effect"}),Lo}},Qr=function(Go){!Go||!Go.trim()||mr(Go,{source:"submit"})};Ne.useEffect(function(){!Or&&!Mr&&Qn!=="combobox"&&vr("",!1,!1)},[Or]),Ne.useEffect(function(){lr&&Wi&&Pr(!1),Wi&&!Kn.current&&Pi(!1)},[Wi]);var xr=hr(),fr=Nn(xr,2),Hr=fr[0],Vr=fr[1],Aa=Ne.useRef(!1),Ya=function(Go){var yl=Hr(),pa=Go.key,Lo=pa==="Enter";if(Lo&&(Qn!=="combobox"&&Go.preventDefault(),Or||wi(!0)),Vr(!!Ni),pa==="Backspace"&&!yl&&Mr&&!Ni&&_t.length){for(var Uo=qe(_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&&nn(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(Or&&(!Lo||!Aa.current)){var ul;Lo&&(Aa.current=!0),(ul=Fn.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(Or){var Uo;(Uo=Fn.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});nn(yl,{type:"remove",values:[Go]})},vo=function(){Aa.current=!1},Qo=Ne.useRef(!1),xa=function(){Pi(!0),Wi||(ea&&!Qo.current&&ea.apply(void 0,arguments),yo.includes("focus")&&wi(!0)),Qo.current=!0},Oa=function(){Kn.current=!0,Pi(!1,function(){Qo.current=!1,Kn.current=!1,wi(!1)}),!Wi&&(Ni&&(Qn==="tags"?mr(Ni,{source:"submit"}):Qn==="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=Jt.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),Ai(),!je&&!Lo.contains(document.activeElement)){var Ps;(Ps=rn.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=Nn(wa,2),gs=Pa[1];function Fa(){gs({})}var Ja;wn&&(Ja=function(Go){wi(Go)}),dr(function(){var Za;return[dt.current,(Za=Jt.current)===null||Za===void 0?void 0:Za.getPopupElement()]},Ur,wi,!!wn);var Es=Ne.useMemo(function(){return Ht(Ht({},Be),{},{notFoundContent:Mn,open:Or,triggerOpen:Ur,id:vt,showSearch:Gr,multiple:Mr,toggleOpen:wi})},[Be,Mn,Ur,Or,vt,Gr,Mr,wi]),Ma=!!mo||yi,Qa;Ma&&(Qa=Ne.createElement(Ir,{className:ut()("".concat(an,"-arrow"),bt({},"".concat(an,"-arrow-loading"),yi)),customizeIcon:mo,customizeIconProps:{loading:yi,searchValue:Ni,open:Or,focused:Gi,showSearch:Gr}}));var Ks=function(){var Go;Xn==null||Xn(),(Go=rn.current)===null||Go===void 0||Go.focus(),nn([],{type:"clear",values:_t}),vr("",!1,!1)},Xs=Qi(an,Ks,_t,Ar,zo,Wi,Ni,Qn),vl=Xs.allowClear,hs=Xs.clearIcon,Yl=Ne.createElement(Dr,{ref:Fn}),Js=ut()(an,Ce,bt(bt(bt(bt(bt(bt(bt(bt(bt(bt({},"".concat(an,"-focused"),Gi),"".concat(an,"-multiple"),Mr),"".concat(an,"-single"),!Mr),"".concat(an,"-allow-clear"),Ar),"".concat(an,"-show-arrow"),Ma),"".concat(an,"-disabled"),Wi),"".concat(an,"-loading"),yi),"".concat(an,"-open"),Or),"".concat(an,"-customize-input"),ki),"".concat(an,"-show-search"),Gr)),ws=Ne.createElement(vi,{ref:Jt,disabled:Wi,prefixCls:an,visible:Ur,popupElement:Yl,animation:Co,transitionName:ca,dropdownStyle:Da,dropdownClassName:ga,direction:Ye,dropdownMatchSelectWidth:Jr,dropdownRender:Jo,dropdownAlign:ua,placement:Ea,builtinPlacements:es,getPopupContainer:ba,empty:Bn,getTriggerDOMNode:function(Go){return Wt.current||Go},onPopupVisibleChange:Ja,onPopupMouseEnter:Fa},wn?Ne.cloneElement(wn,{ref:Gn}):Ne.createElement(Yt,me({},Be,{domRef:Wt,prefixCls:an,inputElement:ki,ref:rn,id:vt,prefix:To,showSearch:Gr,autoClearSearchValue:Xr,mode:Qn,activeDescendantId:wo,tagRender:_e,values:_t,open:Or,onToggleOpen:wi,activeValue:br,searchValue:Ni,onSearch:vr,onSearchSubmit:Qr,onRemove:co,tokenWithEnter:qi,onInputBlur:vo}))),bs;return wn?bs=ws:bs=Ne.createElement("div",me({className:Js},Do,{ref:dt,onMouseDown:Rr,onKeyDown:Ya,onKeyUp:bo,onFocus:xa,onBlur:Oa}),Ne.createElement(Ds,{visible:Gi&&!Or,values:_t}),ws,Qa,vl&&hs),Ne.createElement(Di.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(Be,ze){var it=Ht({},Be);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(Be){return typeof Be=="string"||typeof Be=="number"}var Is=function(ze,it){var vt=$r(),an=vt.prefixCls,Ce=vt.id,Le=vt.open,_e=vt.multiple,Ye=vt.mode,kt=vt.searchValue,_t=vt.toggleOpen,nn=vt.notFoundContent,Bn=vt.onPopupScroll,vn=Ne.useContext(Us),Mn=vn.maxCount,Xn=vn.flattenOptions,Qn=vn.onActiveValue,Wi=vn.defaultActiveFirstOption,yi=vn.onSelect,oi=vn.menuItemSelectedIcon,Li=vn.rawValues,Ui=vn.fieldNames,sr=vn.virtual,to=vn.direction,br=vn.listHeight,Sr=vn.listItemHeight,wo=vn.optionRender,bi="".concat(an,"-item"),Xr=An(function(){return Xn},[Le,Xn],function(_o,yo){return yo[0]&&_o[1]!==yo[1]}),mr=Ne.useRef(null),ao=Ne.useMemo(function(){return _e&&eo(Mn)&&(Li==null?void 0:Li.size)>=Mn},[_e,Mn,Li==null?void 0:Li.size]),po=function(yo){yo.preventDefault()},Ar=function(yo){var ea;(ea=mr.current)===null||ea===void 0||ea.scrollTo(typeof yo=="number"?{index:yo}:yo)},To=Ne.useCallback(function(_o){return Ye==="combobox"?!1:Li.has(_o)},[Ye,qe(Li).toString(),Li.size]),mo=function(yo){for(var ea=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ka=Xr.length,Vo=0;Vo<Ka;Vo+=1){var Zr=(yo+Vo*ea+Ka)%Ka,ho=Xr[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=Nn(zo,2),Co=Dr[0],ca=Dr[1],Da=function(yo){var ea=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ca(yo);var Ka={source:ea?"keyboard":"mouse"},Vo=Xr[yo];if(!Vo){Qn(null,-1,Ka);return}Qn(Vo.value,yo,Ka)};(0,Ne.useEffect)(function(){Da(Wi!==!1?mo(0):-1)},[Xr.length,kt]);var ga=Ne.useCallback(function(_o){return Ye==="combobox"?String(_o).toLowerCase()===kt.toLowerCase():Li.has(_o)},[Ye,kt,qe(Li).toString(),Li.size]);(0,Ne.useEffect)(function(){var _o=setTimeout(function(){if(!_e&&Le&&Li.size===1){var ea=Array.from(Li)[0],Ka=Xr.findIndex(function(Vo){var Zr=Vo.data;return Zr.value===ea});Ka!==-1&&(Da(Ka),Ar(Ka))}});if(Le){var yo;(yo=mr.current)===null||yo===void 0||yo.scrollTo(void 0)}return function(){return clearTimeout(_o)}},[Le,kt]);var Jr=function(yo){yo!==void 0&&yi(yo,{selected:!Li.has(yo)}),_e||_t(!1)};if(Ne.useImperativeHandle(it,function(){return{onKeyDown:function(yo){var ea=yo.which,Ka=yo.ctrlKey;switch(ea){case Ii.N:case Ii.P:case Ii.UP:case Ii.DOWN:{var Vo=0;if(ea===Ii.UP?Vo=-1:ea===Ii.DOWN?Vo=1:il()&&Ka&&(ea===Ii.N?Vo=1:ea===Ii.P&&(Vo=-1)),Vo!==0){var Zr=mo(Co+Vo,Vo);Ar(Zr),Da(Zr,!0)}break}case Ii.TAB:case Ii.ENTER:{var ho,fo=Xr[Co];fo&&!(fo!=null&&(ho=fo.data)!==null&&ho!==void 0&&ho.disabled)&&!ao?Jr(fo.value):Jr(void 0),Le&&yo.preventDefault();break}case Ii.ESC:_t(!1),Le&&yo.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yo){Ar(yo)}}}),Xr.length===0)return Ne.createElement("div",{role:"listbox",id:"".concat(Ce,"_list"),className:"".concat(bi,"-empty"),onMouseDown:po},nn);var Jo=Object.keys(Ui).map(function(_o){return Ui[_o]}),ua=function(yo){return yo.label};function Ea(_o,yo){var ea=_o.group;return{role:ea?"presentation":"option",id:"".concat(Ce,"_list_").concat(yo)}}var es=function(yo){var ea=Xr[yo];if(!ea)return null;var Ka=ea.data||{},Vo=Ka.value,Zr=ea.group,ho=Ha(Ka,!0),fo=ua(ea);return ea?Ne.createElement("div",me({"aria-label":typeof fo=="string"&&!Zr?fo:null},ho,{key:yo},Ea(ea,yo),{"aria-selected":ga(Vo)}),Vo):null},ba={role:"listbox",id:"".concat(Ce,"_list")};return Ne.createElement(Ne.Fragment,null,sr&&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:Xr,height:br,itemHeight:Sr,fullHeight:!1,onMouseDown:po,onScroll:Bn,virtual:sr,direction:to,innerProps:sr?null:ba},function(_o,yo){var ea=_o.group,Ka=_o.groupOption,Vo=_o.data,Zr=_o.label,ho=_o.value,fo=Vo.key;if(ea){var Mr,Gr=(Mr=Vo.title)!==null&&Mr!==void 0?Mr:Xa(Zr)?Zr.toString():void 0;return Ne.createElement("div",{className:ut()(bi,"".concat(bi,"-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,dt=Ge(Vo,Ra),Wt=fc(dt,Jo),Jt=To(ho),rn=Do||!Jt&&ao,Fn="".concat(bi,"-option"),Kn=ut()(bi,Fn,Ue,bt(bt(bt(bt({},"".concat(Fn,"-grouped"),Ka),"".concat(Fn,"-active"),Co===yo&&!rn),"".concat(Fn,"-disabled"),rn),"".concat(Fn,"-selected"),Jt)),En=ua(_o),Ci=!oi||typeof oi=="function"||Jt,Gi=typeof En=="number"?En:En||ho,Pi=Xa(Gi)?Gi.toString():void 0;return ye!==void 0&&(Pi=ye),Ne.createElement("div",me({},Ha(Wt),sr?{}:Ea(_o,yo),{"aria-selected":ga(ho),className:Kn,title:Pi,onMouseMove:function(){Co===yo||rn||Da(yo)},onClick:function(){rn||Jr(ho)},style:je}),Ne.createElement("div",{className:"".concat(Fn,"-content")},typeof wo=="function"?wo(_o,{index:yo}):Gi),Ne.isValidElement(oi)||Jt,Ci&&Ne.createElement(Ir,{className:"".concat(bi,"-option-state"),customizeIcon:oi,customizeIconProps:{value:ho,disabled:rn,isSelected:Jt}},Jt?"\u2713":null))}))},pl=Ne.forwardRef(Is),Mo=pl,$u=function(Be,ze){var it=Ne.useRef({values:new Map,options:new Map}),vt=Ne.useMemo(function(){var Ce=it.current,Le=Ce.values,_e=Ce.options,Ye=Be.map(function(nn){if(nn.label===void 0){var Bn;return Ht(Ht({},nn),{},{label:(Bn=Le.get(nn.value))===null||Bn===void 0?void 0:Bn.label})}return nn}),kt=new Map,_t=new Map;return Ye.forEach(function(nn){kt.set(nn.value,nn),_t.set(nn.value,ze.get(nn.value)||_e.get(nn.value))}),it.current.values=kt,it.current.options=_t,Ye},[Be,ze]),an=Ne.useCallback(function(Ce){return ze.get(Ce)||it.current.options.get(Ce)},[ze]);return[vt,an]};function Pu(Be,ze){return Po(Be).join("").toUpperCase().includes(ze)}var $l=function(Be,ze,it,vt,an){return Ne.useMemo(function(){if(!it||vt===!1)return Be;var Ce=ze.options,Le=ze.label,_e=ze.value,Ye=[],kt=typeof vt=="function",_t=it.toUpperCase(),nn=kt?vt:function(vn,Mn){return an?Pu(Mn[an],_t):Mn[Ce]?Pu(Mn[Le!=="children"?Le:"label"],_t):Pu(Mn[_e],_t)},Bn=kt?function(vn){return fa(vn)}:function(vn){return vn};return Be.forEach(function(vn){if(vn[Ce]){var Mn=nn(it,Bn(vn));if(Mn)Ye.push(vn);else{var Xn=vn[Ce].filter(function(Qn){return nn(it,Bn(Qn))});Xn.length&&Ye.push(Ht(Ht({},vn),{},bt({},Ce,Xn)))}return}nn(it,Bn(vn))&&Ye.push(vn)}),Ye},[Be,vt,an,it,ze])},ou=0,gc=ai();function kr(){var Be;return gc?(Be=ou,ou+=1):Be="TEST_OR_SSR",Be}function hl(Be){var ze=Ne.useState(),it=Nn(ze,2),vt=it[0],an=it[1];return Ne.useEffect(function(){an("rc_select_".concat(kr()))},[]),Be||vt}function Rs(Be){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=[];return Ne.Children.forEach(Be,function(vt){vt==null&&!ze.keepEmpty||(Array.isArray(vt)?it=it.concat(Rs(vt)):(0,jn.isFragment)(vt)&&vt.props?it=it.concat(Rs(vt.props.children,ze)):it.push(vt))}),it}var Bu=["children","value"],zu=["children"];function Ou(Be){var ze=Be,it=ze.key,vt=ze.props,an=vt.children,Ce=vt.value,Le=Ge(vt,Bu);return Ht({key:it,value:Ce!==void 0?Ce:it,children:an},Le)}function Sa(Be){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rs(Be).map(function(it,vt){if(!Ne.isValidElement(it)||!it.type)return null;var an=it,Ce=an.type.isSelectOptGroup,Le=an.key,_e=an.props,Ye=_e.children,kt=Ge(_e,zu);return ze||!Ce?Ou(it):Ht(Ht({key:"__RC_SELECT_GRP__".concat(Le===null?vt:Le,"__"),label:Le},kt),{},{options:Sa(Ye)})}).filter(function(it){return it})}var Lu=function(ze,it,vt,an,Ce){return Ne.useMemo(function(){var Le=ze,_e=!ze;_e&&(Le=Sa(it));var Ye=new Map,kt=new Map,_t=function(vn,Mn,Xn){Xn&&typeof Xn=="string"&&vn.set(Mn[Xn],Mn)},nn=function Bn(vn){for(var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xn=0;Xn<vn.length;Xn+=1){var Qn=vn[Xn];!Qn[vt.options]||Mn?(Ye.set(Qn[vt.value],Qn),_t(kt,Qn,vt.label),_t(kt,Qn,an),_t(kt,Qn,Ce)):Bn(Qn[vt.options],!0)}};return nn(Le),{options:Le,valueOptions:Ye,labelOptions:kt}},[ze,it,vt,an,Ce])},Fl=Lu;function Il(Be){var ze=Ne.useRef();ze.current=Be;var it=Ne.useCallback(function(){return ze.current.apply(ze,arguments)},[]);return it}function eu(Be){var ze=Be.mode,it=Be.options,vt=Be.children,an=Be.backfill,Ce=Be.allowClear,Le=Be.placeholder,_e=Be.getInputElement,Ye=Be.showSearch,kt=Be.onSearch,_t=Be.defaultOpen,nn=Be.autoFocus,Bn=Be.labelInValue,vn=Be.value,Mn=Be.inputValue,Xn=Be.optionLabelProp,Qn=isMultiple(ze),Wi=Ye!==void 0?Ye:Qn||ze==="combobox",yi=it||convertChildrenToData(vt);if(warning(ze!=="tags"||yi.every(function(sr){return!sr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ze==="tags"||ze==="combobox"){var oi=yi.some(function(sr){return sr.options?sr.options.some(function(to){return typeof("value"in to?to.value:to.key)=="number"}):typeof("value"in sr?sr.value:sr.key)=="number"});warning(!oi,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ze!=="combobox"||!Xn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ze==="combobox"||!an,"`backfill` only works with `combobox` mode."),warning(ze==="combobox"||!_e,"`getInputElement` only work with `combobox` mode."),noteOnce(ze!=="combobox"||!_e||!Ce||!Le,"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||nn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),vn!=null){var Li=toArray(vn);warning(!Bn||Li.every(function(sr){return _typeof(sr)==="object"&&("key"in sr||"value"in sr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Qn||Array.isArray(vn),"`value` should be array when `mode` is `multiple` or `tags`")}if(vt){var Ui=null;toNodeArray(vt).some(function(sr){if(!React.isValidElement(sr)||!sr.type)return!1;var to=sr,br=to.type;if(br.isSelectOption)return!1;if(br.isSelectOptGroup){var Sr=toNodeArray(sr.props.children).every(function(wo){return!React.isValidElement(wo)||!sr.type||wo.type.isSelectOption?!0:(Ui=wo.type,!1)});return!Sr}return Ui=br,!0}),Ui&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ui.displayName||Ui.name||Ui,"`.")),warning(Mn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Cc(Be,ze){if(Be){var it=function vt(an){for(var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le=0;Le<an.length;Le++){var _e=an[Le];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(Be)}}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(Be){return!Be||at(Be)!=="object"}var ah=Ne.forwardRef(function(Be,ze){var it=Be.id,vt=Be.mode,an=Be.prefixCls,Ce=an===void 0?"rc-select":an,Le=Be.backfill,_e=Be.fieldNames,Ye=Be.inputValue,kt=Be.searchValue,_t=Be.onSearch,nn=Be.autoClearSearchValue,Bn=nn===void 0?!0:nn,vn=Be.onSelect,Mn=Be.onDeselect,Xn=Be.dropdownMatchSelectWidth,Qn=Xn===void 0?!0:Xn,Wi=Be.filterOption,yi=Be.filterSort,oi=Be.optionFilterProp,Li=Be.optionLabelProp,Ui=Be.options,sr=Be.optionRender,to=Be.children,br=Be.defaultActiveFirstOption,Sr=Be.menuItemSelectedIcon,wo=Be.virtual,bi=Be.direction,Xr=Be.listHeight,mr=Xr===void 0?200:Xr,ao=Be.listItemHeight,po=ao===void 0?20:ao,Ar=Be.labelRender,To=Be.value,mo=Be.defaultValue,zo=Be.labelInValue,Dr=Be.onChange,Co=Be.maxCount,ca=Ge(Be,Ol),Da=hl(it),ga=cn(vt),Jr=!!(!Ui&&to),Jo=Ne.useMemo(function(){return Wi===void 0&&vt==="combobox"?!1:Wi},[Wi,vt]),ua=Ne.useMemo(function(){return so(_e,Jr)},[JSON.stringify(_e),Jr]),Ea=At("",{value:kt!==void 0?kt:Ye,postState:function(qi){return qi||""}}),es=Nn(Ea,2),ba=es[0],_o=es[1],yo=Fl(Ui,to,ua,oi,Li),ea=yo.valueOptions,Ka=yo.labelOptions,Vo=yo.options,Zr=Ne.useCallback(function(wi){var qi=Po(wi);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 Hr=ea.get(Lr);if(Hr){var Vr;if(Eo===void 0&&(Eo=Hr==null?void 0:Hr[Li||ua.label]),vr===void 0&&(vr=(Vr=Hr==null?void 0:Hr.key)!==null&&Vr!==void 0?Vr:Lr),Qr=Hr==null?void 0:Hr.disabled,xr=Hr==null?void 0:Hr.title,0)var Aa}return{label:Eo,value:Lr,key:vr,disabled:Qr,title:xr}})},[ua,Li,ea]),ho=At(mo,{value:To}),fo=Nn(ho,2),Mr=fo[0],Gr=fo[1],Do=Ne.useMemo(function(){var wi,qi=ga&&Mr===null?[]:Mr,Hi=Zr(qi);return vt==="combobox"&&Ss((wi=Hi[0])===null||wi===void 0?void 0:wi.value)?[]:Hi},[Mr,Zr,vt,ga]),ye=$u(Do,ea),Ie=Nn(ye,2),je=Ie[0],Ue=Ie[1],dt=Ne.useMemo(function(){if(!vt&&je.length===1){var wi=je[0];if(wi.value===null&&(wi.label===null||wi.label===void 0))return[]}return je.map(function(qi){var Hi;return Ht(Ht({},qi),{},{label:(Hi=typeof Ar=="function"?Ar(qi):qi.label)!==null&&Hi!==void 0?Hi:qi.value})})},[vt,je,Ar]),Wt=Ne.useMemo(function(){return new Set(je.map(function(wi){return wi.value}))},[je]);Ne.useEffect(function(){if(vt==="combobox"){var wi,qi=(wi=je[0])===null||wi===void 0?void 0:wi.value;_o(kl(qi)?String(qi):"")}},[je]);var Jt=Il(function(wi,qi){var Hi=qi!=null?qi:wi;return bt(bt({},ua.value,wi),ua.label,Hi)}),rn=Ne.useMemo(function(){if(vt!=="tags")return Vo;var wi=qe(Vo),qi=function(Lr){return ea.has(Lr)};return qe(je).sort(function(Hi,Lr){return Hi.value<Lr.value?-1:1}).forEach(function(Hi){var Lr=Hi.value;qi(Lr)||wi.push(Jt(Lr,Hi.label))}),wi},[Jt,Vo,ea,je,vt]),Fn=$l(rn,ua,ba,Jo,oi),Kn=Ne.useMemo(function(){return vt!=="tags"||!ba||Fn.some(function(wi){return wi[oi||"value"]===ba})||Fn.some(function(wi){return wi[ua.value]===ba})?Fn:[Jt(ba)].concat(qe(Fn))},[Jt,oi,vt,Fn,ba,ua]),En=function wi(qi){var Hi=qe(qi).sort(function(Lr,Eo){return yi(Lr,Eo,{searchValue:ba})});return Hi.map(function(Lr){return Array.isArray(Lr.options)?Ht(Ht({},Lr),{},{options:Lr.options.length>0?wi(Lr.options):Lr.options}):Lr})},Ci=Ne.useMemo(function(){return yi?En(Kn):Kn},[Kn,yi,ba]),Gi=Ne.useMemo(function(){return ya(Ci,{fieldNames:ua,childrenAsData:Jr})},[Ci,ua,Jr]),Pi=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])}},Ai=Ne.useState(null),Ni=Nn(Ai,2),ki=Ni[0],wn=Ni[1],Gn=Ne.useState(0),$n=Nn(Gn,2),fi=$n[0],rr=$n[1],$i=br!==void 0?br:vt!=="combobox",ar=Ne.useCallback(function(wi,qi){var Hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lr=Hi.source,Eo=Lr===void 0?"keyboard":Lr;rr(qi),Le&&vt==="combobox"&&wi!==null&&Eo==="keyboard"&&wn(String(wi))},[Le,vt]),Et=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&&vn){var vr=Eo(),Qr=Nn(vr,2),xr=Qr[0],fr=Qr[1];vn(xr,fr)}else if(!Hi&&Mn&&Lr!=="clear"){var Hr=Eo(),Vr=Nn(Hr,2),Aa=Vr[0],Ya=Vr[1];Mn(Aa,Ya)}},lr=Il(function(wi,qi){var Hi,Lr=ga?qi.selected:!0;Lr?Hi=ga?[].concat(qe(je),[wi]):[wi]:Hi=je.filter(function(Eo){return Eo.value!==wi}),Pi(Hi),Et(wi,Lr),vt==="combobox"?wn(""):(!cn||Bn)&&(_o(""),wn(""))}),Pr=function(qi,Hi){Pi(qi);var Lr=Hi.type,Eo=Hi.values;(Lr==="remove"||Lr==="clear")&&Eo.forEach(function(vr){Et(vr.value,!1,Lr)})},Or=function(qi,Hi){if(_o(qi),wn(null),Hi.source==="submit"){var Lr=(qi||"").trim();if(Lr){var Eo=Array.from(new Set([].concat(qe(Wt),[Lr])));Pi(Eo),Et(Lr,!0),_o("")}return}Hi.source!=="blur"&&(vt==="combobox"&&Pi(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(qe(Wt),qe(Hi))));Pi(Lr),Lr.forEach(function(Eo){Et(Eo,!0)})},Ur=Ne.useMemo(function(){var wi=wo!==!1&&Qn!==!1;return Ht(Ht({},yo),{},{flattenOptions:Gi,onActiveValue:ar,defaultActiveFirstOption:$i,onSelect:lr,menuItemSelectedIcon:Sr,rawValues:Wt,fieldNames:ua,virtual:wi,direction:bi,listHeight:mr,listItemHeight:po,childrenAsData:Jr,maxCount:Co,optionRender:sr})},[Co,yo,Gi,ar,$i,lr,Sr,Wt,ua,wo,Qn,bi,mr,po,Jr,sr]);return Ne.createElement(Us.Provider,{value:Ur},Ne.createElement(dl,me({},ca,{id:Da,prefixCls:Ce,ref:ze,omitDomProps:Cu,mode:vt,displayValues:dt,onDisplayValuesChange:Pr,direction:bi,searchValue:ba,onSearch:Or,autoClearSearchValue:Bn,onSearchSplit:Oo,dropdownMatchSelectWidth:Qn,OptionList:Mo,emptyOptions:!Gi.length,activeValue:ki,activeDescendantId:"".concat(Da,"_list_").concat(fi)})))}),Hc=ah;Hc.Option=hu,Hc.OptGroup=Ys;var Yh=null,Wu=null,El=be(17341);function Hu(Be){if(Array.isArray(Be))return Be}function Iu(Be,ze){var it=Be==null?null:typeof Symbol!="undefined"&&Be[Symbol.iterator]||Be["@@iterator"];if(it!=null){var vt,an,Ce,Le,_e=[],Ye=!0,kt=!1;try{if(Ce=(it=it.call(Be)).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,an=_t}finally{try{if(!Ye&&it.return!=null&&(Le=it.return(),Object(Le)!==Le))return}finally{if(kt)throw an}}return _e}}function ku(Be,ze){(ze==null||ze>Be.length)&&(ze=Be.length);for(var it=0,vt=new Array(ze);it<ze;it++)vt[it]=Be[it];return vt}function Jc(Be,ze){if(Be){if(typeof Be=="string")return ku(Be,ze);var it=Object.prototype.toString.call(Be).slice(8,-1);if(it==="Object"&&Be.constructor&&(it=Be.constructor.name),it==="Map"||it==="Set")return Array.from(Be);if(it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it))return ku(Be,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(Be,ze){return Hu(Be)||Iu(Be,ze)||Jc(Be,ze)||Sh()}function sh(Be){var ze=Ne.useRef();ze.current=Be;var it=Ne.useCallback(function(){for(var vt,an=arguments.length,Ce=new Array(an),Le=0;Le<an;Le++)Ce[Le]=arguments[Le];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(Be){var ze=Ne.useRef(!1),it=Ne.useState(Be),vt=ml(it,2),an=vt[0],Ce=vt[1];Ne.useEffect(function(){return ze.current=!1,function(){ze.current=!0}},[]);function Le(_e,Ye){Ye&&ze.current||Ce(_e)}return[an,Le]}function Ts(Be){return Be!==void 0}function nu(Be,ze){var it=ze||{},vt=it.defaultValue,an=it.value,Ce=it.onChange,Le=it.postState,_e=xl(function(){return Ts(an)?an:Ts(vt)?typeof vt=="function"?vt():vt:typeof Be=="function"?Be():Be}),Ye=ml(_e,2),kt=Ye[0],_t=Ye[1],nn=an!==void 0?an:kt,Bn=Le?Le(nn):nn,vn=sh(Ce),Mn=xl([nn]),Xn=ml(Mn,2),Qn=Xn[0],Wi=Xn[1];tu(function(){var oi=Qn[0];kt!==oi&&vn(kt,oi)},[Qn]),tu(function(){Ts(an)||_t(an)},[an]);var yi=sh(function(oi,Li){_t(oi,Li),Wi([nn],Li)});return[Bn,yi]}var ol={},Vs=[],Wl=function(ze){Vs.push(ze)};function fu(Be,ze){if(0)var it}function Ru(Be,ze){if(0)var it}function Fo(){ol={}}function gu(Be,ze,it){!ze&&!ol[it]&&(Be(!1,it),ol[it]=!0)}function Ot(Be,ze){gu(fu,Be,ze)}function di(Be,ze){gu(Ru,Be,ze)}Ot.preMessage=Wl,Ot.resetWarned=Fo,Ot.noteOnce=di;var Kl=Ot,Yu=function(Be){var ze=Ne.useRef({valueLabels:new Map});return Ne.useMemo(function(){var it=ze.current.valueLabels,vt=new Map,an=Be.map(function(Ce){var Le=Ce.value,_e=Ce.label,Ye=_e!=null?_e:it.get(Le);return vt.set(Le,Ye),We(We({},Ce),{},{label:Ye})});return ze.current.valueLabels=vt,[an]},[Be])},ec=function(ze,it,vt,an){return Ne.useMemo(function(){var Ce=function(vn){return vn.map(function(Mn){var Xn=Mn.value;return Xn})},Le=Ce(ze),_e=Ce(it),Ye=Le.filter(function(Bn){return!an[Bn]}),kt=Le,_t=_e;if(vt){var nn=(0,El.S)(Le,!0,an);kt=nn.checkedKeys,_t=nn.halfCheckedKeys}return[Array.from(new Set([].concat(Je(Ye),Je(kt)))),_t]},[ze,it,vt,an])},pu=ec,Eu=be(1089),pc=function(Be,ze){return Ne.useMemo(function(){var it=(0,Eu.I8)(Be,{fieldNames:ze,initWrapper:function(an){return We(We({},an),{},{valueEntities:new Map})},processEntity:function(an,Ce){var Le=an.node[ze.value];if(0)var _e;Ce.valueEntities.set(Le,an)}});return it},[Be,ze])};function mc(Be){"@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(Be)}var wl=Symbol.for("react.element"),Ca=Symbol.for("react.transitional.element"),mu=Symbol.for("react.fragment");function au(Be){return Be&&mc(Be)==="object"&&(Be.$$typeof===wl||Be.$$typeof===Ca)&&Be.type===mu}function ll(Be){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=[];return Ne.Children.forEach(Be,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(Be){return ll(Be).map(function(ze){if(!Ne.isValidElement(ze)||!ze.type)return null;var it=ze,vt=it.key,an=it.props,Ce=an.children,Le=an.value,_e=ge(an,Fu),Ye=We({key:vt,value:Le},_e),kt=sl(Ce);return kt.length&&(Ye.children=kt),Ye}).filter(function(ze){return ze})}function su(Be){if(!Be)return Be;var ze=We({},Be);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(Be,ze,it,vt,an,Ce){var Le=null,_e=null;function Ye(){function kt(_t){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _t.map(function(vn,Mn){var Xn="".concat(nn,"-").concat(Mn),Qn=vn[Ce.value],Wi=it.includes(Qn),yi=kt(vn[Ce.children]||[],Xn,Wi),oi=Ne.createElement(Ml,vn,yi.map(function(Ui){return Ui.node}));if(ze===Qn&&(Le=oi),Wi){var Li={pos:Xn,node:oi,children:yi};return Bn||_e.push(Li),Li}return null}).filter(function(vn){return vn})}_e||(_e=[],kt(vt),_e.sort(function(_t,nn){var Bn=_t.node.props.value,vn=nn.node.props.value,Mn=it.indexOf(Bn),Xn=it.indexOf(vn);return Mn-Xn}))}Object.defineProperty(Be,"triggerNode",{get:function(){return Kl(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ye(),Le}}),Object.defineProperty(Be,"allCheckedNodes",{get:function(){return Kl(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ye(),an?_e:_e.map(function(_t){var nn=_t.node;return nn})}})}var tc=function(ze,it,vt){var an=vt.fieldNames,Ce=vt.treeNodeFilterProp,Le=vt.filterTreeNode,_e=an.children;return Ne.useMemo(function(){if(!it||Le===!1)return ze;var Ye=typeof Le=="function"?Le:function(_t,nn){return String(nn[Ce]).toUpperCase().includes(it.toUpperCase())},kt=function _t(nn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return nn.reduce(function(vn,Mn){var Xn=Mn[_e],Qn=Bn||Ye(it,su(Mn)),Wi=_t(Xn||[],Qn);return(Qn||Wi.length)&&vn.push(We(We({},Mn),{},Vt({isLeaf:void 0},_e,Wi))),vn},[])};return kt(ze)},[ze,it,_e,Ce,Le])},Bs=tc;function vu(Be){var ze=Ne.useRef();ze.current=Be;var it=Ne.useCallback(function(){return ze.current.apply(ze,arguments)},[]);return it}function As(Be,ze){var it=ze.id,vt=ze.pId,an=ze.rootPId,Ce=new Map,Le=[];return Be.forEach(function(_e){var Ye=_e[it],kt=We(We({},_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===an||an===null)&&Le.push(_e)}),Le}function Ms(Be,ze,it){return Ne.useMemo(function(){if(Be){if(it){var vt=We({id:"id",pId:"pId",rootPId:null},pt(it)==="object"?it:{});return As(Be,vt)}return Be}return sl(ze)},[ze,it,Be])}var Zs=Ne.createContext(null),Pl=Zs;function js(Be,ze){var it=typeof Symbol!="undefined"&&Be[Symbol.iterator]||Be["@@iterator"];if(!it){if(Array.isArray(Be)||(it=Nt(Be))||ze&&Be&&typeof Be.length=="number"){it&&(Be=it);var vt=0,an=function(){};return{s:an,n:function(){return vt>=Be.length?{done:!0}:{done:!1,value:Be[vt++]}},e:function(kt){throw kt},f:an}}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,Le=!0,_e=!1;return{s:function(){it=it.call(Be)},n:function(){var kt=it.next();return Le=kt.done,kt},e:function(kt){_e=!0,Ce=kt},f:function(){try{Le||it.return==null||it.return()}finally{if(_e)throw Ce}}}}var _c=be(70593),_r={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>=_r.F1&&it<=_r.F12)return!1;switch(it){case _r.ALT:case _r.CAPS_LOCK:case _r.CONTEXT_MENU:case _r.CTRL:case _r.DOWN:case _r.END:case _r.ESC:case _r.HOME:case _r.INSERT:case _r.LEFT:case _r.MAC_FF_META:case _r.META:case _r.NUMLOCK:case _r.NUM_CENTER:case _r.PAGE_DOWN:case _r.PAGE_UP:case _r.PAUSE:case _r.PRINT_SCREEN:case _r.RIGHT:case _r.SHIFT:case _r.UP:case _r.WIN_KEY:case _r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ze){if(ze>=_r.ZERO&&ze<=_r.NINE||ze>=_r.NUM_ZERO&&ze<=_r.NUM_MULTIPLY||ze>=_r.A&&ze<=_r.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ze===0)return!0;switch(ze){case _r.SPACE:case _r.QUESTION_MARK:case _r.NUM_PLUS:case _r.NUM_MINUS:case _r.NUM_PERIOD:case _r.NUM_DIVISION:case _r.SEMICOLON:case _r.DASH:case _r.EQUALS:case _r.COMMA:case _r.PERIOD:case _r.SLASH:case _r.APOSTROPHE:case _r.SINGLE_QUOTE:case _r.OPEN_SQUARE_BRACKET:case _r.BACKSLASH:case _r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ju=_r;function xs(Be,ze,it){var vt=Ne.useRef({});return(!("value"in vt.current)||it(vt.current.condition,ze))&&(vt.current.value=Be(),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,an=it.value,Ce=it.children;return{_title:vt?[vt]:["title","label"],value:an||"value",key:an||"value",children:Ce||"children"}},_u=function(ze){return!ze||ze.disabled||ze.disableCheckbox||ze.checkable===!1},Dc=function(ze,it){var vt=[],an=function Ce(Le){Le.forEach(function(_e){var Ye=_e[it.children];Ye&&(vt.push(_e[it.value]),Ce(Ye))})};return an(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 an=it.filter(Boolean);return an.length<=1?an[0]:function(Ce){it.forEach(function(Le){Qe(Le,Ce)})}},Tt=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(an,Ce){return an.length!==Ce.length||an.every(function(Le,_e){return Le!==Ce[_e]})})},It=function(ze){var it,vt;if(!ze)return!1;if(dn(ze)&&lu>=19)return!0;var an=isMemo(ze)?ze.type.type:ze.type;return!(typeof an=="function"&&!((it=an.prototype)!==null&&it!==void 0&&it.render)&&an.$$typeof!==ForwardRef||typeof ze=="function"&&!((vt=ze.prototype)!==null&&vt!==void 0&&vt.render)&&ze.$$typeof!==ForwardRef)};function dn(Be){return isValidElement(Be)&&!isFragment(Be)}var yn=function(ze){return dn(ze)&&It(ze)},Tn=function(ze){if(ze&&dn(ze)){var it=ze;return it.props.propertyIsEnumerable("ref")?it.props.ref:it.ref}return null};function li(Be,ze,it,vt){if(!ze.length)return it;var an=_toArray(ze),Ce=an[0],Le=an.slice(1),_e;return!Be&&typeof Ce=="number"?_e=[]:Array.isArray(Be)?_e=_toConsumableArray(Be):_e=_objectSpread({},Be),vt&&it===void 0&&Le.length===1?delete _e[Ce][Le[0]]:_e[Ce]=li(_e[Ce],Le,it,vt),_e}function ji(Be,ze,it){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ze.length&&vt&&it===void 0&&!get(Be,ze.slice(0,-1))?Be:li(Be,ze,it,vt)}function Ei(Be){return _typeof(Be)==="object"&&Be!==null&&Object.getPrototypeOf(Be)===Object.prototype}function gr(Be){return Array.isArray(Be)?[]:{}}var Bi=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ir(){for(var Be=arguments.length,ze=new Array(Be),it=0;it<Be;it++)ze[it]=arguments[it];var vt=gr(ze[0]);return ze.forEach(function(an){function Ce(Le,_e){var Ye=new Set(_e),kt=get(an,Le),_t=Array.isArray(kt);if(_t||Ei(kt)){if(!Ye.has(kt)){Ye.add(kt);var nn=get(vt,Le);_t?vt=ji(vt,Le,[]):(!nn||_typeof(nn)!=="object")&&(vt=ji(vt,Le,gr(kt))),Bi(kt).forEach(function(Bn){Ce([].concat(_toConsumableArray(Le),[Bn]),Ye)})}}else vt=ji(vt,Le,kt)}Ce([])}),vt}var Xi={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Tr=function(ze,it){var vt=$r(),an=vt.prefixCls,Ce=vt.multiple,Le=vt.searchValue,_e=vt.toggleOpen,Ye=vt.open,kt=vt.notFoundContent,_t=Ne.useContext(Vc),nn=_t.virtual,Bn=_t.listHeight,vn=_t.listItemHeight,Mn=_t.listItemScrollOffset,Xn=_t.treeData,Qn=_t.fieldNames,Wi=_t.onSelect,yi=_t.dropdownMatchSelectWidth,oi=_t.treeExpandAction,Li=_t.treeTitleRender,Ui=_t.onPopupScroll,sr=_t.leftMaxCount,to=_t.leafCountOnly,br=_t.valueEntities,Sr=Ne.useContext(Pl),wo=Sr.checkable,bi=Sr.checkedKeys,Xr=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,Jr=Sr.onTreeLoad,Jo=Sr.keyEntities,ua=Ne.useRef(),Ea=xs(function(){return Xn},[Ye,Xn],function(wn,Gn){return Gn[0]&&wn[1]!==Gn[1]}),es=Ne.useMemo(function(){return wo?{checked:bi,halfChecked:Xr}:null},[wo,bi,Xr]);Ne.useEffect(function(){if(Ye&&!Ce&&bi.length){var wn;(wn=ua.current)===null||wn===void 0||wn.scrollTo({key:bi[0]})}},[Ye]);var ba=function(Gn){Gn.preventDefault()},_o=function(Gn,$n){var fi=$n.node;wo&&_u(fi)||(Wi(fi.key,{selected:!bi.includes(fi.key)}),Ce||_e(!1))},yo=Ne.useState(po),ea=ue(yo,2),Ka=ea[0],Vo=ea[1],Zr=Ne.useState(null),ho=ue(Zr,2),fo=ho[0],Mr=ho[1],Gr=Ne.useMemo(function(){return mr?Je(mr):Le?fo:Ka},[Ka,fo,mr,Le]),Do=function(Gn){Vo(Gn),Mr(Gn),Ar&&Ar(Gn)},ye=String(Le).toLowerCase(),Ie=function(Gn){return ye?String(Gn[Co]).toLowerCase().includes(ye):!1};Ne.useEffect(function(){Le&&Mr(Dc(Xn,Qn))},[Le]);var je=Ne.useState(function(){return new Map}),Ue=ue(je,2),dt=Ue[0],Wt=Ue[1];Ne.useEffect(function(){sr&&Wt(new Map)},[sr]);function Jt(wn){var Gn=wn[Qn.value];if(!dt.has(Gn)){var $n=br.get(Gn),fi=($n.children||[]).length===0;if(fi)dt.set(Gn,!1);else{var rr=$n.children.filter(function(ar){return!ar.node.disabled&&!ar.node.disableCheckbox&&!bi.includes(ar.node[Qn.value])}),$i=rr.length;dt.set(Gn,$i>sr)}}return dt.get(Gn)}var rn=sh(function(wn){var Gn=wn[Qn.value];return bi.includes(Gn)||sr===null?!1:sr<=0?!0:to&&sr?Jt(wn):!1}),Fn=function wn(Gn){var $n=js(Gn),fi;try{for($n.s();!(fi=$n.n()).done;){var rr=fi.value;if(!(rr.disabled||rr.selectable===!1)){if(Le){if(Ie(rr))return rr}else return rr;if(rr[Qn.children]){var $i=wn(rr[Qn.children]);if($i)return $i}}}}catch(ar){$n.e(ar)}finally{$n.f()}return null},Kn=Ne.useState(null),En=ue(Kn,2),Ci=En[0],Gi=En[1],Pi=Jo[Ci];Ne.useEffect(function(){if(Ye){var wn=null,Gn=function(){var fi=Fn(Ea);return fi?fi[Qn.value]:null};!Ce&&bi.length&&!Le?wn=bi[0]:wn=Gn(),Gi(wn)}},[Ye,Le]),Ne.useImperativeHandle(it,function(){var wn;return{scrollTo:(wn=ua.current)===null||wn===void 0?void 0:wn.scrollTo,onKeyDown:function($n){var fi,rr=$n.which;switch(rr){case ju.UP:case ju.DOWN:case ju.LEFT:case ju.RIGHT:(fi=ua.current)===null||fi===void 0||fi.onKeyDown($n);break;case ju.ENTER:{if(Pi){var $i=rn(Pi.node),ar=(Pi==null?void 0:Pi.node)||{},Et=ar.selectable,lr=ar.value,Pr=ar.disabled;Et!==!1&&!Pr&&!$i&&_o(null,{node:{key:Ci},selected:!bi.includes(lr)})}break}case ju.ESC:_e(!1)}},onKeyUp:function(){}}});var Ai=xs(function(){return!Le},[Le,mr||Ka],function(wn,Gn){var $n=ue(wn,1),fi=$n[0],rr=ue(Gn,2),$i=rr[0],ar=rr[1];return fi!==$i&&!!($i||ar)}),Ni=Ai?ca:null;if(Ea.length===0)return Ne.createElement("div",{role:"listbox",className:"".concat(an,"-empty"),onMouseDown:ba},kt);var ki={fieldNames:Qn};return Da&&(ki.loadedKeys=Da),Gr&&(ki.expandedKeys=Gr),Ne.createElement("div",{onMouseDown:ba},Pi&&Ye&&Ne.createElement("span",{style:Xi,"aria-live":"assertive"},Pi.node.value),Ne.createElement(_c.y6.Provider,{value:{nodeDisabled:rn}},Ne.createElement(_c.ZP,ve({ref:ua,focusable:!1,prefixCls:"".concat(an,"-tree"),treeData:Ea,height:Bn,itemHeight:vn,itemScrollOffset:Mn,virtual:nn!==!1&&yi!==!1,multiple:Ce,icon:To,showIcon:mo,switcherIcon:zo,showLine:Dr,loadData:Ni,motion:ga,activeKey:Ci,checkable:wo,checkStrictly:!0,checkedKeys:es,selectedKeys:wo?[]:bi,defaultExpandAll:ao,titleRender:Li},ki,{onActiveChange:Gi,onSelect:_o,onCheck:_o,onExpand:Do,onLoad:Jr,filterTreeNode:Ie,expandAction:oi,onScroll:Ui}))))},ro=Ne.forwardRef(Tr),Ro=ro,na="SHOW_ALL",Yr="SHOW_PARENT",ko="SHOW_CHILD";function oo(Be,ze,it,vt){var an=new Set(Be);return ze===ko?Be.filter(function(Ce){var Le=it[Ce];return!Le||!Le.children||!Le.children.some(function(_e){var Ye=_e.node;return an.has(Ye[vt.value])})||!Le.children.every(function(_e){var Ye=_e.node;return _u(Ye)||an.has(Ye[vt.value])})}):ze===Yr?Be.filter(function(Ce){var Le=it[Ce],_e=Le?Le.parent:null;return!_e||_u(_e.node)||!an.has(_e.key)}):Be}function oa(Be){var ze=Be.searchPlaceholder,it=Be.treeCheckStrictly,vt=Be.treeCheckable,an=Be.labelInValue,Ce=Be.value,Le=Be.multiple,_e=Be.showCheckedStrategy,Ye=Be.maxCount;warning(!ze,"`searchPlaceholder` has been removed."),it&&an===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(an||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||Le||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(Be){return!Be||pt(Be)!=="object"}var ja=Ne.forwardRef(function(Be,ze){var it=Be.id,vt=Be.prefixCls,an=vt===void 0?"rc-tree-select":vt,Ce=Be.value,Le=Be.defaultValue,_e=Be.onChange,Ye=Be.onSelect,kt=Be.onDeselect,_t=Be.searchValue,nn=Be.inputValue,Bn=Be.onSearch,vn=Be.autoClearSearchValue,Mn=vn===void 0?!0:vn,Xn=Be.filterTreeNode,Qn=Be.treeNodeFilterProp,Wi=Qn===void 0?"value":Qn,yi=Be.showCheckedStrategy,oi=Be.treeNodeLabelProp,Li=Be.multiple,Ui=Be.treeCheckable,sr=Be.treeCheckStrictly,to=Be.labelInValue,br=Be.maxCount,Sr=Be.fieldNames,wo=Be.treeDataSimpleMode,bi=Be.treeData,Xr=Be.children,mr=Be.loadData,ao=Be.treeLoadedKeys,po=Be.onTreeLoad,Ar=Be.treeDefaultExpandAll,To=Be.treeExpandedKeys,mo=Be.treeDefaultExpandedKeys,zo=Be.onTreeExpand,Dr=Be.treeExpandAction,Co=Be.virtual,ca=Be.listHeight,Da=ca===void 0?200:ca,ga=Be.listItemHeight,Jr=ga===void 0?20:ga,Jo=Be.listItemScrollOffset,ua=Jo===void 0?0:Jo,Ea=Be.onDropdownVisibleChange,es=Be.dropdownMatchSelectWidth,ba=es===void 0?!0:es,_o=Be.treeLine,yo=Be.treeIcon,ea=Be.showTreeIcon,Ka=Be.switcherIcon,Vo=Be.treeMotion,Zr=Be.treeTitleRender,ho=Be.onPopupScroll,fo=ge(Be,qo),Mr=hl(it),Gr=Ui&&!sr,Do=Ui||sr,ye=sr||to,Ie=Do||Li,je=nu(Le,{value:Ce}),Ue=ue(je,2),dt=Ue[0],Wt=Ue[1],Jt=Ne.useMemo(function(){return Ui?yi||ko:na},[yi,Ui]),rn=Ne.useMemo(function(){return Th(Sr)},[JSON.stringify(Sr)]),Fn=nu("",{value:_t!==void 0?_t:nn,postState:function(co){return co||""}}),Kn=ue(Fn,2),En=Kn[0],Ci=Kn[1],Gi=function(co){Ci(co),Bn==null||Bn(co)},Pi=Ms(bi,Xr,wo),Ai=pc(Pi,rn),Ni=Ai.keyEntities,ki=Ai.valueEntities,wn=Ne.useCallback(function(bo){var co=[],vo=[];return bo.forEach(function(Qo){ki.has(Qo)?vo.push(Qo):co.push(Qo)}),{missingRawValues:co,existRawValues:vo}},[ki]),Gn=Bs(Pi,En,{fieldNames:rn,treeNodeFilterProp:Wi,filterTreeNode:Xn}),$n=Ne.useCallback(function(bo){if(bo){if(oi)return bo[oi];for(var co=rn._title,vo=0;vo<co.length;vo+=1){var Qo=bo[co[vo]];if(Qo!==void 0)return Qo}}},[rn,oi]),fi=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=fi(bo);return co.map(function(vo){var Qo=vo.label,xa=vo.value,Oa=vo.halfChecked,no,Rr=ki.get(xa);if(Rr){var wa;Qo=Zr?Zr(Rr.node):(wa=Qo)!==null&&wa!==void 0?wa:$n(Rr.node),no=Rr.node.disabled}else if(Qo===void 0){var Pa=fi(dt).find(function(gs){return gs.value===xa});Qo=Pa.label}return{label:Qo,value:xa,halfChecked:Oa,disabled:no}})},[ki,$n,fi,dt]),$i=Ne.useMemo(function(){return fi(dt===null?[]:dt)},[fi,dt]),ar=Ne.useMemo(function(){var bo=[],co=[];return $i.forEach(function(vo){vo.halfChecked?co.push(vo):bo.push(vo)}),[bo,co]},[$i]),Et=ue(ar,2),lr=Et[0],Pr=Et[1],Or=Ne.useMemo(function(){return lr.map(function(bo){return bo.value})},[lr]),Oo=pu(lr,Pr,Gr,Ni),Ur=ue(Oo,2),wi=Ur[0],qi=Ur[1],Hi=Ne.useMemo(function(){var bo=oo(wi,Jt,Ni,rn),co=bo.map(function(Oa){var no,Rr;return(no=(Rr=Ni[Oa])===null||Rr===void 0||(Rr=Rr.node)===null||Rr===void 0?void 0:Rr[rn.value])!==null&&no!==void 0?no:Oa}),vo=co.map(function(Oa){var no=lr.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 We(We({},Oa),{},{label:(no=Oa.label)!==null&&no!==void 0?no:Oa.value})})},[rn,Ie,wi,lr,rr,Jt,Ni]),Lr=Yu(Hi),Eo=ue(Lr,1),vr=Eo[0],Qr=Ne.useMemo(function(){return Ie&&(Jt==="SHOW_CHILD"||sr||!Ui)?br:null},[br,Ie,sr,Jt,Ui]),xr=vu(function(bo,co,vo){var Qo=oo(bo,Jt,Ni,rn);if(!(Qr&&Qo.length>Qr)){var xa=rr(bo);if(Wt(xa),Mn&&Ci(""),_e){var Oa=bo;Gr&&(Oa=Qo.map(function(Qa){var Ks=ki.get(Qa);return Ks?Ks.node[rn.value]:Qa}));var no=co||{triggerValue:void 0,selected:void 0},Rr=no.triggerValue,wa=no.selected,Pa=Oa;if(sr){var gs=Pr.filter(function(Qa){return!Oa.includes(Qa.value)});Pa=[].concat(Je(Pa),Je(gs))}var Fa=rr(Pa),Ja={preValue:lr,triggerValue:Rr},Es=!0;(sr||vo==="selection"&&!wa)&&(Es=!1),Gl(Ja,Rr,bo,Pi,Es,rn),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=Ni[bo],no=Oa==null?void 0:Oa.node,Rr=(vo=no==null?void 0:no[rn.value])!==null&&vo!==void 0?vo:bo;if(!Ie)xr([Rr],{selected:!0,triggerValue:Rr},"option");else{var wa=Qo?[].concat(Je(Or),[Rr]):wi.filter(function(Ks){return Ks!==Rr});if(Gr){var Pa=wn(wa),gs=Pa.missingRawValues,Fa=Pa.existRawValues,Ja=Fa.map(function(Ks){return ki.get(Ks).key}),Es;if(Qo){var Ma=(0,El.S)(Ja,!0,Ni);Es=Ma.checkedKeys}else{var Qa=(0,El.S)(Ja,{checked:!1,halfCheckedKeys:qi},Ni);Es=Qa.checkedKeys}wa=[].concat(Je(gs),Je(Es.map(function(Ks){return Ni[Ks].node[rn.value]})))}xr(wa,{selected:Qo,triggerValue:Rr},xa||"option")}Qo||!Ie?Ye==null||Ye(Rr,su(no)):kt==null||kt(Rr,su(no))},[wn,ki,Ni,rn,Ie,Or,xr,Gr,Ye,kt,wi,qi,br]),Hr=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]),Vr=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:Jr,listItemScrollOffset:ua,treeData:Gn,fieldNames:rn,onSelect:fr,treeExpandAction:Dr,treeTitleRender:Zr,onPopupScroll:ho,leftMaxCount:br===void 0?null:br-vr.length,leafCountOnly:Jt==="SHOW_CHILD"&&!sr&&!!Ui,valueEntities:ki}},[Co,ba,Da,Jr,ua,Gn,rn,fr,Dr,Zr,ho,br,vr.length,Jt,sr,Ui,ki]),Ya=Ne.useMemo(function(){return{checkable:Do,loadData:mr,treeLoadedKeys:ao,onTreeLoad:po,checkedKeys:wi,halfCheckedKeys:qi,treeDefaultExpandAll:Ar,treeExpandedKeys:To,treeDefaultExpandedKeys:mo,onTreeExpand:zo,treeIcon:yo,treeMotion:Vo,showTreeIcon:ea,switcherIcon:Ka,treeLine:_o,treeNodeFilterProp:Wi,keyEntities:Ni}},[Do,mr,ao,po,wi,qi,Ar,To,mo,zo,yo,Vo,ea,Ka,_o,Wi,Ni]);return Ne.createElement(Vc.Provider,{value:Aa},Ne.createElement(Pl.Provider,{value:Ya},Ne.createElement(dl,ve({ref:ze},fo,{id:Mr,prefixCls:an,mode:Ie?"multiple":void 0,displayValues:vr,onDisplayValuesChange:Vr,searchValue:En,onSearch:Gi,OptionList:Ro,emptyOptions:!Pi.length,onDropdownVisibleChange:Hr,dropdownMatchSelectWidth:ba}))))}),rs=ja;rs.TreeNode=Ml,rs.SHOW_ALL=na,rs.SHOW_PARENT=Yr,rs.SHOW_CHILD=ko;var qs=rs,Cs=qs},18798:function(Dn,ei){"use strict";var be;var ve=typeof Symbol=="function"&&Symbol.for,ot=ve?Symbol.for("react.element"):60103,wt=ve?Symbol.for("react.portal"):60106,Qt=ve?Symbol.for("react.fragment"):60107,Nt=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,mt=ve?Symbol.for("react.async_mode"):60111,yt=ve?Symbol.for("react.concurrent_mode"):60111,Vt=ve?Symbol.for("react.forward_ref"):60112,ct=ve?Symbol.for("react.suspense"):60113,We=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 ot:switch(Pe=Pe.type,Pe){case mt:case yt:case Qt:case Re:case Nt: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 wt:return Ke}}}function xe(Pe){return me(Pe)===yt}be=mt,be=yt,be=pt,be=Je,be=ot,be=Vt,be=Qt,be=ne,be=Te,be=wt,be=Re,be=Nt,be=ct,be=function(Pe){return xe(Pe)||me(Pe)===mt},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===ot},be=function(Pe){return me(Pe)===Vt},ei.isFragment=function(Pe){return me(Pe)===Qt},be=function(Pe){return me(Pe)===ne},be=function(Pe){return me(Pe)===Te},be=function(Pe){return me(Pe)===wt},be=function(Pe){return me(Pe)===Re},be=function(Pe){return me(Pe)===Nt},be=function(Pe){return me(Pe)===ct},be=function(Pe){return typeof Pe=="string"||typeof Pe=="function"||Pe===Qt||Pe===yt||Pe===Re||Pe===Nt||Pe===ct||Pe===We||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(Dn,ei,be){"use strict";Dn.exports=be(18798)},39988:function(Dn,ei){"use strict";var be;var ve=Symbol.for("react.element"),ot=Symbol.for("react.portal"),wt=Symbol.for("react.fragment"),Qt=Symbol.for("react.strict_mode"),Nt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),mt=Symbol.for("react.forward_ref"),yt=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),We=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 wt:case Nt:case Qt:case yt:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case mt:case We:case ct:case Re:return ue;default:return se}}case ot:return se}}}be=Je,be=Re,be=ve,be=mt,be=wt,be=We,be=ct,be=ot,be=Nt,be=Qt,be=yt,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)===mt},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===We},be=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===ot},be=function(ue){return te(ue)===Nt},be=function(ue){return te(ue)===Qt},be=function(ue){return te(ue)===yt},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===wt||ue===Nt||ue===Qt||ue===yt||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===We||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===mt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},66133:function(Dn,ei,be){"use strict";be(39988)},86128:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return me}});var ve=be(87462),ot=be(4942),wt=be(1413),Qt=be(97685),Nt=be(45987),Re=be(67294),Je=be(94184),pt=be.n(Je),mt=be(64217),yt=be(27822),Vt=function(Pe){for(var Ke=Pe.prefixCls,nt=Pe.level,ft=Pe.isStart,qe=Pe.isEnd,at="".concat(Ke,"-indent-unit"),jt=[],Mt=0;Mt<nt;Mt+=1)jt.push(Re.createElement("span",{key:Mt,className:pt()(at,(0,ot.Z)((0,ot.Z)({},"".concat(at,"-start"),ft[Mt]),"".concat(at,"-end"),qe[Mt]))}));return Re.createElement("span",{"aria-hidden":"true",className:"".concat(Ke,"-indent")},jt)},ct=Re.memo(Vt),We=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,nt,ft,qe=Pe.eventKey,at=Pe.className,jt=Pe.style,Mt=Pe.dragOver,bt=Pe.dragOverGapTop,Bt=Pe.dragOverGapBottom,Ht=Pe.isLeaf,Jn=Pe.isStart,qn=Pe.isEnd,sn=Pe.expanded,Nn=Pe.selected,lt=Pe.checked,Ge=Pe.halfChecked,Ne=Pe.loading,Rn=Pe.domRef,ai=Pe.active,Zt=Pe.data,ci=Pe.onMouseMove,On=Pe.selectable,Mi=(0,Nt.Z)(Pe,ne),Xt=Re.useContext(yt.k),At=Re.useContext(yt.y),on=Re.useRef(null),Si=Re.useState(!1),Gt=(0,Qt.Z)(Si,2),Xe=Gt[0],ke=Gt[1],Me=!!(Xt.disabled||Pe.disabled||(Ke=At.nodeDisabled)!==null&&Ke!==void 0&&Ke.call(At,Zt)),He=Re.useMemo(function(){return!Xt.checkable||Pe.checkable===!1?!1:Xt.checkable},[Xt.checkable,Pe.checkable]),et=function(hn){Me||Xt.onNodeSelect(hn,(0,Te.F)(Pe))},Oe=function(hn){Me||!He||Pe.disableCheckbox||Xt.onNodeCheck(hn,(0,Te.F)(Pe),!lt)},ut=Re.useMemo(function(){return typeof On=="boolean"?On:Xt.selectable},[On,Xt.selectable]),Vn=function(hn){Xt.onNodeClick(hn,(0,Te.F)(Pe)),ut?et(hn):Oe(hn)},jn=function(hn){Xt.onNodeDoubleClick(hn,(0,Te.F)(Pe))},An=function(hn){Xt.onNodeMouseEnter(hn,(0,Te.F)(Pe))},Pn=function(hn){Xt.onNodeMouseLeave(hn,(0,Te.F)(Pe))},si=function(hn){Xt.onNodeContextMenu(hn,(0,Te.F)(Pe))},mn=Re.useMemo(function(){return!!(Xt.draggable&&(!Xt.draggable.nodeDraggable||Xt.draggable.nodeDraggable(Zt)))},[Xt.draggable,Zt]),Fi=function(hn){hn.stopPropagation(),ke(!0),Xt.onNodeDragStart(hn,Pe);try{hn.dataTransfer.setData("text/plain","")}catch(ii){}},Vi=function(hn){hn.preventDefault(),hn.stopPropagation(),Xt.onNodeDragEnter(hn,Pe)},Ir=function(hn){hn.preventDefault(),hn.stopPropagation(),Xt.onNodeDragOver(hn,Pe)},Qi=function(hn){hn.stopPropagation(),Xt.onNodeDragLeave(hn,Pe)},Di=function(hn){hn.stopPropagation(),ke(!1),Xt.onNodeDragEnd(hn,Pe)},$r=function(hn){hn.preventDefault(),hn.stopPropagation(),ke(!1),Xt.onNodeDrop(hn,Pe)},Yi=function(hn){Ne||Xt.onNodeExpand(hn,(0,Te.F)(Pe))},hr=Re.useMemo(function(){var pn=(0,We.Z)(Xt.keyEntities,qe)||{},hn=pn.children;return!!(hn||[]).length},[Xt.keyEntities,qe]),dr=Re.useMemo(function(){return Ht===!1?!1:Ht||!Xt.loadData&&!hr||Xt.loadData&&Pe.loaded&&!hr},[Ht,Xt.loadData,hr,Pe.loaded]);Re.useEffect(function(){Ne||typeof Xt.loadData=="function"&&sn&&!dr&&!Pe.loaded&&Xt.onNodeLoad((0,Te.F)(Pe))},[Ne,Xt.loadData,Xt.onNodeLoad,sn,dr,Pe]);var kn=Re.useMemo(function(){var pn;return(pn=Xt.draggable)!==null&&pn!==void 0&&pn.icon?Re.createElement("span",{className:"".concat(Xt.prefixCls,"-draggable-icon")},Xt.draggable.icon):null},[Xt.draggable]),Ii=function(hn){var ii=Pe.switcherIcon||Xt.switcherIcon;return typeof ii=="function"?ii((0,wt.Z)((0,wt.Z)({},Pe),{},{isLeaf:hn})):ii},ra=function(){if(dr){var hn=Ii(!0);return hn!==!1?Re.createElement("span",{className:pt()("".concat(Xt.prefixCls,"-switcher"),"".concat(Xt.prefixCls,"-switcher-noop"))},hn):null}var ii=Ii(!1);return ii!==!1?Re.createElement("span",{onClick:Yi,className:pt()("".concat(Xt.prefixCls,"-switcher"),"".concat(Xt.prefixCls,"-switcher_").concat(sn?te:ue))},ii):null},Un=Re.useMemo(function(){if(!He)return null;var pn=typeof He!="boolean"?He:null;return Re.createElement("span",{className:pt()("".concat(Xt.prefixCls,"-checkbox"),(0,ot.Z)((0,ot.Z)((0,ot.Z)({},"".concat(Xt.prefixCls,"-checkbox-checked"),lt),"".concat(Xt.prefixCls,"-checkbox-indeterminate"),!lt&&Ge),"".concat(Xt.prefixCls,"-checkbox-disabled"),Me||Pe.disableCheckbox)),onClick:Oe,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)},[He,lt,Ge,Me,Pe.disableCheckbox,Pe.title]),Kr=Re.useMemo(function(){return dr?null:sn?te:ue},[dr,sn]),ia=Re.useMemo(function(){return Re.createElement("span",{className:pt()("".concat(Xt.prefixCls,"-iconEle"),"".concat(Xt.prefixCls,"-icon__").concat(Kr||"docu"),(0,ot.Z)({},"".concat(Xt.prefixCls,"-icon_loading"),Ne))})},[Xt.prefixCls,Kr,Ne]),sa=Re.useMemo(function(){var pn=!!Xt.draggable,hn=!Pe.disabled&&pn&&Xt.dragOverNodeKey===qe;return hn?Xt.dropIndicatorRender({dropPosition:Xt.dropPosition,dropLevelOffset:Xt.dropLevelOffset,indent:Xt.indent,prefixCls:Xt.prefixCls,direction:Xt.direction}):null},[Xt.dropPosition,Xt.dropLevelOffset,Xt.indent,Xt.prefixCls,Xt.direction,Xt.draggable,Xt.dragOverNodeKey,Xt.dropIndicatorRender]),Wa=Re.useMemo(function(){var pn=Pe.title,hn=pn===void 0?se:pn,ii="".concat(Xt.prefixCls,"-node-content-wrapper"),Yn;if(Xt.showIcon){var In=Pe.icon||Xt.icon;Yn=In?Re.createElement("span",{className:pt()("".concat(Xt.prefixCls,"-iconEle"),"".concat(Xt.prefixCls,"-icon__customize"))},typeof In=="function"?In(Pe):In):ia}else Xt.loadData&&Ne&&(Yn=ia);var en;return typeof hn=="function"?en=hn(Zt):Xt.titleRender?en=Xt.titleRender(Zt):en=hn,Re.createElement("span",{ref:on,title:typeof hn=="string"?hn:"",className:pt()(ii,"".concat(ii,"-").concat(Kr||"normal"),(0,ot.Z)({},"".concat(Xt.prefixCls,"-node-selected"),!Me&&(Nn||Xe))),onMouseEnter:An,onMouseLeave:Pn,onContextMenu:si,onClick:Vn,onDoubleClick:jn},Yn,Re.createElement("span",{className:"".concat(Xt.prefixCls,"-title")},en),sa)},[Xt.prefixCls,Xt.showIcon,Pe,Xt.icon,ia,Xt.titleRender,Zt,Kr,An,Pn,si,Vn,jn]),ma=(0,mt.Z)(Mi,{aria:!0,data:!0}),Ha=(0,We.Z)(Xt.keyEntities,qe)||{},da=Ha.level,la=qn[qn.length-1],No=!Me&&mn,ti=Xt.draggingNodeKey===qe,Ee=On!==void 0?{"aria-selected":!!On}:void 0;return Re.createElement("div",(0,ve.Z)({ref:Rn,role:"treeitem","aria-expanded":Ht?void 0:sn,className:pt()(at,"".concat(Xt.prefixCls,"-treenode"),(ft={},(0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)(ft,"".concat(Xt.prefixCls,"-treenode-disabled"),Me),"".concat(Xt.prefixCls,"-treenode-switcher-").concat(sn?"open":"close"),!Ht),"".concat(Xt.prefixCls,"-treenode-checkbox-checked"),lt),"".concat(Xt.prefixCls,"-treenode-checkbox-indeterminate"),Ge),"".concat(Xt.prefixCls,"-treenode-selected"),Nn),"".concat(Xt.prefixCls,"-treenode-loading"),Ne),"".concat(Xt.prefixCls,"-treenode-active"),ai),"".concat(Xt.prefixCls,"-treenode-leaf-last"),la),"".concat(Xt.prefixCls,"-treenode-draggable"),mn),"dragging",ti),(0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)(ft,"drop-target",Xt.dropTargetKey===qe),"drop-container",Xt.dropContainerKey===qe),"drag-over",!Me&&Mt),"drag-over-gap-top",!Me&&bt),"drag-over-gap-bottom",!Me&&Bt),"filter-node",(nt=Xt.filterTreeNode)===null||nt===void 0?void 0:nt.call(Xt,(0,Te.F)(Pe))),"".concat(Xt.prefixCls,"-treenode-leaf"),dr))),style:jt,draggable:No,onDragStart:No?Fi:void 0,onDragEnter:mn?Vi:void 0,onDragOver:mn?Ir:void 0,onDragLeave:mn?Qi:void 0,onDrop:mn?$r:void 0,onDragEnd:mn?Di:void 0,onMouseMove:ci},Ee,ma),Re.createElement(ct,{prefixCls:Xt.prefixCls,level:da,isStart:Jn,isEnd:qn}),kn,ra(),Un,Wa)};ge.isTreeNode=1;var me=ge},27822:function(Dn,ei,be){"use strict";be.d(ei,{k:function(){return ot},y:function(){return wt}});var ve=be(67294),ot=ve.createContext(null),wt=ve.createContext({})},70593:function(Dn,ei,be){"use strict";be.d(ei,{OF:function(){return qe.Z},y6:function(){return ue.y},ZP:function(){return Me}});var ve=be(87462),ot=be(71002),wt=be(1413),Qt=be(74902),Nt=be(15671),Re=be(43144),Je=be(97326),pt=be(60136),mt=be(29388),yt=be(4942),Vt=be(94184),ct=be.n(Vt),We=be(15105),Te=be(64217),ne=be(80334),te=be(67294),ue=be(27822),se=function(et){var Oe=et.dropPosition,ut=et.dropLevelOffset,Vn=et.indent,jn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Oe){case-1:jn.top=0,jn.left=-ut*Vn;break;case 1:jn.bottom=0,jn.left=-ut*Vn;break;case 0:jn.bottom=0,jn.left=Vn;break}return te.createElement("div",{style:jn})},ge=se;function me(He){if(He==null)throw new TypeError("Cannot destructure "+He)}var xe=be(97685),Pe=be(45987),Ke=be(8410),nt=be(73299),ft=be(62874),qe=be(86128);function at(He,et){var Oe=te.useState(!1),ut=(0,xe.Z)(Oe,2),Vn=ut[0],jn=ut[1];(0,Ke.Z)(function(){if(Vn)return He(),function(){et()}},[Vn]),(0,Ke.Z)(function(){return jn(!0),function(){jn(!1)}},[])}var jt=at,Mt=be(1089),bt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Bt=te.forwardRef(function(He,et){var Oe=He.className,ut=He.style,Vn=He.motion,jn=He.motionNodes,An=He.motionType,Pn=He.onMotionStart,si=He.onMotionEnd,mn=He.active,Fi=He.treeNodeRequiredProps,Vi=(0,Pe.Z)(He,bt),Ir=te.useState(!0),Qi=(0,xe.Z)(Ir,2),Di=Qi[0],$r=Qi[1],Yi=te.useContext(ue.k),hr=Yi.prefixCls,dr=jn&&An!=="hide";(0,Ke.Z)(function(){jn&&dr!==Di&&$r(dr)},[jn]);var kn=function(){jn&&Pn()},Ii=te.useRef(!1),ra=function(){jn&&!Ii.current&&(Ii.current=!0,si())};jt(kn,ra);var Un=function(ia){dr===ia&&ra()};return jn?te.createElement(ft.Z,(0,ve.Z)({ref:et,visible:Di},Vn,{motionAppear:An==="show",onVisibleChanged:Un}),function(Kr,ia){var sa=Kr.className,Wa=Kr.style;return te.createElement("div",{ref:ia,className:ct()("".concat(hr,"-treenode-motion"),sa),style:Wa},jn.map(function(ma){var Ha=Object.assign({},(me(ma.data),ma.data)),da=ma.title,la=ma.key,No=ma.isStart,ti=ma.isEnd;delete Ha.children;var Ee=(0,Mt.H8)(la,Fi);return te.createElement(qe.Z,(0,ve.Z)({},Ha,Ee,{title:da,active:mn,data:ma.data,key:la,isStart:No,isEnd:ti}))}))}):te.createElement(qe.Z,(0,ve.Z)({domRef:et,className:Oe,style:ut},Vi,{active:mn}))}),Ht=Bt;function Jn(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=He.length,ut=et.length;if(Math.abs(Oe-ut)!==1)return{add:!1,key:null};function Vn(jn,An){var Pn=new Map;jn.forEach(function(mn){Pn.set(mn,!0)});var si=An.filter(function(mn){return!Pn.has(mn)});return si.length===1?si[0]:null}return Oe<ut?{add:!0,key:Vn(He,et)}:{add:!1,key:Vn(et,He)}}function qn(He,et,Oe){var ut=He.findIndex(function(Pn){return Pn.key===Oe}),Vn=He[ut+1],jn=et.findIndex(function(Pn){return Pn.key===Oe});if(Vn){var An=et.findIndex(function(Pn){return Pn.key===Vn.key});return et.slice(jn+1,An)}return et.slice(jn+1)}var sn=["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"],Nn={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},Rn={key:Ge,level:0,index:0,pos:"0",node:Ne,nodes:[Ne]},ai={parent:null,children:[],pos:Rn.pos,data:Ne,title:null,key:Ge,isStart:[],isEnd:[]};function Zt(He,et,Oe,ut){return et===!1||!Oe?He:He.slice(0,Math.ceil(Oe/ut)+1)}function ci(He){var et=He.key,Oe=He.pos;return(0,Mt.km)(et,Oe)}function On(He){for(var et=String(He.data.key),Oe=He;Oe.parent;)Oe=Oe.parent,et="".concat(Oe.data.key," > ").concat(et);return et}var Mi=te.forwardRef(function(He,et){var Oe=He.prefixCls,ut=He.data,Vn=He.selectable,jn=He.checkable,An=He.expandedKeys,Pn=He.selectedKeys,si=He.checkedKeys,mn=He.loadedKeys,Fi=He.loadingKeys,Vi=He.halfCheckedKeys,Ir=He.keyEntities,Qi=He.disabled,Di=He.dragging,$r=He.dragOverNodeKey,Yi=He.dropPosition,hr=He.motion,dr=He.height,kn=He.itemHeight,Ii=He.virtual,ra=He.scrollWidth,Un=He.focusable,Kr=He.activeItem,ia=He.focused,sa=He.tabIndex,Wa=He.onKeyDown,ma=He.onFocus,Ha=He.onBlur,da=He.onActiveChange,la=He.onListChangeStart,No=He.onListChangeEnd,ti=(0,Pe.Z)(He,sn),Ee=te.useRef(null),pn=te.useRef(null);te.useImperativeHandle(et,function(){return{scrollTo:function(Na){Ee.current.scrollTo(Na)},getIndentWidth:function(){return pn.current.offsetWidth}}});var hn=te.useState(An),ii=(0,xe.Z)(hn,2),Yn=ii[0],In=ii[1],en=te.useState(ut),ni=(0,xe.Z)(en,2),zt=ni[0],Kt=ni[1],Ft=te.useState(ut),un=(0,xe.Z)(Ft,2),Ti=un[0],Ri=un[1],hi=te.useState([]),Ut=(0,xe.Z)(hi,2),zn=Ut[0],xn=Ut[1],Fr=te.useState(null),ri=(0,xe.Z)(Fr,2),$t=ri[0],_i=ri[1],Wr=te.useRef(ut);Wr.current=ut;function Br(){var Xo=Wr.current;Kt(Xo),Ri(Xo),xn([]),_i(null),No()}(0,Ke.Z)(function(){In(An);var Xo=Jn(Yn,An);if(Xo.key!==null)if(Xo.add){var Na=zt.findIndex(function(Ho){var pi=Ho.key;return pi===Xo.key}),aa=Zt(qn(zt,ut,Xo.key),Ii,dr,kn),ur=zt.slice();ur.splice(Na+1,0,ai),Ri(ur),xn(aa),_i("show")}else{var Nr=ut.findIndex(function(Ho){var pi=Ho.key;return pi===Xo.key}),io=Zt(qn(ut,zt,Xo.key),Ii,dr,kn),va=ut.slice();va.splice(Nr+1,0,ai),Ri(va),xn(io),_i("hide")}else zt!==ut&&(Kt(ut),Ri(ut))},[An,ut]),te.useEffect(function(){Di||Br()},[Di]);var Sn=hr?Ti:ut,or={expandedKeys:An,selectedKeys:Pn,loadedKeys:mn,loadingKeys:Fi,checkedKeys:si,halfCheckedKeys:Vi,dragOverNodeKey:$r,dropPosition:Yi,keyEntities:Ir};return te.createElement(te.Fragment,null,ia&&Kr&&te.createElement("span",{style:Nn,"aria-live":"assertive"},On(Kr)),te.createElement("div",null,te.createElement("input",{style:Nn,disabled:Un===!1||Qi,tabIndex:Un!==!1?sa:null,onKeyDown:Wa,onFocus:ma,onBlur:Ha,value:"",onChange:lt,"aria-label":"for screen reader"})),te.createElement("div",{className:"".concat(Oe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},te.createElement("div",{className:"".concat(Oe,"-indent")},te.createElement("div",{ref:pn,className:"".concat(Oe,"-indent-unit")}))),te.createElement(nt.Z,(0,ve.Z)({},ti,{data:Sn,itemKey:ci,height:dr,fullHeight:!1,virtual:Ii,itemHeight:kn,scrollWidth:ra,prefixCls:"".concat(Oe,"-list"),ref:Ee,role:"tree",onVisibleChange:function(Na){Na.every(function(aa){return ci(aa)!==Ge})&&Br()}}),function(Xo){var Na=Xo.pos,aa=Object.assign({},(me(Xo.data),Xo.data)),ur=Xo.title,Nr=Xo.key,io=Xo.isStart,va=Xo.isEnd,Ho=(0,Mt.km)(Nr,Na);delete aa.key,delete aa.children;var pi=(0,Mt.H8)(Ho,or);return te.createElement(Ht,(0,ve.Z)({},aa,pi,{title:ur,active:!!Kr&&Nr===Kr.key,pos:Na,data:Xo.data,isStart:io,isEnd:va,motion:hr,motionNodes:Nr===Ge?zn:null,motionType:$t,onMotionStart:la,onMotionEnd:Br,treeNodeRequiredProps:or,onMouseMove:function(){da(null)}}))}))}),Xt=Mi,At=be(10225),on=be(17341),Si=be(35381),Gt=10,Xe=function(He){(0,pt.Z)(Oe,He);var et=(0,mt.Z)(Oe);function Oe(){var ut;(0,Nt.Z)(this,Oe);for(var Vn=arguments.length,jn=new Array(Vn),An=0;An<Vn;An++)jn[An]=arguments[An];return ut=et.call.apply(et,[this].concat(jn)),(0,yt.Z)((0,Je.Z)(ut),"destroyed",!1),(0,yt.Z)((0,Je.Z)(ut),"delayedDragEnterLogic",void 0),(0,yt.Z)((0,Je.Z)(ut),"loadingRetryTimes",{}),(0,yt.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,yt.Z)((0,Je.Z)(ut),"dragStartMousePosition",null),(0,yt.Z)((0,Je.Z)(ut),"dragNodeProps",null),(0,yt.Z)((0,Je.Z)(ut),"currentMouseOverDroppableNodeKey",null),(0,yt.Z)((0,Je.Z)(ut),"listRef",te.createRef()),(0,yt.Z)((0,Je.Z)(ut),"onNodeDragStart",function(Pn,si){var mn=ut.state,Fi=mn.expandedKeys,Vi=mn.keyEntities,Ir=ut.props.onDragStart,Qi=si.eventKey;ut.dragNodeProps=si,ut.dragStartMousePosition={x:Pn.clientX,y:Pn.clientY};var Di=(0,At._5)(Fi,Qi);ut.setState({draggingNodeKey:Qi,dragChildrenKeys:(0,At.wA)(Qi,Vi),indent:ut.listRef.current.getIndentWidth()}),ut.setExpandedKeys(Di),window.addEventListener("dragend",ut.onWindowDragEnd),Ir==null||Ir({event:Pn,node:(0,Mt.F)(si)})}),(0,yt.Z)((0,Je.Z)(ut),"onNodeDragEnter",function(Pn,si){var mn=ut.state,Fi=mn.expandedKeys,Vi=mn.keyEntities,Ir=mn.dragChildrenKeys,Qi=mn.flattenNodes,Di=mn.indent,$r=ut.props,Yi=$r.onDragEnter,hr=$r.onExpand,dr=$r.allowDrop,kn=$r.direction,Ii=si.pos,ra=si.eventKey;if(ut.currentMouseOverDroppableNodeKey!==ra&&(ut.currentMouseOverDroppableNodeKey=ra),!ut.dragNodeProps){ut.resetDragState();return}var Un=(0,At.OM)(Pn,ut.dragNodeProps,si,Di,ut.dragStartMousePosition,dr,Qi,Vi,Fi,kn),Kr=Un.dropPosition,ia=Un.dropLevelOffset,sa=Un.dropTargetKey,Wa=Un.dropContainerKey,ma=Un.dropTargetPos,Ha=Un.dropAllowed,da=Un.dragOverNodeKey;if(Ir.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!==si.eventKey&&(Pn.persist(),ut.delayedDragEnterLogic[Ii]=window.setTimeout(function(){if(ut.state.draggingNodeKey!==null){var la=(0,Qt.Z)(Fi),No=(0,Si.Z)(Vi,si.eventKey);No&&(No.children||[]).length&&(la=(0,At.L0)(Fi,si.eventKey)),ut.props.hasOwnProperty("expandedKeys")||ut.setExpandedKeys(la),hr==null||hr(la,{node:(0,Mt.F)(si),expanded:!0,nativeEvent:Pn.nativeEvent})}},800)),ut.dragNodeProps.eventKey===sa&&ia===0){ut.resetDragState();return}ut.setState({dragOverNodeKey:da,dropPosition:Kr,dropLevelOffset:ia,dropTargetKey:sa,dropContainerKey:Wa,dropTargetPos:ma,dropAllowed:Ha}),Yi==null||Yi({event:Pn,node:(0,Mt.F)(si),expandedKeys:Fi})}),(0,yt.Z)((0,Je.Z)(ut),"onNodeDragOver",function(Pn,si){var mn=ut.state,Fi=mn.dragChildrenKeys,Vi=mn.flattenNodes,Ir=mn.keyEntities,Qi=mn.expandedKeys,Di=mn.indent,$r=ut.props,Yi=$r.onDragOver,hr=$r.allowDrop,dr=$r.direction;if(ut.dragNodeProps){var kn=(0,At.OM)(Pn,ut.dragNodeProps,si,Di,ut.dragStartMousePosition,hr,Vi,Ir,Qi,dr),Ii=kn.dropPosition,ra=kn.dropLevelOffset,Un=kn.dropTargetKey,Kr=kn.dropContainerKey,ia=kn.dropTargetPos,sa=kn.dropAllowed,Wa=kn.dragOverNodeKey;Fi.includes(Un)||!sa||(ut.dragNodeProps.eventKey===Un&&ra===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():Ii===ut.state.dropPosition&&ra===ut.state.dropLevelOffset&&Un===ut.state.dropTargetKey&&Kr===ut.state.dropContainerKey&&ia===ut.state.dropTargetPos&&sa===ut.state.dropAllowed&&Wa===ut.state.dragOverNodeKey||ut.setState({dropPosition:Ii,dropLevelOffset:ra,dropTargetKey:Un,dropContainerKey:Kr,dropTargetPos:ia,dropAllowed:sa,dragOverNodeKey:Wa}),Yi==null||Yi({event:Pn,node:(0,Mt.F)(si)}))}}),(0,yt.Z)((0,Je.Z)(ut),"onNodeDragLeave",function(Pn,si){ut.currentMouseOverDroppableNodeKey===si.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)(si)})}),(0,yt.Z)((0,Je.Z)(ut),"onWindowDragEnd",function(Pn){ut.onNodeDragEnd(Pn,null,!0),window.removeEventListener("dragend",ut.onWindowDragEnd)}),(0,yt.Z)((0,Je.Z)(ut),"onNodeDragEnd",function(Pn,si){var mn=ut.props.onDragEnd;ut.setState({dragOverNodeKey:null}),ut.cleanDragState(),mn==null||mn({event:Pn,node:(0,Mt.F)(si)}),ut.dragNodeProps=null,window.removeEventListener("dragend",ut.onWindowDragEnd)}),(0,yt.Z)((0,Je.Z)(ut),"onNodeDrop",function(Pn,si){var mn,Fi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Vi=ut.state,Ir=Vi.dragChildrenKeys,Qi=Vi.dropPosition,Di=Vi.dropTargetKey,$r=Vi.dropTargetPos,Yi=Vi.dropAllowed;if(Yi){var hr=ut.props.onDrop;if(ut.setState({dragOverNodeKey:null}),ut.cleanDragState(),Di!==null){var dr=(0,wt.Z)((0,wt.Z)({},(0,Mt.H8)(Di,ut.getTreeNodeRequiredProps())),{},{active:((mn=ut.getActiveItem())===null||mn===void 0?void 0:mn.key)===Di,data:(0,Si.Z)(ut.state.keyEntities,Di).node}),kn=Ir.includes(Di);(0,ne.ZP)(!kn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ii=(0,At.yx)($r),ra={event:Pn,node:(0,Mt.F)(dr),dragNode:ut.dragNodeProps?(0,Mt.F)(ut.dragNodeProps):null,dragNodesKeys:[ut.dragNodeProps.eventKey].concat(Ir),dropToGap:Qi!==0,dropPosition:Qi+Number(Ii[Ii.length-1])};Fi||hr==null||hr(ra),ut.dragNodeProps=null}}}),(0,yt.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,yt.Z)((0,Je.Z)(ut),"triggerExpandActionExpand",function(Pn,si){var mn=ut.state,Fi=mn.expandedKeys,Vi=mn.flattenNodes,Ir=si.expanded,Qi=si.key,Di=si.isLeaf;if(!(Di||Pn.shiftKey||Pn.metaKey||Pn.ctrlKey)){var $r=Vi.filter(function(hr){return hr.key===Qi})[0],Yi=(0,Mt.F)((0,wt.Z)((0,wt.Z)({},(0,Mt.H8)(Qi,ut.getTreeNodeRequiredProps())),{},{data:$r.data}));ut.setExpandedKeys(Ir?(0,At._5)(Fi,Qi):(0,At.L0)(Fi,Qi)),ut.onNodeExpand(Pn,Yi)}}),(0,yt.Z)((0,Je.Z)(ut),"onNodeClick",function(Pn,si){var mn=ut.props,Fi=mn.onClick,Vi=mn.expandAction;Vi==="click"&&ut.triggerExpandActionExpand(Pn,si),Fi==null||Fi(Pn,si)}),(0,yt.Z)((0,Je.Z)(ut),"onNodeDoubleClick",function(Pn,si){var mn=ut.props,Fi=mn.onDoubleClick,Vi=mn.expandAction;Vi==="doubleClick"&&ut.triggerExpandActionExpand(Pn,si),Fi==null||Fi(Pn,si)}),(0,yt.Z)((0,Je.Z)(ut),"onNodeSelect",function(Pn,si){var mn=ut.state.selectedKeys,Fi=ut.state,Vi=Fi.keyEntities,Ir=Fi.fieldNames,Qi=ut.props,Di=Qi.onSelect,$r=Qi.multiple,Yi=si.selected,hr=si[Ir.key],dr=!Yi;dr?$r?mn=(0,At.L0)(mn,hr):mn=[hr]:mn=(0,At._5)(mn,hr);var kn=mn.map(function(Ii){var ra=(0,Si.Z)(Vi,Ii);return ra?ra.node:null}).filter(Boolean);ut.setUncontrolledState({selectedKeys:mn}),Di==null||Di(mn,{event:"select",selected:dr,node:si,selectedNodes:kn,nativeEvent:Pn.nativeEvent})}),(0,yt.Z)((0,Je.Z)(ut),"onNodeCheck",function(Pn,si,mn){var Fi=ut.state,Vi=Fi.keyEntities,Ir=Fi.checkedKeys,Qi=Fi.halfCheckedKeys,Di=ut.props,$r=Di.checkStrictly,Yi=Di.onCheck,hr=si.key,dr,kn={event:"check",node:si,checked:mn,nativeEvent:Pn.nativeEvent};if($r){var Ii=mn?(0,At.L0)(Ir,hr):(0,At._5)(Ir,hr),ra=(0,At._5)(Qi,hr);dr={checked:Ii,halfChecked:ra},kn.checkedNodes=Ii.map(function(ma){return(0,Si.Z)(Vi,ma)}).filter(Boolean).map(function(ma){return ma.node}),ut.setUncontrolledState({checkedKeys:Ii})}else{var Un=(0,on.S)([].concat((0,Qt.Z)(Ir),[hr]),!0,Vi),Kr=Un.checkedKeys,ia=Un.halfCheckedKeys;if(!mn){var sa=new Set(Kr);sa.delete(hr);var Wa=(0,on.S)(Array.from(sa),{checked:!1,halfCheckedKeys:ia},Vi);Kr=Wa.checkedKeys,ia=Wa.halfCheckedKeys}dr=Kr,kn.checkedNodes=[],kn.checkedNodesPositions=[],kn.halfCheckedKeys=ia,Kr.forEach(function(ma){var Ha=(0,Si.Z)(Vi,ma);if(Ha){var da=Ha.node,la=Ha.pos;kn.checkedNodes.push(da),kn.checkedNodesPositions.push({node:da,pos:la})}}),ut.setUncontrolledState({checkedKeys:Kr},!1,{halfCheckedKeys:ia})}Yi==null||Yi(dr,kn)}),(0,yt.Z)((0,Je.Z)(ut),"onNodeLoad",function(Pn){var si,mn=Pn.key,Fi=ut.state.keyEntities,Vi=(0,Si.Z)(Fi,mn);if(!(Vi!=null&&(si=Vi.children)!==null&&si!==void 0&&si.length)){var Ir=new Promise(function(Qi,Di){ut.setState(function($r){var Yi=$r.loadedKeys,hr=Yi===void 0?[]:Yi,dr=$r.loadingKeys,kn=dr===void 0?[]:dr,Ii=ut.props,ra=Ii.loadData,Un=Ii.onLoad;if(!ra||hr.includes(mn)||kn.includes(mn))return null;var Kr=ra(Pn);return Kr.then(function(){var ia=ut.state.loadedKeys,sa=(0,At.L0)(ia,mn);Un==null||Un(sa,{event:"load",node:Pn}),ut.setUncontrolledState({loadedKeys:sa}),ut.setState(function(Wa){return{loadingKeys:(0,At._5)(Wa.loadingKeys,mn)}}),Qi()}).catch(function(ia){if(ut.setState(function(Wa){return{loadingKeys:(0,At._5)(Wa.loadingKeys,mn)}}),ut.loadingRetryTimes[mn]=(ut.loadingRetryTimes[mn]||0)+1,ut.loadingRetryTimes[mn]>=Gt){var sa=ut.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ut.setUncontrolledState({loadedKeys:(0,At.L0)(sa,mn)}),Qi()}Di(ia)}),{loadingKeys:(0,At.L0)(kn,mn)}})});return Ir.catch(function(){}),Ir}}),(0,yt.Z)((0,Je.Z)(ut),"onNodeMouseEnter",function(Pn,si){var mn=ut.props.onMouseEnter;mn==null||mn({event:Pn,node:si})}),(0,yt.Z)((0,Je.Z)(ut),"onNodeMouseLeave",function(Pn,si){var mn=ut.props.onMouseLeave;mn==null||mn({event:Pn,node:si})}),(0,yt.Z)((0,Je.Z)(ut),"onNodeContextMenu",function(Pn,si){var mn=ut.props.onRightClick;mn&&(Pn.preventDefault(),mn({event:Pn,node:si}))}),(0,yt.Z)((0,Je.Z)(ut),"onFocus",function(){var Pn=ut.props.onFocus;ut.setState({focused:!0});for(var si=arguments.length,mn=new Array(si),Fi=0;Fi<si;Fi++)mn[Fi]=arguments[Fi];Pn==null||Pn.apply(void 0,mn)}),(0,yt.Z)((0,Je.Z)(ut),"onBlur",function(){var Pn=ut.props.onBlur;ut.setState({focused:!1}),ut.onActiveChange(null);for(var si=arguments.length,mn=new Array(si),Fi=0;Fi<si;Fi++)mn[Fi]=arguments[Fi];Pn==null||Pn.apply(void 0,mn)}),(0,yt.Z)((0,Je.Z)(ut),"getTreeNodeRequiredProps",function(){var Pn=ut.state,si=Pn.expandedKeys,mn=Pn.selectedKeys,Fi=Pn.loadedKeys,Vi=Pn.loadingKeys,Ir=Pn.checkedKeys,Qi=Pn.halfCheckedKeys,Di=Pn.dragOverNodeKey,$r=Pn.dropPosition,Yi=Pn.keyEntities;return{expandedKeys:si||[],selectedKeys:mn||[],loadedKeys:Fi||[],loadingKeys:Vi||[],checkedKeys:Ir||[],halfCheckedKeys:Qi||[],dragOverNodeKey:Di,dropPosition:$r,keyEntities:Yi}}),(0,yt.Z)((0,Je.Z)(ut),"setExpandedKeys",function(Pn){var si=ut.state,mn=si.treeData,Fi=si.fieldNames,Vi=(0,Mt.oH)(mn,Pn,Fi);ut.setUncontrolledState({expandedKeys:Pn,flattenNodes:Vi},!0)}),(0,yt.Z)((0,Je.Z)(ut),"onNodeExpand",function(Pn,si){var mn=ut.state.expandedKeys,Fi=ut.state,Vi=Fi.listChanging,Ir=Fi.fieldNames,Qi=ut.props,Di=Qi.onExpand,$r=Qi.loadData,Yi=si.expanded,hr=si[Ir.key];if(!Vi){var dr=mn.includes(hr),kn=!Yi;if((0,ne.ZP)(Yi&&dr||!Yi&&!dr,"Expand state not sync with index check"),mn=kn?(0,At.L0)(mn,hr):(0,At._5)(mn,hr),ut.setExpandedKeys(mn),Di==null||Di(mn,{node:si,expanded:kn,nativeEvent:Pn.nativeEvent}),kn&&$r){var Ii=ut.onNodeLoad(si);Ii&&Ii.then(function(){var ra=(0,Mt.oH)(ut.state.treeData,mn,Ir);ut.setUncontrolledState({flattenNodes:ra})}).catch(function(){var ra=ut.state.expandedKeys,Un=(0,At._5)(ra,hr);ut.setExpandedKeys(Un)})}}}),(0,yt.Z)((0,Je.Z)(ut),"onListChangeStart",function(){ut.setUncontrolledState({listChanging:!0})}),(0,yt.Z)((0,Je.Z)(ut),"onListChangeEnd",function(){setTimeout(function(){ut.setUncontrolledState({listChanging:!1})})}),(0,yt.Z)((0,Je.Z)(ut),"onActiveChange",function(Pn){var si=ut.state.activeKey,mn=ut.props,Fi=mn.onActiveChange,Vi=mn.itemScrollOffset,Ir=Vi===void 0?0:Vi;si!==Pn&&(ut.setState({activeKey:Pn}),Pn!==null&&ut.scrollTo({key:Pn,offset:Ir}),Fi==null||Fi(Pn))}),(0,yt.Z)((0,Je.Z)(ut),"getActiveItem",function(){var Pn=ut.state,si=Pn.activeKey,mn=Pn.flattenNodes;return si===null?null:mn.find(function(Fi){var Vi=Fi.key;return Vi===si})||null}),(0,yt.Z)((0,Je.Z)(ut),"offsetActiveKey",function(Pn){var si=ut.state,mn=si.flattenNodes,Fi=si.activeKey,Vi=mn.findIndex(function(Di){var $r=Di.key;return $r===Fi});Vi===-1&&Pn<0&&(Vi=mn.length),Vi=(Vi+Pn+mn.length)%mn.length;var Ir=mn[Vi];if(Ir){var Qi=Ir.key;ut.onActiveChange(Qi)}else ut.onActiveChange(null)}),(0,yt.Z)((0,Je.Z)(ut),"onKeyDown",function(Pn){var si=ut.state,mn=si.activeKey,Fi=si.expandedKeys,Vi=si.checkedKeys,Ir=si.fieldNames,Qi=ut.props,Di=Qi.onKeyDown,$r=Qi.checkable,Yi=Qi.selectable;switch(Pn.which){case We.Z.UP:{ut.offsetActiveKey(-1),Pn.preventDefault();break}case We.Z.DOWN:{ut.offsetActiveKey(1),Pn.preventDefault();break}}var hr=ut.getActiveItem();if(hr&&hr.data){var dr=ut.getTreeNodeRequiredProps(),kn=hr.data.isLeaf===!1||!!(hr.data[Ir.children]||[]).length,Ii=(0,Mt.F)((0,wt.Z)((0,wt.Z)({},(0,Mt.H8)(mn,dr)),{},{data:hr.data,active:!0}));switch(Pn.which){case We.Z.LEFT:{kn&&Fi.includes(mn)?ut.onNodeExpand({},Ii):hr.parent&&ut.onActiveChange(hr.parent.key),Pn.preventDefault();break}case We.Z.RIGHT:{kn&&!Fi.includes(mn)?ut.onNodeExpand({},Ii):hr.children&&hr.children.length&&ut.onActiveChange(hr.children[0].key),Pn.preventDefault();break}case We.Z.ENTER:case We.Z.SPACE:{$r&&!Ii.disabled&&Ii.checkable!==!1&&!Ii.disableCheckbox?ut.onNodeCheck({},Ii,!Vi.includes(mn)):!$r&&Yi&&!Ii.disabled&&Ii.selectable!==!1&&ut.onNodeSelect({},Ii);break}}}Di==null||Di(Pn)}),(0,yt.Z)((0,Je.Z)(ut),"setUncontrolledState",function(Pn){var si=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 Fi=!1,Vi=!0,Ir={};Object.keys(Pn).forEach(function(Qi){if(ut.props.hasOwnProperty(Qi)){Vi=!1;return}Fi=!0,Ir[Qi]=Pn[Qi]}),Fi&&(!si||Vi)&&ut.setState((0,wt.Z)((0,wt.Z)({},Ir),mn))}}),(0,yt.Z)((0,Je.Z)(ut),"scrollTo",function(Pn){ut.listRef.current.scrollTo(Pn)}),ut}return(0,Re.Z)(Oe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Vn=this.props,jn=Vn.activeKey,An=Vn.itemScrollOffset,Pn=An===void 0?0:An;jn!==void 0&&jn!==this.state.activeKey&&(this.setState({activeKey:jn}),jn!==null&&this.scrollTo({key:jn,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,jn=Vn.focused,An=Vn.flattenNodes,Pn=Vn.keyEntities,si=Vn.draggingNodeKey,mn=Vn.activeKey,Fi=Vn.dropLevelOffset,Vi=Vn.dropContainerKey,Ir=Vn.dropTargetKey,Qi=Vn.dropPosition,Di=Vn.dragOverNodeKey,$r=Vn.indent,Yi=this.props,hr=Yi.prefixCls,dr=Yi.className,kn=Yi.style,Ii=Yi.showLine,ra=Yi.focusable,Un=Yi.tabIndex,Kr=Un===void 0?0:Un,ia=Yi.selectable,sa=Yi.showIcon,Wa=Yi.icon,ma=Yi.switcherIcon,Ha=Yi.draggable,da=Yi.checkable,la=Yi.checkStrictly,No=Yi.disabled,ti=Yi.motion,Ee=Yi.loadData,pn=Yi.filterTreeNode,hn=Yi.height,ii=Yi.itemHeight,Yn=Yi.scrollWidth,In=Yi.virtual,en=Yi.titleRender,ni=Yi.dropIndicatorRender,zt=Yi.onContextMenu,Kt=Yi.onScroll,Ft=Yi.direction,un=Yi.rootClassName,Ti=Yi.rootStyle,Ri=(0,Te.Z)(this.props,{aria:!0,data:!0}),hi;Ha&&((0,ot.Z)(Ha)==="object"?hi=Ha:typeof Ha=="function"?hi={nodeDraggable:Ha}:hi={});var Ut={prefixCls:hr,selectable:ia,showIcon:sa,icon:Wa,switcherIcon:ma,draggable:hi,draggingNodeKey:si,checkable:da,checkStrictly:la,disabled:No,keyEntities:Pn,dropLevelOffset:Fi,dropContainerKey:Vi,dropTargetKey:Ir,dropPosition:Qi,dragOverNodeKey:Di,indent:$r,direction:Ft,dropIndicatorRender:ni,loadData:Ee,filterTreeNode:pn,titleRender:en,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:Ut},te.createElement("div",{className:ct()(hr,dr,un,(0,yt.Z)((0,yt.Z)((0,yt.Z)({},"".concat(hr,"-show-line"),Ii),"".concat(hr,"-focused"),jn),"".concat(hr,"-active-focused"),mn!==null)),style:Ti},te.createElement(Xt,(0,ve.Z)({ref:this.listRef,prefixCls:hr,style:kn,data:An,disabled:No,selectable:ia,checkable:!!da,motion:ti,dragging:si!==null,height:hn,itemHeight:ii,virtual:In,focusable:ra,focused:jn,tabIndex:Kr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:zt,onScroll:Kt,scrollWidth:Yn},this.getTreeNodeRequiredProps(),Ri))))}}],[{key:"getDerivedStateFromProps",value:function(Vn,jn){var An=jn.prevProps,Pn={prevProps:Vn};function si(Kr){return!An&&Vn.hasOwnProperty(Kr)||An&&An[Kr]!==Vn[Kr]}var mn,Fi=jn.fieldNames;if(si("fieldNames")&&(Fi=(0,Mt.w$)(Vn.fieldNames),Pn.fieldNames=Fi),si("treeData")?mn=Vn.treeData:si("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 Vi=(0,Mt.I8)(mn,{fieldNames:Fi});Pn.keyEntities=(0,wt.Z)((0,yt.Z)({},Ge,Rn),Vi.keyEntities)}var Ir=Pn.keyEntities||jn.keyEntities;if(si("expandedKeys")||An&&si("autoExpandParent"))Pn.expandedKeys=Vn.autoExpandParent||!An&&Vn.defaultExpandParent?(0,At.r7)(Vn.expandedKeys,Ir):Vn.expandedKeys;else if(!An&&Vn.defaultExpandAll){var Qi=(0,wt.Z)({},Ir);delete Qi[Ge];var Di=[];Object.keys(Qi).forEach(function(Kr){var ia=Qi[Kr];ia.children&&ia.children.length&&Di.push(ia.key)}),Pn.expandedKeys=Di}else!An&&Vn.defaultExpandedKeys&&(Pn.expandedKeys=Vn.autoExpandParent||Vn.defaultExpandParent?(0,At.r7)(Vn.defaultExpandedKeys,Ir):Vn.defaultExpandedKeys);if(Pn.expandedKeys||delete Pn.expandedKeys,mn||Pn.expandedKeys){var $r=(0,Mt.oH)(mn||jn.treeData,Pn.expandedKeys||jn.expandedKeys,Fi);Pn.flattenNodes=$r}if(Vn.selectable&&(si("selectedKeys")?Pn.selectedKeys=(0,At.BT)(Vn.selectedKeys,Vn):!An&&Vn.defaultSelectedKeys&&(Pn.selectedKeys=(0,At.BT)(Vn.defaultSelectedKeys,Vn))),Vn.checkable){var Yi;if(si("checkedKeys")?Yi=(0,At.E6)(Vn.checkedKeys)||{}:!An&&Vn.defaultCheckedKeys?Yi=(0,At.E6)(Vn.defaultCheckedKeys)||{}:mn&&(Yi=(0,At.E6)(Vn.checkedKeys)||{checkedKeys:jn.checkedKeys,halfCheckedKeys:jn.halfCheckedKeys}),Yi){var hr=Yi,dr=hr.checkedKeys,kn=dr===void 0?[]:dr,Ii=hr.halfCheckedKeys,ra=Ii===void 0?[]:Ii;if(!Vn.checkStrictly){var Un=(0,on.S)(kn,!0,Ir);kn=Un.checkedKeys,ra=Un.halfCheckedKeys}Pn.checkedKeys=kn,Pn.halfCheckedKeys=ra}}return si("loadedKeys")&&(Pn.loadedKeys=Vn.loadedKeys),Pn}}]),Oe}(te.Component);(0,yt.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,yt.Z)(Xe,"TreeNode",qe.Z);var ke=Xe,Me=ke},10225:function(Dn,ei,be){"use strict";be.d(ei,{BT:function(){return te},E6:function(){return ge},L0:function(){return yt},OM:function(){return ne},_5:function(){return mt},r7:function(){return me},wA:function(){return ct},yx:function(){return Vt}});var ve=be(74902),ot=be(71002),wt=be(80334),Qt=be(67294),Nt=be(86128),Re=be(35381),Je=be(1089),pt=null;function mt(xe,Pe){if(!xe)return[];var Ke=xe.slice(),nt=Ke.indexOf(Pe);return nt>=0&&Ke.splice(nt,1),Ke}function yt(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=[],nt=(0,Re.Z)(Pe,xe);function ft(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];qe.forEach(function(at){var jt=at.key,Mt=at.children;Ke.push(jt),ft(Mt)})}return ft(nt.children),Ke}function We(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,nt,ft,qe,at,jt,Mt,bt){var Bt,Ht=xe.clientX,Jn=xe.clientY,qn=xe.target.getBoundingClientRect(),sn=qn.top,Nn=qn.height,lt=(bt==="rtl"?-1:1)*(((ft==null?void 0:ft.x)||0)-Ht),Ge=(lt-12)/nt,Ne=Mt.filter(function(Me){var He;return(He=jt[Me])===null||He===void 0||(He=He.children)===null||He===void 0?void 0:He.length}),Rn=(0,Re.Z)(jt,Ke.eventKey);if(Jn<sn+Nn/2){var ai=at.findIndex(function(Me){return Me.key===Rn.key}),Zt=ai<=0?0:ai-1,ci=at[Zt].key;Rn=(0,Re.Z)(jt,ci)}var On=Rn.key,Mi=Rn,Xt=Rn.key,At=0,on=0;if(!Ne.includes(On))for(var Si=0;Si<Ge&&We(Rn);Si+=1)Rn=Rn.parent,on+=1;var Gt=Pe.data,Xe=Rn.node,ke=!0;return Te(Rn)&&Rn.level===0&&Jn<sn+Nn/2&&qe({dragNode:Gt,dropNode:Xe,dropPosition:-1})&&Rn.key===Ke.eventKey?At=-1:(Mi.children||[]).length&&Ne.includes(Xt)?qe({dragNode:Gt,dropNode:Xe,dropPosition:0})?At=0:ke=!1:on===0?Ge>-1.5?qe({dragNode:Gt,dropNode:Xe,dropPosition:1})?At=1:ke=!1:qe({dragNode:Gt,dropNode:Xe,dropPosition:0})?At=0:qe({dragNode:Gt,dropNode:Xe,dropPosition:1})?At=1:ke=!1:qe({dragNode:Gt,dropNode:Xe,dropPosition:1})?At=1:ke=!1,{dropPosition:At,dropLevelOffset:on,dropTargetKey:Rn.key,dropTargetPos:Rn.pos,dragOverNodeKey:Xt,dropContainerKey:At===0?null:((Bt=Rn.parent)===null||Bt===void 0?void 0:Bt.key)||null,dropAllowed:ke}}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||{},nt=Ke.processProps,ft=nt===void 0?ue:nt,qe=Array.isArray(xe)?xe:[xe];return qe.map(function(at){var jt=at.children,Mt=_objectWithoutProperties(at,pt),bt=se(jt,Pe);return React.createElement(TreeNode,_extends({key:Mt.key},ft(Mt)),bt)})}function ge(xe){if(!xe)return null;var Pe;if(Array.isArray(xe))Pe={checkedKeys:xe,halfCheckedKeys:void 0};else if((0,ot.Z)(xe)==="object")Pe={checkedKeys:xe.checked||void 0,halfCheckedKeys:xe.halfChecked||void 0};else return(0,wt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Pe}function me(xe,Pe){var Ke=new Set;function nt(ft){if(!Ke.has(ft)){var qe=(0,Re.Z)(Pe,ft);if(qe){Ke.add(ft);var at=qe.parent,jt=qe.node;jt.disabled||at&&nt(at.key)}}}return(xe||[]).forEach(function(ft){nt(ft)}),(0,ve.Z)(Ke)}},17341:function(Dn,ei,be){"use strict";be.d(ei,{S:function(){return Je}});var ve=be(80334),ot=be(35381);function wt(pt,mt){var yt=new Set;return pt.forEach(function(Vt){mt.has(Vt)||yt.add(Vt)}),yt}function Qt(pt){var mt=pt||{},yt=mt.disabled,Vt=mt.disableCheckbox,ct=mt.checkable;return!!(yt||Vt)||ct===!1}function Nt(pt,mt,yt,Vt){for(var ct=new Set(pt),We=new Set,Te=0;Te<=yt;Te+=1){var ne=mt.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(nt){return!Vt(nt.node)}).forEach(function(nt){ct.add(nt.key)})})}for(var te=new Set,ue=yt;ue>=0;ue-=1){var se=mt.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(nt){return!Vt(nt.node)}).forEach(function(nt){var ft=nt.key,qe=ct.has(ft);Pe&&!qe&&(Pe=!1),!Ke&&(qe||We.has(ft))&&(Ke=!0)}),Pe&&ct.add(me.key),Ke&&We.add(me.key),te.add(me.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(wt(We,ct))}}function Re(pt,mt,yt,Vt,ct){for(var We=new Set(pt),Te=new Set(mt),ne=0;ne<=Vt;ne+=1){var te=yt.get(ne)||new Set;te.forEach(function(me){var xe=me.key,Pe=me.node,Ke=me.children,nt=Ke===void 0?[]:Ke;!We.has(xe)&&!Te.has(xe)&&!ct(Pe)&&nt.filter(function(ft){return!ct(ft.node)}).forEach(function(ft){We.delete(ft.key)})})}Te=new Set;for(var ue=new Set,se=Vt;se>=0;se-=1){var ge=yt.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,nt=!1;(xe.children||[]).filter(function(ft){return!ct(ft.node)}).forEach(function(ft){var qe=ft.key,at=We.has(qe);Ke&&!at&&(Ke=!1),!nt&&(at||Te.has(qe))&&(nt=!0)}),Ke||We.delete(xe.key),nt&&Te.add(xe.key),ue.add(xe.key)}})}return{checkedKeys:Array.from(We),halfCheckedKeys:Array.from(wt(Te,We))}}function Je(pt,mt,yt,Vt){var ct=[],We;Vt?We=Vt:We=Qt;var Te=new Set(pt.filter(function(se){var ge=!!(0,ot.Z)(yt,se);return ge||ct.push(se),ge})),ne=new Map,te=0;Object.keys(yt).forEach(function(se){var ge=yt[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 mt===!0?ue=Nt(Te,ne,te,We):ue=Re(Te,mt.halfCheckedKeys,ne,te,We),ue}},35381:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return ve}});function ve(ot,wt){return ot[wt]}},1089:function(Dn,ei,be){"use strict";be.d(ei,{F:function(){return me},H8:function(){return ge},I8:function(){return se},km:function(){return ct},oH:function(){return te},w$:function(){return We},zn:function(){return ne}});var ve=be(71002),ot=be(74902),wt=be(1413),Qt=be(45987),Nt=be(50344),Re=be(98423),Je=be(80334),pt=be(35381),mt=["children"];function yt(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 We(xe){var Pe=xe||{},Ke=Pe.title,nt=Pe._title,ft=Pe.key,qe=Pe.children,at=Ke||"title";return{title:at,_title:nt||[at],key:ft||"key",children:qe||"children"}}function Te(xe,Pe){var Ke=new Map;function nt(ft){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ft||[]).forEach(function(at){var jt=at[Pe.key],Mt=at[Pe.children];warning(jt!=null,"Tree node must have a certain key: [".concat(qe).concat(jt,"]"));var bt=String(jt);warning(!Ke.has(bt)||jt===null||jt===void 0,"Same 'key' exist in the Tree: ".concat(bt)),Ke.set(bt,!0),nt(Mt,"".concat(qe).concat(bt," > "))})}nt(xe)}function ne(xe){function Pe(Ke){var nt=(0,Nt.Z)(Ke);return nt.map(function(ft){if(!Vt(ft))return(0,Je.ZP)(!ft,"Tree/TreeNode can only accept TreeNode as children."),null;var qe=ft.key,at=ft.props,jt=at.children,Mt=(0,Qt.Z)(at,mt),bt=(0,wt.Z)({key:qe},Mt),Bt=Pe(jt);return Bt.length&&(bt.children=Bt),bt}).filter(function(ft){return ft})}return Pe(xe)}function te(xe,Pe,Ke){var nt=We(Ke),ft=nt._title,qe=nt.key,at=nt.children,jt=new Set(Pe===!0?[]:Pe),Mt=[];function bt(Bt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Bt.map(function(Jn,qn){for(var sn=yt(Ht?Ht.pos:"0",qn),Nn=ct(Jn[qe],sn),lt,Ge=0;Ge<ft.length;Ge+=1){var Ne=ft[Ge];if(Jn[Ne]!==void 0){lt=Jn[Ne];break}}var Rn=Object.assign((0,Re.Z)(Jn,[].concat((0,ot.Z)(ft),[qe,at])),{title:lt,key:Nn,parent:Ht,pos:sn,children:null,data:Jn,isStart:[].concat((0,ot.Z)(Ht?Ht.isStart:[]),[qn===0]),isEnd:[].concat((0,ot.Z)(Ht?Ht.isEnd:[]),[qn===Bt.length-1])});return Mt.push(Rn),Pe===!0||jt.has(Nn)?Rn.children=bt(Jn[at]||[],Rn):Rn.children=[],Rn})}return bt(xe),Mt}function ue(xe,Pe,Ke){var nt={};(0,ve.Z)(Ke)==="object"?nt=Ke:nt={externalGetKey:Ke},nt=nt||{};var ft=nt,qe=ft.childrenPropName,at=ft.externalGetKey,jt=ft.fieldNames,Mt=We(jt),bt=Mt.key,Bt=Mt.children,Ht=qe||Bt,Jn;at?typeof at=="string"?Jn=function(Nn){return Nn[at]}:typeof at=="function"&&(Jn=function(Nn){return at(Nn)}):Jn=function(Nn,lt){return ct(Nn[bt],lt)};function qn(sn,Nn,lt,Ge){var Ne=sn?sn[Ht]:xe,Rn=sn?yt(lt.pos,Nn):"0",ai=sn?[].concat((0,ot.Z)(Ge),[sn]):[];if(sn){var Zt=Jn(sn,Rn),ci={node:sn,index:Nn,pos:Rn,key:Zt,parentPos:lt.node?lt.pos:null,level:lt.level+1,nodes:ai};Pe(ci)}Ne&&Ne.forEach(function(On,Mi){qn(On,Mi,{node:sn,pos:Rn,level:lt?lt.level+1:-1},ai)})}qn(null)}function se(xe){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=Pe.initWrapper,nt=Pe.processEntity,ft=Pe.onProcessFinished,qe=Pe.externalGetKey,at=Pe.childrenPropName,jt=Pe.fieldNames,Mt=arguments.length>2?arguments[2]:void 0,bt=qe||Mt,Bt={},Ht={},Jn={posEntities:Bt,keyEntities:Ht};return Ke&&(Jn=Ke(Jn)||Jn),ue(xe,function(qn){var sn=qn.node,Nn=qn.index,lt=qn.pos,Ge=qn.key,Ne=qn.parentPos,Rn=qn.level,ai=qn.nodes,Zt={node:sn,nodes:ai,index:Nn,key:Ge,pos:lt,level:Rn},ci=ct(Ge,lt);Bt[lt]=Zt,Ht[ci]=Zt,Zt.parent=Bt[Ne],Zt.parent&&(Zt.parent.children=Zt.parent.children||[],Zt.parent.children.push(Zt)),nt&&nt(Zt,Jn)},{externalGetKey:bt,childrenPropName:at,fieldNames:jt}),ft&&ft(Jn),Jn}function ge(xe,Pe){var Ke=Pe.expandedKeys,nt=Pe.selectedKeys,ft=Pe.loadedKeys,qe=Pe.loadingKeys,at=Pe.checkedKeys,jt=Pe.halfCheckedKeys,Mt=Pe.dragOverNodeKey,bt=Pe.dropPosition,Bt=Pe.keyEntities,Ht=(0,pt.Z)(Bt,xe),Jn={eventKey:xe,expanded:Ke.indexOf(xe)!==-1,selected:nt.indexOf(xe)!==-1,loaded:ft.indexOf(xe)!==-1,loading:qe.indexOf(xe)!==-1,checked:at.indexOf(xe)!==-1,halfChecked:jt.indexOf(xe)!==-1,pos:String(Ht?Ht.pos:""),dragOver:Mt===xe&&bt===0,dragOverGapTop:Mt===xe&&bt===-1,dragOverGapBottom:Mt===xe&&bt===1};return Jn}function me(xe){var Pe=xe.data,Ke=xe.expanded,nt=xe.selected,ft=xe.checked,qe=xe.loaded,at=xe.loading,jt=xe.halfChecked,Mt=xe.dragOver,bt=xe.dragOverGapTop,Bt=xe.dragOverGapBottom,Ht=xe.pos,Jn=xe.active,qn=xe.eventKey,sn=(0,wt.Z)((0,wt.Z)({},Pe),{},{expanded:Ke,selected:nt,checked:ft,loaded:qe,loading:at,halfChecked:jt,dragOver:Mt,dragOverGapTop:bt,dragOverGapBottom:Bt,pos:Ht,active:Jn,key:qn});return"props"in sn||Object.defineProperty(sn,"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}}),sn}},73299:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return No}});var ve=be(87462),ot=be(1413),wt=be(71002),Qt=be(97685),Nt=be(4942),Re=be(45987),Je=be(67294),pt=be(73935),mt=be(94184),yt=be.n(mt),Vt=be(48555),ct=Je.forwardRef(function(ti,Ee){var pn=ti.height,hn=ti.offsetY,ii=ti.offsetX,Yn=ti.children,In=ti.prefixCls,en=ti.onInnerResize,ni=ti.innerProps,zt=ti.rtl,Kt=ti.extra,Ft={},un={display:"flex",flexDirection:"column"};if(hn!==void 0){var Ti;Ft={height:pn,position:"relative",overflow:"hidden"},un=(0,ot.Z)((0,ot.Z)({},un),{},(Ti={transform:"translateY(".concat(hn,"px)")},(0,Nt.Z)(Ti,zt?"marginRight":"marginLeft",-ii),(0,Nt.Z)(Ti,"position","absolute"),(0,Nt.Z)(Ti,"left",0),(0,Nt.Z)(Ti,"right",0),(0,Nt.Z)(Ti,"top",0),Ti))}return Je.createElement("div",{style:Ft},Je.createElement(Vt.Z,{onResize:function(hi){var Ut=hi.offsetHeight;Ut&&en&&en()}},Je.createElement("div",(0,ve.Z)({style:un,className:yt()((0,Nt.Z)({},"".concat(In,"-holder-inner"),In)),ref:Ee},ni),Yn,Kt)))});ct.displayName="Filler";var We=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(ti){ue.delete(ti)}var ge=function(Ee){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;te+=1;var hn=te;function ii(Yn){if(Yn===0)se(hn),Ee();else{var In=Te(function(){ii(Yn-1)});ue.set(hn,In)}}return ii(pn),hn};ge.cancel=function(ti){var Ee=ue.get(ti);return se(Ee),ne(Ee)};var me=ge;function xe(ti,Ee){var pn="touches"in ti?ti.touches[0]:ti;return pn[Ee?"pageX":"pageY"]}var Pe=Je.forwardRef(function(ti,Ee){var pn,hn=ti.prefixCls,ii=ti.rtl,Yn=ti.scrollOffset,In=ti.scrollRange,en=ti.onStartMove,ni=ti.onStopMove,zt=ti.onScroll,Kt=ti.horizontal,Ft=ti.spinSize,un=ti.containerSize,Ti=ti.style,Ri=ti.thumbStyle,hi=Je.useState(!1),Ut=(0,Qt.Z)(hi,2),zn=Ut[0],xn=Ut[1],Fr=Je.useState(null),ri=(0,Qt.Z)(Fr,2),$t=ri[0],_i=ri[1],Wr=Je.useState(null),Br=(0,Qt.Z)(Wr,2),Sn=Br[0],or=Br[1],Xo=!ii,Na=Je.useRef(),aa=Je.useRef(),ur=Je.useState(!1),Nr=(0,Qt.Z)(ur,2),io=Nr[0],va=Nr[1],Ho=Je.useRef(),pi=function(){clearTimeout(Ho.current),va(!0),Ho.current=setTimeout(function(){va(!1)},3e3)},lo=In-un||0,al=un-Ft||0,el=lo>0,Ns=Je.useMemo(function(){if(Yn===0||lo===0)return 0;var uo=Yn/lo;return uo*al},[Yn,lo,al]),ln=function(So){So.stopPropagation(),So.preventDefault()},Yo=Je.useRef({top:Ns,dragging:zn,pageY:$t,startTop:Sn});Yo.current={top:Ns,dragging:zn,pageY:$t,startTop:Sn};var Va=function(So){xn(!0),_i(xe(So,Kt)),or(Yo.current.top),en(),So.stopPropagation(),So.preventDefault()};Je.useEffect(function(){var uo=function(Cn){Cn.preventDefault()},So=Na.current,Wn=aa.current;return So.addEventListener("touchstart",uo),Wn.addEventListener("touchstart",Va),function(){So.removeEventListener("touchstart",uo),Wn.removeEventListener("touchstart",Va)}},[]);var Ao=Je.useRef();Ao.current=lo;var ms=Je.useRef();ms.current=al,Je.useEffect(function(){if(zn){var uo,So=function(Cn){var Po=Yo.current,Ws=Po.dragging,ds=Po.pageY,kl=Po.startTop;if(me.cancel(uo),Ws){var Ss=xe(Cn,Kt)-ds,Ua=kl;!Xo&&Kt?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(){zt(wr,Kt)})}},Wn=function(){xn(!1),ni()};return window.addEventListener("mousemove",So),window.addEventListener("touchmove",So),window.addEventListener("mouseup",Wn),window.addEventListener("touchend",Wn),function(){window.removeEventListener("mousemove",So),window.removeEventListener("touchmove",So),window.removeEventListener("mouseup",Wn),window.removeEventListener("touchend",Wn),me.cancel(uo)}}},[zn]),Je.useEffect(function(){pi()},[Yn]),Je.useImperativeHandle(Ee,function(){return{delayHidden:pi}});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 Kt?($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:yt()(Ba,(pn={},(0,Nt.Z)(pn,"".concat(Ba,"-horizontal"),Kt),(0,Nt.Z)(pn,"".concat(Ba,"-vertical"),!Kt),(0,Nt.Z)(pn,"".concat(Ba,"-visible"),io),pn)),style:(0,ot.Z)((0,ot.Z)({},$a),Ti),onMouseDown:ln,onMouseMove:pi},Je.createElement("div",{ref:aa,className:yt()("".concat(Ba,"-thumb"),(0,Nt.Z)({},"".concat(Ba,"-thumb-moving"),zn)),style:(0,ot.Z)((0,ot.Z)({},Er),Ri),onMouseDown:Va}))}),Ke=Pe;function nt(ti){var Ee=ti.children,pn=ti.setRef,hn=Je.useCallback(function(ii){pn(ii)},[]);return Je.cloneElement(Ee,{ref:hn})}function ft(ti,Ee,pn,hn,ii,Yn,In){var en=In.getKey;return ti.slice(Ee,pn+1).map(function(ni,zt){var Kt=Ee+zt,Ft=Yn(ni,Kt,{style:{width:hn}}),un=en(ni);return Je.createElement(nt,{key:un,setRef:function(Ri){return ii(ni,Ri)}},Ft)})}function qe(ti){return ti instanceof HTMLElement||ti instanceof SVGElement}function at(ti){return qe(ti)?ti:ti instanceof Je.Component?pt.findDOMNode(ti):null}var jt=be(15671),Mt=be(43144),bt=function(){function ti(){(0,jt.Z)(this,ti),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Mt.Z)(ti,[{key:"set",value:function(pn,hn){this.maps[pn]=hn,this.id+=1}},{key:"get",value:function(pn){return this.maps[pn]}}]),ti}(),Bt=bt;function Ht(ti,Ee,pn){var hn=Je.useState(0),ii=(0,Qt.Z)(hn,2),Yn=ii[0],In=ii[1],en=(0,Je.useRef)(new Map),ni=(0,Je.useRef)(new Bt),zt=(0,Je.useRef)();function Kt(){me.cancel(zt.current)}function Ft(){var Ti=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Kt();var Ri=function(){en.current.forEach(function(Ut,zn){if(Ut&&Ut.offsetParent){var xn=at(Ut),Fr=xn.offsetHeight;ni.current.get(zn)!==Fr&&ni.current.set(zn,xn.offsetHeight)}}),In(function(Ut){return Ut+1})};Ti?Ri():zt.current=me(Ri)}function un(Ti,Ri){var hi=ti(Ti),Ut=en.current.get(hi);Ri?(en.current.set(hi,Ri),Ft()):en.current.delete(hi),!Ut!=!Ri&&(Ri?Ee==null||Ee(Ti):pn==null||pn(Ti))}return(0,Je.useEffect)(function(){return Kt},[]),[un,Ft,ni.current,Yn]}function Jn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var qn=Jn()?Je.useLayoutEffect:Je.useEffect,sn=function(Ee,pn){var hn=Je.useRef(!0);qn(function(){return Ee(hn.current)},pn),qn(function(){return hn.current=!1,function(){hn.current=!0}},[])},Nn=function(Ee,pn){sn(function(hn){if(!hn)return Ee()},pn)},lt=sn;function Ge(ti){var Ee=Je.useRef();Ee.current=ti;var pn=Je.useCallback(function(){for(var hn,ii=arguments.length,Yn=new Array(ii),In=0;In<ii;In++)Yn[In]=arguments[In];return(hn=Ee.current)===null||hn===void 0?void 0:hn.call.apply(hn,[Ee].concat(Yn))},[]);return pn}function Ne(ti){var Ee=React.useRef(!1),pn=React.useState(ti),hn=_slicedToArray(pn,2),ii=hn[0],Yn=hn[1];React.useEffect(function(){return Ee.current=!1,function(){Ee.current=!0}},[]);function In(en,ni){ni&&Ee.current||Yn(en)}return[ii,In]}function Rn(ti){return ti!==void 0}function ai(ti,Ee){var pn=Ee||{},hn=pn.defaultValue,ii=pn.value,Yn=pn.onChange,In=pn.postState,en=useState(function(){return Rn(ii)?ii:Rn(hn)?typeof hn=="function"?hn():hn:typeof ti=="function"?ti():ti}),ni=_slicedToArray(en,2),zt=ni[0],Kt=ni[1],Ft=ii!==void 0?ii:zt,un=In?In(Ft):Ft,Ti=useEvent(Yn),Ri=useState([Ft]),hi=_slicedToArray(Ri,2),Ut=hi[0],zn=hi[1];useLayoutUpdateEffect(function(){var Fr=Ut[0];zt!==Fr&&Ti(zt,Fr)},[Ut]),useLayoutUpdateEffect(function(){Rn(ii)||Kt(ii)},[ii]);var xn=useEvent(function(Fr,ri){Kt(Fr,ri),zn([Ft],ri)});return[un,xn]}var Zt=be(31461);function ci(ti,Ee,pn){var hn=React.useRef({});return(!("value"in hn.current)||pn(hn.current.condition,Ee))&&(hn.current.value=ti(),hn.current.condition=Ee),hn.current.value}function On(ti,Ee){typeof ti=="function"?ti(Ee):_typeof(ti)==="object"&&ti&&"current"in ti&&(ti.current=Ee)}function Mi(){for(var ti=arguments.length,Ee=new Array(ti),pn=0;pn<ti;pn++)Ee[pn]=arguments[pn];var hn=Ee.filter(function(ii){return ii});return hn.length<=1?hn[0]:function(ii){Ee.forEach(function(Yn){On(Yn,ii)})}}function Xt(){for(var ti=arguments.length,Ee=new Array(ti),pn=0;pn<ti;pn++)Ee[pn]=arguments[pn];return useMemo(function(){return Mi.apply(void 0,Ee)},Ee,function(hn,ii){return hn.length!==ii.length||hn.every(function(Yn,In){return Yn!==ii[In]})})}function At(ti){var Ee,pn,hn=isMemo(ti)?ti.type.type:ti.type;return!(typeof hn=="function"&&!((Ee=hn.prototype)!==null&&Ee!==void 0&&Ee.render)||typeof ti=="function"&&!((pn=ti.prototype)!==null&&pn!==void 0&&pn.render))}function on(ti){return!isValidElement(ti)||isFragment(ti)?!1:At(ti)}function Si(ti,Ee,pn,hn){if(!Ee.length)return pn;var ii=_toArray(Ee),Yn=ii[0],In=ii.slice(1),en;return!ti&&typeof Yn=="number"?en=[]:Array.isArray(ti)?en=_toConsumableArray(ti):en=_objectSpread({},ti),hn&&pn===void 0&&In.length===1?delete en[Yn][In[0]]:en[Yn]=Si(en[Yn],In,pn,hn),en}function Gt(ti,Ee,pn){var hn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ee.length&&hn&&pn===void 0&&!get(ti,Ee.slice(0,-1))?ti:Si(ti,Ee,pn,hn)}function Xe(ti){return _typeof(ti)==="object"&&ti!==null&&Object.getPrototypeOf(ti)===Object.prototype}function ke(ti){return Array.isArray(ti)?[]:{}}var Me=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function He(){for(var ti=arguments.length,Ee=new Array(ti),pn=0;pn<ti;pn++)Ee[pn]=arguments[pn];var hn=ke(Ee[0]);return Ee.forEach(function(ii){function Yn(In,en){var ni=new Set(en),zt=get(ii,In),Kt=Array.isArray(zt);if(Kt||Xe(zt)){if(!ni.has(zt)){ni.add(zt);var Ft=get(hn,In);Kt?hn=Gt(hn,In,[]):(!Ft||_typeof(Ft)!=="object")&&(hn=Gt(hn,In,ke(zt))),Me(zt).forEach(function(un){Yn([].concat(_toConsumableArray(In),[un]),ni)})}}else hn=Gt(hn,In,zt)}Yn([])}),hn}var et={},Oe=[],ut=function(Ee){Oe.push(Ee)};function Vn(ti,Ee){if(0)var pn}function jn(ti,Ee){if(0)var pn}function An(){et={}}function Pn(ti,Ee,pn){!Ee&&!et[pn]&&(ti(!1,pn),et[pn]=!0)}function si(ti,Ee){Pn(Vn,ti,Ee)}function mn(ti,Ee){Pn(jn,ti,Ee)}si.preMessage=ut,si.resetWarned=An,si.noteOnce=mn;var Fi=null,Vi=10;function Ir(ti,Ee,pn,hn,ii,Yn,In,en){var ni=Je.useRef(),zt=Je.useState(null),Kt=(0,Qt.Z)(zt,2),Ft=Kt[0],un=Kt[1];return lt(function(){if(Ft&&Ft.times<Vi){if(!ti.current){un(function(pi){return(0,ot.Z)({},pi)});return}Yn();var Ti=Ft.targetAlign,Ri=Ft.originAlign,hi=Ft.index,Ut=Ft.offset,zn=ti.current.clientHeight,xn=!1,Fr=Ti,ri=null;if(zn){for(var $t=Ti||Ri,_i=0,Wr=0,Br=0,Sn=Math.min(Ee.length-1,hi),or=0;or<=Sn;or+=1){var Xo=ii(Ee[or]);Wr=_i;var Na=pn.get(Xo);Br=Wr+(Na===void 0?hn:Na),_i=Br}for(var aa=$t==="top"?Ut:zn-Ut,ur=Sn;ur>=0;ur-=1){var Nr=ii(Ee[ur]),io=pn.get(Nr);if(io===void 0){xn=!0;break}if(aa-=io,aa<=0)break}switch($t){case"top":ri=Wr-Ut;break;case"bottom":ri=Br-zn+Ut;break;default:{var va=ti.current.scrollTop,Ho=va+zn;Wr<va?Fr="top":Br>Ho&&(Fr="bottom")}}ri!==null&&In(ri),ri!==Ft.lastTop&&(xn=!0)}xn&&un(function(pi){return(0,ot.Z)((0,ot.Z)({},pi),{},{times:pi.times+1,targetAlign:Fr,lastTop:ri})})}},[Ft,ti.current]),function(Ti){if(Ti==null){en();return}if(me.cancel(ni.current),typeof Ti=="number")In(Ti);else if(Ti&&(0,wt.Z)(Ti)==="object"){var Ri,hi=Ti.align;"index"in Ti?Ri=Ti.index:Ri=Ee.findIndex(function(xn){return ii(xn)===Ti.key});var Ut=Ti.offset,zn=Ut===void 0?0:Ut;un({times:0,index:Ri,offset:zn,originAlign:hi})}}}function Qi(ti,Ee,pn,hn){var ii=pn-ti,Yn=Ee-pn,In=Math.min(ii,Yn)*2;if(hn<=In){var en=Math.floor(hn/2);return hn%2?pn+en+1:pn-en}return ii>Yn?pn-(hn-Yn):pn+(hn-ii)}function Di(ti,Ee,pn){var hn=ti.length,ii=Ee.length,Yn,In;if(hn===0&&ii===0)return null;hn<ii?(Yn=ti,In=Ee):(Yn=Ee,In=ti);var en={__EMPTY_ITEM__:!0};function ni(Ri){return Ri!==void 0?pn(Ri):en}for(var zt=null,Kt=Math.abs(hn-ii)!==1,Ft=0;Ft<In.length;Ft+=1){var un=ni(Yn[Ft]),Ti=ni(In[Ft]);if(un!==Ti){zt=Ft,Kt=Kt||un!==ni(In[Ft+1]);break}}return zt===null?null:{index:zt,multiple:Kt}}function $r(ti,Ee,pn){var hn=Je.useState(ti),ii=(0,Qt.Z)(hn,2),Yn=ii[0],In=ii[1],en=Je.useState(null),ni=(0,Qt.Z)(en,2),zt=ni[0],Kt=ni[1];return Je.useEffect(function(){var Ft=Di(Yn||[],ti||[],Ee);(Ft==null?void 0:Ft.index)!==void 0&&(pn==null||pn(Ft.index),Kt(ti[Ft.index])),In(ti)},[ti]),[zt]}var Yi=(typeof navigator=="undefined"?"undefined":(0,wt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),hr=Yi,dr=function(ti,Ee){var pn=(0,Je.useRef)(!1),hn=(0,Je.useRef)(null);function ii(){clearTimeout(hn.current),pn.current=!0,hn.current=setTimeout(function(){pn.current=!1},50)}var Yn=(0,Je.useRef)({top:ti,bottom:Ee});return Yn.current.top=ti,Yn.current.bottom=Ee,function(In){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ni=In<0&&Yn.current.top||In>0&&Yn.current.bottom;return en&&ni?(clearTimeout(hn.current),pn.current=!1):(!ni||pn.current)&&ii(),!pn.current&&ni}};function kn(ti,Ee,pn,hn,ii){var Yn=(0,Je.useRef)(0),In=(0,Je.useRef)(null),en=(0,Je.useRef)(null),ni=(0,Je.useRef)(!1),zt=dr(Ee,pn);function Kt(Ut,zn){me.cancel(In.current),Yn.current+=zn,en.current=zn,!zt(zn)&&(hr||Ut.preventDefault(),In.current=me(function(){var xn=ni.current?10:1;ii(Yn.current*xn),Yn.current=0}))}function Ft(Ut,zn){ii(zn,!0),hr||Ut.preventDefault()}var un=(0,Je.useRef)(null),Ti=(0,Je.useRef)(null);function Ri(Ut){if(ti){me.cancel(Ti.current),Ti.current=me(function(){un.current=null},2);var zn=Ut.deltaX,xn=Ut.deltaY,Fr=Ut.shiftKey,ri=zn,$t=xn;(un.current==="sx"||!un.current&&Fr&&xn&&!zn)&&(ri=xn,$t=0,un.current="sx");var _i=Math.abs(ri),Wr=Math.abs($t);un.current===null&&(un.current=hn&&_i>Wr?"x":"y"),un.current==="y"?Kt(Ut,$t):Ft(Ut,ri)}}function hi(Ut){ti&&(ni.current=Ut.detail===en.current)}return[Ri,hi]}var Ii=14/15;function ra(ti,Ee,pn){var hn=(0,Je.useRef)(!1),ii=(0,Je.useRef)(0),Yn=(0,Je.useRef)(null),In=(0,Je.useRef)(null),en,ni=function(un){if(hn.current){var Ti=Math.ceil(un.touches[0].pageY),Ri=ii.current-Ti;ii.current=Ti,pn(Ri)&&un.preventDefault(),clearInterval(In.current),In.current=setInterval(function(){Ri*=Ii,(!pn(Ri,!0)||Math.abs(Ri)<=.1)&&clearInterval(In.current)},16)}},zt=function(){hn.current=!1,en()},Kt=function(un){en(),un.touches.length===1&&!hn.current&&(hn.current=!0,ii.current=Math.ceil(un.touches[0].pageY),Yn.current=un.target,Yn.current.addEventListener("touchmove",ni),Yn.current.addEventListener("touchend",zt))};en=function(){Yn.current&&(Yn.current.removeEventListener("touchmove",ni),Yn.current.removeEventListener("touchend",zt))},lt(function(){return ti&&Ee.current.addEventListener("touchstart",Kt),function(){var Ft;(Ft=Ee.current)===null||Ft===void 0||Ft.removeEventListener("touchstart",Kt),en(),clearInterval(In.current)}},[ti])}var Un=20;function Kr(){var ti=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,pn=ti/Ee*100;return isNaN(pn)&&(pn=0),pn=Math.max(pn,Un),pn=Math.min(pn,ti/2),Math.floor(pn)}function ia(ti,Ee,pn,hn){var ii=Je.useMemo(function(){return[new Map,[]]},[ti,pn.id,hn]),Yn=(0,Qt.Z)(ii,2),In=Yn[0],en=Yn[1],ni=function(Kt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kt,un=In.get(Kt),Ti=In.get(Ft);if(un===void 0||Ti===void 0)for(var Ri=ti.length,hi=en.length;hi<Ri;hi+=1){var Ut,zn=ti[hi],xn=Ee(zn);In.set(xn,hi);var Fr=(Ut=pn.get(xn))!==null&&Ut!==void 0?Ut:hn;if(en[hi]=(en[hi-1]||0)+Fr,xn===Kt&&(un=hi),xn===Ft&&(Ti=hi),un!==void 0&&Ti!==void 0)break}return{top:en[un-1]||0,bottom:en[Ti]}};return ni}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(ti,Ee){var pn=ti.prefixCls,hn=pn===void 0?"rc-virtual-list":pn,ii=ti.className,Yn=ti.height,In=ti.itemHeight,en=ti.fullHeight,ni=en===void 0?!0:en,zt=ti.style,Kt=ti.data,Ft=ti.children,un=ti.itemKey,Ti=ti.virtual,Ri=ti.direction,hi=ti.scrollWidth,Ut=ti.component,zn=Ut===void 0?"div":Ut,xn=ti.onScroll,Fr=ti.onVirtualScroll,ri=ti.onVisibleChange,$t=ti.innerProps,_i=ti.extraRender,Wr=ti.styles,Br=(0,Re.Z)(ti,sa),Sn=!!(Ti!==!1&&Yn&&In),or=Sn&&Kt&&(In*Kt.length>Yn||!!hi),Xo=Ri==="rtl",Na=yt()(hn,(0,Nt.Z)({},"".concat(hn,"-rtl"),Xo),ii),aa=Kt||Wa,ur=(0,Je.useRef)(),Nr=(0,Je.useRef)(),io=(0,Je.useState)(0),va=(0,Qt.Z)(io,2),Ho=va[0],pi=va[1],lo=(0,Je.useState)(0),al=(0,Qt.Z)(lo,2),el=al[0],Ns=al[1],ln=(0,Je.useState)(!1),Yo=(0,Qt.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){pi(function(Xa){var Is;typeof Ra=="function"?Is=Ra(Xa):Is=Ra;var pl=pr(Is);return ur.current.scrollTop=pl,pl})}var So=(0,Je.useRef)({start:0,end:aa.length}),Wn=(0,Je.useRef)(),ka=$r(aa,$a),Cn=(0,Qt.Z)(ka,1),Po=Cn[0];Wn.current=Po;var Ws=Ht($a,null,null),ds=(0,Qt.Z)(Ws,4),kl=ds[0],Ss=ds[1],Ua=ds[2],us=ds[3],tl=Je.useMemo(function(){if(!Sn)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?In:gc);kr>=Ho&&Is===void 0&&(Is=Pu,pl=Xa),kr>Ho+Yn&&Mo===void 0&&(Mo=Pu),Xa=kr}return Is===void 0&&(Is=0,pl=0,Mo=Math.ceil(Yn/In)),Mo===void 0&&(Mo=aa.length-1),Mo=Math.min(Mo+1,aa.length-1),{scrollHeight:Xa,start:Is,end:Mo,offset:pl}},[or,Sn,Ho,aa,us,Yn]),ts=tl.scrollHeight,wr=tl.start,st=tl.end,St=tl.offset;So.current.start=wr,So.current.end=st;var Rt=Je.useState({width:0,height:Yn}),gn=(0,Qt.Z)(Rt,2),Hn=gn[0],Oi=gn[1],Yt=function(Xa){Oi({width:Xa.width||Xa.offsetWidth,height:Xa.height||Xa.offsetHeight})},Zn=(0,Je.useRef)(),Ji=(0,Je.useRef)(),xi=Je.useMemo(function(){return Kr(Hn.width,hi)},[Hn.width,hi]),nr=Je.useMemo(function(){return Kr(Hn.height,ts)},[Hn.height,ts]),Zi=ts-Yn,vi=(0,Je.useRef)(Zi);vi.current=Zi;function pr(Ra){var Xa=Ra;return Number.isNaN(vi.current)||(Xa=Math.min(Xa,vi.current)),Xa=Math.max(Xa,0),Xa}var fn=Ho<=0,eo=Ho>=Zi,so=dr(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),xn==null||xn(Ra),Ia()}var Ds=function(Xa){var Is=Xa,pl=hi-Hn.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(Sn,fn,eo,!!hi,fl),cn=(0,Qt.Z)(Hs,2),nl=cn[0],dl=cn[1];ra(Sn,ur,function(Ra,Xa){return so(Ra,Xa)?!1:(nl({preventDefault:function(){},deltaY:Ra}),!0)}),lt(function(){function Ra(Is){Sn&&Is.preventDefault()}var Xa=ur.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)}},[Sn]),lt(function(){hi&&Ns(function(Ra){return Ds(Ra)})},[Hn.width,hi]);var gl=function(){var Xa,Is;(Xa=Zn.current)===null||Xa===void 0||Xa.delayHidden(),(Is=Ji.current)===null||Is===void 0||Is.delayHidden()},Ys=Ir(ur,aa,Ua,In,$a,function(){return Ss(!0)},uo,gl);Je.useImperativeHandle(Ee,function(){return{getScrollInfo:ya,scrollTo:function(Xa){function Is(pl){return pl&&(0,wt.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(ri){var Ra=aa.slice(wr,st+1);ri(Ra,aa)}},[wr,st,aa]);var Ul=ia(aa,$a,Ua,In),hu=_i==null?void 0:_i({start:wr,end:st,virtual:or,offsetX:el,offsetY:St,rtl:Xo,getSize:Ul}),fc=ft(aa,wr,st,hi,kl,Ft,Er),_s=null;Yn&&(_s=(0,ot.Z)((0,Nt.Z)({},ni?"height":"maxHeight",Yn),ma),Sn&&(_s.overflowY="hidden",hi&&(_s.overflowX="hidden"),Va&&(_s.pointerEvents="none")));var il={};return Xo&&(il.dir="rtl"),Je.createElement("div",(0,ve.Z)({style:(0,ot.Z)((0,ot.Z)({},zt),{},{position:"relative"}),className:Na},il,Br),Je.createElement(Vt.Z,{onResize:Yt},Je.createElement(zn,{className:"".concat(hn,"-holder"),style:_s,ref:ur,onScroll:Us,onMouseEnter:gl},Je.createElement(We,{prefixCls:hn,height:ts,offsetX:el,offsetY:St,scrollWidth:hi,onInnerResize:Ss,ref:Nr,innerProps:$t,rtl:Xo,extra:hu},fc))),or&&ts>Yn&&Je.createElement(Ke,{ref:Zn,prefixCls:hn,scrollOffset:Ho,scrollRange:ts,rtl:Xo,onScroll:ns,onStartMove:ms,onStopMove:Ba,spinSize:nr,containerSize:Hn.height,style:Wr==null?void 0:Wr.verticalScrollBar,thumbStyle:Wr==null?void 0:Wr.verticalScrollBarThumb}),or&&hi&&Je.createElement(Ke,{ref:Ji,prefixCls:hn,scrollOffset:el,scrollRange:hi,rtl:Xo,onScroll:ns,onStartMove:ms,onStopMove:Ba,spinSize:xi,containerSize:Hn.width,horizontal:!0,style:Wr==null?void 0:Wr.horizontalScrollBar,thumbStyle:Wr==null?void 0:Wr.horizontalScrollBarThumb}))}var da=Je.forwardRef(Ha);da.displayName="List";var la=da,No=la},66392:function(Dn,ei){"use strict";var be;var ve=Symbol.for("react.element"),ot=Symbol.for("react.portal"),wt=Symbol.for("react.fragment"),Qt=Symbol.for("react.strict_mode"),Nt=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),Je=Symbol.for("react.context"),pt=Symbol.for("react.server_context"),mt=Symbol.for("react.forward_ref"),yt=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),We=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 wt:case Nt:case Qt:case yt:case Vt:return ue;default:switch(ue=ue&&ue.$$typeof,ue){case pt:case Je:case mt:case We:case ct:case Re:return ue;default:return se}}case ot:return se}}}be=Je,be=Re,be=ve,be=mt,be=wt,be=We,be=ct,be=ot,be=Nt,be=Qt,be=yt,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)===mt},be=function(ue){return te(ue)===wt},be=function(ue){return te(ue)===We},be=function(ue){return te(ue)===ct},be=function(ue){return te(ue)===ot},be=function(ue){return te(ue)===Nt},be=function(ue){return te(ue)===Qt},be=function(ue){return te(ue)===yt},be=function(ue){return te(ue)===Vt},be=function(ue){return typeof ue=="string"||typeof ue=="function"||ue===wt||ue===Nt||ue===Qt||ue===yt||ue===Vt||ue===Te||typeof ue=="object"&&ue!==null&&(ue.$$typeof===We||ue.$$typeof===ct||ue.$$typeof===Re||ue.$$typeof===Je||ue.$$typeof===mt||ue.$$typeof===ne||ue.getModuleId!==void 0)},be=te},31461:function(Dn,ei,be){"use strict";be(66392)},25510:function(Dn){"use strict";Dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoEBYICQYGgwB6hQACWPcLoGGZQICgQFAgKBAV2MgUCsOxk7kXfgwJBgaBAUCAosEcoEIBljzA6hhkUCAoEBYICQYGdTIEALDuZe9H3oEBQICgQFAgK7BEKBGDZI4yOYQYFggJBgaBAUGAnUyAAy07mXvQ9KBAUCAoEBYICe4QCAVj2CKNjmEGBoEBQICgQFNjJFAjAspO5F30PCgQFggJBgaDAHqFAAJY9wugYZlAgKBAUCAoEBXYyBQKw7GTuRd+DAkGBoEBQICiwRygQgGWPMDqGGRQICgQFggJBgZ1MgQAsO5l70fegQFAgKBAUCAr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l56UXX7a777orrLjGTxhnv/7VGbbFVlva6EVG2+tz2J3TFwvCh/iYESPGBBdReHzWXFtkLOf99OlsgNTzzzxvvzj3ZPvhKT+y+/5yv7340qthN82c2XNtypQlgmVz3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/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Uv/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++QThO4P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BEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Dn,ei,be){"use strict";Dn.exports=be.p+"static/AssistantCode3.a8740efb.jpeg"},4977:function(Dn){"use strict";Dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ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7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},17423:function(Dn,ei,be){"use strict";be.d(ei,{Z:function(){return pt}});const ve=mt=>typeof mt=="object"&&mt!=null&&mt.nodeType===1,ot=(mt,yt)=>(!yt||mt!=="hidden")&&mt!=="visible"&&mt!=="clip",wt=(mt,yt)=>{if(mt.clientHeight<mt.scrollHeight||mt.clientWidth<mt.scrollWidth){const Vt=getComputedStyle(mt,null);return ot(Vt.overflowY,yt)||ot(Vt.overflowX,yt)||(ct=>{const We=(Te=>{if(!Te.ownerDocument||!Te.ownerDocument.defaultView)return null;try{return Te.ownerDocument.defaultView.frameElement}catch(ne){return null}})(ct);return!!We&&(We.clientHeight<ct.scrollHeight||We.clientWidth<ct.scrollWidth)})(mt)}return!1},Qt=(mt,yt,Vt,ct,We,Te,ne,te)=>Te<mt&&ne>yt||Te>mt&&ne<yt?0:Te<=mt&&te<=Vt||ne>=yt&&te>=Vt?Te-mt-ct:ne>yt&&te<Vt||Te<mt&&te>Vt?ne-yt+We:0,Nt=mt=>{const yt=mt.parentElement;return yt==null?mt.getRootNode().host||null:yt},Re=(mt,yt)=>{var Vt,ct,We,Te;if(typeof document=="undefined")return[];const{scrollMode:ne,block:te,inline:ue,boundary:se,skipOverflowHiddenElements:ge}=yt,me=typeof se=="function"?se:ai=>ai!==se;if(!ve(mt))throw new TypeError("Invalid target");const xe=document.scrollingElement||document.documentElement,Pe=[];let Ke=mt;for(;ve(Ke)&&me(Ke);){if(Ke=Nt(Ke),Ke===xe){Pe.push(Ke);break}Ke!=null&&Ke===document.body&&wt(Ke)&&!wt(document.documentElement)||Ke!=null&&wt(Ke,ge)&&Pe.push(Ke)}const nt=(ct=(Vt=window.visualViewport)==null?void 0:Vt.width)!=null?ct:innerWidth,ft=(Te=(We=window.visualViewport)==null?void 0:We.height)!=null?Te:innerHeight,{scrollX:qe,scrollY:at}=window,{height:jt,width:Mt,top:bt,right:Bt,bottom:Ht,left:Jn}=mt.getBoundingClientRect(),{top:qn,right:sn,bottom:Nn,left:lt}=(ai=>{const Zt=window.getComputedStyle(ai);return{top:parseFloat(Zt.scrollMarginTop)||0,right:parseFloat(Zt.scrollMarginRight)||0,bottom:parseFloat(Zt.scrollMarginBottom)||0,left:parseFloat(Zt.scrollMarginLeft)||0}})(mt);let Ge=te==="start"||te==="nearest"?bt-qn:te==="end"?Ht+Nn:bt+jt/2-qn+Nn,Ne=ue==="center"?Jn+Mt/2-lt+sn:ue==="end"?Bt+sn:Jn-lt;const Rn=[];for(let ai=0;ai<Pe.length;ai++){const Zt=Pe[ai],{height:ci,width:On,top:Mi,right:Xt,bottom:At,left:on}=Zt.getBoundingClientRect();if(ne==="if-needed"&&bt>=0&&Jn>=0&&Ht<=ft&&Bt<=nt&&bt>=Mi&&Ht<=At&&Jn>=on&&Bt<=Xt)return Rn;const Si=getComputedStyle(Zt),Gt=parseInt(Si.borderLeftWidth,10),Xe=parseInt(Si.borderTopWidth,10),ke=parseInt(Si.borderRightWidth,10),Me=parseInt(Si.borderBottomWidth,10);let He=0,et=0;const Oe="offsetWidth"in Zt?Zt.offsetWidth-Zt.clientWidth-Gt-ke:0,ut="offsetHeight"in Zt?Zt.offsetHeight-Zt.clientHeight-Xe-Me:0,Vn="offsetWidth"in Zt?Zt.offsetWidth===0?0:On/Zt.offsetWidth:0,jn="offsetHeight"in Zt?Zt.offsetHeight===0?0:ci/Zt.offsetHeight:0;if(xe===Zt)He=te==="start"?Ge:te==="end"?Ge-ft:te==="nearest"?Qt(at,at+ft,ft,Xe,Me,at+Ge,at+Ge+jt,jt):Ge-ft/2,et=ue==="start"?Ne:ue==="center"?Ne-nt/2:ue==="end"?Ne-nt:Qt(qe,qe+nt,nt,Gt,ke,qe+Ne,qe+Ne+Mt,Mt),He=Math.max(0,He+at),et=Math.max(0,et+qe);else{He=te==="start"?Ge-Mi-Xe:te==="end"?Ge-At+Me+ut:te==="nearest"?Qt(Mi,At,ci,Xe,Me+ut,Ge,Ge+jt,jt):Ge-(Mi+ci/2)+ut/2,et=ue==="start"?Ne-on-Gt:ue==="center"?Ne-(on+On/2)+Oe/2:ue==="end"?Ne-Xt+ke+Oe:Qt(on,Xt,On,Gt,ke+Oe,Ne,Ne+Mt,Mt);const{scrollLeft:An,scrollTop:Pn}=Zt;He=jn===0?0:Math.max(0,Math.min(Pn+He/jn,Zt.scrollHeight-ci/jn+ut)),et=Vn===0?0:Math.max(0,Math.min(An+et/Vn,Zt.scrollWidth-On/Vn+Oe)),Ge+=Pn-He,Ne+=An-et}Rn.push({el:Zt,top:He,left:et})}return Rn},Je=mt=>mt===!1?{block:"end",inline:"nearest"}:(yt=>yt===Object(yt)&&Object.keys(yt).length!==0)(mt)?mt:{block:"start",inline:"nearest"};function pt(mt,yt){if(!mt.isConnected||!(We=>{let Te=We;for(;Te&&Te.parentNode;){if(Te.parentNode===document)return!0;Te=Te.parentNode instanceof ShadowRoot?Te.parentNode.host:Te.parentNode}return!1})(mt))return;const Vt=(We=>{const Te=window.getComputedStyle(We);return{top:parseFloat(Te.scrollMarginTop)||0,right:parseFloat(Te.scrollMarginRight)||0,bottom:parseFloat(Te.scrollMarginBottom)||0,left:parseFloat(Te.scrollMarginLeft)||0}})(mt);if((We=>typeof We=="object"&&typeof We.behavior=="function")(yt))return yt.behavior(Re(mt,yt));const ct=typeof yt=="boolean"||yt==null?void 0:yt.behavior;for(const{el:We,top:Te,left:ne}of Re(mt,Je(yt))){const te=Te-Vt.top+Vt.bottom,ue=ne-Vt.left+Vt.right;We.scroll({top:te,left:ue,behavior:ct})}}}}]);
|
|
}()); |