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.
1201 lines
2.3 MiB
1201 lines
2.3 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[5546],{11724:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return Re}});var Mt=Et(72308),ne=Et(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},xe=ge,ee=Et(7657),Ht=function(Tt,Ue){return ne.createElement(ee.Z,(0,Mt.Z)({},Tt,{ref:Ue,icon:xe}))},oe=ne.forwardRef(Ht),Re=oe},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(An,Un){"use strict";Un.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function An(Ot,et,nt,ct){nt===void 0&&(nt=0),ct===void 0&&(ct=1/0),this._name=Ot,this._defaultValue=et,this._minimum=nt,this._maximum=ct}Object.defineProperty(An.prototype,"name",{get:function(){return this._name},set:function(Ot){if(typeof Ot!="string"||Ot==="")throw new Error("Shape name must be a valid string.");this._name=Ot}}),Object.defineProperty(An.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ot){if(typeof Ot!="number"||isNaN(Ot))throw new Error("The default value must be a real number, not: "+Ot);this._defaultValue=Ot}}),Object.defineProperty(An.prototype,"minimum",{get:function(){return this._minimum},set:function(Ot){if(typeof Ot!="number"||isNaN(Ot))throw new Error("Minimum must be a real number, not: "+Ot);this._minimum=Ot}}),Object.defineProperty(An.prototype,"maximum",{get:function(){return this._maximum},set:function(Ot){if(typeof Ot!="number"||isNaN(Ot))throw new Error("Maximum must be a real number, not: "+Ot);this._maximum=Ot}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ot,et){var nt=go.Shape._FigureParameters[Ot];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Ot,et,nt){if(!(nt instanceof An))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValue<nt.minimum||nt.defaultValue>nt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var ct=go.Shape._FigureParameters[Ot];ct||(ct=[],go.Shape._FigureParameters[Ot]=ct),ct[et]=nt};var Un=[];function Et(Ot,et){var nt=Un.pop();return nt===void 0?new go.Point(Ot,et):(nt.x=Ot,nt.y=et,nt)}function Mt(){var Ot=Un.pop();return Ot===void 0?new go.Point:Ot}function ne(Ot){Un.push(Ot)}function ge(Ot,et,nt,ct,lt,gt,mt,St,wt){wt||(wt=new go.Point);var zt=Ot-nt,Wt=lt-mt,$t=NaN,Jt=NaN;if(zt===0)if(Wt===0)Ot===nt&&($t=Ot,Jt=et);else{var Vt=(gt-St)/Wt,pe=gt-Vt*lt;$t=Ot,Jt=Vt*$t+pe}else if(Wt===0){var ce=(et-ct)/zt,Ee=et-ce*Ot;$t=lt,Jt=ce*$t+Ee}else{var ce=(et-ct)/zt,Vt=(gt-St)/Wt,Ee=et-ce*Ot,pe=gt-Vt*lt;$t=(pe-Ee)/(ce-Vt),Jt=ce*$t+Ee}return wt.x=$t,wt.y=Jt,wt}function xe(Ot,et,nt,ct,lt,gt,mt,St,wt,zt,Wt,$t,Jt,Vt){var pe=1-wt,ce=wt,Ee=Ot*pe+nt*ce,Ie=et*pe+ct*ce,ke=nt*pe+lt*ce,wn=ct*pe+gt*ce,on=lt*pe+mt*ce,qe=gt*pe+St*ce,We=Ee*pe+ke*ce,he=Ie*pe+wn*ce,It=ke*pe+on*ce,Le=wn*pe+qe*ce,an=We*pe+It*ce,Ze=he*pe+Le*ce;zt.x=Ee,zt.y=Ie,Wt.x=We,Wt.y=he,$t.x=an,$t.y=Ze,Jt.x=It,Jt.y=Le,Vt.x=on,Vt.y=qe}var ee=new go.Spot(.156,.156),Ht=new go.Spot(.844,.844),oe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new An("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=5),ct=Math.min(ct,et/3),ct=Math.min(ct,nt/3);var lt=ct*oe,gt=new go.Geometry().add(new go.PathFigure(ct,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-ct,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,ct,et-lt,0,et,lt)).add(new go.PathSegment(go.PathSegment.Line,et,nt-ct)).add(new go.PathSegment(go.PathSegment.Bezier,et-ct,nt,et,nt-lt,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,ct,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ct,lt,nt,0,nt-lt)).add(new go.PathSegment(go.PathSegment.Line,0,ct)).add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,lt,lt,0).close()));return lt>1&&(gt.spot1=new go.Spot(0,0,lt,lt),gt.spot2=new go.Spot(1,1,-lt,-lt)),gt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ot,et,nt){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=nt/2,ct.endX=et,ct.endY=nt/2,ct}),go.Shape.defineFigureGenerator("LineV",function(Ot,et,nt){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=et/2,ct.startY=0,ct.endX=et/2,ct.endY=nt,ct}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ot,et,nt){var ct=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ct*et,(1-ct)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Move,ct*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,(1-ct)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ot,et,nt){var ct=et/2,lt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ct,ct,ct,ct).close()));return lt.spot1=ee,lt.spot2=Ht,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Ot,et,nt){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=0,ct.endX=et,ct.endY=nt,ct}),go.Shape.defineFigureGenerator("Line2",function(Ot,et,nt){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=et,ct.startY=0,ct.endX=0,ct.endY=nt,ct}),go.Shape.defineFigureGenerator("Curve1",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,oe*et,0,et,(1-oe)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,oe*nt,(1-oe)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,oe*nt,oe*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-oe)*et,0,0,(1-oe)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new An("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)?ct=.1:ct<-1?ct=-1:ct>1&&(ct=1);var lt=Math.abs(ct)*et;if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&>.setSpots(lt/et,0,(et-lt)/et,1),gt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new An("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)?ct=10:ct<-et?ct=-et:ct>et&&(ct=et);var lt=Math.abs(ct);if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&>.setSpots(lt/et,0,(et-lt)/et,1),gt}}),go.Shape.setFigureParameter("Trapezoid1",0,new An("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)?ct=.2:ct<.5?ct=-.5:ct>.5&&(ct=.5);var lt=Math.abs(ct)*et;if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&>.setSpots(lt/et,0,(et-lt)/et,1),gt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new An("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)?ct=20:ct<-et?ct=-et/2:ct>et&&(ct=et/2);var lt=Math.abs(ct);if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&>.setSpots(lt/et,0,(et-lt)/et,1),gt}}),go.Shape.setFigureParameter("ManualOperation",0,new An("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)?ct=10:ct<-et?ct=-et/2:ct>et&&(ct=et/2);var lt=Math.abs(ct);if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())):gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),lt<et/2&>.setSpots(lt/et,0,(et-lt)/et,1),gt}});var Re=[];function ve(){var Ot=Re.pop();return Ot===void 0?[]:Ot}function Tt(Ot){Ot.length=0,Re.push(Ot)}function Ue(Ot){for(var et=ve(),nt=.5,ct=.5,lt=Math.PI*1.5,gt=0,mt=0;mt<Ot;mt++)gt=2*Math.PI/Ot*mt+lt,et[mt]=new go.Point(ct+nt*Math.cos(gt),ct+nt*Math.sin(gt));return et.push(et[0]),et}function ie(Ot){var et=Je(Ot),nt=ve();nt[0]=et[0];for(var ct=1,lt=1;ct<et.length;ct+=2,lt+=3)nt[lt]=et[ct],nt[lt+1]=et[ct],nt[lt+2]=et[ct+1];return Tt(et),nt}function Je(Ot){for(var et=Ue(Ot),nt=ve(),ct=Math.floor(et.length/2),lt=et.length-1,gt=Ot%2===0?2:1,mt=0;mt<lt;mt++){var St=et[mt],wt=et[mt+1],zt=et[(ct+mt-1)%lt],Wt=et[(ct+mt+gt)%lt];nt[mt*2]=St,nt[mt*2+1]=ge(St.x,St.y,zt.x,zt.y,wt.x,wt.y,Wt.x,Wt.y,new go.Point)}return nt[nt.length]=nt[0],Tt(et),nt}go.Shape.defineFigureGenerator("Pentagon",function(Ot,et,nt){var ct=Ue(5),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<5;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(Ot,et,nt){var ct=Ue(6),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<6;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(Ot,et,nt){var ct=Ue(7),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<7;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(Ot,et,nt){var ct=Ue(8),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<8;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(Ot,et,nt){var ct=Ue(9),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<9;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(Ot,et,nt){var ct=Ue(10),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<10;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(Ot,et,nt){var ct=Ue(12),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<12;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ot,et,nt){var ct=Je(5),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<10;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ot,et,nt){var ct=Je(6),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<12;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ot,et,nt){var ct=Je(7),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<14;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ot,et,nt){var ct=Je(8),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<16;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ot,et,nt){var ct=Je(9),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<18;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ot,et,nt){var ct=Je(10),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<20;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ct[mt].x*et,ct[mt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Tt(ct),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ot,et,nt){var ct=ie(5),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<ct.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ct[mt+2].x*et,ct[mt+2].y*nt,ct[mt].x*et,ct[mt].y*nt,ct[mt+1].x*et,ct[mt+1].y*nt));return gt.segments.last().close(),Tt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ot,et,nt){var ct=ie(6),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<ct.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ct[mt+2].x*et,ct[mt+2].y*nt,ct[mt].x*et,ct[mt].y*nt,ct[mt+1].x*et,ct[mt+1].y*nt));return gt.segments.last().close(),Tt(ct),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ot,et,nt){var ct=ie(7),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<ct.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ct[mt+2].x*et,ct[mt+2].y*nt,ct[mt].x*et,ct[mt].y*nt,ct[mt+1].x*et,ct[mt+1].y*nt));return gt.segments.last().close(),Tt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ot,et,nt){var ct=ie(8),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<ct.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ct[mt+2].x*et,ct[mt+2].y*nt,ct[mt].x*et,ct[mt].y*nt,ct[mt+1].x*et,ct[mt+1].y*nt));return gt.segments.last().close(),Tt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ot,et,nt){var ct=ie(9),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<ct.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ct[mt+2].x*et,ct[mt+2].y*nt,ct[mt].x*et,ct[mt].y*nt,ct[mt+1].x*et,ct[mt+1].y*nt));return gt.segments.last().close(),Tt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ot,et,nt){var ct=ie(10),lt=new go.Geometry,gt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(gt);for(var mt=1;mt<ct.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ct[mt+2].x*et,ct[mt+2].y*nt,ct[mt].x*et,ct[mt].y*nt,ct[mt+1].x*et,ct[mt+1].y*nt));return gt.segments.last().close(),Tt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.setFigureParameter("FramedRectangle",0,new An("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new An("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN,lt=Ot?Ot.parameter2:NaN;isNaN(ct)&&(ct=8),isNaN(lt)&&(lt=8);var gt=new go.Geometry,mt=new go.PathFigure(0,0,!0);return gt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct<et/2&<<nt/2&&(mt.add(new go.PathSegment(go.PathSegment.Move,ct,lt)),mt.add(new go.PathSegment(go.PathSegment.Line,ct,nt-lt)),mt.add(new go.PathSegment(go.PathSegment.Line,et-ct,nt-lt)),mt.add(new go.PathSegment(go.PathSegment.Line,et-ct,lt).close())),gt.setSpots(0,0,1,1,ct,lt,-ct,-lt),gt}),go.Shape.setFigureParameter("Ring",0,new An("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=8);var lt=et/2,gt=new go.Geometry,mt=new go.PathFigure(et,et/2,!0);gt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close());var St=Math.max(lt-ct,0);return St>0&&(mt.add(new go.PathSegment(go.PathSegment.Move,et/2+St,et/2)),mt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,St,St).close())),gt.spot1=ee,gt.spot2=Ht,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ot,et,nt){var ct=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ct*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,ct*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-ct)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,ct*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,ct*nt).close())).setSpots(ct/2,ct/2,1-ct/2,1-ct/2)}),go.Shape.setFigureParameter("Pie",0,new An("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new An("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN,lt=Ot?Ot.parameter2:NaN;isNaN(ct)&&(ct=0),isNaN(lt)&&(lt=315);var gt=ct%360;gt<0&&(gt+=360);var mt=lt%360,St=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(St,St).add(new go.PathSegment(go.PathSegment.Arc,gt,mt,St,St,St,St).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ot,et,nt){var ct=oe/Math.SQRT2*.5,lt=Math.SQRT2/2,gt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*et,gt*nt,et,(1-ct)*nt,(lt+ct)*et,(gt+ct)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new An("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30);var lt=Math.min(ct,et)/2,gt=et/2,mt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt-lt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new An("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var lt=Math.min(ct,et)/2,gt=et/2,mt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt-lt).close()))}),go.Shape.setFigureParameter("ThickX",0,new An("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;if((isNaN(ct)||ct<0)&&(ct=30),et===0||nt===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=nt,lt}else{var gt=et/2,mt=nt/2,St=Math.atan2(nt,et),wt=ct-Math.min(Math.cos(St)*ct/2,gt),zt=ct-Math.min(Math.sin(St)*ct/2,mt),lt=new go.Geometry,Wt=new go.PathFigure(wt,0,!0);return lt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,gt,.2*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,et-wt,0)),Wt.add(new go.PathSegment(go.PathSegment.Line,et,zt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.8*et,mt)),Wt.add(new go.PathSegment(go.PathSegment.Line,et,nt-zt)),Wt.add(new go.PathSegment(go.PathSegment.Line,et-wt,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,gt,.8*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,wt,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,nt-zt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,mt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,zt).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new An("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var lt=new go.Geometry,gt=new go.PathFigure(.1*et,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new An("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.2);var lt=new go.Geometry,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,ct*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*et,ct*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*et,(1-ct)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,(1-ct)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*et,(1-ct)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*et,ct*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ct*nt).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new An("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.5);var lt=new go.Geometry,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-ct)*et,.25*nt,Math.abs(1-ct)*et,.75*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*et,.75*nt,ct*et,.25*nt).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,oe*et,0,et,(.5-oe/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+oe/2)*nt,oe*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.4*et,.6*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var gt=.2,mt=.3,St=0,wt=gt*oe;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5+gt+St)*nt,(.5-gt+mt)*et,(.5+wt+St)*nt,(.5-wt+mt)*et,(.5+gt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*et,(.5+St)*nt,(.5+wt+mt)*et,(.5+gt+St)*nt,(.5+gt+mt)*et,(.5+wt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-gt+St)*nt,(1-.5+gt+mt)*et,(.5-wt+St)*nt,(.5+wt+mt)*et,(.5-gt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-wt+mt)*et,(.5-gt+St)*nt,(.5-gt+mt+.05)*et,(.5-wt+St-.02)*nt)),gt=.2,mt=0,St=-.3,wt=gt*oe,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*et,(.5+St)*nt,(.5+wt+mt)*et,(.5+gt+St)*nt,(.5+gt+mt)*et,(.5+wt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-gt+St)*nt,(1-.5+gt+mt)*et,(.5-wt+St)*nt,(.5+wt+mt)*et,(.5-gt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*et,(.5+St)*nt,(.5-wt+mt)*et,(.5-gt+St)*nt,(.5-gt+mt)*et,(.5-wt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-wt+mt)*et,(.5+gt+St)*nt,(.5-gt+mt)*et,(.5+wt+St)*nt,(.5-wt+mt)*et,(.5+gt+St)*nt)),gt=.2,mt=-.3,St=0,wt=gt*oe,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5-gt+St)*nt,(1-.5+gt+mt-.05)*et,(.5-wt+St-.02)*nt,(.5+wt+mt)*et,(.5-gt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*et,(.5+St)*nt,(.5-wt+mt)*et,(.5-gt+St)*nt,(.5-gt+mt)*et,(.5-wt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*et,(.5+gt+St)*nt,(.5-gt+mt)*et,(.5+wt+St)*nt,(.5-wt+mt)*et,(.5+gt+St)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+wt+mt)*et,(.5+gt+St)*nt,(.5+gt+mt)*et,(.5+wt+St)*nt).close()),ct.setSpots(.06,.33,.93,.68),ct}),go.Shape.defineFigureGenerator("YinYang",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*.5,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var gt=.1,mt=.5,St=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(mt+gt)*et,St*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*mt,nt*St,gt*et,gt*et).close()),lt=new go.PathFigure(et*.5,0,!1),ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),St=.75,lt=new go.PathFigure((mt+gt)*et,St*nt,!0),ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*mt,nt*St,gt*et,gt*et).close()),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Peace",function(Ot,et,nt){var ct=.8535533905932737,lt=.5*et,gt=.5*nt;return new go.Geometry().add(new go.PathFigure(lt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,lt,gt,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt)).add(new go.PathSegment(go.PathSegment.Move,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Move,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,ct*et,ct*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=.5,mt=.5,St=.5,wt=new go.PathFigure(mt*et,(St-gt)*nt);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,St*nt,(mt-lt)*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+gt)*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,St*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-gt)*nt,(mt+gt)*et,(St-lt)*nt,(mt+lt)*et,(St-gt)*nt)),gt=.4,lt=oe*.4;var zt=Mt(),Wt=Mt(),$t=Mt(),Jt=Mt();xe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.42,zt,Wt,$t,Jt,Jt);var Vt=Mt(),pe=Mt(),ce=Mt();xe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.58,Jt,Jt,ce,Vt,pe);var Ee=Mt(),Ie=Mt(),ke=Mt();xe(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.42,Ee,Ie,ke,Jt,Jt);var wn=Mt(),on=Mt(),qe=Mt();return xe(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.58,Jt,Jt,qe,wn,on),wt.add(new go.PathSegment(go.PathSegment.Move,qe.x*et,qe.y*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,St*nt,wn.x*et,wn.y*nt,on.x*et,on.y*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,$t.x*et,$t.y*nt,zt.x*et,zt.y*nt,Wt.x*et,Wt.y*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,qe.x*et,qe.y*nt).close()),wt.add(new go.PathSegment(go.PathSegment.Move,ke.x*et,ke.y*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,ce.x*et,ce.y*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,St*nt,Vt.x*et,Vt.y*nt,pe.x*et,pe.y*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ke.x*et,ke.y*nt,Ee.x*et,Ee.y*nt,Ie.x*et,Ie.y*nt).close()),ne(zt),ne(Wt),ne($t),ne(Jt),ne(Vt),ne(pe),ne(ce),ne(Ee),ne(Ie),ne(ke),ne(wn),ne(on),ne(qe),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Fragile",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new An("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30),ct>et&&(ct=et);var lt=(et-ct)/2,gt=lt+ct;return new go.Geometry().add(new go.PathFigure(gt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.4,gt=.4,mt=.5,St=.5,wt=Mt(),zt=Mt(),Wt=Mt(),$t=Mt(),Jt=new go.PathFigure((mt-gt)*et,St*nt,!1);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt)),xe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.44,Wt,$t,zt,wt,wt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*et,zt.y*nt,Wt.x*et,Wt.y*nt,$t.x*et,$t.y*nt));var Vt=Et(zt.x,zt.y);xe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.56,wt,wt,zt,Wt,$t);var pe=Et(zt.x,zt.y);Jt.add(new go.PathSegment(go.PathSegment.Line,(Vt.x*.1+.95*.9)*et,Vt.y*.1*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*et,Vt.y*.1*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Jt.add(new go.PathSegment(go.PathSegment.Line,et,0)),Jt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,(pe.x*.1+.9)*et,.15*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,(pe.x*.1+.9)*et,(pe.y*.1+.05*.9)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,pe.x*et,pe.y*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,St*nt,Wt.x*et,Wt.y*nt,$t.x*et,$t.y*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,St*nt,(mt-lt)*et,(St+gt)*nt,(mt-gt)*et,(St+lt)*nt)),gt=.35,lt=oe*.35;var ce=new go.PathFigure(mt*et,(St-gt)*nt,!1);ct.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,St*nt,(mt-lt)*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+gt)*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,St*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-gt)*nt,(mt+gt)*et,(St-lt)*nt,(mt+lt)*et,(St-gt)*nt));var Ee=new go.PathFigure((mt-gt)*et,St*nt,!1);return ct.add(Ee),ne(wt),ne(zt),ne(Wt),ne($t),ne(Vt),ne(pe),ct.spot1=new go.Spot(.202,.257),ct.spot2=new go.Spot(.792,.739),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("GenderFemale",function(Ot,et,nt){var ct=new go.Geometry,lt=.375,gt=0,mt=-.125,St=lt*oe,wt=new go.PathFigure((.525+gt)*et,(.5+lt+mt)*nt,!1);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*et,(.5+mt)*nt,(.5+St+gt)*et,(.5+lt+mt)*nt,(.5+lt+gt)*et,(.5+St+mt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-lt+mt)*nt,(1-.5+lt+gt)*et,(.5-St+mt)*nt,(.5+St+gt)*et,(.5-lt+mt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*et,(.5+mt)*nt,(.5-St+gt)*et,(.5-lt+mt)*nt,(.5-lt+gt)*et,(.5-St+mt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*et,(.5+lt+mt)*nt,(.5-lt+gt)*et,(.5+St+mt)*nt,(.5-St+gt)*et,(.5+lt+mt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),lt=.325,gt=0,mt=-.125,St=lt*oe;var wt=new go.PathFigure((1-.5+lt+gt)*et,(.5+mt)*nt,!1);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5+lt+mt)*nt,(.5+lt+gt)*et,(.5+St+mt)*nt,(.5+St+gt)*et,(.5+lt+mt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*et,(.5+mt)*nt,(.5-St+gt)*et,(.5+lt+mt)*nt,(.5-lt+gt)*et,(.5+St+mt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-lt+mt)*nt,(.5-lt+gt)*et,(.5-St+mt)*nt,(.5-St+gt)*et,(.5-lt+mt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*et,(.5+mt)*nt,(.5+St+gt)*et,(.5-lt+mt)*nt,(1-.5+lt+gt)*et,(.5-St+mt)*nt));var wt=new go.PathFigure((.525+gt)*et,(.5+lt+mt)*nt,!1);return ct.add(wt),ct.spot1=new go.Spot(.232,.136),ct.spot2=new go.Spot(.682,.611),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicImplies",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,ct*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,ct*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ot,et,nt){var ct=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicTruth",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ot,et,nt){var ct=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,ct*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ct*et,ct*nt,ct*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ot,et,nt){var ct=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,ct*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ct*et,ct*nt,ct*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new An("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new An("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=Ot?Ot.parameter2:NaN;isNaN(lt)&&(lt=.3);var gt=(1-ct)*et,mt=(.5-lt/2)*nt,St=(.5+lt/2)*nt,wt=new go.Geometry,zt=new go.PathFigure(0,mt,!0);wt.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),zt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,St)),zt.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),wt.spot1=new go.Spot(0,mt/nt);var Wt=ge(0,St/nt,1,St/nt,gt/et,1,1,.5,Mt());return wt.spot2=new go.Spot(Wt.x,Wt.y),ne(Wt),wt}),go.Shape.setFigureParameter("Arrow2",0,new An("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new An("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=30),ct>et&&(ct=et);var lt=Ot?Ot.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,nt/2);var gt=et-ct,mt=(nt-lt)/2,St=mt+lt,wt=new go.Geometry,zt=new go.PathFigure(0,mt,!0);wt.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),zt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,St)),zt.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),wt.spot1=new go.Spot(0,mt/nt);var Wt=ge(0,St/nt,1,St/nt,gt/et,1,1,.5,Mt());return wt.spot2=new go.Spot(Wt.x,Wt.y),ne(Wt),wt}),go.Shape.defineFigureGenerator("Chevron",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ct}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),ct}),go.Shape.setFigureParameter("DoubleEndArrow",0,new An("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=(.5-ct/2)*nt,gt=(.5+ct/2)*nt,mt=new go.Geometry,St=new go.PathFigure(et,.5*nt,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),St.add(new go.PathSegment(go.PathSegment.Line,.3*et,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var wt=ge(0,.5,.3,0,0,lt/nt,.1,lt/nt,Mt());return mt.spot1=new go.Spot(wt.x,wt.y),wt=ge(.7,1,1,.5,0,gt/nt,1,gt/nt,wt),mt.spot2=new go.Spot(wt.x,wt.y),ne(wt),mt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new An("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new An("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=40);var lt=Ot?Ot.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(nt-ct)/2,mt=gt+ct,St=(nt-lt)/2,wt=St+lt;(ct>nt||lt>nt)&&(lt>ct?(ct=ct*nt/lt,gt=(nt-ct)/2,mt=gt+ct,St=0,wt=nt):(gt=0,mt=nt,St=0,wt=nt));var zt=new go.Geometry,Wt=new go.PathFigure(et,.5*nt,!0);zt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,wt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,mt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,wt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,St)),Wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,St).close());var $t=ge(0,.5,.3,St/nt,0,gt/nt,1,gt/nt,Mt());return zt.spot1=new go.Spot($t.x,$t.y),$t=ge(.7,wt/nt,1,.5,0,mt/nt,1,mt/nt,$t),zt.spot2=new go.Spot($t.x,$t.y),ne($t),zt}),go.Shape.setFigureParameter("IBeamArrow",0,new An("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=(.5-ct/2)*nt,gt=(.5+ct/2)*nt,mt=new go.Geometry,St=new go.PathFigure(et,.5*nt,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),St.add(new go.PathSegment(go.PathSegment.Line,0,nt)),St.add(new go.PathSegment(go.PathSegment.Line,0,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(0,lt/nt);var wt=ge(.7,1,1,.5,0,gt/nt,1,gt/nt,Mt());return mt.spot2=new go.Spot(wt.x,wt.y),ne(wt),mt}),go.Shape.setFigureParameter("IBeamArrow2",0,new An("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new An("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=40);var lt=Ot?Ot.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(nt-ct)/2,mt=gt+ct,St=(nt-lt)/2,wt=St+lt;(ct>nt||lt>nt)&&(lt>ct?(ct=ct*nt/lt,gt=(nt-ct)/2,mt=gt+ct,St=0,wt=nt):(gt=0,mt=nt,St=0,wt=nt));var zt=new go.Geometry,Wt=new go.PathFigure(et,.5*nt,!0);zt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,wt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,mt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,wt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,wt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,St)),Wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,St)),Wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,St).close()),zt.spot1=new go.Spot(0,gt/nt);var $t=ge(.7,wt/nt,1,.5,0,mt/nt,1,mt/nt,Mt());return zt.spot2=new go.Spot($t.x,$t.y),ne($t),zt}),go.Shape.setFigureParameter("Pointer",0,new An("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.1);var lt=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ct*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(ct,.35);var mt=ge(.2,.65,1,.65,0,1,1,.5,Mt());return lt.spot2=new go.Spot(mt.x,mt.y),ne(mt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new An("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*et,.75*nt,ct*et,.25*nt).close()),lt.spot1=new go.Spot(ct,.35);var mt=ge(0,.65,1,.65,0,1,1,.5,Mt());return lt.spot2=new go.Spot(mt.x,mt.y),ne(mt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new An("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.4);var lt=(.5-ct/2)*nt,gt=(.5+ct/2)*nt,mt=new go.Geometry,St=new go.PathFigure(et,.5*nt,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),St.add(new go.PathSegment(go.PathSegment.Line,0,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(.2,.3);var wt=ge(.7,1,1,.5,0,gt/nt,1,gt/nt,Mt());return mt.spot2=new go.Spot(wt.x,wt.y),ne(wt),mt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new An("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=50);var lt=(nt-ct)/2,gt=lt+ct;ct>nt&&(lt=0,gt=nt);var mt=new go.Geometry,St=new go.PathFigure(et,.5*nt,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),St.add(new go.PathSegment(go.PathSegment.Line,0,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),mt.spot1=new go.Spot(.2,lt/nt);var wt=ge(.7,1,1,.5,0,gt/nt,1,gt/nt,Mt());return mt.spot2=new go.Spot(wt.x,wt.y),ne(wt),mt}),go.Shape.setFigureParameter("SquareArrow",0,new An("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.7);var lt=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,ct*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,ct*et,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(ct,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=oe*.1,mt=new go.PathFigure(0,.9*nt,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+lt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+gt)*nt).close()),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.97),ct}),go.Shape.defineFigureGenerator("Cone2",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.9*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var gt=new go.PathFigure(0,.9*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.82),ct}),go.Shape.defineFigureGenerator("Cube1",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.5,.85),ct}),go.Shape.defineFigureGenerator("Cube2",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.3*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var gt=new go.PathFigure(0,.3*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.7,1),ct}),go.Shape.defineFigureGenerator("Cylinder1",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var lt=new go.Geometry,gt=oe*.5,mt=new go.PathFigure(0,ct,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,oe*ct,(.5-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ct,(.5+gt)*et,0,1*et,oe*ct)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ct)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-oe*ct,(.5+gt)*et,1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ct,(.5-gt)*et,1*nt,0,nt-oe*ct)),mt.add(new go.PathSegment(go.PathSegment.Line,0,ct));var St=new go.PathFigure(et,ct,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ct,1*et,2*ct-oe*ct,(.5+gt)*et,2*ct)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,ct,(.5-gt)*et,2*ct,0,2*ct-oe*ct)),lt.spot1=new go.Spot(0,0,0,2*ct),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var lt=new go.Geometry,gt=oe*.5,mt=new go.PathFigure(0,nt-ct,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,ct)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,oe*ct,(.5-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,ct,(.5+gt)*et,0,et,oe*ct)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ct)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-oe*ct,(.5+gt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ct,(.5-gt)*et,nt,0,nt-oe*ct));var St=new go.PathFigure(0,nt-ct,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ct,0,nt-ct-oe*ct,(.5-gt)*et,nt-2*ct)),St.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ct,(.5+gt)*et,nt-2*ct,et,nt-ct-oe*ct)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*ct),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var lt=new go.Geometry,gt=oe*.5,mt=new go.PathFigure(ct,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et-ct,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-oe*ct,0,et,(.5-gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-ct,nt,et,(.5+gt)*nt,et-oe*ct,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,ct,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,oe*ct,nt,0,(.5+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-gt)*nt,oe*ct,0));var St=new go.PathFigure(ct,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,2*ct,.5*nt,ct+oe*ct,0,2*ct,(.5-gt)*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,ct,nt,2*ct,(.5+gt)*nt,ct+oe*ct,nt)),lt.spot1=new go.Spot(0,0,2*ct,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var lt=new go.Geometry,gt=oe*.5,mt=new go.PathFigure(et-ct,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-oe*ct,0,et,(.5-gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-ct,nt,et,(.5+gt)*nt,et-oe*ct,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,ct,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,oe*ct,nt,0,(.5+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-gt)*nt,oe*ct,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et-ct,0));var St=new go.PathFigure(et-ct,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ct,.5*nt,et-ct-oe*ct,0,et-2*ct,(.5-gt)*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,et-ct,nt,et-2*ct,(.5+gt)*nt,et-ct-oe*ct,nt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*ct,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.25*et,.25*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.25*et,.25*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ct.spot1=new go.Spot(.408,.172),ct.spot2=new go.Spot(.833,.662),ct}),go.Shape.defineFigureGenerator("Prism2",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("Pyramid1",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Pyramid2",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Actor",function(Ot,et,nt){var ct=new go.Geometry,lt=.2,gt=.1,mt=oe*lt,St=oe*gt,wt=.5,zt=.1,Wt=new go.PathFigure(wt*et,(zt+gt)*nt,!0);ct.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-lt)*et,zt*nt,(wt-mt)*et,(zt+gt)*nt,(wt-lt)*et,(zt+St)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt-gt)*nt,(wt-lt)*et,(zt-St)*nt,(wt-mt)*et,(zt-gt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(wt+lt)*et,zt*nt,(wt+mt)*et,(zt-gt)*nt,(wt+lt)*et,(zt-St)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt+gt)*nt,(wt+lt)*et,(zt+St)*nt,(wt+mt)*et,(zt+gt)*nt));var $t=.05,Jt=oe*$t;wt=.05,zt=.25;var Vt=new go.PathFigure(.5*et,.2*nt,!0);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),wt=.95,zt=.25,Vt.add(new go.PathSegment(go.PathSegment.Bezier,(wt+$t)*et,zt*nt,(wt+Jt)*et,(zt-$t)*nt,(wt+$t)*et,(zt-Jt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),$t=.025,Jt=oe*$t,wt=.825,zt=.35,Vt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt-$t)*nt,(wt+$t)*et,(zt-Jt)*nt,(wt+Jt)*et,(zt-$t)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-$t)*et,zt*nt,(wt-Jt)*et,(zt-$t)*nt,(wt-$t)*et,(zt-Jt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),$t=.05,Jt=oe*$t,wt=.5,zt=.7,Vt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt-$t)*nt,(wt+$t)*et,(zt-Jt)*nt,(wt+Jt)*et,(zt-$t)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-$t)*et,zt*nt,(wt-Jt)*et,(zt-$t)*nt,(wt-$t)*et,(zt-Jt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),$t=.025,Jt=oe*$t,wt=.175,zt=.35,Vt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt-$t)*nt,(wt+$t)*et,(zt-Jt)*nt,(wt+Jt)*et,(zt-$t)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-$t)*et,zt*nt,(wt-Jt)*et,(zt-$t)*nt,(wt-$t)*et,(zt-Jt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),$t=.05,Jt=oe*$t,wt=.05,zt=.25,Vt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt-$t)*nt,(wt-$t)*et,(zt-Jt)*nt,(wt-Jt)*et,(zt-$t)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),ct.spot1=new go.Spot(.2,.2),ct.spot2=new go.Spot(.8,.65),ct}),go.Shape.setFigureParameter("Card",0,new An("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;isNaN(ct)&&(ct=.2);var lt=new go.Geometry,gt=new go.PathFigure(et,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ct*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ct*et,0).close()),lt.spot1=new go.Spot(0,ct),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,.5*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var gt=new go.PathFigure(.5*et,.5*nt,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,.25),ct}),go.Shape.defineFigureGenerator("CreateRequest",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(0,lt*nt,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),ct}),go.Shape.defineFigureGenerator("Database",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=oe*.1,mt=new go.PathFigure(et,.1*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+lt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-lt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-gt)*nt));var St=new go.PathFigure(et,.1*nt,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+lt)*et,.2*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+gt)*nt)),St.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+lt)*et,.3*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+gt)*nt)),St.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+gt)*nt,(.5+lt)*et,.4*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-lt)*et,.4*nt,0,(.3+gt)*nt)),ct.spot1=new go.Spot(0,.4),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("DataStorage",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),ct.spot1=new go.Spot(.226,0),ct.spot2=new go.Spot(.81,1),ct}),go.Shape.defineFigureGenerator("DiskStorage",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=oe*.1,mt=new go.PathFigure(et,.1*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+lt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-lt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-gt)*nt));var St=new go.PathFigure(et,.1*nt,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+lt)*et,.2*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+gt)*nt)),St.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+lt)*et,.3*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+gt)*nt)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("Display",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("DividedEvent",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var gt=oe*.2,mt=new go.PathFigure(0,.2*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-gt)*nt,(.2-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+gt)*et,0,et,(.2-gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+gt)*nt,(.8+gt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-gt)*et,nt,0,(.8+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var St=new go.PathFigure(0,lt*nt,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),ct}),go.Shape.defineFigureGenerator("DividedProcess",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(0,lt*nt,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),ct}),go.Shape.defineFigureGenerator("Document",function(Ot,et,nt){var ct=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(lt*et,0,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,lt*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),ct}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(.1*et,.4*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("File",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.75*et,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Interrupt",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,.5*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var gt=new go.PathFigure(et,.5*nt,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var mt=new go.PathFigure(et,.5*nt,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("InternalStorage",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN,gt=Ot?Ot.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.1);var mt=new go.PathFigure(0,0,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var St=new go.PathFigure(lt*et,0,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),St.add(new go.PathSegment(go.PathSegment.Move,0,gt*nt)),St.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)),ct}),go.Shape.defineFigureGenerator("Junction",function(Ot,et,nt){var ct=new go.Geometry,lt=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,mt=oe*.5,St=.5,wt=new go.PathFigure(et,St*nt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,St*et,nt,et,(St+mt)*nt,(St+mt)*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,St*nt,(St-mt)*et,nt,0,(St+mt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,St*et,0,0,(St-mt)*nt,(St-mt)*et,0)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,St*nt,(St+mt)*et,0,et,(St-mt)*nt));var zt=new go.PathFigure((gt+lt)*et,(gt+lt)*nt,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt*et,gt*nt)),zt.add(new go.PathSegment(go.PathSegment.Move,gt*et,(gt+lt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Line,(gt+lt)*et,gt*nt)),ct}),go.Shape.defineFigureGenerator("LinedDocument",function(Ot,et,nt){var ct=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var gt=new go.PathFigure(.1*et,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),ct.spot1=new go.Spot(.1,0),ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("LoopLimit",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MagneticTape",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=.5,mt=new go.PathFigure(.5*et,nt,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-lt)*et,nt,0,(gt+lt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-lt)*nt,(gt-lt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+lt)*et,0,et,(gt-lt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+.1)*et,.9*nt,et,(gt+lt)*nt,(gt+lt)*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ct.spot1=new go.Spot(.15,.15),ct.spot2=new go.Spot(.85,.8),ct}),go.Shape.defineFigureGenerator("ManualInput",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)&&(lt=.7);var gt=new go.PathFigure(0,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)&&(lt=.25);var gt=new go.PathFigure(0,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,lt*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-lt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("MultiDocument",function(Ot,et,nt){var ct=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var gt=new go.PathFigure(.1*et,.2*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.8,.77),ct}),go.Shape.defineFigureGenerator("MultiProcess",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.1*et,.1*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var gt=new go.PathFigure(.2*et,.1*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),ct.spot1=new go.Spot(0,.2),ct.spot2=new go.Spot(.8,1),ct}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=1-lt,mt=new go.PathFigure(0,0,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var St=new go.PathFigure(.5*lt*et,lt*nt,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*et,lt*nt)),ct}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("Or",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=.5,mt=new go.PathFigure(et,gt*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+lt)*nt,(gt+lt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-lt)*et,nt,0,(gt+lt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-lt)*nt,(gt-lt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+lt)*et,0,et,(gt-lt)*nt));var St=new go.PathFigure(et,.5*nt,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),St.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),St.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct}),go.Shape.defineFigureGenerator("PaperTape",function(Ot,et,nt){var ct=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ct.spot1=new go.Spot(0,.49),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN,gt=Ot?Ot.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN,gt=Ot?Ot.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct}),go.Shape.defineFigureGenerator("Procedure",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure((1-lt)*et,0,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,lt*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),ct}),go.Shape.defineFigureGenerator("Process",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var mt=new go.PathFigure(lt*et,0,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Sort",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(0,.5*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.5),ct}),go.Shape.defineFigureGenerator("Start",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)&&(lt=.25);var gt=new go.PathFigure(lt*et,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var mt=new go.PathFigure(lt*et,0,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),ct.spot1=new go.Spot(lt,0),ct.spot2=new go.Spot(1-lt,1),ct}),go.Shape.defineFigureGenerator("Terminator",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),ct.spot1=new go.Spot(.23,0),ct.spot2=new go.Spot(.77,1),ct}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ot,et,nt){var ct=new go.Geometry,lt=Ot?Ot.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-lt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*nt).close()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("AndGate",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=new go.PathFigure(0,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+lt)*et,0,et,(.5-lt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+lt)*nt,(.5+lt)*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.55,1),ct}),go.Shape.defineFigureGenerator("Buffer",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Clock",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=.5,mt=new go.PathFigure(et,gt*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+lt)*nt,(gt+lt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-lt)*et,nt,0,(gt+lt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-lt)*nt,(gt-lt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+lt)*et,0,et,(gt-lt)*nt));var St=new go.PathFigure(et,gt*nt,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt));var wt=new go.PathFigure(.8*et,.75*nt,!1);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),ct}),go.Shape.defineFigureGenerator("Ground",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),ct}),go.Shape.defineFigureGenerator("Inverter",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.1,gt=.1,mt=.9,St=.5,wt=new go.PathFigure(.8*et,.5*nt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var zt=new go.PathFigure((mt+gt)*et,St*nt,!0);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,St*nt,(mt-lt)*et,(St+gt)*nt,(mt-gt)*et,(St+lt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,St*nt,(mt+lt)*et,(St-gt)*nt,(mt+gt)*et,(St-lt)*nt)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.4,.75),ct}),go.Shape.defineFigureGenerator("NandGate",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=oe*.4,mt=oe*.1,St=.1,wt=.9,zt=.5,Wt=new go.PathFigure(.8*et,.5*nt,!0);ct.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+gt)*nt,(.4+lt)*et,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Wt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Wt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+lt)*et,0,.8*et,(.5-gt)*nt));var $t=new go.PathFigure((wt+St)*et,zt*nt,!0);return ct.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt+St)*nt,(wt+St)*et,(zt+mt)*nt,(wt+mt)*et,(zt+St)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(wt-St)*et,zt*nt,(wt-mt)*et,(zt+St)*nt,(wt-St)*et,(zt+mt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt-St)*nt,(wt-St)*et,(zt-mt)*nt,(wt-mt)*et,(zt-St)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(wt+St)*et,zt*nt,(wt+mt)*et,(zt-St)*nt,(wt+St)*et,(zt-mt)*nt)),ct.spot1=new go.Spot(0,.05),ct.spot2=new go.Spot(.55,.95),ct}),go.Shape.defineFigureGenerator("NorGate",function(Ot,et,nt){var ct=new go.Geometry,lt=.5,gt=oe*lt,mt=0,St=.5,wt=new go.PathFigure(.8*et,.5*nt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(mt+gt)*et,(St-lt)*nt,.7*et,(St-gt)*nt)),lt=.1,gt=oe*.1,mt=.9,St=.5;var zt=new go.PathFigure((mt-lt)*et,St*nt,!0);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*et,St*nt,(mt+gt)*et,(St-lt)*nt,(mt+lt)*et,(St-gt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*et,St*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt)),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.6,.75),ct}),go.Shape.defineFigureGenerator("OrGate",function(Ot,et,nt){var ct=new go.Geometry,lt=.5,gt=oe*lt,mt=0,St=.5,wt=new go.PathFigure(0,0,!0);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(mt+gt+gt)*et,(St-lt)*nt,.8*et,(St-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(St+gt)*nt,(mt+gt+gt)*et,(St+lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("XnorGate",function(Ot,et,nt){var ct=new go.Geometry,lt=.5,gt=oe*lt,mt=.2,St=.5,wt=new go.PathFigure(.1*et,0,!1);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var zt=new go.PathFigure(.8*et,.5*nt,!0);ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(mt+gt)*et,(St-lt)*nt,.7*et,(St-gt)*nt)),lt=.1,gt=oe*.1,mt=.9,St=.5;var Wt=new go.PathFigure((mt-lt)*et,St*nt,!0);return ct.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*et,St*nt,(mt+gt)*et,(St-lt)*nt,(mt+lt)*et,(St-gt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*et,St*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt)),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.65,.75),ct}),go.Shape.defineFigureGenerator("XorGate",function(Ot,et,nt){var ct=new go.Geometry,lt=.5,gt=oe*lt,mt=.2,St=.5,wt=new go.PathFigure(.1*et,0,!1);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var zt=new go.PathFigure(.2*et,0,!0);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(mt+gt)*et,(St-lt)*nt,.9*et,(St-gt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.8,.75),ct}),go.Shape.defineFigureGenerator("Capacitor",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct}),go.Shape.defineFigureGenerator("Resistor",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),ct}),go.Shape.defineFigureGenerator("Inductor",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.1,gt=.1,mt=.1,St=.5,wt=new go.PathFigure((mt-lt*.5)*et,nt,!1);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,0,(mt-lt)*et,nt,(mt-gt)*et,0)),mt=.3,wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+gt)*et,0,(mt+lt)*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,0,(mt-lt)*et,nt,(mt-gt)*et,0)),mt=.5,wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+gt)*et,0,(mt+lt)*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,0,(mt-lt)*et,nt,(mt-gt)*et,0)),mt=.7,wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,nt,(mt+gt)*et,0,(mt+lt)*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,0,(mt-lt)*et,nt,(mt-gt)*et,0)),mt=.9,wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt*.5)*et,nt,(mt+gt)*et,0,(mt+lt)*et,nt)),ct}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.5,gt=.5,mt=.5,St=.5,wt=new go.PathFigure((mt-gt)*et,St*nt,!1);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,St*nt,(mt+lt)*et,(St-gt)*nt,(mt+gt)*et,(St-lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,St*nt,(mt-lt)*et,(St+gt)*nt,(mt-gt)*et,(St+lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,(mt-gt+.1)*et,St*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt-.1)*et,St*nt,mt*et,(St-gt)*nt,mt*et,(St+gt)*nt)),ct}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct}),go.Shape.defineFigureGenerator("Diode",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Wifi",function(Ot,et,nt){var ct=new go.Geometry,lt=et,gt=nt;et=et*.38,nt=nt*.6;var mt=oe*.8,St=.8,wt=0,zt=.5,Wt=(lt-et)/2,$t=(gt-nt)/2,Jt=new go.PathFigure(wt*et+Wt,(zt+St)*nt+$t,!0);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-St)*et+Wt,zt*nt+$t,(wt-mt)*et+Wt,(zt+St)*nt+$t,(wt-St)*et+Wt,(zt+mt)*nt+$t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt-St)*nt+$t,(wt-St)*et+Wt,(zt-mt)*nt+$t,(wt-mt)*et+Wt,(zt-St)*nt+$t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-St+mt*.5)*et+Wt,zt*nt+$t,wt*et+Wt,(zt-St)*nt+$t,(wt-St+mt*.5)*et+Wt,(zt-mt)*nt+$t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt+St)*nt+$t,(wt-St+mt*.5)*et+Wt,(zt+mt)*nt+$t,wt*et+Wt,(zt+St)*nt+$t).close()),mt=oe*.4,St=.4,wt=.2,zt=.5;var Vt=new go.PathFigure(wt*et+Wt,(zt+St)*nt+$t,!0);ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-St)*et+Wt,zt*nt+$t,(wt-mt)*et+Wt,(zt+St)*nt+$t,(wt-St)*et+Wt,(zt+mt)*nt+$t)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt-St)*nt+$t,(wt-St)*et+Wt,(zt-mt)*nt+$t,(wt-mt)*et+Wt,(zt-St)*nt+$t)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-St+mt*.5)*et+Wt,zt*nt+$t,wt*et+Wt,(zt-St)*nt+$t,(wt-St+mt*.5)*et+Wt,(zt-mt)*nt+$t)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt+St)*nt+$t,(wt-St+mt*.5)*et+Wt,(zt+mt)*nt+$t,wt*et+Wt,(zt+St)*nt+$t).close()),mt=oe*.2,St=.2,wt=.5,zt=.5;var pe=new go.PathFigure((wt-St)*et+Wt,zt*nt+$t,!0);ct.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt-St)*nt+$t,(wt-St)*et+Wt,(zt-mt)*nt+$t,(wt-mt)*et+Wt,(zt-St)*nt+$t)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(wt+St)*et+Wt,zt*nt+$t,(wt+mt)*et+Wt,(zt-St)*nt+$t,(wt+St)*et+Wt,(zt-mt)*nt+$t)),pe.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt+St)*nt+$t,(wt+St)*et+Wt,(zt+mt)*nt+$t,(wt+mt)*et+Wt,(zt+St)*nt+$t)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(wt-St)*et+Wt,zt*nt+$t,(wt-mt)*et+Wt,(zt+St)*nt+$t,(wt-St)*et+Wt,(zt+mt)*nt+$t)),mt=oe*.4,St=.4,wt=.8,zt=.5;var ce=new go.PathFigure(wt*et+Wt,(zt-St)*nt+$t,!0);ct.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(wt+St)*et+Wt,zt*nt+$t,(wt+mt)*et+Wt,(zt-St)*nt+$t,(wt+St)*et+Wt,(zt-mt)*nt+$t)),ce.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt+St)*nt+$t,(wt+St)*et+Wt,(zt+mt)*nt+$t,(wt+mt)*et+Wt,(zt+St)*nt+$t)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(wt+St-mt*.5)*et+Wt,zt*nt+$t,wt*et+Wt,(zt+St)*nt+$t,(wt+St-mt*.5)*et+Wt,(zt+mt)*nt+$t)),ce.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt-St)*nt+$t,(wt+St-mt*.5)*et+Wt,(zt-mt)*nt+$t,wt*et+Wt,(zt-St)*nt+$t).close()),mt=oe*.8,St=.8,wt=1,zt=.5;var Ee=new go.PathFigure(wt*et+Wt,(zt-St)*nt+$t,!0);return ct.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(wt+St)*et+Wt,zt*nt+$t,(wt+mt)*et+Wt,(zt-St)*nt+$t,(wt+St)*et+Wt,(zt-mt)*nt+$t)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt+St)*nt+$t,(wt+St)*et+Wt,(zt+mt)*nt+$t,(wt+mt)*et+Wt,(zt+St)*nt+$t)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(wt+St-mt*.5)*et+Wt,zt*nt+$t,wt*et+Wt,(zt+St)*nt+$t,(wt+St-mt*.5)*et+Wt,(zt+mt)*nt+$t)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,wt*et+Wt,(zt-St)*nt+$t,(wt+St-mt*.5)*et+Wt,(zt-mt)*nt+$t,wt*et+Wt,(zt-St)*nt+$t).close()),ct}),go.Shape.defineFigureGenerator("Email",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),ct}),go.Shape.defineFigureGenerator("Ethernet",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.35*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var gt=new go.PathFigure(.1*et,nt,!0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var mt=new go.PathFigure(.6*et,nt,!0,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var St=new go.PathFigure(0,.5*nt,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),St.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),St.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),St.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ct}),go.Shape.defineFigureGenerator("Power",function(Ot,et,nt){var ct=new go.Geometry,lt=oe*.4,gt=.4,mt=.5,St=.5,wt=Mt(),zt=Mt(),Wt=Mt(),$t=Mt();xe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,wt,wt,zt,Wt,$t);var Jt=Et(zt.x,zt.y),Vt=new go.PathFigure(zt.x*et,zt.y*nt,!0);ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,St*nt,Wt.x*et,Wt.y*nt,$t.x*et,$t.y*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,St*nt,(mt-lt)*et,(St+gt)*nt,(mt-gt)*et,(St+lt)*nt)),xe(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,Wt,$t,zt,wt,wt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*et,zt.y*nt,Wt.x*et,Wt.y*nt,$t.x*et,$t.y*nt)),lt=oe*.3,gt=.3,xe(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,Wt,$t,zt,wt,wt),Vt.add(new go.PathSegment(go.PathSegment.Line,zt.x*et,zt.y*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*et,St*nt,$t.x*et,$t.y*nt,Wt.x*et,Wt.y*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+gt)*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*et,St*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),xe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,wt,wt,zt,Wt,$t),Vt.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*et,zt.y*nt,$t.x*et,$t.y*nt,Wt.x*et,Wt.y*nt).close());var Vt=new go.PathFigure(.45*et,0,!0);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ne(wt),ne(zt),ne(Wt),ne($t),ne(Jt),ct.spot1=new go.Spot(.25,.45),ct.spot2=new go.Spot(.75,.8),ct}),go.Shape.defineFigureGenerator("Fallout",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt/2,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function gt(mt,St,wt){mt.add(new go.PathSegment(go.PathSegment.Move,(.3+St)*et,(.8+wt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.5+St)*et,(.5+wt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.1+St)*et,(.5+wt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,(.3+St)*et,(.8+wt)*nt).close())}return gt(lt,0,0),gt(lt,.4,0),gt(lt,.2,-.3),ct}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.2*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),ct.spot1=new go.Spot(.3,.3),ct.spot2=new go.Spot(.7,.7),ct}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.37*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),ct}),go.Shape.defineFigureGenerator("FireHazard",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.1*et,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),ct.spot1=new go.Spot(.07,.445),ct.spot2=new go.Spot(.884,.958),ct}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ot,et,nt){var ct=new go.Geometry,lt=.5,gt=0,mt=0,St=lt*oe,wt=.4*Math.SQRT2/2+.5,zt=.5-.5*Math.SQRT2/2,Wt=1,$t=.5,Jt=.5,Vt=0,pe=new go.PathFigure(wt*et,(1-zt)*nt,!1);return ct.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,$t*nt,Wt*et,.7*nt,Wt*et,$t*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+gt)*et,(Vt+gt)*nt,(.5+lt+gt)*et,(.5-St+gt)*nt,(.5+St+gt)*et,(.5-lt+gt)*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*et,(.5+mt)*nt,(.5-St+gt)*et,(.5-lt+mt)*nt,(.5-lt+gt)*et,(.5-St+mt)*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*et,.9*nt,(.5-lt+gt)*et,(.5+St+mt)*nt,(.5-St+gt)*et,.9*nt)),pe.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*et,.8*nt)),pe.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*et,.9*nt)),pe.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*et,.95*nt)),ct}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var gt=new go.PathFigure(et,nt,!1);ct.add(gt);var mt=new go.PathFigure(0,.5*nt,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),ct}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),ct}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var lt=new go.PathFigure(0,.2*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),ct}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.7*et,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var gt=new go.PathFigure(.45*et,.73*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),ct}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var gt=new go.PathFigure(.335*et,(1-.555)*nt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var mt=.5-.285,St=.5,wt=mt,zt=Math.PI/4,Wt=4*(1-Math.cos(zt))/(3*Math.sin(zt)),$t=Wt*.5,Jt=mt,Vt=mt,pe=Wt*Jt,ce=Wt*Vt;gt.add(new go.PathSegment(go.PathSegment.Bezier,(St-Jt)*et,wt*nt,(St-(pe+Jt)/2)*et,(wt+(Vt+ce)/2)*nt,(St-Jt)*et,(wt+ce)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,St*et,(wt-Vt)*nt,(St-Jt)*et,(wt-ce)*nt,(St-pe)*et,(wt-Vt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(St+Jt)*et,wt*nt,(St+pe)*et,(wt-Vt)*nt,(St+Jt)*et,(wt-ce)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(St+Jt)*et,(wt+ce)*nt,(St+(pe+Jt)/2)*et,(wt+(Vt+ce)/2)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var Ee=new go.PathFigure(.2*et,nt,!1);ct.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var Ie=new go.PathFigure(.8*et,nt,!1);return ct.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ct}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.1*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var gt=new go.PathFigure(.2*et,.2*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ct}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),ct}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var gt=new go.PathFigure(et,nt,!1);ct.add(gt);var mt=new go.PathFigure(.1*et,nt,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ct}),go.Shape.defineFigureGenerator("Caution",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.05*et,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var gt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-gt)*et,.875*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,gt*et,gt*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),ct}),go.Shape.defineFigureGenerator("Recycle",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.45*et,.95*nt,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var gt=new go.PathFigure(.475*et,.2*nt,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var mt=new go.PathFigure(.675*et,.575*nt,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),mt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),ct}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ot,et,nt){var ct=new go.Geometry,lt=.5,gt=oe*.5,mt=new go.PathFigure(et,lt*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,nt,et,(lt+gt)*nt,(lt+gt)*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*nt,(lt-gt)*et,nt,0,(lt+gt)*nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,0,0,(lt-gt)*nt,(lt-gt)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt*nt,(lt+gt)*et,0,et,(lt-gt)*nt));var St=new go.PathFigure(lt*et,0,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*et,.15*nt)),St.add(new go.PathSegment(go.PathSegment.Move,lt*et,nt)),St.add(new go.PathSegment(go.PathSegment.Line,lt*et,.85*nt)),St.add(new go.PathSegment(go.PathSegment.Move,0,lt*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.15*et,lt*nt)),St.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.85*et,lt*nt)),St.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),St.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ct}),go.Shape.defineFigureGenerator("Package",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.15*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,.15*nt,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),ct.spot1=new go.Spot(0,.1),ct.spot2=new go.Spot(1,1),ct}),go.Shape.defineFigureGenerator("Class",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var mt=new go.PathFigure(0,.5*nt,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),ct}),go.Shape.defineFigureGenerator("Component",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var gt=new go.PathFigure(0,.2*nt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var mt=new go.PathFigure(0,.6*nt,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),ct}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.15*et,.6*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var gt=new go.PathFigure(.15*et,.6*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ct}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ct}),go.Shape.defineFigureGenerator("Workcell",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct}),go.Shape.defineFigureGenerator("Supermarket",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ct}),go.Shape.defineFigureGenerator("TruckShipment",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(et,.8*nt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var mt=.1,St=oe*.1,wt=.2,zt=.9,Wt=new go.PathFigure((wt-mt)*et,zt*nt,!0);ct.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt-mt)*nt,(wt-mt)*et,(zt-St)*nt,(wt-St)*et,(zt-mt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(wt+mt)*et,zt*nt,(wt+St)*et,(zt-mt)*nt,(wt+mt)*et,(zt-St)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt+mt)*nt,(wt+mt)*et,(zt+St)*nt,(wt+St)*et,(zt+mt)*nt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-mt)*et,zt*nt,(wt-St)*et,(zt+mt)*nt,(wt-mt)*et,(zt+St)*nt).close()),mt=.1,St=oe*.1,wt=.8,zt=.9;var $t=new go.PathFigure((wt-mt)*et,zt*nt,!0);return ct.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt-mt)*nt,(wt-mt)*et,(zt-St)*nt,(wt-St)*et,(zt-mt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(wt+mt)*et,zt*nt,(wt+St)*et,(zt-mt)*nt,(wt+mt)*et,(zt-St)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(zt+mt)*nt,(wt+mt)*et,(zt+St)*nt,(wt+St)*et,(zt+mt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(wt-mt)*et,zt*nt,(wt-St)*et,(zt+mt)*nt,(wt-mt)*et,(zt+St)*nt).close()),ct}),go.Shape.defineFigureGenerator("KanbanPost",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.2*et,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ct}),go.Shape.defineFigureGenerator("Forklift",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var gt=new go.PathFigure(0,.5*nt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var mt=new go.PathFigure(.5*et,.8*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var St=new go.PathFigure(.5*et,.7*nt,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var wt=.1,zt=oe*.1,Wt=.1,$t=.9,Jt=new go.PathFigure((Wt-wt)*et,$t*nt,!0);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,($t-wt)*nt,(Wt-wt)*et,($t-zt)*nt,(Wt-zt)*et,($t-wt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+wt)*et,$t*nt,(Wt+zt)*et,($t-wt)*nt,(Wt+wt)*et,($t-zt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,($t+wt)*nt,(Wt+wt)*et,($t+zt)*nt,(Wt+zt)*et,($t+wt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Wt-wt)*et,$t*nt,(Wt-zt)*et,($t+wt)*nt,(Wt-wt)*et,($t+zt)*nt)),wt=.1,zt=oe*.1,Wt=.4,$t=.9;var Vt=new go.PathFigure((Wt-wt)*et,$t*nt,!0);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,($t-wt)*nt,(Wt-wt)*et,($t-zt)*nt,(Wt-zt)*et,($t-wt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+wt)*et,$t*nt,(Wt+zt)*et,($t-wt)*nt,(Wt+wt)*et,($t-zt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,Wt*et,($t+wt)*nt,(Wt+wt)*et,($t+zt)*nt,(Wt+zt)*et,($t+wt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(Wt-wt)*et,$t*nt,(Wt-zt)*et,($t+wt)*nt,(Wt-wt)*et,($t+zt)*nt)),ct}),go.Shape.defineFigureGenerator("RailShipment",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.1*et,.4*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var gt=new go.PathFigure(.45*et,.7*nt,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var mt=new go.PathFigure(.55*et,.4*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Wt=.05,$t=oe*.05,Jt=.175,Vt=.95,St=new go.PathFigure((Jt-Wt)*et,Vt*nt,!0);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,Jt*et,(Vt-Wt)*nt,(Jt-Wt)*et,(Vt-$t)*nt,(Jt-$t)*et,(Vt-Wt)*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+Wt)*et,Vt*nt,(Jt+$t)*et,(Vt-Wt)*nt,(Jt+Wt)*et,(Vt-$t)*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,Jt*et,(Vt+Wt)*nt,(Jt+Wt)*et,(Vt+$t)*nt,(Jt+$t)*et,(Vt+Wt)*nt)),St.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-Wt)*et,Vt*nt,(Jt-$t)*et,(Vt+Wt)*nt,(Jt-Wt)*et,(Vt+$t)*nt));var Wt=.05,$t=oe*.05,Jt=.375,Vt=.95,wt=new go.PathFigure((Jt-Wt)*et,Vt*nt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,Jt*et,(Vt-Wt)*nt,(Jt-Wt)*et,(Vt-$t)*nt,(Jt-$t)*et,(Vt-Wt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+Wt)*et,Vt*nt,(Jt+$t)*et,(Vt-Wt)*nt,(Jt+Wt)*et,(Vt-$t)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Jt*et,(Vt+Wt)*nt,(Jt+Wt)*et,(Vt+$t)*nt,(Jt+$t)*et,(Vt+Wt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-Wt)*et,Vt*nt,(Jt-$t)*et,(Vt+Wt)*nt,(Jt-Wt)*et,(Vt+$t)*nt));var Wt=.05,$t=oe*.05,Jt=.625,Vt=.95,zt=new go.PathFigure((Jt-Wt)*et,Vt*nt,!0);ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,Jt*et,(Vt-Wt)*nt,(Jt-Wt)*et,(Vt-$t)*nt,(Jt-$t)*et,(Vt-Wt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+Wt)*et,Vt*nt,(Jt+$t)*et,(Vt-Wt)*nt,(Jt+Wt)*et,(Vt-$t)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,Jt*et,(Vt+Wt)*nt,(Jt+Wt)*et,(Vt+$t)*nt,(Jt+$t)*et,(Vt+Wt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-Wt)*et,Vt*nt,(Jt-$t)*et,(Vt+Wt)*nt,(Jt-Wt)*et,(Vt+$t)*nt));var Wt=.05,$t=oe*.05,Jt=.825,Vt=.95,pe=new go.PathFigure((Jt-Wt)*et,Vt*nt,!0);ct.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,Jt*et,(Vt-Wt)*nt,(Jt-Wt)*et,(Vt-$t)*nt,(Jt-$t)*et,(Vt-Wt)*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+Wt)*et,Vt*nt,(Jt+$t)*et,(Vt-Wt)*nt,(Jt+Wt)*et,(Vt-$t)*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Jt*et,(Vt+Wt)*nt,(Jt+Wt)*et,(Vt+$t)*nt,(Jt+$t)*et,(Vt+Wt)*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-Wt)*et,Vt*nt,(Jt-$t)*et,(Vt+Wt)*nt,(Jt-Wt)*et,(Vt+$t)*nt).close());var ce=new go.PathFigure(0,nt,!1);return ct.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ct}),go.Shape.defineFigureGenerator("Warehouse",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var mt=new go.PathFigure(.15*et,nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var St=.05,wt=oe*.05,zt=.35,Wt=.775,$t=new go.PathFigure((zt-St)*et,Wt*nt,!0);return ct.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,zt*et,(Wt-St)*nt,(zt-St)*et,(Wt-wt)*nt,(zt-wt)*et,(Wt-St)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(zt+St)*et,Wt*nt,(zt+wt)*et,(Wt-St)*nt,(zt+St)*et,(Wt-wt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,zt*et,(Wt+St)*nt,(zt+St)*et,(Wt+wt)*nt,(zt+wt)*et,(Wt+St)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(zt-St)*et,Wt*nt,(zt-wt)*et,(Wt+St)*nt,(zt-St)*et,(Wt+wt)*nt).close()),ct}),go.Shape.defineFigureGenerator("ControlCenter",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),ct}),go.Shape.defineFigureGenerator("Bluetooth",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ct}),go.Shape.defineFigureGenerator("Globe",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),ct}),go.Shape.defineFigureGenerator("Wave",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),ct}),go.Shape.defineFigureGenerator("Operator",function(Ot,et,nt){var ct=new go.Geometry,lt=.3,gt=oe*.3,mt=.5,St=.7,wt=new go.PathFigure((mt-lt)*et,St*nt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*et,St*nt,(mt+gt)*et,(St-lt)*nt,(mt+lt)*et,(St-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*et,St*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt));var zt=new go.PathFigure(0,.7*nt,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),ct}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),ct}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct}),go.Shape.defineFigureGenerator("Battery",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var gt=new go.PathFigure(0,.6*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ct}),go.Shape.defineFigureGenerator("Delete",function(Ot,et,nt){var ct=new go.Geometry,lt=.5,gt=oe*.5,mt=.5,St=.5,wt=new go.PathFigure((mt-lt)*et,St*nt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*et,St*nt,(mt+gt)*et,(St-lt)*nt,(mt+lt)*et,(St-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*et,St*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt));var zt=new go.PathFigure(.15*et,.5*nt,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),ct}),go.Shape.defineFigureGenerator("Flag",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.1*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),ct}),go.Shape.defineFigureGenerator("Help",function(Ot,et,nt){var ct=new go.Geometry,lt=.5,gt=oe*.5,mt=.5,St=.5,wt=new go.PathFigure((mt-lt)*et,St*nt,!1);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*et,St*nt,(mt+gt)*et,(St-lt)*nt,(mt+lt)*et,(St-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*et,St*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt).close()),lt=.05,gt=oe*.05,mt=.5,St=.8;var zt=new go.PathFigure((mt-lt)*et,St*nt,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St-lt)*nt,(mt-lt)*et,(St-gt)*nt,(mt-gt)*et,(St-lt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*et,St*nt,(mt+gt)*et,(St-lt)*nt,(mt+lt)*et,(St-gt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(St+lt)*nt,(mt+lt)*et,(St+gt)*nt,(mt+gt)*et,(St+lt)*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*et,St*nt,(mt-gt)*et,(St+lt)*nt,(mt-lt)*et,(St+gt)*nt).close()),zt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),zt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),ct}),go.Shape.defineFigureGenerator("Location",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),ct}),go.Shape.defineFigureGenerator("Unlocked",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),ct}),go.Shape.defineFigureGenerator("Gear",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),ct}),go.Shape.defineFigureGenerator("Map",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),ct}),go.Shape.defineFigureGenerator("Eject",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var gt=new go.PathFigure(0,nt*.6,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),ct}),go.Shape.defineFigureGenerator("Pencil",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*1,nt*1,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var gt=new go.PathFigure(.126*et,.85*nt,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var mt=new go.PathFigure(.402*et,.85*nt,!1);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var St=new go.PathFigure(.678*et,.85*nt,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),St.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var wt=new go.PathFigure(.5*et,.1*nt,!1);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),ct}),go.Shape.defineFigureGenerator("Staircase",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),ct}),go.Shape.defineFigureGenerator("5Bars",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var gt=new go.PathFigure(et*.204,nt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var mt=new go.PathFigure(et*.408,nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),mt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),mt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var St=new go.PathFigure(et*.612,nt,!0);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),St.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),St.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var wt=new go.PathFigure(et*.816,nt,!0);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),wt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),wt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),ct}),go.Shape.defineFigureGenerator("PC",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var gt=new go.PathFigure(et*.055,.07*nt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var mt=new go.PathFigure(et*.055,.13*nt,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var St=new go.PathFigure(et*.055,.18*nt,!0);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),St.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),St.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var wt=new go.PathFigure(et*1,0,!0);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),wt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),ct}),go.Shape.defineFigureGenerator("Plane",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.55*et,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),ct}),go.Shape.defineFigureGenerator("Key",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*1,nt*.5,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),ct}),go.Shape.defineFigureGenerator("FilmTape",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var gt=new go.PathFigure(0,0,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var mt=new go.PathFigure(et*.11,nt*.1,!1);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var St=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),St.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),St.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var wt=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),ct}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ot,et,nt){var ct=new go.Geometry,lt=8,gt=lt*oe,mt=new go.PathFigure(lt,0,!1);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-gt,et-gt,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,gt,nt,0,nt-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,gt,gt,0).close());var St=new go.PathFigure(et*.83,0,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),St.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),St.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var wt=new go.PathFigure(et*.83,nt*1,!1);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var zt=new go.PathFigure(et*.78,nt*.05,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),zt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),zt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),ct}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ot,et,nt){var ct=Ot?Ot.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=15),ct=Math.min(ct,et/3),ct=Math.min(ct,nt/3);var lt=ct*oe,gt=nt*.8,mt=new go.Geometry,St=new go.PathFigure(ct,0,!0);return mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et-ct,0)),St.add(new go.PathSegment(go.PathSegment.Bezier,et,ct,et-lt,0,et,lt)),St.add(new go.PathSegment(go.PathSegment.Line,et,gt-ct)),St.add(new go.PathSegment(go.PathSegment.Bezier,et-ct,gt,et,gt-lt,et-lt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,et*.7,gt)),St.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),St.add(new go.PathSegment(go.PathSegment.Line,et*.55,gt)),St.add(new go.PathSegment(go.PathSegment.Line,ct,gt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-ct,lt,gt,0,gt-lt)),St.add(new go.PathSegment(go.PathSegment.Line,0,ct)),St.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,lt,lt,0).close()),lt>1?(mt.spot1=new go.Spot(0,0,lt,lt),mt.spot2=new go.Spot(1,.8,-lt,-lt)):(mt.spot1=go.Spot.TopLeft,mt.spot2=new go.Spot(1,.8)),mt}),go.Shape.defineFigureGenerator("Repeat",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*.45,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var gt=new go.PathFigure(et*1,nt*.55,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),ct}),go.Shape.defineFigureGenerator("Windows",function(Ot,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*.1,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var gt=new go.PathFigure(et*.1,nt*.2,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var mt=new go.PathFigure(et*.28,nt*.37,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),ct}),go.Shape.defineFigureGenerator("Beaker",function(Ot,et,nt){var ct=new go.Geometry,lt=15,gt=lt*oe,mt=new go.PathFigure(et*.62,nt*.475,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-gt,et-gt,nt)),mt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,gt,nt,0,nt-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),gt>1?(ct.spot1=new go.Spot(0,0,gt,gt),ct.spot2=new go.Spot(1,1,-gt,-gt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=go.Spot.BottomRight),ct}),go.Shape.defineFigureGenerator("Download",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);ct.add(lt);var gt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var mt=new go.PathFigure(et*.4,nt*0,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),ct}),go.Shape.defineFigureGenerator("Bin",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);ct.add(lt);var gt=.1/.3;return lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close()),ct}),go.Shape.defineFigureGenerator("Upload",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);ct.add(lt);var gt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var mt=new go.PathFigure(et*.5,nt*0,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),ct}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),ct}),go.Shape.defineFigureGenerator("Drink",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var gt=new go.PathFigure(et*.235,nt*.28,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),ct}),go.Shape.defineFigureGenerator("4Arrows",function(Ot,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*.5,nt*0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),ct}),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")},80727: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 An={},Un="5.0",Et={},Mt=null,ne=!1,ge=!1,xe=null,ee=!1,Ht=null,oe=null,Re=0;Re<arguments.length;Re++){var ve=arguments[Re];if(ve!==null)switch(typeof ve){case"number":Un=ve.toFixed(1);break;case"string":ve.match(new RegExp("^[0-9]\\.[0-9]+$"))?Un=ve:xe=ve;break;case"object":typeof ve.is3D!="undefined"?Mt=ve:Et=ve;break;case"boolean":ne=ve,ge=!0;break}}Mt===null&&(Mt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Et.material_id!==void 0&&!ge&&(ne=!0)),xe!==null&&Et.id===void 0&&(Et.id=xe);var Tt="",Ue="",ie=!1,Je=null,Ot=null,et=null,nt=!1,ct=null,lt=null,gt=null,mt=null,St=null;Et.height!==void 0&&(Et.height=Math.round(Et.height)),Et.width!==void 0&&(Et.width=Math.round(Et.width));var wt=function(Ce){return parseFloat(Ce)>4?parseFloat(Ce):5};An.setHTML5Codebase=function(Ce,nn){oe=Ce,Le(Ce,nn)},An.setJavaCodebase=An.setJavaCodebaseVersion=An.isCompiledInstalled=An.setPreCompiledScriptPath=An.setPreCompiledResourcePath=function(){},An.setHTML5CodebaseVersion=function(Ce,nn){var Ye=parseFloat(Ce);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}Ht=Ce,It(Ce,nn)},An.getHTML5CodebaseVersion=function(){return Ot},An.getParameters=function(){return Et},An.setFontsCSSURL=function(Ce){mt=Ce},An.setGiacJSURL=function(Ce){},An.setJNLPFile=function(Ce){Tt=Ce},An.setJNLPBaseDir=function(Ce){},An.inject=function(){function Ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var nn="auto",Ye=Et.id,Sn,Fe=!1,vn=0;vn<arguments.length;vn++){var ue=arguments[vn];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?nn=ue:Ye=arguments[vn]):typeof ue=="boolean"?Fe=ue:ue instanceof HTMLElement&&(Sn=ue)}Ve();function Ve(){if(!ee){setTimeout(Ve,200);return}nn=We(nn);var In=Sn||document.getElementById(Ye);if(!In){console.log("possibly bug on ajax loading? ");return}if(An.removeExistingApplet(In,!1),Et.width===void 0&&In.clientWidth&&(Et.width=In.clientWidth),Et.height===void 0&&In.clientHeight&&(Et.height=In.clientHeight),!(Et.width&&Et.height)&&nn==="html5"&&(delete Et.width,delete Et.height),Je=nn,nn==="screenshot")Ie(In,Et);else{var Dt=!1;Et.hasOwnProperty("playButton")&&Et.playButton||Et.hasOwnProperty("clickToLoad")&&Et.clickToLoad?Dt=!0:Et.hasOwnProperty("playButtonAutoDecide")&&Et.playButtonAutoDecide&&(Dt=(!zt()||Ce())&&Wt()),Dt?(Je="screenshot",wn(In,Et,Fe,nn)):Ee(In,Et,Fe)}}};function zt(){try{return window.self!==window.top}catch(Ce){return!0}}function Wt(){return Et.hasOwnProperty("screenshotGenerator")&&Et.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}An.getViews=function(){return Mt},An.isJavaInstalled=function(){return!1};var $t=function(Ce){var nn=function(vn){var ue=JSON.parse(vn),Ve=function(Ct){return Ct.type=="G"||Ct.type=="E"},In=ue.elements?ue.elements.filter(Ve)[0]:ue;if(!In||!In.url){Ye();return}Et.fileName=In.url,Jt(In.settings||{}),Mt.is3D=!0;var Dt="https://www.geogebra.org/images/";An.setPreviewImage(ct||In.previewUrl,Dt+"GeoGebra_loading.png",Dt+"applet_play.png"),Ce()},Ye=function(){Et.onError&&Et.onError(),an("Error: Fetching material (id "+Et.material_id+") failed.",Et)},Sn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Fe="/materials/"+Et.material_id+"?scope=basic";Vt("https://"+Sn+"/api/proxy.php?path="+encodeURIComponent(Fe),nn,Ye)};function Jt(Ce){var nn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){Ce[Ye]=!!Ce[Ye]}),nn.forEach(function(Ye){Et[Ye]===void 0&&Ce[Ye]!==void 0&&(Et[Ye]=Ce[Ye])}),Et.showToolBarHelp===void 0&&(Et.showToolBarHelp=Et.showToolBar)}function Vt(Ce,nn,Ye){var Sn=new XMLHttpRequest;Sn.open("GET",Ce),Sn.onload=function(){nn(Sn.responseText)},Sn.onerror=Ye,Sn.send()}An.isHTML5Installed=function(){return!0},An.getLoadedAppletType=function(){return Je},An.setPreviewImage=function(Ce,nn,Ye){ct=Ce,lt=nn,gt=Ye},An.removeExistingApplet=function(Ce,nn){var Ye;typeof Ce=="string"&&(Ce=document.getElementById(Ce)),Je=null;var Sn=null;for(Ye=0;Ye<Ce.childNodes.length;Ye++){var Fe=Ce.childNodes[Ye],vn=Fe.className;vn==="applet_screenshot"?nn?(Fe.style.display="block",Je="screenshot"):Fe.style.display="none":vn!=="applet_scaler prerender"&&(Ce.removeChild(Fe),Sn=vn&&vn.indexOf("appletParameters")!=-1?Fe.id:null,Ye--)}var ue=Et.id!==void 0?Et.id:Sn,Ve=window[ue];Ve&&typeof Ve.getBase64=="function"&&(Ve.remove(),window[ue]=null)},An.refreshHitPoints=function(){if(wt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ce=An.getAppletObject();return Ce&&typeof Ce.recalculateEnvironments=="function"?(Ce.recalculateEnvironments(),!0):!1},An.startAnimation=function(){var Ce=An.getAppletObject();return Ce&&typeof Ce.startAnimation=="function"?(Ce.startAnimation(),!0):!1},An.stopAnimation=function(){var Ce=An.getAppletObject();return Ce&&typeof Ce.stopAnimation=="function"?(Ce.stopAnimation(),!0):!1},An.getAppletObject=function(){var Ce=Et.id!==void 0?Et.id:"ggbApplet";return window[Ce]},An.resize=function(){};var pe=function(Ce,nn,Ye){var Sn=document.createElement("param");Sn.setAttribute("name",nn),Sn.setAttribute("value",Ye),Ce.appendChild(Sn)},ce=function(Ce){return Ce&&Ce!=="false"},Ee=function(Ce,nn,Ye){wt(Ot)<=4.2&&(Ye=!0);var Sn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ot||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(Sn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Fe=document.createElement("div");Fe.classList.add("appletParameters","notranslate");var vn=nn.width,ue=nn.height;if(nn.disableAutoScale=nn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():nn.disableAutoScale,nn.width!==void 0)if(wt(Ot)<=4.4)ce(nn.showToolBar)&&(nn.height-=7),ce(nn.showAlgebraInput)&&(nn.height-=37),nn.width<605&&ce(nn.showToolBar)&&(nn.width=605,vn=605);else{var Ve=100;(ce(nn.showToolBar)||ce(nn.showMenuBar))&&(nn.hasOwnProperty("customToolBar")&&(nn.customToolbar=nn.customToolBar),Ve=ce(nn.showMenuBar)?245:155),vn<Ve&&(nn.width=Ve,vn=Ve)}Fe.style.border="none",Fe.style.display="inline-block";for(var In in nn)nn.hasOwnProperty(In)&&In!=="appletOnLoad"&&Fe.setAttribute("data-param-"+In,nn[In]);mt&&Fe.setAttribute("data-param-fontscssurl",mt),An.resize=function(){GGBAppletUtils.responsiveResize(Ce,nn)},window.addEventListener("resize",function(Ne){An.resize()});var Dt=typeof nn.appletOnLoad=="function"?nn.appletOnLoad:function(){};if(!Ye&&nn.width!==void 0){nn.hasOwnProperty("showSplash")||Fe.setAttribute("data-param-showSplash","false");var Ct=Ce.querySelector(".applet_scaler.prerender"),yt=Ct!==null;if(yt)var kt=Ct.querySelector(".ggb_preview");else{var kt=qe(vn,ue,nn.borderColor,!1);Ct=document.createElement("div"),Ct.className="applet_scaler",Ct.style.position="relative",Ct.style.display="block",Ct.style.width=vn+"px",Ct.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ct,"66%"),wt(Ot)>=5?(nn.appletOnLoad=function(Ne){var $e=Ce.querySelector(".ggb_preview");$e&&$e.parentNode.removeChild($e),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ct),window.GGBT_wsf_view&&$(window).trigger("resize"),Dt(Ne)},yt||Ct.appendChild(kt)):Fe.appendChild(kt),Ct.appendChild(Fe),yt||Ce.appendChild(Ct),setTimeout(function(){An.resize()},1)}else{var jt=document.createElement("div");jt.className="applet_scaler",jt.style.position="relative",jt.style.display="block",jt.appendChild(Fe),Ce.appendChild(jt),nn.appletOnLoad=function(Ne){An.resize(),Dt(Ne)}}function bt(Ne,$e){$e&&typeof $e.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ne,$e.appletOnLoad):renderGGBElement(Ne),an("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",$e)}function Gt(Ne,$e){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ne,params:$e}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(fn){bt(fn.article,fn.params)}),html5AppletsToProcess=null)},wt(Ot)<5&&(Ne.className+=" geogebraweb")):bt(Ne,$e)}if(Sn){scriptLoadStarted=!0;for(var fe=0;fe<Fe.childNodes.length;fe++){var Se=Fe.childNodes[fe].tagName;Se==="TABLE"&&(Fe.removeChild(Fe.childNodes[fe]),fe--)}if(ggbHTML5LoadedScript!==null){var Be=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Be!=null&&Be.parentNode.removeChild(Be)}var re=document.createElement("script"),Te=function(){Gt(Fe,nn)};re.src=Ue+et,ggbHTML5LoadedCodebaseIsWebSimple=nt,ggbHTML5LoadedCodebaseVersion=Ot,ggbHTML5LoadedScript=re.src,an("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",nn),!oe&&(!Ht||Ht=="5.0")?(nt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Te()):Ue.requirejs?__webpack_require__.e(4184).then(function(){var Ne=[__webpack_require__(74620)];Te.apply(null,Ne)}.bind(this)).catch(__webpack_require__.oe):(re.onload=Te,Ce.appendChild(re))}else Gt(Fe,nn);nn.height=ue,nn.width=vn},Ie=function(Ce,nn,Ye){var Sn=qe(nn.width,nn.height,nn.borderColor,Ye),Fe=document.createElement("div");Fe.style.position="relative",Fe.style.display="block",Fe.style.width=nn.width+"px",Fe.style.height=nn.height+"px",Fe.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),Fe.appendChild(Sn);var vn=GGBAppletUtils.getScale(nn,Ce,Ye);Ye?(Ce.appendChild(on()),window.GGBT_wsf_view||(Ce.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Fe,"66%"),Ce.appendChild(Fe),vn!==1&&!isNaN(vn)&&(GGBAppletUtils.scaleElement(Fe,vn),Fe.style.width=nn.width+"px",Fe.style.height=nn.height+"px",Fe.parentNode.style.width=nn.width*vn+"px",Fe.parentNode.style.height=nn.height*vn+"px"),An.resize=function(){ke(Ce,Sn,Fe,Ye)},window.addEventListener("resize",function(ue){An.resize()}),An.resize()};function ke(Ce,nn,Ye,Sn){if(Ce.contains(nn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}var Fe=GGBAppletUtils.getScale(Et,Ce,Sn);Ye.parentNode!==null&&(!isNaN(Fe)&&Fe!==1?(GGBAppletUtils.scaleElement(Ye,Fe),Ye.parentNode.style.width=Et.width*Fe+"px",Ye.parentNode.style.height=Et.height*Fe+"px"):(GGBAppletUtils.scaleElement(Ye,1),Ye.parentNode.style.width=Et.width+"px",Ye.parentNode.style.height=Et.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ce),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}An.onExitFullscreen=function(Ce,nn){nn.appendChild(Ce)};var wn=function(Ce,nn,Ye,Sn){Ie(Ce,nn,!0);for(var Fe=function(){var Ve=[];for(ue=0;ue<Ce.childNodes.length;ue++)Ve.push(Ce.childNodes[ue]);if(window.GGBT_wsf_view){var In=window.GGBT_wsf_view.renderFullScreen(Ce,nn.id),Dt=document.getElementById("fullscreencontainer"),Ct=jQuery(Ce).find(".fullscreencontent");Ct.length>0?(In.remove(),Ct.attr("id","fullscreencontent").show(),jQuery(Dt).append(Ct),window.dispatchEvent(new Event("resize"))):Ee(In,nn,!1),window.GGBT_wsf_view.launchFullScreen(Dt)}else Je=Sn,Ee(Ce,nn,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<Ve.length;ue++)Ce.removeChild(Ve[ue])},vn=Ce.getElementsByClassName("ggb_preview_play"),ue=0;ue<vn.length;ue++)vn[ue].addEventListener("click",Fe,!1),vn[ue].addEventListener("ontouchstart",Fe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ce),Wt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},on=function(){var Ce=document.createElement("div");if(Ce.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var nn='.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");}',Ye=document.createElement("style");Ye.styleSheet?Ye.styleSheet.cssText=nn:Ye.appendChild(document.createTextNode(nn)),document.getElementsByTagName("head")[0].appendChild(Ye)}return Ce},qe=function(Ce,nn,Ye,Sn){var Fe=document.createElement("div");Fe.className="ggb_preview",Fe.style.position="absolute",Fe.style.zIndex="90",Fe.style.width=Ce-2+"px",Fe.style.height=nn-2+"px",Fe.style.top="0px",Fe.style.left="0px",Fe.style.overflow="hidden",Fe.style.backgroundColor="white";var vn="lightgrey";Ye!==void 0&&(Ye==="none"?vn="transparent":vn=Ye),Fe.style.border="1px solid "+vn;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",ct!==null&&ue.setAttribute("src",ct),ue.style.opacity=.7,lt!==null){var Ve,In,Dt;if(!Sn){Ve=document.createElement("img"),Ve.style.position="absolute",Ve.style.zIndex="1001",Ve.style.opacity=1,ue.style.opacity=.3,In=360,In>Ce/4*3&&(In=Ce/4*3),Dt=In/5.8,Ve.setAttribute("src",lt),Ve.setAttribute("width",In),Ve.setAttribute("height",Dt);var Ct=(Ce-In)/2,yt=(nn-Dt)/2;Ve.style.left=Ct+"px",Ve.style.top=yt+"px",Fe.appendChild(Ve)}}return Fe.appendChild(ue),Fe},We=function(Ce){return Ce=Ce.toLowerCase(),Ce==="html5"||Ce==="screenshot"?Ce:"html5"},he=["web","webSimple","web3d","tablet","tablet3d","phone"],It=function(Ce,nn){if(Ot=Ce,nn){Le(Ot,!0);return}var Ye=!ne;if(Ye){var Sn=wt(Ot);!isNaN(Sn)&&Sn<4.4&&(Ye=!1)}var Fe,vn;window.location.protocol.substr(0,4)==="http"?Fe=window.location.protocol:Fe="http:";var ue=Ot.indexOf("//");ue>0?vn=Ot:ue===0?vn=Fe+Ot:vn="https://www.geogebra.org/apps/5.2.814.0/";for(var Ve in he)if(Ot.slice(he[Ve].length*-1)===he[Ve]||Ot.slice((he[Ve].length+1)*-1)===he[Ve]+"/"){Le(vn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ye&&!Mt.is3D&&!Mt.AV&&!Mt.SV&&!Mt.CV&&!Mt.EV2&&!Mt.CP&&!Mt.PC&&!Mt.DA&&!Mt.FI&&!Mt.PV&&!ce(Et.showToolBar)&&!ce(Et.showMenuBar)&&!ce(Et.showAlgebraInput)&&!ce(Et.enableRightClick)&&(!Et.appName||Et.appName=="classic")?vn+="webSimple/":vn+="web3d/",Le(vn,!1)},Le=function(Ce,nn){if(Ce.requirejs){Ue=Ce;return}Ce.slice(-1)!=="/"&&(Ce+="/"),Ue=Ce,nn===null&&(nn=Ce.indexOf("http")===-1),ie=nn,et="web.nocache.js",nt=!1;var Ye=Ue.split("/");Ye.length>1&&(!nn&&Ye[Ye.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):he.indexOf(Ye[Ye.length-2])>=0&&(et=Ye[Ye.length-2]+".nocache.js")),Ye=Ce.split("/"),Ot=Ye[Ye.length-3],Ot.substr(0,4)==="test"?Ot=Ot.substr(4,1)+"."+Ot.substr(5,1):(Ot.substr(0,3)==="war"||Ot.substr(0,4)==="beta")&&(Ot="5.0");var Sn=parseFloat(Ot);Sn!==NaN&&Sn<5&&Ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Sn+" is deprecated. Using version latest instead."),It("5.0",nn))},an=function(Ce,nn){window.console&&window.console.log&&(!nn||typeof nn.showLogging=="undefined"||nn.showLogging&&nn.showLogging!=="false")&&console.log(Ce)};Et.material_id!==void 0?$t(Ze):Ze();function Ze(){var Ce=Un;Ht!==null?Ce=Ht:parseFloat(Ce)<5&&(Ce="5.0"),It(Ce,!1),oe!==null&&Le(oe,ie),ee=!0}return An},GGBAppletUtils=function(){"use strict";function An(){return window.GGBT_wsf_edit!==void 0}function Un(ee,Ht){Ht!=1?(ee.style.transformOrigin="0% 0% 0px",ee.style.webkitTransformOrigin="0% 0% 0px",ee.style.transform="scale("+Ht+","+Ht+")",ee.style.webkitTransform="scale("+Ht+","+Ht+")",ee.style.maxWidth="initial",ee.querySelector(".ggb_preview")!==null&&(ee.querySelector(".ggb_preview").style.maxWidth="initial"),ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ee.style.transform="none",ee.style.webkitTransform="none")}function Et(ee,Ht,oe,Re,ve,Tt){var Ue=null;if(Tt!=null&&Tt!="")for(var ie=ee.parentNode;ie!=null;)if((" "+ie.className+" ").indexOf(" "+Tt+" ")>-1){Ue=ie;break}else ie=ie.parentNode;var Je=0,Ot=0,et=0,nt=0,ct=0,lt=0,gt=0;if(Ue)Je=Ue.offsetWidth,Ot=Math.max(Re?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Je=Math.min(window.innerWidth,document.documentElement.clientWidth),Ot=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Je):(Je=window.innerWidth,Ot=window.innerHeight,et=window.innerWidth),ee){var mt=ee.getBoundingClientRect();mt.left>0&&mt.left<=Je&&(ve===void 0||!ve)&&(document.dir==="rtl"?(ct=Je-mt.width-mt.left,lt=et<=480?10:30):(lt=mt.left,ct=et<=480?10:30),nt=lt+ct)}if(ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,gt=40)}}return ee&&((oe===void 0||!oe)&&Ht>0&&Ht+nt<Je?Je=Ht:Je-=nt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(oe===void 0||!oe)&&(Ot-=gt)),{width:Je,height:Ot}}function Mt(ee,Ht,oe,Re,ve){if(ee.isScreenshoGenerator)return 1;var Tt=Re!==void 0&&Re,Ue=ee.noScaleMargin!=null&&ee.noScaleMargin,ie=function(St){return St&&St!=="false"},Je=ie(ee.autoHeight),Ot=Et(Ht,ee.width,oe,Je,Tt&&window.GGBT_wsf_view||Ue,ve),et=parseInt(Ot.width),nt=ee.width,ct=ee.height;if(nt===void 0){var lt=Ht.querySelector(".appletParameters");lt&&(nt=lt.offsetWidth,ct=lt.offsetHeight)}var gt=et/nt,mt=Tt?1:Ot.height/ct;return oe!==void 0&&!oe&&(gt=Math.min(1,gt),mt=Math.min(1,mt)),Math.min(gt,mt)}function ne(ee,Ht,oe){var Re=1,ve,Tt=!1;if(ee.hasOwnProperty("allowUpscale")&&(Tt=ee.allowUpscale),ee.hasOwnProperty("scale")&&(Re=parseFloat(ee.scale),(isNaN(Re)||Re===null||Re===0)&&(Re=1),Re>1&&(Tt=!0)),Ht&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Tt=!0),!(ee.hasOwnProperty("disableAutoScale")&&ee.disableAutoScale))ve=Mt(ee,Ht,Tt,oe,ee.scaleContainerClass);else return Re;return Tt&&(!ee.hasOwnProperty("scale")||Re===1)?ve:Math.min(Re,ve)}function ge(ee){var Ht=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=ee.getBoundingClientRect(),ve=(Ht-Re.width)/2,Tt=(oe-Re.height)/2;Tt<0&&(Tt=0),ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ve<40?ee.style.left="40px":ee.style.left=ve+"px",ee.style.top=Tt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Tt<40?ee.style.top="40px":ee.style.top=Tt+"px",ee.style.left=ve+"px")}function xe(ee,Ht){var oe=ee.querySelector(".appletParameters");if(oe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ht.id!==oe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ee)}if(oe.parentElement&&/fullscreen/.test(oe.parentElement.className))return;var Re=ne(Ht,ee);An()&&oe.setAttribute("data-param-scale",Re);for(var ve=null,Tt=0;Tt<ee.childNodes.length;Tt++)if(ee.childNodes[Tt].className!==void 0&&ee.childNodes[Tt].className.match(/^applet_scaler/)){ve=ee.childNodes[Tt];break}if(ve!==null&&ve.querySelector(".noscale")!==null)return;var Ue=Ht.id!==void 0?Ht.id:"ggbApplet",ie=window[Ue];(ie==null||!ie.recalculateEnvironments)&&ve!==null&&!ve.className.match(/fullscreen/)&&(ve.parentNode.style.transform="",!isNaN(Re)&&Re!==1?(ve.parentNode.style.width=Ht.width*Re+"px",ve.parentNode.style.height=Ht.height*Re+"px",Un(ve,Re)):(Un(ve,1),ve.parentNode.style.width=Ht.width+"px",ve.parentNode.style.height=Ht.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ge(ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(oe).parents(".content-added-content"))}}return{responsiveResize:xe,isFlexibleWorksheetEditor:An,positionCenter:ge,getScale:ne,scaleElement:Un}}();__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 An=n.location.search;return An.indexOf(J)!=-1||An.indexOf(K)!=-1}function q(An,Un){}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(An){var Un=s[L].bindings;s[L].bindings=function(){for(var Et=Un?Un():{},Mt=An[webModule.__softPermutationId],ne=O;ne<Mt.length;ne++){var ge=Mt[ne];Et[ge[O]]=ge[P]}return Et}};var t;function u(){return v(),t}function v(){if(!t){var An=o.createElement(Q);if(An.id=L,An.style.cssText=R+S,An.tabIndex=-1,o.body.appendChild(An),t=An.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Un=document.compatMode==U?V:W;t.write(Un+X),t.close()}}}function w(An){function Un(Mt){function ne(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ge=ne();if(ge){Mt();return}function xe(){if(!ge){if(!ne())return;ge=!0,Mt(),o.removeEventListener&&o.removeEventListener(Z,xe,!1),ee&&clearInterval(ee)}}o.addEventListener&&o.addEventListener(Z,xe,!1);var ee=setInterval(function(){xe()},$)}function Et(Mt){var ne=u(),ge=ne.body,xe=ne.createElement(_);xe.language=ab,xe.crossOrigin=W,xe.src=Mt,webModule.__errFn&&(xe.onerror=function(){webModule.__errFn(L,new Error(bb+Mt))}),ge.appendChild(xe)}Un(function(){Et(An)})}webModule.__startLoadingFragment=function(An){return C(An)},webModule.__installRunAsyncCode=function(An){var Un=u(),Et=Un.body,Mt=Un.createElement(_);Mt.language=ab,Mt.text=An,Et.appendChild(Mt),Et.removeChild(Mt)};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(An){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(An){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(An){var Un=c[An];return Un==null?null:Un},r=d,webModule.__errFn=e}function B(){function An(ee){var Ht=ee.lastIndexOf(rb);Ht==-1&&(Ht=ee.length);var oe=ee.indexOf(sb);oe==-1&&(oe=ee.length);var Re=ee.lastIndexOf(tb,Math.min(oe,Ht));return Re>=O?ee.substring(O,Re+P):W}function Un(ee){if(!ee.match(/^\w+:\/\//)){var Ht=o.createElement(ub);Ht.src=ee+vb,ee=An(Ht.src)}return ee}function Et(){var ee=__gwt_getMetaProperty(wb);return ee!=null?ee:W}function Mt(){for(var ee=o.getElementsByTagName(_),Ht=O;Ht<ee.length;++Ht)if(ee[Ht].src.indexOf(xb)!=-1)return An(ee[Ht].src);return W}function ne(){var ee=o.getElementsByTagName(yb);return ee.length>O?ee[ee.length-P].href:W}function ge(){var ee=o.location;return ee.href==ee.protocol+zb+ee.host+ee.pathname+ee.search+ee.hash}var xe=Et();return xe==W&&(xe=Mt()),xe==W&&(xe=ne()),xe==W&&ge()&&(xe=An(o.location.href)),xe=Un(xe),xe}function C(An){return An.match(/^\//)||An.match(/^[a-zA-Z]+:\/\//)?An:webModule.__moduleBase+An}function D(){var An=[],Un=O,Et=[],Mt=[];function ne(ee){var Ht=Mt[ee](),oe=Et[ee];if(Ht in oe)return Ht;var Re=[];for(var ve in oe)Re[oe[ve]]=ve;throw r&&r(ee,Re,Ht),null}if(__gwt_isKnownPropertyValue=function(ee,Ht){return Ht in Et[ee]},webModule.__getPropMap=function(){var ee={};for(var Ht in Et)Et.hasOwnProperty(Ht)&&(ee[Ht]=ne(Ht));return ee},webModule.__computePropValue=ne,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ge;try{ge=Cb;var xe=ge.indexOf(Db);xe!=-1&&(Un=parseInt(ge.substring(xe+P),$),ge=ge.substring(O,xe))}catch(ee){}return webModule.__softPermutationId=Un,C(ge+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})()},77903:function(An,Un,Et){"use strict";Et.d(Un,{Ax:function(){return xe},Ds:function(){return ee},KI:function(){return oe},SI:function(){return ge},f1:function(){return ne}});var Mt=Et(3294);function ne(Re){let ve=!0;if(Re.length>0){for(let Tt=0;Tt<Re.length;Tt++)if(Re[Tt].compile_success==0||!Re[Tt].compile_success){ve=!1;break}}else ve=!1;return ve}function ge(Re,ve=""){let Tt=[];for(let Ue=0;Ue<Re.length;Ue++){let ie=Re[Ue],Je=ve?`${ve}/${ie.name}`:`${ie.name}`;Tt.push({title:ie.name,type:ie.type,isLeaf:ie.type!=="tree",key:Je})}return Tt}function xe(Re,ve,Tt){for(let Ue=0;Ue<Re.length;Ue++){let ie=Re[Ue];if(ie.key===ve){ie.children=Tt;break}ie.children&&xe(ie.children,ve,Tt)}return Re}function ee(Re,ve,Tt){let Ue;return function(){let ie=this,Je=arguments,Ot=function(){Ue=null,Tt||Re.apply(ie,Je)},et=Tt&&!Ue;clearTimeout(Ue),Ue=setTimeout(Ot,ve),et&&Re.apply(ie,Je)}}const Ht=!0,oe=Mt.Z.API_SERVER},9165:function(An,Un,Et){"use strict";Et.d(Un,{t:function(){return ie}});var Mt=Et(59301),ne=Et(99571),ge={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},xe=Et(92310),ee=Et.n(xe),Ht=Object.defineProperty,oe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Tt=(Je,Ot,et)=>Ot in Je?Ht(Je,Ot,{enumerable:!0,configurable:!0,writable:!0,value:et}):Je[Ot]=et,Ue=(Je,Ot)=>{for(var et in Ot||(Ot={}))Re.call(Ot,et)&&Tt(Je,et,Ot[et]);if(oe)for(var et of oe(Ot))ve.call(Ot,et)&&Tt(Je,et,Ot[et]);return Je};const ie=({cancelText:Je="\u53D6\u6D88",okText:Ot="\u786E\u5B9A",loading:et=!1,hasOkBtn:nt=!0,hasCancelBtn:ct=!0,okButtonProps:lt={},onCancel:gt=()=>{},onOk:mt=()=>{},className:St=""})=>Mt.createElement("div",{className:ee()(ge.buttonFixed,St)},Mt.createElement("div",{className:ge.buttonWrap},ct&&Mt.createElement(ne.ZP,{size:"middle",className:`${ge.button} mr20`,onClick:gt},Je),nt&&Mt.createElement(ne.ZP,Ue({size:"middle",type:"primary",className:`${ge.button} mr20`,loading:et,onClick:mt},lt),Ot)))},73524:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return Ue}});var Mt=Et(59301),ne={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ge=Et(92310),xe=Et.n(ge),ee=Et(29787),Ht=Et(2859),oe=Et(99064),Re=Et(955),ve=(ie,Je,Ot)=>new Promise((et,nt)=>{var ct=mt=>{try{gt(Ot.next(mt))}catch(St){nt(St)}},lt=mt=>{try{gt(Ot.throw(mt))}catch(St){nt(St)}},gt=mt=>mt.done?et(mt.value):Promise.resolve(mt.value).then(ct,lt);gt((Ot=Ot.apply(ie,Je)).next())}),Ue=({data:ie,className:Je,fullWidth:Ot,style:et={},onClose:nt,onOk:ct,showFullTools:lt,noAssociationId:gt})=>{const mt=(0,Mt.useRef)(null),St=(0,Mt.useRef)(null),wt=(0,Mt.useRef)(null),zt=(0,Mt.useRef)(null),[Wt,$t]=(0,Mt.useState)(!1),[Jt,Vt]=(0,Mt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Mt.useEffect)(()=>(wt.current||(wt.current=document.createElement("style"),document.head.appendChild(wt.current)),ie!=null&&ie.visible?(document.body.setAttribute("data-custom","y-hidden"),wt.current.innerHTML=" html { overflow-y: hidden; }",ie!=null&&ie.src&&pe()):(document.body.removeAttribute("data-custom"),wt.current&&(document.head.removeChild(wt.current),wt.current=null)),()=>{document.body.removeAttribute("data-custom"),wt.current&&(document.head.removeChild(wt.current),wt.current=null)}),[ie==null?void 0:ie.visible]);const pe=()=>ve(void 0,null,function*(){$t(!0),Vt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ke=yield(0,Re.ZJ)(ie==null?void 0:ie.src);mt.current.src="",mt.current.src=ke,mt.current.onload=function(){Ie()},$t(!1),Vt("")}),ce=ke=>ve(void 0,null,function*(){$t(!0),Vt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wn=yield(0,oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ie.title,file:ke.dataUrl}});wn!=null&&wn.id&&!gt?(yield(0,oe.ZP)(`/api/attachments/${ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:wn==null?void 0:wn.id,settings:JSON.stringify(ke.state)}})).status===0&&ct():wn!=null&&wn.id&&ct(wn),$t(!1),Vt("")}),Ee=()=>{const ke=document.querySelector('a[href="https://markerjs.com/"]');ke&&ke.parentNode&&(ke.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(on=>{const qe=document.querySelector(on.name);qe&&qe.setAttribute("title",on.title)})},Ie=()=>{St.current=new Ht.hP(mt.current),St.current.targetRoot=zt.current,St.current.addEventListener("render",ce),St.current.addEventListener("beforeclose",nt),lt&&(St.current.availableMarkerTypes=St.current.ALL_MARKER_TYPES,St.current.uiStyleSettings.redoButtonVisible=!0,St.current.uiStyleSettings.notesButtonVisible=!0,St.current.uiStyleSettings.zoomButtonVisible=!0,St.current.uiStyleSettings.zoomOutButtonVisible=!0,St.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=St.current.uiStyleSettings,St.current.show(),ie!=null&&ie.snapshotData&&St.current.restoreState(ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ee()},300)};return Mt.createElement(Mt.Fragment,null,(ie==null?void 0:ie.visible)&&Mt.createElement(ee.Z,{spinning:Wt,tip:Jt,style:{position:"absolute",width:"100vw"}},Mt.createElement("div",{ref:zt,className:xe()(ne.imageDimensions,Je,Ot?ne.fullWidth:""),style:et},Mt.createElement("img",{className:ne.img,ref:mt}))))}},41588:function(An,Un,Et){"use strict";var Mt=Et(59301),ne=Et(77019),ge=Et(5269),xe=Et(20554),ee=Et(99571),Ht=Et(85149),oe=Et(88010),Re=Et(48136),ve=Et(59301);const Tt=(0,Mt.forwardRef)(({callback:Ue,showSaveButton:ie,value:Je=""},Ot)=>{const et=(0,Mt.useRef)(),nt=[{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 "}]}]}],ct=[{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}`}]}]}],lt=St=>{et.current.setValue(et.current.getValue()+" "+St.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ve.createElement(ne.Z,{className:oe.Z.lists,gutter:[10,10]},nt.map((St,wt)=>ve.createElement(ge.Z,{flex:"110px",className:oe.Z.item},ve.createElement("div",null,ve.createElement(Ht.Z,{value:`$$${St.value}$$`}),St.name),ve.createElement("div",{className:oe.Z.children},St.children.map((zt,Wt)=>ve.createElement("div",{key:Wt},ve.createElement("h1",null,zt.name),ve.createElement(ne.Z,{gutter:[10,10]},zt.data.map(($t,Jt)=>ve.createElement(ge.Z,{key:Jt,onClick:()=>lt($t),className:oe.Z.diamond},ve.createElement(Ht.Z,{value:"`$$"+$t.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ve.createElement(ne.Z,{className:oe.Z.lists,gutter:[10,10]},ct.map((St,wt)=>ve.createElement(ge.Z,{flex:"110px",className:oe.Z.item},ve.createElement("div",null,ve.createElement(Ht.Z,{value:"`$$"+St.value+"$$`"}),St.name),ve.createElement("div",{className:oe.Z.children},St.children.map((zt,Wt)=>ve.createElement("div",{key:Wt},zt.name&&ve.createElement("h1",null,zt.name),ve.createElement(ne.Z,{gutter:[10,10]},zt.data.map(($t,Jt)=>ve.createElement(ge.Z,{key:Jt,onClick:()=>lt($t),className:oe.Z.diamond},ve.createElement(Ht.Z,{value:"`$$"+$t.value+"$$`"}))))))))))}],mt=()=>{var St=document.createElement("div");St.innerHTML=et.current.getValue();var wt=St.innerText;return Ue&&Ue(wt),wt};return(0,Mt.useImperativeHandle)(Ot,()=>({getData:mt})),ve.createElement("div",{className:oe.Z.mathWrap},ve.createElement(xe.default,{defaultActiveKey:"1",items:gt}),ve.createElement("math-field",{locale:"zh_cn",className:oe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Je||""),ie&&ve.createElement("div",{className:oe.Z.button},ve.createElement(ee.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Un.Z=Tt},8797:function(An,Un,Et){"use strict";var Mt=Et(59301),ne=Et(93314),ge=Et(99571),xe=Object.defineProperty,ee=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Tt=(Ot,et,nt)=>et in Ot?xe(Ot,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ot[et]=nt,Ue=(Ot,et)=>{for(var nt in et||(et={}))Re.call(et,nt)&&Tt(Ot,nt,et[nt]);if(oe)for(var nt of oe(et))ve.call(et,nt)&&Tt(Ot,nt,et[nt]);return Ot},ie=(Ot,et)=>ee(Ot,Ht(et));const Je=({img:Ot,buttonProps:et={},styles:nt={},customText:ct,ButtonText:lt,ButtonClick:gt,Buttonclass:mt,ButtonTwo:St,imgStyles:wt,loading:zt=!1,className:Wt=""})=>Mt.createElement("section",{className:`tc animated fadeIn ${Wt}`,style:Ue({color:"#999",margin:"100px auto",visibility:zt?"hidden":"visible"},nt)},Mt.createElement("img",{src:Ot||ne,style:ie(Ue({},wt),{pointerEvents:"none",userSelect:"none"})}),Mt.createElement("p",{className:"mt20 font14"},ct||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&Mt.createElement(ge.ZP,Ue({className:mt,onClick:gt},et),lt),St&&St);Un.Z=Je},23210:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return mt}});var Mt=Et(59301),ne={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ge=Et(99571),xe=Et(70557),ee=Et(23954),Ht=Et(25399),oe=Et(955),Re=Et(94941),ve=Et(8797),Tt=Et(3294),Ue=Et(19381),ie=Et(59301),Je=Object.defineProperty,Ot=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ct=(St,wt,zt)=>wt in St?Je(St,wt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[wt]=zt,lt=(St,wt)=>{for(var zt in wt||(wt={}))et.call(wt,zt)&&ct(St,zt,wt[zt]);if(Ot)for(var zt of Ot(wt))nt.call(wt,zt)&&ct(St,zt,wt[zt]);return St},gt=(St,wt,zt)=>new Promise((Wt,$t)=>{var Jt=ce=>{try{pe(zt.next(ce))}catch(Ee){$t(Ee)}},Vt=ce=>{try{pe(zt.throw(ce))}catch(Ee){$t(Ee)}},pe=ce=>ce.done?Wt(ce.value):Promise.resolve(ce.value).then(Jt,Vt);pe((zt=zt.apply(St,wt)).next())}),mt=({editOffice:St="view",data:wt,theme:zt,type:Wt,filename:$t,monacoEditor:Jt,className:Vt,style:pe,close:ce,onClose:Ee,hasMask:Ie,disabledDownload:ke,onImgDimensions:wn,showNodata:on,recordInfo:qe})=>{const[We,he]=(0,Mt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[It,Le]=(0,Mt.useState)(""),[an,Ze]=(0,Mt.useState)(),Ce=window.ENV==="build"?"/react/build":"",nn=location.host.startsWith("localhost")?Tt.Z.PROXY_SERVER:Tt.Z.API_SERVER,Sn=10*(1024*1024),Fe=(0,Mt.useRef)();wt!=null&&wt.startsWith("/api")&&Wt!=="txt"&&(wt=Tt.Z.API_SERVER+wt);const vn=Dt=>Dt.substring(Dt.lastIndexOf("/")+1).split(".").pop();$t&&Jt&&(Jt.filename=$t),(0,Mt.useEffect)(()=>{var Dt,Ct;const yt=(Ct=(Dt=document.cookie)==null?void 0:Dt.replace(/\s/g,""))==null?void 0:Ct.split(";");yt==null||yt.map(kt=>{let jt=kt.split("=");jt[0]==="_educoder_session"&&Le(jt[1])})},[]),(0,Mt.useEffect)(()=>{Wt==="office"&&(wt.indexOf("bigfilescdn.")>-1||wt.indexOf("bigfiles1")>-1?Ze({url:wt,fileType:vn(wt),model:wt.indexOf("model=edit")?"edit":"view"}):ue())},[Wt,wt]);const ue=()=>gt(void 0,null,function*(){console.log("data:",wt);let Dt=wt;wt.startsWith("http")||(Dt=location.origin+Dt);let Ct=new URL(Dt).pathname.split("/").pop();const yt=yield(0,Re.gJ)({attachment_id:Ct});yt.url=nn+yt.url,Ze(yt)}),Ve=()=>{if(wt.startsWith("http")||wt.startsWith("blob:")){In();return}(0,oe.Sv)($t||"educoder",wt,$t)},In=()=>{qe&&(0,Ue.fc)({id:qe==null?void 0:qe.id,watch_type:1,course_id:qe==null?void 0:qe.course_id}),(0,oe.Nd)($t||"educoder",decodeURIComponent(wt))};return ie.createElement("div",{style:lt({},pe||{}),className:`${Ie&&ne.bgBlack} ${Wt?ne.wrp:"hide"}`},ce&&ie.createElement("div",{className:ne.close,ref:Fe},!!wn&&ie.createElement(Ht.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Fe.current},ie.createElement("span",{onClick:()=>{Ee(),wn()}},ie.createElement("i",{className:"icon-yulanpizhu"}))),!ke&&ie.createElement(Ht.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Fe.current},ie.createElement("span",{onClick:In},ie.createElement("i",{className:"icon-quxiaozhiding"}))),ie.createElement(Ht.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Fe.current},ie.createElement("span",{className:"",onClick:Ee},ie.createElement("i",{className:"icon-guanbi1"})))),ie.createElement("div",{className:`${ne[Vt]} ${Vt} ${ne.monaco} ${Wt==="txt"?"show":"hide"}`},Wt==="txt"&&ie.createElement(ie.Fragment,null,ie.createElement(ee.ZP,lt({},Jt)))),Wt==="audio"&&ie.createElement("audio",{src:`${(wt==null?void 0:wt.indexOf("http://"))>-1||(wt==null?void 0:wt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${wt}`,autoPlay:!0}),Wt==="video"&&ie.createElement(ie.Fragment,null,(wt==null?void 0:wt.indexOf("http"))>-1?ie.createElement("video",{controls:!0,src:`${wt}`,autoPlay:!0}):ie.createElement("video",{controls:!0,src:`data:video/mp4;base64,${wt}`,autoPlay:!0})),Wt==="office"&&an&&ie.createElement("iframe",{src:`${Ce}/office.html?key=${an.key}&url=${btoa(an.url)}&callbackUrl=${nn+(an.callbackUrl||"")}&fileType=${an.fileType}&title=${an.title||""}&model=${St}&officeServer=${Tt.Z.ONLYOFFICE}&disabledDownload=${!!ke}`}),Wt==="html"&&ie.createElement("iframe",{src:wt+"&disposition=inline"}),Wt==="pdf"&&ie.createElement("iframe",{src:`${Ce}/js/pdfview/index.html?filename=${$t||"educoder.pdf"}&url=${encodeURIComponent(wt)}&disabledDownload=${!!ke}`}),Wt==="image"&&ie.createElement("img",{src:`${(wt==null?void 0:wt.indexOf("http://"))>-1||(wt==null?void 0:wt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${wt}`}),(Wt==="other"||Wt==="download")&&ie.createElement(ie.Fragment,null,on?ie.createElement(ve.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ie.createElement(ge.ZP,{icon:ie.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ve,disabled:ke},"\u4E0B\u8F7D")}):ie.createElement(ge.ZP,{type:"primary",size:"middle",onClick:Ve,disabled:ke},ie.createElement(xe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(An,Un,Et){"use strict";Et.d(Un,{z:function(){return Wt},Z:function(){return $t}});var Mt=Et(59301),ne=Et(50304),ge=Et(24768),xe=Et(64018),ee=Et(79710),Ht=Et(3294),oe=Et(955),Re=Et(15342),ve=Et(1012),Tt=Et(23210),Ue=Et(59301),Je=({html:Jt})=>{const Vt=(0,Mt.useRef)(null),pe=(0,Mt.useRef)(null),ce=`.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 36px !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,Mt.useEffect)(()=>{const Ee=Vt.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=Jt,Ee.appendChild(pe.current);const Ie=document.createElement("style");return Ie.textContent=ce,Ee.appendChild(Ie),()=>{Ee.innerHTML=""}},[]),(0,Mt.useEffect)(()=>{pe.current&&(pe.current.innerHTML=Jt)},[Jt]),Ue.createElement("div",{ref:Vt})},Ot=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,lt=(Jt,Vt,pe)=>Vt in Jt?Ot(Jt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Jt[Vt]=pe,gt=(Jt,Vt)=>{for(var pe in Vt||(Vt={}))nt.call(Vt,pe)&<(Jt,pe,Vt[pe]);if(et)for(var pe of et(Vt))ct.call(Vt,pe)&<(Jt,pe,Vt[pe]);return Jt};const mt="@\u2581\u2581@",St="@\u2581@",wt=/<pre[^>]*>/g;function zt(Jt){let Vt=document.createElement("div");return Vt.innerHTML=Jt,Vt.childNodes.length===0?"":Vt.childNodes[0].nodeValue}const Wt=(Jt,Vt)=>{Jt=Jt||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ce=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ee=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ie=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Vt?Jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(ke,wn,on,qe,We,he,It)=>{const Le=wn||qe||he,an=on||We||It||"?";return Ht.Z.API_SERVER+"/api/attachments/"+Le+an+"&t="+(0,oe.Jn)(Le,Date.now())+(ke.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Jt=Jt.replace(Ie,(ke,wn,on,qe,We,he,It)=>{const Le=wn||qe||he,an=on||We||It||"?";return Ht.Z.API_SERVER+"/attachments/download/"+Le+an+"&t="+(0,oe.Jn)(Le,Date.now())+(ke.indexOf(")")>-1?")":"&")}).replace(pe,(ke,wn,on,qe,We,he,It)=>{const Le=wn||qe||he,an=on||We||It||"?";return Ht.Z.API_SERVER+"/api/attachments/"+Le+an+"&t="+(0,oe.Jn)(Le,Date.now())+(ke.indexOf(")")>-1?")":"&")}).replace(ce,(ke,wn,on,qe,We)=>{const he=wn||qe,It=on||We||"";return'"'+Ht.Z.API_SERVER+"/api/attachments/"+he+It+he+It+"&t="+(0,oe.Jn)(he,Date.now())}).replace(Ee,(ke,wn,on,qe,We)=>{const he=wn||qe,It=on||We||"";return"("+Ht.Z.API_SERVER+"/files/uploads/"+he+It+he+It+"&t="+(0,oe.Jn)(he,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 $t=({value:Jt="",className:Vt,showTextOnly:pe,showLines:ce,style:Ee={},stylesPrev:Ie={},highlightKeywords:ke,showProgramFill:wn,isProgramFill:on,disabledFill:qe=!1,programFillValue:We,onFillChange:he=an=>{},onFillBlur:It=()=>{},onFillFocus:Le=()=>{}})=>{let an=String(Jt);const[Ze,Ce]=(0,Mt.useState)(""),[nn,Ye]=(0,Mt.useState)("office"),[Sn,Fe]=(0,Mt.useState)([]),vn=(0,Mt.useRef)("a"+(0,ve.Z)()),ue={},Ve=(re,Te,Ne)=>{const $e=document.createElement(re===St?"input":"textarea");$e.style.width="100%",$e.style.height=re===St?"40px":"151px",$e.rows=5,$e.spellcheck=!1,$e.name="edu-program-fill",$e.placeholder="\u8BF7\u8F93\u5165",$e.dataset.id=Te;const fn=Object.keys(ue).length;return ue[fn]=$e,`<span class="edu-program-fill-wrap ${re===St?"":"show"}" style="width:${re===St?"400px":"100%"}" title=${Ne||""}><span>${$e.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function In(re){return re=re.replace(/!\[.*?\]\(.*?\)/g,""),re=re.replace(/\[.*?\]\(.*?\)/g,""),re=re.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),re=re.replace(/<embed.*?>/g,""),re=re.replace(/<img.*?>/g,""),re=re.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),re=re.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),re=re.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),re=re.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),re}const Dt=re=>re.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Te,Ne){let $e=Ne.replace(/(\n|\r)/g,"").split("}"),fn=[];return $e.map(tn=>{tn!=""&&fn.push(`.${vn.current} ${tn}`)}),`<style>${fn.join("}")}</style>`}),Ct=(0,Mt.useMemo)(()=>{try{const $e=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,fn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,tn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,He=/\(\/attachments\/download\//g;an=an.replace(He,"("+Ht.Z.API_SERVER+"/attachments/download/").replace($e,"("+Ht.Z.API_SERVER+"/api/attachments/").replace(fn,'"'+Ht.Z.API_SERVER+"/api/attachments/").replace(tn,'"'+Ht.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($e){}if(wn){let $e=-1;return an=an.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(fn,tn,He){var On;return++$e,Ve(fn,$e,(On=We==null?void 0:We[$e])==null?void 0:On.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Dt(an||"")}</pre>`}let re=Dt(an);re=(0,ge.ZP)(re);const Te=(0,ge.ez)();an.match(/\[TOC\]/)&&(re=re.replace("<p>[TOC]</p>",(0,ge.Qv)()),(0,ge.Iy)()),re=re.replace(/(__special_katext_id_\d+__)/g,($e,fn)=>{const{type:tn,expression:He}=Te[fn];return(0,Re.renderToString)(zt(He)||"",{displayMode:tn==="block",throwOnError:!1,output:"html"})}),re=re.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ge.AL)();const Ne=document.createElement("div");if(Ne.innerHTML=re,pe)return Ne.innerText;if(ke){const $e=ke.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return bt(Ne,$e),Ne.innerHTML}return setTimeout(()=>Se(),500),Ne.innerHTML},[an,ke]);(0,Mt.useEffect)(()=>{Gt.current&&Gt.current.querySelectorAll(["input","textarea"]).forEach(Te=>{Te.oninput=yt,Te.onblur=kt,Te.onfocus=jt})},[Sn]),(0,Mt.useEffect)(()=>{var re,Te,Ne,$e,fn;if(We!=null&&We.length)try{const tn=Gt.current.querySelectorAll(".edu-program-fill-score"),He=Gt.current.querySelectorAll('[name="edu-program-fill"]');for(const[On,Xn]of He.entries())Xn.value=((re=We==null?void 0:We[On])==null?void 0:re.value)||"",((Te=We==null?void 0:We[On])==null?void 0:Te.type)==="warning"?Xn.className="program-fill-warning":((Ne=We==null?void 0:We[On])==null?void 0:Ne.type)==="success"?Xn.className="program-fill-success":Xn.className="";for(const[On,Xn]of tn.entries())Xn.innerHTML=($e=We==null?void 0:We[On])!=null&&$e.score?`${(fn=We==null?void 0:We[On])==null?void 0:fn.score}\u5206`:"";Fe(We)}catch(tn){console.log(tn,"error")}},[We]);const yt=re=>{Sn[re.target.dataset.id]=Sn[re.target.dataset.id]||{},Sn[re.target.dataset.id].value=re.target.value,Fe([...Sn]),he(Sn,re.target.dataset.id)},kt=re=>{Sn[re.target.dataset.id]=Sn[re.target.dataset.id]||{},Sn[re.target.dataset.id].value=re.target.value,Fe([...Sn]),It(Sn,re.target.dataset.id)},jt=re=>{Sn[re.target.dataset.id]=Sn[re.target.dataset.id]||{},Sn[re.target.dataset.id].value=re.target.value,Fe([...Sn]),Le(Sn,re.target.dataset.id)};function bt(re,Te){return re.childNodes.forEach(Ne=>{var $e;if(Ne.childNodes.length>0)bt(Ne,Te);else if(Ne.nodeName!=="IMG")if(Ne.innerHTML)Ne.innerHTML=($e=Ne.innerHTML)==null?void 0:$e.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const fn=document.createElement("span");fn.innerHTML=Ne.textContent.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ne.replaceWith(fn)}})}const Gt=(0,Mt.useRef)();ge.jb.WebkitLineClamp=ce,ce&&(Ee=gt(gt({},Ee),ge.jb));function fe(re){let Te=re.target;if(Te.tagName.toUpperCase()==="A"){let Ne=Te.getAttribute("href");if(Ne.indexOf("office")>-1)re.preventDefault(),Ce(Ne),Ye("office");else if(Ne.indexOf("application/pdf")>-1)re.preventDefault(),Ce(Ne),Ye("pdf");else if(Ne.indexOf("text/html")>-1)re.preventDefault(),Ce(Ne),Ye("html");else if(Ne.startsWith("#")){re.preventDefault();let $e=document.getElementById(Ne.replace("#",""));$e&&$e.scrollIntoView(!0)}}}const Se=()=>{var re;const Te=(re=Gt.current)==null?void 0:re.querySelectorAll("video");Te==null||Te.forEach(Ne=>{if(Ne.oncontextmenu=()=>!1,Ne.src.indexOf(".m3u8")>-1&&!Ne.canPlayType("application/vnd.apple.mpegurl")){if(ee.ZP.isSupported()){var $e=new ee.ZP;$e.loadSource(Ne.src),$e.attachMedia(Ne)}}})};(0,Mt.useEffect)(()=>{if(Gt.current&&Ct&&Ct.match(wt)&&window.PR.prettyPrint(),Gt.current)return Gt.current.addEventListener("click",fe),()=>{var re;(re=Gt.current)==null||re.removeEventListener("click",fe),(0,ge.AL)(),(0,ge.Iy)()}},[Ct,Gt.current,fe]),(0,Mt.useEffect)(()=>{var re;const Te=Ne=>{Ne.preventDefault(),Ne.clipboardData.setData("text",window.getSelection().toString())};return(re=Gt.current)==null||re.addEventListener("copy",Te),()=>{var Ne;(Ne=Gt.current)==null||Ne.removeEventListener("copy",Te)}},[Gt.current]);const Be=re=>/<style[\s\S]*?>/i.test(re||"");return Mt.createElement(Mt.Fragment,null,pe&&Mt.createElement("div",{ref:Gt},Ct),!pe&&!Be(Ct)&&Mt.createElement("div",{ref:Gt,style:gt({},Ee),className:`${Vt||""} ${qe?"disabled-fill":""} markdown-body ${vn.current}`,dangerouslySetInnerHTML:{__html:Ct}}),!pe&&Be(Ct)&&Mt.createElement(Je,{html:Ct}),Mt.createElement(Tt.Z,{close:!0,data:Ze,type:Ze!=null&&Ze.length?nn:"",style:gt({},Ie),onClose:()=>Ce("")}))}},97692:function(An,Un,Et){"use strict";Et.d(Un,{h:function(){return St}});var Mt=Et(59301),ne=Et(82326),ge=Et(28284),xe=Et(99571),ee=Et(89780),Ht=Et.n(ee),oe=Et(37036),Re=Et(95625),ve=Object.defineProperty,Tt=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,et=(wt,zt,Wt)=>zt in wt?ve(wt,zt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):wt[zt]=Wt,nt=(wt,zt)=>{for(var Wt in zt||(zt={}))Je.call(zt,Wt)&&et(wt,Wt,zt[Wt]);if(ie)for(var Wt of ie(zt))Ot.call(zt,Wt)&&et(wt,Wt,zt[Wt]);return wt},ct=(wt,zt)=>Tt(wt,Ue(zt));const lt=ne.default.Option,gt={labelCol:{span:4},wrapperCol:{span:20}},mt={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"]};Un.Z=({callback:wt,onCancel:zt})=>{const[Wt,$t]=(0,Mt.useState)("python");function Jt(pe){$t(mt[pe][1])}function Vt(pe){wt(pe)}return Mt.createElement(ge.default,ct(nt({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Vt,style:{width:500}}),Mt.createElement(ge.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Mt.createElement(ne.default,{getPopupContainer:pe=>pe.parentNode,onChange:Jt},Object.keys(mt).map(pe=>Mt.createElement(lt,{key:pe,value:pe},mt[pe][0])))),Mt.createElement(ge.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Mt.createElement(St,{mode:Wt})),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(xe.ZP,{type:"ghost",onClick:zt},"\u53D6\u6D88")))};function St({value:wt,onChange:zt,mode:Wt,options:$t={}}){const Jt=(0,Mt.useRef)(),[Vt,pe]=(0,Mt.useState)();return(0,Mt.useEffect)(()=>{if(Vt){let ce=function(Ee){const Ie=Ee.getValue();zt&&zt(Ie)};return Vt.on("change",ce),()=>{Vt.off("change",ce)}}},[Vt,zt]),(0,Mt.useEffect)(()=>{Vt&&Vt.setOption("mode",Wt)},[Vt,Wt]),(0,Mt.useEffect)(()=>{Vt&&(wt!==Vt.getValue()||wt==="")&&setTimeout(()=>{Vt.setValue(wt||"")},300)},[Vt,wt]),(0,Mt.useEffect)(()=>{if(Jt.current&&!Vt){const ce=Ht().fromTextArea(Jt.current,nt({mode:Wt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$t));pe(ce)}},[Jt.current,Vt]),Mt.createElement("div",{className:"my-codemirror-container"},Mt.createElement("textarea",{ref:Jt}))}},12290:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return En}});var Mt=Et(59301),ne=Et(89780),ge=Et.n(ne),xe=Et(76374),ee=Et(37036),Ht=Et(6313),oe=Et(25717),Re=Et(99498),ve=Et(25419),Tt=Et(67549),Ue=Et(85149),ie=({value:Ae="",className:Me,showTextOnly:be,showLines:qn,style:ni={}})=>{const Fi=(0,Mt.useMemo)(()=>"",[Ae]);return Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{dangerouslySetInnerHTML:{__html:Fi}}))},Je=Et(59301),Ot=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,mt=(Ae,Me,be)=>Me in Ae?Ot(Ae,Me,{enumerable:!0,configurable:!0,writable:!0,value:be}):Ae[Me]=be,St=(Ae,Me)=>{for(var be in Me||(Me={}))lt.call(Me,be)&&mt(Ae,be,Me[be]);if(ct)for(var be of ct(Me))gt.call(Me,be)&&mt(Ae,be,Me[be]);return Ae},wt=(Ae,Me)=>et(Ae,nt(Me));let zt=[{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\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",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 Wt({onActionCallback:Ae,title:Me,icon:be,actionName:qn,className:ni="",children:Fi}){function gn(){Ae(qn)}return Je.createElement("a",{title:Me,className:ni,onClick:gn},Je.createElement("i",{className:`${be}`}),Fi)}var $t=({watch:Ae,showNullButton:Me,showNullProgramButton:be,onActionCallback:qn,fullScreen:ni,insertTemp:Fi,hidetoolBar:gn,extraUse:Hn})=>{const Oe=[...zt,{title:`${Ae?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ae?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Je.createElement("ul",{className:"markdown-toolbar-container"},!gn&&Oe.map((De,ai)=>Je.createElement("li",{key:ai},De.actionName?Je.createElement(Wt,wt(St({},De),{onActionCallback:qn})):Je.createElement("span",{className:"v-line"}))),Me?Je.createElement("li",null,Je.createElement(Wt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qn},Je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,be?Je.createElement(Je.Fragment,null,Je.createElement("li",null,Je.createElement(Wt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qn},Je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Je.createElement("li",null,Je.createElement(Wt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qn},Je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Fi&&Je.createElement("li",null,Je.createElement(Wt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Fi}`,onActionCallback:qn},Je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Hn&&Je.createElement("li",null,Hn),Je.createElement("li",{className:"btn-full-screen"},Je.createElement(Wt,{icon:`${ni?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ni?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qn})))},Jt=Et(79346),Vt=Et(28284),pe=Et(37568),ce=Et(99571),Ee=Object.defineProperty,Ie=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,We=(Ae,Me,be)=>Me in Ae?Ee(Ae,Me,{enumerable:!0,configurable:!0,writable:!0,value:be}):Ae[Me]=be,he=(Ae,Me)=>{for(var be in Me||(Me={}))on.call(Me,be)&&We(Ae,be,Me[be]);if(wn)for(var be of wn(Me))qe.call(Me,be)&&We(Ae,be,Me[be]);return Ae},It=(Ae,Me)=>Ie(Ae,ke(Me));const Le={labelCol:{span:4},wrapperCol:{span:20}};var an=({callback:Ae,onCancel:Me})=>{function be(qn){Ae(qn)}return Mt.createElement(Vt.default,It(he({},Le),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:be,style:{width:500}}),Mt.createElement(Vt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Mt.createElement(pe.default,null)),Mt.createElement(Vt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Mt.createElement(pe.default,null)),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(ce.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))},Ze=Et(97692),Ce=Et(28451),nn=Et(62957),Ye=Et(77019),Sn=Et(73524),Fe=Et(59301),vn=({callback:Ae,onCancel:Me})=>{const be=document.createElement("canvas"),qn=be.getContext("2d");be.width=1e3,be.height=800,qn.fillStyle="#ffffff",qn.fillRect(0,0,be.width,be.height);const ni=be.toDataURL("image/png");return Fe.createElement(nn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Fe.createElement(Ye.Z,{style:{height:"100vh"}},Fe.createElement(Sn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ni,visible:!0,title:String(Date.now())},onOk:Fi=>{Ae({src:Fi.url})},onClose:Me})))},ue=Et(12378);function Ve(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ve,go.CommandHandler),Ve.prototype.canAlignSelection=function(){var Ae=this.diagram;return!(Ae===null||Ae.isReadOnly||Ae.isModelReadOnly||Ae.selection.count<2)},Ve.prototype.alignLeft=function(){var Ae=this.diagram;Ae.startTransaction("aligning left");var Me=1/0;Ae.selection.each(function(be){be instanceof go.Link||(Me=Math.min(be.position.x,Me))}),Ae.selection.each(function(be){be instanceof go.Link||be.move(new go.Point(Me,be.position.y))}),Ae.commitTransaction("aligning left")},Ve.prototype.alignRight=function(){var Ae=this.diagram;Ae.startTransaction("aligning right");var Me=-1/0;Ae.selection.each(function(be){if(!(be instanceof go.Link)){var qn=be.actualBounds.x+be.actualBounds.width;Me=Math.max(qn,Me)}}),Ae.selection.each(function(be){be instanceof go.Link||be.move(new go.Point(Me-be.actualBounds.width,be.position.y))}),Ae.commitTransaction("aligning right")},Ve.prototype.alignTop=function(){var Ae=this.diagram;Ae.startTransaction("alignTop");var Me=1/0;Ae.selection.each(function(be){be instanceof go.Link||(Me=Math.min(be.position.y,Me))}),Ae.selection.each(function(be){be instanceof go.Link||be.move(new go.Point(be.position.x,Me))}),Ae.commitTransaction("alignTop")},Ve.prototype.alignBottom=function(){var Ae=this.diagram;Ae.startTransaction("aligning bottom");var Me=-1/0;Ae.selection.each(function(be){if(!(be instanceof go.Link)){var qn=be.actualBounds.y+be.actualBounds.height;Me=Math.max(qn,Me)}}),Ae.selection.each(function(be){be instanceof go.Link||be.move(new go.Point(be.actualBounds.x,Me-be.actualBounds.height))}),Ae.commitTransaction("aligning bottom")},Ve.prototype.alignCenterX=function(){var Ae=this.diagram,Me=Ae.selection.first();if(Me){Ae.startTransaction("aligning Center X");var be=Me.actualBounds.x+Me.actualBounds.width/2;Ae.selection.each(function(qn){qn instanceof go.Link||qn.move(new go.Point(be-qn.actualBounds.width/2,qn.actualBounds.y))}),Ae.commitTransaction("aligning Center X")}},Ve.prototype.alignCenterY=function(){var Ae=this.diagram,Me=Ae.selection.first();if(Me){Ae.startTransaction("aligning Center Y");var be=Me.actualBounds.y+Me.actualBounds.height/2;Ae.selection.each(function(qn){qn instanceof go.Link||qn.move(new go.Point(qn.actualBounds.x,be-qn.actualBounds.height/2))}),Ae.commitTransaction("aligning Center Y")}},Ve.prototype.alignColumn=function(Ae){var Me=this.diagram;Me.startTransaction("align Column"),Ae===void 0&&(Ae=0),Ae=parseFloat(Ae);var be=new Array;Me.selection.each(function(Hn){Hn instanceof go.Link||be.push(Hn)});for(var qn=0;qn<be.length-1;qn++){var ni=be[qn],Fi=ni.actualBounds.y+ni.actualBounds.height+Ae,gn=be[qn+1];gn.move(new go.Point(ni.actualBounds.x,Fi))}Me.commitTransaction("align Column")},Ve.prototype.alignRow=function(Ae){Ae===void 0&&(Ae=0),Ae=parseFloat(Ae);var Me=this.diagram;Me.startTransaction("align Row");var be=new Array;Me.selection.each(function(Hn){Hn instanceof go.Link||be.push(Hn)});for(var qn=0;qn<be.length-1;qn++){var ni=be[qn],Fi=ni.actualBounds.x+ni.actualBounds.width+Ae,gn=be[qn+1];gn.move(new go.Point(Fi,ni.actualBounds.y))}Me.commitTransaction("align Row")},Ve.prototype.canRotate=function(Ae){var Me=this.diagram;return!(Me===null||Me.isReadOnly||Me.isModelReadOnly||Me.selection.count<1)},Ve.prototype.rotate=function(Ae){Ae===void 0&&(Ae=90);var Me=this.diagram;Me.startTransaction("rotate "+Ae.toString());var Me=this.diagram;Me.selection.each(function(be){be instanceof go.Link||be instanceof go.Group||(be.angle+=Ae)}),Me.commitTransaction("rotate "+Ae.toString())},Ve.prototype.pullToFront=function(){var Ae=this.diagram;Ae.startTransaction("pullToFront");var Me=new go.Map;Ae.selection.each(function(be){Me.set(be.layer,0)}),Me.iteratorKeys.each(function(be){var qn=0;be.parts.each(function(ni){if(!ni.isSelected){var Fi=ni.zOrder;isNaN(Fi)?ni.zOrder=0:qn=Math.max(qn,Fi)}}),Me.set(be,qn)}),Ae.selection.each(function(be){Ve._assignZOrder(be,Me.get(be.layer)+1)}),Ae.commitTransaction("pullToFront")},Ve.prototype.pushToBack=function(){var Ae=this.diagram;Ae.startTransaction("pushToBack");var Me=new go.Map;Ae.selection.each(function(be){Me.set(be.layer,0)}),Me.iteratorKeys.each(function(be){var qn=0;be.parts.each(function(ni){if(!ni.isSelected){var Fi=ni.zOrder;isNaN(Fi)?ni.zOrder=0:qn=Math.min(qn,Fi)}}),Me.set(be,qn)}),Ae.selection.each(function(be){Ve._assignZOrder(be,Me.get(be.layer)-1-Ve._findGroupDepth(be))}),Ae.commitTransaction("pushToBack")},Ve._assignZOrder=function(Ae,Me,be){be===void 0&&(be=Ae),Ae.layer===be.layer&&(Ae.zOrder=Me),Ae instanceof go.Group&&Ae.memberParts.each(function(qn){Ve._assignZOrder(qn,Me+1,be)})},Ve._findGroupDepth=function(Ae){if(Ae instanceof go.Group){var Me=0;return Ae.memberParts.each(function(be){Me=Math.max(Me,Ve._findGroupDepth(be))}),Me+1}else return 0},Ve.prototype.doKeyDown=function(){var Ae=this.diagram;if(Ae!==null){var Me=Ae.lastInput;if(Me.key==="Up"||Me.key==="Down"||Me.key==="Left"||Me.key==="Right"){var be=this.arrowKeyBehavior;if(be==="none")return;if(be==="select"){this._arrowKeySelect();return}else if(be==="move"){this._arrowKeyMove();return}else if(be==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ve.prototype._getAllParts=function(){var Ae=new Array;return this.diagram.nodes.each(function(Me){Ae.push(Me)}),this.diagram.parts.each(function(Me){Ae.push(Me)}),Ae},Ve.prototype._arrowKeyMove=function(){var Ae=this.diagram,Me=Ae.lastInput,be=0,qn=0;if(Me.control||Me.meta)be=1,qn=1;else if(Ae.grid!==null){var ni=Ae.grid.gridCellSize;qn=ni.width,be=ni.height}Ae.startTransaction("arrowKeyMove"),Ae.selection.each(function(Fi){Me.key==="Up"?Fi.move(new go.Point(Fi.actualBounds.x,Fi.actualBounds.y-be)):Me.key==="Down"?Fi.move(new go.Point(Fi.actualBounds.x,Fi.actualBounds.y+be)):Me.key==="Left"?Fi.move(new go.Point(Fi.actualBounds.x-qn,Fi.actualBounds.y)):Me.key==="Right"&&Fi.move(new go.Point(Fi.actualBounds.x+qn,Fi.actualBounds.y))}),Ae.commitTransaction("arrowKeyMove")},Ve.prototype._arrowKeySelect=function(){var Ae=this.diagram,Me=Ae.lastInput,be=null;Me.key==="Up"?be=this._findNearestPartTowards(270):Me.key==="Down"?be=this._findNearestPartTowards(90):Me.key==="Left"?be=this._findNearestPartTowards(180):Me.key==="Right"&&(be=this._findNearestPartTowards(0)),be!==null&&(Me.shift?be.isSelected=!0:Me.control||Me.meta?be.isSelected=!be.isSelected:Ae.select(be))},Ve.prototype._findNearestPartTowards=function(Ae){var Me=this.diagram.selection.first();if(Me===null)return null;for(var be=Me.actualBounds.center,qn=this._getAllParts(),ni=1/0,Fi=Me,gn=0;gn<qn.length;gn++){var Hn=qn[gn];if(Hn!==Me&&Hn.canSelect()){var Oe=Hn.actualBounds.center,De=be.directionPoint(Oe),ai=this._angleCloseness(De,Ae);if(ai<=45){var qt=be.distanceSquaredPoint(Oe);qt*=1+Math.sin(ai*Math.PI/180),qt<ni&&(ni=qt,Fi=Hn)}}}return Fi},Ve.prototype._angleCloseness=function(Ae,Me){return Math.min(Math.abs(Me-Ae),Math.min(Math.abs(Me+360-Ae),Math.abs(Me-360-Ae)))},Ve.prototype._arrowKeyTree=function(){var Ae=this.diagram,Me=Ae.selection.first();if(Me instanceof go.Node){var be=Ae.lastInput;if(be.key==="Right"){if(!Me.isTreeLeaf)if(!Me.isTreeExpanded)Ae.commandHandler.canExpandTree(Me)&&Ae.commandHandler.expandTree(Me);else{var qn=this._sortTreeChildrenByY(Me).first();qn!==null&&Ae.select(qn)}}else if(be.key==="Left")if(!Me.isTreeLeaf&&Me.isTreeExpanded)Ae.commandHandler.canCollapseTree(Me)&&Ae.commandHandler.collapseTree(Me);else{var ni=Me.findTreeParentNode();ni!==null&&Ae.select(ni)}else if(be.key==="Up"){var ni=Me.findTreeParentNode();if(ni!==null){var Fi=this._sortTreeChildrenByY(ni),gn=Fi.indexOf(Me);if(gn>0){for(var Hn=Fi.elt(gn-1);Hn!==null&&Hn.isTreeExpanded&&!Hn.isTreeLeaf;){var Oe=this._sortTreeChildrenByY(Hn);Hn=Oe.last()}Hn!==null&&Ae.select(Hn)}else Ae.select(ni)}}else if(be.key==="Down")if(Me.isTreeExpanded&&!Me.isTreeLeaf){var qn=this._sortTreeChildrenByY(Me).first();qn!==null&&Ae.select(qn)}else for(;Me!==null;){var ni=Me.findTreeParentNode();if(ni===null)break;var Fi=this._sortTreeChildrenByY(ni),gn=Fi.indexOf(Me);if(gn<Fi.length-1){Ae.select(Fi.elt(gn+1));break}else Me=ni}var De=Ae.selection.first();De!==null&&Ae.scrollToRect(De.actualBounds)}},Ve.prototype._sortTreeChildrenByY=function(Ae){var Me=new go.List().addAll(Ae.findTreeChildrenNodes());return Me.sort(function(be,qn){var ni=be.location,Fi=qn.location;return ni.y<Fi.y?-1:ni.y>Fi.y?1:ni.x<Fi.x?-1:ni.x>Fi.x?1:0}),Me},Ve.prototype.copyToClipboard=function(Ae){go.CommandHandler.prototype.copyToClipboard.call(this,Ae),this._lastPasteOffset.set(this.pasteOffset)},Ve.prototype.pasteFromClipboard=function(){var Ae=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ae,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ae},Object.defineProperty(Ve.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ae){if(Ae!=="move"&&Ae!=="select"&&Ae!=="scroll"&&Ae!=="tree"&&Ae!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ae);this._arrowKeyBehavior=Ae}}),Object.defineProperty(Ve.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ae){if(!(Ae instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ae);this._pasteOffset.set(Ae)}});var In=Ve,Dt=Et(74413),Ct=Et(5269),yt=Et(99064),kt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},jt=Et(24065),bt=Et(59301),Gt=(Ae,Me,be)=>new Promise((qn,ni)=>{var Fi=Oe=>{try{Hn(be.next(Oe))}catch(De){ni(De)}},gn=Oe=>{try{Hn(be.throw(Oe))}catch(De){ni(De)}},Hn=Oe=>Oe.done?qn(Oe.value):Promise.resolve(Oe.value).then(Fi,gn);Hn((be=be.apply(Ae,Me)).next())});function fe({onCancel:Ae,callback:Me}){let be=(0,Mt.useRef)(),qn=(0,Mt.useRef)(),ni=(0,Mt.useRef)(),Fi=(0,Mt.useRef)(!1);const gn=(0,Mt.useRef)(!1),[Hn,Oe]=(0,Mt.useState)(0);function De(){const qt=ue.bx.make,un={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"};be.current=new ue.S0(qn.current,{padding:20,grid:qt(ue.s_,"Grid",qt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qt(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:gi=>{var Ki=gi.diagram.commandHandler.addTopLevelParts(gi.diagram.selection,!0);Ki||gi.diagram.currentTool.doCancel()},commandHandler:qt(In),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:gi=>{var Ki=gi.subject;Ki.location=Ki.location.copy().snapToGridPoint(gi.diagram.grid.gridOrigin,gi.diagram.grid.gridCellSize),setTimeout(()=>{gi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:gi=>{var Ki=gi.subject;setTimeout(()=>{gi.diagram.commandHandler.editTextBlock()})},LinkRelinked:gi=>{var Ki=gi.parameter.part;Ki.invalidateConnectedLinks();var nr=gi.subject;gi.diagram.toolManager.linkingTool.isForwards?nr.toNode.invalidateConnectedLinks():nr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),be.current.nodeTemplate=qt(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),qt(ue.bn,{name:"SHAPE",fill:un.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),qt(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),qt(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),be.current.nodeTemplate.toolTip=qt("ToolTip",qt(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},qt(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),qt(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function Rn(gi,Ki){var nr=(Qi,rr)=>{Qi.handled=!0,Qi.diagram.model.commit(Zr=>{var Br=rr.part.adornedPart,Hr=new ue.E9().setRectSpot(Br.actualBounds,gi);Hr.subtract(Br.location),Hr.scale(2,2),Hr.x+=Math.sign(Hr.x)*130,Hr.y+=Math.sign(Hr.y)*130,Hr.add(Br.location),Hr.snapToGridPoint(Qi.diagram.grid.gridOrigin,Qi.diagram.grid.gridCellSize);var zr=Zr.copyNodeData(Br.data);Zr.setGroupKeyForNodeData(zr,Zr.getGroupKeyForNodeData(Br.data)),Zr.addNodeData(zr);var pn={from:Br.key,to:Zr.getKeyForNodeData(zr)};Zr.addLinkData(pn);var Yr=Qi.diagram.findNodeForData(zr);Yr.location=Hr,Qi.diagram.select(Yr),setTimeout(()=>{Qi.diagram.commandHandler.editTextBlock()},20)})};return qt(ue.bn,{figure:Ki,alignment:gi,alignmentFocus:gi.opposite(),width:gi.equals(ue.z6.Top)||gi.equals(ue.z6.Bottom)?25:18,height:gi.equals(ue.z6.Top)||gi.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:un.white,strokeWidth:4,mouseEnter:(Qi,rr)=>rr.fill="dodgerblue",mouseLeave:(Qi,rr)=>rr.fill="orange",isActionable:!0,click:nr,contextClick:nr})}function Ai(gi){return qt(ue.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:(Ki,nr)=>nr.fill="dodgerblue",mouseLeave:(Ki,nr)=>nr.fill="orange",click:(Ki,nr)=>{Ki.diagram.commandHandler.showContextMenu(nr.part.adornedPart)}},gi||{})}be.current.nodeTemplate.selectionAdornmentTemplate=qt(ue.uz,"Spot",qt(ue.Vm,{padding:10}),Rn(ue.z6.Top,"TriangleUp"),Rn(ue.z6.Left,"TriangleLeft"),Rn(ue.z6.Right,"TriangleRight"),Rn(ue.z6.Bottom,"TriangleDown"),Ai({alignment:new ue.z6(.75,0)}));function ln(gi,Ki){return(nr,Qi)=>{nr.handled=!0,nr.diagram.model.commit(rr=>{rr.set(Qi.part.adornedPart.data,gi,Ki)})}}function yn(gi,Ki){return Ki||(Ki="color"),qt(ue.bn,{width:16,height:16,stroke:"lightgray",fill:gi,margin:1,background:"transparent",mouseEnter:(nr,Qi)=>Qi.stroke="dodgerblue",mouseLeave:(nr,Qi)=>Qi.stroke="lightgray",click:ln(Ki,gi),contextClick:ln(Ki,gi)})}function li(){return[qt("ContextMenuButton",qt(ue.s_,"Horizontal",yn(un.white,"fill"),yn(un.beige,"fill"),yn(un.extralightblue,"fill"),yn(un.extralightred,"fill"))),qt("ContextMenuButton",qt(ue.s_,"Horizontal",yn(un.lightgray,"fill"),yn(un.lightgreen,"fill"),yn(un.lightblue,"fill"),yn(un.lightred,"fill")))]}function bi(){return[qt("ContextMenuButton",qt(ue.s_,"Horizontal",yn(un.black),yn(un.green),yn(un.blue),yn(un.red))),qt("ContextMenuButton",qt(ue.s_,"Horizontal",yn(un.white),yn(un.magenta),yn(un.purple),yn(un.orange)))]}function Ui(gi,Ki){return Ki||(Ki="thickness"),qt(ue.bn,"LineH",{width:16,height:16,strokeWidth:gi,margin:1,background:"transparent",mouseEnter:(nr,Qi)=>Qi.background="dodgerblue",mouseLeave:(nr,Qi)=>Qi.background="transparent",click:ln(Ki,gi),contextClick:ln(Ki,gi)})}function Di(gi,Ki){return Ki||(Ki="dash"),qt(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:gi,margin:1,background:"transparent",mouseEnter:(nr,Qi)=>Qi.background="dodgerblue",mouseLeave:(nr,Qi)=>Qi.background="transparent",click:ln(Ki,gi),contextClick:ln(Ki,gi)})}function $n(){return[qt("ContextMenuButton",qt(ue.s_,"Horizontal",Ui(1),Ui(2),Ui(3),Ui(4))),qt("ContextMenuButton",qt(ue.s_,"Horizontal",Di(null),Di([2,4]),Di([4,4])))]}function wi(gi,Ki){return Ki||(Ki="figure"),qt(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:gi,margin:1,background:"transparent",mouseEnter:(nr,Qi)=>Qi.fill="dodgerblue",mouseLeave:(nr,Qi)=>Qi.fill="lightgray",click:ln(Ki,gi),contextClick:ln(Ki,gi)})}be.current.nodeTemplate.contextMenu=qt("ContextMenu",qt("ContextMenuButton",qt(ue.s_,"Horizontal",wi("Rectangle"),wi("RoundedRectangle"),wi("Ellipse"),wi("Diamond"))),qt("ContextMenuButton",qt(ue.s_,"Horizontal",wi("Parallelogram2"),wi("ManualOperation"),wi("Procedure"),wi("Cylinder1"))),qt("ContextMenuButton",qt(ue.s_,"Horizontal",wi("Terminator"),wi("CreateRequest"),wi("Document"),wi("TriangleDown"))),li(),bi(),$n()),be.current.groupTemplate=qt(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(gi,Ki)=>{var nr=Ki.addMembers(Ki.diagram.selection,!0);nr||Ki.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),qt(ue.s_,"Auto",{name:"BODY"},qt(ue.bn,{parameter1:10,fill:un.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),qt(ue.Vm,{background:"transparent",margin:20})),qt(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),be.current.groupTemplate.selectionAdornmentTemplate=qt(ue.uz,"Spot",qt(ue.s_,"Auto",qt(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),qt(ue.Vm,{margin:1.5})),Ai({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),be.current.groupTemplate.contextMenu=qt("ContextMenu",li(),bi(),$n()),be.current.linkTemplate=qt(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",gi=>gi>=1?10:0),new ue.KX("toShortLength","dir",gi=>gi>=1?10:0),new ue.KX("points").makeTwoWay(),qt(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),qt(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",gi=>gi===1)),qt(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",gi=>gi>=1),new ue.KX("width","thickness",gi=>7+3*gi),new ue.KX("height","thickness",gi=>7+3*gi),new ue.KX("segmentOffset","thickness",gi=>new ue.E9(-15,4+1.5*gi))),qt(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",gi=>gi===2),new ue.KX("width","thickness",gi=>7+3*gi),new ue.KX("height","thickness",gi=>7+3*gi),new ue.KX("segmentOffset","thickness",gi=>new ue.E9(-15,4+1.5*gi))),qt(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),be.current.linkTemplate.selectionAdornmentTemplate=qt(ue.uz,qt(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:dr(2)},new ue.KX("pathPattern","thickness",dr)),Ai({alignmentFocus:new ue.z6(0,0,-6,-4)}));function dr(gi){return qt(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(gi+4).toString()+" H3"})}function fr(gi){var Ki="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return gi===0?Ki="M0 0 M16 16 M0 8 L16 8":gi===2&&(Ki="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),qt(ue.bn,{geometryString:Ki,margin:2,background:"transparent",mouseEnter:(nr,Qi)=>Qi.background="dodgerblue",mouseLeave:(nr,Qi)=>Qi.background="transparent",click:ln("dir",gi),contextClick:ln("dir",gi)})}function xr(gi){var Ki=(nr,Qi)=>{nr.handled=!0,nr.diagram.model.commit(rr=>{var Zr=Qi.part.adornedPart;rr.set(Zr.data,gi?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(gi?Zr.toNode:Zr.fromNode).invalidateConnectedLinks()})};return qt(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(nr,Qi)=>Qi.background="dodgerblue",mouseLeave:(nr,Qi)=>Qi.background="transparent",click:Ki,contextClick:Ki})}function cn(gi,Ki){var nr=0,Qi=ue.z6.RightSide;gi.equals(ue.z6.Top)?(nr=270,Qi=ue.z6.TopSide):gi.equals(ue.z6.Left)?(nr=180,Qi=ue.z6.LeftSide):gi.equals(ue.z6.Bottom)&&(nr=90,Qi=ue.z6.BottomSide),Ki||(nr-=180);var rr=(Zr,Br)=>{Zr.handled=!0,Zr.diagram.model.commit(Hr=>{var zr=Br.part.adornedPart;Hr.set(zr.data,Ki?"toSpot":"fromSpot",ue.z6.stringify(Qi)),(Ki?zr.toNode:zr.fromNode).invalidateConnectedLinks()})};return qt(ue.bn,{alignment:gi,alignmentFocus:gi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:nr,background:"transparent",mouseEnter:(Zr,Br)=>Br.background="dodgerblue",mouseLeave:(Zr,Br)=>Br.background="transparent",click:rr,contextClick:rr})}be.current.linkTemplate.contextMenu=qt("ContextMenu",bi(),$n(),qt("ContextMenuButton",qt(ue.s_,"Horizontal",fr(0),fr(1),fr(2))),qt("ContextMenuButton",qt(ue.s_,"Horizontal",qt(ue.s_,"Spot",xr(!1),cn(ue.z6.Top,!1),cn(ue.z6.Left,!1),cn(ue.z6.Right,!1),cn(ue.z6.Bottom,!1)),qt(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},xr(!0),cn(ue.z6.Top,!0),cn(ue.z6.Left,!0),cn(ue.z6.Right,!0),cn(ue.z6.Bottom,!0)))));const _r=`{ "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 kr=["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 to(gi){return console.log("shapeName:",gi),kr.indexOf(gi)>=0}var rn=new ue.YI(ni.current,{maxSelectionCount:1,linkTemplate:qt(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:qt(ue.uz,"Link",{locationSpot:ue.z6.Center},qt(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),qt(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),qt(ue.bn,{isPanelMain:!0,strokeWidth:2}),qt(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(gi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:gi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return be.current.addDiagramListener("TextEdited",function(gi){var Ki;const nr=gi.subject.part;var Qi=(Ki=document.activeElement)==null?void 0:Ki.value;typeof Qi=="string"&&Qi.trim()===""&&be.current.model.commit(function(rr){rr.set(nr.data,"text","\u672A\u547D\u540D"),be.current.commandHandler.stopCommand()},"increment")}),rn.nodeTemplate=qt(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),qt(ue.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 ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),qt(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{be.current.grid=qt(ue.s_,"Grid",qt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qt(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),be.current.grid.visible=!0,be.current.grid.gridCellStroke="darkgray",be.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=be.current,be.current}const ai=()=>Gt(this,null,function*(){var qt,un=be.current.makeImage();const Rn=yield(0,yt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:un.src,file_data:JSON.stringify({login:(qt=(0,jt.eY)())==null?void 0:qt.login,data:JSON.parse(be.current.model.toJson())})}});Me({src:Rn.url})});return(0,Mt.useEffect)(()=>(setTimeout(()=>{De()},500),Oe(Hn+1),()=>{be.current=null}),[]),bt.createElement("div",{ref:gn,className:Fi.current?`${kt.maxH60} body-overflow-initial`:"body-overflow-initial"},bt.createElement(nn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Hn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:bt.createElement(Ye.Z,null,bt.createElement(Ct.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),bt.createElement(Ct.Z,{onClick:()=>{var qt,un,Rn=be.current.selection.first();if(Fi.current=!Fi.current,document.activeElement&&Rn){let Ai=(un=(qt=document.activeElement)==null?void 0:qt.value)==null?void 0:un.trim();typeof Ai=="string"&&be.current.model.commit(function(ln){ln.set(Rn.data,"text",Ai||"\u672A\u547D\u540D"),be.current.commandHandler.stopCommand()},"increment")}Oe(Hn+1)}},bt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ae},bt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:kt.flowChartWrp},bt.createElement("div",{style:{display:"flex",height:"100%"}},bt.createElement("div",{style:{width:"300px",height:"100%"}},bt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),bt.createElement("div",{style:{height:"calc(100% - 50px)"},className:kt.myPaletteDiv,ref:ni})),bt.createElement("div",{style:{flex:1,position:"relative"}},bt.createElement("div",{ref:qn,style:{height:"80vh"}}))),bt.createElement("div",{className:"tr"},bt.createElement(ce.ZP,{size:"large",onClick:ai,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Se=fe,Be=Et(47889),re=Et(71051);const Te=Be.ZP.Group,Ne={margin:"0 8px"};var $e=({callback:Ae,onCancel:Me})=>{function be(qn){Ae(qn)}return Mt.createElement(Vt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:be},Mt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Mt.createElement("span",{style:Ne},"\u5355\u5143\u683C\u6570\uFF1A"),Mt.createElement("span",{style:Ne},"\u884C\u6570"),Mt.createElement(Vt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Mt.createElement(re.Z,null)),Mt.createElement("span",{style:Ne},"\u5217\u6570"),Mt.createElement(Vt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Mt.createElement(re.Z,null))),Mt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Mt.createElement("span",{style:Ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Mt.createElement(Vt.default.Item,{name:"align"},Mt.createElement(Te,null,Mt.createElement(Be.ZP,{value:"default"},Mt.createElement("i",{className:"fa fa-align-justify"})),Mt.createElement(Be.ZP,{value:"left"},Mt.createElement("i",{className:"fa fa-align-left"})),Mt.createElement(Be.ZP,{value:"center"},Mt.createElement("i",{className:"fa fa-align-center"})),Mt.createElement(Be.ZP,{value:"right"},Mt.createElement("i",{className:"fa fa-align-right"}))))),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(ce.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))},fn=Et(71411),tn=Et(80727),He=Et.n(tn),Xn=(0,Mt.forwardRef)(({use3d:Ae,width:Me,height:be,callback:qn,showSaveButton:ni},Fi)=>{const gn=(0,Mt.useRef)(),Hn=(0,Mt.useRef)(),[Oe,De]=(0,Mt.useState)(!1),ai=(0,Mt.useRef)({id:gn,appName:"graphing",width:Me||1e3,height:be||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Mt.useEffect)(()=>{Hn.current=new(He())(ai.current,!0),window.onload=function(){Hn.current.inject("applet_container")}},[]);const qt=()=>{var un=window.ggbApplet.getPNGBase64(1,!0,72);return qn&&qn(un),un};return(0,Mt.useEffect)(()=>{ai.current.appName=Oe?"3D":"graphing",Hn.current.inject("applet_container")},[Oe]),(0,Mt.useEffect)(()=>{De(Ae)},[Ae]),(0,Mt.useImperativeHandle)(Fi,()=>({getImgData:qt})),Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),Mt.createElement(Ye.Z,{align:"middle"},Mt.createElement(Ct.Z,{flex:1},Mt.createElement(fn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Oe,onChange:un=>De(un)})),Mt.createElement(Ct.Z,null,Mt.createElement(ce.ZP,{size:"large",onClick:qt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Pn=Et(41588),Gn=Et(6767);const Ni="link",xi="upload-image",ki="add-flowchart",tr="draw-image",Qe="add-flowchart",sn="code-block",Qn="add-table",Li="------------",Ri={default:Li,left:`:${Li}`,center:`:${Li}:`,right:`${Li}:`};var Pi=Et(58856);function ur(){}let ir=0;const pr=1e4,ci="\u2581",qi="@\u2581\u2581@",Pt="@\u2581@",Ii=`
|
|
**\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`,Jn=["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 er(Ae){return/^\d+$/.test(Ae)?`${Ae}px`:Ae}const Zi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",fi={[Zi+"-B"]:"bold",[Zi+"-I"]:"italic"},bn={[Ni]:"\u6DFB\u52A0\u94FE\u63A5",[sn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[xi]:"\u6DFB\u52A0\u56FE\u7247",[tr]:"\u6DFB\u52A0\u753B\u56FE",[ki]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Qn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var En=({defaultValue:Ae="",onChange:Me,width:be="100%",height:qn=400,miniToolbar:ni=!1,isFocus:Fi=!1,watch:gn,insertTemp:Hn,mode:Oe="markdown",id:De="markdown-editor-id",showResizeBar:ai=!1,noStorage:qt=!1,showNullButton:un=!1,showNullProgramButton:Rn=!1,hidetoolBar:Ai=!1,fullScreen:ln=!1,onBlur:yn,onCMBeforeChange:li,onFullScreen:bi,className:Ui="",disablePaste:Di=!1,disabled:$n=!1,disabledFill:wi=!1,placeholder:dr="",values:fr="",extraUse:xr})=>{const[cn,_r]=(0,Mt.useState)(null),[kr,to]=(0,Mt.useState)(Ae),[rn,gi]=(0,Mt.useState)(gn),[Ki,nr]=(0,Mt.useState)(ln),[Qi,rr]=(0,Mt.useState)(""),[Zr,Br]=(0,Mt.useState)(0),[Hr,zr]=(0,Mt.useState)(qn),[pn,Yr]=(0,Mt.useState)(!1),[Ln,_i]=(0,Mt.useState)(0),[or,Cr]=(0,Mt.useState)(0),Po=(0,Mt.useRef)(),co=(0,Mt.useRef)(),Kr=(0,Mt.useRef)(),eo=(0,Mt.useRef)();(0,Mt.useEffect)(()=>{const Nt=window.scrollY||window.pageYOffset;to(fr),cn==null||cn.setValue(fr),window.scrollTo(0,Nt)},[fr]),(0,Mt.useEffect)(()=>{bi==null||bi(Ki)},[Ki]),(0,Mt.useEffect)(()=>{if(Po.current){let Nt=function(Ut,se){var we;if(Di){se.preventDefault();return}const Xe=se.clipboardData;if(Xe){const en=Xe.types.toString(),hn=Xe.items;if(en==="Files"||Xe.types.indexOf("Files")>-1){if(se.preventDefault(),Oe=="stex")return;try{let Bn=hn[1];((we=hn[0])==null?void 0:we.kind)==="file"&&(Bn=hn[0]);const Dn=Bn.getAsFile(),mn=Dn.name.split(".").pop();(0,Ce.I)(Dn,ii=>{var Bi,de,Wn;ii.id?((Bi=Dn==null?void 0:Dn.type)==null?void 0:Bi.indexOf("image"))>-1?ae.replaceSelection(`<img width="100%" src="/api/attachments/${ii.id}?type=${ii.content_type})" alt="" />`):((de=Dn==null?void 0:Dn.type)==null?void 0:de.indexOf("video"))>-1?ae.replaceSelection(`<video width="100%" controls src="/api/attachments/${ii.id}"></video>`):((Wn=Dn==null?void 0:Dn.type)==null?void 0:Wn.indexOf("pdf"))>-1?ae.replaceSelection(`<a href="/api/attachments/${ii.id}?type=${Dn.type}&disposition=inline" target="_blank">${Dn.name}</a>`):Jn.includes(mn)?ae.replaceSelection(`<a href="/api/attachments/${ii.id}?type=office&disposition=inline" target="_blank">${Dn.name}</a>`):ae.replaceSelection(`[${Dn.name}](/api/attachments/${ii.id}?type=${ii.content_type})`):(ii==null?void 0:ii.status)===401&&(document.location.href="/user/login")})}catch(Bn){Gn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ae=ge().fromTextArea(Po.current,{mode:Oe,lineNumbers:!ni,lineWrapping:!0,value:Ae,autoCloseTags:!0,autoCloseBrackets:!0});return ae.on("keyup",function(Ut,se){se.keyCode===8&&(Ut.getValue()==""?ae.setOption("placeholder",dr):ae.setOption("placeholder",null))}),ae.on("keydown",function(Ut,se){if(se.keyCode===8){var we=Mn(Ut);we&&se.preventDefault()}}),Fi&&ae.focus(),ae.on("paste",Nt),$n&&ae.on("beforeChange",function(Ut,se){(se.origin==="paste"||se.origin==="+input")&&se.cancel()}),_r(ae),()=>{ae.off("paste",Nt)}}},[]);const Ke=(0,Mt.useCallback)(()=>{if(co.current)try{}catch(Nt){console.log(Nt,"---- to set md editor body height")}},[Hr,co,Ki]);(0,Mt.useEffect)(()=>{function Nt(){let ae=new xe.Z(Ut=>{for(let se of Ut)(se.target.offsetHeight>0||se.target.offsetWidth>0)&&(Ke(),cn.setSize("100%","100%"),cn.refresh())});return ae.observe(Po.current.parentElement),ae}if(cn){const ae=Nt();return()=>{var Ut,se;(Ut=Po.current)!=null&&Ut.parentElement&&ae.unobserve((se=Po.current)==null?void 0:se.parentElement)}}},[cn,Ke]),(0,Mt.useEffect)(()=>{if(cn){let Nt=[];for(const[ae,Ut]of Object.entries(fi)){let se={[ae]:()=>{Ge(Ut)}};Nt.push(se),cn.addKeyMap(se)}return()=>{for(let ae of Nt)cn.removeKeyMap(ae)}}},[cn]),(0,Mt.useEffect)(()=>{ln!==Ki&&nr(ln)},[ln]),(0,Pi.Z)(()=>{if(!qt&&Zr>0){let Nt=new Date().getTime(),ae=window.sessionStorage.getItem(De);Nt>=Zr+pr&&(!ae||ae!==kr)&&(window.sessionStorage.setItem(De,kr),Yr(!0))}},pr),(0,Mt.useEffect)(()=>{gi(gn)},[cn,gn]),(0,Mt.useEffect)(()=>{cn&&Fi&&cn.focus()},[cn,Fi]),(0,Mt.useEffect)(()=>{if(rn&&cn){let Nt=function(Ut){let se=Ut.target;if(eo.current){let we=se.scrollTop/se.scrollHeight;eo.current.scrollTop=eo.current.scrollHeight*we}};const ae=cn.getScrollerElement();return ae.addEventListener("scroll",Nt),()=>{ae.removeEventListener("scroll",Nt)}}},[cn,rn]),(0,Mt.useEffect)(()=>{if(cn&&li){let Nt=function(ae,Ut){li(ae,Ut)};return cn.on("beforeChange",Nt),()=>{cn.off("beforeChange",Nt)}}},[cn,li]),(0,Mt.useEffect)(()=>{if(cn&&yn){let Nt=function(){yn(cn.getValue())};return cn.on("blur",Nt),()=>{cn.off("blur",Nt)}}},[cn,yn]);function Mn(Nt,ae){var Ut=Nt.getDoc(),se=Ut.getCursor(),we=Ut.getLine(se.line),Xe=we.charAt(se.ch-1),en=we.lastIndexOf("@\u2581@",se.ch),hn=we.lastIndexOf("@\u2581\u2581@",se.ch),Bn=en>hn?en:hn,Dn=en>hn?3:4;if(qi.indexOf(Xe)===-1)return null;if(console.log("change1:",ae,Nt,we,se,Bn,en,hn,Xe),Bn>=0&&se.ch-Bn<5){var mn=Bn+Dn;return Ut.replaceRange("",{line:se.line,ch:Bn},{line:se.line,ch:mn}),{line:se.line,ch:mn}}return null}(0,Mt.useEffect)(()=>{if(cn){let Nt=function(ae,Ut){const se=ae.getValue();to(se),Br(new Date().getTime()),ae.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Me&&(Rn?Me(se,si(se)):Me(se))};return cn.on("change",Nt),()=>{cn.off("change",Nt)}}},[cn,Me]),(0,Mt.useEffect)(()=>{if(cn)if(Ae==null)cn.setValue(""),to("");else{const Nt=window.scrollY||window.pageYOffset;Ae!==cn.getValue()&&(cn.setValue(Ae),to(Ae),cn.setCursor($n?1:cn.lineCount(),0),window.scrollTo(0,Nt))}},[cn,Ae]);const Ge=(0,Mt.useCallback)(Nt=>{const ae=cn.getCursor(),Ut=cn.getSelection();let se=Ut.split(`
|
|
`);switch(Nt){case"bold":return cn.replaceSelection("**"+Ut+"**"),Ut===""&&cn.setCursor(ae.line,ae.ch+2),cn.focus();case"italic":return cn.replaceSelection("*"+Ut+"*"),Ut===""&&cn.setCursor(ae.line,ae.ch+1),cn.focus();case"code":return cn.replaceSelection("`"+Ut+"`"),Ut===""&&cn.setCursor(ae.line,ae.ch+1),cn.focus();case"inline-latex":return rr("inline-latex"),cn.focus();case"latex":return cn.replaceSelection("```latex\n"+Ut+"\n```"),cn.setCursor(ae.line+1,Ut.length+1),cn.focus();case"line-break":return cn.replaceSelection(`<br/>
|
|
`),cn.focus();case"list-ul":return Ut===""?cn.replaceSelection("- "+Ut):cn.replaceSelection(se.map(we=>we===""?"":`- ${we}`).join(`
|
|
`)),cn.focus();case"list-ol":return Ut===""?cn.replaceSelection("1. "+Ut):cn.replaceSelection(se.map((we,Xe)=>we===""?"":`${Xe+1}. ${we}`).join(`
|
|
`)),cn.focus();case"add-null-ch":return Ut===""&&cn.setCursor(ae.line,ae.ch),cn.replaceSelection(ci),cn.focus();case"add-signal":return Ut===""&&cn.setCursor(ae.line,ae.ch),cn.replaceSelection(Pt),cn.focus();case"add-multiple":return Ut===""&&cn.setCursor(ae.line,ae.ch),cn.replaceSelection(qi),cn.focus();case"inster-template-1":return Ut===""&&cn.setCursor(ae.line,ae.ch),cn.replaceSelection(Ii),cn.focus();case"eraser":return cn.setValue(""),cn.focus();case"trigger-watch":return gi(!rn),cn.focus();case"trigger-full-screen":return nr(!Ki),cn.focus();case Ni:rr(Ni);return;case sn:rr(sn);return;case xi:rr(xi);return;case tr:rr(tr);return;case"maths-latex":rr("maths-latex");return;case ki:rr(ki);return;case Qn:rr(Qn);return;default:throw new Error}},[cn,rn,Ki]),Bt=(0,Mt.useCallback)((Nt,ae)=>{var Ut,se,we,Xe,en,hn;switch(rr(""),Qi){case Ni:const{title:Bi,link:de}=Nt;return cn.replaceSelection(`[${Bi}](${de})`),cn.focus();case sn:const{language:Wn,content:Yn}=Nt;return cn.replaceSelection(["```"+Wn,Yn,"```"].join(`
|
|
`)),cn.focus();case"maths-latex":for(var Bn=atob(Nt),Dn=new Uint8Array(Bn.length),mn=0;mn<Bn.length;mn++)Dn[mn]=Bn.charCodeAt(mn);var ii=new Blob([Dn],{type:"image/png"});(0,Ce.I)(ii,lr=>{lr.id?cn.replaceSelection(``):(lr==null?void 0:lr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":cn.replaceSelection("`$$"+Nt+"$$`");break;case xi:case tr:case Qe:const{src:zn,alt:_n}=Nt,ei=ae,Oi=(we=(se=(Ut=ei==null?void 0:ei.name)==null?void 0:Ut.split("."))==null?void 0:se.pop)==null?void 0:we.call(se);return((Xe=ei==null?void 0:ei.type)==null?void 0:Xe.indexOf("image"))>-1||!(ei!=null&&ei.type)?ei!=null&&ei.align||ei!=null&&ei.width?cn.replaceSelection(`<p style="text-align:${ei.align||"initial"}"><img width="${ei.width?ei.width+"%":"initial"}" src="${zn}" alt="${_n||""}" /></p>`):cn.replaceSelection(`<img width="100%" src="${zn}" alt="${_n||""}" />`):((en=ei==null?void 0:ei.type)==null?void 0:en.indexOf("video"))>-1?cn.replaceSelection(`<video width="100%" controls src="${zn}"></video>`):((hn=ei==null?void 0:ei.type)==null?void 0:hn.indexOf("pdf"))>-1?cn.replaceSelection(`<a href="${zn}?type=${ei.type}&disposition=inline" target="_blank">${ei.name}</a>`):Jn.includes(Oi)?cn.replaceSelection(`<a href="${zn}?type=office&disposition=inline" target="_blank">${ei.name}</a>`):cn.replaceSelection(`[${ei.name}](${zn})`),cn.focus();case Qn:const{row:yi,col:oi,align:Vn}=Nt;let zi=`
|
|
`;for(let lr=0;lr<yi;lr++){let mr=[],Er=[];for(let Si=0;Si<oi;Si++)lr===1&&Er.push(Ri[Vn]),mr.push(" ");lr===1&&(zi+=`| ${Er.join(" | ")} |
|
|
`),zi+=`| ${mr.join(oi===1?"":" | ")} |
|
|
`}return cn.replaceSelection(zi+`
|
|
`),cn.focus();default:throw new Error}},[cn,Qi]),ti=(0,Mt.useMemo)(()=>{switch(Qi){case Ni:return Mt.createElement(an,{callback:Bt,onCancel:Kn});case sn:return Mt.createElement(Ze.Z,{callback:Bt,onCancel:Kn});case xi:return Mt.createElement(Ce.Z,{callback:Bt,onCancel:Kn});case ki:return Mt.createElement(Se,{callback:Bt,onCancel:Kn});case Qn:return Mt.createElement($e,{callback:Bt,onCancel:Kn});case"maths-latex":return Mt.createElement(Xn,{showSaveButton:!0,callback:Bt});case"inline-latex":return Mt.createElement(Pn.Z,{showSaveButton:!0,callback:Bt});default:return null}},[Qi]);function Kn(){rr("")}(0,Mt.useEffect)(()=>{if(Kr.current){let Nt=function(en){we=!0,Xe=en.pageY},ae=function(){we=!1},Ut=function(en){if(we){let hn=en.pageY-Xe;hn<0&&(hn=0),hn>300&&(hn=300);let Bn=qn+hn+"px";zr(Bn)}},se=Kr.current,we=!1,Xe=0;return se.addEventListener("mousedown",Nt),document.addEventListener("mousemove",Ut),document.addEventListener("mouseup",ae),()=>{se.removeEventListener("mousedown",Nt),document.removeEventListener("mousemove",Ut),document.removeEventListener("mouseup",ae)}}},[cn,Kr]),(0,Mt.useEffect)(()=>{zr(qn)},[qn]);const ui=er(be),Mi=er(Hr),Ei={width:ui,height:Mi},Nn=(0,Mt.useMemo)(()=>{if(Zr){let Nt=new Date(Zr),ae=Nt.getHours(),Ut=Nt.getMinutes(),se=Nt.getSeconds();return ae=ae<10?"0"+ae:ae,Ut=Ut<10?"0"+Ut:Ut,se=se<10?"0"+se:se,`${ae}:${Ut}:${se}`}return 0},[Zr]),si=Nt=>{const ae=[];if(Rn){let Ut=-1;Nt=Nt.replace(/(@▁▁@|@▁@)/g,function(se,we,Xe){ae.push({multiLine:se!==Pt})})}return ae};function hi(){window.sessionStorage.removeItem(De),Yr(!1),Br(0)}function pi(){Yr(!1),Br(0),cn.setValue(window.sessionStorage.getItem(De))}(0,Mt.useEffect)(()=>{bn[Qi]&&Qi!==tr&&Qi!==ki&&setTimeout(()=>{const Nt=document.getElementsByClassName("markdown-popup-form")[0],ae=window.innerWidth/2-Nt.offsetWidth/2,Ut=window.innerHeight/2-Nt.offsetHeight/2;_i(ae),Cr(Ut)},0)},[Qi]);const mi=Nt=>{Nt.preventDefault();const ae=Nt.clientX-Ln,Ut=Nt.clientY-or;document.body.onmousemove=se=>{let we=se.clientX-ae,Xe=se.clientY-Ut;const en=document.getElementsByClassName("markdown-popup-form")[0],hn=window.innerWidth-en.offsetWidth,Bn=window.innerHeight-en.offsetHeight;we=Math.max(0,Math.min(we,hn)),Xe=Math.max(0,Math.min(Xe,Bn)),ar(se.clientX,se.clientY,ae,Ut)&&(_i(we),Cr(Xe))},document.body.onmouseup=function(){document.body.onmousemove=null}},ar=(Nt,ae,Ut,se)=>{const we=document.body.clientHeight,Xe=document.body.clientWidth;return Nt<20&&Ut>Nt||Nt>Xe-20&&Ut<Nt||ae<20&&se>ae||ae>we-20&&se<ae?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{className:"markdown-editor-wrapper",ref:co},Mt.createElement("div",{className:`markdown-editor-container ${Ui} ${rn?"on-preview":""} ${ni?"mini":""} ${Ki?"full-screen":""}`,style:Ei},Mt.createElement($t,{insertTemp:Hn,watch:rn,fullScreen:Ki,showNullButton:un,showNullProgramButton:Rn,onActionCallback:Ge,hidetoolBar:Ai,extraUse:xr}),Mt.createElement("div",{className:"markdown-editor-body"},Mt.createElement("div",{className:"codemirror-container"},Mt.createElement("textarea",{ref:Po,placeholder:dr})),rn?Mt.createElement("div",{ref:eo,className:"preview-container"},Oe==="stex"&&Mt.createElement(ie,{value:kr}),Oe!=="stex"&&Mt.createElement(Ue.Z,{disabledFill:wi,showProgramFill:Rn,value:kr})):null))),ai?Mt.createElement("a",{ref:Kr,className:"editor-resize"}):null,Qi===tr&&Mt.createElement(vn,{callback:Bt,onCancel:Kn}),Qi===ki&&Mt.createElement(Se,{callback:Bt,onCancel:Kn}),Mt.createElement(Jt.Z,null,bn[Qi]&&Qi!==tr&&Qi!==ki?Mt.createElement(nn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ln,top:or},title:Mt.createElement("div",{style:{cursor:"move"},onMouseDown:mi},bn[Qi]),open:!0,onCancel:Kn,footer:null,destroyOnClose:!0,width:Qi===ki?"1200px":null,height:Qi===ki?"80vh":null,className:"markdown-popup-form"},ti):null))}},28451:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return zt},I:function(){return $t}});var Mt=Et(28284),ne=Et(6767),ge=Et(37568),xe=Et(77736),ee=Et(71051),Ht=Et(47889),oe=Et(99571),Re=Et(77903),ve=Et(59301),Tt=Et(59301),Ue=Object.defineProperty,ie=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ct=(Jt,Vt,pe)=>Vt in Jt?Ue(Jt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Jt[Vt]=pe,lt=(Jt,Vt)=>{for(var pe in Vt||(Vt={}))et.call(Vt,pe)&&ct(Jt,pe,Vt[pe]);if(Ot)for(var pe of Ot(Vt))nt.call(Vt,pe)&&ct(Jt,pe,Vt[pe]);return Jt},gt=(Jt,Vt)=>ie(Jt,Je(Vt));const{useForm:mt}=Mt.default,St={width:280,marginRight:10},wt={labelCol:{span:5},wrapperCol:{span:19}};var zt=({callback:Jt,onCancel:Vt})=>{const[pe]=mt();let ce=(0,ve.useRef)();function Ee(wn){ce.current.width=pe.getFieldValue("width"),ce.current.align=pe.getFieldValue("align"),Jt(wn,ce.current)}function Ie(wn,on){if(wn.status===-1){ne.ZP.error(wn.message);return}pe.setFieldsValue({src:`/api/attachments/${wn.id}`,type:on.type})}function ke(wn){let on=wn.target.files[0];ce.current=on,$t(on,Ie)}return Tt.createElement(Mt.default,gt(lt({form:pe},wt),{className:"upload-image-panel",onFinish:Ee,style:{width:470,overflow:"hidden"}}),Tt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Tt.createElement("div",{className:"flex-container"},Tt.createElement(Mt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Tt.createElement(ge.default,{style:St})),Tt.createElement(Wt,{onFileChange:ke}))),Tt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Tt.createElement(ge.default,{style:{width:264}})),Tt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Tt.createElement(xe.Z,null,Tt.createElement(Mt.default.Item,{name:"width",style:{margin:0}},Tt.createElement(ee.Z,{style:{width:264}})),Tt.createElement("span",{className:"ml8"},"%"))),Tt.createElement(Mt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Tt.createElement(Ht.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"}]})),Tt.createElement("aside",null,Tt.createElement(Mt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Tt.createElement(oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Tt.createElement(oe.ZP,{type:"default",onClick:Vt},"\u53D6\u6D88"))))};function Wt({onFileChange:Jt}){return Tt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Tt.createElement("input",{type:"file",onChange:Jt}))}function $t(Jt,Vt){if(!Jt)throw new String("\u6CA1\u6709\u6587\u4EF6");let pe=new FormData;pe.append("editormd-image-file",Jt),pe.append("file_param_name","editormd-image-file"),pe.append("byxhr","true");var ce=new window.XMLHttpRequest;ce.withCredentials=!0,ce.addEventListener("load",function(Ee){Vt(JSON.parse(Ee.target.responseText),Jt)},!1),ce.addEventListener("error",function(Ee){console.error(Ee)},!1),ce.open("POST",`${Re.KI}/api/attachments.json`),ce.send(pe)}},79346:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return ge}});var Mt=Et(59301),ne=Et(4676);class ge extends Mt.Component{constructor(ee){super(ee);const Ht=window.document;this.node=Ht.createElement("div"),Ht.body.appendChild(this.node)}render(){const{children:ee}=this.props;return(0,ne.createPortal)(ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(An,Un,Et){"use strict";Et.d(Un,{SV:function(){return Gt},ZP:function(){return bt}});var Mt=Et(59301),ne=Et(76374);const ge={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"]},xe={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"]},ee={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(`
|
|
`)}]},Ht={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(`
|
|
`)}]},oe={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 Re=Et(53184),ve=Et.n(Re),Tt=Object.defineProperty,Ue=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(fe,Se,Be)=>Se in fe?Tt(fe,Se,{enumerable:!0,configurable:!0,writable:!0,value:Be}):fe[Se]=Be,ct=(fe,Se)=>{for(var Be in Se||(Se={}))Ot.call(Se,Be)&&nt(fe,Be,Se[Be]);if(Je)for(var Be of Je(Se))et.call(Se,Be)&&nt(fe,Be,Se[Be]);return fe},lt=(fe,Se)=>Ue(fe,ie(Se)),gt=(fe,Se,Be)=>new Promise((re,Te)=>{var Ne=tn=>{try{fn(Be.next(tn))}catch(He){Te(He)}},$e=tn=>{try{fn(Be.throw(tn))}catch(He){Te(He)}},fn=tn=>tn.done?re(tn.value):Promise.resolve(tn.value).then(Ne,$e);fn((Be=Be.apply(fe,Se)).next())});const mt={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"]}},St=(fe,Se)=>Se.map(Be=>({label:Be,kind:fe.languages.CompletionItemKind.Keyword,insertText:Be})),wt=fe=>Object.keys(mt.tables).map(Se=>({label:Se,kind:fe.languages.CompletionItemKind.Variable,insertText:Se})),zt=(fe,Se)=>{const Be=mt.tables[fe];return Be?Be.map(re=>({label:re,kind:Se.languages.CompletionItemKind.Field,insertText:re})):[]};function Wt(fe,Se,Be,re,Te){let Ne=Se.getWordUntilPosition(Be),$e={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},fn=re.map(tn=>({label:tn,kind:fe.languages.CompletionItemKind.Keyword,insertText:tn,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e}));return Te.map(tn=>{fn.push(lt(ct({},tn),{range:$e}))}),fn}var $t=fe=>{mt.languages.map(Te=>(fe.languages.registerDocumentFormattingEditProvider(Te,{provideDocumentFormattingEdits(Ne,$e,fn){return gt(this,null,function*(){const tn=ve()(Ne.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:Ne.getFullModelRange(),text:tn}]})}}),Te));const Se=ee.quickKey.map(Te=>({label:Te.label,kind:fe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Be=Ht.quickKey.map(Te=>({label:Te.label,kind:fe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),re=xe.quickKey.map(Te=>({label:Te.label,kind:fe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet}));fe.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Te,Ne){var $e=Te.getWordUntilPosition(Ne),fn={startLineNumber:Ne.lineNumber,endLineNumber:Ne.lineNumber,startColumn:$e.startColumn,endColumn:$e.endColumn},tn=Te.getLineContent(Ne.lineNumber).substring($e.startColumn-2,$e.endColumn);return{suggestions:[...ee.keywords.map(He=>({label:He,kind:fe.languages.CompletionItemKind.Function,documentation:He,insertText:He,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn})),...ee.quickKey.map(He=>({label:He.label,kind:fe.languages.CompletionItemKind.Function,documentation:He.content,insertText:tn.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn}))]}}}),fe.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Te,Ne){var $e=Te.getWordUntilPosition(Ne),fn={startLineNumber:Ne.lineNumber,endLineNumber:Ne.lineNumber,startColumn:$e.startColumn,endColumn:$e.endColumn};return{suggestions:[...ge.keywords.map(tn=>({label:tn,kind:fe.languages.CompletionItemKind.Function,documentation:tn,insertText:tn,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn}))]}}}),fe.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Te,Ne){var $e=Te.getWordUntilPosition(Ne),fn={startLineNumber:Ne.lineNumber,endLineNumber:Ne.lineNumber,startColumn:$e.startColumn,endColumn:$e.endColumn},tn=Te.getLineContent(Ne.lineNumber).substring($e.startColumn-2,$e.endColumn);return{suggestions:[...xe.keywords.map(He=>({label:He,kind:fe.languages.CompletionItemKind.Function,documentation:He,insertText:He,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn})),...xe.quickKey.map(He=>({label:He.label,kind:fe.languages.CompletionItemKind.Function,documentation:He.content,insertText:tn.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn}))]}}}),fe.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Te,Ne){var $e=Te.getWordUntilPosition(Ne),fn={startLineNumber:Ne.lineNumber,endLineNumber:Ne.lineNumber,startColumn:$e.startColumn,endColumn:$e.endColumn},tn=Te.getLineContent(Ne.lineNumber).substring($e.startColumn-2,$e.endColumn);return{suggestions:[...oe.keywords.map(He=>({label:He,kind:fe.languages.CompletionItemKind.Function,documentation:He,insertText:He,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn})),...oe.quickKey.map(He=>({label:He.label,kind:fe.languages.CompletionItemKind.Function,documentation:He.content,insertText:tn.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn}))]}}}),fe.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Te,Ne){var $e=Te.getWordUntilPosition(Ne),fn={startLineNumber:Ne.lineNumber,endLineNumber:Ne.lineNumber,startColumn:$e.startColumn,endColumn:$e.endColumn},tn=Te.getLineContent(Ne.lineNumber).substring($e.startColumn-2,$e.endColumn);return{suggestions:[...Ht.keywords.map(He=>({label:He,kind:fe.languages.CompletionItemKind.Function,documentation:He,insertText:He,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn})),...Ht.quickKey.map(He=>({label:He.label,kind:fe.languages.CompletionItemKind.Function,documentation:He.content,insertText:tn.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fn}))]}}})};const Jt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Vt=Object.defineProperty,pe=(fe,Se,Be)=>Se in fe?Vt(fe,Se,{enumerable:!0,configurable:!0,writable:!0,value:Be}):fe[Se]=Be,ce=(fe,Se,Be)=>pe(fe,typeof Se!="symbol"?Se+"":Se,Be);const Ee=class px{constructor(Se,Be,re){this.placeholder=Se,this.editor=Be,this.monaco=re,Be.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};ce(Ee,"ID","editor.widget.placeholderHint");var ke=Ee,wn=Et(96236),on=Et(6767),qe=Et(25399),We=Et(89392),he=Et(34604),It=Et(56102),Le=Object.defineProperty,an=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Sn=(fe,Se,Be)=>Se in fe?Le(fe,Se,{enumerable:!0,configurable:!0,writable:!0,value:Be}):fe[Se]=Be,Fe=(fe,Se)=>{for(var Be in Se||(Se={}))nn.call(Se,Be)&&Sn(fe,Be,Se[Be]);if(Ce)for(var Be of Ce(Se))Ye.call(Se,Be)&&Sn(fe,Be,Se[Be]);return fe},vn=(fe,Se)=>an(fe,Ze(Se)),ue=(fe,Se)=>{var Be={};for(var re in fe)nn.call(fe,re)&&Se.indexOf(re)<0&&(Be[re]=fe[re]);if(fe!=null&&Ce)for(var re of Ce(fe))Se.indexOf(re)<0&&Ye.call(fe,re)&&(Be[re]=fe[re]);return Be},Ve=(fe,Se,Be)=>new Promise((re,Te)=>{var Ne=tn=>{try{fn(Be.next(tn))}catch(He){Te(He)}},$e=tn=>{try{fn(Be.throw(tn))}catch(He){Te(He)}},fn=tn=>tn.done?re(tn.value):Promise.resolve(tn.value).then(Ne,$e);fn((Be=Be.apply(fe,Se)).next())});function In(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}function Dt(){}let Ct=!1;const yt={"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 kt(fe=[]){let Se=fe;if(Array.isArray(fe)){for(let Be=0;Be<fe.length;Be++){let re=yt[fe[Be]];if(re)return re}return Se[0]}return yt[Se]||Se}let jt=null;var bt=fe=>{var Se=fe,{width:Be="100%",height:re="100%",value:Te,language:Ne="javascript",style:$e={},options:fn={},overrideServices:tn={},theme:He="vs-dark",onEditBlur:On,isCopy:Xn=!1,onSave:Pn,autoHeight:Gn=!1,forbidCopy:Ni=!1,onChange:xi=Dt,editorDidMount:ki=Dt,onFocus:tr=Dt,onBreakPoint:Qe=Dt,breakPointValue:sn=[],filename:Qn="educoder.txt",errorLine:Li,errorContent:Ri="",highlightLine:Pi,openBreakPoint:ur=!1,placeholder:ir="",showMiniMap:pr=!0}=Se,ci=ue(Se,["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 qi=(0,Mt.useRef)(),Pt=(0,Mt.useRef)({}),Ii=(0,Mt.useRef)(),Jn=(0,Mt.useRef)(),er=(0,Mt.useRef)([]),Ji=(0,Mt.useRef)(!1),Zi=(0,Mt.useRef)(),fi=(0,Mt.useRef)(),bn=(0,Mt.useRef)(!1),[En,Ae]=(0,Mt.useState)(!1);function Me(){let yn;return qi.current&&(yn=new ne.Z(li=>{for(let bi of li)(bi.target.offsetHeight>0||bi.target.offsetWidth>0)&&Pt.current.instance.layout()}),yn.observe(qi.current)),yn}function be(){on.ZP.warning({content:decodeURIComponent(Jt),key:"monaco-editor-tip"})}const qn=()=>{let yn=Pt.current.instance;if(Te!=null&&yn&&En){const li=yn.getModel();li&&Te!==li.getValue()&&(Ct=!0,li.setValue(Te),yn.layout(),Ct=!1)}};(0,Mt.useEffect)(()=>{const yn=he.Z.subscribe("formatDocument",li=>{var bi;let Ui=Pt.current.instance;(bi=Ui==null?void 0:Ui.getAction)==null||bi.call(Ui,"editor.action.formatDocument").run()});return window.updateMonacoValue=li=>{xi(li)},yn},[]),(0,Mt.useEffect)(()=>{var yn;let li=Pt.current.instance;Jn.current&&clearTimeout(Jn.current),Jn.current=setTimeout(()=>{qn()},500),Te&&(Te!=null&&Te.length)&&((yn=li==null?void 0:li.updateOptions)==null||yn.call(li,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Te.split(/\r\n|\r|\n/g).length))+3,5)}))},[Te,En,Pt.current]),(0,Mt.useEffect)(()=>{if(Li&&Pt.current&&Pt.current.instance){let li=Pt.current.instance;li.changeViewZones(function(bi){var Ui=document.createElement("div");Ui.style.padding="10px 20px",Ui.style.width="calc(100% - 20px)",Ui.className="my-error-line-wrp",Ui.innerHTML=Ri,bi.addZone({afterLineNumber:Li||11,heightInLines:3,domNode:Ui})});var yn={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}};li.addOverlayWidget(yn),li.revealPositionInCenter({lineNumber:20,column:1})}},[Li,Pt.current,En]);const ni=(yn="",li)=>{if(!yn||yn.trim()==="")return!0;const Ui=Pt.current.instance.getModel().getLineTokens(li);let Di=!1;for(let $n=0;$n<2;$n++)Ui.getStandardTokenType($n)===1&&(Di=!0);return Di};(0,Mt.useEffect)(()=>{var yn;const li=(yn=Pt.current)==null?void 0:yn.instance;if(li&&En&&Ni){const bi=li.onDidBlurEditorWidget(()=>{bn.current=!1}),Ui=li.onDidFocusEditorText(()=>{bn.current=!0});return()=>{bi.dispose(),Ui.dispose()}}},[Pt.current,En,Ni]),(0,Mt.useEffect)(()=>{var yn;if((yn=Pt.current)!=null&&yn.instance&&En&&ur){let li=Pt.current.instance,bi=li.getModel();if(!bi)return;(()=>{var rn;let gi=[],Ki=[];const nr=bi.getAllDecorations();for(let rr of nr)rr.options.className==="highlighted-line"&&(gi.push((rn=rr==null?void 0:rr.range)==null?void 0:rn.startLineNumber),Ki.push(rr==null?void 0:rr.id));if(Pi===gi[0])return;bi.deltaDecorations(Ki,[]);const Qi=bi.getLineCount();Pi&&Pi<=Qi&&(li.deltaDecorations([],[{range:new jt.Range(Pi,1,Pi,bi.getLineMaxColumn(Pi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),li.revealLineInCenter(Pi))})();const Di=(rn=!1)=>{var gi;let Ki=[],nr=[];const Qi=bi.getAllDecorations();for(let rr of Qi)rr.options.linesDecorationsClassName==="breakpoints-select"&&(Ki.push((gi=rr==null?void 0:rr.range)==null?void 0:gi.startLineNumber),nr.push(rr==null?void 0:rr.id));if(rn)return{lines:Ki,ids:nr};Qe(Ki)},$n=rn=>Ve(void 0,null,function*(){let gi={range:new jt.Range(rn,1,rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield bi.deltaDecorations([],[gi]),Di()}),wi=rn=>Ve(void 0,null,function*(){let gi=[];const Ki=li.getLineDecorations(rn);for(let nr of Ki)nr.options.linesDecorationsClassName==="breakpoints-select"&&gi.push(nr.id);yield bi.deltaDecorations(gi,[]),Di()}),dr=rn=>{let gi=li.getLineDecorations(rn);for(let Ki of gi)if(Ki.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,We.isEqual)(sn,Di(!0).lines)){bi.deltaDecorations(Di(!0).ids,[]);const rn=sn.map(gi=>({range:new jt.Range(gi,1,gi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));bi.deltaDecorations([],rn)}const fr=li.onDidChangeModelContent(rn=>{let gi=li.getPosition();if(gi){let Ki=gi.lineNumber;clearTimeout(fi.current),fi.current=setTimeout(()=>{ni(bi.getLineContent(Ki),Ki)?wi(Ki):dr(Ki)?(wi(Ki),$n(Ki)):Di()},100)}}),xr=li.onMouseDown(rn=>{var gi,Ki,nr;if(rn.target.detail&&((nr=(Ki=(gi=rn.target)==null?void 0:gi.element)==null?void 0:Ki.className)!=null&&nr.includes("line-numbers"))){let Qi=rn.target.position.lineNumber;if(ni(bi.getLineContent(Qi),Qi))return;dr(Qi)?wi(Qi):$n(Qi)}}),cn=rn=>{let gi={range:new jt.Range(rn,1,rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};er.current=li.deltaDecorations(er.current,[gi])},_r=()=>{er.current=li.deltaDecorations(er.current,[])},kr=li.onMouseMove(rn=>{var gi,Ki,nr;if(_r(),rn.target.detail&&((nr=(Ki=(gi=rn.target)==null?void 0:gi.element)==null?void 0:Ki.className)!=null&&nr.includes("line-numbers"))){let Qi=rn.target.position.lineNumber;if(ni(bi.getLineContent(Qi),Qi))return;cn(Qi)}}),to=li.onMouseLeave(()=>{_r()});return()=>{fr.dispose(),xr.dispose(),kr.dispose(),to.dispose()}}},[Pt.current,En,sn,Pi,ur,Ne]),(0,Mt.useEffect)(()=>{var yn;(yn=Pt.current)!=null&&yn.instance&&ur&&Pt.current.instance.setPosition({lineNumber:0,column:0})},[Pi]);function Fi(){let yn=Pt.current.instance;if(yn){const li=yn.getSelection(),bi=Pt.current.pastePos||{},Ui=new jt.Range(bi.startLineNumber||li.endLineNumber,bi.startColumn||li.endColumn,bi.endLineNumber||li.endLineNumber,bi.endColumn||li.endColumn);setTimeout(()=>{yn.executeEdits("",[{range:Ui,text:""}])},300)}}function gn(yn){(window.navigator.platform.match("Mac")?yn.metaKey:yn.ctrlKey)&&yn.keyCode==83&&(yn.preventDefault(),Pn())}const Hn=()=>{if(Gn&&Pt.current.instance){const yn=Pt.current.instance.getContentHeight();Ai(yn<re?re:yn)}else Ai(re)};function Oe(yn){var li=document.createEvent("MouseEvents");li.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),yn.dispatchEvent(li)}const De=yn=>{if(!bn.current)return;const{keyCode:li,ctrlKey:bi,metaKey:Ui,target:Di,type:$n}=yn;return($n==="paste"||(li===67||li===86)&&(Ui||bi))&&Di.nodeName==="TEXTAREA"&&(be(),yn.preventDefault()),!1};function ai(yn,li){var bi=window.URL||window.webkitURL||window,Ui=new Blob([li]),Di=document.createElementNS("http://www.w3.org/1999/xhtml","a");Di.href=bi.createObjectURL(Ui),Di.download=yn,Oe(Di)}(0,Mt.useEffect)(()=>{Hn()},[Hn]),(0,Mt.useEffect)(()=>{qi.current&&!En&&Promise.all([Et.e(8909),Et.e(3267)]).then(Et.bind(Et,71448)).then(yn=>{try{jt=yn,Pt.current.instance=jt.editor.create(qi.current,{value:Te,language:kt(Ne),theme:He,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:pr||!1}},tn);const li=Pt.current.instance;let Di=[...wn.BH._menuItems].find(fr=>fr[0]._debugName=="EditorContext")[1],$n=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],wi=(fr,xr)=>{var cn,_r;let kr=fr._first;do xr.includes((_r=(cn=kr.element)==null?void 0:cn.command)==null?void 0:_r.id)&&fr._remove(kr);while(kr=kr.next)};if(ki(li,jt),setTimeout(()=>{Hn(),Pt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ai(Qn||"educoder.txt",li.getValue())}})},500),Pt.current.subscription=li.onDidChangeModelContent(fr=>{Ji.current?clearTimeout(Zi.current):(Hn(),xi(li.getValue(),fr)),Zi.current=setTimeout(()=>{Ji.current=!1},500)}),window.Monaco||$t(jt,kt(Ne)),Ni&&(wi(Di,$n),qi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",De),window.removeEventListener("paste",De),window.addEventListener("keydown",De),window.addEventListener("paste",De)),window.Monaco=jt,On&&li.onDidBlurEditorWidget(()=>{On(li.getValue())}),tr&&li.onDidFocusEditorText(()=>{tr(li.getValue())}),Ni)try{li.onDidPaste(fr=>{const xr=li.getSelection(),cn=Pt.current.pastePos||{},_r=new jt.Range(cn.startLineNumber||xr.endLineNumber,cn.startColumn||xr.endColumn,cn.endLineNumber||xr.endLineNumber,cn.endColumn||xr.endColumn);li.executeEdits("",[{range:fr.range,text:""}])})}catch(fr){}let dr=Me();return ir&&typeof ir=="string"&&new ke(ir,li,jt),Ae(!0),()=>{const fr=Pt.current.instance;fr.dispose();const xr=fr.getModel();xr&&xr.dispose(),Pt.current.subscription&&Pt.current.subscription.dispose(),dr.unobserve(qi.current)}}catch(li){}})},[]),(0,Mt.useEffect)(()=>{if(Pt.current.instance&&En)return document.addEventListener("keydown",gn,!1),()=>{document.removeEventListener("keydown",gn)}},[Pn,En]),(0,Mt.useEffect)(()=>{let yn=Pt.current.instance;if(yn&&En){let li=kt(Ne);jt.editor.setModelLanguage(yn.getModel(),li)}},[Ne,En]),(0,Mt.useEffect)(()=>{Pt.current.instance&&En&&jt.editor.setTheme(He)},[He,En]),(0,Mt.useEffect)(()=>{let yn=Pt.current.instance;Ii.current=fn,yn&&En&&(yn.updateOptions(Fe({},fn)),setTimeout(()=>{yn.getModel().updateOptions(Fe({},fn))},200))},[JSON.stringify(fn),En]),(0,Mt.useEffect)(()=>{let yn=Pt.current.instance;yn&&En&&yn.layout()},[Be,re,En]);const[qt,un]=(0,Mt.useState)(In(Be)),[Rn,Ai]=(0,Mt.useState)(In(re)),ln=vn(Fe({},$e),{width:qt,height:Rn,position:"relative"});return Mt.createElement("div",{className:"my-monaco-editor",ref:qi,style:ln},Xn&&Mt.createElement(It.CopyToClipboard,{text:Te,onCopy:()=>on.ZP.success("\u590D\u5236\u6210\u529F")},Mt.createElement(qe.Z,{title:"\u590D\u5236\u4EE3\u7801"},Mt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Mt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Gt({width:fe="100%",height:Se="100%",original:Be,modified:re,language:Te,options:Ne={}}){const $e=(0,Mt.useRef)(),[fn,tn]=(0,Mt.useState)(null);function He(Gn){let Ni;return $e.current&&(Ni=new ne.Z(xi=>{for(let ki of xi)(ki.target.offsetHeight>0||ki.target.offsetWidth>0)&&Gn.layout()}),Ni.observe($e.current)),Ni}(0,Mt.useEffect)(()=>($e.current&&Promise.all([Et.e(8909),Et.e(9404)]).then(Et.bind(Et,2550)).then(Gn=>{jt=Gn;const Ni=jt.editor.createDiffEditor($e.current,vn(Fe({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},Ne),{wordWrap:!0}));tn(Ni);let xi=He(Ni);return()=>{Ni.dispose();const ki=Ni.getModel();ki&&ki.dispose(),xi.unobserve($e.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Mt.useEffect)(()=>{fn&&fn.setModel({original:jt.editor.createModel(Be,Te),modified:jt.editor.createModel(re,Te)})},[Be,re,Te,fn]);const On=In(fe),Xn=In(Se),Pn={width:On,height:Xn};return Mt.createElement("div",{className:"my-diff-editor",ref:$e,style:Pn})}},85057:function(An,Un,Et){"use strict";Et.d(Un,{jL:function(){return ee},w9:function(){return nn},QD:function(){return xi},cQ:function(){return It},op:function(){return He},O5:function(){return fi},_b:function(){return Li},t7:function(){return lt},Gi:function(){return Ve},YG:function(){return vn},qp:function(){return Ue},vr:function(){return Qe},qE:function(){return Pn},Je:function(){return St},wb:function(){return wn},cq:function(){return jt},tp:function(){return Ot}});var Mt=Et(59301),ne={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"},ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84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=346,title:Me,sunTitle:be,bannerExtraContent:qn})=>Mt.createElement("div",{className:ne.banner},Mt.createElement("div",{className:ne.content},Mt.createElement("aside",null,Mt.createElement("p",null,Mt.createElement("b",null,Me),Mt.createElement("span",null,be)),bn.length>0&&Mt.createElement("div",{className:ne.btns},bn.map((ni,Fi)=>Mt.createElement("div",{key:Fi,onClick:ni.click},ni.name,ni.sign?Mt.createElement("img",{src:ge,width:39}):null))),qn),En&&Mt.createElement("img",{style:{marginTop:33,marginRight:38},src:En,width:Ae}))),Ht={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"},oe=Et(92310),Re=Et.n(oe),ve=Et(89392),Ue=({dataSource:bn=[],value:En,onChange:Ae,onTitleChange:Me,className:be,title:qn,titleWidth:ni=41,style:Fi={},fontColor:gn="#6A7283",showCount:Hn})=>{const[Oe,De]=(0,Mt.useState)(0),[ai,qt]=(0,Mt.useState)(!1),un=(0,Mt.useRef)(null),Rn=(0,Mt.useRef)(null);return(0,Mt.useEffect)(()=>{var Ai;bn.length!==0&&(((Ai=un==null?void 0:un.current)==null?void 0:Ai.clientHeight)>97?De(1):De(0)),bn.length===0&&De(0),qt(!1)},[bn]),Mt.createElement("div",{className:Re()(Ht.row,be),style:Fi},Mt.createElement("div",{onClick:(0,ve.throttle)(()=>Me==null?void 0:Me(),2e3),style:{width:ni,marginTop:ai?12:4},className:`${Ht.title} ${Me?"current":""}`},qn),Mt.createElement("div",{className:ai?`${Ht.tagsWrap} ${Ht.tagsBorderWrap}`:Ht.tagsWrap},Mt.createElement("div",{className:Ht.bar,ref:Rn,style:Oe>0?{height:Oe===1?97:"auto",overflow:Oe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Mt.createElement("div",{className:Ht.tag,ref:un},bn==null?void 0:bn.map(Ai=>Mt.createElement("span",{onClick:()=>Ae(Ai.id),key:Ai.id,style:{color:gn},className:En===Ai.id?Ht.active:""},Mt.createElement("span",{title:Ai.name,className:Ht.name},Ai.name),!!Hn&&Mt.createElement("span",{className:Ht.num},Ai.count))))),!!Oe&&Mt.createElement(Mt.Fragment,null,Oe===1?Mt.createElement("div",{onClick:()=>{var Ai;De(2),((Ai=un==null?void 0:un.current)==null?void 0:Ai.clientHeight)>245?qt(!0):qt(!1)},className:Ht.action},"\u5C55\u5F00",Mt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Mt.createElement("div",{onClick:()=>{Rn.current.scrollTop=0,De(1),qt(!1)},className:Ht.action},"\u6536\u8D77",Mt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ie={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"},Ot=({dataSource:bn=[],value:En,onChange:Ae,className:Me,style:be={}})=>Mt.createElement("div",{style:be,className:Re()(ie.tabs,Me)},bn.map(qn=>Mt.createElement("span",{onClick:()=>Ae(qn.id),className:En===qn.id?ie.active:"",key:qn.id},qn.name))),et={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"},nt=Et(37568),lt=({dataSource:bn=[],value:En="",onChange:Ae,onInputChange:Me=()=>{},className:be,style:qn={},placeholder:ni,allowClear:Fi=!1})=>{var gn;const[Hn,Oe]=(0,Mt.useState)(""),[De,ai]=(0,Mt.useState)("");(0,Mt.useEffect)(()=>{var Rn;let Ai=En;(Rn=JSON.stringify(En))!=null&&Rn.includes("{")&&(Oe(En.id),Ai=En.value||"");try{ai(decodeURIComponent(Ai||""))}catch(ln){ai(decodeURIComponent(Ai||""))}},[En]);const qt=()=>{Ae(encodeURIComponent(De),Hn||null)},un=Rn=>{Rn!==Hn&&(Oe(Rn),Ae(encodeURIComponent(De),Rn))};return Mt.createElement("div",{className:Re()(et.input,be),style:qn},!!bn.length&&Mt.createElement("div",{className:et.dropdown},Mt.createElement("div",{className:et.text},(gn=bn.find(Rn=>Rn.id===Hn))==null?void 0:gn.name,Mt.createElement("i",{className:"iconfont icon-zhankai4"}),Mt.createElement("b",{className:et.b1}),Mt.createElement("b",{className:et.b2})),Mt.createElement("div",{className:et.menu},bn.map((Rn,Ai)=>Mt.createElement("div",{key:Ai,onClick:()=>un(Rn.id)},Rn.name)))),Mt.createElement(nt.default,{onPressEnter:qt,value:De,onChange:Rn=>{ai(Rn.target.value),Me(encodeURIComponent(Rn.target.value),Hn||null)},bordered:!1,placeholder:ni}),Mt.createElement("i",{onClick:qt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},gt={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"},St=({value:bn,onChange:En,className:Ae,total:Me,pageSize:be,style:qn={}})=>{const ni=bn<2,Fi=bn>=Math.ceil(Me/be);return Me<=be?Mt.createElement(Mt.Fragment,null):Mt.createElement("div",{className:Re()(gt.quickPager,Ae),style:qn},Mt.createElement("div",{onClick:()=>{ni||En(bn-1,"prev")},className:ni?gt.disabled:""},"\u4E0A\u4E00\u9875"),Mt.createElement("div",{onClick:()=>{Fi||En(bn+1,"next")},className:Fi?gt.disabled:""},"\u4E0B\u4E00\u9875"))},wt={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"},zt=Et(29787),Wt=Et(25399),$t=Et(58018),Jt=Et(3294),Vt=Et(955),pe=Et(96908),ce=Et(57177),Ee=Et(81378),Ie=Et(8797),wn=({className:bn,dataSource:En=[],col:Ae=4,right:Me,bottom:be=23,precision:qn=0,wrapWidth:ni=1200,trackEventItems:Fi,loading:gn})=>{const Hn=Math.floor((ni-(Ae-1)*Me)/Ae);return Mt.createElement(zt.Z,{spinning:gn},Mt.createElement("div",{className:Re()(wt.list,bn)},!!En.length&&En.map((Oe,De)=>{const{name:ai,id:qt,identifier:un,power:Rn,cover_image_id:Ai,pic:ln}=Oe;return Mt.createElement("div",{className:wt.wrap,key:qt,style:{width:Hn,marginRight:(1+De)%Ae===0?0:Me+qn,marginBottom:be}},Mt.createElement("a",{target:"_blank",href:`/shixuns/${un}/challenges`,className:wt.li,onClick:yn=>{yn.preventDefault(),Fi&&(0,Vt.L9)([Fi]),Rn&&(0,Vt.xg)(`/shixuns/${un}/challenges`)}},Mt.createElement("div",{className:wt.img},Mt.createElement("img",{className:wt.cover,src:`${ln}`}),Oe.is_jupyter&&Mt.createElement("img",{className:wt.sign,src:pe}),Oe.is_jupyter_lab&&Mt.createElement("img",{className:wt.sign,src:ce}),Oe.is_unity_3d&&Mt.createElement("img",{className:wt.sign,src:Ee})),Mt.createElement("div",{className:wt.name},Mt.createElement(Wt.Z,{title:ai||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Mt.createElement("span",{className:wt.e},ai||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Mt.createElement("div",{className:wt.tags},Mt.createElement(Wt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Mt.createElement("span",null,Mt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Mt.createElement("span",null,Oe.challenges_count))),!!Oe.myshixuns_count&&Mt.createElement(Wt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Mt.createElement("span",null,Mt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Mt.createElement("span",null,Oe.myshixuns_count))),Mt.createElement(Wt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Mt.createElement("span",null,Mt.createElement("span",null,Oe.level))),Mt.createElement("div",{className:wt.rate},Mt.createElement($t.Z,{allowHalf:!0,disabled:!0,defaultValue:Oe.score_info}),Mt.createElement("span",null,"\xA0",Oe.score_info?`${Oe.score_info}\u5206`:"5\u5206")))),!Rn&&Mt.createElement("div",{className:wt.lockWrap},Mt.createElement("img",{src:`${Jt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Mt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!En.length&&Mt.createElement(Ie.Z,null)))},on={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"},qe=Et(24065),We=Et(59301),It=({className:bn,dataSource:En=[],col:Ae=4,right:Me,bottom:be=23,precision:qn=0,wrapWidth:ni=1200,trackEventItems:Fi,loading:gn,onRemove:Hn=()=>{},isCurrent:Oe=!0,showAlias:De=!1})=>{const ai=Math.floor((ni-(Ae-1)*Me)/Ae),qt=[{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 We.createElement(zt.Z,{spinning:gn},We.createElement("div",{className:Re()(on.list,bn)},!!(En!=null&&En.length)&&(En==null?void 0:En.map((un,Rn)=>{var Ai;const{name:ln,id:yn,identifier:li,featured:bi,school_name:Ui,image_url:Di,excellent:$n,is_plan:wi}=un;return We.createElement("div",{key:yn,className:on.wrap,style:{width:ai,marginRight:(1+Rn)%Ae===0?0:Me+qn,marginBottom:be}},We.createElement("a",{className:on.li,onClick:dr=>{dr.preventDefault(),dr.stopPropagation(),Fi&&(0,Vt.L9)([Fi]),(0,Vt.xg)(`/paths/${li}`)}},We.createElement("div",{className:on.img},We.createElement("img",{className:on.cover,src:`${Di}`}),Oe&&(0,qe.bg)()&&(un==null?void 0:un.studying)&&We.createElement("div",{className:`${on.movebq} user-path-items`,onClick:dr=>{dr.stopPropagation(),Hn(un)}},We.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),We.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ai=un==null?void 0:un.subject_tags)==null?void 0:Ai.map((dr,fr)=>{var xr,cn;if(fr===0){const kr=(xr=qt.find(to=>to.name==dr))==null?void 0:xr.swimg;return We.createElement("img",{className:on.sign,src:kr,style:{left:"-4px"}})}const _r=(cn=qt.find(kr=>kr.name==dr))==null?void 0:cn.ptimg;return We.createElement("img",{className:on.sign,src:_r,style:{left:`${48+52*(fr-1)+2*fr}px`}})}),We.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(un==null?void 0:un.excellent)&&We.createElement("div",{className:on.bq},"\u5F00\u653E\u8BFE\u7A0B"))),We.createElement("div",{className:on.name},We.createElement(Wt.Z,{title:De&&(un!=null&&un.excellent_alias_name)?We.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ln}`,We.createElement("br",null),We.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${un==null?void 0:un.excellent_alias_name}`)):ln},We.createElement("span",{className:on.e},De&&(un==null?void 0:un.excellent_alias_name)||ln))),We.createElement(Wt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ui}`},We.createElement("div",{className:on.unit},We.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ui)),We.createElement("div",{className:on.tags},We.createElement("div",null,We.createElement(Wt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),We.createElement("span",null,un.stages_count))),We.createElement(Wt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),We.createElement("span",null,un.members_count)))))))})),!En.length&&We.createElement(Ie.Z,null)))},Le={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"},an="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+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVU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EzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ze=Et(59301),nn=({className:bn,dataSource:En=[],col:Ae=4,right:Me,bottom:be=23,precision:qn=0,wrapWidth:ni=1200,trackEventItems:Fi,loading:gn,handleVery:Hn=()=>!0})=>{const Oe=Math.floor((ni-(Ae-1)*Me)/Ae);return Ze.createElement(zt.Z,{spinning:gn},Ze.createElement("div",{className:Re()(Le.list,bn)},!!En.length&&En.map((De,ai)=>{const{subject_identifier:qt,id:un,identifier:Rn,power:Ai}=De,ln=De.is_public!=0&&De.is_public;return Ze.createElement("div",{className:Le.wrap,key:un,style:{width:Oe,marginRight:(1+ai)%Ae===0?0:Me+qn,marginBottom:be}},Ze.createElement("a",{className:Le.li,onClick:yn=>{yn.preventDefault(),Hn(De==null?void 0:De.first_category_url)&&(Fi&&(0,Vt.L9)([Fi]),(0,Vt.xg)(De.first_category_url))}},Ze.createElement("div",{className:Le.top},Ze.createElement(Wt.Z,{title:De.name},Ze.createElement("div",{className:Le.name},De.name)),Ze.createElement("img",{className:Le.img,src:Jt.Z.IMG_SERVER+"/images/"+De.avatar_url}),Ze.createElement("div",{className:Le.text,title:De.creator},De.creator),qt&&Ze.createElement("div",{className:Le.btns},Ze.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ze.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ln&&Ze.createElement("div",{className:Le.sign},"\u516C\u5F00")),Ze.createElement("div",{className:Le.bottom},De.visits>0&&Ze.createElement(Wt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ze.createElement("span",null,Ze.createElement("i",{className:"iconfont icon-liulanyan"}),Ze.createElement("span",null,De.visits))),De.course_members_count>0&&Ze.createElement(Wt.Z,{title:"\u6210\u5458",placement:"bottom"},Ze.createElement("span",null,Ze.createElement("i",{className:"iconfont icon-chengyuan"}),De.course_members_count)),De.tasks_count>0&&Ze.createElement(Wt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ze.createElement("span",null,Ze.createElement("i",{className:"iconfont icon-zuoye"}),De.tasks_count)),De.is_end?Ze.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ze.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!De.is_accessible&&Ze.createElement("div",{className:Le.lockWrap},Ze.createElement("img",{src:`${Jt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ze.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!En.length&&Ze.createElement(Ie.Z,null)))},Ye={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"},Sn=Et(89070),vn=({dataSource:bn=[],value:En,onChange:Ae,className:Me,style:be={},tabBarExtraContent:qn})=>Mt.createElement("div",{className:Re()(Ye.tabs,Me),style:be},Mt.createElement("div",{className:Ye.tabsWrap},bn.map((ni,Fi)=>!(ni!=null&&ni.hide)&&Mt.createElement("aside",{className:Ye.tab,onClick:()=>{Ae(ni.id),ni.link&&Sn.history.push(ni.link)},key:Fi},Mt.createElement("div",{className:En===ni.id?Ye.active:""},ni.name),(ni==null?void 0:ni.resetCount)==null&&(ni==null?void 0:ni.total)!==void 0&&Mt.createElement("span",null,"\uFF08",ni==null?void 0:ni.total,"\uFF09"),(ni==null?void 0:ni.resetCount)!==void 0&&(ni==null?void 0:ni.total)!==void 0&&Mt.createElement(Wt.Z,{title:(ni==null?void 0:ni.tip)!=null?ni==null?void 0:ni.tip:""},Mt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Mt.createElement("span",{style:{color:"#000"}},ni==null?void 0:ni.resetCount),"/",Mt.createElement("span",null,ni==null?void 0:ni.total),"\uFF09"))))),Mt.createElement("div",{className:Ye.tabBar},qn)),Ve=({className:bn,style:En={},children:Ae})=>Mt.createElement("div",{className:Re()(bn),style:En},Ae),In={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"},Dt=Et(75727),Ct=Et(93041);const yt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var jt=({sortValue:bn,dropValue:En,className:Ae,onSort:Me,onDrop:be,dataSource:qn=yt})=>{var ni;return Mt.createElement("div",{className:Re()(In.orderWrap,Ae)},Mt.createElement(Dt.Z,{dropdownRender:()=>Mt.createElement(Ct.default,null,qn.map((Fi,gn)=>Mt.createElement(Ct.default.Item,{key:gn,onClick:()=>be(Fi.id)},Fi.name)))},Mt.createElement("span",{className:In.orderTextWrap},(ni=qn.find(Fi=>En===Fi.id))==null?void 0:ni.name)),Mt.createElement("span",{className:In.orderIconWrap},Mt.createElement("span",{className:In.orderAsc},Mt.createElement("i",{className:bn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${In.cursorPointer} ${In.active}`:`iconfont icon-sanjiaoxing-up font12 ${In.cursorPointer}`,onClick:()=>Me(bn==="asc"?"desc":"asc")})),Mt.createElement("span",{className:In.orderDesc},Mt.createElement("i",{className:bn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${In.cursorPointer} ${In.active}`:`iconfont icon-sanjiaoxing-down font12 ${In.cursorPointer}`,onClick:()=>Me(bn==="asc"?"desc":"asc")}))))},bt={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"},Gt=Et(99571),fe=Object.defineProperty,Se=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,Te=(bn,En,Ae)=>En in bn?fe(bn,En,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):bn[En]=Ae,Ne=(bn,En)=>{for(var Ae in En||(En={}))Be.call(En,Ae)&&Te(bn,Ae,En[Ae]);if(Se)for(var Ae of Se(En))re.call(En,Ae)&&Te(bn,Ae,En[Ae]);return bn},$e=(bn,En)=>{var Ae={};for(var Me in bn)Be.call(bn,Me)&&En.indexOf(Me)<0&&(Ae[Me]=bn[Me]);if(bn!=null&&Se)for(var Me of Se(bn))En.indexOf(Me)<0&&re.call(bn,Me)&&(Ae[Me]=bn[Me]);return Ae},fn=(bn,En,Ae)=>new Promise((Me,be)=>{var qn=gn=>{try{Fi(Ae.next(gn))}catch(Hn){be(Hn)}},ni=gn=>{try{Fi(Ae.throw(gn))}catch(Hn){be(Hn)}},Fi=gn=>gn.done?Me(gn.value):Promise.resolve(gn.value).then(qn,ni);Fi((Ae=Ae.apply(bn,En)).next())}),He=bn=>{var En=bn,{className:Ae,style:Me,children:be,loading:qn=!1,openLoading:ni,onClick:Fi=()=>{},size:gn="middle",shape:Hn="round"}=En,Oe=$e(En,["className","style","children","loading","openLoading","onClick","size","shape"]);const[De,ai]=(0,Mt.useState)(!1);return Mt.createElement(Gt.ZP,Ne({onClick:(0,ve.throttle)(qt=>fn(void 0,null,function*(){ni&&ai(!0);try{yield Fi(qt)}catch(un){console.log("error",un)}ni&&ai(!1)}),2e3,{leading:!0,trailing:!1}),className:Re()(bt.btn,bt[`${gn}-${Hn}`],Ae),style:Me,size:gn,shape:Hn,loading:De||qn},Oe),be)},On={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"},Pn=({className:bn,style:En,children:Ae=null,onClick:Me,title:be})=>Mt.createElement("div",{className:Re()(On.head,bn),style:En},Mt.createElement("span",{className:"primary-hover",onClick:Me},Mt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Mt.createElement("b",{title:be},be),Mt.createElement("div",{className:On.node},Ae)),Gn={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"},xi=({confirmShow:bn=!0,confirmTitle:En,confirmClick:Ae,cancelShow:Me=!0,cancelTitle:be,cancelClick:qn,className:ni,style:Fi,confirmLoading:gn=!1})=>Mt.createElement("div",{className:Re()(Gn.btns,ni),style:Fi},bn&&Mt.createElement(Gt.ZP,{loading:gn,onClick:Ae,type:"primary",className:Gn.confirm},En),Me&&Mt.createElement(Gt.ZP,{onClick:qn,className:Gn.cancel},be)),ki={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Qe=({className:bn,style:En={},LeftContent:Ae,children:Me,RightContent:be})=>Mt.createElement("div",{className:Re()(ki.fixedBottom,bn),style:En},Mt.createElement("div",{className:ki.wrap},Mt.createElement("div",{className:ki.left},Ae),Mt.createElement("div",{className:ki.center},Me),Mt.createElement("div",{className:ki.right},be))),sn={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"},Li=({className:bn,style:En={},dataSource:Ae=[]})=>Mt.createElement("div",{className:Re()(sn.crumbs,bn),style:En},Ae.map((Me,be)=>be<Ae.length-1?Mt.createElement(Mt.Fragment,{key:be},Me.path||Me.onClick?Mt.createElement("span",{className:sn.hover,onClick:Me!=null&&Me.onClick?Me.onClick:()=>Sn.history.push(Me.path)},Me.name):Mt.createElement("span",null,Me.name),Mt.createElement("span",null,"\xA0",">","\xA0")):Mt.createElement("span",{key:be,style:{color:"#5F6368"}},Me.name))),Ri=Et(11938),Pi=Object.defineProperty,ur=Object.defineProperties,ir=Object.getOwnPropertyDescriptors,pr=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Pt=(bn,En,Ae)=>En in bn?Pi(bn,En,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):bn[En]=Ae,Ii=(bn,En)=>{for(var Ae in En||(En={}))ci.call(En,Ae)&&Pt(bn,Ae,En[Ae]);if(pr)for(var Ae of pr(En))qi.call(En,Ae)&&Pt(bn,Ae,En[Ae]);return bn},Jn=(bn,En)=>ur(bn,ir(En)),er=(bn,En)=>{var Ae={};for(var Me in bn)ci.call(bn,Me)&&En.indexOf(Me)<0&&(Ae[Me]=bn[Me]);if(bn!=null&&pr)for(var Me of pr(bn))En.indexOf(Me)<0&&qi.call(bn,Me)&&(Ae[Me]=bn[Me]);return Ae};const{Countdown:Ji}=Ri.default;var fi=bn=>{var En=bn,{onChange:Ae}=En,Me=er(En,["onChange"]);const[be,qn]=(0,Mt.useState)(null);(0,Mt.useEffect)(()=>{typeof be=="number"&&be>=0&&Ae(be)},[be]);const ni=Fi=>{const gn=Math.floor(Fi/1e3);qn(gn)};return Mt.createElement(Ji,Jn(Ii({},Me),{onChange:ni}))}},58856:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return ne}});var Mt=Et(59301);function ne(ge,xe){const ee=(0,Mt.useRef)();(0,Mt.useEffect)(()=>{ee.current=ge}),(0,Mt.useEffect)(()=>{function Ht(){ee.current()}if(xe!==null){let oe=setInterval(Ht,xe);return()=>clearInterval(oe)}},[xe])}},81833:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return We}});var Mt=Et(59301),ne=Et(89070),ge=Et(8848),xe=Et(37568),ee=Et(28284),Ht=Et(6767),oe=Et(62957),Re=Et(62673),ve=Et(25399),Tt=Et(71051),Ue=Et(47889),ie=Et(77736),Je=Et(77019),Ot=Et(82326),et=Et(71411),nt=Et(9165),ct=Et(85057),lt={wrap:"wrap___BgpUe",row:"row___UWxAG",textarea:"textarea___gaLin",btn:"btn___ZpuhS",sub:"sub___Jd_ZS"},gt=Et(23954),mt=Et(99064),St=Et(24065),wt=Et(59301),zt=Object.defineProperty,Wt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,ce=(he,It,Le)=>It in he?zt(he,It,{enumerable:!0,configurable:!0,writable:!0,value:Le}):he[It]=Le,Ee=(he,It)=>{for(var Le in It||(It={}))Vt.call(It,Le)&&ce(he,Le,It[Le]);if(Jt)for(var Le of Jt(It))pe.call(It,Le)&&ce(he,Le,It[Le]);return he},Ie=(he,It)=>Wt(he,$t(It)),ke=(he,It,Le)=>new Promise((an,Ze)=>{var Ce=Sn=>{try{Ye(Le.next(Sn))}catch(Fe){Ze(Fe)}},nn=Sn=>{try{Ye(Le.throw(Sn))}catch(Fe){Ze(Fe)}},Ye=Sn=>Sn.done?an(Sn.value):Promise.resolve(Sn.value).then(Ce,nn);Ye((Le=Le.apply(he,It)).next())});const{Panel:wn}=ge.default,{TextArea:on}=xe.default;var We=({active:he,type:It="jupyter"})=>{var Le,an;const Ze=(0,ne.useParams)(),[Ce]=ee.default.useForm(),[nn,Ye]=(0,Mt.useState)({}),[Sn,Fe]=(0,Mt.useState)(!1),[vn,ue]=(0,Mt.useState)(0),[Ve,In]=(0,Mt.useState)([]),[Dt,Ct]=(0,Mt.useState)([]),[yt,kt]=(0,Mt.useState)([]),jt=(an=(Le=(0,St.eY)())==null?void 0:Le.shixun)==null?void 0:an.editable;(0,Mt.useEffect)(()=>{he==="testCase"&&bt()},[he]),(0,Mt.useEffect)(()=>{Gt()},[]);const bt=()=>ke(void 0,null,function*(){var tn,He,On,Xn,Pn,Gn,Ni,xi,ki,tr,Qe,sn,Qn,Li;const Ri=[{hidden:0,input:"",output:"",score:100}],Pi=yield(0,mt.ZP)(`/api/shixuns/${Ze==null?void 0:Ze.id}/jupyter_evalute_setting.json`,{method:"get"});if((Pi==null?void 0:Pi.status)===0){kt((tn=Pi==null?void 0:Pi.data)==null?void 0:tn.standard_scripts);const ur={open_evaluate:(He=Pi==null?void 0:Pi.data)==null?void 0:He.open_evaluate,exec_time:((On=Pi==null?void 0:Pi.data)==null?void 0:On.exec_time)||3,test_set_score:((Xn=Pi==null?void 0:Pi.data)==null?void 0:Xn.test_set_score)===null?!1:(Pn=Pi==null?void 0:Pi.data)==null?void 0:Pn.test_set_score,test_set_average:((Gn=Pi==null?void 0:Pi.data)==null?void 0:Gn.test_set_average)===null?!0:(Ni=Pi==null?void 0:Pi.data)==null?void 0:Ni.test_set_average,choice_standard_scripts:((xi=Pi==null?void 0:Pi.data)==null?void 0:xi.choice_standard_scripts)||null,evaluate_script:((ki=Pi==null?void 0:Pi.data)==null?void 0:ki.evaluate_script)||"",evaluate_method:(tr=Pi==null?void 0:Pi.data)==null?void 0:tr.evaluate_method,use_jupyter_result:(Qe=Pi==null?void 0:Pi.data)==null?void 0:Qe.use_jupyter_result};Ce.setFieldsValue(ur),Ye(ur),In((Qn=(sn=Pi==null?void 0:Pi.data)==null?void 0:sn.test_sets)!=null&&Qn.length?(Li=Pi==null?void 0:Pi.data)==null?void 0:Li.test_sets:Ri)}}),Gt=()=>ke(void 0,null,function*(){var tn;const He=yield(0,mt.ZP)(`/api/shixuns/${Ze==null?void 0:Ze.id}/get_jupyter_tags.json`,{method:"get"});(He==null?void 0:He.status)===0&&Ct(((tn=He==null?void 0:He.data)==null?void 0:tn.list)||[])}),fe=tn=>ke(void 0,null,function*(){const On=Ve.map(Pn=>Pn.score).reduce((Pn,Gn)=>Pn+Gn,0);if(tn.test_set_score&&On!==100){Ht.ZP.warning("\u6D4B\u8BD5\u7528\u4F8B\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(tn.evaluate_method===3&&(Ve!=null&&Ve.some(Pn=>!Pn.tags))){Ht.ZP.warning("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EE3\u7801\u5757");return}Fe(!0),(yield(0,mt.ZP)(`/api/shixuns/${Ze==null?void 0:Ze.id}/update_jupyter_evaluate_setting.json`,{method:"post",body:Ie(Ee({},tn),{mirror_script_id:tn==null?void 0:tn.choice_standard_scripts,open_evaluate:tn!=null&&tn.open_evaluate?1:0,test_set:Ve.map(Pn=>Ie(Ee({},Pn),{is_file:!1}))})})).status===0&&Ht.ZP.success("\u4FDD\u5B58\u6210\u529F"),Fe(!1)}),Se=tn=>{Ye(Ee({},Ce.getFieldsValue())),"test_set_average"in tn&&(tn!=null&&tn.test_set_average)&&Be(Ve),"test_set_score"in tn&&(tn!=null&&tn.test_set_score)&&(Ce.setFieldsValue({test_set_average:!0}),Ye(Ie(Ee({},Ce.getFieldsValue()),{test_set_average:!0})),Be(Ve)),"choice_standard_scripts"in tn&&oe.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:wt.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",wt.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:()=>ke(void 0,null,function*(){const He=yield(0,mt.ZP)(`/api/shixuns/${Ze==null?void 0:Ze.id}/get_script_contents.json`,{method:"get",params:{id:Ze==null?void 0:Ze.id,script_id:tn==null?void 0:tn.choice_standard_scripts}});He!=null&&He.content&&(oe.default.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:wt.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")}),Ce.setFieldsValue({evaluate_script:He==null?void 0:He.content}),Ye(Ie(Ee({},Ce.getFieldsValue()),{evaluate_script:He==null?void 0:He.content})))})})},Be=tn=>{let He=0;const On=Math.floor((100-He)/tn.length),Xn=On+(100-He)%tn.length;tn=tn.map((Pn,Gn)=>Gn===tn.length-1?Ie(Ee({},Pn),{score:Xn}):Ie(Ee({},Pn),{score:On})),In(tn)},re=()=>{const tn=[...Ve,{hidden:0,input:"",output:"",score:0}];Ce.getFieldValue("test_set_average")?Be(tn):In(tn)},{test_set_score:Te,test_set_average:Ne,choice_standard_scripts:$e,open_evaluate:fn}=nn;return wt.createElement("section",{className:lt.wrap},wt.createElement(ee.default,{form:Ce,disabled:!fn,layout:"vertical",onValuesChange:Se,onFinish:fe},wt.createElement(ee.default.Item,{name:"open_evaluate",style:{marginTop:10},valuePropName:"checked"},wt.createElement(Re.default,{disabled:!1},"\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD")),wt.createElement("h4",{className:"font14"},"\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"),wt.createElement(ve.Z,{title:!fn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},wt.createElement(ee.default.Item,{label:"\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09\uFF1A",name:"exec_time",className:lt.row,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}]},wt.createElement(Tt.Z,{size:"large",style:{width:400},min:3}))),wt.createElement("h4",{className:"font14 mb10"},"\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219"),wt.createElement(ve.Z,{title:!fn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},wt.createElement(ee.default.Item,{name:"test_set_score"},wt.createElement(Ue.ZP.Group,null,wt.createElement(ie.Z,{direction:"vertical"},wt.createElement(Ue.ZP,{value:!1},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",wt.createElement("span",{className:"c-grey-999"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),wt.createElement(Ue.ZP,{value:!0},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",wt.createElement("span",{className:"c-grey-999"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))))),wt.createElement(ee.default.Item,{label:wt.createElement("span",{style:{fontWeight:500},className:"c-black"},"\u8BC4\u6D4B\u8BBE\u7F6E"),name:"evaluate_method",style:{flexDirection:"row",marginTop:15},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u8BBE\u7F6E"}]},wt.createElement(Ue.ZP.Group,null,wt.createElement(ie.Z,{direction:"vertical"},wt.createElement(Ue.ZP,{value:1},"\u901A\u8FC7\u6240\u6709\u4EE3\u7801\u5757\u8BC4\u6D4B",wt.createElement("span",{className:"c-grey-999"}," \uFF08\u5BF9\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u7684\u6240\u6709\u975E\u7A7A\u4EE3\u7801\u5757\u8FDB\u884C\u8BC4\u6D4B\uFF09")),wt.createElement(Ue.ZP,{value:3},"\u901A\u8FC7\u6307\u5B9A\u4EE3\u7801\u5757\u8BC4\u6D4B",wt.createElement("span",{className:"c-grey-999"}," \uFF08\u5BF9\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u7684\u6307\u5B9A\u975E\u7A7A\u4EE3\u7801\u5757\u8FDB\u884C\u8BC4\u6D4B\uFF09"))))),wt.createElement(Je.Z,{align:"middle",justify:"space-between",className:"font14"},wt.createElement("div",{style:{fontWeight:500}},wt.createElement("span",{className:lt.sub},"*"),"\u6D4B\u8BD5\u7528\u4F8B"),wt.createElement(ve.Z,{title:!fn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},wt.createElement(ct.op,{style:{borderRadius:2},onClick:re},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B"))),Te&&wt.createElement(ee.default.Item,{name:"test_set_average"},wt.createElement(Ue.ZP.Group,null,wt.createElement(Ue.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),wt.createElement(Ue.ZP,{value:!1,style:{marginLeft:50}},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),wt.createElement(ve.Z,{title:!fn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},wt.createElement("div",null,Ve.map((tn,He)=>wt.createElement(ge.default,{activeKey:vn,key:He,onChange:()=>{ue(On=>On===He?null:He)}},wt.createElement(wn,{header:wt.createElement("div",{className:"font16"},wt.createElement("span",{className:"mr10"},"\u6D4B\u8BD5\u7528\u4F8B",He+1),nn.test_set_score&&wt.createElement("span",{style:{marginLeft:40}},wt.createElement(Tt.Z,{style:{width:120},value:tn.score,onClick:On=>On.stopPropagation(),min:0,max:100,precision:0,onBlur:On=>{if(Number(On)<0||Number(On)>100){Ht.ZP.info("\u6D4B\u8BD5\u7528\u4F8B\u7684\u6743\u91CD\u6BD4\u4F8B\u503C\u9650\u5236\u4E3A 0-100");const Xn=Ve.map((Gn,Ni)=>Ni===He?Ie(Ee({},Gn),{score:100}):Gn),Pn={test_set_average:!1};Ye(Ee(Ee({},nn),Pn)),Ce.setFieldsValue(Pn),In(Xn)}},disabled:Ne,onChange:On=>{const Xn=Ve.map((Gn,Ni)=>Ni===He?Ie(Ee({},Gn),{score:On?Number(On):0}):Gn),Pn={test_set_average:!1};Ye(Ee(Ee({},nn),Pn)),Ce.setFieldsValue(Pn),In(Xn)}}),wt.createElement("span",{className:"ml10 mr10"},"%")),wt.createElement("span",{className:"tr flex1",style:{float:"right"}},He!==0&&wt.createElement(ve.Z,{placement:"bottom",title:"\u5220\u9664"},wt.createElement("span",{style:{color:"#c5c5c5"},className:"current iconfont icon-shanchu4",onClick:On=>{On.stopPropagation(),oe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u6D4B\u8BD5\u7528\u4F8B\u5417\uFF1F",onOk:()=>{const Xn=Ve.filter((Pn,Gn)=>Gn!==He);Be(Xn)}})}})))),key:He},wt.createElement("div",null,nn.evaluate_method===3&&wt.createElement(Je.Z,{align:"middle",className:"mb20"},wt.createElement("div",null,wt.createElement("span",{className:lt.sub},"*"),wt.createElement("span",null,"\u6307\u5B9A\u4EE3\u7801\u5757"),wt.createElement(ve.Z,{title:"\u8BF7\u5148\u5728Jupyter\u4E2D\u5BF9\u60A8\u9700\u8981\u8BC4\u6D4B\u7684\u6307\u5B9A\u4EE3\u7801\u5757\u5B8C\u6210\u6807\u7B7E\u8BBE\u7F6E\u3002"},wt.createElement("i",{style:{marginLeft:6,marginRight:20,color:"#145DFF"},className:"iconfont icon-xiaowenhao2 font14"}))),wt.createElement(Ot.default,{value:tn.tags,size:"large",style:{width:450},onChange:On=>{const Xn=Ve.map((Pn,Gn)=>Gn===He?Ie(Ee({},Pn),{tags:On}):Pn);In(Xn)}},Dt==null?void 0:Dt.map(On=>wt.createElement(Ot.default.Option,{value:On==null?void 0:On.tags,key:On==null?void 0:On.tags},On==null?void 0:On.tags)))),wt.createElement(Je.Z,{align:"middle"},wt.createElement("div",null," ",wt.createElement("span",null,"\u9884\u671F\u8F93\u51FA")),wt.createElement(on,{bordered:!1,className:lt.textarea,rows:5,placeholder:"\u9884\u671F\u8F93\u51FA",value:tn.output,onChange:On=>{const Xn=Ve.map((Pn,Gn)=>Gn===He?Ie(Ee({},Pn),{output:On.target.value}):Pn);In(Xn)}})),wt.createElement(Je.Z,{className:"mt20",align:"middle"},wt.createElement("div",null,wt.createElement("span",null,"\u53EF\u89C1\u6027"),wt.createElement(ve.Z,{title:wt.createElement("div",null,wt.createElement("div",null,'\u5168\u90E8\u9690\u85CF\uFF1A\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'),wt.createElement("div",null,"\u9690\u85CF\u9884\u671F\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),wt.createElement("div",null,"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"))},wt.createElement("i",{style:{marginLeft:6,marginRight:13,color:"#145DFF"},className:"iconfont icon-xiaowenhao2 font14"}))),wt.createElement("div",null,wt.createElement(Re.default,{className:"font14 ml5",checked:tn.hidden===1,onChange:On=>{const Xn=Ve.map((Pn,Gn)=>{if(Gn===He){let Ni={is_invisible:!1,actual_output_visible:!1};return On.target.checked&&(Ni={is_invisible:!0,actual_output_visible:!0}),Ie(Ee(Ee({},Pn),Ni),{hidden:On.target.checked?1:0})}return Pn});In(Xn)}},"\u5168\u90E8\u9690\u85CF")),wt.createElement(Re.default,{checked:tn.is_invisible,style:{margin:"0 60px"},onChange:On=>{const Xn=Ve.map((Pn,Gn)=>{if(Gn===He){let Ni=0;return On.target.checked&&Pn.actual_output_visible&&(Ni=1),Ie(Ee({},Pn),{hidden:Ni,is_invisible:On.target.checked})}return Pn});In(Xn)}},"\u9690\u85CF\u9884\u671F\u8F93\u51FA"),wt.createElement(Re.default,{checked:tn.actual_output_visible,onChange:On=>{const Xn=Ve.map((Pn,Gn)=>{if(Gn===He){let Ni=0;return On.target.checked&&Pn.is_invisible&&(Ni=1),Ie(Ee({},Pn),{hidden:Ni,actual_output_visible:On.target.checked})}return Pn});In(Xn)}},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA")),wt.createElement("div",{className:"mt20"},wt.createElement("span",{className:"font14 mr20"},"\u7279\u6B8A\u5224\u5B9A:"),wt.createElement(Re.default,{checked:tn.last_match_rule,onChange:On=>{const Xn=Ve.map((Pn,Gn)=>Gn===He?Ie(Ee({},Pn),{last_match_rule:On.target.checked}):Pn);In(Xn)}},wt.createElement("span",{className:"font14"},"\u672B\u5C3E\u5339\u914D",wt.createElement("span",{className:"font12 c-light-black"},"\uFF08\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173\uFF09")))))))))),wt.createElement("h4",{className:"font14 mt20 mb10"},wt.createElement("span",{className:lt.sub},"*"),"\u8BC4\u6D4B\u811A\u672C"),wt.createElement(ve.Z,{title:!fn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},wt.createElement(ee.default.Item,{name:"choice_standard_scripts",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C"}]},wt.createElement(Ot.default,{getPopupContainer:tn=>tn.parentNode,size:"large",style:{width:400},placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C"},yt.map((tn,He)=>wt.createElement(Ot.default.Option,{value:tn.id,key:He},tn.scptname))))),wt.createElement(ve.Z,{title:!fn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},wt.createElement(ee.default.Item,{name:"evaluate_script"},wt.createElement(gt.ZP,{height:450,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light",options:{readOnly:!fn}}))),(0,St.Ny)()&&wt.createElement(Je.Z,{className:"mb20",align:"middle"},wt.createElement(ee.default.Item,{name:"use_jupyter_result",className:"mt10",valuePropName:"checked",noStyle:!0},wt.createElement(et.Z,null)),wt.createElement("div",{className:"ml10"},"\u662F\u5426\u6CBF\u7528Jupyter\u8FD0\u884C\u7ED3\u679C"))),wt.createElement(nt.t,{okText:"\u4FDD\u5B58",hasOkBtn:jt,loading:Sn,onCancel:()=>ne.history.push(`/shixuns/${Ze==null?void 0:Ze.id}/challenges`),onOk:()=>Ce.submit(),className:It==="jupyterLab"?lt.btn:""}))}},46539:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return $t}});var Mt=Et(59301),ne=Et(62957),ge=Et(99571),xe=Et(6767),ee=Et(20554),Ht=Et(29787),oe=Et(42440),Re=Et(71051),ve={modal:"modal___NEEbt",con_warp:"con_warp___fZ8It",flex:"flex___Vqd1D",config_Warp:"config_Warp___m6wfT",config_btn:"config_btn___OL6qH",sceneList:"sceneList___SKegj",sceneItem:"sceneItem___RPw0S",sceneItemActive:"sceneItemActive___O_xTR"},Tt=Et(11724),Ue=Et(62772),ie=Et(99064),Je=Et(59301),Ot=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,mt=(Jt,Vt,pe)=>Vt in Jt?Ot(Jt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Jt[Vt]=pe,St=(Jt,Vt)=>{for(var pe in Vt||(Vt={}))lt.call(Vt,pe)&&mt(Jt,pe,Vt[pe]);if(ct)for(var pe of ct(Vt))gt.call(Vt,pe)&&mt(Jt,pe,Vt[pe]);return Jt},wt=(Jt,Vt)=>et(Jt,nt(Vt)),zt=(Jt,Vt,pe)=>new Promise((ce,Ee)=>{var Ie=on=>{try{wn(pe.next(on))}catch(qe){Ee(qe)}},ke=on=>{try{wn(pe.throw(on))}catch(qe){Ee(qe)}},wn=on=>on.done?ce(on.value):Promise.resolve(on.value).then(Ie,ke);wn((pe=pe.apply(Jt,Vt)).next())}),$t=({visible:Jt,onOk:Vt,onCancel:pe,info:ce})=>{const[Ee,Ie]=(0,Mt.useState)("1"),[ke,wn]=(0,Mt.useState)([{name:"gpu_limit",label:"GPU\u663E\u5361\u6570\u91CF",value:1,min:0,max:4,typeName:"\u4E2A"},{name:"gpu_memory_limit",label:"GPU\u663E\u5B58\u5927\u5C0F",value:1,min:0,max:64,typeName:"GB"}]),[on,qe]=(0,Mt.useState)([]),[We,he]=(0,Mt.useState)(0),[It,Le]=(0,Mt.useState)(null),[an,Ze]=(0,Mt.useState)(!1);(0,Mt.useEffect)(()=>{Jt&&Ce()},[Jt]);const Ce=()=>{Ie("1"),Le(null),he(0),ke[0].value=(ce==null?void 0:ce.gpu_limit)||1,ke[1].value=(ce==null?void 0:ce.gpu_memory_limit)||16,wn([...ke])};(0,Mt.useEffect)(()=>{var Dt,Ct;((Ct=(Dt=on==null?void 0:on[We])==null?void 0:Dt.content)==null?void 0:Ct.length)>0&&Le(wt(St({},on[We].content[0]),{index:0}))},[Ee,We,on]);const nn=()=>zt(void 0,null,function*(){yield(0,ie.ZP)("/api/home/example_cpu_list.json",{method:"GET"}).then(Dt=>{var Ct;if(qe(Dt),(Dt==null?void 0:Dt.length)>0){let yt=wt(St({},(Ct=Dt==null?void 0:Dt[0])==null?void 0:Ct.content[0]),{index:0});Le(yt)}})}),Ye=Dt=>{Ie(Dt),Dt==="2"&&he(0)},Sn=(Dt,Ct)=>{wn(ke.map(yt=>yt.name===Dt?Ct(yt):yt))},Fe=(Dt,Ct)=>{isNaN(Dt)||Sn(Ct,yt=>wt(St({},yt),{value:Dt}))},vn=(Dt,Ct)=>{var yt;if(console.log("decline",Dt.value),Dt.value=Number(Dt.value),Dt.value<=((yt=Dt.min)!=null?yt:-1/0))return;let kt=Dt.value-.5<Dt.min?Dt.min:Dt.value-(Ct||.5);Sn(Dt.name,jt=>wt(St({},jt),{value:kt}))},ue=(Dt,Ct)=>{var yt;if(Dt.value=Number(Dt.value),Dt.value>=((yt=Dt.max)!=null?yt:1/0))return;let kt=Dt.value+.5>Dt.max?Dt.max:Dt.value+(Ct||.5);Sn(Dt.name,jt=>wt(St({},jt),{value:kt}))},Ve=(Dt,Ct)=>{isNaN(Dt)||Sn(Ct,yt=>wt(St({},yt),{value:Dt}))},In=Dt=>{if(Dt==null||Number.isInteger(Dt))return Dt;const Ct=Dt%1;return Ct===.5?Dt:Math.floor(Dt)+(Ct<.5?.5:1)};return Je.createElement(Je.Fragment,null,Je.createElement(ne.default,{title:"\u8D44\u6E90\u914D\u7F6E",open:Jt,width:752,destroyOnClose:!0,centered:!0,onCancel:pe,className:ve.modal,footer:[Je.createElement("div",{className:ve.btn_warp,key:"1"},Je.createElement(ge.ZP,{onClick:pe},"\u53D6\u6D88"),Je.createElement(ge.ZP,{type:"primary",onClick:()=>{let Dt=St({},ce);if(Ee=="1")Dt.gpu_limit=ke[0].value,Dt.gpu_memory_limit=ke[1].value;else if(Ee=="2"){if(!It){xe.ZP.error("\u8BF7\u9009\u62E9\u4E00\u6761\u573A\u666F\u5BF9\u5E94\u7684CPU\u4E0E\u5185\u5B58");return}Dt=wt(St({},Dt),{gpu_limit:It.gpu_limit,gpu_memory_limit:It.gpu_memory_limit})}Vt(Dt)}},"\u4FDD\u5B58"))]},Je.createElement(ee.default,{activeKey:Ee,onChange:Ye},Je.createElement(ee.default.TabPane,{tab:"GPU\u914D\u7F6E",key:1},Je.createElement(Ht.Z,{spinning:an},ke==null?void 0:ke.map(Dt=>Je.createElement("div",{className:ve.con_warp,key:Dt==null?void 0:Dt.name},Je.createElement("div",null,Dt==null?void 0:Dt.label),Je.createElement("div",null,Je.createElement(oe.Z,{min:Dt==null?void 0:Dt.min,max:Dt==null?void 0:Dt.max,onChange:Ct=>Fe(Ct,Dt==null?void 0:Dt.name),value:Dt==null?void 0:Dt.value,step:Dt.name==="gpu_limit"?1:.5,style:{width:422,height:6,margin:"0 20px 0 12px"}})),Je.createElement("div",{className:`${ve.config_Warp} ${ve.flex}`},Je.createElement("div",{className:`${ve.config_btn} ${ve.flex}`,onClick:()=>vn(Dt,Dt.name==="gpu_limit"?1:.5)},Je.createElement(Tt.Z,null)),Je.createElement(Re.Z,{min:Dt==null?void 0:Dt.min,max:Dt==null?void 0:Dt.max,size:"large",step:Dt.name==="gpu_limit"?1:.5,controls:!1,style:{width:55},value:Dt==null?void 0:Dt.value,onChange:Ct=>{const yt=In(Ct);Ve(yt,Dt==null?void 0:Dt.name)}}),Je.createElement("div",{className:`${ve.config_btn} ${ve.flex}`,onClick:()=>ue(Dt,Dt.name==="gpu_limit"?1:.5)},Je.createElement(Ue.Z,null))),Je.createElement("div",null,Dt==null?void 0:Dt.typeName))))))))}},43181:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return Ct}});var Mt=Et(59301),ne=Et(62957),ge=Et(6767),xe=Et(30641),ee=Et(20554),Ht=Et(29787),oe=Et(25399),Re=Et(99571),ve={header_body:"header_body___lAlEX",close:"close___OXweN",no_data:"no_data___h77J2",recommend_config_introduce:"recommend_config_introduce___ifFGY",recommend_config:"recommend_config___UXyKS",recommend_config_item:"recommend_config_item___zONum",item_title:"item_title___w5vXw",recommend_text:"recommend_text___f68Eu",item_content:"item_content___j_zbN",recommend_config_active_item:"recommend_config_active_item___SrTkJ",recommend_config_footer:"recommend_config_footer___PHnlA",application:"application___uh4gI",tooltip:"tooltip___f0uXh",disabled:"disabled___Ha9Ba"},Tt=Et(99267),Ue=Et(61485),ie=Et(13014),Je=Et(93314),Ot=Et(99064),et=Et(76411),nt={lineChart:"lineChart___dCEZW"},ct=Et(61186),lt=Et.n(ct),gt=Et(59301),St=({dataInfo:yt,indexKey:kt,valueName:jt,startAndEndTime:bt,colors:Gt=["#DA4928","#2EC25B","#FEBD49","#498FEA","#9363D8"],imageTypeName:fe})=>{let Se=null;(0,Mt.useEffect)(()=>{tn()},[yt]),(0,Mt.useEffect)(()=>{window.addEventListener("resize",Be(()=>{Se&&Se.resize()},200))},[window.onresize]);const Be=(He,On,Xn=!1)=>{let Pn,Gn;return(...Ni)=>{if(Xn){He.apply(Gn,Ni),Xn=!1;return}clearTimeout(Pn),Pn=setTimeout(()=>{He.apply(Gn,Ni)},On)}},re=He=>He?He.map(On=>{const Xn=new Date(On),Pn=String(Xn.getMonth()+1).padStart(2,"0"),Gn=String(Xn.getDate()).padStart(2,"0"),Ni=String(Xn.getHours()).padStart(2,"0"),xi=String(Xn.getMinutes()).padStart(2,"0");return`${Pn}/${Gn} ${Ni}:${xi}`}):[],Te=(He,On)=>He.map(Xn=>{const Pn=On.timestamps.indexOf(Xn);return Pn!==-1?On.values[Pn]:null});function Ne(He){let On=1/0;for(let Pn=0;Pn<He.length-1;Pn++){let Gn=He[Pn+1]-He[Pn];Gn<On&&(On=Gn)}return{newArray:$e(He[0],He[He.length-1],On),minInterval:On}}const $e=(He,On,Xn)=>{let Pn=[];for(let Gn=He;Gn<=On;Gn+=Xn)Pn.push(Gn);return Pn},fn=()=>{var He;const On=((He=yt==null?void 0:yt.x)==null?void 0:He.flat())||[];let Xn=[...new Set(On)].sort((sn,Qn)=>sn-Qn),Pn=Ne(Xn),Gn=Pn==null?void 0:Pn.newArray,Ni=Pn==null?void 0:Pn.minInterval;Xn=[...new Set([...Xn,...Gn])].sort((sn,Qn)=>sn-Qn);let xi=lt()(bt[0],"YYYY-MM-DD HH:mm").valueOf(),ki=$e(xi,Xn[0]-Ni,Ni),tr=lt()(bt[1],"YYYY-MM-DD HH:mm").valueOf(),Qe=$e(Xn[Xn.length-1]+Ni,tr,Ni);return Xn=[...ki,...Xn,...Qe],[...new Set(Xn)].sort((sn,Qn)=>sn-Qn)},tn=()=>{var He;Se=et.init(document.getElementById(`lineChart${kt}`));let On=fn(),Xn=(He=yt==null?void 0:yt.y)==null?void 0:He.map((Gn,Ni)=>{var xi;let ki={timestamps:(xi=yt==null?void 0:yt.x)==null?void 0:xi[Ni],values:Gn};return Gn=Te(On,ki),{name:jt[Ni],type:"line",itemStyle:{show:!1},lineStyle:{color:Gt[Ni]},data:Gn}}),Pn={tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{color:"rgba(212, 217, 227, 1)",type:"dashed"}},backgroundColor:"#fff",textStyle:{color:"#333333"},padding:10,extraCssText:"box-shadow: 0px 4px 8px 0px rgba(184,194,202,0.5)",formatter:function(Gn){var Ni;let xi="";return Gn.forEach((ki,tr)=>{console.log("item",ki),xi+=`<div style="width: 100%; display: flex; justify-content: space-between; align-items: center; margin: 6px 0px;">
|
|
<div style="display: flex; align-items: center;">
|
|
<div style="width: 12px; height: 12px; border-radius: 50%; background: ${Gt[ki==null?void 0:ki.componentIndex]}; margin-right: 4px;"></div>
|
|
<span style="width: 144px; color: rgba(43,49,63,0.5); font-size: 12px;">${fe[ki==null?void 0:ki.componentIndex]}</span>
|
|
</div>
|
|
<div style="color: #393971; font-size: 13px; font-weight: 600;">${ki.value>0?ki.value.toFixed(5):ki.value==0?0:"--"} ${kt==0?"Cores":"MiB"}</div>
|
|
</div>`}),`<div>
|
|
<div style="color: #333333; padding-top: 6px;">${(Ni=Gn[0])==null?void 0:Ni.name}</div>
|
|
${xi}
|
|
</div>`}},grid:{right:"5%",bottom:"20%",top:"10%"},dataZoom:[{show:!0,start:0,end:100},{type:"inside",start:20,end:100}],xAxis:[{type:"category",gridIndex:0,boundaryGap:!0,axisTick:{show:!1,alignWithLabel:!1},axisLine:{show:!0,lineStyle:{color:"#F0F0F0",type:"solid"}},axisLabel:{show:!0,color:"#9096A3"},splitLine:{show:!1},data:re(On)}],yAxis:[{type:"value",gridIndex:0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,color:"#9096A3",formatter:kt==1?"{value} MiB":"{value} Cores"},splitLine:{show:!0,lineStyle:{color:"#EDEDED",type:"dashed"}}}],series:Xn};Se.setOption(Pn)};return gt.createElement("div",{id:`lineChart${kt}`,className:nt.lineChart})},wt=Et(85057),zt={flex_warp:"flex_warp___Rtigf",chart_content:"chart_content___tVmUj",chart_title:"chart_title___AOPx7",listdata:"listdata___mi4KG",block:"block___prArl",typename:"typename___j4diD",val:"val___MeuWc",info_con:"info_con___eIdJL",info_top:"info_top___UKMbT",fullscreen:"fullscreen___PICBn",chart_content_qp:"chart_content_qp___ae1n1",spin_dom:"spin_dom___T7PCy"},Wt=Et(82326),$t=Et(16326),Jt=Et(1560);const Vt=yt=>{const kt=new Date,bt=(Gt=>{const fe=new Date(kt);switch(Gt){case"\u6700\u8FD130\u5206\u949F":fe.setMinutes(kt.getMinutes()-30);break;case"\u6700\u8FD13\u5C0F\u65F6":fe.setHours(kt.getHours()-3);break;case"\u6700\u8FD124\u5C0F\u65F6":fe.setDate(kt.getDate()-1);break;case"\u6700\u8FD17\u5929":fe.setDate(kt.getDate()-7);break;case"\u6700\u8FD115\u5929":fe.setDate(kt.getDate()-15);break;default:return null}return fe})(yt);return bt?{startTime:bt,endTime:kt}:null},pe=(yt,kt,jt)=>{if(!yt)return!1;const bt=lt()(),[Gt,fe]=kt;if(yt.isAfter(bt))return!0;if(Gt){const Se=Gt.clone().add(jt,"days");if(fe&&yt.isAfter(Se))return!0}if(fe){const Se=fe.clone().subtract(jt,"days");return yt.isBefore(Se)||yt.isAfter(bt)}return!1},ce=yt=>yt<=5?"30s":yt<=15?"1m":yt<=30?"2m":yt<=60?"5m":yt<=180?"10m":yt<=360?"30m":yt<=720?"1h":yt<=1440?"2h":yt<=2880?"4h":yt<=4320?"8h":yt<=10080||yt<=14400?"12h":yt<=21600?"1d":"\u6CA1\u6709\u5339\u914D\u7684\u65F6\u95F4\u95F4\u9694",Ee=yt=>{const[kt,jt]=yt,bt=moment.isMoment(kt)?kt:moment(kt),Gt=moment.isMoment(jt)?jt:moment(jt);if(!bt.isValid()||!Gt.isValid())throw new Error("Invalid date provided");const Se=moment.duration(Gt.diff(bt)).asMinutes();return ce(Se)},Ie=(yt,kt,jt=20)=>{const bt=new Date(yt).getTime(),Gt=new Date(kt).getTime(),fe=jt*1e3,Se=[];let Be=bt;for(;Be<=Gt;)Se.push(Be),Be+=fe;return Se};var ke=Et(89392),wn=Et(8797),on=Et(4901),qe=Et(59301),We=(yt,kt,jt)=>new Promise((bt,Gt)=>{var fe=re=>{try{Be(jt.next(re))}catch(Te){Gt(Te)}},Se=re=>{try{Be(jt.throw(re))}catch(Te){Gt(Te)}},Be=re=>re.done?bt(re.value):Promise.resolve(re.value).then(fe,Se);Be((jt=jt.apply(yt,kt)).next())});const he=Wt.default.Option,{RangePicker:It}=$t.default;var an=({identifier:yt,data:kt,isFirst:jt,setIsFirst:bt,info:Gt})=>{var fe;const[Se,Be]=(0,Mt.useState)([]),[re,Te]=(0,Mt.useState)([]),[Ne,$e]=(0,Mt.useState)(null),[fn,tn]=(0,Mt.useState)(""),[He,On]=(0,Mt.useState)([null,null]),[Xn,Pn]=(0,Mt.useState)([]),[Gn,Ni]=(0,Mt.useState)(!1),[xi,ki]=(0,Mt.useState)([]),[tr,Qe]=(0,Mt.useState)(!1),[sn,Qn]=(0,Mt.useState)(!1),[Li,Ri]=(0,Mt.useState)(""),[Pi,ur]=(0,Mt.useState)(1),ir=["\u6700\u8FD130\u5206\u949F","\u6700\u8FD13\u5C0F\u65F6","\u6700\u8FD124\u5C0F\u65F6","\u6700\u8FD17\u5929","\u6700\u8FD115\u5929"],pr=["#DA4928","#2EC25B","#FEBD49","#498FEA","#9363D8"];(0,Mt.useEffect)(()=>{var fi,bn,En,Ae;if(kt&&jt){Ji(),Be(kt==null?void 0:kt.recent_users),Te(kt==null?void 0:kt.managers);const Me=(Gt==null?void 0:Gt.type)==="\u6311\u6218\u9875\u9762";((fi=kt==null?void 0:kt.managers)==null?void 0:fi.length)>0?$e(Me?Gt==null?void 0:Gt.myshixun_id:(bn=kt==null?void 0:kt.managers[0])==null?void 0:bn.id):((En=kt==null?void 0:kt.recent_users)==null?void 0:En.length)>0&&$e(Me?Gt==null?void 0:Gt.myshixun_id:(Ae=kt==null?void 0:kt.recent_users[0])==null?void 0:Ae.id),tn("\u6700\u8FD130\u5206\u949F"),bt(!1)}},[kt]),(0,Mt.useEffect)(()=>{if(fn){let fi=Vt(fn);On([lt()(fi==null?void 0:fi.startTime),lt()(fi==null?void 0:fi.endTime)])}},[fn]),(0,Mt.useEffect)(()=>{Ne&&(He!=null&&He[0])&&(He!=null&&He[1])&&ci()},[Ne,He]);const ci=()=>We(void 0,null,function*(){var fi;Ni(!0);let bn={startTimeString:He[0]?He[0].format("YYYY-MM-DD HH:mm"):null,endTimeString:He[1]?He[1].format("YYYY-MM-DD HH:mm"):null,samplingInterval:"20s",isSortBoolean:!1,id:Ne};const En=yield(0,Ot.ZP)(`/api/shixuns/${yt}/cpu_rank_data.json`,{method:"get",params:bn});(En==null?void 0:En.status)==0&&(ki((fi=En==null?void 0:En.data)==null?void 0:fi.statisticsList),ur(Pi+1)),Ni(!1)}),qi=(0,Mt.useRef)((0,ke.throttle)(fi=>Pt(fi),1200,{leading:!0,trailing:!0})).current,Pt=fi=>We(void 0,null,function*(){if(fi=="")return;const bn=yield(0,Ot.ZP)(`/api/shixuns/${yt}/cpu_search_data`,{method:"get",params:{search:fi}});(bn==null?void 0:bn.status)==0&&Pn(bn==null?void 0:bn.data)}),Ii=(fi,bn)=>{fi==="CPU"?(tr?(0,on.BU)():(0,on.Dj)(document.getElementById(`tj${bn}`)),Qe(!tr)):(sn?(0,on.BU)():(0,on.Dj)(document.getElementById(`tj${bn}`)),Qn(!sn))},Jn=(fi,bn,En)=>{const Ae=bn==="CPU"?"cpuUsageChart":"memoryUsageChart";let Me=fi.map(qn=>{var ni,Fi,gn,Hn;const Oe=(ni=qn.promQueryResult)==null?void 0:ni[Ae],De=`${qn.envId}-${qn.myPracticalTrainingId}_${bn}`,ai=((Hn=(gn=(Fi=Oe==null?void 0:Oe.results[De])==null?void 0:Fi.frames[0])==null?void 0:gn.data)==null?void 0:Hn.values)||[];return ai.length>0?ai[En]:[]});return Me.some(qn=>Array.isArray(qn)&&qn.length>0)?Me:[]},er=fi=>{$e(fi),Ji()},Ji=()=>{Pn([]),Ri("")},Zi=fi=>{let bn=!1;for(let En=0;En<(xi==null?void 0:xi.length);En++){let Ae=Jn(xi,fi,1)[En];if(Ae&&(Ae==null?void 0:Ae.length)>0){bn=!0;break}}return(xi==null?void 0:xi.length)>0&&bn};return qe.createElement(qe.Fragment,null,qe.createElement("div",{className:`${zt.flex_warp}`},qe.createElement(Jt.Z,{allowClear:!0,showSearch:!0,value:Li,style:{width:280},onSearch:qi,placeholder:"\u641C\u7D22\u59D3\u540D/\u624B\u673A\u53F7/\u90AE\u7BB1",onChange:(fi,bn)=>{Ri(fi),bn!=null&&bn.key&&$e(Number(bn==null?void 0:bn.key))},onClear:Ji,size:"large"},Xn==null?void 0:Xn.map((fi,bn)=>qe.createElement(he,{key:fi.id,value:fi.name},fi.name.length>4?`${fi.name.slice(0,4)}...`:fi.name,`( ${fi.phone?fi.phone:""} ${fi.mail?` - ${fi.mail}`:""})`))),qe.createElement("div",null,qe.createElement(Wt.default,{style:{width:130,marginRight:20},placeholder:"\u8BF7\u9009\u62E9",size:"large",value:fn,onChange:fi=>{tn(fi)}},ir.map((fi,bn)=>qe.createElement(Wt.default.Option,{key:bn,value:fi},fi))),qe.createElement(It,{style:{width:320},showTime:!0,size:"large",allowClear:!1,value:He,disabledDate:fi=>pe(fi,He,15),format:"YYYY-MM-DD HH:mm",onChange:fi=>{On(fi),tn(void 0)}}))),qe.createElement(wt.qp,{title:"\u5408\u4F5C\u6210\u5458",style:{marginTop:"24px"},value:Ne,onChange:fi=>er(fi),dataSource:re,titleWidth:60,key:1}),qe.createElement(wt.qp,{title:"\u6700\u8FD1\u5B9E\u9A8C",className:(Se==null?void 0:Se.length)==0?"mt0":"",style:{marginBottom:(Se==null?void 0:Se.length)>0?"0px":"17px"},value:Ne,onChange:fi=>er(fi),dataSource:Se,titleWidth:60,key:2}),(fe=[{name:"CPU",type:"CPU"},{name:"\u5185\u5B58",type:"MEMORY"}])==null?void 0:fe.map((fi,bn)=>qe.createElement("div",{className:`${zt.chart_content}`,key:bn,id:`tj${bn}`},qe.createElement("div",{className:zt.chart_title},qe.createElement("span",null,fi==null?void 0:fi.name,"\u4F7F\u7528\u91CF"),qe.createElement("i",{className:`${zt.fullscreen}
|
|
iconfont
|
|
${(fi==null?void 0:fi.type)=="CPU"?tr?"icon-tuichuquanping2":"icon-quanping2":sn?"icon-tuichuquanping2":"icon-quanping2"}
|
|
`,onClick:()=>Ii(fi.type,bn)})),qe.createElement(Ht.Z,{spinning:Gn},Zi(fi.type)?qe.createElement("div",{style:{marginTop:(fi==null?void 0:fi.type)=="CPU"?tr?"7%":"":sn?"7%":""}},qe.createElement(St,{dataInfo:{y:Jn(xi,fi==null?void 0:fi.type,1)||[],x:Jn(xi,fi==null?void 0:fi.type,0)||[]},startAndEndTime:He,colors:pr,indexKey:bn,valueName:xi.map(En=>En.name),imageTypeName:xi.map(En=>{var Ae;return(Ae=En==null?void 0:En.promQueryResult)==null?void 0:Ae.imageTypeName}),key:`${bn}-${Pi}`}),qe.createElement("div",{className:zt.info_con},qe.createElement("div",{className:zt.info_top},qe.createElement("div",null,"\u6700\u5927\u503C"),qe.createElement("div",null,"\u6700\u5C0F\u503C"),qe.createElement("div",null,"\u5E73\u5747\u503C")),xi.map((En,Ae)=>{var Me;let be=En==null?void 0:En.promQueryResult;return qe.createElement("div",{className:zt.listdata,key:Ae},qe.createElement("div",{className:zt.block,style:{backgroundColor:pr[Ae],marginRight:10}}),qe.createElement("div",{className:zt.typename},(Me=En==null?void 0:En.promQueryResult)==null?void 0:Me.imageTypeName),qe.createElement("div",{className:zt.val},(fi==null?void 0:fi.type)=="CPU"?`${be==null?void 0:be.cpuMaxDoubleValue}Cores`:`${be==null?void 0:be.memoryDoubleMaxValue}MiB`),qe.createElement("div",{className:zt.val},(fi==null?void 0:fi.type)=="CPU"?`${be==null?void 0:be.cpuMinDoubleValue}Cores`:`${be==null?void 0:be.memoryDoubleMinValue}MiB`),qe.createElement("div",{className:zt.val},(fi==null?void 0:fi.type)=="CPU"?`${be==null?void 0:be.cpuAvgDoubleValue}Cores`:`${be==null?void 0:be.memoryDoubleAvgValue}MiB`))}))):qe.createElement(wn.Z,null)))))},Ze=Et(59301),Ce=(yt,kt,jt)=>new Promise((bt,Gt)=>{var fe=re=>{try{Be(jt.next(re))}catch(Te){Gt(Te)}},Se=re=>{try{Be(jt.throw(re))}catch(Te){Gt(Te)}},Be=re=>re.done?bt(re.value):Promise.resolve(re.value).then(fe,Se);Be((jt=jt.apply(yt,kt)).next())}),Ye=({getApi:yt,identifier:kt,visible:jt,info:bt})=>{const[Gt,fe]=(0,Mt.useState)({}),[Se,Be]=(0,Mt.useState)(!0);(0,Mt.useEffect)(()=>{Be(!0)},[jt]),(0,Mt.useEffect)(()=>{yt&&Se&&re()},[yt]);const re=()=>Ce(void 0,null,function*(){const Te=yield(0,Ot.ZP)(`/api/shixuns/${kt}/cpu_basic_data.json`,{method:"get"});(Te==null?void 0:Te.status)==0&&fe(Te)});return Ze.createElement("div",null,Ze.createElement(an,{isFirst:Se,setIsFirst:Te=>Be(Te),identifier:kt,data:Gt,info:bt}))},Sn=Et(955),Fe=Et(89070),vn=Et(49692),ue=Et(46474),Ve=Et(59301),In=(yt,kt,jt)=>new Promise((bt,Gt)=>{var fe=re=>{try{Be(jt.next(re))}catch(Te){Gt(Te)}},Se=re=>{try{Be(jt.throw(re))}catch(Te){Gt(Te)}},Be=re=>re.done?bt(re.value):Promise.resolve(re.value).then(fe,Se);Be((jt=jt.apply(yt,kt)).next())});const Dt=({globalSetting:yt,dispatch:kt,practiceSetting:jt,shixunsDetail:bt,visible:Gt,onCancel:fe,info:Se,identifier:Be,isJupyter:re,onOk:Te})=>{const[Ne,$e]=(0,Mt.useState)("1"),[fn,tn]=(0,Mt.useState)("\u63A8\u8350\u914D\u7F6E"),[He,On]=(0,Mt.useState)([]),[Xn,Pn]=(0,Mt.useState)(!1),[Gn,Ni]=(0,Mt.useState)(!1),[xi,ki]=(0,Mt.useState)({}),[tr,Qe]=(0,Mt.useState)(!1);(0,Mt.useEffect)(()=>{Gt&&(Ni(!1),$e("1"),tn("\u63A8\u8350\u914D\u7F6E"),(Se==null?void 0:Se.type)=="\u6311\u6218\u9875\u9762"?On(["\u5F53\u524D\u914D\u7F6E","\u63A8\u8350\u914D\u7F6E"]):On(["\u5F53\u524D\u914D\u7F6E","\u63A8\u8350\u914D\u7F6E","\u589E\u5F3A\u914D\u7F6E"]),ki({}),sn(),(Se==null?void 0:Se.type)=="\u6311\u6218\u9875\u9762"&&kt({type:"shixunsDetail/getShixunsDetail",payload:{id:Be}}))},[Gt]);const sn=()=>In(void 0,null,function*(){Qe(!0);const ci=yield(0,vn.HS)(Be);[0,-10].includes(ci.status)&&(ki(ci),Qe(!1))}),Qn=ci=>{ci=="2"?Ni(!0):Ni(!1),$e(ci)},Li=()=>{ne.default.info({centered:!0,icon:null,width:424,title:"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458",content:Ve.createElement("div",{className:"tc"},Ve.createElement("img",{src:ie,alt:"\u4E8C\u7EF4\u7801",width:182,height:182,style:{pointerEvents:"none",userSelect:"none"}})),okText:"\u6211\u77E5\u9053\u4E86"})},Ri=()=>In(void 0,null,function*(){if((0,ue.gy)(kt,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")||fn=="\u5F53\u524D\u914D\u7F6E")return;Pn(!0),(yield(0,Ot.ZP)(`/api/shixuns/${Be}/apply_recommend_config.json`,{method:"put",body:{data:fn=="\u63A8\u8350\u914D\u7F6E"?xi==null?void 0:xi.recommend:xi==null?void 0:xi.high}})).status==0&&(ge.ZP.success("\u5E94\u7528\u6210\u529F"),Pn(!1),fe(),Te())}),Pi=()=>In(void 0,null,function*(){var ci,qi;if(yield ur(),(0,Sn.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),(ci=bt.detail)!=null&&ci.is_jupyter||(qi=bt.detail)!=null&&qi.is_jupyter_lab){kt({type:"shixunsDetail/execJupyter",payload:{id:Be}}).then(Ii=>{var Jn;Ii!=null&&Ii.identifier&&((Jn=Fe.history)==null||Jn.push(`/tasks/${Ii.identifier}/jupyter`))});return}kt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const Pt=re?yield(0,vn.BK)({id:Be}):yield(0,vn.Ir)({id:Be});if(kt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),Pt!=null&&Pt.game_identifier||Pt!=null&&Pt.identifier){(0,Sn.xg)(re?`/tasks/${Pt==null?void 0:Pt.identifier}/jupyter`:`/tasks/${Pt.game_identifier}`);return}(Pt==null?void 0:Pt.status)===-3?(0,Sn.eF)():(Pt==null?void 0:Pt.status)===2?ir(Pt==null?void 0:Pt.message):(Pt==null?void 0:Pt.status)===3&&pr(Pt==null?void 0:Pt.message)}),ur=()=>new Promise((ci,qi)=>{var Pt;(Pt=jt==null?void 0:jt.sideBar)!=null&&Pt.confirmLeave?ne.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{kt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),ci()},onCancel:()=>{qi()}}):ci()}),ir=ci=>{ci=ci!=null&&ci.includes(".json")?ci:`${ci}.json`,ne.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Ve.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>In(void 0,null,function*(){const qi=yield(0,Ot.ZP)("/api"+ci,{method:"get"});if(!qi)return;ge.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const Pt=yield(0,vn.Ir)({id:qi.shixun_identifier});if(Pt!=null&&Pt.game_identifier){(0,Sn.xg)(`/tasks/${Pt.game_identifier}`);return}(Pt==null?void 0:Pt.status)===2?ir(Pt==null?void 0:Pt.message):(Pt==null?void 0:Pt.status)===3&&pr(Pt==null?void 0:Pt.message)})})},pr=ci=>{ne.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Ve.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",ci,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})};return Ve.createElement(Ve.Fragment,null,Ve.createElement(xe.Z,{title:null,placement:"right",open:Gt,width:1e3,onClose:fe,closeIcon:null,footer:null},Ve.createElement("div",{className:ve.header_body},Ve.createElement("span",null,"\u914D\u7F6E\u4E0E\u76D1\u63A7"),Ve.createElement(Tt.Z,{className:ve.close,onClick:fe})),Ve.createElement(ee.default,{activeKey:Ne,onChange:Qn},Ve.createElement(ee.default.TabPane,{tab:"\u63A8\u8350\u914D\u7F6E",key:1},Ve.createElement(Ht.Z,{spinning:tr,size:"large",tip:Ve.createElement("div",{style:{color:"#666",fontSize:"14px"}},Ve.createElement("div",{style:{color:"#232B40",fontWeight:"bolder",marginBottom:24,marginTop:14}},"\u6B63\u5728\u8BA1\u7B97\u2026"),Ve.createElement("div",{style:{lineHeight:"26px"}},"\u7CFB\u7EDF\u6B63\u5728\u6839\u636E\u5B9E\u8DF5\u9879\u76EE\u4F7F\u7528\u7684\u5B9E\u9645\u60C5\u51B5\u8BA1\u7B97\u63A8\u8350\u914D\u7F6E",Ve.createElement("br",null),"\u8BF7\u8010\u5FC3\u7B49\u5F85\u2026"))},(xi==null?void 0:xi.status)==0?Ve.createElement(Ve.Fragment,null,Ve.createElement("div",{className:ve.recommend_config_introduce},Ve.createElement("div",null,"\u5F53\u524D\u914D\u7F6E\uFF1A\u5B9E\u9A8C\u73AF\u5883\u76EE\u524D\u5DF2\u7ECF\u914D\u7F6E\u7684\u8D44\u6E90\u3002"),Ve.createElement("div",null,"\u63A8\u8350\u914D\u7F6E\uFF1A\u7CFB\u7EDF\u6839\u636E\u5B9E\u8DF5\u9879\u76EE\u4F7F\u7528\u7684\u5B9E\u9645\u60C5\u51B5\uFF0C\u8BA1\u7B97\u51FA\u63A8\u8350\u914D\u7F6E\u3002\u4F7F\u7528\u7684\u4EBA\u8D8A\u591A\uFF0C\u63A8\u8350\u8D8A\u51C6\u786E\u3002"),Ve.createElement("div",null,"\u589E\u5F3A\u914D\u7F6E\uFF1A\u9002\u7528\u4E8E\u8D44\u6E90\u6D88\u8017\u8F83\u9AD8\u7684\u5B9E\u8DF5\u9879\u76EE\u3002")),Ve.createElement("div",{className:ve.recommend_config},He.map((ci,qi)=>Ve.createElement("div",{className:`${ve.recommend_config_item} ${ci==fn?ve.recommend_config_active_item:""}`,key:ci,onClick:()=>tn(ci)},Ve.createElement("div",{className:ve.item_title},Ve.createElement("div",null,ci),qi==1?Ve.createElement("div",{className:ve.recommend_text},"\u63A8\u8350"):Ve.createElement(Ve.Fragment,null)),(ci=="\u5F53\u524D\u914D\u7F6E"&&(xi==null?void 0:xi.current)||ci=="\u63A8\u8350\u914D\u7F6E"&&(xi==null?void 0:xi.recommend)||ci=="\u589E\u5F3A\u914D\u7F6E"&&(xi==null?void 0:xi.high)||[]).map((Pt,Ii)=>Ve.createElement("div",{className:ve.item_content,key:Ii},Ve.createElement("span",null,Pt==null?void 0:Pt.image_name),Pt!=null&&Pt.cpu_limit?Ve.createElement("span",null,Pt==null?void 0:Pt.cpu_limit,"\u6838",Pt==null?void 0:Pt.memory_limit,"G"):Ve.createElement("div",null,Ve.createElement("span",null,"\u6682\u65E0\u63A8\u8350"),Ve.createElement(oe.Z,{title:Ve.createElement("div",{style:{lineHeight:"22px",padding:5}},"\u5B9E\u9A8C\u73AF\u5883\u4E3A\u7279\u6B8A\u7684\u4E13\u6709\u4E91\u6216\u65E0\u4F7F\u7528\u6570",Ve.createElement("br",null),"\u636E\uFF0C\u7CFB\u7EDF\u65E0\u6CD5\u7ED9\u51FA\u63A8\u8350\u503C\u3002\u4E00\u952E\u5E94\u7528",Ve.createElement("br",null),"\u7684\u65F6\u5019\uFF0C\u5C06\u4F7F\u7528\u539F\u914D\u7F6E\u3002")},Ve.createElement(Ue.Z,{className:ve.tooltip})))))))),Ve.createElement("div",{className:ve.recommend_config_footer},Ve.createElement("div",null,Ve.createElement("span",null,"\u6CA1\u627E\u5230\u5408\u9002\u7684\u914D\u7F6E\uFF1F"),Ve.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>Li()},"\u8054\u7CFB\u7BA1\u7406\u5458")),Ve.createElement(Re.ZP,{type:"primary",shape:"round",disabled:fn=="\u5F53\u524D\u914D\u7F6E",onClick:Ri,loading:Xn},"\u4E00\u952E\u5E94\u7528"))):tr?Ve.createElement("div",{style:{height:400}}):Ve.createElement("div",{className:ve.no_data},Ve.createElement("img",{src:Je,style:{pointerEvents:"none",userSelect:"none",width:212,height:160}}),Ve.createElement("p",{className:"mt20 mb20 font14",style:{color:"#7B8394",width:"100%",lineHeight:"26px"}},"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6CA1\u6709\u4EFB\u4F55\u4EBA\u4F7F\u7528\u8FC7\uFF0C\u7CFB\u7EDF\u65E0\u6CD5\u6839\u636E\u5B9E\u9645\u4F7F\u7528\u60C5\u51B5\u7ED9\u51FA\u63A8\u8350\u914D\u7F6E\u3002",Ve.createElement("br",null),"\u5EFA\u8BAE\u60A8\u5148\u6A21\u62DF\u5B9E\u6218\u5E76\u901A\u5173~"),(Se==null?void 0:Se.type)!="\u6311\u6218\u9875\u9762"&&Ve.createElement("div",{className:ve.application,onClick:()=>{Pi(),fe()}},"\u6A21\u62DF\u5B9E\u6218")))),Ve.createElement(ee.default.TabPane,{tab:"\u8D44\u6E90\u76D1\u63A7",key:2},Ve.createElement(Ye,{getApi:Gn,identifier:Be,visible:Gt,info:Se})))))};var Ct=(0,Fe.connect)(({globalSetting:yt,practiceSetting:kt,shixunsDetail:jt})=>({globalSetting:yt,practiceSetting:kt,shixunsDetail:jt}))(Dt)},1535:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return Vt}});var Mt=Et(59301),ne=Et(62957),ge=Et(99571),xe=Et(6767),ee=Et(20554),Ht=Et(29787),oe=Et(42440),Re=Et(71051),ve=Et(54172),Tt={modal:"modal___aF6vS",con_warp:"con_warp___W1gHS",flex:"flex___Cbe__",config_Warp:"config_Warp___lXnUZ",config_btn:"config_btn___OAH7T",sceneList:"sceneList___N5Y3k",sceneItem:"sceneItem____bE1H",sceneItemActive:"sceneItemActive___e82B8"},Ue=Et(11724),ie=Et(62772),Je=Et(99064),Ot=Et(8797),et=Et(59301),nt=Object.defineProperty,ct=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,wt=(pe,ce,Ee)=>ce in pe?nt(pe,ce,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):pe[ce]=Ee,zt=(pe,ce)=>{for(var Ee in ce||(ce={}))mt.call(ce,Ee)&&wt(pe,Ee,ce[Ee]);if(gt)for(var Ee of gt(ce))St.call(ce,Ee)&&wt(pe,Ee,ce[Ee]);return pe},Wt=(pe,ce)=>ct(pe,lt(ce)),$t=(pe,ce,Ee)=>new Promise((Ie,ke)=>{var wn=We=>{try{qe(Ee.next(We))}catch(he){ke(he)}},on=We=>{try{qe(Ee.throw(We))}catch(he){ke(he)}},qe=We=>We.done?Ie(We.value):Promise.resolve(We.value).then(wn,on);qe((Ee=Ee.apply(pe,ce)).next())}),Vt=({visible:pe,onOk:ce,onCancel:Ee,info:Ie})=>{var ke,wn,on,qe,We;const[he,It]=(0,Mt.useState)("1"),[Le,an]=(0,Mt.useState)([]),[Ze,Ce]=(0,Mt.useState)([]),[nn,Ye]=(0,Mt.useState)(0),[Sn,Fe]=(0,Mt.useState)(null),[vn,ue]=(0,Mt.useState)(!1);(0,Mt.useEffect)(()=>{pe&&(Ve(),In(),Dt())},[pe]);const Ve=()=>{It("1"),an([]),Fe(null),Ye(0)};(0,Mt.useEffect)(()=>{var Se,Be;((Be=(Se=Ze==null?void 0:Ze[nn])==null?void 0:Se.content)==null?void 0:Be.length)>0&&Fe(Wt(zt({},Ze[nn].content[0]),{index:0}))},[he,nn,Ze]);const In=()=>$t(void 0,null,function*(){ue(!0),yield(0,Je.ZP)("/api/home/cpu_memory_limit.json",{method:"GET"}).then(Se=>{let{max_cpu:Be,max_memory:re,min_cpu:Te,min_memory:Ne}=Se,{cpu:$e,memory:fn}=Ie;an([{name:"CPU",value:$e,min:Te,max:Be,typeName:"\u6838"},{name:"\u5185\u5B58",value:fn,min:Ne,max:re,typeName:"GB"}])}),ue(!1)}),Dt=()=>$t(void 0,null,function*(){yield(0,Je.ZP)("/api/home/example_cpu_list.json",{method:"GET"}).then(Se=>{var Be;if(Ce(Se),(Se==null?void 0:Se.length)>0){let re=Wt(zt({},(Be=Se==null?void 0:Se[0])==null?void 0:Be.content[0]),{index:0});Fe(re)}})}),Ct=Se=>{It(Se),Se==="2"&&Ye(0)},yt=(Se,Be)=>{an(Le.map(re=>re.name===Se?Be(re):re))},kt=(Se,Be)=>{isNaN(Se)||yt(Be,re=>Wt(zt({},re),{value:Se}))},jt=Se=>{var Be;if(console.log("decline",Se.value),Se.value=Number(Se.value),Se.value<=((Be=Se.min)!=null?Be:-1/0))return;let re=Se.value-.5<Se.min?Se.min:Se.value-.5;yt(Se.name,Te=>Wt(zt({},Te),{value:re}))},bt=Se=>{var Be;if(Se.value=Number(Se.value),Se.value>=((Be=Se.max)!=null?Be:1/0))return;let re=Se.value+.5>Se.max?Se.max:Se.value+.5;yt(Se.name,Te=>Wt(zt({},Te),{value:re}))},Gt=(Se,Be)=>{isNaN(Se)||yt(Be,re=>Wt(zt({},re),{value:Se}))},fe=Se=>{if(Se==null||Number.isInteger(Se))return Se;const Be=Se%1;return Be===.5?Se:Math.floor(Se)+(Be<.5?.5:1)};return et.createElement(et.Fragment,null,et.createElement(ne.default,{title:"\u8D44\u6E90\u914D\u7F6E",open:pe,width:752,destroyOnClose:!0,centered:!0,onCancel:Ee,className:Tt.modal,footer:[et.createElement("div",{className:Tt.btn_warp,key:"1"},et.createElement(ge.ZP,{onClick:Ee},"\u53D6\u6D88"),et.createElement(ge.ZP,{type:"primary",onClick:()=>{let Se=zt({},Ie);if(he=="1")Se.cpu=Le[0].value,Se.memory=Le[1].value;else if(he=="2"){if(!Sn){xe.ZP.error("\u8BF7\u9009\u62E9\u4E00\u6761\u573A\u666F\u5BF9\u5E94\u7684CPU\u4E0E\u5185\u5B58");return}Se=Wt(zt({},Se),{cpu:Sn.cpu,memory:Sn.memory})}ce(Se)}},"\u4FDD\u5B58"))]},et.createElement(ee.default,{activeKey:he,onChange:Ct},et.createElement(ee.default.TabPane,{tab:"\u81EA\u5B9A\u4E49\u914D\u7F6E",key:1},et.createElement(Ht.Z,{spinning:vn},Le==null?void 0:Le.map(Se=>et.createElement("div",{className:Tt.con_warp,key:Se==null?void 0:Se.name},et.createElement("div",null,Se==null?void 0:Se.name),et.createElement("div",null,et.createElement(oe.Z,{min:Se==null?void 0:Se.min,max:Se==null?void 0:Se.max,onChange:Be=>kt(Be,Se==null?void 0:Se.name),value:Se==null?void 0:Se.value,step:.5,style:{width:482,height:6,margin:"0 20px 0 12px"}})),et.createElement("div",{className:`${Tt.config_Warp} ${Tt.flex}`},et.createElement("div",{className:`${Tt.config_btn} ${Tt.flex}`,onClick:()=>jt(Se)},et.createElement(Ue.Z,null)),et.createElement(Re.Z,{min:Se==null?void 0:Se.min,max:Se==null?void 0:Se.max,size:"large",step:"0.1",controls:!1,style:{width:50},value:Se==null?void 0:Se.value,onChange:Be=>{const re=fe(Be);Gt(re,Se==null?void 0:Se.name)}}),et.createElement("div",{className:`${Tt.config_btn} ${Tt.flex}`,onClick:()=>bt(Se)},et.createElement(ie.Z,null))),et.createElement("div",null,Se==null?void 0:Se.typeName))))),(Ze==null?void 0:Ze.length)>0&&et.createElement(ee.default.TabPane,{tab:"\u6309\u573A\u666F\u9009\u62E9",key:2},et.createElement("div",{className:Tt.sceneList},Ze==null?void 0:Ze.map((Se,Be)=>et.createElement("div",{className:`${Tt.sceneItem} ${nn==Be&&Tt.sceneItemActive}`,key:Se==null?void 0:Se.id,onClick:()=>{Ye(Be)}},Se==null?void 0:Se.name))),((wn=(ke=Ze==null?void 0:Ze[nn])==null?void 0:ke.content)==null?void 0:wn.length)>0?et.createElement(ve.default,{rowSelection:{type:"radio",selectedRowKeys:[Sn==null?void 0:Sn.index],onChange:(Se,Be)=>{Fe(Be[0])}},columns:[{title:"CPU",dataIndex:"cpu",align:"center",render:(Se,Be)=>et.createElement("div",null,Se,"\u6838")},{title:"\u5185\u5B58",dataIndex:"memory",align:"center",render:(Se,Be)=>et.createElement("div",null,Se,"GB")}],dataSource:(on=Ze==null?void 0:Ze[nn])==null?void 0:on.content.map((Se,Be)=>Wt(zt({},Se),{index:Be})),rowKey:"index",pagination:!1,scroll:((We=(qe=Ze==null?void 0:Ze[nn])==null?void 0:qe.content)==null?void 0:We.length)>3?{y:148}:{}}):et.createElement(Ot.Z,null)))))}},9583:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return gt}});var Mt=Et(59301),ne=Et(89070),ge=Et(37568),xe=Et(28284),ee=Et(62957),Ht=Et(6767),oe=Et(14566),Re=Et(99571),ve=Et(3294),Tt=Et(55351),Ue={flexRow:"flexRow___JBN3B",flexColumn:"flexColumn___zXgFj",formWrap:"formWrap___aNgan",upload:"upload___yGdLQ",color0152d9:"color0152d9___zzEpS",colorCCC:"colorCCC___k4Dxq",footerWrap:"footerWrap___WrUZd",qrCode:"qrCode___GPwSg",a1:"a1___R6etl",code:"code___fCL_L",group:"group___n7tgy",groupNumber:"groupNumber___tw7hA",a2:"a2___GGjDE"},ie=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,et=(mt,St)=>{var wt={};for(var zt in mt)Je.call(mt,zt)&&St.indexOf(zt)<0&&(wt[zt]=mt[zt]);if(mt!=null&&ie)for(var zt of ie(mt))St.indexOf(zt)<0&&Ot.call(mt,zt)&&(wt[zt]=mt[zt]);return wt},nt=(mt,St,wt)=>new Promise((zt,Wt)=>{var $t=pe=>{try{Vt(wt.next(pe))}catch(ce){Wt(ce)}},Jt=pe=>{try{Vt(wt.throw(pe))}catch(ce){Wt(ce)}},Vt=pe=>pe.done?zt(pe.value):Promise.resolve(pe.value).then($t,Jt);Vt((wt=wt.apply(mt,St)).next())});const ct=ge.default.TextArea,lt=mt=>{var St=mt,{newShixuns:wt,globalSetting:zt,loading:Wt,dispatch:$t}=St,Jt=et(St,["newShixuns","globalSetting","loading","dispatch"]);const[Vt]=xe.default.useForm(),[pe,ce]=(0,Mt.useState)([]),Ee=qe=>{["uploading","done","removed"].includes(qe.file.status)&&ce(qe.fileList)},Ie=qe=>{var We;if(!qe.percent||qe.percent==100){const he=(We=qe.response)==null?void 0:We.id;return ee.default.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>nt(void 0,null,function*(){(yield $t({type:"newShixuns/deleteAttachment",payload:{id:he}}))&&ce(pe.filter(Le=>{var an;return((an=Le.response)==null?void 0:an.id)!==he}))})}),!1}},ke=qe=>pe.length?!1:qe.size/1024/1024>50?(Ht.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0,wn=qe=>nt(void 0,null,function*(){var We,he;const{language:It,env:Le,mode:an,code:Ze}=qe||{},Ce=yield $t({type:"newShixuns/applyShixunMirror",payload:{language:It,runtime:Le,run_method:an,attachment_id:(he=(We=pe==null?void 0:pe[0])==null?void 0:We.response)==null?void 0:he.id}});$t({type:"newShixuns/setActionTabs",payload:{}}),Ce&&Ht.ZP.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002")}),on=()=>{Vt.resetFields(),ce([])};return Mt.createElement(ee.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:wt.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:on},Mt.createElement("section",{className:Ue.qrCode},Mt.createElement("aside",{className:Ue.a1},Mt.createElement("div",{className:Ue.code},Mt.createElement("img",{width:120,height:120,src:Tt,alt:"\u4E8C\u7EF4\u7801"})),Mt.createElement("div",{className:Ue.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),Mt.createElement("div",{className:Ue.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),Mt.createElement("aside",{className:Ue.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",Mt.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),Mt.createElement(xe.default,{className:Ue.formWrap,form:Vt,labelCol:{span:4},wrapperCol:{span:20},onFinish:wn},Mt.createElement(xe.default.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},Mt.createElement(ct,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),Mt.createElement(xe.default.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},Mt.createElement(ct,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),Mt.createElement(xe.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},Mt.createElement(ct,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),Mt.createElement(xe.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},Mt.createElement("div",{className:Ue.upload},Mt.createElement(oe.default,{fileList:pe,action:`${ve.Z.API_SERVER}/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a`,onChange:Ee,onRemove:Ie,beforeUpload:ke,withCredentials:!0},Mt.createElement("span",{className:`${Ue.color0152d9} current`},"\u4E0A\u4F20\u9644\u4EF6"),Mt.createElement("span",{className:`${Ue.colorCCC} ml10`},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),Mt.createElement("div",{className:Ue.footerWrap},Mt.createElement(xe.default.Item,null,Mt.createElement(Re.ZP,{className:"mr5",size:"middle",onClick:()=>{$t({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),Mt.createElement(Re.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Wt["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};var gt=(0,ne.connect)(({newShixuns:mt,loading:St,globalSetting:wt})=>({newShixuns:mt,globalSetting:wt,loading:St.effects}))(lt)},55508:function(An,Un,Et){"use strict";var Mt=Et(59301),ne=Et(89070),ge=Et(62957),xe=Et(55351);const ee=({newShixuns:Ht,dispatch:oe,user:Re})=>{var ve;const[Tt,Ue]=(0,Mt.useState)(!1);(0,Mt.useEffect)(()=>{Ht.actionTabs.key==="Create-Environment"&&Je()},[(ve=Ht==null?void 0:Ht.actionTabs)==null?void 0:ve.key]);const ie=()=>{oe({type:"newShixuns/setActionTabs",payload:{}})},Je=()=>{var Ot,et,nt,ct;ie(),((Ot=Re.userInfo)==null?void 0:Ot.mirror_marker_status)===0?Ue(!0):((et=Re.userInfo)==null?void 0:et.mirror_marker_status)===1?ne.history.push(`/users/${(nt=Re.userInfo)==null?void 0:nt.login}/experiment-img/add`):((ct=Re.userInfo)==null?void 0:ct.mirror_marker_status)===2&&ge.default.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk(){var lt;ne.history.push(`/users/${(lt=Re.userInfo)==null?void 0:lt.login}/experiment-img`)}})};return Mt.createElement(ge.default,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",open:Tt,footer:null,onCancel:()=>{Ue(!1)}},Mt.createElement("div",{style:{textAlign:"center"}},Mt.createElement("br",null),Mt.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:xe,alt:"\u4E8C\u7EF4\u7801"})),Mt.createElement("img",null))};Un.Z=(0,ne.connect)(({newShixuns:Ht,user:oe,globalSetting:Re})=>({newShixuns:Ht,globalSetting:Re,user:oe}))(ee)},4901:function(An,Un,Et){"use strict";Et.d(Un,{BU:function(){return ne},Dj:function(){return Mt},gH:function(){return ge},vp:function(){return xe}});function Mt(ee){try{ee.mozRequestFullScreen?ee.mozRequestFullScreen():ee.webkitRequestFullScreen&&ee.webkitRequestFullScreen()}catch(Ht){console.log(Ht,":e")}}function ne(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const ge=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function xe(){var ee=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,Ht=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",ee),window.isFullScreen?window.isFullScreen:ee!=null}},24768:function(An,Un,Et){"use strict";Et.d(Un,{AL:function(){return St},Iy:function(){return Ue},Qv:function(){return Ot},ez:function(){return mt},jb:function(){return ie}});var Mt=Et(32834),ne=Et.n(Mt),ge=Et(11690),xe=Et.n(ge);let ee=1;function Ht(Jt,Vt){const pe=Jt.match(/^(\s+)(?:```)/);if(pe===null)return Vt;const ce=pe[1];return Vt.split(`
|
|
`).map(Ee=>{const Ie=Ee.match(/^\s+/);if(Ie===null)return Ee;const[ke]=Ie;return ke.length>=ce.length?Ee.slice(ce.length):Ee}).join(`
|
|
`)}let oe=[],Re=["<ul>"];const ve=new(ne()).Renderer,Tt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ue(){oe.length=0,Re=["<ul>"]}const ie={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Je(Jt,Vt,pe,ce){if(Vt>=Jt.length||Jt[Vt].level<=pe)return Vt;var Ee=Jt[Vt];ce.push("<li><a href='#"+ee+Ee.anchor+"'>"+Ee.text+"</a>"),Vt++;var Ie=[];return Vt=Je(Jt,Vt,Ee.level,Ie),Ie.length>0&&(ce.push("<ul>"),Ie.forEach(function(ke){ce.push(ke)}),ce.push("</ul>")),ce.push("</li>"),Vt=Je(Jt,Vt,pe,ce),Vt}function Ot(){return Je(oe,0,0,Re),Re.push("</ul>"),Re.join("")}const et={heading(Jt){const Vt=Tt.exec(Jt);if(ee+=1,Vt)return{type:"heading",raw:Vt[0],depth:Vt[1].length,text:Vt[2]}},fences(Jt){const Vt=this.rules.block.fences.exec(Jt);if(Vt){const pe=Vt[0];let ce=Ht(pe,Vt[3]||"");const Ee=Vt[2]?Vt[2].trim():Vt[2];if(["latex","katex","math"].indexOf(Ee)>=0){const Ie=lt(),ke=ce;ce=Ie,gt[Ie]={type:"block",expression:ke}}return{type:"code",raw:pe,lang:Ee,text:ce}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ct=0;const lt=()=>`__special_katext_id_${ct++}__`;let gt={};function mt(){return gt}function St(){ct=0,gt={}}function wt(Jt){return Jt=Jt.replace(nt,(Vt,pe)=>{const ce=lt();return gt[ce]={type:"inline",expression:pe},ce}),Jt}const zt=ve.listitem;ve.listitem=function(Jt){return zt(wt(Jt))};const Wt=ve.paragraph;ve.paragraph=function(Jt){return Wt(wt(Jt))};const $t=ve.tablecell;ve.tablecell=function(Jt,Vt){return $t(wt(Jt),Vt)},ve.code=function(Jt,Vt,pe){const ce=(Vt||"").match(/\S*/)[0];return ce?["latex","katex","math"].indexOf(ce)>=0?`<p class='editormd-tex'>${Jt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Vt}">${pe?Jt:(0,ge.escape)(Jt,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(pe?Jt:(0,ge.escape)(Jt,!0))+"</code></pre>"},ve.heading=function(Jt,Vt,pe){let ce=this.options.headerPrefix+pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return oe.push({anchor:ce,level:Vt,text:Jt}),"<h"+Vt+' id="'+ee+ce+'">'+Jt+"</h"+Vt+">"},ne().setOptions({silent:!0,gfm:!0,pedantic:!1}),ne().use({tokenizer:et,renderer:ve}),Un.ZP=ne()},46474:function(An,Un,Et){"use strict";Et.d(Un,{rX:function(){return wt},pW:function(){return zt},gy:function(){return Wt},xY:function(){return St},O5:function(){return mt},hs:function(){return nt},tJ:function(){return Ot},o1:function(){return et},Rd:function(){return gt}});var Mt=Et(89070),ne=Et(62957),ge=Et(37285),xe=Et(6767),ee=Et(24065),Ht=Et(955),oe=Et(87169),Re=Et(25510),ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQ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QAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Tt=Et.p+"static/newqrcode.a8740efb.png",Ue=Et(32637),ie=Et(59301),Je=($t,Jt,Vt)=>new Promise((pe,ce)=>{var Ee=wn=>{try{ke(Vt.next(wn))}catch(on){ce(on)}},Ie=wn=>{try{ke(Vt.throw(wn))}catch(on){ce(on)}},ke=wn=>wn.done?pe(wn.value):Promise.resolve(wn.value).then(Ee,Ie);ke((Vt=Vt.apply($t,Jt)).next())});const Ot=($t,Jt=!1,Vt=!1,pe="",ce=!1)=>!!(et($t)&&ct($t,Jt,Vt,pe,ce)),et=$t=>(0,ee.bg)()?!0:($t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),nt=$t=>{var Jt,Vt,pe;const{user:ce}=(0,Mt.getDvaApp)()._store.getState();(0,ee.bg)()&&!((Vt=(Jt=ce==null?void 0:ce.userInfo)==null?void 0:Jt.course)!=null&&Vt.course_public)&&!((pe=ce==null?void 0:ce.userInfo)!=null&&pe.profile_completed)&&$t({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ct=($t,Jt=!1,Vt=!0,pe="",ce=!1)=>{var Ee;const{user:Ie}=(0,Mt.getDvaApp)()._store.getState();return(Ee=Ie.userInfo)!=null&&Ee.profile_completed?!0:(Vt?$t({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:pe,isCurrentPage:ce}}):ne.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,Ht.xg)("/account/profile/edit"),lt()}}),!1)},lt=()=>{ne.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()}})},gt=()=>{ne.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:ie.createElement("div",{style:{textAlign:"center"}},ie.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"),ie.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Ue}),ie.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},mt=()=>{var $t;const{user:Jt}=(0,Mt.getDvaApp)()._store.getState();return($t=Jt.userInfo)!=null&&$t.professional_certification?!0:(ne.default.confirm({title:"\u63D0\u793A",centered:!0,content:ie.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,Ht.xg)("/account/certification")}}),!1)},St=()=>(0,ee.V9)()?!0:(ne.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:ie.createElement("div",{className:"tc",style:{marginLeft:-38}},ie.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),ie.createElement("img",{src:Tt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),wt=($t,Jt)=>$t?!0:(ne.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ie.createElement("div",null,ie.createElement("p",null,Jt||"\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"),ie.createElement("div",{style:{marginLeft:"110px"}},ie.createElement("img",{src:ve,width:200}),ie.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Ht.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),zt=$t=>{ne.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:ie.createElement("div",null,ie.createElement("div",null,ie.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"),ie.createElement(ge.Z,null),ie.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ie.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 ",ie.createElement("a",null,$t),"\u5929\u3002"),ie.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ie.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")),ie.createElement("div",{style:{textAlign:"center",marginTop:30}},ie.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Re,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Wt=($t,Jt="")=>{const{shixunsDetail:{detail:Vt}}=(0,Mt.getDvaApp)()._store.getState();if((Vt==null?void 0:Vt.public)===2||(Vt==null?void 0:Vt.public)===1||(Vt==null?void 0:Vt.shixun_status)===3){let pe="";return(Vt==null?void 0:Vt.public)===2&&(pe="\u5DF2\u516C\u5F00"),(Vt==null?void 0:Vt.public)===1&&(pe="\u5F85\u5BA1\u6838"),(Vt==null?void 0:Vt.shixun_status)===3&&(pe="\u5DF2\u5173\u95ED"),ne.default.info({centered:!0,icon:ie.createElement(oe.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:ie.createElement("div",{className:"tc",style:{marginLeft:-38}},ie.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},ie.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",pe,"\uFF0C",Jt,"\u3002"),ie.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),ie.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Re,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Vt==null?void 0:Vt.shixun_status)===2?(ne.default.confirm({centered:!0,icon:ie.createElement(oe.Z,null),title:"\u63D0\u793A",content:ie.createElement("div",null,ie.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Jt,"\u3002"),ie.createElement("br",null),ie.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:()=>{ne.default.confirm({width:440,centered:!0,icon:ie.createElement(oe.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:()=>Je(void 0,null,function*(){(yield $t({type:"shixunsDetail/cancelRelease",payload:{id:Vt==null?void 0:Vt.identifier}})).status!==401&&(xe.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),$t({type:"shixunsDetail/getShixunsDetail",payload:{id:Vt==null?void 0:Vt.identifier}}),$t({type:"practiceSetting/getCommonData",payload:{id:Vt==null?void 0:Vt.identifier}}))})})}}),!0):!1}},88390:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return he}});var Mt=Et(59301),ne=Et(92310),ge=Et.n(ne),xe=Et(77900),ee=Et(29509),Ht=Et(22703),oe=Et(48755),Re=Et(93083),ve=Et(63356),Tt=Et(93427),Ue=Et(51636),ie=Et(16931);const Je=new Re.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Ot=new Re.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),et=new Re.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),nt=new Re.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),ct=new Re.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),lt=new Re.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),gt=It=>{const{componentCls:Le,iconCls:an,antCls:Ze,badgeShadowSize:Ce,textFontSize:nn,textFontSizeSM:Ye,statusSize:Sn,dotSize:Fe,textFontWeight:vn,indicatorHeight:ue,indicatorHeightSM:Ve,marginXS:In,calc:Dt}=It,Ct=`${Ze}-scroll-number`,yt=(0,Tt.Z)(It,(kt,jt)=>{let{darkColor:bt}=jt;return{[`&${Le} ${Le}-color-${kt}`]:{background:bt,[`&:not(${Le}-count)`]:{color:bt},"a:hover &":{background:bt}}}});return{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(It)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${Le}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:It.indicatorZIndex,minWidth:ue,height:ue,color:It.badgeTextColor,fontWeight:vn,fontSize:nn,lineHeight:(0,Re.unit)(ue),whiteSpace:"nowrap",textAlign:"center",background:It.badgeColor,borderRadius:Dt(ue).div(2).equal(),boxShadow:`0 0 0 ${(0,Re.unit)(Ce)} ${It.badgeShadowColor}`,transition:`background ${It.motionDurationMid}`,a:{color:It.badgeTextColor},"a:hover":{color:It.badgeTextColor},"a:hover &":{background:It.badgeColorHover}},[`${Le}-count-sm`]:{minWidth:Ve,height:Ve,fontSize:Ye,lineHeight:(0,Re.unit)(Ve),borderRadius:Dt(Ve).div(2).equal()},[`${Le}-multiple-words`]:{padding:`0 ${(0,Re.unit)(It.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${Le}-dot`]:{zIndex:It.indicatorZIndex,width:Fe,minWidth:Fe,height:Fe,background:It.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,Re.unit)(Ce)} ${It.badgeShadowColor}`},[`${Le}-count, ${Le}-dot, ${Ct}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${an}-spin`]:{animationName:lt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${Le}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${Le}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:Sn,height:Sn,verticalAlign:"middle",borderRadius:"50%"},[`${Le}-status-success`]:{backgroundColor:It.colorSuccess},[`${Le}-status-processing`]:{overflow:"visible",color:It.colorInfo,backgroundColor:It.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:Ce,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Je,animationDuration:It.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${Le}-status-default`]:{backgroundColor:It.colorTextPlaceholder},[`${Le}-status-error`]:{backgroundColor:It.colorError},[`${Le}-status-warning`]:{backgroundColor:It.colorWarning},[`${Le}-status-text`]:{marginInlineStart:In,color:It.colorText,fontSize:It.fontSize}}}),yt),{[`${Le}-zoom-appear, ${Le}-zoom-enter`]:{animationName:Ot,animationDuration:It.motionDurationSlow,animationTimingFunction:It.motionEaseOutBack,animationFillMode:"both"},[`${Le}-zoom-leave`]:{animationName:et,animationDuration:It.motionDurationSlow,animationTimingFunction:It.motionEaseOutBack,animationFillMode:"both"},[`&${Le}-not-a-wrapper`]:{[`${Le}-zoom-appear, ${Le}-zoom-enter`]:{animationName:nt,animationDuration:It.motionDurationSlow,animationTimingFunction:It.motionEaseOutBack},[`${Le}-zoom-leave`]:{animationName:ct,animationDuration:It.motionDurationSlow,animationTimingFunction:It.motionEaseOutBack},[`&:not(${Le}-status)`]:{verticalAlign:"middle"},[`${Ct}-custom-component, ${Le}-count`]:{transform:"none"},[`${Ct}-custom-component, ${Ct}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[Ct]:{overflow:"hidden",transition:`all ${It.motionDurationMid} ${It.motionEaseOutBack}`,[`${Ct}-only`]:{position:"relative",display:"inline-block",height:ue,transition:`all ${It.motionDurationSlow} ${It.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${Ct}-only-unit`]:{height:ue,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${Ct}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${Le}-count, ${Le}-dot, ${Ct}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},mt=It=>{const{fontHeight:Le,lineWidth:an,marginXS:Ze,colorBorderBg:Ce}=It,nn=Le,Ye=an,Sn=It.colorTextLightSolid,Fe=It.colorError,vn=It.colorErrorHover;return(0,Ue.mergeToken)(It,{badgeFontHeight:nn,badgeShadowSize:Ye,badgeTextColor:Sn,badgeColor:Fe,badgeColorHover:vn,badgeShadowColor:Ce,badgeProcessingDuration:"1.2s",badgeRibbonOffset:Ze,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},St=It=>{const{fontSize:Le,lineHeight:an,fontSizeSM:Ze,lineWidth:Ce}=It;return{indicatorZIndex:"auto",indicatorHeight:Math.round(Le*an)-2*Ce,indicatorHeightSM:Le,dotSize:Ze/2,textFontSize:Ze,textFontSizeSM:Ze,textFontWeight:"normal",statusSize:Ze/2}};var wt=(0,ie.I$)("Badge",It=>{const Le=mt(It);return gt(Le)},St);const zt=It=>{const{antCls:Le,badgeFontHeight:an,marginXS:Ze,badgeRibbonOffset:Ce,calc:nn}=It,Ye=`${Le}-ribbon`,Sn=`${Le}-ribbon-wrapper`,Fe=(0,Tt.Z)(It,(vn,ue)=>{let{darkColor:Ve}=ue;return{[`&${Ye}-color-${vn}`]:{background:Ve,color:Ve}}});return{[Sn]:{position:"relative"},[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(It)),{position:"absolute",top:Ze,padding:`0 ${(0,Re.unit)(It.paddingXS)}`,color:It.colorPrimary,lineHeight:(0,Re.unit)(an),whiteSpace:"nowrap",backgroundColor:It.colorPrimary,borderRadius:It.borderRadiusSM,[`${Ye}-text`]:{color:It.badgeTextColor},[`${Ye}-corner`]:{position:"absolute",top:"100%",width:Ce,height:Ce,color:"currentcolor",border:`${(0,Re.unit)(nn(Ce).div(2).equal())} solid`,transform:It.badgeRibbonCornerTransform,transformOrigin:"top",filter:It.badgeRibbonCornerFilter}}),Fe),{[`&${Ye}-placement-end`]:{insetInlineEnd:nn(Ce).mul(-1).equal(),borderEndEndRadius:0,[`${Ye}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${Ye}-placement-start`]:{insetInlineStart:nn(Ce).mul(-1).equal(),borderEndStartRadius:0,[`${Ye}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var Wt=(0,ie.I$)(["Badge","Ribbon"],It=>{const Le=mt(It);return zt(Le)},St),Jt=It=>{const{className:Le,prefixCls:an,style:Ze,color:Ce,children:nn,text:Ye,placement:Sn="end",rootClassName:Fe}=It,{getPrefixCls:vn,direction:ue}=Mt.useContext(oe.E_),Ve=vn("ribbon",an),In=`${Ve}-wrapper`,[Dt,Ct,yt]=Wt(Ve,In),kt=(0,ee.o2)(Ce,!1),jt=ge()(Ve,`${Ve}-placement-${Sn}`,{[`${Ve}-rtl`]:ue==="rtl",[`${Ve}-color-${Ce}`]:kt},Le),bt={},Gt={};return Ce&&!kt&&(bt.background=Ce,Gt.color=Ce),Dt(Mt.createElement("div",{className:ge()(In,Fe,Ct,yt)},nn,Mt.createElement("div",{className:ge()(jt,Ct),style:Object.assign(Object.assign({},bt),Ze)},Mt.createElement("span",{className:`${Ve}-text`},Ye),Mt.createElement("div",{className:`${Ve}-corner`,style:Gt}))))};const Vt=It=>{const{prefixCls:Le,value:an,current:Ze,offset:Ce=0}=It;let nn;return Ce&&(nn={position:"absolute",top:`${Ce}00%`,left:0}),Mt.createElement("span",{style:nn,className:ge()(`${Le}-only-unit`,{current:Ze})},an)};function pe(It,Le,an){let Ze=It,Ce=0;for(;(Ze+10)%10!==Le;)Ze+=an,Ce+=an;return Ce}var Ee=It=>{const{prefixCls:Le,count:an,value:Ze}=It,Ce=Number(Ze),nn=Math.abs(an),[Ye,Sn]=Mt.useState(Ce),[Fe,vn]=Mt.useState(nn),ue=()=>{Sn(Ce),vn(nn)};Mt.useEffect(()=>{const Dt=setTimeout(ue,1e3);return()=>clearTimeout(Dt)},[Ce]);let Ve,In;if(Ye===Ce||Number.isNaN(Ce)||Number.isNaN(Ye))Ve=[Mt.createElement(Vt,Object.assign({},It,{key:Ce,current:!0}))],In={transition:"none"};else{Ve=[];const Dt=Ce+10,Ct=[];for(let bt=Ce;bt<=Dt;bt+=1)Ct.push(bt);const yt=Fe<nn?1:-1,kt=Ct.findIndex(bt=>bt%10===Ye);Ve=(yt<0?Ct.slice(0,kt+1):Ct.slice(kt)).map((bt,Gt)=>{const fe=bt%10;return Mt.createElement(Vt,Object.assign({},It,{key:bt,value:fe,offset:yt<0?Gt-kt:Gt,current:Gt===kt}))}),In={transform:`translateY(${-pe(Ye,Ce,yt)}00%)`}}return Mt.createElement("span",{className:`${Le}-only`,style:In,onTransitionEnd:ue},Ve)},Ie=function(It,Le){var an={};for(var Ze in It)Object.prototype.hasOwnProperty.call(It,Ze)&&Le.indexOf(Ze)<0&&(an[Ze]=It[Ze]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Ze=Object.getOwnPropertySymbols(It);Ce<Ze.length;Ce++)Le.indexOf(Ze[Ce])<0&&Object.prototype.propertyIsEnumerable.call(It,Ze[Ce])&&(an[Ze[Ce]]=It[Ze[Ce]]);return an},wn=Mt.forwardRef((It,Le)=>{const{prefixCls:an,count:Ze,className:Ce,motionClassName:nn,style:Ye,title:Sn,show:Fe,component:vn="sup",children:ue}=It,Ve=Ie(It,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:In}=Mt.useContext(oe.E_),Dt=In("scroll-number",an),Ct=Object.assign(Object.assign({},Ve),{"data-show":Fe,style:Ye,className:ge()(Dt,Ce,nn),title:Sn});let yt=Ze;if(Ze&&Number(Ze)%1===0){const kt=String(Ze).split("");yt=Mt.createElement("bdi",null,kt.map((jt,bt)=>Mt.createElement(Ee,{prefixCls:Dt,count:Number(Ze),value:jt,key:kt.length-bt})))}return Ye!=null&&Ye.borderColor&&(Ct.style=Object.assign(Object.assign({},Ye),{boxShadow:`0 0 0 1px ${Ye.borderColor} inset`})),ue?(0,Ht.Tm)(ue,kt=>({className:ge()(`${Dt}-custom-component`,kt==null?void 0:kt.className,nn)})):Mt.createElement(vn,Object.assign({},Ct,{ref:Le}),yt)}),on=function(It,Le){var an={};for(var Ze in It)Object.prototype.hasOwnProperty.call(It,Ze)&&Le.indexOf(Ze)<0&&(an[Ze]=It[Ze]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Ze=Object.getOwnPropertySymbols(It);Ce<Ze.length;Ce++)Le.indexOf(Ze[Ce])<0&&Object.prototype.propertyIsEnumerable.call(It,Ze[Ce])&&(an[Ze[Ce]]=It[Ze[Ce]]);return an};const We=Mt.forwardRef((It,Le)=>{var an,Ze,Ce,nn,Ye;const{prefixCls:Sn,scrollNumberPrefixCls:Fe,children:vn,status:ue,text:Ve,color:In,count:Dt=null,overflowCount:Ct=99,dot:yt=!1,size:kt="default",title:jt,offset:bt,style:Gt,className:fe,rootClassName:Se,classNames:Be,styles:re,showZero:Te=!1}=It,Ne=on(It,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:$e,direction:fn,badge:tn}=Mt.useContext(oe.E_),He=$e("badge",Sn),[On,Xn,Pn]=wt(He),Gn=Dt>Ct?`${Ct}+`:Dt,Ni=Gn==="0"||Gn===0,xi=Dt===null||Ni&&!Te,ki=(ue!=null||In!=null)&&xi,tr=yt&&!Ni,Qe=tr?"":Gn,sn=(0,Mt.useMemo)(()=>(Qe==null||Qe===""||Ni&&!Te)&&!tr,[Qe,Ni,Te,tr]),Qn=(0,Mt.useRef)(Dt);sn||(Qn.current=Dt);const Li=Qn.current,Ri=(0,Mt.useRef)(Qe);sn||(Ri.current=Qe);const Pi=Ri.current,ur=(0,Mt.useRef)(tr);sn||(ur.current=tr);const ir=(0,Mt.useMemo)(()=>{if(!bt)return Object.assign(Object.assign({},tn==null?void 0:tn.style),Gt);const Ji={marginTop:bt[1]};return fn==="rtl"?Ji.left=parseInt(bt[0],10):Ji.right=-parseInt(bt[0],10),Object.assign(Object.assign(Object.assign({},Ji),tn==null?void 0:tn.style),Gt)},[fn,bt,Gt,tn==null?void 0:tn.style]),pr=jt!=null?jt:typeof Li=="string"||typeof Li=="number"?Li:void 0,ci=sn||!Ve?null:Mt.createElement("span",{className:`${He}-status-text`},Ve),qi=!Li||typeof Li!="object"?void 0:(0,Ht.Tm)(Li,Ji=>({style:Object.assign(Object.assign({},ir),Ji.style)})),Pt=(0,ee.o2)(In,!1),Ii=ge()(Be==null?void 0:Be.indicator,(an=tn==null?void 0:tn.classNames)===null||an===void 0?void 0:an.indicator,{[`${He}-status-dot`]:ki,[`${He}-status-${ue}`]:!!ue,[`${He}-color-${In}`]:Pt}),Jn={};In&&!Pt&&(Jn.color=In,Jn.background=In);const er=ge()(He,{[`${He}-status`]:ki,[`${He}-not-a-wrapper`]:!vn,[`${He}-rtl`]:fn==="rtl"},fe,Se,tn==null?void 0:tn.className,(Ze=tn==null?void 0:tn.classNames)===null||Ze===void 0?void 0:Ze.root,Be==null?void 0:Be.root,Xn,Pn);if(!vn&&ki){const Ji=ir.color;return On(Mt.createElement("span",Object.assign({},Ne,{className:er,style:Object.assign(Object.assign(Object.assign({},re==null?void 0:re.root),(Ce=tn==null?void 0:tn.styles)===null||Ce===void 0?void 0:Ce.root),ir)}),Mt.createElement("span",{className:Ii,style:Object.assign(Object.assign(Object.assign({},re==null?void 0:re.indicator),(nn=tn==null?void 0:tn.styles)===null||nn===void 0?void 0:nn.indicator),Jn)}),Ve&&Mt.createElement("span",{style:{color:Ji},className:`${He}-status-text`},Ve)))}return On(Mt.createElement("span",Object.assign({ref:Le},Ne,{className:er,style:Object.assign(Object.assign({},(Ye=tn==null?void 0:tn.styles)===null||Ye===void 0?void 0:Ye.root),re==null?void 0:re.root)}),vn,Mt.createElement(xe.default,{visible:!sn,motionName:`${He}-zoom`,motionAppear:!1,motionDeadline:1e3},Ji=>{let{className:Zi}=Ji;var fi,bn;const En=$e("scroll-number",Fe),Ae=ur.current,Me=ge()(Be==null?void 0:Be.indicator,(fi=tn==null?void 0:tn.classNames)===null||fi===void 0?void 0:fi.indicator,{[`${He}-dot`]:Ae,[`${He}-count`]:!Ae,[`${He}-count-sm`]:kt==="small",[`${He}-multiple-words`]:!Ae&&Pi&&Pi.toString().length>1,[`${He}-status-${ue}`]:!!ue,[`${He}-color-${In}`]:Pt});let be=Object.assign(Object.assign(Object.assign({},re==null?void 0:re.indicator),(bn=tn==null?void 0:tn.styles)===null||bn===void 0?void 0:bn.indicator),ir);return In&&!Pt&&(be=be||{},be.background=In),Mt.createElement(wn,{prefixCls:En,show:!sn,motionClassName:Zi,className:Me,count:Pi,title:pr,style:be,key:"scrollNumber"},qi)}),ci))});We.Ribbon=Jt;var he=We},42440:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return tr}});var Mt=Et(59301),ne=Et(92310),ge=Et.n(ne),xe=Et(77321),ee=Et(49618),Ht=Et(80702),oe=Et(62853),Re=Et(52487),ve=Et(6089),Tt=Et(18929),Ue=Et(13697),ie=Et(48736),Je=Et(72308),Ot=Et(74416),et=Et(4676);function nt(Qe,sn,Qn){return(Qe-sn)/(Qn-sn)}function ct(Qe,sn,Qn,Li){var Ri=nt(sn,Qn,Li),Pi={};switch(Qe){case"rtl":Pi.right="".concat(Ri*100,"%"),Pi.transform="translateX(50%)";break;case"btt":Pi.bottom="".concat(Ri*100,"%"),Pi.transform="translateY(50%)";break;case"ttb":Pi.top="".concat(Ri*100,"%"),Pi.transform="translateY(-50%)";break;default:Pi.left="".concat(Ri*100,"%"),Pi.transform="translateX(-50%)";break}return Pi}function lt(Qe,sn){return Array.isArray(Qe)?Qe[sn]:Qe}var gt=Et(10228),mt=Mt.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),St=mt,wt=Mt.createContext({}),zt=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Wt=Mt.forwardRef(function(Qe,sn){var Qn=Qe.prefixCls,Li=Qe.value,Ri=Qe.valueIndex,Pi=Qe.onStartMove,ur=Qe.onDelete,ir=Qe.style,pr=Qe.render,ci=Qe.dragging,qi=Qe.draggingDelete,Pt=Qe.onOffsetChange,Ii=Qe.onChangeComplete,Jn=Qe.onFocus,er=Qe.onMouseEnter,Ji=(0,Ot.Z)(Qe,zt),Zi=Mt.useContext(St),fi=Zi.min,bn=Zi.max,En=Zi.direction,Ae=Zi.disabled,Me=Zi.keyboard,be=Zi.range,qn=Zi.tabIndex,ni=Zi.ariaLabelForHandle,Fi=Zi.ariaLabelledByForHandle,gn=Zi.ariaRequired,Hn=Zi.ariaValueTextFormatterForHandle,Oe=Zi.styles,De=Zi.classNames,ai="".concat(Qn,"-handle"),qt=function($n){Ae||Pi($n,Ri)},un=function($n){Jn==null||Jn($n,Ri)},Rn=function($n){er($n,Ri)},Ai=function($n){if(!Ae&&Me){var wi=null;switch($n.which||$n.keyCode){case gt.Z.LEFT:wi=En==="ltr"||En==="btt"?-1:1;break;case gt.Z.RIGHT:wi=En==="ltr"||En==="btt"?1:-1;break;case gt.Z.UP:wi=En!=="ttb"?1:-1;break;case gt.Z.DOWN:wi=En!=="ttb"?-1:1;break;case gt.Z.HOME:wi="min";break;case gt.Z.END:wi="max";break;case gt.Z.PAGE_UP:wi=2;break;case gt.Z.PAGE_DOWN:wi=-2;break;case gt.Z.BACKSPACE:case gt.Z.DELETE:ur(Ri);break}wi!==null&&($n.preventDefault(),Pt(wi,Ri))}},ln=function($n){switch($n.which||$n.keyCode){case gt.Z.LEFT:case gt.Z.RIGHT:case gt.Z.UP:case gt.Z.DOWN:case gt.Z.HOME:case gt.Z.END:case gt.Z.PAGE_UP:case gt.Z.PAGE_DOWN:Ii==null||Ii();break}},yn=ct(En,Li,fi,bn),li={};if(Ri!==null){var bi;li={tabIndex:Ae?null:lt(qn,Ri),role:"slider","aria-valuemin":fi,"aria-valuemax":bn,"aria-valuenow":Li,"aria-disabled":Ae,"aria-label":lt(ni,Ri),"aria-labelledby":lt(Fi,Ri),"aria-required":lt(gn,Ri),"aria-valuetext":(bi=lt(Hn,Ri))===null||bi===void 0?void 0:bi(Li),"aria-orientation":En==="ltr"||En==="rtl"?"horizontal":"vertical",onMouseDown:qt,onTouchStart:qt,onFocus:un,onMouseEnter:Rn,onKeyDown:Ai,onKeyUp:ln}}var Ui=Mt.createElement("div",(0,Je.Z)({ref:sn,className:ge()(ai,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(ai,"-").concat(Ri+1),Ri!==null&&be),"".concat(ai,"-dragging"),ci),"".concat(ai,"-dragging-delete"),qi),De.handle),style:(0,xe.Z)((0,xe.Z)((0,xe.Z)({},yn),ir),Oe.handle)},li,Ji));return pr&&(Ui=pr(Ui,{index:Ri,prefixCls:Qn,value:Li,dragging:ci,draggingDelete:qi})),Ui}),$t=Wt,Jt=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Vt=Mt.forwardRef(function(Qe,sn){var Qn=Qe.prefixCls,Li=Qe.style,Ri=Qe.onStartMove,Pi=Qe.onOffsetChange,ur=Qe.values,ir=Qe.handleRender,pr=Qe.activeHandleRender,ci=Qe.draggingIndex,qi=Qe.draggingDelete,Pt=Qe.onFocus,Ii=(0,Ot.Z)(Qe,Jt),Jn=Mt.useRef({}),er=Mt.useState(!1),Ji=(0,Re.Z)(er,2),Zi=Ji[0],fi=Ji[1],bn=Mt.useState(-1),En=(0,Re.Z)(bn,2),Ae=En[0],Me=En[1],be=function(Hn){Me(Hn),fi(!0)},qn=function(Hn,Oe){be(Oe),Pt==null||Pt(Hn)},ni=function(Hn,Oe){be(Oe)};Mt.useImperativeHandle(sn,function(){return{focus:function(Hn){var Oe;(Oe=Jn.current[Hn])===null||Oe===void 0||Oe.focus()},hideHelp:function(){(0,et.flushSync)(function(){fi(!1)})}}});var Fi=(0,xe.Z)({prefixCls:Qn,onStartMove:Ri,onOffsetChange:Pi,render:ir,onFocus:qn,onMouseEnter:ni},Ii);return Mt.createElement(Mt.Fragment,null,ur.map(function(gn,Hn){var Oe=ci===Hn;return Mt.createElement($t,(0,Je.Z)({ref:function(ai){ai?Jn.current[Hn]=ai:delete Jn.current[Hn]},dragging:Oe,draggingDelete:Oe&&qi,style:lt(Li,Hn),key:Hn,value:gn,valueIndex:Hn},Fi))}),pr&&Zi&&Mt.createElement($t,(0,Je.Z)({key:"a11y"},Fi,{value:ur[Ae],valueIndex:null,dragging:ci!==-1,draggingDelete:qi,render:pr,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),pe=Vt,ce=function(sn){var Qn=sn.prefixCls,Li=sn.style,Ri=sn.children,Pi=sn.value,ur=sn.onClick,ir=Mt.useContext(St),pr=ir.min,ci=ir.max,qi=ir.direction,Pt=ir.includedStart,Ii=ir.includedEnd,Jn=ir.included,er="".concat(Qn,"-text"),Ji=ct(qi,Pi,pr,ci);return Mt.createElement("span",{className:ge()(er,(0,ee.Z)({},"".concat(er,"-active"),Jn&&Pt<=Pi&&Pi<=Ii)),style:(0,xe.Z)((0,xe.Z)({},Ji),Li),onMouseDown:function(fi){fi.stopPropagation()},onClick:function(){ur(Pi)}},Ri)},Ee=ce,Ie=function(sn){var Qn=sn.prefixCls,Li=sn.marks,Ri=sn.onClick,Pi="".concat(Qn,"-mark");return Li.length?Mt.createElement("div",{className:Pi},Li.map(function(ur){var ir=ur.value,pr=ur.style,ci=ur.label;return Mt.createElement(Ee,{key:ir,prefixCls:Pi,style:pr,value:ir,onClick:Ri},ci)})):null},ke=Ie,wn=function(sn){var Qn=sn.prefixCls,Li=sn.value,Ri=sn.style,Pi=sn.activeStyle,ur=Mt.useContext(St),ir=ur.min,pr=ur.max,ci=ur.direction,qi=ur.included,Pt=ur.includedStart,Ii=ur.includedEnd,Jn="".concat(Qn,"-dot"),er=qi&&Pt<=Li&&Li<=Ii,Ji=(0,xe.Z)((0,xe.Z)({},ct(ci,Li,ir,pr)),typeof Ri=="function"?Ri(Li):Ri);return er&&(Ji=(0,xe.Z)((0,xe.Z)({},Ji),typeof Pi=="function"?Pi(Li):Pi)),Mt.createElement("span",{className:ge()(Jn,(0,ee.Z)({},"".concat(Jn,"-active"),er)),style:Ji})},on=wn,qe=function(sn){var Qn=sn.prefixCls,Li=sn.marks,Ri=sn.dots,Pi=sn.style,ur=sn.activeStyle,ir=Mt.useContext(St),pr=ir.min,ci=ir.max,qi=ir.step,Pt=Mt.useMemo(function(){var Ii=new Set;if(Li.forEach(function(er){Ii.add(er.value)}),Ri&&qi!==null)for(var Jn=pr;Jn<=ci;)Ii.add(Jn),Jn+=qi;return Array.from(Ii)},[pr,ci,qi,Ri,Li]);return Mt.createElement("div",{className:"".concat(Qn,"-step")},Pt.map(function(Ii){return Mt.createElement(on,{prefixCls:Qn,key:Ii,value:Ii,style:Pi,activeStyle:ur})}))},We=qe,he=function(sn){var Qn=sn.prefixCls,Li=sn.style,Ri=sn.start,Pi=sn.end,ur=sn.index,ir=sn.onStartMove,pr=sn.replaceCls,ci=Mt.useContext(St),qi=ci.direction,Pt=ci.min,Ii=ci.max,Jn=ci.disabled,er=ci.range,Ji=ci.classNames,Zi="".concat(Qn,"-track"),fi=nt(Ri,Pt,Ii),bn=nt(Pi,Pt,Ii),En=function(qn){!Jn&&ir&&ir(qn,-1)},Ae={};switch(qi){case"rtl":Ae.right="".concat(fi*100,"%"),Ae.width="".concat(bn*100-fi*100,"%");break;case"btt":Ae.bottom="".concat(fi*100,"%"),Ae.height="".concat(bn*100-fi*100,"%");break;case"ttb":Ae.top="".concat(fi*100,"%"),Ae.height="".concat(bn*100-fi*100,"%");break;default:Ae.left="".concat(fi*100,"%"),Ae.width="".concat(bn*100-fi*100,"%")}var Me=pr||ge()(Zi,(0,ee.Z)((0,ee.Z)({},"".concat(Zi,"-").concat(ur+1),ur!==null&&er),"".concat(Qn,"-track-draggable"),ir),Ji.track);return Mt.createElement("div",{className:Me,style:(0,xe.Z)((0,xe.Z)({},Ae),Li),onMouseDown:En,onTouchStart:En})},It=he,Le=function(sn){var Qn=sn.prefixCls,Li=sn.style,Ri=sn.values,Pi=sn.startPoint,ur=sn.onStartMove,ir=Mt.useContext(St),pr=ir.included,ci=ir.range,qi=ir.min,Pt=ir.styles,Ii=ir.classNames,Jn=Mt.useMemo(function(){if(!ci){if(Ri.length===0)return[];var Ji=Pi!=null?Pi:qi,Zi=Ri[0];return[{start:Math.min(Ji,Zi),end:Math.max(Ji,Zi)}]}for(var fi=[],bn=0;bn<Ri.length-1;bn+=1)fi.push({start:Ri[bn],end:Ri[bn+1]});return fi},[Ri,ci,Pi,qi]);if(!pr)return null;var er=Jn!=null&&Jn.length&&(Ii.tracks||Pt.tracks)?Mt.createElement(It,{index:null,prefixCls:Qn,start:Jn[0].start,end:Jn[Jn.length-1].end,replaceCls:ge()(Ii.tracks,"".concat(Qn,"-tracks")),style:Pt.tracks}):null;return Mt.createElement(Mt.Fragment,null,er,Jn.map(function(Ji,Zi){var fi=Ji.start,bn=Ji.end;return Mt.createElement(It,{index:Zi,prefixCls:Qn,style:(0,xe.Z)((0,xe.Z)({},lt(Li,Zi)),Pt.track),start:fi,end:bn,key:Zi,onStartMove:ur})}))},an=Le,Ze=Et(34280),Ce=130;function nn(Qe){var sn="targetTouches"in Qe?Qe.targetTouches[0]:Qe;return{pageX:sn.pageX,pageY:sn.pageY}}function Ye(Qe,sn,Qn,Li,Ri,Pi,ur,ir,pr,ci,qi){var Pt=Mt.useState(null),Ii=(0,Re.Z)(Pt,2),Jn=Ii[0],er=Ii[1],Ji=Mt.useState(-1),Zi=(0,Re.Z)(Ji,2),fi=Zi[0],bn=Zi[1],En=Mt.useState(!1),Ae=(0,Re.Z)(En,2),Me=Ae[0],be=Ae[1],qn=Mt.useState(Qn),ni=(0,Re.Z)(qn,2),Fi=ni[0],gn=ni[1],Hn=Mt.useState(Qn),Oe=(0,Re.Z)(Hn,2),De=Oe[0],ai=Oe[1],qt=Mt.useRef(null),un=Mt.useRef(null),Rn=Mt.useRef(null),Ai=Mt.useContext(wt),ln=Ai.onDragStart,yn=Ai.onDragChange;(0,Ze.Z)(function(){fi===-1&&gn(Qn)},[Qn,fi]),Mt.useEffect(function(){return function(){document.removeEventListener("mousemove",qt.current),document.removeEventListener("mouseup",un.current),Rn.current&&(Rn.current.removeEventListener("touchmove",qt.current),Rn.current.removeEventListener("touchend",un.current))}},[]);var li=function(wi,dr,fr){dr!==void 0&&er(dr),gn(wi);var xr=wi;fr&&(xr=wi.filter(function(cn,_r){return _r!==fi})),ur(xr),yn&&yn({rawValues:wi,deleteIndex:fr?fi:-1,draggingIndex:fi,draggingValue:dr})},bi=(0,ve.Z)(function($n,wi,dr){if($n===-1){var fr=De[0],xr=De[De.length-1],cn=Li-fr,_r=Ri-xr,kr=wi*(Ri-Li);kr=Math.max(kr,cn),kr=Math.min(kr,_r);var to=Pi(fr+kr);kr=to-fr;var rn=De.map(function(Qi){return Qi+kr});li(rn)}else{var gi=(Ri-Li)*wi,Ki=(0,Ht.Z)(Fi);Ki[$n]=De[$n];var nr=pr(Ki,gi,$n,"dist");li(nr.values,nr.value,dr)}}),Ui=function(wi,dr,fr){wi.stopPropagation();var xr=fr||Qn,cn=xr[dr];bn(dr),er(cn),ai(xr),gn(xr),be(!1);var _r=nn(wi),kr=_r.pageX,to=_r.pageY,rn=!1;ln&&ln({rawValues:xr,draggingIndex:dr,draggingValue:cn});var gi=function(Qi){Qi.preventDefault();var rr=nn(Qi),Zr=rr.pageX,Br=rr.pageY,Hr=Zr-kr,zr=Br-to,pn=Qe.current.getBoundingClientRect(),Yr=pn.width,Ln=pn.height,_i,or;switch(sn){case"btt":_i=-zr/Ln,or=Hr;break;case"ttb":_i=zr/Ln,or=Hr;break;case"rtl":_i=-Hr/Yr,or=zr;break;default:_i=Hr/Yr,or=zr}rn=ci?Math.abs(or)>Ce&&qi<Fi.length:!1,be(rn),bi(dr,_i,rn)},Ki=function nr(Qi){Qi.preventDefault(),document.removeEventListener("mouseup",nr),document.removeEventListener("mousemove",gi),Rn.current&&(Rn.current.removeEventListener("touchmove",qt.current),Rn.current.removeEventListener("touchend",un.current)),qt.current=null,un.current=null,Rn.current=null,ir(rn),bn(-1),be(!1)};document.addEventListener("mouseup",Ki),document.addEventListener("mousemove",gi),wi.currentTarget.addEventListener("touchend",Ki),wi.currentTarget.addEventListener("touchmove",gi),qt.current=gi,un.current=Ki,Rn.current=wi.currentTarget},Di=Mt.useMemo(function(){var $n=(0,Ht.Z)(Qn).sort(function(cn,_r){return cn-_r}),wi=(0,Ht.Z)(Fi).sort(function(cn,_r){return cn-_r}),dr={};wi.forEach(function(cn){dr[cn]=(dr[cn]||0)+1}),$n.forEach(function(cn){dr[cn]=(dr[cn]||0)-1});var fr=ci?1:0,xr=Object.values(dr).reduce(function(cn,_r){return cn+Math.abs(_r)},0);return xr<=fr?Fi:Qn},[Qn,Fi,ci]);return[fi,Jn,Me,Di,Ui]}var Sn=Ye;function Fe(Qe,sn,Qn,Li,Ri,Pi){var ur=Mt.useCallback(function(Jn){return Math.max(Qe,Math.min(sn,Jn))},[Qe,sn]),ir=Mt.useCallback(function(Jn){if(Qn!==null){var er=Qe+Math.round((ur(Jn)-Qe)/Qn)*Qn,Ji=function(En){return(String(En).split(".")[1]||"").length},Zi=Math.max(Ji(Qn),Ji(sn),Ji(Qe)),fi=Number(er.toFixed(Zi));return Qe<=fi&&fi<=sn?fi:null}return null},[Qn,Qe,sn,ur]),pr=Mt.useCallback(function(Jn){var er=ur(Jn),Ji=Li.map(function(bn){return bn.value});Qn!==null&&Ji.push(ir(Jn)),Ji.push(Qe,sn);var Zi=Ji[0],fi=sn-Qe;return Ji.forEach(function(bn){var En=Math.abs(er-bn);En<=fi&&(Zi=bn,fi=En)}),Zi},[Qe,sn,Li,Qn,ur,ir]),ci=function Jn(er,Ji,Zi){var fi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Ji=="number"){var bn,En=er[Zi],Ae=En+Ji,Me=[];Li.forEach(function(gn){Me.push(gn.value)}),Me.push(Qe,sn),Me.push(ir(En));var be=Ji>0?1:-1;fi==="unit"?Me.push(ir(En+be*Qn)):Me.push(ir(Ae)),Me=Me.filter(function(gn){return gn!==null}).filter(function(gn){return Ji<0?gn<=En:gn>=En}),fi==="unit"&&(Me=Me.filter(function(gn){return gn!==En}));var qn=fi==="unit"?En:Ae;bn=Me[0];var ni=Math.abs(bn-qn);if(Me.forEach(function(gn){var Hn=Math.abs(gn-qn);Hn<ni&&(bn=gn,ni=Hn)}),bn===void 0)return Ji<0?Qe:sn;if(fi==="dist")return bn;if(Math.abs(Ji)>1){var Fi=(0,Ht.Z)(er);return Fi[Zi]=bn,Jn(Fi,Ji-be,Zi,fi)}return bn}else{if(Ji==="min")return Qe;if(Ji==="max")return sn}},qi=function(er,Ji,Zi){var fi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",bn=er[Zi],En=ci(er,Ji,Zi,fi);return{value:En,changed:En!==bn}},Pt=function(er){return Pi===null&&er===0||typeof Pi=="number"&&er<Pi},Ii=function(er,Ji,Zi){var fi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",bn=er.map(pr),En=bn[Zi],Ae=ci(bn,Ji,Zi,fi);if(bn[Zi]=Ae,Ri===!1){var Me=Pi||0;Zi>0&&bn[Zi-1]!==En&&(bn[Zi]=Math.max(bn[Zi],bn[Zi-1]+Me)),Zi<bn.length-1&&bn[Zi+1]!==En&&(bn[Zi]=Math.min(bn[Zi],bn[Zi+1]-Me))}else if(typeof Pi=="number"||Pi===null){for(var be=Zi+1;be<bn.length;be+=1)for(var qn=!0;Pt(bn[be]-bn[be-1])&&qn;){var ni=qi(bn,1,be);bn[be]=ni.value,qn=ni.changed}for(var Fi=Zi;Fi>0;Fi-=1)for(var gn=!0;Pt(bn[Fi]-bn[Fi-1])&&gn;){var Hn=qi(bn,-1,Fi-1);bn[Fi-1]=Hn.value,gn=Hn.changed}for(var Oe=bn.length-1;Oe>0;Oe-=1)for(var De=!0;Pt(bn[Oe]-bn[Oe-1])&&De;){var ai=qi(bn,-1,Oe-1);bn[Oe-1]=ai.value,De=ai.changed}for(var qt=0;qt<bn.length-1;qt+=1)for(var un=!0;Pt(bn[qt+1]-bn[qt])&&un;){var Rn=qi(bn,1,qt+1);bn[qt+1]=Rn.value,un=Rn.changed}}return{value:bn[Zi],values:bn}};return[pr,Ii]}function vn(Qe){return(0,Mt.useMemo)(function(){if(Qe===!0||!Qe)return[!!Qe,!1,!1,0];var sn=Qe.editable,Qn=Qe.draggableTrack,Li=Qe.minCount,Ri=Qe.maxCount;return[!0,sn,!sn&&Qn,Li||0,Ri]},[Qe])}var ue=Mt.forwardRef(function(Qe,sn){var Qn=Qe.prefixCls,Li=Qn===void 0?"rc-slider":Qn,Ri=Qe.className,Pi=Qe.style,ur=Qe.classNames,ir=Qe.styles,pr=Qe.id,ci=Qe.disabled,qi=ci===void 0?!1:ci,Pt=Qe.keyboard,Ii=Pt===void 0?!0:Pt,Jn=Qe.autoFocus,er=Qe.onFocus,Ji=Qe.onBlur,Zi=Qe.min,fi=Zi===void 0?0:Zi,bn=Qe.max,En=bn===void 0?100:bn,Ae=Qe.step,Me=Ae===void 0?1:Ae,be=Qe.value,qn=Qe.defaultValue,ni=Qe.range,Fi=Qe.count,gn=Qe.onChange,Hn=Qe.onBeforeChange,Oe=Qe.onAfterChange,De=Qe.onChangeComplete,ai=Qe.allowCross,qt=ai===void 0?!0:ai,un=Qe.pushable,Rn=un===void 0?!1:un,Ai=Qe.reverse,ln=Qe.vertical,yn=Qe.included,li=yn===void 0?!0:yn,bi=Qe.startPoint,Ui=Qe.trackStyle,Di=Qe.handleStyle,$n=Qe.railStyle,wi=Qe.dotStyle,dr=Qe.activeDotStyle,fr=Qe.marks,xr=Qe.dots,cn=Qe.handleRender,_r=Qe.activeHandleRender,kr=Qe.track,to=Qe.tabIndex,rn=to===void 0?0:to,gi=Qe.ariaLabelForHandle,Ki=Qe.ariaLabelledByForHandle,nr=Qe.ariaRequired,Qi=Qe.ariaValueTextFormatterForHandle,rr=Mt.useRef(null),Zr=Mt.useRef(null),Br=Mt.useMemo(function(){return ln?Ai?"ttb":"btt":Ai?"rtl":"ltr"},[Ai,ln]),Hr=vn(ni),zr=(0,Re.Z)(Hr,5),pn=zr[0],Yr=zr[1],Ln=zr[2],_i=zr[3],or=zr[4],Cr=Mt.useMemo(function(){return isFinite(fi)?fi:0},[fi]),Po=Mt.useMemo(function(){return isFinite(En)?En:100},[En]),co=Mt.useMemo(function(){return Me!==null&&Me<=0?1:Me},[Me]),Kr=Mt.useMemo(function(){return typeof Rn=="boolean"?Rn?co:!1:Rn>=0?Rn:!1},[Rn,co]),eo=Mt.useMemo(function(){return Object.keys(fr||{}).map(function(oi){var Vn=fr[oi],zi={value:Number(oi)};return Vn&&(0,oe.Z)(Vn)==="object"&&!Mt.isValidElement(Vn)&&("label"in Vn||"style"in Vn)?(zi.style=Vn.style,zi.label=Vn.label):zi.label=Vn,zi}).filter(function(oi){var Vn=oi.label;return Vn||typeof Vn=="number"}).sort(function(oi,Vn){return oi.value-Vn.value})},[fr]),Ke=Fe(Cr,Po,co,eo,qt,Kr),Mn=(0,Re.Z)(Ke,2),Ge=Mn[0],Bt=Mn[1],ti=(0,Tt.Z)(qn,{value:be}),Kn=(0,Re.Z)(ti,2),ui=Kn[0],Mi=Kn[1],Ei=Mt.useMemo(function(){var oi=ui==null?[]:Array.isArray(ui)?ui:[ui],Vn=(0,Re.Z)(oi,1),zi=Vn[0],lr=zi===void 0?Cr:zi,mr=ui===null?[]:[lr];if(pn){if(mr=(0,Ht.Z)(oi),Fi||ui===void 0){var Er=Fi>=0?Fi+1:2;for(mr=mr.slice(0,Er);mr.length<Er;){var Si;mr.push((Si=mr[mr.length-1])!==null&&Si!==void 0?Si:Cr)}}mr.sort(function(cr,gr){return cr-gr})}return mr.forEach(function(cr,gr){mr[gr]=Ge(cr)}),mr},[ui,pn,Cr,Fi,Ge]),Nn=function(Vn){return pn?Vn:Vn[0]},si=(0,ve.Z)(function(oi){var Vn=(0,Ht.Z)(oi).sort(function(zi,lr){return zi-lr});gn&&!(0,Ue.Z)(Vn,Ei,!0)&&gn(Nn(Vn)),Mi(Vn)}),hi=(0,ve.Z)(function(oi){oi&&rr.current.hideHelp();var Vn=Nn(Ei);Oe==null||Oe(Vn),(0,ie.ZP)(!Oe,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),De==null||De(Vn)}),pi=function(Vn){if(!(qi||!Yr||Ei.length<=_i)){var zi=(0,Ht.Z)(Ei);zi.splice(Vn,1),Hn==null||Hn(Nn(zi)),si(zi);var lr=Math.max(0,Vn-1);rr.current.hideHelp(),rr.current.focus(lr)}},mi=Sn(Zr,Br,Ei,Cr,Po,Ge,si,hi,Bt,Yr,_i),ar=(0,Re.Z)(mi,5),Nt=ar[0],ae=ar[1],Ut=ar[2],se=ar[3],we=ar[4],Xe=function(Vn,zi){if(!qi){var lr=(0,Ht.Z)(Ei),mr=0,Er=0,Si=Po-Cr;Ei.forEach(function(Xi,dn){var Gi=Math.abs(Vn-Xi);Gi<=Si&&(Si=Gi,mr=dn),Xi<Vn&&(Er=dn)});var cr=mr;Yr&&Si!==0&&(!or||Ei.length<or)?(lr.splice(Er+1,0,Vn),cr=Er+1):lr[mr]=Vn,pn&&!Ei.length&&Fi===void 0&&lr.push(Vn);var gr=Nn(lr);if(Hn==null||Hn(gr),si(lr),zi){var Pr,Vi;(Pr=document.activeElement)===null||Pr===void 0||(Vi=Pr.blur)===null||Vi===void 0||Vi.call(Pr),rr.current.focus(cr),we(zi,cr,lr)}else Oe==null||Oe(gr),(0,ie.ZP)(!Oe,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),De==null||De(gr)}},en=function(Vn){Vn.preventDefault();var zi=Zr.current.getBoundingClientRect(),lr=zi.width,mr=zi.height,Er=zi.left,Si=zi.top,cr=zi.bottom,gr=zi.right,Pr=Vn.clientX,Vi=Vn.clientY,Xi;switch(Br){case"btt":Xi=(cr-Vi)/mr;break;case"ttb":Xi=(Vi-Si)/mr;break;case"rtl":Xi=(gr-Pr)/lr;break;default:Xi=(Pr-Er)/lr}var dn=Cr+Xi*(Po-Cr);Xe(Ge(dn),Vn)},hn=Mt.useState(null),Bn=(0,Re.Z)(hn,2),Dn=Bn[0],mn=Bn[1],ii=function(Vn,zi){if(!qi){var lr=Bt(Ei,Vn,zi);Hn==null||Hn(Nn(Ei)),si(lr.values),mn(lr.value)}};Mt.useEffect(function(){if(Dn!==null){var oi=Ei.indexOf(Dn);oi>=0&&rr.current.focus(oi)}mn(null)},[Dn]);var Bi=Mt.useMemo(function(){return Ln&&co===null?!1:Ln},[Ln,co]),de=(0,ve.Z)(function(oi,Vn){we(oi,Vn),Hn==null||Hn(Nn(Ei))}),Wn=Nt!==-1;Mt.useEffect(function(){if(!Wn){var oi=Ei.lastIndexOf(ae);rr.current.focus(oi)}},[Wn]);var Yn=Mt.useMemo(function(){return(0,Ht.Z)(se).sort(function(oi,Vn){return oi-Vn})},[se]),zn=Mt.useMemo(function(){return pn?[Yn[0],Yn[Yn.length-1]]:[Cr,Yn[0]]},[Yn,pn,Cr]),_n=(0,Re.Z)(zn,2),ei=_n[0],Oi=_n[1];Mt.useImperativeHandle(sn,function(){return{focus:function(){rr.current.focus(0)},blur:function(){var Vn,zi=document,lr=zi.activeElement;(Vn=Zr.current)!==null&&Vn!==void 0&&Vn.contains(lr)&&(lr==null||lr.blur())}}}),Mt.useEffect(function(){Jn&&rr.current.focus(0)},[]);var yi=Mt.useMemo(function(){return{min:Cr,max:Po,direction:Br,disabled:qi,keyboard:Ii,step:co,included:li,includedStart:ei,includedEnd:Oi,range:pn,tabIndex:rn,ariaLabelForHandle:gi,ariaLabelledByForHandle:Ki,ariaRequired:nr,ariaValueTextFormatterForHandle:Qi,styles:ir||{},classNames:ur||{}}},[Cr,Po,Br,qi,Ii,co,li,ei,Oi,pn,rn,gi,Ki,nr,Qi,ir,ur]);return Mt.createElement(St.Provider,{value:yi},Mt.createElement("div",{ref:Zr,className:ge()(Li,Ri,(0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(Li,"-disabled"),qi),"".concat(Li,"-vertical"),ln),"".concat(Li,"-horizontal"),!ln),"".concat(Li,"-with-marks"),eo.length)),style:Pi,onMouseDown:en,id:pr},Mt.createElement("div",{className:ge()("".concat(Li,"-rail"),ur==null?void 0:ur.rail),style:(0,xe.Z)((0,xe.Z)({},$n),ir==null?void 0:ir.rail)}),kr!==!1&&Mt.createElement(an,{prefixCls:Li,style:Ui,values:Ei,startPoint:bi,onStartMove:Bi?de:void 0}),Mt.createElement(We,{prefixCls:Li,marks:eo,dots:xr,style:wi,activeStyle:dr}),Mt.createElement(pe,{ref:rr,prefixCls:Li,style:Di,values:se,draggingIndex:Nt,draggingDelete:Ut,onStartMove:de,onOffsetChange:ii,onFocus:er,onBlur:Ji,handleRender:cn,activeHandleRender:_r,onChangeComplete:hi,onDelete:Yr?pi:void 0}),Mt.createElement(ke,{prefixCls:Li,marks:eo,onClick:Xe})))}),Ve=ue,In=Ve,Dt=Et(16089),Ct=Et(2171),kt=(0,Mt.createContext)({}),jt=Et(8654),bt=Et(25399),fe=Mt.forwardRef((Qe,sn)=>{const{open:Qn,draggingDelete:Li}=Qe,Ri=(0,Mt.useRef)(null),Pi=Qn&&!Li,ur=(0,Mt.useRef)(null);function ir(){Dt.Z.cancel(ur.current),ur.current=null}function pr(){ur.current=(0,Dt.Z)(()=>{var ci;(ci=Ri.current)===null||ci===void 0||ci.forceAlign(),ur.current=null})}return Mt.useEffect(()=>(Pi?pr():ir(),ir),[Pi,Qe.title]),Mt.createElement(bt.Z,Object.assign({ref:(0,jt.sQ)(Ri,sn)},Qe,{open:Pi}))}),Se=Et(93083),Be=Et(17835),re=Et(63356),Te=Et(16931),Ne=Et(51636);const $e=Qe=>{const{componentCls:sn,antCls:Qn,controlSize:Li,dotSize:Ri,marginFull:Pi,marginPart:ur,colorFillContentHover:ir,handleColorDisabled:pr,calc:ci,handleSize:qi,handleSizeHover:Pt,handleActiveColor:Ii,handleActiveOutlineColor:Jn,handleLineWidth:er,handleLineWidthHover:Ji,motionDurationMid:Zi}=Qe;return{[sn]:Object.assign(Object.assign({},(0,re.Wf)(Qe)),{position:"relative",height:Li,margin:`${(0,Se.unit)(ur)} ${(0,Se.unit)(Pi)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${(0,Se.unit)(Pi)} ${(0,Se.unit)(ur)}`},[`${sn}-rail`]:{position:"absolute",backgroundColor:Qe.railBg,borderRadius:Qe.borderRadiusXS,transition:`background-color ${Zi}`},[`${sn}-track,${sn}-tracks`]:{position:"absolute",transition:`background-color ${Zi}`},[`${sn}-track`]:{backgroundColor:Qe.trackBg,borderRadius:Qe.borderRadiusXS},[`${sn}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${sn}-rail`]:{backgroundColor:Qe.railHoverBg},[`${sn}-track`]:{backgroundColor:Qe.trackHoverBg},[`${sn}-dot`]:{borderColor:ir},[`${sn}-handle::after`]:{boxShadow:`0 0 0 ${(0,Se.unit)(er)} ${Qe.colorPrimaryBorderHover}`},[`${sn}-dot-active`]:{borderColor:Qe.dotActiveBorderColor}},[`${sn}-handle`]:{position:"absolute",width:qi,height:qi,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:ci(er).mul(-1).equal(),insetBlockStart:ci(er).mul(-1).equal(),width:ci(qi).add(ci(er).mul(2)).equal(),height:ci(qi).add(ci(er).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:qi,height:qi,backgroundColor:Qe.colorBgElevated,boxShadow:`0 0 0 ${(0,Se.unit)(er)} ${Qe.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
inset-inline-start ${Zi},
|
|
inset-block-start ${Zi},
|
|
width ${Zi},
|
|
height ${Zi},
|
|
box-shadow ${Zi},
|
|
outline ${Zi}
|
|
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:ci(Pt).sub(qi).div(2).add(Ji).mul(-1).equal(),insetBlockStart:ci(Pt).sub(qi).div(2).add(Ji).mul(-1).equal(),width:ci(Pt).add(ci(Ji).mul(2)).equal(),height:ci(Pt).add(ci(Ji).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,Se.unit)(Ji)} ${Ii}`,outline:`6px solid ${Jn}`,width:Pt,height:Pt,insetInlineStart:Qe.calc(qi).sub(Pt).div(2).equal(),insetBlockStart:Qe.calc(qi).sub(Pt).div(2).equal()}}},[`&-lock ${sn}-handle`]:{"&::before, &::after":{transition:"none"}},[`${sn}-mark`]:{position:"absolute",fontSize:Qe.fontSize},[`${sn}-mark-text`]:{position:"absolute",display:"inline-block",color:Qe.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:Qe.colorText}},[`${sn}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${sn}-dot`]:{position:"absolute",width:Ri,height:Ri,backgroundColor:Qe.colorBgElevated,border:`${(0,Se.unit)(er)} solid ${Qe.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${Qe.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:Qe.dotActiveBorderColor}},[`&${sn}-disabled`]:{cursor:"not-allowed",[`${sn}-rail`]:{backgroundColor:`${Qe.railBg} !important`},[`${sn}-track`]:{backgroundColor:`${Qe.trackBgDisabled} !important`},[`
|
|
${sn}-dot
|
|
`]:{backgroundColor:Qe.colorBgElevated,borderColor:Qe.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${sn}-handle::after`]:{backgroundColor:Qe.colorBgElevated,cursor:"not-allowed",width:qi,height:qi,boxShadow:`0 0 0 ${(0,Se.unit)(er)} ${pr}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
${sn}-mark-text,
|
|
${sn}-dot
|
|
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${Qn}-tooltip-inner`]:{minWidth:"unset"}})}},fn=(Qe,sn)=>{const{componentCls:Qn,railSize:Li,handleSize:Ri,dotSize:Pi,marginFull:ur,calc:ir}=Qe,pr=sn?"paddingBlock":"paddingInline",ci=sn?"width":"height",qi=sn?"height":"width",Pt=sn?"insetBlockStart":"insetInlineStart",Ii=sn?"top":"insetInlineStart",Jn=ir(Li).mul(3).sub(Ri).div(2).equal(),er=ir(Ri).sub(Li).div(2).equal(),Ji=sn?{borderWidth:`${(0,Se.unit)(er)} 0`,transform:`translateY(${(0,Se.unit)(ir(er).mul(-1).equal())})`}:{borderWidth:`0 ${(0,Se.unit)(er)}`,transform:`translateX(${(0,Se.unit)(Qe.calc(er).mul(-1).equal())})`};return{[pr]:Li,[qi]:ir(Li).mul(3).equal(),[`${Qn}-rail`]:{[ci]:"100%",[qi]:Li},[`${Qn}-track,${Qn}-tracks`]:{[qi]:Li},[`${Qn}-track-draggable`]:Object.assign({},Ji),[`${Qn}-handle`]:{[Pt]:Jn},[`${Qn}-mark`]:{insetInlineStart:0,top:0,[Ii]:ir(Li).mul(3).add(sn?0:ur).equal(),[ci]:"100%"},[`${Qn}-step`]:{insetInlineStart:0,top:0,[Ii]:Li,[ci]:"100%",[qi]:Li},[`${Qn}-dot`]:{position:"absolute",[Pt]:ir(Li).sub(Pi).div(2).equal()}}},tn=Qe=>{const{componentCls:sn,marginPartWithMark:Qn}=Qe;return{[`${sn}-horizontal`]:Object.assign(Object.assign({},fn(Qe,!0)),{[`&${sn}-with-marks`]:{marginBottom:Qn}})}},He=Qe=>{const{componentCls:sn}=Qe;return{[`${sn}-vertical`]:Object.assign(Object.assign({},fn(Qe,!1)),{height:"100%"})}},On=Qe=>{const Qn=Qe.controlHeightLG/4,Li=Qe.controlHeightSM/2,Ri=Qe.lineWidth+1,Pi=Qe.lineWidth+1*1.5,ur=Qe.colorPrimary,ir=new Be.FastColor(ur).setA(.2).toRgbString();return{controlSize:Qn,railSize:4,handleSize:Qn,handleSizeHover:Li,dotSize:8,handleLineWidth:Ri,handleLineWidthHover:Pi,railBg:Qe.colorFillTertiary,railHoverBg:Qe.colorFillSecondary,trackBg:Qe.colorPrimaryBorder,trackHoverBg:Qe.colorPrimaryBorderHover,handleColor:Qe.colorPrimaryBorder,handleActiveColor:ur,handleActiveOutlineColor:ir,handleColorDisabled:new Be.FastColor(Qe.colorTextDisabled).onBackground(Qe.colorBgContainer).toHexString(),dotBorderColor:Qe.colorBorderSecondary,dotActiveBorderColor:Qe.colorPrimaryBorder,trackBgDisabled:Qe.colorBgContainerDisabled}};var Xn=(0,Te.I$)("Slider",Qe=>{const sn=(0,Ne.mergeToken)(Qe,{marginPart:Qe.calc(Qe.controlHeight).sub(Qe.controlSize).div(2).equal(),marginFull:Qe.calc(Qe.controlSize).div(2).equal(),marginPartWithMark:Qe.calc(Qe.controlHeightLG).sub(Qe.controlSize).equal()});return[$e(sn),tn(sn),He(sn)]},On);function Pn(){const[Qe,sn]=Mt.useState(!1),Qn=Mt.useRef(null),Li=()=>{Dt.Z.cancel(Qn.current)},Ri=Pi=>{Li(),Pi?sn(Pi):Qn.current=(0,Dt.Z)(()=>{sn(Pi)})};return Mt.useEffect(()=>Li,[]),[Qe,Ri]}var Gn=Et(48755),Ni=function(Qe,sn){var Qn={};for(var Li in Qe)Object.prototype.hasOwnProperty.call(Qe,Li)&&sn.indexOf(Li)<0&&(Qn[Li]=Qe[Li]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ri=0,Li=Object.getOwnPropertySymbols(Qe);Ri<Li.length;Ri++)sn.indexOf(Li[Ri])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Li[Ri])&&(Qn[Li[Ri]]=Qe[Li[Ri]]);return Qn};function xi(Qe,sn){return Qe||Qe===null?Qe:sn||sn===null?sn:Qn=>typeof Qn=="number"?Qn.toString():""}var tr=Mt.forwardRef((Qe,sn)=>{const{prefixCls:Qn,range:Li,className:Ri,rootClassName:Pi,style:ur,disabled:ir,tooltipPrefixCls:pr,tipFormatter:ci,tooltipVisible:qi,getTooltipPopupContainer:Pt,tooltipPlacement:Ii,tooltip:Jn={},onChangeComplete:er,classNames:Ji,styles:Zi}=Qe,fi=Ni(Qe,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:bn}=Qe,{getPrefixCls:En,direction:Ae,className:Me,style:be,classNames:qn,styles:ni,getPopupContainer:Fi}=(0,Gn.dj)("slider"),gn=Mt.useContext(Ct.Z),Hn=ir!=null?ir:gn,{handleRender:Oe,direction:De}=Mt.useContext(kt),qt=(De||Ae)==="rtl",[un,Rn]=Pn(),[Ai,ln]=Pn(),yn=Object.assign({},Jn),{open:li,placement:bi,getPopupContainer:Ui,prefixCls:Di,formatter:$n}=yn,wi=li!=null?li:qi,dr=(un||Ai)&&wi!==!1,fr=xi($n,ci),[xr,cn]=Pn(),_r=pn=>{er==null||er(pn),cn(!1)},kr=(pn,Yr)=>pn||(Yr?qt?"left":"right":"top"),to=En("slider",Qn),[rn,gi,Ki]=Xn(to),nr=ge()(Ri,Me,qn.root,Ji==null?void 0:Ji.root,Pi,{[`${to}-rtl`]:qt,[`${to}-lock`]:xr},gi,Ki);qt&&!fi.vertical&&(fi.reverse=!fi.reverse),Mt.useEffect(()=>{const pn=()=>{(0,Dt.Z)(()=>{ln(!1)},1)};return document.addEventListener("mouseup",pn),()=>{document.removeEventListener("mouseup",pn)}},[]);const Qi=Li&&!wi,rr=Oe||((pn,Yr)=>{const{index:Ln}=Yr,_i=pn.props;function or(Kr,eo,Ke){var Mn,Ge,Bt,ti;Ke&&((Ge=(Mn=fi)[Kr])===null||Ge===void 0||Ge.call(Mn,eo)),(ti=(Bt=_i)[Kr])===null||ti===void 0||ti.call(Bt,eo)}const Cr=Object.assign(Object.assign({},_i),{onMouseEnter:Kr=>{Rn(!0),or("onMouseEnter",Kr)},onMouseLeave:Kr=>{Rn(!1),or("onMouseLeave",Kr)},onMouseDown:Kr=>{ln(!0),cn(!0),or("onMouseDown",Kr)},onFocus:Kr=>{var eo;ln(!0),(eo=fi.onFocus)===null||eo===void 0||eo.call(fi,Kr),or("onFocus",Kr,!0)},onBlur:Kr=>{var eo;ln(!1),(eo=fi.onBlur)===null||eo===void 0||eo.call(fi,Kr),or("onBlur",Kr,!0)}}),Po=Mt.cloneElement(pn,Cr),co=(!!wi||dr)&&fr!==null;return Qi?Po:Mt.createElement(fe,Object.assign({},yn,{prefixCls:En("tooltip",Di!=null?Di:pr),title:fr?fr(Yr.value):"",open:co,placement:kr(bi!=null?bi:Ii,bn),key:Ln,classNames:{root:`${to}-tooltip`},getPopupContainer:Ui||Pt||Fi}),Po)}),Zr=Qi?(pn,Yr)=>{const Ln=Mt.cloneElement(pn,{style:Object.assign(Object.assign({},pn.props.style),{visibility:"hidden"})});return Mt.createElement(fe,Object.assign({},yn,{prefixCls:En("tooltip",Di!=null?Di:pr),title:fr?fr(Yr.value):"",open:fr!==null&&dr,placement:kr(bi!=null?bi:Ii,bn),key:"tooltip",classNames:{root:`${to}-tooltip`},getPopupContainer:Ui||Pt||Fi,draggingDelete:Yr.draggingDelete}),Ln)}:void 0,Br=Object.assign(Object.assign(Object.assign(Object.assign({},ni.root),be),Zi==null?void 0:Zi.root),ur),Hr=Object.assign(Object.assign({},ni.tracks),Zi==null?void 0:Zi.tracks),zr=ge()(qn.tracks,Ji==null?void 0:Ji.tracks);return rn(Mt.createElement(In,Object.assign({},fi,{classNames:Object.assign({handle:ge()(qn.handle,Ji==null?void 0:Ji.handle),rail:ge()(qn.rail,Ji==null?void 0:Ji.rail),track:ge()(qn.track,Ji==null?void 0:Ji.track)},zr?{tracks:zr}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},ni.handle),Zi==null?void 0:Zi.handle),rail:Object.assign(Object.assign({},ni.rail),Zi==null?void 0:Zi.rail),track:Object.assign(Object.assign({},ni.track),Zi==null?void 0:Zi.track)},Object.keys(Hr).length?{tracks:Hr}:{}),step:fi.step,range:Li,className:nr,style:Br,disabled:Hn,ref:sn,prefixCls:to,handleRender:rr,activeHandleRender:Zr,onChangeComplete:_r})))})},22275:function(An,Un,Et){"use strict";var Mt,ne=Et(8219).default;Mt={value:!0},Un.Z=void 0;var ge=ne(Et(44820)),xe=ne(Et(31191));const ee={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},ge.default),timePickerLocale:Object.assign({},xe.default)};ee.lang.ok="\u786E\u5B9A";var Ht=Un.Z=ee},31191:function(An,Un){"use strict";Object.defineProperty(Un,"__esModule",{value:!0}),Un.default=void 0;const Et={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var Mt=Un.default=Et},99498:function(An,Un,Et){(function(Mt){Mt(Et(89780))})(function(Mt){Mt.defineOption("placeholder","",function(Re,ve,Tt){var Ue=Tt&&Tt!=Mt.Init;if(ve&&!Ue)Re.on("blur",ee),Re.on("change",Ht),Re.on("swapDoc",Ht),Mt.on(Re.getInputField(),"compositionupdate",Re.state.placeholderCompose=function(){xe(Re)}),Ht(Re);else if(!ve&&Ue){Re.off("blur",ee),Re.off("change",Ht),Re.off("swapDoc",Ht),Mt.off(Re.getInputField(),"compositionupdate",Re.state.placeholderCompose),ne(Re);var ie=Re.getWrapperElement();ie.className=ie.className.replace(" CodeMirror-empty","")}ve&&!Re.hasFocus()&&ee(Re)});function ne(Re){Re.state.placeholder&&(Re.state.placeholder.parentNode.removeChild(Re.state.placeholder),Re.state.placeholder=null)}function ge(Re){ne(Re);var ve=Re.state.placeholder=document.createElement("pre");ve.style.cssText="height: 0; overflow: visible",ve.style.direction=Re.getOption("direction"),ve.className="CodeMirror-placeholder CodeMirror-line-like";var Tt=Re.getOption("placeholder");typeof Tt=="string"&&(Tt=document.createTextNode(Tt)),ve.appendChild(Tt),Re.display.lineSpace.insertBefore(ve,Re.display.lineSpace.firstChild)}function xe(Re){setTimeout(function(){var ve=!1,Tt=Re.getInputField();Tt.nodeName=="TEXTAREA"?ve=!Tt.value:Re.lineCount()==1&&(ve=!/[^\u200b]/.test(Tt.querySelector(".CodeMirror-line").textContent)),ve?ge(Re):ne(Re)},20)}function ee(Re){oe(Re)&&ge(Re)}function Ht(Re){var ve=Re.getWrapperElement(),Tt=oe(Re);ve.className=ve.className.replace(" CodeMirror-empty","")+(Tt?" CodeMirror-empty":""),Tt?ge(Re):ne(Re)}function oe(Re){return Re.lineCount()===1&&Re.getLine(0)===""}})},25717:function(An,Un,Et){(function(Mt){Mt(Et(89780))})(function(Mt){var ne={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=Mt.Pos;Mt.defineOption("autoCloseBrackets",!1,function(et,nt,ct){ct&&ct!=Mt.Init&&(et.removeKeyMap(ee),et.state.closeBrackets=null),nt&&(Ht(xe(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(ee))});function xe(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:ne[nt]}var ee={Backspace:ve,Enter:Tt};function Ht(et){for(var nt=0;nt<et.length;nt++){var ct=et.charAt(nt),lt="'"+ct+"'";ee[lt]||(ee[lt]=oe(ct))}}Ht(ne.pairs+"`");function oe(et){return function(nt){return ie(nt,et)}}function Re(et){var nt=et.state.closeBrackets;if(!nt||nt.override)return nt;var ct=et.getModeAt(et.getCursor());return ct.closeBrackets||nt}function ve(et){var nt=Re(et);if(!nt||et.getOption("disableInput"))return Mt.Pass;for(var ct=xe(nt,"pairs"),lt=et.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return Mt.Pass;var mt=Je(et,lt[gt].head);if(!mt||ct.indexOf(mt)%2!=0)return Mt.Pass}for(var gt=lt.length-1;gt>=0;gt--){var St=lt[gt].head;et.replaceRange("",ge(St.line,St.ch-1),ge(St.line,St.ch+1),"+delete")}}function Tt(et){var nt=Re(et),ct=nt&&xe(nt,"explode");if(!ct||et.getOption("disableInput"))return Mt.Pass;for(var lt=et.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return Mt.Pass;var mt=Je(et,lt[gt].head);if(!mt||ct.indexOf(mt)%2!=0)return Mt.Pass}et.operation(function(){var St=et.lineSeparator()||`
|
|
`;et.replaceSelection(St+St,null),et.execCommand("goCharLeft"),lt=et.listSelections();for(var wt=0;wt<lt.length;wt++){var zt=lt[wt].head.line;et.indentLine(zt,null,!0),et.indentLine(zt+1,null,!0)}})}function Ue(et){var nt=Mt.cmpPos(et.anchor,et.head)>0;return{anchor:new ge(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new ge(et.head.line,et.head.ch+(nt?1:-1))}}function ie(et,nt){var ct=Re(et);if(!ct||et.getOption("disableInput"))return Mt.Pass;var lt=xe(ct,"pairs"),gt=lt.indexOf(nt);if(gt==-1)return Mt.Pass;for(var mt=xe(ct,"closeBefore"),St=xe(ct,"triples"),wt=lt.charAt(gt+1)==nt,zt=et.listSelections(),Wt=gt%2==0,$t,Jt=0;Jt<zt.length;Jt++){var Vt=zt[Jt],pe=Vt.head,ce,Ee=et.getRange(pe,ge(pe.line,pe.ch+1));if(Wt&&!Vt.empty())ce="surround";else if((wt||!Wt)&&Ee==nt)wt&&Ot(et,pe)?ce="both":St.indexOf(nt)>=0&&et.getRange(pe,ge(pe.line,pe.ch+3))==nt+nt+nt?ce="skipThree":ce="skip";else if(wt&&pe.ch>1&&St.indexOf(nt)>=0&&et.getRange(ge(pe.line,pe.ch-2),pe)==nt+nt){if(pe.ch>2&&/\bstring/.test(et.getTokenTypeAt(ge(pe.line,pe.ch-2))))return Mt.Pass;ce="addFour"}else if(wt){var Ie=pe.ch==0?" ":et.getRange(ge(pe.line,pe.ch-1),pe);if(!Mt.isWordChar(Ee)&&Ie!=nt&&!Mt.isWordChar(Ie))ce="both";else return Mt.Pass}else if(Wt&&(Ee.length===0||/\s/.test(Ee)||mt.indexOf(Ee)>-1))ce="both";else return Mt.Pass;if(!$t)$t=ce;else if($t!=ce)return Mt.Pass}var ke=gt%2?lt.charAt(gt-1):nt,wn=gt%2?nt:lt.charAt(gt+1);et.operation(function(){if($t=="skip")et.execCommand("goCharRight");else if($t=="skipThree")for(var on=0;on<3;on++)et.execCommand("goCharRight");else if($t=="surround"){for(var qe=et.getSelections(),on=0;on<qe.length;on++)qe[on]=ke+qe[on]+wn;et.replaceSelections(qe,"around"),qe=et.listSelections().slice();for(var on=0;on<qe.length;on++)qe[on]=Ue(qe[on]);et.setSelections(qe)}else $t=="both"?(et.replaceSelection(ke+wn,null),et.triggerElectric(ke+wn),et.execCommand("goCharLeft")):$t=="addFour"&&(et.replaceSelection(ke+ke+ke+ke,"before"),et.execCommand("goCharRight"))})}function Je(et,nt){var ct=et.getRange(ge(nt.line,nt.ch-1),ge(nt.line,nt.ch+1));return ct.length==2?ct:null}function Ot(et,nt){var ct=et.getTokenAt(ge(nt.line,nt.ch+1));return/\bstring/.test(ct.type)&&ct.start==nt.ch&&(nt.ch==0||!/\bstring/.test(et.getTokenTypeAt(nt)))}})},6313:function(An,Un,Et){(function(Mt){Mt(Et(89780),Et(32855))})(function(Mt){Mt.defineOption("autoCloseTags",!1,function(ve,Tt,Ue){if(Ue!=Mt.Init&&Ue&&ve.removeKeyMap("autoCloseTags"),!!Tt){var ie={name:"autoCloseTags"};(typeof Tt!="object"||Tt.whenClosing!==!1)&&(ie["'/'"]=function(Je){return Ht(Je)}),(typeof Tt!="object"||Tt.whenOpening!==!1)&&(ie["'>'"]=function(Je){return xe(Je)}),ve.addKeyMap(ie)}});var ne=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ge=["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 xe(ve){if(ve.getOption("disableInput"))return Mt.Pass;for(var Tt=ve.listSelections(),Ue=[],ie=ve.getOption("autoCloseTags"),Je=0;Je<Tt.length;Je++){if(!Tt[Je].empty())return Mt.Pass;var Ot=Tt[Je].head,et=ve.getTokenAt(Ot),nt=Mt.innerMode(ve.getMode(),et.state),ct=nt.state,lt=nt.mode.xmlCurrentTag&&nt.mode.xmlCurrentTag(ct),gt=lt&<.name;if(!gt)return Mt.Pass;var mt=nt.mode.configuration=="html",St=typeof ie=="object"&&ie.dontCloseTags||mt&&ne,wt=typeof ie=="object"&&ie.indentTags||mt&≥et.end>Ot.ch&&(gt=gt.slice(0,gt.length-et.end+Ot.ch));var zt=gt.toLowerCase();if(!gt||et.type=="string"&&(et.end!=Ot.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&<.close||et.string.indexOf("/")==Ot.ch-et.start-1||St&&oe(St,zt)>-1||Re(ve,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ct)||[],gt,Ot,!0))return Mt.Pass;var Wt=typeof ie=="object"&&ie.emptyTags;if(Wt&&oe(Wt,gt)>-1){Ue[Je]={text:"/>",newPos:Mt.Pos(Ot.line,Ot.ch+2)};continue}var $t=wt&&oe(wt,zt)>-1;Ue[Je]={indent:$t,text:">"+($t?`
|
|
|
|
`:"")+"</"+gt+">",newPos:$t?Mt.Pos(Ot.line+1,0):Mt.Pos(Ot.line,Ot.ch+1)}}for(var Jt=typeof ie=="object"&&ie.dontIndentOnAutoClose,Je=Tt.length-1;Je>=0;Je--){var Vt=Ue[Je];ve.replaceRange(Vt.text,Tt[Je].head,Tt[Je].anchor,"+insert");var pe=ve.listSelections().slice(0);pe[Je]={head:Vt.newPos,anchor:Vt.newPos},ve.setSelections(pe),!Jt&&Vt.indent&&(ve.indentLine(Vt.newPos.line,null,!0),ve.indentLine(Vt.newPos.line+1,null,!0))}}function ee(ve,Tt){for(var Ue=ve.listSelections(),ie=[],Je=Tt?"/":"</",Ot=ve.getOption("autoCloseTags"),et=typeof Ot=="object"&&Ot.dontIndentOnSlash,nt=0;nt<Ue.length;nt++){if(!Ue[nt].empty())return Mt.Pass;var ct=Ue[nt].head,lt=ve.getTokenAt(ct),gt=Mt.innerMode(ve.getMode(),lt.state),mt=gt.state;if(Tt&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=ct.ch-1))return Mt.Pass;var St,wt=gt.mode.name!="xml"&&ve.getMode().name=="htmlmixed";if(wt&>.mode.name=="javascript")St=Je+"script";else if(wt&>.mode.name=="css")St=Je+"style";else{var zt=gt.mode.xmlCurrentContext&>.mode.xmlCurrentContext(mt);if(!zt||zt.length&&Re(ve,zt,zt[zt.length-1],ct))return Mt.Pass;St=Je+zt[zt.length-1]}ve.getLine(ct.line).charAt(lt.end)!=">"&&(St+=">"),ie[nt]=St}if(ve.replaceSelections(ie),Ue=ve.listSelections(),!et)for(var nt=0;nt<Ue.length;nt++)(nt==Ue.length-1||Ue[nt].head.line<Ue[nt+1].head.line)&&ve.indentLine(Ue[nt].head.line)}function Ht(ve){return ve.getOption("disableInput")?Mt.Pass:ee(ve,!0)}Mt.commands.closeTag=function(ve){return ee(ve)};function oe(ve,Tt){if(ve.indexOf)return ve.indexOf(Tt);for(var Ue=0,ie=ve.length;Ue<ie;++Ue)if(ve[Ue]==Tt)return Ue;return-1}function Re(ve,Tt,Ue,ie,Je){if(!Mt.scanForClosingTag)return!1;var Ot=Math.min(ve.lastLine()+1,ie.line+500),et=Mt.scanForClosingTag(ve,ie,null,Ot);if(!et||et.tag!=Ue)return!1;for(var nt=Je?1:0,ct=Tt.length-1;ct>=0&&Tt[ct]==Ue;ct--)++nt;ie=et.to;for(var ct=1;ct<nt;ct++){var lt=Mt.scanForClosingTag(ve,ie,null,Ot);if(!lt||lt.tag!=Ue)return!1;ie=lt.to}return!0}})},32855:function(An,Un,Et){(function(Mt){Mt(Et(89780))})(function(Mt){"use strict";var ne=Mt.Pos;function ge(ct,lt){return ct.line-lt.line||ct.ch-lt.ch}var xe="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",ee=xe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ht=new RegExp("<(/?)(["+xe+"]["+ee+"]*)","g");function oe(ct,lt,gt,mt){this.line=lt,this.ch=gt,this.cm=ct,this.text=ct.getLine(lt),this.min=mt?Math.max(mt.from,ct.firstLine()):ct.firstLine(),this.max=mt?Math.min(mt.to-1,ct.lastLine()):ct.lastLine()}function Re(ct,lt){var gt=ct.cm.getTokenTypeAt(ne(ct.line,lt));return gt&&/\btag\b/.test(gt)}function ve(ct){if(!(ct.line>=ct.max))return ct.ch=0,ct.text=ct.cm.getLine(++ct.line),!0}function Tt(ct){if(!(ct.line<=ct.min))return ct.text=ct.cm.getLine(--ct.line),ct.ch=ct.text.length,!0}function Ue(ct){for(;;){var lt=ct.text.indexOf(">",ct.ch);if(lt==-1){if(ve(ct))continue;return}if(!Re(ct,lt+1)){ct.ch=lt+1;continue}var gt=ct.text.lastIndexOf("/",lt),mt=gt>-1&&!/\S/.test(ct.text.slice(gt+1,lt));return ct.ch=lt+1,mt?"selfClose":"regular"}}function ie(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf("<",ct.ch-1):-1;if(lt==-1){if(Tt(ct))continue;return}if(!Re(ct,lt+1)){ct.ch=lt;continue}Ht.lastIndex=lt,ct.ch=lt;var gt=Ht.exec(ct.text);if(gt&>.index==lt)return gt}}function Je(ct){for(;;){Ht.lastIndex=ct.ch;var lt=Ht.exec(ct.text);if(!lt){if(ve(ct))continue;return}if(!Re(ct,lt.index+1)){ct.ch=lt.index+1;continue}return ct.ch=lt.index+lt[0].length,lt}}function Ot(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf(">",ct.ch-1):-1;if(lt==-1){if(Tt(ct))continue;return}if(!Re(ct,lt+1)){ct.ch=lt;continue}var gt=ct.text.lastIndexOf("/",lt),mt=gt>-1&&!/\S/.test(ct.text.slice(gt+1,lt));return ct.ch=lt+1,mt?"selfClose":"regular"}}function et(ct,lt){for(var gt=[];;){var mt=Je(ct),St,wt=ct.line,zt=ct.ch-(mt?mt[0].length:0);if(!mt||!(St=Ue(ct)))return;if(St!="selfClose")if(mt[1]){for(var Wt=gt.length-1;Wt>=0;--Wt)if(gt[Wt]==mt[2]){gt.length=Wt;break}if(Wt<0&&(!lt||lt==mt[2]))return{tag:mt[2],from:ne(wt,zt),to:ne(ct.line,ct.ch)}}else gt.push(mt[2])}}function nt(ct,lt){for(var gt=[];;){var mt=Ot(ct);if(!mt)return;if(mt=="selfClose"){ie(ct);continue}var St=ct.line,wt=ct.ch,zt=ie(ct);if(!zt)return;if(zt[1])gt.push(zt[2]);else{for(var Wt=gt.length-1;Wt>=0;--Wt)if(gt[Wt]==zt[2]){gt.length=Wt;break}if(Wt<0&&(!lt||lt==zt[2]))return{tag:zt[2],from:ne(ct.line,ct.ch),to:ne(St,wt)}}}}Mt.registerHelper("fold","xml",function(ct,lt){for(var gt=new oe(ct,lt.line,0);;){var mt=Je(gt);if(!mt||gt.line!=lt.line)return;var St=Ue(gt);if(!St)return;if(!mt[1]&&St!="selfClose"){var wt=ne(gt.line,gt.ch),zt=et(gt,mt[2]);return zt&&ge(zt.from,wt)>0?{from:wt,to:zt.from}:null}}}),Mt.findMatchingTag=function(ct,lt,gt){var mt=new oe(ct,lt.line,lt.ch,gt);if(!(mt.text.indexOf(">")==-1&&mt.text.indexOf("<")==-1)){var St=Ue(mt),wt=St&&ne(mt.line,mt.ch),zt=St&&ie(mt);if(!(!St||!zt||ge(mt,lt)>0)){var Wt={from:ne(mt.line,mt.ch),to:wt,tag:zt[2]};return St=="selfClose"?{open:Wt,close:null,at:"open"}:zt[1]?{open:nt(mt,zt[2]),close:Wt,at:"close"}:(mt=new oe(ct,wt.line,wt.ch,gt),{open:Wt,close:et(mt,zt[2]),at:"open"})}}},Mt.findEnclosingTag=function(ct,lt,gt,mt){for(var St=new oe(ct,lt.line,lt.ch,gt);;){var wt=nt(St,mt);if(!wt)break;var zt=new oe(ct,lt.line,lt.ch,gt),Wt=et(zt,wt.tag);if(Wt)return{open:wt,close:Wt}}},Mt.scanForClosingTag=function(ct,lt,gt,mt){var St=new oe(ct,lt.line,lt.ch,mt?{from:0,to:mt}:null);return et(St,gt)}})},89780:function(An){(function(Un,Et){An.exports=Et()})(this,function(){"use strict";var Un=navigator.userAgent,Et=navigator.platform,Mt=/gecko\/\d/i.test(Un),ne=/MSIE \d/.test(Un),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Un),xe=/Edge\/(\d+)/.exec(Un),ee=ne||ge||xe,Ht=ee&&(ne?document.documentMode||6:+(xe||ge)[1]),oe=!xe&&/WebKit\//.test(Un),Re=oe&&/Qt\/\d+\.\d+/.test(Un),ve=!xe&&/Chrome\//.test(Un),Tt=/Opera\//.test(Un),Ue=/Apple Computer/.test(navigator.vendor),ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Un),Je=/PhantomJS/.test(Un),Ot=!xe&&/AppleWebKit/.test(Un)&&/Mobile\/\w+/.test(Un),et=/Android/.test(Un),nt=Ot||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Un),ct=Ot||/Mac/.test(Et),lt=/\bCrOS\b/.test(Un),gt=/win/i.test(Et),mt=Tt&&Un.match(/Version\/(\d*\.\d*)/);mt&&(mt=Number(mt[1])),mt&&mt>=15&&(Tt=!1,oe=!0);var St=ct&&(Re||Tt&&(mt==null||mt<12.11)),wt=Mt||ee&&Ht>=9;function zt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Wt=function(it,at){var dt=it.className,ht=zt(at).exec(dt);if(ht){var pt=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(pt?ht[1]+pt:"")}};function $t(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Jt(it,at){return $t(it).appendChild(at)}function Vt(it,at,dt,ht){var pt=document.createElement(it);if(dt&&(pt.className=dt),ht&&(pt.style.cssText=ht),typeof at=="string")pt.appendChild(document.createTextNode(at));else if(at)for(var At=0;At<at.length;++At)pt.appendChild(at[At]);return pt}function pe(it,at,dt,ht){var pt=Vt(it,at,dt,ht);return pt.setAttribute("role","presentation"),pt}var ce;document.createRange?ce=function(it,at,dt,ht){var pt=document.createRange();return pt.setEnd(ht||it,dt),pt.setStart(it,at),pt}:ce=function(it,at,dt){var ht=document.body.createTextRange();try{ht.moveToElementText(it.parentNode)}catch(pt){return ht}return ht.collapse(!0),ht.moveEnd("character",dt),ht.moveStart("character",at),ht};function Ee(it,at){if(at.nodeType==3&&(at=at.parentNode),it.contains)return it.contains(at);do if(at.nodeType==11&&(at=at.host),at==it)return!0;while(at=at.parentNode)}function Ie(){var it;try{it=document.activeElement}catch(at){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function ke(it,at){var dt=it.className;zt(at).test(dt)||(it.className+=(dt?" ":"")+at)}function wn(it,at){for(var dt=it.split(" "),ht=0;ht<dt.length;ht++)dt[ht]&&!zt(dt[ht]).test(at)&&(at+=" "+dt[ht]);return at}var on=function(it){it.select()};Ot?on=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:ee&&(on=function(it){try{it.select()}catch(at){}});function qe(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function We(it,at,dt){at||(at={});for(var ht in it)it.hasOwnProperty(ht)&&(dt!==!1||!at.hasOwnProperty(ht))&&(at[ht]=it[ht]);return at}function he(it,at,dt,ht,pt){at==null&&(at=it.search(/[^\s\u00a0]/),at==-1&&(at=it.length));for(var At=ht||0,Rt=pt||0;;){var Yt=it.indexOf(" ",At);if(Yt<0||Yt>=at)return Rt+(at-At);Rt+=Yt-At,Rt+=dt-Rt%dt,At=Yt+1}}var It=function(){this.id=null,this.f=null,this.time=0,this.handler=qe(this.onTimeout,this)};It.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},It.prototype.set=function(it,at){this.f=at;var dt=+new Date+it;(!this.id||dt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=dt)};function Le(it,at){for(var dt=0;dt<it.length;++dt)if(it[dt]==at)return dt;return-1}var an=50,Ze={toString:function(){return"CodeMirror.Pass"}},Ce={scroll:!1},nn={origin:"*mouse"},Ye={origin:"+move"};function Sn(it,at,dt){for(var ht=0,pt=0;;){var At=it.indexOf(" ",ht);At==-1&&(At=it.length);var Rt=At-ht;if(At==it.length||pt+Rt>=at)return ht+Math.min(Rt,at-pt);if(pt+=At-ht,pt+=dt-pt%dt,ht=At+1,pt>=at)return ht}}var Fe=[""];function vn(it){for(;Fe.length<=it;)Fe.push(ue(Fe)+" ");return Fe[it]}function ue(it){return it[it.length-1]}function Ve(it,at){for(var dt=[],ht=0;ht<it.length;ht++)dt[ht]=at(it[ht],ht);return dt}function In(it,at,dt){for(var ht=0,pt=dt(at);ht<it.length&&dt(it[ht])<=pt;)ht++;it.splice(ht,0,at)}function Dt(){}function Ct(it,at){var dt;return Object.create?dt=Object.create(it):(Dt.prototype=it,dt=new Dt),at&&We(at,dt),dt}var yt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function kt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||yt.test(it))}function jt(it,at){return at?at.source.indexOf("\\w")>-1&&kt(it)?!0:at.test(it):kt(it)}function bt(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var Gt=/[\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 fe(it){return it.charCodeAt(0)>=768&&Gt.test(it)}function Se(it,at,dt){for(;(dt<0?at>0:at<it.length)&&fe(it.charAt(at));)at+=dt;return at}function Be(it,at,dt){for(var ht=at>dt?-1:1;;){if(at==dt)return at;var pt=(at+dt)/2,At=ht<0?Math.ceil(pt):Math.floor(pt);if(At==at)return it(At)?at:dt;it(At)?dt=At:at=At+ht}}function re(it,at,dt,ht){if(!it)return ht(at,dt,"ltr",0);for(var pt=!1,At=0;At<it.length;++At){var Rt=it[At];(Rt.from<dt&&Rt.to>at||at==dt&&Rt.to==at)&&(ht(Math.max(Rt.from,at),Math.min(Rt.to,dt),Rt.level==1?"rtl":"ltr",At),pt=!0)}pt||ht(at,dt,"ltr")}var Te=null;function Ne(it,at,dt){var ht;Te=null;for(var pt=0;pt<it.length;++pt){var At=it[pt];if(At.from<at&&At.to>at)return pt;At.to==at&&(At.from!=At.to&&dt=="before"?ht=pt:Te=pt),At.from==at&&(At.from!=At.to&&dt!="before"?ht=pt:Te=pt)}return ht!=null?ht:Te}var $e=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(le){return le<=247?it.charAt(le):1424<=le&&le<=1524?"R":1536<=le&&le<=1785?at.charAt(le-1536):1774<=le&&le<=2220?"r":8192<=le&&le<=8203?"w":le==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,At=/[LRr]/,Rt=/[Lb1n]/,Yt=/[1n]/;function Kt(le,_e,Pe){this.level=le,this.from=_e,this.to=Pe}return function(le,_e){var Pe=_e=="ltr"?"L":"R";if(le.length==0||_e=="ltr"&&!ht.test(le))return!1;for(var Fn=le.length,Cn=[],Hi=0;Hi<Fn;++Hi)Cn.push(dt(le.charCodeAt(Hi)));for(var Yi=0,sr=Pe;Yi<Fn;++Yi){var Ar=Cn[Yi];Ar=="m"?Cn[Yi]=sr:sr=Ar}for(var Xr=0,jr=Pe;Xr<Fn;++Xr){var $r=Cn[Xr];$r=="1"&&jr=="r"?Cn[Xr]="n":At.test($r)&&(jr=$r,$r=="r"&&(Cn[Xr]="R"))}for(var bo=1,Rr=Cn[0];bo<Fn-1;++bo){var Vo=Cn[bo];Vo=="+"&&Rr=="1"&&Cn[bo+1]=="1"?Cn[bo]="1":Vo==","&&Rr==Cn[bo+1]&&(Rr=="1"||Rr=="n")&&(Cn[bo]=Rr),Rr=Vo}for(var Da=0;Da<Fn;++Da){var ms=Cn[Da];if(ms==",")Cn[Da]="N";else if(ms=="%"){var Ga=void 0;for(Ga=Da+1;Ga<Fn&&Cn[Ga]=="%";++Ga);for(var sl=Da&&Cn[Da-1]=="!"||Ga<Fn&&Cn[Ga]=="1"?"1":"N",Vs=Da;Vs<Ga;++Vs)Cn[Vs]=sl;Da=Ga-1}}for(var cs=0,xl=Pe;cs<Fn;++cs){var Bs=Cn[cs];xl=="L"&&Bs=="1"?Cn[cs]="L":At.test(Bs)&&(xl=Bs)}for(var fs=0;fs<Fn;++fs)if(pt.test(Cn[fs])){var ha=void 0;for(ha=fs+1;ha<Fn&&pt.test(Cn[ha]);++ha);for(var Xa=(fs?Cn[fs-1]:Pe)=="L",ws=(ha<Fn?Cn[ha]:Pe)=="L",Os=Xa==ws?Xa?"L":"R":Pe,ou=fs;ou<ha;++ou)Cn[ou]=Os;fs=ha-1}for(var Va=[],Ul,$a=0;$a<Fn;)if(Rt.test(Cn[$a])){var Nc=$a;for(++$a;$a<Fn&&Rt.test(Cn[$a]);++$a);Va.push(new Kt(0,Nc,$a))}else{var Ol=$a,Pl=Va.length,ll=_e=="rtl"?1:0;for(++$a;$a<Fn&&Cn[$a]!="L";++$a);for(var Ma=Ol;Ma<$a;)if(Yt.test(Cn[Ma])){Ol<Ma&&(Va.splice(Pl,0,new Kt(1,Ol,Ma)),Pl+=ll);var Cs=Ma;for(++Ma;Ma<$a&&Yt.test(Cn[Ma]);++Ma);Va.splice(Pl,0,new Kt(2,Cs,Ma)),Pl+=ll,Ol=Ma}else++Ma;Ol<$a&&Va.splice(Pl,0,new Kt(1,Ol,$a))}return _e=="ltr"&&(Va[0].level==1&&(Ul=le.match(/^\s+/))&&(Va[0].from=Ul[0].length,Va.unshift(new Kt(0,0,Ul[0].length))),ue(Va).level==1&&(Ul=le.match(/\s+$/))&&(ue(Va).to-=Ul[0].length,Va.push(new Kt(0,Fn-Ul[0].length,Fn)))),_e=="rtl"?Va.reverse():Va}}();function fn(it,at){var dt=it.order;return dt==null&&(dt=it.order=$e(it.text,at)),dt}var tn=[],He=function(it,at,dt){if(it.addEventListener)it.addEventListener(at,dt,!1);else if(it.attachEvent)it.attachEvent("on"+at,dt);else{var ht=it._handlers||(it._handlers={});ht[at]=(ht[at]||tn).concat(dt)}};function On(it,at){return it._handlers&&it._handlers[at]||tn}function Xn(it,at,dt){if(it.removeEventListener)it.removeEventListener(at,dt,!1);else if(it.detachEvent)it.detachEvent("on"+at,dt);else{var ht=it._handlers,pt=ht&&ht[at];if(pt){var At=Le(pt,dt);At>-1&&(ht[at]=pt.slice(0,At).concat(pt.slice(At+1)))}}}function Pn(it,at){var dt=On(it,at);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),pt=0;pt<dt.length;++pt)dt[pt].apply(null,ht)}function Gn(it,at,dt){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),Pn(it,dt||at.type,it,at),sn(at)||at.codemirrorIgnore}function Ni(it){var at=it._handlers&&it._handlers.cursorActivity;if(at)for(var dt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),ht=0;ht<at.length;++ht)Le(dt,at[ht])==-1&&dt.push(at[ht])}function xi(it,at){return On(it,at).length>0}function ki(it){it.prototype.on=function(at,dt){He(this,at,dt)},it.prototype.off=function(at,dt){Xn(this,at,dt)}}function tr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Qe(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function sn(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Qn(it){tr(it),Qe(it)}function Li(it){return it.target||it.srcElement}function Ri(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),ct&&it.ctrlKey&&at==1&&(at=3),at}var Pi=function(){if(ee&&Ht<9)return!1;var it=Vt("div");return"draggable"in it||"dragDrop"in it}(),ur;function ir(it){if(ur==null){var at=Vt("span","\u200B");Jt(it,Vt("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(ur=at.offsetWidth<=1&&at.offsetHeight>2&&!(ee&&Ht<8))}var dt=ur?Vt("span","\u200B"):Vt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var pr;function ci(it){if(pr!=null)return pr;var at=Jt(it,document.createTextNode("A\u062EA")),dt=ce(at,0,1).getBoundingClientRect(),ht=ce(at,1,2).getBoundingClientRect();return $t(it),!dt||dt.left==dt.right?!1:pr=ht.right-dt.right<3}var qi=`
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var at=0,dt=[],ht=it.length;at<=ht;){var pt=it.indexOf(`
|
|
`,at);pt==-1&&(pt=it.length);var At=it.slice(at,it.charAt(pt-1)=="\r"?pt-1:pt),Rt=At.indexOf("\r");Rt!=-1?(dt.push(At.slice(0,Rt)),at+=Rt+1):(dt.push(At),at=pt+1)}return dt}:function(it){return it.split(/\r\n?|\n/)},Pt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(dt){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},Ii=function(){var it=Vt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Jn=null;function er(it){if(Jn!=null)return Jn;var at=Jt(it,Vt("span","x")),dt=at.getBoundingClientRect(),ht=ce(at,0,1).getBoundingClientRect();return Jn=Math.abs(dt.left-ht.left)>1}var Ji={},Zi={};function fi(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),Ji[it]=at}function bn(it,at){Zi[it]=at}function En(it){if(typeof it=="string"&&Zi.hasOwnProperty(it))it=Zi[it];else if(it&&typeof it.name=="string"&&Zi.hasOwnProperty(it.name)){var at=Zi[it.name];typeof at=="string"&&(at={name:at}),it=Ct(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return En("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return En("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Ae(it,at){at=En(at);var dt=Ji[at.name];if(!dt)return Ae(it,"text/plain");var ht=dt(it,at);if(Me.hasOwnProperty(at.name)){var pt=Me[at.name];for(var At in pt)pt.hasOwnProperty(At)&&(ht.hasOwnProperty(At)&&(ht["_"+At]=ht[At]),ht[At]=pt[At])}if(ht.name=at.name,at.helperType&&(ht.helperType=at.helperType),at.modeProps)for(var Rt in at.modeProps)ht[Rt]=at.modeProps[Rt];return ht}var Me={};function be(it,at){var dt=Me.hasOwnProperty(it)?Me[it]:Me[it]={};We(at,dt)}function qn(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var dt={};for(var ht in at){var pt=at[ht];pt instanceof Array&&(pt=pt.concat([])),dt[ht]=pt}return dt}function ni(it,at){for(var dt;it.innerMode&&(dt=it.innerMode(at),!(!dt||dt.mode==it));)at=dt.state,it=dt.mode;return dt||{mode:it,state:at}}function Fi(it,at,dt){return it.startState?it.startState(at,dt):!0}var gn=function(it,at,dt){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};gn.prototype.eol=function(){return this.pos>=this.string.length},gn.prototype.sol=function(){return this.pos==this.lineStart},gn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gn.prototype.eat=function(it){var at=this.string.charAt(this.pos),dt;if(typeof it=="string"?dt=at==it:dt=at&&(it.test?it.test(at):it(at)),dt)return++this.pos,at},gn.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},gn.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},gn.prototype.skipToEnd=function(){this.pos=this.string.length},gn.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},gn.prototype.backUp=function(it){this.pos-=it},gn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},gn.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},gn.prototype.match=function(it,at,dt){if(typeof it=="string"){var ht=function(Rt){return dt?Rt.toLowerCase():Rt},pt=this.string.substr(this.pos,it.length);if(ht(pt)==ht(it))return at!==!1&&(this.pos+=it.length),!0}else{var At=this.string.slice(this.pos).match(it);return At&&At.index>0?null:(At&&at!==!1&&(this.pos+=At[0].length),At)}},gn.prototype.current=function(){return this.string.slice(this.start,this.pos)},gn.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},gn.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},gn.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Hn(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var pt=dt.children[ht],At=pt.chunkSize();if(at<At){dt=pt;break}at-=At}return dt.lines[at]}function Oe(it,at,dt){var ht=[],pt=at.line;return it.iter(at.line,dt.line+1,function(At){var Rt=At.text;pt==dt.line&&(Rt=Rt.slice(0,dt.ch)),pt==at.line&&(Rt=Rt.slice(at.ch)),ht.push(Rt),++pt}),ht}function De(it,at,dt){var ht=[];return it.iter(at,dt,function(pt){ht.push(pt.text)}),ht}function ai(it,at){var dt=at-it.height;if(dt)for(var ht=it;ht;ht=ht.parent)ht.height+=dt}function qt(it){if(it.parent==null)return null;for(var at=it.parent,dt=Le(at.lines,it),ht=at.parent;ht;at=ht,ht=ht.parent)for(var pt=0;ht.children[pt]!=at;++pt)dt+=ht.children[pt].chunkSize();return dt+at.first}function un(it,at){var dt=it.first;t:do{for(var ht=0;ht<it.children.length;++ht){var pt=it.children[ht],At=pt.height;if(at<At){it=pt;continue t}at-=At,dt+=pt.chunkSize()}return dt}while(!it.lines);for(var Rt=0;Rt<it.lines.length;++Rt){var Yt=it.lines[Rt],Kt=Yt.height;if(at<Kt)break;at-=Kt}return dt+Rt}function Rn(it,at){return at>=it.first&&at<it.first+it.size}function Ai(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function ln(it,at,dt){if(dt===void 0&&(dt=null),!(this instanceof ln))return new ln(it,at,dt);this.line=it,this.ch=at,this.sticky=dt}function yn(it,at){return it.line-at.line||it.ch-at.ch}function li(it,at){return it.sticky==at.sticky&&yn(it,at)==0}function bi(it){return ln(it.line,it.ch)}function Ui(it,at){return yn(it,at)<0?at:it}function Di(it,at){return yn(it,at)<0?it:at}function $n(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function wi(it,at){if(at.line<it.first)return ln(it.first,0);var dt=it.first+it.size-1;return at.line>dt?ln(dt,Hn(it,dt).text.length):dr(at,Hn(it,at.line).text.length)}function dr(it,at){var dt=it.ch;return dt==null||dt>at?ln(it.line,at):dt<0?ln(it.line,0):it}function fr(it,at){for(var dt=[],ht=0;ht<at.length;ht++)dt[ht]=wi(it,at[ht]);return dt}var xr=function(it,at){this.state=it,this.lookAhead=at},cn=function(it,at,dt,ht){this.state=at,this.doc=it,this.line=dt,this.maxLookAhead=ht||0,this.baseTokens=null,this.baseTokenPos=1};cn.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},cn.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},cn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},cn.fromSaved=function(it,at,dt){return at instanceof xr?new cn(it,qn(it.mode,at.state),dt,at.lookAhead):new cn(it,qn(it.mode,at),dt)},cn.prototype.save=function(it){var at=it!==!1?qn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new xr(at,this.maxLookAhead):at};function _r(it,at,dt,ht){var pt=[it.state.modeGen],At={};Zr(it,at.text,it.doc.mode,dt,function(le,_e){return pt.push(le,_e)},At,ht);for(var Rt=dt.state,Yt=function(le){dt.baseTokens=pt;var _e=it.state.overlays[le],Pe=1,Fn=0;dt.state=!0,Zr(it,at.text,_e.mode,dt,function(Cn,Hi){for(var Yi=Pe;Fn<Cn;){var sr=pt[Pe];sr>Cn&&pt.splice(Pe,1,Cn,pt[Pe+1],sr),Pe+=2,Fn=Math.min(Cn,sr)}if(Hi)if(_e.opaque)pt.splice(Yi,Pe-Yi,Cn,"overlay "+Hi),Pe=Yi+2;else for(;Yi<Pe;Yi+=2){var Ar=pt[Yi+1];pt[Yi+1]=(Ar?Ar+" ":"")+"overlay "+Hi}},At),dt.state=Rt,dt.baseTokens=null,dt.baseTokenPos=1},Kt=0;Kt<it.state.overlays.length;++Kt)Yt(Kt);return{styles:pt,classes:At.bgClass||At.textClass?At:null}}function kr(it,at,dt){if(!at.styles||at.styles[0]!=it.state.modeGen){var ht=to(it,qt(at)),pt=at.text.length>it.options.maxHighlightLength&&qn(it.doc.mode,ht.state),At=_r(it,at,ht);pt&&(ht.state=pt),at.stateAfter=ht.save(!pt),at.styles=At.styles,At.classes?at.styleClasses=At.classes:at.styleClasses&&(at.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function to(it,at,dt){var ht=it.doc,pt=it.display;if(!ht.mode.startState)return new cn(ht,!0,at);var At=Br(it,at,dt),Rt=At>ht.first&&Hn(ht,At-1).stateAfter,Yt=Rt?cn.fromSaved(ht,Rt,At):new cn(ht,Fi(ht.mode),At);return ht.iter(At,at,function(Kt){rn(it,Kt.text,Yt);var le=Yt.line;Kt.stateAfter=le==at-1||le%5==0||le>=pt.viewFrom&&le<pt.viewTo?Yt.save():null,Yt.nextLine()}),dt&&(ht.modeFrontier=Yt.line),Yt}function rn(it,at,dt,ht){var pt=it.doc.mode,At=new gn(at,it.options.tabSize,dt);for(At.start=At.pos=ht||0,at==""&&gi(pt,dt.state);!At.eol();)Ki(pt,At,dt.state),At.start=At.pos}function gi(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var dt=ni(it,at);if(dt.mode.blankLine)return dt.mode.blankLine(dt.state)}}function Ki(it,at,dt,ht){for(var pt=0;pt<10;pt++){ht&&(ht[0]=ni(it,dt).mode);var At=it.token(at,dt);if(at.pos>at.start)return At}throw new Error("Mode "+it.name+" failed to advance stream.")}var nr=function(it,at,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=dt};function Qi(it,at,dt,ht){var pt=it.doc,At=pt.mode,Rt;at=wi(pt,at);var Yt=Hn(pt,at.line),Kt=to(it,at.line,dt),le=new gn(Yt.text,it.options.tabSize,Kt),_e;for(ht&&(_e=[]);(ht||le.pos<at.ch)&&!le.eol();)le.start=le.pos,Rt=Ki(At,le,Kt.state),ht&&_e.push(new nr(le,Rt,qn(pt.mode,Kt.state)));return ht?_e:new nr(le,Rt,Kt.state)}function rr(it,at){if(it)for(;;){var dt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!dt)break;it=it.slice(0,dt.index)+it.slice(dt.index+dt[0].length);var ht=dt[1]?"bgClass":"textClass";at[ht]==null?at[ht]=dt[2]:new RegExp("(?:^|\\s)"+dt[2]+"(?:$|\\s)").test(at[ht])||(at[ht]+=" "+dt[2])}return it}function Zr(it,at,dt,ht,pt,At,Rt){var Yt=dt.flattenSpans;Yt==null&&(Yt=it.options.flattenSpans);var Kt=0,le=null,_e=new gn(at,it.options.tabSize,ht),Pe,Fn=it.options.addModeClass&&[null];for(at==""&&rr(gi(dt,ht.state),At);!_e.eol();){if(_e.pos>it.options.maxHighlightLength?(Yt=!1,Rt&&rn(it,at,ht,_e.pos),_e.pos=at.length,Pe=null):Pe=rr(Ki(dt,_e,ht.state,Fn),At),Fn){var Cn=Fn[0].name;Cn&&(Pe="m-"+(Pe?Cn+" "+Pe:Cn))}if(!Yt||le!=Pe){for(;Kt<_e.start;)Kt=Math.min(_e.start,Kt+5e3),pt(Kt,le);le=Pe}_e.start=_e.pos}for(;Kt<_e.pos;){var Hi=Math.min(_e.pos,Kt+5e3);pt(Hi,le),Kt=Hi}}function Br(it,at,dt){for(var ht,pt,At=it.doc,Rt=dt?-1:at-(it.doc.mode.innerMode?1e3:100),Yt=at;Yt>Rt;--Yt){if(Yt<=At.first)return At.first;var Kt=Hn(At,Yt-1),le=Kt.stateAfter;if(le&&(!dt||Yt+(le instanceof xr?le.lookAhead:0)<=At.modeFrontier))return Yt;var _e=he(Kt.text,null,it.options.tabSize);(pt==null||ht>_e)&&(pt=Yt-1,ht=_e)}return pt}function Hr(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontier<at-10)){for(var dt=it.first,ht=at-1;ht>dt;ht--){var pt=Hn(it,ht).stateAfter;if(pt&&(!(pt instanceof xr)||ht+pt.lookAhead<at)){dt=ht+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,dt)}}var zr=!1,pn=!1;function Yr(){zr=!0}function Ln(){pn=!0}function _i(it,at,dt){this.marker=it,this.from=at,this.to=dt}function or(it,at){if(it)for(var dt=0;dt<it.length;++dt){var ht=it[dt];if(ht.marker==at)return ht}}function Cr(it,at){for(var dt,ht=0;ht<it.length;++ht)it[ht]!=at&&(dt||(dt=[])).push(it[ht]);return dt}function Po(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function co(it,at,dt){var ht;if(it)for(var pt=0;pt<it.length;++pt){var At=it[pt],Rt=At.marker,Yt=At.from==null||(Rt.inclusiveLeft?At.from<=at:At.from<at);if(Yt||At.from==at&&Rt.type=="bookmark"&&(!dt||!At.marker.insertLeft)){var Kt=At.to==null||(Rt.inclusiveRight?At.to>=at:At.to>at);(ht||(ht=[])).push(new _i(Rt,At.from,Kt?null:At.to))}}return ht}function Kr(it,at,dt){var ht;if(it)for(var pt=0;pt<it.length;++pt){var At=it[pt],Rt=At.marker,Yt=At.to==null||(Rt.inclusiveRight?At.to>=at:At.to>at);if(Yt||At.from==at&&Rt.type=="bookmark"&&(!dt||At.marker.insertLeft)){var Kt=At.from==null||(Rt.inclusiveLeft?At.from<=at:At.from<at);(ht||(ht=[])).push(new _i(Rt,Kt?null:At.from-at,At.to==null?null:At.to-at))}}return ht}function eo(it,at){if(at.full)return null;var dt=Rn(it,at.from.line)&&Hn(it,at.from.line).markedSpans,ht=Rn(it,at.to.line)&&Hn(it,at.to.line).markedSpans;if(!dt&&!ht)return null;var pt=at.from.ch,At=at.to.ch,Rt=yn(at.from,at.to)==0,Yt=co(dt,pt,Rt),Kt=Kr(ht,At,Rt),le=at.text.length==1,_e=ue(at.text).length+(le?pt:0);if(Yt)for(var Pe=0;Pe<Yt.length;++Pe){var Fn=Yt[Pe];if(Fn.to==null){var Cn=or(Kt,Fn.marker);Cn?le&&(Fn.to=Cn.to==null?null:Cn.to+_e):Fn.to=pt}}if(Kt)for(var Hi=0;Hi<Kt.length;++Hi){var Yi=Kt[Hi];if(Yi.to!=null&&(Yi.to+=_e),Yi.from==null){var sr=or(Yt,Yi.marker);sr||(Yi.from=_e,le&&(Yt||(Yt=[])).push(Yi))}else Yi.from+=_e,le&&(Yt||(Yt=[])).push(Yi)}Yt&&(Yt=Ke(Yt)),Kt&&Kt!=Yt&&(Kt=Ke(Kt));var Ar=[Yt];if(!le){var Xr=at.text.length-2,jr;if(Xr>0&&Yt)for(var $r=0;$r<Yt.length;++$r)Yt[$r].to==null&&(jr||(jr=[])).push(new _i(Yt[$r].marker,null,null));for(var bo=0;bo<Xr;++bo)Ar.push(jr);Ar.push(Kt)}return Ar}function Ke(it){for(var at=0;at<it.length;++at){var dt=it[at];dt.from!=null&&dt.from==dt.to&&dt.marker.clearWhenEmpty!==!1&&it.splice(at--,1)}return it.length?it:null}function Mn(it,at,dt){var ht=null;if(it.iter(at.line,dt.line+1,function(Cn){if(Cn.markedSpans)for(var Hi=0;Hi<Cn.markedSpans.length;++Hi){var Yi=Cn.markedSpans[Hi].marker;Yi.readOnly&&(!ht||Le(ht,Yi)==-1)&&(ht||(ht=[])).push(Yi)}}),!ht)return null;for(var pt=[{from:at,to:dt}],At=0;At<ht.length;++At)for(var Rt=ht[At],Yt=Rt.find(0),Kt=0;Kt<pt.length;++Kt){var le=pt[Kt];if(!(yn(le.to,Yt.from)<0||yn(le.from,Yt.to)>0)){var _e=[Kt,1],Pe=yn(le.from,Yt.from),Fn=yn(le.to,Yt.to);(Pe<0||!Rt.inclusiveLeft&&!Pe)&&_e.push({from:le.from,to:Yt.from}),(Fn>0||!Rt.inclusiveRight&&!Fn)&&_e.push({from:Yt.to,to:le.to}),pt.splice.apply(pt,_e),Kt+=_e.length-3}}return pt}function Ge(it){var at=it.markedSpans;if(at){for(var dt=0;dt<at.length;++dt)at[dt].marker.detachLine(it);it.markedSpans=null}}function Bt(it,at){if(at){for(var dt=0;dt<at.length;++dt)at[dt].marker.attachLine(it);it.markedSpans=at}}function ti(it){return it.inclusiveLeft?-1:0}function Kn(it){return it.inclusiveRight?1:0}function ui(it,at){var dt=it.lines.length-at.lines.length;if(dt!=0)return dt;var ht=it.find(),pt=at.find(),At=yn(ht.from,pt.from)||ti(it)-ti(at);if(At)return-At;var Rt=yn(ht.to,pt.to)||Kn(it)-Kn(at);return Rt||at.id-it.id}function Mi(it,at){var dt=pn&&it.markedSpans,ht;if(dt)for(var pt=void 0,At=0;At<dt.length;++At)pt=dt[At],pt.marker.collapsed&&(at?pt.from:pt.to)==null&&(!ht||ui(ht,pt.marker)<0)&&(ht=pt.marker);return ht}function Ei(it){return Mi(it,!0)}function Nn(it){return Mi(it,!1)}function si(it,at){var dt=pn&&it.markedSpans,ht;if(dt)for(var pt=0;pt<dt.length;++pt){var At=dt[pt];At.marker.collapsed&&(At.from==null||At.from<at)&&(At.to==null||At.to>at)&&(!ht||ui(ht,At.marker)<0)&&(ht=At.marker)}return ht}function hi(it,at,dt,ht,pt){var At=Hn(it,at),Rt=pn&&At.markedSpans;if(Rt)for(var Yt=0;Yt<Rt.length;++Yt){var Kt=Rt[Yt];if(Kt.marker.collapsed){var le=Kt.marker.find(0),_e=yn(le.from,dt)||ti(Kt.marker)-ti(pt),Pe=yn(le.to,ht)||Kn(Kt.marker)-Kn(pt);if(!(_e>=0&&Pe<=0||_e<=0&&Pe>=0)&&(_e<=0&&(Kt.marker.inclusiveRight&&pt.inclusiveLeft?yn(le.to,dt)>=0:yn(le.to,dt)>0)||_e>=0&&(Kt.marker.inclusiveRight&&pt.inclusiveLeft?yn(le.from,ht)<=0:yn(le.from,ht)<0)))return!0}}}function pi(it){for(var at;at=Ei(it);)it=at.find(-1,!0).line;return it}function mi(it){for(var at;at=Nn(it);)it=at.find(1,!0).line;return it}function ar(it){for(var at,dt;at=Nn(it);)it=at.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function Nt(it,at){var dt=Hn(it,at),ht=pi(dt);return dt==ht?at:qt(ht)}function ae(it,at){if(at>it.lastLine())return at;var dt=Hn(it,at),ht;if(!Ut(it,dt))return at;for(;ht=Nn(dt);)dt=ht.find(1,!0).line;return qt(dt)+1}function Ut(it,at){var dt=pn&&at.markedSpans;if(dt){for(var ht=void 0,pt=0;pt<dt.length;++pt)if(ht=dt[pt],!!ht.marker.collapsed){if(ht.from==null)return!0;if(!ht.marker.widgetNode&&ht.from==0&&ht.marker.inclusiveLeft&&se(it,at,ht))return!0}}}function se(it,at,dt){if(dt.to==null){var ht=dt.marker.find(1,!0);return se(it,ht.line,or(ht.line.markedSpans,dt.marker))}if(dt.marker.inclusiveRight&&dt.to==at.text.length)return!0;for(var pt=void 0,At=0;At<at.markedSpans.length;++At)if(pt=at.markedSpans[At],pt.marker.collapsed&&!pt.marker.widgetNode&&pt.from==dt.to&&(pt.to==null||pt.to!=dt.from)&&(pt.marker.inclusiveLeft||dt.marker.inclusiveRight)&&se(it,at,pt))return!0}function we(it){it=pi(it);for(var at=0,dt=it.parent,ht=0;ht<dt.lines.length;++ht){var pt=dt.lines[ht];if(pt==it)break;at+=pt.height}for(var At=dt.parent;At;dt=At,At=dt.parent)for(var Rt=0;Rt<At.children.length;++Rt){var Yt=At.children[Rt];if(Yt==dt)break;at+=Yt.height}return at}function Xe(it){if(it.height==0)return 0;for(var at=it.text.length,dt,ht=it;dt=Ei(ht);){var pt=dt.find(0,!0);ht=pt.from.line,at+=pt.from.ch-pt.to.ch}for(ht=it;dt=Nn(ht);){var At=dt.find(0,!0);at-=ht.text.length-At.from.ch,ht=At.to.line,at+=ht.text.length-At.to.ch}return at}function en(it){var at=it.display,dt=it.doc;at.maxLine=Hn(dt,dt.first),at.maxLineLength=Xe(at.maxLine),at.maxLineChanged=!0,dt.iter(function(ht){var pt=Xe(ht);pt>at.maxLineLength&&(at.maxLineLength=pt,at.maxLine=ht)})}var hn=function(it,at,dt){this.text=it,Bt(this,at),this.height=dt?dt(this):1};hn.prototype.lineNo=function(){return qt(this)},ki(hn);function Bn(it,at,dt,ht){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Ge(it),Bt(it,dt);var pt=ht?ht(it):1;pt!=it.height&&ai(it,pt)}function Dn(it){it.parent=null,Ge(it)}var mn={},ii={};function Bi(it,at){if(!it||/^\s*$/.test(it))return null;var dt=at.addModeClass?ii:mn;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function de(it,at){var dt=pe("span",null,null,oe?"padding-right: .1px":null),ht={pre:pe("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var pt=0;pt<=(at.rest?at.rest.length:0);pt++){var At=pt?at.rest[pt-1]:at.line,Rt=void 0;ht.pos=0,ht.addToken=Yn,ci(it.display.measure)&&(Rt=fn(At,it.doc.direction))&&(ht.addToken=_n(ht.addToken,Rt)),ht.map=[];var Yt=at!=it.display.externalMeasured&&qt(At);Oi(At,ht,kr(it,At,Yt)),At.styleClasses&&(At.styleClasses.bgClass&&(ht.bgClass=wn(At.styleClasses.bgClass,ht.bgClass||"")),At.styleClasses.textClass&&(ht.textClass=wn(At.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(ir(it.display.measure))),pt==0?(at.measure.map=ht.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(ht.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(oe){var Kt=ht.content.lastChild;(/\bcm-tab\b/.test(Kt.className)||Kt.querySelector&&Kt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return Pn(it,"renderLine",it,at.line,ht.pre),ht.pre.className&&(ht.textClass=wn(ht.pre.className,ht.textClass||"")),ht}function Wn(it){var at=Vt("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function Yn(it,at,dt,ht,pt,At,Rt){if(at){var Yt=it.splitSpaces?zn(at,it.trailingSpace):at,Kt=it.cm.state.specialChars,le=!1,_e;if(!Kt.test(at))it.col+=at.length,_e=document.createTextNode(Yt),it.map.push(it.pos,it.pos+at.length,_e),ee&&Ht<9&&(le=!0),it.pos+=at.length;else{_e=document.createDocumentFragment();for(var Pe=0;;){Kt.lastIndex=Pe;var Fn=Kt.exec(at),Cn=Fn?Fn.index-Pe:at.length-Pe;if(Cn){var Hi=document.createTextNode(Yt.slice(Pe,Pe+Cn));ee&&Ht<9?_e.appendChild(Vt("span",[Hi])):_e.appendChild(Hi),it.map.push(it.pos,it.pos+Cn,Hi),it.col+=Cn,it.pos+=Cn}if(!Fn)break;Pe+=Cn+1;var Yi=void 0;if(Fn[0]==" "){var sr=it.cm.options.tabSize,Ar=sr-it.col%sr;Yi=_e.appendChild(Vt("span",vn(Ar),"cm-tab")),Yi.setAttribute("role","presentation"),Yi.setAttribute("cm-text"," "),it.col+=Ar}else Fn[0]=="\r"||Fn[0]==`
|
|
`?(Yi=_e.appendChild(Vt("span",Fn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Yi.setAttribute("cm-text",Fn[0]),it.col+=1):(Yi=it.cm.options.specialCharPlaceholder(Fn[0]),Yi.setAttribute("cm-text",Fn[0]),ee&&Ht<9?_e.appendChild(Vt("span",[Yi])):_e.appendChild(Yi),it.col+=1);it.map.push(it.pos,it.pos+1,Yi),it.pos++}}if(it.trailingSpace=Yt.charCodeAt(at.length-1)==32,dt||ht||pt||le||At||Rt){var Xr=dt||"";ht&&(Xr+=ht),pt&&(Xr+=pt);var jr=Vt("span",[_e],Xr,At);if(Rt)for(var $r in Rt)Rt.hasOwnProperty($r)&&$r!="style"&&$r!="class"&&jr.setAttribute($r,Rt[$r]);return it.content.appendChild(jr)}it.content.appendChild(_e)}}function zn(it,at){if(it.length>1&&!/ /.test(it))return it;for(var dt=at,ht="",pt=0;pt<it.length;pt++){var At=it.charAt(pt);At==" "&&dt&&(pt==it.length-1||it.charCodeAt(pt+1)==32)&&(At="\xA0"),ht+=At,dt=At==" "}return ht}function _n(it,at){return function(dt,ht,pt,At,Rt,Yt,Kt){pt=pt?pt+" cm-force-border":"cm-force-border";for(var le=dt.pos,_e=le+ht.length;;){for(var Pe=void 0,Fn=0;Fn<at.length&&(Pe=at[Fn],!(Pe.to>le&&Pe.from<=le));Fn++);if(Pe.to>=_e)return it(dt,ht,pt,At,Rt,Yt,Kt);it(dt,ht.slice(0,Pe.to-le),pt,At,null,Yt,Kt),At=null,ht=ht.slice(Pe.to-le),le=Pe.to}}}function ei(it,at,dt,ht){var pt=!ht&&dt.widgetNode;pt&&it.map.push(it.pos,it.pos+at,pt),!ht&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",dt.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=at,it.trailingSpace=!1}function Oi(it,at,dt){var ht=it.markedSpans,pt=it.text,At=0;if(!ht){for(var Rt=1;Rt<dt.length;Rt+=2)at.addToken(at,pt.slice(At,At=dt[Rt]),Bi(dt[Rt+1],at.cm.options));return}for(var Yt=pt.length,Kt=0,le=1,_e="",Pe,Fn,Cn=0,Hi,Yi,sr,Ar,Xr;;){if(Cn==Kt){Hi=Yi=sr=Fn="",Xr=null,Ar=null,Cn=1/0;for(var jr=[],$r=void 0,bo=0;bo<ht.length;++bo){var Rr=ht[bo],Vo=Rr.marker;if(Vo.type=="bookmark"&&Rr.from==Kt&&Vo.widgetNode)jr.push(Vo);else if(Rr.from<=Kt&&(Rr.to==null||Rr.to>Kt||Vo.collapsed&&Rr.to==Kt&&Rr.from==Kt)){if(Rr.to!=null&&Rr.to!=Kt&&Cn>Rr.to&&(Cn=Rr.to,Yi=""),Vo.className&&(Hi+=" "+Vo.className),Vo.css&&(Fn=(Fn?Fn+";":"")+Vo.css),Vo.startStyle&&Rr.from==Kt&&(sr+=" "+Vo.startStyle),Vo.endStyle&&Rr.to==Cn&&($r||($r=[])).push(Vo.endStyle,Rr.to),Vo.title&&((Xr||(Xr={})).title=Vo.title),Vo.attributes)for(var Da in Vo.attributes)(Xr||(Xr={}))[Da]=Vo.attributes[Da];Vo.collapsed&&(!Ar||ui(Ar.marker,Vo)<0)&&(Ar=Rr)}else Rr.from>Kt&&Cn>Rr.from&&(Cn=Rr.from)}if($r)for(var ms=0;ms<$r.length;ms+=2)$r[ms+1]==Cn&&(Yi+=" "+$r[ms]);if(!Ar||Ar.from==Kt)for(var Ga=0;Ga<jr.length;++Ga)ei(at,0,jr[Ga]);if(Ar&&(Ar.from||0)==Kt){if(ei(at,(Ar.to==null?Yt+1:Ar.to)-Kt,Ar.marker,Ar.from==null),Ar.to==null)return;Ar.to==Kt&&(Ar=!1)}}if(Kt>=Yt)break;for(var sl=Math.min(Yt,Cn);;){if(_e){var Vs=Kt+_e.length;if(!Ar){var cs=Vs>sl?_e.slice(0,sl-Kt):_e;at.addToken(at,cs,Pe?Pe+Hi:Hi,sr,Kt+cs.length==Cn?Yi:"",Fn,Xr)}if(Vs>=sl){_e=_e.slice(sl-Kt),Kt=sl;break}Kt=Vs,sr=""}_e=pt.slice(At,At=dt[le++]),Pe=Bi(dt[le++],at.cm.options)}}}function yi(it,at,dt){this.line=at,this.rest=ar(at),this.size=this.rest?qt(ue(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=Ut(it,at)}function oi(it,at,dt){for(var ht=[],pt,At=at;At<dt;At=pt){var Rt=new yi(it.doc,Hn(it.doc,At),At);pt=At+Rt.size,ht.push(Rt)}return ht}var Vn=null;function zi(it){Vn?Vn.ops.push(it):it.ownsGroup=Vn={ops:[it],delayedCallbacks:[]}}function lr(it){var at=it.delayedCallbacks,dt=0;do{for(;dt<at.length;dt++)at[dt].call(null);for(var ht=0;ht<it.ops.length;ht++){var pt=it.ops[ht];if(pt.cursorActivityHandlers)for(;pt.cursorActivityCalled<pt.cursorActivityHandlers.length;)pt.cursorActivityHandlers[pt.cursorActivityCalled++].call(null,pt.cm)}}while(dt<at.length)}function mr(it,at){var dt=it.ownsGroup;if(dt)try{lr(dt)}finally{Vn=null,at(dt)}}var Er=null;function Si(it,at){var dt=On(it,at);if(dt.length){var ht=Array.prototype.slice.call(arguments,2),pt;Vn?pt=Vn.delayedCallbacks:Er?pt=Er:(pt=Er=[],setTimeout(cr,0));for(var At=function(Yt){pt.push(function(){return dt[Yt].apply(null,ht)})},Rt=0;Rt<dt.length;++Rt)At(Rt)}}function cr(){var it=Er;Er=null;for(var at=0;at<it.length;++at)it[at]()}function gr(it,at,dt,ht){for(var pt=0;pt<at.changes.length;pt++){var At=at.changes[pt];At=="text"?dn(it,at):At=="gutter"?hr(it,at,dt,ht):At=="class"?Gi(it,at):At=="widget"&&Fr(it,at,ht)}at.changes=null}function Pr(it){return it.node==it.text&&(it.node=Vt("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),ee&&Ht<8&&(it.node.style.zIndex=2)),it.node}function Vi(it,at){var dt=at.bgClass?at.bgClass+" "+(at.line.bgClass||""):at.line.bgClass;if(dt&&(dt+=" CodeMirror-linebackground"),at.background)dt?at.background.className=dt:(at.background.parentNode.removeChild(at.background),at.background=null);else if(dt){var ht=Pr(at);at.background=ht.insertBefore(Vt("div",null,dt),ht.firstChild),it.display.input.setUneditable(at.background)}}function Xi(it,at){var dt=it.display.externalMeasured;return dt&&dt.line==at.line?(it.display.externalMeasured=null,at.measure=dt.measure,dt.built):de(it,at)}function dn(it,at){var dt=at.text.className,ht=Xi(it,at);at.text==at.node&&(at.node=ht.pre),at.text.parentNode.replaceChild(ht.pre,at.text),at.text=ht.pre,ht.bgClass!=at.bgClass||ht.textClass!=at.textClass?(at.bgClass=ht.bgClass,at.textClass=ht.textClass,Gi(it,at)):dt&&(at.text.className=dt)}function Gi(it,at){Vi(it,at),at.line.wrapClass?Pr(at).className=at.line.wrapClass:at.node!=at.text&&(at.node.className="");var dt=at.textClass?at.textClass+" "+(at.line.textClass||""):at.line.textClass;at.text.className=dt||""}function hr(it,at,dt,ht){if(at.gutter&&(at.node.removeChild(at.gutter),at.gutter=null),at.gutterBackground&&(at.node.removeChild(at.gutterBackground),at.gutterBackground=null),at.line.gutterClass){var pt=Pr(at);at.gutterBackground=Vt("div",null,"CodeMirror-gutter-background "+at.line.gutterClass,"left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px; width: "+ht.gutterTotalWidth+"px"),it.display.input.setUneditable(at.gutterBackground),pt.insertBefore(at.gutterBackground,at.text)}var At=at.line.gutterMarkers;if(it.options.lineNumbers||At){var Rt=Pr(at),Yt=at.gutter=Vt("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Yt),Rt.insertBefore(Yt,at.text),at.line.gutterClass&&(Yt.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!At||!At["CodeMirror-linenumbers"])&&(at.lineNumber=Yt.appendChild(Vt("div",Ai(it.options,dt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ht.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),At)for(var Kt=0;Kt<it.display.gutterSpecs.length;++Kt){var le=it.display.gutterSpecs[Kt].className,_e=At.hasOwnProperty(le)&&At[le];_e&&Yt.appendChild(Vt("div",[_e],"CodeMirror-gutter-elt","left: "+ht.gutterLeft[le]+"px; width: "+ht.gutterWidth[le]+"px"))}}}function Fr(it,at,dt){at.alignable&&(at.alignable=null);for(var ht=zt("CodeMirror-linewidget"),pt=at.node.firstChild,At=void 0;pt;pt=At)At=pt.nextSibling,ht.test(pt.className)&&at.node.removeChild(pt);yr(it,at,dt)}function Or(it,at,dt,ht){var pt=Xi(it,at);return at.text=at.node=pt.pre,pt.bgClass&&(at.bgClass=pt.bgClass),pt.textClass&&(at.textClass=pt.textClass),Gi(it,at),hr(it,at,dt,ht),yr(it,at,ht),at.node}function yr(it,at,dt){if(ji(it,at.line,at,dt,!0),at.rest)for(var ht=0;ht<at.rest.length;ht++)ji(it,at.rest[ht],at,dt,!1)}function ji(it,at,dt,ht,pt){if(at.widgets)for(var At=Pr(dt),Rt=0,Yt=at.widgets;Rt<Yt.length;++Rt){var Kt=Yt[Rt],le=Vt("div",[Kt.node],"CodeMirror-linewidget"+(Kt.className?" "+Kt.className:""));Kt.handleMouseEvents||le.setAttribute("cm-ignore-events","true"),br(Kt,le,dt,ht),it.display.input.setUneditable(le),pt&&Kt.above?At.insertBefore(le,dt.gutter||dt.text):At.appendChild(le),Si(Kt,"redraw")}}function br(it,at,dt,ht){if(it.noHScroll){(dt.alignable||(dt.alignable=[])).push(at);var pt=ht.wrapperWidth;at.style.left=ht.fixedPos+"px",it.coverGutter||(pt-=ht.gutterTotalWidth,at.style.paddingLeft=ht.gutterTotalWidth+"px"),at.style.width=pt+"px"}it.coverGutter&&(at.style.zIndex=5,at.style.position="relative",it.noHScroll||(at.style.marginLeft=-ht.gutterTotalWidth+"px"))}function Ur(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!Ee(document.body,it.node)){var dt="position: relative;";it.coverGutter&&(dt+="margin-left: -"+at.display.gutters.offsetWidth+"px;"),it.noHScroll&&(dt+="width: "+at.display.wrapper.clientWidth+"px;"),Jt(at.display.measure,Vt("div",[it.node],null,dt))}return it.height=it.node.parentNode.offsetHeight}function Jr(it,at){for(var dt=Li(at);dt!=it.wrapper;dt=dt.parentNode)if(!dt||dt.nodeType==1&&dt.getAttribute("cm-ignore-events")=="true"||dt.parentNode==it.sizer&&dt!=it.mover)return!0}function Tr(it){return it.lineSpace.offsetTop}function so(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function no(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=Jt(it.measure,Vt("pre","x","CodeMirror-line-like")),dt=window.getComputedStyle?window.getComputedStyle(at):at.currentStyle,ht={left:parseInt(dt.paddingLeft),right:parseInt(dt.paddingRight)};return!isNaN(ht.left)&&!isNaN(ht.right)&&(it.cachedPaddingH=ht),ht}function Wr(it){return an-it.display.nativeBarWidth}function fo(it){return it.display.scroller.clientWidth-Wr(it)-it.display.barWidth}function Mo(it){return it.display.scroller.clientHeight-Wr(it)-it.display.barHeight}function _o(it,at,dt){var ht=it.options.lineWrapping,pt=ht&&fo(it);if(!at.measure.heights||ht&&at.measure.width!=pt){var At=at.measure.heights=[];if(ht){at.measure.width=pt;for(var Rt=at.text.firstChild.getClientRects(),Yt=0;Yt<Rt.length-1;Yt++){var Kt=Rt[Yt],le=Rt[Yt+1];Math.abs(Kt.bottom-le.bottom)>2&&At.push((Kt.bottom+le.top)/2-dt.top)}}At.push(dt.bottom-dt.top)}}function io(it,at,dt){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;ht<it.rest.length;ht++)if(it.rest[ht]==at)return{map:it.measure.maps[ht],cache:it.measure.caches[ht]};for(var pt=0;pt<it.rest.length;pt++)if(qt(it.rest[pt])>dt)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function ta(it,at){at=pi(at);var dt=qt(at),ht=it.display.externalMeasured=new yi(it.doc,at,dt);ht.lineN=dt;var pt=ht.built=de(it,ht);return ht.text=pt.pre,Jt(it.display.lineMeasure,pt.pre),ht}function Ao(it,at,dt,ht){return Xo(it,No(it,at),dt,ht)}function ca(it,at){if(at>=it.display.viewFrom&&at<it.display.viewTo)return it.display.view[qa(it,at)];var dt=it.display.externalMeasured;if(dt&&at>=dt.lineN&&at<dt.lineN+dt.size)return dt}function No(it,at){var dt=qt(at),ht=ca(it,dt);ht&&!ht.text?ht=null:ht&&ht.changes&&(gr(it,ht,dt,ts(it)),it.curOp.forceUpdate=!0),ht||(ht=ta(it,at));var pt=io(ht,at,dt);return{line:at,view:ht,rect:null,map:pt.map,cache:pt.cache,before:pt.before,hasHeights:!1}}function Xo(it,at,dt,ht,pt){at.before&&(dt=-1);var At=dt+(ht||""),Rt;return at.cache.hasOwnProperty(At)?Rt=at.cache[At]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(_o(it,at.view,at.rect),at.hasHeights=!0),Rt=ko(it,at,dt,ht),Rt.bogus||(at.cache[At]=Rt)),{left:Rt.left,right:Rt.right,top:pt?Rt.rtop:Rt.top,bottom:pt?Rt.rbottom:Rt.bottom}}var ea={left:0,right:0,top:0,bottom:0};function Qo(it,at,dt){for(var ht,pt,At,Rt,Yt,Kt,le=0;le<it.length;le+=3)if(Yt=it[le],Kt=it[le+1],at<Yt?(pt=0,At=1,Rt="left"):at<Kt?(pt=at-Yt,At=pt+1):(le==it.length-3||at==Kt&&it[le+3]>at)&&(At=Kt-Yt,pt=At-1,at>=Kt&&(Rt="right")),pt!=null){if(ht=it[le+2],Yt==Kt&&dt==(ht.insertLeft?"left":"right")&&(Rt=dt),dt=="left"&&pt==0)for(;le&&it[le-2]==it[le-3]&&it[le-1].insertLeft;)ht=it[(le-=3)+2],Rt="left";if(dt=="right"&&pt==Kt-Yt)for(;le<it.length-3&&it[le+3]==it[le+4]&&!it[le+5].insertLeft;)ht=it[(le+=3)+2],Rt="right";break}return{node:ht,start:pt,end:At,collapse:Rt,coverStart:Yt,coverEnd:Kt}}function Ro(it,at){var dt=ea;if(at=="left")for(var ht=0;ht<it.length&&(dt=it[ht]).left==dt.right;ht++);else for(var pt=it.length-1;pt>=0&&(dt=it[pt]).left==dt.right;pt--);return dt}function ko(it,at,dt,ht){var pt=Qo(at.map,dt,ht),At=pt.node,Rt=pt.start,Yt=pt.end,Kt=pt.collapse,le;if(At.nodeType==3){for(var _e=0;_e<4;_e++){for(;Rt&&fe(at.line.text.charAt(pt.coverStart+Rt));)--Rt;for(;pt.coverStart+Yt<pt.coverEnd&&fe(at.line.text.charAt(pt.coverStart+Yt));)++Yt;if(ee&&Ht<9&&Rt==0&&Yt==pt.coverEnd-pt.coverStart?le=At.parentNode.getBoundingClientRect():le=Ro(ce(At,Rt,Yt).getClientRects(),ht),le.left||le.right||Rt==0)break;Yt=Rt,Rt=Rt-1,Kt="right"}ee&&Ht<11&&(le=oa(it.display.measure,le))}else{Rt>0&&(Kt=ht="right");var Pe;it.options.lineWrapping&&(Pe=At.getClientRects()).length>1?le=Pe[ht=="right"?Pe.length-1:0]:le=At.getBoundingClientRect()}if(ee&&Ht<9&&!Rt&&(!le||!le.left&&!le.right)){var Fn=At.parentNode.getClientRects()[0];Fn?le={left:Fn.left,right:Fn.left+ss(it.display),top:Fn.top,bottom:Fn.bottom}:le=ea}for(var Cn=le.top-at.rect.top,Hi=le.bottom-at.rect.top,Yi=(Cn+Hi)/2,sr=at.view.measure.heights,Ar=0;Ar<sr.length-1&&!(Yi<sr[Ar]);Ar++);var Xr=Ar?sr[Ar-1]:0,jr=sr[Ar],$r={left:(Kt=="right"?le.right:le.left)-at.rect.left,right:(Kt=="left"?le.left:le.right)-at.rect.left,top:Xr,bottom:jr};return!le.left&&!le.right&&($r.bogus=!0),it.options.singleCursorHeightPerLine||($r.rtop=Cn,$r.rbottom=Hi),$r}function oa(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!er(it))return at;var dt=screen.logicalXDPI/screen.deviceXDPI,ht=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*dt,right:at.right*dt,top:at.top*ht,bottom:at.bottom*ht}}function Ca(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var at=0;at<it.rest.length;at++)it.measure.caches[at]={}}function Zo(it){it.display.externalMeasure=null,$t(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)Ca(it.display.view[at])}function Ia(it){Zo(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Fo(){return ve&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function wo(){return ve&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function po(it){var at=0;if(it.widgets)for(var dt=0;dt<it.widgets.length;++dt)it.widgets[dt].above&&(at+=Ur(it.widgets[dt]));return at}function Yo(it,at,dt,ht,pt){if(!pt){var At=po(at);dt.top+=At,dt.bottom+=At}if(ht=="line")return dt;ht||(ht="local");var Rt=we(at);if(ht=="local"?Rt+=Tr(it.display):Rt-=it.display.viewOffset,ht=="page"||ht=="window"){var Yt=it.display.lineSpace.getBoundingClientRect();Rt+=Yt.top+(ht=="window"?0:wo());var Kt=Yt.left+(ht=="window"?0:Fo());dt.left+=Kt,dt.right+=Kt}return dt.top+=Rt,dt.bottom+=Rt,dt}function Ir(it,at,dt){if(dt=="div")return at;var ht=at.left,pt=at.top;if(dt=="page")ht-=Fo(),pt-=wo();else if(dt=="local"||!dt){var At=it.display.sizer.getBoundingClientRect();ht+=At.left,pt+=At.top}var Rt=it.display.lineSpace.getBoundingClientRect();return{left:ht-Rt.left,top:pt-Rt.top}}function ao(it,at,dt,ht,pt){return ht||(ht=Hn(it.doc,at.line)),Yo(it,ht,Ao(it,ht,at.ch,pt),dt)}function vr(it,at,dt,ht,pt,At){ht=ht||Hn(it.doc,at.line),pt||(pt=No(it,ht));function Rt(Hi,Yi){var sr=Xo(it,pt,Hi,Yi?"right":"left",At);return Yi?sr.left=sr.right:sr.right=sr.left,Yo(it,ht,sr,dt)}var Yt=fn(ht,it.doc.direction),Kt=at.ch,le=at.sticky;if(Kt>=ht.text.length?(Kt=ht.text.length,le="before"):Kt<=0&&(Kt=0,le="after"),!Yt)return Rt(le=="before"?Kt-1:Kt,le=="before");function _e(Hi,Yi,sr){var Ar=Yt[Yi],Xr=Ar.level==1;return Rt(sr?Hi-1:Hi,Xr!=sr)}var Pe=Ne(Yt,Kt,le),Fn=Te,Cn=_e(Kt,Pe,le=="before");return Fn!=null&&(Cn.other=_e(Kt,Fn,le!="before")),Cn}function Nr(it,at){var dt=0;at=wi(it.doc,at),it.options.lineWrapping||(dt=ss(it.display)*at.ch);var ht=Hn(it.doc,at.line),pt=we(ht)+Tr(it.display);return{left:dt,right:dt,top:pt,bottom:pt+ht.height}}function uo(it,at,dt,ht,pt){var At=ln(it,at,dt);return At.xRel=pt,ht&&(At.outside=ht),At}function wr(it,at,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return uo(ht.first,0,null,-1,-1);var pt=un(ht,dt),At=ht.first+ht.size-1;if(pt>At)return uo(ht.first+ht.size-1,Hn(ht,At).text.length,null,1,1);at<0&&(at=0);for(var Rt=Hn(ht,pt);;){var Yt=kn(it,Rt,pt,at,dt),Kt=si(Rt,Yt.ch+(Yt.xRel>0||Yt.outside>0?1:0));if(!Kt)return Yt;var le=Kt.find(1);if(le.line==pt)return le;Rt=Hn(ht,pt=le.line)}}function vi(it,at,dt,ht){ht-=po(at);var pt=at.text.length,At=Be(function(Rt){return Xo(it,dt,Rt-1).bottom<=ht},pt,0);return pt=Be(function(Rt){return Xo(it,dt,Rt).top>ht},At,pt),{begin:At,end:pt}}function ia(it,at,dt,ht){dt||(dt=No(it,at));var pt=Yo(it,at,Xo(it,dt,ht),"line").top;return vi(it,at,dt,pt)}function me(it,at,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>at}function kn(it,at,dt,ht,pt){pt-=we(at);var At=No(it,at),Rt=po(at),Yt=0,Kt=at.text.length,le=!0,_e=fn(at,it.doc.direction);if(_e){var Pe=(it.options.lineWrapping?Qa:Ja)(it,at,dt,At,_e,ht,pt);le=Pe.level!=1,Yt=le?Pe.from:Pe.to-1,Kt=le?Pe.to:Pe.from-1}var Fn=null,Cn=null,Hi=Be(function(bo){var Rr=Xo(it,At,bo);return Rr.top+=Rt,Rr.bottom+=Rt,me(Rr,ht,pt,!1)?(Rr.top<=pt&&Rr.left<=ht&&(Fn=bo,Cn=Rr),!0):!1},Yt,Kt),Yi,sr,Ar=!1;if(Cn){var Xr=ht-Cn.left<Cn.right-ht,jr=Xr==le;Hi=Fn+(jr?0:1),sr=jr?"after":"before",Yi=Xr?Cn.left:Cn.right}else{!le&&(Hi==Kt||Hi==Yt)&&Hi++,sr=Hi==0?"after":Hi==at.text.length?"before":Xo(it,At,Hi-(le?1:0)).bottom+Rt<=pt==le?"after":"before";var $r=vr(it,ln(dt,Hi,sr),"line",at,At);Yi=$r.left,Ar=pt<$r.top?-1:pt>=$r.bottom?1:0}return Hi=Se(at.text,Hi,1),uo(dt,Hi,sr,Ar,ht-Yi)}function Ja(it,at,dt,ht,pt,At,Rt){var Yt=Be(function(Pe){var Fn=pt[Pe],Cn=Fn.level!=1;return me(vr(it,ln(dt,Cn?Fn.to:Fn.from,Cn?"before":"after"),"line",at,ht),At,Rt,!0)},0,pt.length-1),Kt=pt[Yt];if(Yt>0){var le=Kt.level!=1,_e=vr(it,ln(dt,le?Kt.from:Kt.to,le?"after":"before"),"line",at,ht);me(_e,At,Rt,!0)&&_e.top>Rt&&(Kt=pt[Yt-1])}return Kt}function Qa(it,at,dt,ht,pt,At,Rt){var Yt=vi(it,at,ht,Rt),Kt=Yt.begin,le=Yt.end;/\s/.test(at.text.charAt(le-1))&&le--;for(var _e=null,Pe=null,Fn=0;Fn<pt.length;Fn++){var Cn=pt[Fn];if(!(Cn.from>=le||Cn.to<=Kt)){var Hi=Cn.level!=1,Yi=Xo(it,ht,Hi?Math.min(le,Cn.to)-1:Math.max(Kt,Cn.from)).right,sr=Yi<At?At-Yi+1e9:Yi-At;(!_e||Pe>sr)&&(_e=Cn,Pe=sr)}}return _e||(_e=pt[pt.length-1]),_e.from<Kt&&(_e={from:Kt,to:_e.to,level:_e.level}),_e.to>le&&(_e={from:_e.from,to:le,level:_e.level}),_e}var pa;function Na(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(pa==null){pa=Vt("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)pa.appendChild(document.createTextNode("x")),pa.appendChild(Vt("br"));pa.appendChild(document.createTextNode("x"))}Jt(it.measure,pa);var dt=pa.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),$t(it.measure),dt||1}function ss(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=Vt("span","xxxxxxxxxx"),dt=Vt("pre",[at],"CodeMirror-line-like");Jt(it.measure,dt);var ht=at.getBoundingClientRect(),pt=(ht.right-ht.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function ts(it){for(var at=it.display,dt={},ht={},pt=at.gutters.clientLeft,At=at.gutters.firstChild,Rt=0;At;At=At.nextSibling,++Rt){var Yt=it.display.gutterSpecs[Rt].className;dt[Yt]=At.offsetLeft+At.clientLeft+pt,ht[Yt]=At.clientWidth}return{fixedPos:Hs(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:at.wrapper.clientWidth}}function Hs(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function aa(it){var at=Na(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/ss(it.display)-3);return function(pt){if(Ut(it.doc,pt))return 0;var At=0;if(pt.widgets)for(var Rt=0;Rt<pt.widgets.length;Rt++)pt.widgets[Rt].height&&(At+=pt.widgets[Rt].height);return dt?At+(Math.ceil(pt.text.length/ht)||1)*at:At+at}}function Vr(it){var at=it.doc,dt=aa(it);at.iter(function(ht){var pt=dt(ht);pt!=ht.height&&ai(ht,pt)})}function Ha(it,at,dt,ht){var pt=it.display;if(!dt&&Li(at).getAttribute("cm-not-content")=="true")return null;var At,Rt,Yt=pt.lineSpace.getBoundingClientRect();try{At=at.clientX-Yt.left,Rt=at.clientY-Yt.top}catch(Pe){return null}var Kt=wr(it,At,Rt),le;if(ht&&Kt.xRel>0&&(le=Hn(it.doc,Kt.line).text).length==Kt.ch){var _e=he(le,le.length,it.options.tabSize)-le.length;Kt=ln(Kt.line,Math.max(0,Math.round((At-no(it.display).left)/ss(it.display))-_e))}return Kt}function qa(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var dt=it.display.view,ht=0;ht<dt.length;ht++)if(at-=dt[ht].size,at<0)return ht}function sa(it,at,dt,ht){at==null&&(at=it.doc.first),dt==null&&(dt=it.doc.first+it.doc.size),ht||(ht=0);var pt=it.display;if(ht&&dt<pt.viewTo&&(pt.updateLineNumbers==null||pt.updateLineNumbers>at)&&(pt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=pt.viewTo)pn&&Nt(it.doc,at)<pt.viewTo&&fa(it);else if(dt<=pt.viewFrom)pn&&ae(it.doc,dt+ht)>pt.viewFrom?fa(it):(pt.viewFrom+=ht,pt.viewTo+=ht);else if(at<=pt.viewFrom&&dt>=pt.viewTo)fa(it);else if(at<=pt.viewFrom){var At=ls(it,dt,dt+ht,1);At?(pt.view=pt.view.slice(At.index),pt.viewFrom=At.lineN,pt.viewTo+=ht):fa(it)}else if(dt>=pt.viewTo){var Rt=ls(it,at,at,-1);Rt?(pt.view=pt.view.slice(0,Rt.index),pt.viewTo=Rt.lineN):fa(it)}else{var Yt=ls(it,at,at,-1),Kt=ls(it,dt,dt+ht,1);Yt&&Kt?(pt.view=pt.view.slice(0,Yt.index).concat(oi(it,Yt.lineN,Kt.lineN)).concat(pt.view.slice(Kt.index)),pt.viewTo+=ht):fa(it)}var le=pt.externalMeasured;le&&(dt<le.lineN?le.lineN+=ht:at<le.lineN+le.size&&(pt.externalMeasured=null))}function mo(it,at,dt){it.curOp.viewChanged=!0;var ht=it.display,pt=it.display.externalMeasured;if(pt&&at>=pt.lineN&&at<pt.lineN+pt.size&&(ht.externalMeasured=null),!(at<ht.viewFrom||at>=ht.viewTo)){var At=ht.view[qa(it,at)];if(At.node!=null){var Rt=At.changes||(At.changes=[]);Le(Rt,dt)==-1&&Rt.push(dt)}}}function fa(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function ls(it,at,dt,ht){var pt=qa(it,at),At,Rt=it.display.view;if(!pn||dt==it.doc.first+it.doc.size)return{index:pt,lineN:dt};for(var Yt=it.display.viewFrom,Kt=0;Kt<pt;Kt++)Yt+=Rt[Kt].size;if(Yt!=at){if(ht>0){if(pt==Rt.length-1)return null;At=Yt+Rt[pt].size-at,pt++}else At=Yt-at;at+=At,dt+=At}for(;Nt(it.doc,dt)!=dt;){if(pt==(ht<0?0:Rt.length-1))return null;dt+=ht*Rt[pt-(ht<0?1:0)].size,pt+=ht}return{index:pt,lineN:dt}}function ra(it,at,dt){var ht=it.display,pt=ht.view;pt.length==0||at>=ht.viewTo||dt<=ht.viewFrom?(ht.view=oi(it,at,dt),ht.viewFrom=at):(ht.viewFrom>at?ht.view=oi(it,at,ht.viewFrom).concat(ht.view):ht.viewFrom<at&&(ht.view=ht.view.slice(qa(it,at))),ht.viewFrom=at,ht.viewTo<dt?ht.view=ht.view.concat(oi(it,ht.viewTo,dt)):ht.viewTo>dt&&(ht.view=ht.view.slice(0,qa(it,dt)))),ht.viewTo=dt}function us(it){for(var at=it.display.view,dt=0,ht=0;ht<at.length;ht++){var pt=at[ht];!pt.hidden&&(!pt.node||pt.changes)&&++dt}return dt}function Ta(it){it.display.input.showSelection(it.display.input.prepareSelection())}function El(it,at){at===void 0&&(at=!0);for(var dt=it.doc,ht={},pt=ht.cursors=document.createDocumentFragment(),At=ht.selection=document.createDocumentFragment(),Rt=0;Rt<dt.sel.ranges.length;Rt++)if(!(!at&&Rt==dt.sel.primIndex)){var Yt=dt.sel.ranges[Rt];if(!(Yt.from().line>=it.display.viewTo||Yt.to().line<it.display.viewFrom)){var Kt=Yt.empty();(Kt||it.options.showCursorWhenSelecting)&&zo(it,Yt.head,pt),Kt||To(it,Yt,At)}}return ht}function zo(it,at,dt){var ht=vr(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),pt=dt.appendChild(Vt("div","\xA0","CodeMirror-cursor"));if(pt.style.left=ht.left+"px",pt.style.top=ht.top+"px",pt.style.height=Math.max(0,ht.bottom-ht.top)*it.options.cursorHeight+"px",ht.other){var At=dt.appendChild(Vt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));At.style.display="",At.style.left=ht.other.left+"px",At.style.top=ht.other.top+"px",At.style.height=(ht.other.bottom-ht.other.top)*.85+"px"}}function La(it,at){return it.top-at.top||it.left-at.left}function To(it,at,dt){var ht=it.display,pt=it.doc,At=document.createDocumentFragment(),Rt=no(it.display),Yt=Rt.left,Kt=Math.max(ht.sizerWidth,fo(it)-ht.sizer.offsetLeft)-Rt.right,le=pt.direction=="ltr";function _e(jr,$r,bo,Rr){$r<0&&($r=0),$r=Math.round($r),Rr=Math.round(Rr),At.appendChild(Vt("div",null,"CodeMirror-selected","position: absolute; left: "+jr+`px;
|
|
top: `+$r+"px; width: "+(bo==null?Kt-jr:bo)+`px;
|
|
height: `+(Rr-$r)+"px"))}function Pe(jr,$r,bo){var Rr=Hn(pt,jr),Vo=Rr.text.length,Da,ms;function Ga(cs,xl){return ao(it,ln(jr,cs),"div",Rr,xl)}function sl(cs,xl,Bs){var fs=ia(it,Rr,null,cs),ha=xl=="ltr"==(Bs=="after")?"left":"right",Xa=Bs=="after"?fs.begin:fs.end-(/\s/.test(Rr.text.charAt(fs.end-1))?2:1);return Ga(Xa,ha)[ha]}var Vs=fn(Rr,pt.direction);return re(Vs,$r||0,bo==null?Vo:bo,function(cs,xl,Bs,fs){var ha=Bs=="ltr",Xa=Ga(cs,ha?"left":"right"),ws=Ga(xl-1,ha?"right":"left"),Os=$r==null&&cs==0,ou=bo==null&&xl==Vo,Va=fs==0,Ul=!Vs||fs==Vs.length-1;if(ws.top-Xa.top<=3){var $a=(le?Os:ou)&&Va,Nc=(le?ou:Os)&&Ul,Ol=$a?Yt:(ha?Xa:ws).left,Pl=Nc?Kt:(ha?ws:Xa).right;_e(Ol,Xa.top,Pl-Ol,Xa.bottom)}else{var ll,Ma,Cs,Ou;ha?(ll=le&&Os&&Va?Yt:Xa.left,Ma=le?Kt:sl(cs,Bs,"before"),Cs=le?Yt:sl(xl,Bs,"after"),Ou=le&&ou&&Ul?Kt:ws.right):(ll=le?sl(cs,Bs,"before"):Yt,Ma=!le&&Os&&Va?Kt:Xa.right,Cs=!le&&ou&&Ul?Yt:ws.left,Ou=le?sl(xl,Bs,"after"):Kt),_e(ll,Xa.top,Ma-ll,Xa.bottom),Xa.bottom<ws.top&&_e(Yt,Xa.bottom,null,ws.top),_e(Cs,ws.top,Ou-Cs,ws.bottom)}(!Da||La(Xa,Da)<0)&&(Da=Xa),La(ws,Da)<0&&(Da=ws),(!ms||La(Xa,ms)<0)&&(ms=Xa),La(ws,ms)<0&&(ms=ws)}),{start:Da,end:ms}}var Fn=at.from(),Cn=at.to();if(Fn.line==Cn.line)Pe(Fn.line,Fn.ch,Cn.ch);else{var Hi=Hn(pt,Fn.line),Yi=Hn(pt,Cn.line),sr=pi(Hi)==pi(Yi),Ar=Pe(Fn.line,Fn.ch,sr?Hi.text.length+1:null).end,Xr=Pe(Cn.line,sr?0:null,Cn.ch).start;sr&&(Ar.top<Xr.top-2?(_e(Ar.right,Ar.top,null,Ar.bottom),_e(Yt,Xr.top,Xr.left,Xr.bottom)):_e(Ar.right,Ar.top,Xr.left-Ar.right,Ar.bottom)),Ar.bottom<Xr.top&&_e(Yt,Ar.bottom,null,Xr.top)}dt.appendChild(At)}function Uo(it){if(it.state.focused){var at=it.display;clearInterval(at.blinker);var dt=!0;at.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?at.blinker=setInterval(function(){it.hasFocus()||fl(it),at.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function ua(it){it.state.focused||(it.display.input.focus(),Ko(it))}function ga(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,fl(it))},100)}function Ko(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Pn(it,"focus",it,at),it.state.focused=!0,ke(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),oe&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Uo(it))}function fl(it,at){it.state.delayingBlurEvent||(it.state.focused&&(Pn(it,"blur",it,at),it.state.focused=!1,Wt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Qr(it){for(var at=it.display,dt=at.lineDiv.offsetTop,ht=0;ht<at.view.length;ht++){var pt=at.view[ht],At=it.options.lineWrapping,Rt=void 0,Yt=0;if(!pt.hidden){if(ee&&Ht<8){var Kt=pt.node.offsetTop+pt.node.offsetHeight;Rt=Kt-dt,dt=Kt}else{var le=pt.node.getBoundingClientRect();Rt=le.bottom-le.top,!At&&pt.text.firstChild&&(Yt=pt.text.firstChild.getBoundingClientRect().right-le.left-1)}var _e=pt.line.height-Rt;if((_e>.005||_e<-.005)&&(ai(pt.line,Rt),pu(pt.line),pt.rest))for(var Pe=0;Pe<pt.rest.length;Pe++)pu(pt.rest[Pe]);if(Yt>it.display.sizerWidth){var Fn=Math.ceil(Yt/ss(it.display));Fn>it.display.maxLineLength&&(it.display.maxLineLength=Fn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function pu(it){if(it.widgets)for(var at=0;at<it.widgets.length;++at){var dt=it.widgets[at],ht=dt.node.parentNode;ht&&(dt.height=ht.offsetHeight)}}function Co(it,at,dt){var ht=dt&&dt.top!=null?Math.max(0,dt.top):it.scroller.scrollTop;ht=Math.floor(ht-Tr(it));var pt=dt&&dt.bottom!=null?dt.bottom:ht+it.wrapper.clientHeight,At=un(at,ht),Rt=un(at,pt);if(dt&&dt.ensure){var Yt=dt.ensure.from.line,Kt=dt.ensure.to.line;Yt<At?(At=Yt,Rt=un(at,we(Hn(at,Yt))+it.wrapper.clientHeight)):Math.min(Kt,at.lastLine())>=Rt&&(At=un(at,we(Hn(at,Kt))-it.wrapper.clientHeight),Rt=Kt)}return{from:At,to:Math.max(Rt,At+1)}}function Gl(it,at){if(!Gn(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),pt=null;if(at.top+ht.top<0?pt=!0:at.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!Je){var At=Vt("div","\u200B",null,`position: absolute;
|
|
top: `+(at.top-dt.viewOffset-Tr(it.display))+`px;
|
|
height: `+(at.bottom-at.top+Wr(it)+dt.barHeight)+`px;
|
|
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(At),At.scrollIntoView(pt),it.display.lineSpace.removeChild(At)}}}function Qs(it,at,dt,ht){ht==null&&(ht=0);var pt;!it.options.lineWrapping&&at==dt&&(at=at.ch?ln(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,dt=at.sticky=="before"?ln(at.line,at.ch+1,"before"):at);for(var At=0;At<5;At++){var Rt=!1,Yt=vr(it,at),Kt=!dt||dt==at?Yt:vr(it,dt);pt={left:Math.min(Yt.left,Kt.left),top:Math.min(Yt.top,Kt.top)-ht,right:Math.max(Yt.left,Kt.left),bottom:Math.max(Yt.bottom,Kt.bottom)+ht};var le=mu(it,pt),_e=it.doc.scrollTop,Pe=it.doc.scrollLeft;if(le.scrollTop!=null&&(gl(it,le.scrollTop),Math.abs(it.doc.scrollTop-_e)>1&&(Rt=!0)),le.scrollLeft!=null&&(pl(it,le.scrollLeft),Math.abs(it.doc.scrollLeft-Pe)>1&&(Rt=!0)),!Rt)break}return pt}function Fl(it,at){var dt=mu(it,at);dt.scrollTop!=null&&gl(it,dt.scrollTop),dt.scrollLeft!=null&&pl(it,dt.scrollLeft)}function mu(it,at){var dt=it.display,ht=Na(it.display);at.top<0&&(at.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,At=Mo(it),Rt={};at.bottom-at.top>At&&(at.bottom=at.top+At);var Yt=it.doc.height+so(dt),Kt=at.top<ht,le=at.bottom>Yt-ht;if(at.top<pt)Rt.scrollTop=Kt?0:at.top;else if(at.bottom>pt+At){var _e=Math.min(at.top,(le?Yt:at.bottom)-At);_e!=pt&&(Rt.scrollTop=_e)}var Pe=it.options.fixedGutter?0:dt.gutters.offsetWidth,Fn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-Pe,Cn=fo(it)-dt.gutters.offsetWidth,Hi=at.right-at.left>Cn;return Hi&&(at.right=at.left+Cn),at.left<10?Rt.scrollLeft=0:at.left<Fn?Rt.scrollLeft=Math.max(0,at.left+Pe-(Hi?0:10)):at.right>Cn+Fn-3&&(Rt.scrollLeft=at.right+(Hi?0:10)-Cn),Rt}function vu(it,at){at!=null&&(Ws(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function Zs(it){Ws(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Vl(it,at,dt){(at!=null||dt!=null)&&Ws(it),at!=null&&(it.curOp.scrollLeft=at),dt!=null&&(it.curOp.scrollTop=dt)}function Wo(it,at){Ws(it),it.curOp.scrollToPos=at}function Ws(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var dt=Nr(it,at.from),ht=Nr(it,at.to);yu(it,dt,ht,at.margin)}}function yu(it,at,dt,ht){var pt=mu(it,{left:Math.min(at.left,dt.left),top:Math.min(at.top,dt.top)-ht,right:Math.max(at.right,dt.right),bottom:Math.max(at.bottom,dt.bottom)+ht});Vl(it,pt.scrollLeft,pt.scrollTop)}function gl(it,at){Math.abs(it.doc.scrollTop-at)<2||(Mt||fh(it,{top:at}),Fu(it,at,!0),Mt&&fh(it),es(it,100))}function Fu(it,at,dt){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!dt)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function pl(it,at,dt,ht){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!ht)&&(it.doc.scrollLeft=at,nf(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function Eo(it){var at=it.display,dt=at.gutters.offsetWidth,ht=Math.round(it.doc.height+so(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Wr(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:dt}}var Ho=function(it,at,dt){this.cm=dt;var ht=this.vert=Vt("div",[Vt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=Vt("div",[Vt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=pt.tabIndex=-1,it(ht),it(pt),He(ht,"scroll",function(){ht.clientHeight&&at(ht.scrollTop,"vertical")}),He(pt,"scroll",function(){pt.clientWidth&&at(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ee&&Ht<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ho.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=at?ht+"px":"0";var pt=it.viewHeight-(at?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var At=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+At)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:at?ht:0}},Ho.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ho.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ho.prototype.zeroWidthHack=function(){var it=ct&&!ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new It,this.disableVert=new It},Ho.prototype.enableZeroWidthBar=function(it,at,dt){it.style.pointerEvents="auto";function ht(){var pt=it.getBoundingClientRect(),At=dt=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);At!=it?it.style.pointerEvents="none":at.set(1e3,ht)}at.set(1e3,ht)},Ho.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var wa=function(){};wa.prototype.update=function(){return{bottom:0,right:0}},wa.prototype.setScrollLeft=function(){},wa.prototype.setScrollTop=function(){},wa.prototype.clear=function(){};function _a(it,at){at||(at=Eo(it));var dt=it.display.barWidth,ht=it.display.barHeight;Ka(it,at);for(var pt=0;pt<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;pt++)dt!=it.display.barWidth&&it.options.lineWrapping&&Qr(it),Ka(it,Eo(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Ka(it,at){var dt=it.display,ht=dt.scrollbars.update(at);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=at.gutterWidth+"px"):dt.gutterFiller.style.display=""}var Nl={native:Ho,null:wa};function ml(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Wt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Nl[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),He(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,dt){dt=="horizontal"?pl(it,at):gl(it,at)},it),it.display.scrollbars.addClass&&ke(it.display.wrapper,it.display.scrollbars.addClass)}var Do=0;function vo(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.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:++Do},zi(it.curOp)}function Za(it){var at=it.curOp;at&&mr(at,function(dt){for(var ht=0;ht<dt.ops.length;ht++)dt.ops[ht].cm.curOp=null;iu(dt)})}function iu(it){for(var at=it.ops,dt=0;dt<at.length;dt++)Ed(at[dt]);for(var ht=0;ht<at.length;ht++)hg(at[ht]);for(var pt=0;pt<at.length;pt++)tf(at[pt]);for(var At=0;At<at.length;At++)Ra(at[At]);for(var Rt=0;Rt<at.length;Rt++)Ju(at[Rt])}function Ed(it){var at=it.cm,dt=at.display;Zp(at),it.updateMaxLine&&en(at),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<dt.viewFrom||it.scrollToPos.to.line>=dt.viewTo)||dt.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new Xh(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function hg(it){it.updatedDisplay=it.mustUpdate&&ef(it.cm,it.update)}function tf(it){var at=it.cm,dt=at.display;it.updatedDisplay&&Qr(at),it.barMeasure=Eo(at),dt.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=Ao(at,dt.maxLine,dt.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Wr(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-fo(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Ra(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<at.doc.scrollLeft&&pl(at,Math.min(at.display.scroller.scrollLeft,it.maxScrollLeft),!0),at.display.maxLineChanged=!1);var dt=it.focus&&it.focus==Ie();it.preparedSelection&&at.display.input.showSelection(it.preparedSelection,dt),(it.updatedDisplay||it.startHeight!=at.doc.height)&&_a(at,it.barMeasure),it.updatedDisplay&&ph(at,it.barMeasure),it.selectionChanged&&Uo(at),at.state.focused&&it.updateInput&&at.display.input.reset(it.typing),dt&&ua(it.cm)}function Ju(it){var at=it.cm,dt=at.display,ht=at.doc;if(it.updatedDisplay&&va(at,it.update),dt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(dt.wheelStartX=dt.wheelStartY=null),it.scrollTop!=null&&Fu(at,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&pl(at,it.scrollLeft,!0,!0),it.scrollToPos){var pt=Qs(at,wi(ht,it.scrollToPos.from),wi(ht,it.scrollToPos.to),it.scrollToPos.margin);Gl(at,pt)}var At=it.maybeHiddenMarkers,Rt=it.maybeUnhiddenMarkers;if(At)for(var Yt=0;Yt<At.length;++Yt)At[Yt].lines.length||Pn(At[Yt],"hide");if(Rt)for(var Kt=0;Kt<Rt.length;++Kt)Rt[Kt].lines.length&&Pn(Rt[Kt],"unhide");dt.wrapper.offsetHeight&&(ht.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&Pn(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function ro(it,at){if(it.curOp)return at();vo(it);try{return at()}finally{Za(it)}}function ho(it,at){return function(){if(it.curOp)return at.apply(it,arguments);vo(it);try{return at.apply(it,arguments)}finally{Za(it)}}}function Lo(it){return function(){if(this.curOp)return it.apply(this,arguments);vo(this);try{return it.apply(this,arguments)}finally{Za(this)}}}function $o(it){return function(){var at=this.cm;if(!at||at.curOp)return it.apply(this,arguments);vo(at);try{return it.apply(this,arguments)}finally{Za(at)}}}function es(it,at){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(at,qe(hs,it))}function hs(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=to(it,at.highlightFrontier),pt=[];at.iter(ht.line,Math.min(at.first+at.size,it.display.viewTo+500),function(At){if(ht.line>=it.display.viewFrom){var Rt=At.styles,Yt=At.text.length>it.options.maxHighlightLength?qn(at.mode,ht.state):null,Kt=_r(it,At,ht,!0);Yt&&(ht.state=Yt),At.styles=Kt.styles;var le=At.styleClasses,_e=Kt.classes;_e?At.styleClasses=_e:le&&(At.styleClasses=null);for(var Pe=!Rt||Rt.length!=At.styles.length||le!=_e&&(!le||!_e||le.bgClass!=_e.bgClass||le.textClass!=_e.textClass),Fn=0;!Pe&&Fn<Rt.length;++Fn)Pe=Rt[Fn]!=At.styles[Fn];Pe&&pt.push(ht.line),At.stateAfter=ht.save(),ht.nextLine()}else At.text.length<=it.options.maxHighlightLength&&rn(it,At.text,ht),At.stateAfter=ht.line%5==0?ht.save():null,ht.nextLine();if(+new Date>dt)return es(it,it.options.workDelay),!0}),at.highlightFrontier=ht.line,at.modeFrontier=Math.max(at.modeFrontier,ht.line),pt.length&&ro(it,function(){for(var At=0;At<pt.length;At++)mo(it,pt[At],"text")})}}var Xh=function(it,at,dt){var ht=it.display;this.viewport=at,this.visible=Co(ht,it.doc,at),this.editorIsHidden=!ht.wrapper.offsetWidth,this.wrapperHeight=ht.wrapper.clientHeight,this.wrapperWidth=ht.wrapper.clientWidth,this.oldDisplayWidth=fo(it),this.force=dt,this.dims=ts(it),this.events=[]};Xh.prototype.signal=function(it,at){xi(it,at)&&this.events.push(arguments)},Xh.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Pn.apply(null,this.events[it])};function Zp(it){var at=it.display;!at.scrollbarsClipped&&at.scroller.offsetWidth&&(at.nativeBarWidth=at.scroller.offsetWidth-at.scroller.clientWidth,at.heightForcer.style.height=Wr(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=Wr(it)+"px",at.scrollbarsClipped=!0)}function Wp(it){if(it.hasFocus())return null;var at=Ie();if(!at||!Ee(it.display.lineDiv,at))return null;var dt={activeElt:at};if(window.getSelection){var ht=window.getSelection();ht.anchorNode&&ht.extend&&Ee(it.display.lineDiv,ht.anchorNode)&&(dt.anchorNode=ht.anchorNode,dt.anchorOffset=ht.anchorOffset,dt.focusNode=ht.focusNode,dt.focusOffset=ht.focusOffset)}return dt}function ol(it){if(!(!it||!it.activeElt||it.activeElt==Ie())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Ee(document.body,it.anchorNode)&&Ee(document.body,it.focusNode))){var at=window.getSelection(),dt=document.createRange();dt.setEnd(it.anchorNode,it.anchorOffset),dt.collapse(!1),at.removeAllRanges(),at.addRange(dt),at.extend(it.focusNode,it.focusOffset)}}function ef(it,at){var dt=it.display,ht=it.doc;if(at.editorIsHidden)return fa(it),!1;if(!at.force&&at.visible.from>=dt.viewFrom&&at.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&us(it)==0)return!1;as(it)&&(fa(it),at.dims=ts(it));var pt=ht.first+ht.size,At=Math.max(at.visible.from-it.options.viewportMargin,ht.first),Rt=Math.min(pt,at.visible.to+it.options.viewportMargin);dt.viewFrom<At&&At-dt.viewFrom<20&&(At=Math.max(ht.first,dt.viewFrom)),dt.viewTo>Rt&&dt.viewTo-Rt<20&&(Rt=Math.min(pt,dt.viewTo)),pn&&(At=Nt(it.doc,At),Rt=ae(it.doc,Rt));var Yt=At!=dt.viewFrom||Rt!=dt.viewTo||dt.lastWrapHeight!=at.wrapperHeight||dt.lastWrapWidth!=at.wrapperWidth;ra(it,At,Rt),dt.viewOffset=we(Hn(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var Kt=us(it);if(!Yt&&Kt==0&&!at.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var le=Wp(it);return Kt>4&&(dt.lineDiv.style.display="none"),dg(it,dt.updateLineNumbers,at.dims),Kt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,ol(le),$t(dt.cursorDiv),$t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,Yt&&(dt.lastWrapHeight=at.wrapperHeight,dt.lastWrapWidth=at.wrapperWidth,es(it,400)),dt.updateLineNumbers=null,!0}function va(it,at){for(var dt=at.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||at.oldDisplayWidth==fo(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+so(it.display)-Mo(it),dt.top)}),at.visible=Co(it.display,it.doc,dt),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else ht&&(at.visible=Co(it.display,it.doc,dt));if(!ef(it,at))break;Qr(it);var pt=Eo(it);Ta(it),_a(it,pt),ph(it,pt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function fh(it,at){var dt=new Xh(it,at);if(ef(it,dt)){Qr(it),va(it,dt);var ht=Eo(it);Ta(it),_a(it,ht),ph(it,ht),dt.finish()}}function dg(it,at,dt){var ht=it.display,pt=it.options.lineNumbers,At=ht.lineDiv,Rt=At.firstChild;function Yt(Hi){var Yi=Hi.nextSibling;return oe&&ct&&it.display.currentWheelTarget==Hi?Hi.style.display="none":Hi.parentNode.removeChild(Hi),Yi}for(var Kt=ht.view,le=ht.viewFrom,_e=0;_e<Kt.length;_e++){var Pe=Kt[_e];if(!Pe.hidden)if(!Pe.node||Pe.node.parentNode!=At){var Fn=Or(it,Pe,le,dt);At.insertBefore(Fn,Rt)}else{for(;Rt!=Pe.node;)Rt=Yt(Rt);var Cn=pt&&at!=null&&at<=le&&Pe.lineNumber;Pe.changes&&(Le(Pe.changes,"gutter")>-1&&(Cn=!1),gr(it,Pe,le,dt)),Cn&&($t(Pe.lineNumber),Pe.lineNumber.appendChild(document.createTextNode(Ai(it.options,le)))),Rt=Pe.node.nextSibling}le+=Pe.size}for(;Rt;)Rt=Yt(Rt)}function gh(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function ph(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+Wr(it)+"px"}function nf(it){var at=it.display,dt=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Hs(at)-at.scroller.scrollLeft+it.doc.scrollLeft,pt=at.gutters.offsetWidth,At=ht+"px",Rt=0;Rt<dt.length;Rt++)if(!dt[Rt].hidden){it.options.fixedGutter&&(dt[Rt].gutter&&(dt[Rt].gutter.style.left=At),dt[Rt].gutterBackground&&(dt[Rt].gutterBackground.style.left=At));var Yt=dt[Rt].alignable;if(Yt)for(var Kt=0;Kt<Yt.length;Kt++)Yt[Kt].style.left=At}it.options.fixedGutter&&(at.gutters.style.left=ht+pt+"px")}}function as(it){if(!it.options.lineNumbers)return!1;var at=it.doc,dt=Ai(it.options,at.first+at.size-1),ht=it.display;if(dt.length!=ht.lineNumChars){var pt=ht.measure.appendChild(Vt("div",[Vt("div",dt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),At=pt.firstChild.offsetWidth,Rt=pt.offsetWidth-At;return ht.lineGutter.style.width="",ht.lineNumInnerWidth=Math.max(At,ht.lineGutter.offsetWidth-Rt)+1,ht.lineNumWidth=ht.lineNumInnerWidth+Rt,ht.lineNumChars=ht.lineNumInnerWidth?dt.length:-1,ht.lineGutter.style.width=ht.lineNumWidth+"px",gh(it.display),!0}return!1}function xs(it,at){for(var dt=[],ht=!1,pt=0;pt<it.length;pt++){var At=it[pt],Rt=null;if(typeof At!="string"&&(Rt=At.style,At=At.className),At=="CodeMirror-linenumbers")if(at)ht=!0;else continue;dt.push({className:At,style:Rt})}return at&&!ht&&dt.push({className:"CodeMirror-linenumbers",style:null}),dt}function Yh(it){var at=it.gutters,dt=it.gutterSpecs;$t(at),it.lineGutter=null;for(var ht=0;ht<dt.length;++ht){var pt=dt[ht],At=pt.className,Rt=pt.style,Yt=at.appendChild(Vt("div",null,"CodeMirror-gutter "+At));Rt&&(Yt.style.cssText=Rt),At=="CodeMirror-linenumbers"&&(it.lineGutter=Yt,Yt.style.width=(it.lineNumWidth||1)+"px")}at.style.display=dt.length?"":"none",gh(it)}function Tl(it){Yh(it.display),sa(it),nf(it)}function mh(it,at,dt,ht){var pt=this;this.input=dt,pt.scrollbarFiller=Vt("div",null,"CodeMirror-scrollbar-filler"),pt.scrollbarFiller.setAttribute("cm-not-content","true"),pt.gutterFiller=Vt("div",null,"CodeMirror-gutter-filler"),pt.gutterFiller.setAttribute("cm-not-content","true"),pt.lineDiv=pe("div",null,"CodeMirror-code"),pt.selectionDiv=Vt("div",null,null,"position: relative; z-index: 1"),pt.cursorDiv=Vt("div",null,"CodeMirror-cursors"),pt.measure=Vt("div",null,"CodeMirror-measure"),pt.lineMeasure=Vt("div",null,"CodeMirror-measure"),pt.lineSpace=pe("div",[pt.measure,pt.lineMeasure,pt.selectionDiv,pt.cursorDiv,pt.lineDiv],null,"position: relative; outline: none");var At=pe("div",[pt.lineSpace],"CodeMirror-lines");pt.mover=Vt("div",[At],null,"position: relative"),pt.sizer=Vt("div",[pt.mover],"CodeMirror-sizer"),pt.sizerWidth=null,pt.heightForcer=Vt("div",null,null,"position: absolute; height: "+an+"px; width: 1px;"),pt.gutters=Vt("div",null,"CodeMirror-gutters"),pt.lineGutter=null,pt.scroller=Vt("div",[pt.sizer,pt.heightForcer,pt.gutters],"CodeMirror-scroll"),pt.scroller.setAttribute("tabIndex","-1"),pt.wrapper=Vt("div",[pt.scrollbarFiller,pt.gutterFiller,pt.scroller],"CodeMirror"),ee&&Ht<8&&(pt.gutters.style.zIndex=-1,pt.scroller.style.paddingRight=0),!oe&&!(Mt&&nt)&&(pt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(pt.wrapper):it(pt.wrapper)),pt.viewFrom=pt.viewTo=at.first,pt.reportedViewFrom=pt.reportedViewTo=at.first,pt.view=[],pt.renderedView=null,pt.externalMeasured=null,pt.viewOffset=0,pt.lastWrapHeight=pt.lastWrapWidth=0,pt.updateLineNumbers=null,pt.nativeBarWidth=pt.barHeight=pt.barWidth=0,pt.scrollbarsClipped=!1,pt.lineNumWidth=pt.lineNumInnerWidth=pt.lineNumChars=null,pt.alignWidgets=!1,pt.cachedCharWidth=pt.cachedTextHeight=pt.cachedPaddingH=null,pt.maxLine=null,pt.maxLineLength=0,pt.maxLineChanged=!1,pt.wheelDX=pt.wheelDY=pt.wheelStartX=pt.wheelStartY=null,pt.shift=!1,pt.selForContextMenu=null,pt.activeTouch=null,pt.gutterSpecs=xs(ht.gutters,ht.lineNumbers),Yh(pt),dt.init(pt)}var vl=0,ns=null;ee?ns=-.53:Mt?ns=15:ve?ns=-.7:Ue&&(ns=-1/3);function Su(it){var at=it.wheelDeltaX,dt=it.wheelDeltaY;return at==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(at=it.detail),dt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?dt=it.detail:dt==null&&(dt=it.wheelDelta),{x:at,y:dt}}function Dl(it){var at=Su(it);return at.x*=ns,at.y*=ns,at}function Ps(it,at){var dt=Su(at),ht=dt.x,pt=dt.y,At=it.display,Rt=At.scroller,Yt=Rt.scrollWidth>Rt.clientWidth,Kt=Rt.scrollHeight>Rt.clientHeight;if(ht&&Yt||pt&&Kt){if(pt&&ct&&oe){t:for(var le=at.target,_e=At.view;le!=Rt;le=le.parentNode)for(var Pe=0;Pe<_e.length;Pe++)if(_e[Pe].node==le){it.display.currentWheelTarget=le;break t}}if(ht&&!Mt&&!Tt&&ns!=null){pt&&Kt&&gl(it,Math.max(0,Rt.scrollTop+pt*ns)),pl(it,Math.max(0,Rt.scrollLeft+ht*ns)),(!pt||pt&&Kt)&&tr(at),At.wheelStartX=null;return}if(pt&&ns!=null){var Fn=pt*ns,Cn=it.doc.scrollTop,Hi=Cn+At.wrapper.clientHeight;Fn<0?Cn=Math.max(0,Cn+Fn-50):Hi=Math.min(it.doc.height,Hi+Fn+50),fh(it,{top:Cn,bottom:Hi})}vl<20&&(At.wheelStartX==null?(At.wheelStartX=Rt.scrollLeft,At.wheelStartY=Rt.scrollTop,At.wheelDX=ht,At.wheelDY=pt,setTimeout(function(){if(At.wheelStartX!=null){var Yi=Rt.scrollLeft-At.wheelStartX,sr=Rt.scrollTop-At.wheelStartY,Ar=sr&&At.wheelDY&&sr/At.wheelDY||Yi&&At.wheelDX&&Yi/At.wheelDX;At.wheelStartX=At.wheelStartY=null,Ar&&(ns=(ns*vl+Ar)/(vl+1),++vl)}},200)):(At.wheelDX+=ht,At.wheelDY+=pt))}}var Kl=function(it,at){this.ranges=it,this.primIndex=at};Kl.prototype.primary=function(){return this.ranges[this.primIndex]},Kl.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var at=0;at<this.ranges.length;at++){var dt=this.ranges[at],ht=it.ranges[at];if(!li(dt.anchor,ht.anchor)||!li(dt.head,ht.head))return!1}return!0},Kl.prototype.deepCopy=function(){for(var it=[],at=0;at<this.ranges.length;at++)it[at]=new ya(bi(this.ranges[at].anchor),bi(this.ranges[at].head));return new Kl(it,this.primIndex)},Kl.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},Kl.prototype.contains=function(it,at){at||(at=it);for(var dt=0;dt<this.ranges.length;dt++){var ht=this.ranges[dt];if(yn(at,ht.from())>=0&&yn(it,ht.to())<=0)return dt}return-1};var ya=function(it,at){this.anchor=it,this.head=at};ya.prototype.from=function(){return Di(this.anchor,this.head)},ya.prototype.to=function(){return Ui(this.anchor,this.head)},ya.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ru(it,at,dt){var ht=it&&it.options.selectionsMayTouch,pt=at[dt];at.sort(function(Fn,Cn){return yn(Fn.from(),Cn.from())}),dt=Le(at,pt);for(var At=1;At<at.length;At++){var Rt=at[At],Yt=at[At-1],Kt=yn(Yt.to(),Rt.from());if(ht&&!Rt.empty()?Kt>0:Kt>=0){var le=Di(Yt.from(),Rt.from()),_e=Ui(Yt.to(),Rt.to()),Pe=Yt.empty()?Rt.from()==Rt.head:Yt.from()==Yt.head;At<=dt&&--dt,at.splice(--At,2,new ya(Pe?_e:le,Pe?le:_e))}}return new Kl(at,dt)}function Qu(it,at){return new Kl([new ya(it,at||it)],0)}function vh(it){return it.text?ln(it.from.line+it.text.length-1,ue(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Uh(it,at){if(yn(it,at.from)<0)return it;if(yn(it,at.to)<=0)return vh(at);var dt=it.line+at.text.length-(at.to.line-at.from.line)-1,ht=it.ch;return it.line==at.to.line&&(ht+=vh(at).ch-at.to.ch),ln(dt,ht)}function hc(it,at){for(var dt=[],ht=0;ht<it.sel.ranges.length;ht++){var pt=it.sel.ranges[ht];dt.push(new ya(Uh(pt.anchor,at),Uh(pt.head,at)))}return ru(it.cm,dt,it.sel.primIndex)}function Fd(it,at,dt){return it.line==at.line?ln(dt.line,it.ch-at.ch+dt.ch):ln(dt.line+(it.line-at.line),it.ch)}function dc(it,at,dt){for(var ht=[],pt=ln(it.first,0),At=pt,Rt=0;Rt<at.length;Rt++){var Yt=at[Rt],Kt=Fd(Yt.from,pt,At),le=Fd(vh(Yt),pt,At);if(pt=Yt.to,At=le,dt=="around"){var _e=it.sel.ranges[Rt],Pe=yn(_e.head,_e.anchor)<0;ht[Rt]=new ya(Pe?le:Kt,Pe?Kt:le)}else ht[Rt]=new ya(Kt,Kt)}return new Kl(ht,it.sel.primIndex)}function Go(it){it.doc.mode=Ae(it.options,it.doc.modeOption),cc(it)}function cc(it){it.doc.iter(function(at){at.stateAfter&&(at.stateAfter=null),at.styles&&(at.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,es(it,100),it.state.modeGen++,it.curOp&&sa(it)}function cg(it,at){return at.from.ch==0&&at.to.ch==0&&ue(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function rf(it,at,dt,ht){function pt(Xr){return dt?dt[Xr]:null}function At(Xr,jr,$r){Bn(Xr,jr,$r,ht),Si(Xr,"change",Xr,at)}function Rt(Xr,jr){for(var $r=[],bo=Xr;bo<jr;++bo)$r.push(new hn(le[bo],pt(bo),ht));return $r}var Yt=at.from,Kt=at.to,le=at.text,_e=Hn(it,Yt.line),Pe=Hn(it,Kt.line),Fn=ue(le),Cn=pt(le.length-1),Hi=Kt.line-Yt.line;if(at.full)it.insert(0,Rt(0,le.length)),it.remove(le.length,it.size-le.length);else if(cg(it,at)){var Yi=Rt(0,le.length-1);At(Pe,Pe.text,Cn),Hi&&it.remove(Yt.line,Hi),Yi.length&&it.insert(Yt.line,Yi)}else if(_e==Pe)if(le.length==1)At(_e,_e.text.slice(0,Yt.ch)+Fn+_e.text.slice(Kt.ch),Cn);else{var sr=Rt(1,le.length-1);sr.push(new hn(Fn+_e.text.slice(Kt.ch),Cn,ht)),At(_e,_e.text.slice(0,Yt.ch)+le[0],pt(0)),it.insert(Yt.line+1,sr)}else if(le.length==1)At(_e,_e.text.slice(0,Yt.ch)+le[0]+Pe.text.slice(Kt.ch),pt(0)),it.remove(Yt.line+1,Hi);else{At(_e,_e.text.slice(0,Yt.ch)+le[0],pt(0)),At(Pe,Fn+Pe.text.slice(Kt.ch),Cn);var Ar=Rt(1,le.length-1);Hi>1&&it.remove(Yt.line+1,Hi-1),it.insert(Yt.line+1,Ar)}Si(it,"change",it,at)}function xu(it,at,dt){function ht(pt,At,Rt){if(pt.linked)for(var Yt=0;Yt<pt.linked.length;++Yt){var Kt=pt.linked[Yt];if(Kt.doc!=At){var le=Rt&&Kt.sharedHist;dt&&!le||(at(Kt.doc,le),ht(Kt.doc,pt,le))}}}ht(it,null,!0)}function of(it,at){if(at.cm)throw new Error("This document is already in use.");it.doc=at,at.cm=it,Vr(it),Go(it),fc(it),it.options.lineWrapping||en(it),it.options.mode=at.modeOption,sa(it)}function fc(it){(it.doc.direction=="rtl"?ke:Wt)(it.display.lineDiv,"CodeMirror-rtl")}function $0(it){ro(it,function(){fc(it),sa(it)})}function Nd(it){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=it||1}function af(it,at){var dt={from:bi(at.from),to:vh(at),text:Oe(it,at.from,at.to)};return yh(it,dt,at.from.line,at.to.line+1),xu(it,function(ht){return yh(ht,dt,at.from.line,at.to.line+1)},!0),dt}function Td(it){for(;it.length;){var at=ue(it);if(at.ranges)it.pop();else break}}function gc(it,at){if(at)return Td(it.done),ue(it.done);if(it.done.length&&!ue(it.done).ranges)return ue(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),ue(it.done)}function pc(it,at,dt,ht){var pt=it.history;pt.undone.length=0;var At=+new Date,Rt,Yt;if((pt.lastOp==ht||pt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&pt.lastModTime>At-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(Rt=gc(pt,pt.lastOp==ht)))Yt=ue(Rt.changes),yn(at.from,at.to)==0&&yn(at.from,Yt.to)==0?Yt.to=vh(at):Rt.changes.push(af(it,at));else{var Kt=ue(pt.done);for((!Kt||!Kt.ranges)&&Dd(it.sel,pt.done),Rt={changes:[af(it,at)],generation:pt.generation},pt.done.push(Rt);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(dt),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=At,pt.lastOp=pt.lastSelOp=ht,pt.lastOrigin=pt.lastSelOrigin=at.origin,Yt||Pn(it,"historyAdded")}function fg(it,at,dt,ht){var pt=at.charAt(0);return pt=="*"||pt=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function mc(it,at,dt,ht){var pt=it.history,At=ht&&ht.origin;dt==pt.lastSelOp||At&&pt.lastSelOrigin==At&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==At||fg(it,At,ue(pt.done),at))?pt.done[pt.done.length-1]=at:Dd(at,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=At,pt.lastSelOp=dt,ht&&ht.clearRedo!==!1&&Td(pt.undone)}function Dd(it,at){var dt=ue(at);dt&&dt.ranges&&dt.equals(it)||at.push(it)}function yh(it,at,dt,ht){var pt=at["spans_"+it.id],At=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Rt){Rt.markedSpans&&((pt||(pt=at["spans_"+it.id]={}))[At]=Rt.markedSpans),++At})}function qs(it){if(!it)return null;for(var at,dt=0;dt<it.length;++dt)it[dt].marker.explicitlyCleared?at||(at=it.slice(0,dt)):at&&at.push(it[dt]);return at?at.length?at:null:it}function Nu(it,at){var dt=at["spans_"+it.id];if(!dt)return null;for(var ht=[],pt=0;pt<at.text.length;++pt)ht.push(qs(dt[pt]));return ht}function sf(it,at){var dt=Nu(it,at),ht=eo(it,at);if(!dt)return ht;if(!ht)return dt;for(var pt=0;pt<dt.length;++pt){var At=dt[pt],Rt=ht[pt];if(At&&Rt)t:for(var Yt=0;Yt<Rt.length;++Yt){for(var Kt=Rt[Yt],le=0;le<At.length;++le)if(At[le].marker==Kt.marker)continue t;At.push(Kt)}else Rt&&(dt[pt]=Rt)}return dt}function qu(it,at,dt){for(var ht=[],pt=0;pt<it.length;++pt){var At=it[pt];if(At.ranges){ht.push(dt?Kl.prototype.deepCopy.call(At):At);continue}var Rt=At.changes,Yt=[];ht.push({changes:Yt});for(var Kt=0;Kt<Rt.length;++Kt){var le=Rt[Kt],_e=void 0;if(Yt.push({from:le.from,to:le.to,text:le.text}),at)for(var Pe in le)(_e=Pe.match(/^spans_(\d+)$/))&&Le(at,Number(_e[1]))>-1&&(ue(Yt)[Pe]=le[Pe],delete le[Pe])}}return ht}function lf(it,at,dt,ht){if(ht){var pt=it.anchor;if(dt){var At=yn(at,pt)<0;At!=yn(dt,pt)<0?(pt=at,at=dt):At!=yn(at,dt)<0&&(at=dt)}return new ya(pt,at)}else return new ya(dt||at,at)}function uf(it,at,dt,ht,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),Gs(it,new Kl([lf(it.sel.primary(),at,dt,pt)],0),ht)}function Gp(it,at,dt){for(var ht=[],pt=it.cm&&(it.cm.display.shift||it.extend),At=0;At<it.sel.ranges.length;At++)ht[At]=lf(it.sel.ranges[At],at[At],null,pt);var Rt=ru(it.cm,ht,it.sel.primIndex);Gs(it,Rt,dt)}function Sh(it,at,dt,ht){var pt=it.sel.ranges.slice(0);pt[at]=dt,Gs(it,ru(it.cm,pt,it.sel.primIndex),ht)}function Jh(it,at,dt,ht){Gs(it,Qu(at,dt),ht)}function Vp(it,at,dt){var ht={ranges:at.ranges,update:function(pt){this.ranges=[];for(var At=0;At<pt.length;At++)this.ranges[At]=new ya(wi(it,pt[At].anchor),wi(it,pt[At].head))},origin:dt&&dt.origin};return Pn(it,"beforeSelectionChange",it,ht),it.cm&&Pn(it.cm,"beforeSelectionChange",it.cm,ht),ht.ranges!=at.ranges?ru(it.cm,ht.ranges,ht.ranges.length-1):at}function hf(it,at,dt){var ht=it.history.done,pt=ue(ht);pt&&pt.ranges?(ht[ht.length-1]=at,Qh(it,at,dt)):Gs(it,at,dt)}function Gs(it,at,dt){Qh(it,at,dt),mc(it,it.sel,it.cm?it.cm.curOp.id:NaN,dt)}function Qh(it,at,dt){(xi(it,"beforeSelectionChange")||it.cm&&xi(it.cm,"beforeSelectionChange"))&&(at=Vp(it,at,dt));var ht=dt&&dt.bias||(yn(at.primary().head,it.sel.primary().head)<0?-1:1);gg(it,yc(it,at,ht,!0)),!(dt&&dt.scroll===!1)&&it.cm&&Zs(it.cm)}function gg(it,at){at.equals(it.sel)||(it.sel=at,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,Ni(it.cm)),Si(it,"cursorActivity",it))}function vc(it){gg(it,yc(it,it.sel,null,!1))}function yc(it,at,dt,ht){for(var pt,At=0;At<at.ranges.length;At++){var Rt=at.ranges[At],Yt=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[At],Kt=Sc(it,Rt.anchor,Yt&&Yt.anchor,dt,ht),le=Sc(it,Rt.head,Yt&&Yt.head,dt,ht);(pt||Kt!=Rt.anchor||le!=Rt.head)&&(pt||(pt=at.ranges.slice(0,At)),pt[At]=new ya(Kt,le))}return pt?ru(it.cm,pt,at.primIndex):at}function _u(it,at,dt,ht,pt){var At=Hn(it,at.line);if(At.markedSpans)for(var Rt=0;Rt<At.markedSpans.length;++Rt){var Yt=At.markedSpans[Rt],Kt=Yt.marker,le="selectLeft"in Kt?!Kt.selectLeft:Kt.inclusiveLeft,_e="selectRight"in Kt?!Kt.selectRight:Kt.inclusiveRight;if((Yt.from==null||(le?Yt.from<=at.ch:Yt.from<at.ch))&&(Yt.to==null||(_e?Yt.to>=at.ch:Yt.to>at.ch))){if(pt&&(Pn(Kt,"beforeCursorEnter"),Kt.explicitlyCleared))if(At.markedSpans){--Rt;continue}else break;if(!Kt.atomic)continue;if(dt){var Pe=Kt.find(ht<0?1:-1),Fn=void 0;if((ht<0?_e:le)&&(Pe=pg(it,Pe,-ht,Pe&&Pe.line==at.line?At:null)),Pe&&Pe.line==at.line&&(Fn=yn(Pe,dt))&&(ht<0?Fn<0:Fn>0))return _u(it,Pe,at,ht,pt)}var Cn=Kt.find(ht<0?-1:1);return(ht<0?le:_e)&&(Cn=pg(it,Cn,ht,Cn.line==at.line?At:null)),Cn?_u(it,Cn,at,ht,pt):null}}return at}function Sc(it,at,dt,ht,pt){var At=ht||1,Rt=_u(it,at,dt,At,pt)||!pt&&_u(it,at,dt,At,!0)||_u(it,at,dt,-At,pt)||!pt&&_u(it,at,dt,-At,!0);return Rt||(it.cantEdit=!0,ln(it.first,0))}function pg(it,at,dt,ht){return dt<0&&at.ch==0?at.line>it.first?wi(it,ln(at.line-1)):null:dt>0&&at.ch==(ht||Hn(it,at.line)).text.length?at.line<it.first+it.size-1?ln(at.line+1,0):null:new ln(at.line,at.ch+dt)}function is(it){it.setSelection(ln(it.firstLine(),0),ln(it.lastLine()),Ce)}function xc(it,at,dt){var ht={canceled:!1,from:at.from,to:at.to,text:at.text,origin:at.origin,cancel:function(){return ht.canceled=!0}};return dt&&(ht.update=function(pt,At,Rt,Yt){pt&&(ht.from=wi(it,pt)),At&&(ht.to=wi(it,At)),Rt&&(ht.text=Rt),Yt!==void 0&&(ht.origin=Yt)}),Pn(it,"beforeChange",it,ht),it.cm&&Pn(it.cm,"beforeChange",it.cm,ht),ht.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:ht.from,to:ht.to,text:ht.text,origin:ht.origin}}function xh(it,at,dt){if(it.cm){if(!it.cm.curOp)return ho(it.cm,xh)(it,at,dt);if(it.cm.state.suppressEdits)return}if(!((xi(it,"beforeChange")||it.cm&&xi(it.cm,"beforeChange"))&&(at=xc(it,at,!0),!at))){var ht=zr&&!dt&&Mn(it,at.from,at.to);if(ht)for(var pt=ht.length-1;pt>=0;--pt)qh(it,{from:ht[pt].from,to:ht[pt].to,text:pt?[""]:at.text,origin:at.origin});else qh(it,at)}}function qh(it,at){if(!(at.text.length==1&&at.text[0]==""&&yn(at.from,at.to)==0)){var dt=hc(it,at);pc(it,at,dt,it.cm?it.cm.curOp.id:NaN),Bd(it,at,dt,eo(it,at));var ht=[];xu(it,function(pt,At){!At&&Le(ht,pt.history)==-1&&(vg(pt.history,at),ht.push(pt.history)),Bd(pt,at,null,eo(pt,at))})}}function Pc(it,at,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var pt=it.history,At,Rt=it.sel,Yt=at=="undo"?pt.done:pt.undone,Kt=at=="undo"?pt.undone:pt.done,le=0;le<Yt.length&&(At=Yt[le],!(dt?At.ranges&&!At.equals(it.sel):!At.ranges));le++);if(le!=Yt.length){for(pt.lastOrigin=pt.lastSelOrigin=null;;)if(At=Yt.pop(),At.ranges){if(Dd(At,Kt),dt&&!At.equals(it.sel)){Gs(it,At,{clearRedo:!1});return}Rt=At}else if(ht){Yt.push(At);return}else break;var _e=[];Dd(Rt,Kt),Kt.push({changes:_e,generation:pt.generation}),pt.generation=At.generation||++pt.maxGeneration;for(var Pe=xi(it,"beforeChange")||it.cm&&xi(it.cm,"beforeChange"),Fn=function(Yi){var sr=At.changes[Yi];if(sr.origin=at,Pe&&!xc(it,sr,!1))return Yt.length=0,{};_e.push(af(it,sr));var Ar=Yi?hc(it,sr):ue(Yt);Bd(it,sr,Ar,sf(it,sr)),!Yi&&it.cm&&it.cm.scrollIntoView({from:sr.from,to:vh(sr)});var Xr=[];xu(it,function(jr,$r){!$r&&Le(Xr,jr.history)==-1&&(vg(jr.history,sr),Xr.push(jr.history)),Bd(jr,sr,null,sf(jr,sr))})},Cn=At.changes.length-1;Cn>=0;--Cn){var Hi=Fn(Cn);if(Hi)return Hi.v}}}}function mg(it,at){if(at!=0&&(it.first+=at,it.sel=new Kl(Ve(it.sel.ranges,function(pt){return new ya(ln(pt.anchor.line+at,pt.anchor.ch),ln(pt.head.line+at,pt.head.ch))}),it.sel.primIndex),it.cm)){sa(it.cm,it.first,it.first-at,at);for(var dt=it.cm.display,ht=dt.viewFrom;ht<dt.viewTo;ht++)mo(it.cm,ht,"gutter")}}function Bd(it,at,dt,ht){if(it.cm&&!it.cm.curOp)return ho(it.cm,Bd)(it,at,dt,ht);if(at.to.line<it.first){mg(it,at.text.length-1-(at.to.line-at.from.line));return}if(!(at.from.line>it.lastLine())){if(at.from.line<it.first){var pt=at.text.length-1-(it.first-at.from.line);mg(it,pt),at={from:ln(it.first,0),to:ln(at.to.line+pt,at.to.ch),text:[ue(at.text)],origin:at.origin}}var At=it.lastLine();at.to.line>At&&(at={from:at.from,to:ln(At,Hn(it,At).text.length),text:[at.text[0]],origin:at.origin}),at.removed=Oe(it,at.from,at.to),dt||(dt=hc(it,at)),it.cm?Kp(it.cm,at,ht):rf(it,at,ht),Qh(it,dt,Ce),it.cantEdit&&Sc(it,ln(it.firstLine(),0))&&(it.cantEdit=!1)}}function Kp(it,at,dt){var ht=it.doc,pt=it.display,At=at.from,Rt=at.to,Yt=!1,Kt=At.line;it.options.lineWrapping||(Kt=qt(pi(Hn(ht,At.line))),ht.iter(Kt,Rt.line+1,function(Cn){if(Cn==pt.maxLine)return Yt=!0,!0})),ht.sel.contains(at.from,at.to)>-1&&Ni(it),rf(ht,at,dt,aa(it)),it.options.lineWrapping||(ht.iter(Kt,At.line+at.text.length,function(Cn){var Hi=Xe(Cn);Hi>pt.maxLineLength&&(pt.maxLine=Cn,pt.maxLineLength=Hi,pt.maxLineChanged=!0,Yt=!1)}),Yt&&(it.curOp.updateMaxLine=!0)),Hr(ht,At.line),es(it,400);var le=at.text.length-(Rt.line-At.line)-1;at.full?sa(it):At.line==Rt.line&&at.text.length==1&&!cg(it.doc,at)?mo(it,At.line,"text"):sa(it,At.line,Rt.line+1,le);var _e=xi(it,"changes"),Pe=xi(it,"change");if(Pe||_e){var Fn={from:At,to:Rt,text:at.text,removed:at.removed,origin:at.origin};Pe&&Si(it,"change",it,Fn),_e&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Fn)}it.display.selForContextMenu=null}function _h(it,at,dt,ht,pt){var At;ht||(ht=dt),yn(ht,dt)<0&&(At=[ht,dt],dt=At[0],ht=At[1]),typeof at=="string"&&(at=it.splitLines(at)),xh(it,{from:dt,to:ht,text:at,origin:pt})}function Xl(it,at,dt,ht){dt<it.line?it.line+=ht:at<it.line&&(it.line=at,it.ch=0)}function Xp(it,at,dt,ht){for(var pt=0;pt<it.length;++pt){var At=it[pt],Rt=!0;if(At.ranges){At.copied||(At=it[pt]=At.deepCopy(),At.copied=!0);for(var Yt=0;Yt<At.ranges.length;Yt++)Xl(At.ranges[Yt].anchor,at,dt,ht),Xl(At.ranges[Yt].head,at,dt,ht);continue}for(var Kt=0;Kt<At.changes.length;++Kt){var le=At.changes[Kt];if(dt<le.from.line)le.from=ln(le.from.line+ht,le.from.ch),le.to=ln(le.to.line+ht,le.to.ch);else if(at<=le.to.line){Rt=!1;break}}Rt||(it.splice(0,pt+1),pt=0)}}function vg(it,at){var dt=at.from.line,ht=at.to.line,pt=at.text.length-(ht-dt)-1;Xp(it.done,dt,ht,pt),Xp(it.undone,dt,ht,pt)}function $h(it,at,dt,ht){var pt=at,At=at;return typeof at=="number"?At=Hn(it,$n(it,at)):pt=qt(at),pt==null?null:(ht(At,pt)&&it.cm&&mo(it.cm,pt,dt),At)}function Od(it){this.lines=it,this.parent=null;for(var at=0,dt=0;dt<it.length;++dt)it[dt].parent=this,at+=it[dt].height;this.height=at}Od.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,at){for(var dt=it,ht=it+at;dt<ht;++dt){var pt=this.lines[dt];this.height-=pt.height,Dn(pt),Si(pt,"delete")}this.lines.splice(it,at)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,at,dt){this.height+=dt,this.lines=this.lines.slice(0,it).concat(at).concat(this.lines.slice(it));for(var ht=0;ht<at.length;++ht)at[ht].parent=this},iterN:function(it,at,dt){for(var ht=it+at;it<ht;++it)if(dt(this.lines[it]))return!0}};function Wa(it){this.children=it;for(var at=0,dt=0,ht=0;ht<it.length;++ht){var pt=it[ht];at+=pt.chunkSize(),dt+=pt.height,pt.parent=this}this.size=at,this.height=dt,this.parent=null}Wa.prototype={chunkSize:function(){return this.size},removeInner:function(it,at){this.size-=at;for(var dt=0;dt<this.children.length;++dt){var ht=this.children[dt],pt=ht.chunkSize();if(it<pt){var At=Math.min(at,pt-it),Rt=ht.height;if(ht.removeInner(it,At),this.height-=Rt-ht.height,pt==At&&(this.children.splice(dt--,1),ht.parent=null),(at-=At)==0)break;it=0}else it-=pt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof Od))){var Yt=[];this.collapse(Yt),this.children=[new Od(Yt)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at<this.children.length;++at)this.children[at].collapse(it)},insertInner:function(it,at,dt){this.size+=at.length,this.height+=dt;for(var ht=0;ht<this.children.length;++ht){var pt=this.children[ht],At=pt.chunkSize();if(it<=At){if(pt.insertInner(it,at,dt),pt.lines&&pt.lines.length>50){for(var Rt=pt.lines.length%25+25,Yt=Rt;Yt<pt.lines.length;){var Kt=new Od(pt.lines.slice(Yt,Yt+=25));pt.height-=Kt.height,this.children.splice(++ht,0,Kt),Kt.parent=this}pt.lines=pt.lines.slice(0,Rt),this.maybeSpill()}break}it-=At}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var at=it.children.splice(it.children.length-5,5),dt=new Wa(at);if(it.parent){it.size-=dt.size,it.height-=dt.height;var pt=Le(it.parent.children,it);it.parent.children.splice(pt+1,0,dt)}else{var ht=new Wa(it.children);ht.parent=it,it.children=[ht,dt],it=ht}dt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,at,dt){for(var ht=0;ht<this.children.length;++ht){var pt=this.children[ht],At=pt.chunkSize();if(it<At){var Rt=Math.min(at,At-it);if(pt.iterN(it,Rt,dt))return!0;if((at-=Rt)==0)break;it=0}else it-=At}}};var $u=function(it,at,dt){if(dt)for(var ht in dt)dt.hasOwnProperty(ht)&&(this[ht]=dt[ht]);this.doc=it,this.node=at};$u.prototype.clear=function(){var it=this.doc.cm,at=this.line.widgets,dt=this.line,ht=qt(dt);if(!(ht==null||!at)){for(var pt=0;pt<at.length;++pt)at[pt]==this&&at.splice(pt--,1);at.length||(dt.widgets=null);var At=Ur(this);ai(dt,Math.max(0,dt.height-At)),it&&(ro(it,function(){Yp(it,dt,-At),mo(it,ht,"widget")}),Si(it,"lineWidgetCleared",it,this,ht))}},$u.prototype.changed=function(){var it=this,at=this.height,dt=this.doc.cm,ht=this.line;this.height=null;var pt=Ur(this)-at;pt&&(Ut(this.doc,ht)||ai(ht,ht.height+pt),dt&&ro(dt,function(){dt.curOp.forceUpdate=!0,Yp(dt,ht,pt),Si(dt,"lineWidgetChanged",dt,it,qt(ht))}))},ki($u);function Yp(it,at,dt){we(at)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&vu(it,dt)}function df(it,at,dt,ht){var pt=new $u(it,dt,ht),At=it.cm;return At&&pt.noHScroll&&(At.display.alignWidgets=!0),$h(it,at,"widget",function(Rt){var Yt=Rt.widgets||(Rt.widgets=[]);if(pt.insertAt==null?Yt.push(pt):Yt.splice(Math.min(Yt.length-1,Math.max(0,pt.insertAt)),0,pt),pt.line=Rt,At&&!Ut(it,Rt)){var Kt=we(Rt)<it.scrollTop;ai(Rt,Rt.height+Ur(pt)),Kt&&vu(At,pt.height),At.curOp.forceUpdate=!0}return!0}),At&&Si(At,"lineWidgetAdded",At,pt,typeof at=="number"?at:qt(at)),pt}var Up=0,je=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++Up};je.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&vo(it),xi(this,"clear")){var dt=this.find();dt&&Si(this,"clear",dt.from,dt.to)}for(var ht=null,pt=null,At=0;At<this.lines.length;++At){var Rt=this.lines[At],Yt=or(Rt.markedSpans,this);it&&!this.collapsed?mo(it,qt(Rt),"text"):it&&(Yt.to!=null&&(pt=qt(Rt)),Yt.from!=null&&(ht=qt(Rt))),Rt.markedSpans=Cr(Rt.markedSpans,Yt),Yt.from==null&&this.collapsed&&!Ut(this.doc,Rt)&&it&&ai(Rt,Na(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Kt=0;Kt<this.lines.length;++Kt){var le=pi(this.lines[Kt]),_e=Xe(le);_e>it.display.maxLineLength&&(it.display.maxLine=le,it.display.maxLineLength=_e,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&sa(it,ht,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&vc(it.doc)),it&&Si(it,"markerCleared",it,this,ht,pt),at&&Za(it),this.parent&&this.parent.clear()}},je.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,pt=0;pt<this.lines.length;++pt){var At=this.lines[pt],Rt=or(At.markedSpans,this);if(Rt.from!=null&&(dt=ln(at?At:qt(At),Rt.from),it==-1))return dt;if(Rt.to!=null&&(ht=ln(at?At:qt(At),Rt.to),it==1))return ht}return dt&&{from:dt,to:ht}},je.prototype.changed=function(){var it=this,at=this.find(-1,!0),dt=this,ht=this.doc.cm;!at||!ht||ro(ht,function(){var pt=at.line,At=qt(at.line),Rt=ca(ht,At);if(Rt&&(Ca(Rt),ht.curOp.selectionChanged=ht.curOp.forceUpdate=!0),ht.curOp.updateMaxLine=!0,!Ut(dt.doc,pt)&&dt.height!=null){var Yt=dt.height;dt.height=null;var Kt=Ur(dt)-Yt;Kt&&ai(pt,pt.height+Kt)}Si(ht,"markerChanged",ht,it)})},je.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||Le(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},je.prototype.detachLine=function(it){if(this.lines.splice(Le(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},ki(je);function td(it,at,dt,ht,pt){if(ht&&ht.shared)return Jp(it,at,dt,ht,pt);if(it.cm&&!it.cm.curOp)return ho(it.cm,td)(it,at,dt,ht,pt);var At=new je(it,pt),Rt=yn(at,dt);if(ht&&We(ht,At,!1),Rt>0||Rt==0&&At.clearWhenEmpty!==!1)return At;if(At.replacedWith&&(At.collapsed=!0,At.widgetNode=pe("span",[At.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||At.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(At.widgetNode.insertLeft=!0)),At.collapsed){if(hi(it,at.line,at,dt,At)||at.line!=dt.line&&hi(it,dt.line,at,dt,At))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}At.addToHistory&&pc(it,{from:at,to:dt,origin:"markText"},it.sel,NaN);var Yt=at.line,Kt=it.cm,le;if(it.iter(Yt,dt.line+1,function(Pe){Kt&&At.collapsed&&!Kt.options.lineWrapping&&pi(Pe)==Kt.display.maxLine&&(le=!0),At.collapsed&&Yt!=at.line&&ai(Pe,0),Po(Pe,new _i(At,Yt==at.line?at.ch:null,Yt==dt.line?dt.ch:null)),++Yt}),At.collapsed&&it.iter(at.line,dt.line+1,function(Pe){Ut(it,Pe)&&ai(Pe,0)}),At.clearOnEnter&&He(At,"beforeCursorEnter",function(){return At.clear()}),At.readOnly&&(Yr(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),At.collapsed&&(At.id=++Up,At.atomic=!0),Kt){if(le&&(Kt.curOp.updateMaxLine=!0),At.collapsed)sa(Kt,at.line,dt.line+1);else if(At.className||At.startStyle||At.endStyle||At.css||At.attributes||At.title)for(var _e=at.line;_e<=dt.line;_e++)mo(Kt,_e,"text");At.atomic&&vc(Kt.doc),Si(Kt,"markerAdded",Kt,At)}return At}var Tu=function(it,at){this.markers=it,this.primary=at;for(var dt=0;dt<it.length;++dt)it[dt].parent=this};Tu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Si(this,"clear")}},Tu.prototype.find=function(it,at){return this.primary.find(it,at)},ki(Tu);function Jp(it,at,dt,ht,pt){ht=We(ht),ht.shared=!1;var At=[td(it,at,dt,ht,pt)],Rt=At[0],Yt=ht.widgetNode;return xu(it,function(Kt){Yt&&(ht.widgetNode=Yt.cloneNode(!0)),At.push(td(Kt,wi(Kt,at),wi(Kt,dt),ht,pt));for(var le=0;le<Kt.linked.length;++le)if(Kt.linked[le].isParent)return;Rt=ue(At)}),new Tu(At,Rt)}function yg(it){return it.findMarks(ln(it.first,0),it.clipPos(ln(it.lastLine())),function(at){return at.parent})}function Qp(it,at){for(var dt=0;dt<at.length;dt++){var ht=at[dt],pt=ht.find(),At=it.clipPos(pt.from),Rt=it.clipPos(pt.to);if(yn(At,Rt)){var Yt=td(it,At,Rt,ht.primary,ht.primary.type);ht.markers.push(Yt),Yt.parent=ht}}}function Sg(it){for(var at=function(ht){var pt=it[ht],At=[pt.primary.doc];xu(pt.primary.doc,function(Kt){return At.push(Kt)});for(var Rt=0;Rt<pt.markers.length;Rt++){var Yt=pt.markers[Rt];Le(At,Yt.doc)==-1&&(Yt.parent=null,pt.markers.splice(Rt--,1))}},dt=0;dt<it.length;dt++)at(dt)}var tv=0,Ds=function(it,at,dt,ht,pt){if(!(this instanceof Ds))return new Ds(it,at,dt,ht,pt);dt==null&&(dt=0),Wa.call(this,[new Od([new hn("",null)])]),this.first=dt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=dt;var At=ln(dt,0);this.sel=Qu(At),this.history=new Nd(null),this.id=++tv,this.modeOption=at,this.lineSep=ht,this.direction=pt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),rf(this,{from:At,to:At,text:it}),Gs(this,Qu(At),Ce)};Ds.prototype=Ct(Wa.prototype,{constructor:Ds,iter:function(it,at,dt){dt?this.iterN(it-this.first,at-it,dt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,at){for(var dt=0,ht=0;ht<at.length;++ht)dt+=at[ht].height;this.insertInner(it-this.first,at,dt)},remove:function(it,at){this.removeInner(it-this.first,at)},getValue:function(it){var at=De(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:$o(function(it){var at=ln(this.first,0),dt=this.first+this.size-1;xh(this,{from:at,to:ln(dt,Hn(this,dt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Vl(this.cm,0,0),Gs(this,Qu(at),Ce)}),replaceRange:function(it,at,dt,ht){at=wi(this,at),dt=dt?wi(this,dt):at,_h(this,it,at,dt,ht)},getRange:function(it,at,dt){var ht=Oe(this,wi(this,it),wi(this,at));return dt===!1?ht:ht.join(dt||this.lineSeparator())},getLine:function(it){var at=this.getLineHandle(it);return at&&at.text},getLineHandle:function(it){if(Rn(this,it))return Hn(this,it)},getLineNumber:function(it){return qt(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=Hn(this,it)),pi(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return wi(this,it)},getCursor:function(it){var at=this.sel.primary(),dt;return it==null||it=="head"?dt=at.head:it=="anchor"?dt=at.anchor:it=="end"||it=="to"||it===!1?dt=at.to():dt=at.from(),dt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:$o(function(it,at,dt){Jh(this,wi(this,typeof it=="number"?ln(it,at||0):it),null,dt)}),setSelection:$o(function(it,at,dt){Jh(this,wi(this,it),wi(this,at||it),dt)}),extendSelection:$o(function(it,at,dt){uf(this,wi(this,it),at&&wi(this,at),dt)}),extendSelections:$o(function(it,at){Gp(this,fr(this,it),at)}),extendSelectionsBy:$o(function(it,at){var dt=Ve(this.sel.ranges,it);Gp(this,fr(this,dt),at)}),setSelections:$o(function(it,at,dt){if(it.length){for(var ht=[],pt=0;pt<it.length;pt++)ht[pt]=new ya(wi(this,it[pt].anchor),wi(this,it[pt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),Gs(this,ru(this.cm,ht,at),dt)}}),addSelection:$o(function(it,at,dt){var ht=this.sel.ranges.slice(0);ht.push(new ya(wi(this,it),wi(this,at||it))),Gs(this,ru(this.cm,ht,ht.length-1),dt)}),getSelection:function(it){for(var at=this.sel.ranges,dt,ht=0;ht<at.length;ht++){var pt=Oe(this,at[ht].from(),at[ht].to());dt=dt?dt.concat(pt):pt}return it===!1?dt:dt.join(it||this.lineSeparator())},getSelections:function(it){for(var at=[],dt=this.sel.ranges,ht=0;ht<dt.length;ht++){var pt=Oe(this,dt[ht].from(),dt[ht].to());it!==!1&&(pt=pt.join(it||this.lineSeparator())),at[ht]=pt}return at},replaceSelection:function(it,at,dt){for(var ht=[],pt=0;pt<this.sel.ranges.length;pt++)ht[pt]=it;this.replaceSelections(ht,at,dt||"+input")},replaceSelections:$o(function(it,at,dt){for(var ht=[],pt=this.sel,At=0;At<pt.ranges.length;At++){var Rt=pt.ranges[At];ht[At]={from:Rt.from(),to:Rt.to(),text:this.splitLines(it[At]),origin:dt}}for(var Yt=at&&at!="end"&&dc(this,ht,at),Kt=ht.length-1;Kt>=0;Kt--)xh(this,ht[Kt]);Yt?hf(this,Yt):this.cm&&Zs(this.cm)}),undo:$o(function(){Pc(this,"undo")}),redo:$o(function(){Pc(this,"redo")}),undoSelection:$o(function(){Pc(this,"undo",!0)}),redoSelection:$o(function(){Pc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,dt=0,ht=0;ht<it.done.length;ht++)it.done[ht].ranges||++at;for(var pt=0;pt<it.undone.length;pt++)it.undone[pt].ranges||++dt;return{undo:at,redo:dt}},clearHistory:function(){var it=this;this.history=new Nd(this.history.maxGeneration),xu(this,function(at){return at.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:qu(this.history.done),undone:qu(this.history.undone)}},setHistory:function(it){var at=this.history=new Nd(this.history.maxGeneration);at.done=qu(it.done.slice(0),null,!0),at.undone=qu(it.undone.slice(0),null,!0)},setGutterMarker:$o(function(it,at,dt){return $h(this,it,"gutter",function(ht){var pt=ht.gutterMarkers||(ht.gutterMarkers={});return pt[at]=dt,!dt&&bt(pt)&&(ht.gutterMarkers=null),!0})}),clearGutter:$o(function(it){var at=this;this.iter(function(dt){dt.gutterMarkers&&dt.gutterMarkers[it]&&$h(at,dt,"gutter",function(){return dt.gutterMarkers[it]=null,bt(dt.gutterMarkers)&&(dt.gutterMarkers=null),!0})})}),lineInfo:function(it){var at;if(typeof it=="number"){if(!Rn(this,it)||(at=it,it=Hn(this,it),!it))return null}else if(at=qt(it),at==null)return null;return{line:at,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:$o(function(it,at,dt){return $h(this,it,at=="gutter"?"gutter":"class",function(ht){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass";if(!ht[pt])ht[pt]=dt;else{if(zt(dt).test(ht[pt]))return!1;ht[pt]+=" "+dt}return!0})}),removeLineClass:$o(function(it,at,dt){return $h(this,it,at=="gutter"?"gutter":"class",function(ht){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass",At=ht[pt];if(At)if(dt==null)ht[pt]=null;else{var Rt=At.match(zt(dt));if(!Rt)return!1;var Yt=Rt.index+Rt[0].length;ht[pt]=At.slice(0,Rt.index)+(!Rt.index||Yt==At.length?"":" ")+At.slice(Yt)||null}else return!1;return!0})}),addLineWidget:$o(function(it,at,dt){return df(this,it,at,dt)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,dt){return td(this,wi(this,it),wi(this,at),dt,dt&&dt.type||"range")},setBookmark:function(it,at){var dt={replacedWith:at&&(at.nodeType==null?at.widget:at),insertLeft:at&&at.insertLeft,clearWhenEmpty:!1,shared:at&&at.shared,handleMouseEvents:at&&at.handleMouseEvents};return it=wi(this,it),td(this,it,it,dt,"bookmark")},findMarksAt:function(it){it=wi(this,it);var at=[],dt=Hn(this,it.line).markedSpans;if(dt)for(var ht=0;ht<dt.length;++ht){var pt=dt[ht];(pt.from==null||pt.from<=it.ch)&&(pt.to==null||pt.to>=it.ch)&&at.push(pt.marker.parent||pt.marker)}return at},findMarks:function(it,at,dt){it=wi(this,it),at=wi(this,at);var ht=[],pt=it.line;return this.iter(it.line,at.line+1,function(At){var Rt=At.markedSpans;if(Rt)for(var Yt=0;Yt<Rt.length;Yt++){var Kt=Rt[Yt];!(Kt.to!=null&&pt==it.line&&it.ch>=Kt.to||Kt.from==null&&pt!=it.line||Kt.from!=null&&pt==at.line&&Kt.from>=at.ch)&&(!dt||dt(Kt.marker))&&ht.push(Kt.marker.parent||Kt.marker)}++pt}),ht},getAllMarks:function(){var it=[];return this.iter(function(at){var dt=at.markedSpans;if(dt)for(var ht=0;ht<dt.length;++ht)dt[ht].from!=null&&it.push(dt[ht].marker)}),it},posFromIndex:function(it){var at,dt=this.first,ht=this.lineSeparator().length;return this.iter(function(pt){var At=pt.text.length+ht;if(At>it)return at=it,!0;it-=At,++dt}),wi(this,ln(dt,at))},indexFromPos:function(it){it=wi(this,it);var at=it.ch;if(it.line<this.first||it.ch<0)return 0;var dt=this.lineSeparator().length;return this.iter(this.first,it.line,function(ht){at+=ht.text.length+dt}),at},copy:function(it){var at=new Ds(De(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return at.scrollTop=this.scrollTop,at.scrollLeft=this.scrollLeft,at.sel=this.sel,at.extend=!1,it&&(at.history.undoDepth=this.history.undoDepth,at.setHistory(this.getHistory())),at},linkedDoc:function(it){it||(it={});var at=this.first,dt=this.first+this.size;it.from!=null&&it.from>at&&(at=it.from),it.to!=null&&it.to<dt&&(dt=it.to);var ht=new Ds(De(this,at,dt),it.mode||this.modeOption,at,this.lineSep,this.direction);return it.sharedHist&&(ht.history=this.history),(this.linked||(this.linked=[])).push({doc:ht,sharedHist:it.sharedHist}),ht.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Qp(ht,yg(this)),ht},unlinkDoc:function(it){if(it instanceof la&&(it=it.doc),this.linked)for(var at=0;at<this.linked.length;++at){var dt=this.linked[at];if(dt.doc==it){this.linked.splice(at,1),it.unlinkDoc(this),Sg(yg(this));break}}if(it.history==this.history){var ht=[it.id];xu(it,function(pt){return ht.push(pt.id)},!0),it.history=new Nd(null),it.history.done=qu(this.history.done,ht),it.history.undone=qu(this.history.undone,ht)}},iterLinkedDocs:function(it){xu(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):qi(it)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:$o(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(at){return at.order=null}),this.cm&&$0(this.cm))})}),Ds.prototype.eachLine=Ds.prototype.iter;var wc=0;function xg(it){var at=this;if($p(at),!(Gn(at,it)||Jr(at.display,it))){tr(it),ee&&(wc=+new Date);var dt=Ha(at,it,!0),ht=it.dataTransfer.files;if(!(!dt||at.isReadOnly()))if(ht&&ht.length&&window.FileReader&&window.File)for(var pt=ht.length,At=Array(pt),Rt=0,Yt=function(){++Rt==pt&&ho(at,function(){dt=wi(at.doc,dt);var Cn={from:dt,to:dt,text:at.doc.splitLines(At.filter(function(Hi){return Hi!=null}).join(at.doc.lineSeparator())),origin:"paste"};xh(at.doc,Cn),hf(at.doc,Qu(wi(at.doc,dt),wi(at.doc,vh(Cn))))})()},Kt=function(Cn,Hi){if(at.options.allowDropFileTypes&&Le(at.options.allowDropFileTypes,Cn.type)==-1){Yt();return}var Yi=new FileReader;Yi.onerror=function(){return Yt()},Yi.onload=function(){var sr=Yi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(sr)){Yt();return}At[Hi]=sr,Yt()},Yi.readAsText(Cn)},le=0;le<ht.length;le++)Kt(ht[le],le);else{if(at.state.draggingText&&at.doc.sel.contains(dt)>-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var _e=it.dataTransfer.getData("Text");if(_e){var Pe;if(at.state.draggingText&&!at.state.draggingText.copy&&(Pe=at.listSelections()),Qh(at.doc,Qu(dt,dt)),Pe)for(var Fn=0;Fn<Pe.length;++Fn)_h(at.doc,"",Pe[Fn].anchor,Pe[Fn].head,"drag");at.replaceSelection(_e,"around","paste"),at.display.input.focus()}}catch(Cn){}}}}function qp(it,at){if(ee&&(!it.state.draggingText||+new Date-wc<100)){Qn(at);return}if(!(Gn(it,at)||Jr(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!Ue)){var dt=Vt("img",null,null,"position: fixed; left: 0; top: 0;");dt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Tt&&(dt.width=dt.height=1,it.display.wrapper.appendChild(dt),dt._top=dt.offsetTop),at.dataTransfer.setDragImage(dt,0,0),Tt&&dt.parentNode.removeChild(dt)}}function _p(it,at){var dt=Ha(it,at);if(dt){var ht=document.createDocumentFragment();zo(it,dt,ht),it.display.dragCursor||(it.display.dragCursor=Vt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Jt(it.display.dragCursor,ht)}}function $p(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function tm(it){if(document.getElementsByClassName){for(var at=document.getElementsByClassName("CodeMirror"),dt=[],ht=0;ht<at.length;ht++){var pt=at[ht].CodeMirror;pt&&dt.push(pt)}dt.length&&dt[0].operation(function(){for(var At=0;At<dt.length;At++)it(dt[At])})}}var Pg=!1;function Bl(){Pg||(Id(),Pg=!0)}function Id(){var it;He(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,tm(wg)},100))}),He(window,"blur",function(){return tm(fl)})}function wg(it){var at=it.display;at.cachedCharWidth=at.cachedTextHeight=at.cachedPaddingH=null,at.scrollbarsClipped=!1,it.setSize()}for(var Du={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"},Cc=0;Cc<10;Cc++)Du[Cc+48]=Du[Cc+96]=String(Cc);for(var cf=65;cf<=90;cf++)Du[cf]=String.fromCharCode(cf);for(var Lc=1;Lc<=12;Lc++)Du[Lc+111]=Du[Lc+63235]="F"+Lc;var yl={};yl.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"},yl.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"},yl.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"},yl.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"]},yl.default=ct?yl.macDefault:yl.pcDefault;function Cg(it){var at=it.split(/-(?!$)/);it=at[at.length-1];for(var dt,ht,pt,At,Rt=0;Rt<at.length-1;Rt++){var Yt=at[Rt];if(/^(cmd|meta|m)$/i.test(Yt))At=!0;else if(/^a(lt)?$/i.test(Yt))dt=!0;else if(/^(c|ctrl|control)$/i.test(Yt))ht=!0;else if(/^s(hift)?$/i.test(Yt))pt=!0;else throw new Error("Unrecognized modifier name: "+Yt)}return dt&&(it="Alt-"+it),ht&&(it="Ctrl-"+it),At&&(it="Cmd-"+it),pt&&(it="Shift-"+it),it}function Lg(it){var at={};for(var dt in it)if(it.hasOwnProperty(dt)){var ht=it[dt];if(/^(name|fallthrough|(de|at)tach)$/.test(dt))continue;if(ht=="..."){delete it[dt];continue}for(var pt=Ve(dt.split(" "),Cg),At=0;At<pt.length;At++){var Rt=void 0,Yt=void 0;At==pt.length-1?(Yt=pt.join(" "),Rt=ht):(Yt=pt.slice(0,At+1).join(" "),Rt="...");var Kt=at[Yt];if(!Kt)at[Yt]=Rt;else if(Kt!=Rt)throw new Error("Inconsistent bindings for "+Yt)}delete it[dt]}for(var le in at)it[le]=at[le];return it}function Yl(it,at,dt,ht){at=ed(at);var pt=at.call?at.call(it,ht):at[it];if(pt===!1)return"nothing";if(pt==="...")return"multi";if(pt!=null&&dt(pt))return"handled";if(at.fallthrough){if(Object.prototype.toString.call(at.fallthrough)!="[object Array]")return Yl(it,at.fallthrough,dt,ht);for(var At=0;At<at.fallthrough.length;At++){var Rt=Yl(it,at.fallthrough[At],dt,ht);if(Rt)return Rt}}}function Rd(it){var at=typeof it=="string"?it:Du[it.keyCode];return at=="Ctrl"||at=="Alt"||at=="Shift"||at=="Mod"}function bg(it,at,dt){var ht=it;return at.altKey&&ht!="Alt"&&(it="Alt-"+it),(St?at.metaKey:at.ctrlKey)&&ht!="Ctrl"&&(it="Ctrl-"+it),(St?at.ctrlKey:at.metaKey)&&ht!="Mod"&&(it="Cmd-"+it),!dt&&at.shiftKey&&ht!="Shift"&&(it="Shift-"+it),it}function em(it,at){if(Tt&&it.keyCode==34&&it.char)return!1;var dt=Du[it.keyCode];return dt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(dt=it.code),bg(dt,it,at))}function ed(it){return typeof it=="string"?yl[it]:it}function Sl(it,at){for(var dt=it.doc.sel.ranges,ht=[],pt=0;pt<dt.length;pt++){for(var At=at(dt[pt]);ht.length&&yn(At.from,ue(ht).to)<=0;){var Rt=ht.pop();if(yn(Rt.from,At.from)<0){At.from=Rt.from;break}}ht.push(At)}ro(it,function(){for(var Yt=ht.length-1;Yt>=0;Yt--)_h(it.doc,"",ht[Yt].from,ht[Yt].to,"+delete");Zs(it)})}function Mg(it,at,dt){var ht=Se(it.text,at+dt,dt);return ht<0||ht>it.text.length?null:ht}function rs(it,at,dt){var ht=Mg(it,at.ch,dt);return ht==null?null:new ln(at.line,ht,dt<0?"after":"before")}function bc(it,at,dt,ht,pt){if(it){at.doc.direction=="rtl"&&(pt=-pt);var At=fn(dt,at.doc.direction);if(At){var Rt=pt<0?ue(At):At[0],Yt=pt<0==(Rt.level==1),Kt=Yt?"after":"before",le;if(Rt.level>0||at.doc.direction=="rtl"){var _e=No(at,dt);le=pt<0?dt.text.length-1:0;var Pe=Xo(at,_e,le).top;le=Be(function(Fn){return Xo(at,_e,Fn).top==Pe},pt<0==(Rt.level==1)?Rt.from:Rt.to-1,le),Kt=="before"&&(le=Mg(dt,le,1))}else le=pt<0?Rt.to:Rt.from;return new ln(ht,le,Kt)}}return new ln(ht,pt<0?dt.text.length:0,pt<0?"before":"after")}function ff(it,at,dt,ht){var pt=fn(at,it.doc.direction);if(!pt)return rs(at,dt,ht);dt.ch>=at.text.length?(dt.ch=at.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var At=Ne(pt,dt.ch,dt.sticky),Rt=pt[At];if(it.doc.direction=="ltr"&&Rt.level%2==0&&(ht>0?Rt.to>dt.ch:Rt.from<dt.ch))return rs(at,dt,ht);var Yt=function(Ar,Xr){return Mg(at,Ar instanceof ln?Ar.ch:Ar,Xr)},Kt,le=function(Ar){return it.options.lineWrapping?(Kt=Kt||No(it,at),ia(it,at,Kt,Ar)):{begin:0,end:at.text.length}},_e=le(dt.sticky=="before"?Yt(dt,-1):dt.ch);if(it.doc.direction=="rtl"||Rt.level==1){var Pe=Rt.level==1==ht<0,Fn=Yt(dt,Pe?1:-1);if(Fn!=null&&(Pe?Fn<=Rt.to&&Fn<=_e.end:Fn>=Rt.from&&Fn>=_e.begin)){var Cn=Pe?"before":"after";return new ln(dt.line,Fn,Cn)}}var Hi=function(Ar,Xr,jr){for(var $r=function(Da,ms){return ms?new ln(dt.line,Yt(Da,1),"before"):new ln(dt.line,Da,"after")};Ar>=0&&Ar<pt.length;Ar+=Xr){var bo=pt[Ar],Rr=Xr>0==(bo.level!=1),Vo=Rr?jr.begin:Yt(jr.end,-1);if(bo.from<=Vo&&Vo<bo.to||(Vo=Rr?bo.from:Yt(bo.to,-1),jr.begin<=Vo&&Vo<jr.end))return $r(Vo,Rr)}},Yi=Hi(At+ht,ht,_e);if(Yi)return Yi;var sr=ht>0?_e.end:Yt(_e.begin,-1);return sr!=null&&!(ht>0&&sr==at.text.length)&&(Yi=Hi(ht>0?0:pt.length-1,ht,le(sr)),Yi)?Yi:null}var Ph={selectAll:is,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ce)},killLine:function(it){return Sl(it,function(at){if(at.empty()){var dt=Hn(it.doc,at.head.line).text.length;return at.head.ch==dt&&at.head.line<it.lastLine()?{from:at.head,to:ln(at.head.line+1,0)}:{from:at.head,to:ln(at.head.line,dt)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return Sl(it,function(at){return{from:ln(at.from().line,0),to:wi(it.doc,ln(at.to().line+1,0))}})},delLineLeft:function(it){return Sl(it,function(at){return{from:ln(at.from().line,0),to:at.from()}})},delWrappedLineLeft:function(it){return Sl(it,function(at){var dt=it.charCoords(at.head,"div").top+5,ht=it.coordsChar({left:0,top:dt},"div");return{from:ht,to:at.from()}})},delWrappedLineRight:function(it){return Sl(it,function(at){var dt=it.charCoords(at.head,"div").top+5,ht=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:dt},"div");return{from:at.from(),to:ht}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(ln(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(ln(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(at){return zd(it,at.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(at){return Ag(it,at.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(at){return jd(it,at.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(at){var dt=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:dt},"div")},Ye)},goLineLeft:function(it){return it.extendSelectionsBy(function(at){var dt=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:0,top:dt},"div")},Ye)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(at){var dt=it.cursorCoords(at.head,"div").top+5,ht=it.coordsChar({left:0,top:dt},"div");return ht.ch<it.getLine(ht.line).search(/\S/)?Ag(it,at.head):ht},Ye)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var at=[],dt=it.listSelections(),ht=it.options.tabSize,pt=0;pt<dt.length;pt++){var At=dt[pt].from(),Rt=he(it.getLine(At.line),At.ch,ht);at.push(vn(ht-Rt%ht))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return ro(it,function(){for(var at=it.listSelections(),dt=[],ht=0;ht<at.length;ht++)if(at[ht].empty()){var pt=at[ht].head,At=Hn(it.doc,pt.line).text;if(At){if(pt.ch==At.length&&(pt=new ln(pt.line,pt.ch-1)),pt.ch>0)pt=new ln(pt.line,pt.ch+1),it.replaceRange(At.charAt(pt.ch-1)+At.charAt(pt.ch-2),ln(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var Rt=Hn(it.doc,pt.line-1).text;Rt&&(pt=new ln(pt.line,1),it.replaceRange(At.charAt(0)+it.doc.lineSeparator()+Rt.charAt(Rt.length-1),ln(pt.line-1,Rt.length-1),pt,"+transpose"))}}dt.push(new ya(pt,pt))}it.setSelections(dt)})},newlineAndIndent:function(it){return ro(it,function(){for(var at=it.listSelections(),dt=at.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),at[dt].anchor,at[dt].head,"+input");at=it.listSelections();for(var ht=0;ht<at.length;ht++)it.indentLine(at[ht].from().line,null,!0);Zs(it)})},openLine:function(it){return it.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function zd(it,at){var dt=Hn(it.doc,at),ht=pi(dt);return ht!=dt&&(at=qt(ht)),bc(!0,it,ht,at,1)}function jd(it,at){var dt=Hn(it.doc,at),ht=mi(dt);return ht!=dt&&(at=qt(ht)),bc(!0,it,dt,at,-1)}function Ag(it,at){var dt=zd(it,at.line),ht=Hn(it.doc,dt.line),pt=fn(ht,it.doc.direction);if(!pt||pt[0].level==0){var At=Math.max(dt.ch,ht.text.search(/\S/)),Rt=at.line==dt.line&&at.ch<=At&&at.ch;return ln(dt.line,Rt?0:At,dt.sticky)}return dt}function Hd(it,at,dt){if(typeof at=="string"&&(at=Ph[at],!at))return!1;it.display.input.ensurePolled();var ht=it.display.shift,pt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),dt&&(it.display.shift=!1),pt=at(it)!=Ze}finally{it.display.shift=ht,it.state.suppressEdits=!1}return pt}function kg(it,at,dt){for(var ht=0;ht<it.state.keyMaps.length;ht++){var pt=Yl(at,it.state.keyMaps[ht],dt,it);if(pt)return pt}return it.options.extraKeys&&Yl(at,it.options.extraKeys,dt,it)||Yl(at,it.options.keyMap,dt,it)}var Bu=new It;function nd(it,at,dt,ht){var pt=it.state.keySeq;if(pt){if(Rd(at))return"handled";if(/\'$/.test(at)?it.state.keySeq=null:Bu.set(50,function(){it.state.keySeq==pt&&(it.state.keySeq=null,it.display.input.reset())}),gf(it,pt+" "+at,dt,ht))return!0}return gf(it,at,dt,ht)}function gf(it,at,dt,ht){var pt=kg(it,at,ht);return pt=="multi"&&(it.state.keySeq=at),pt=="handled"&&Si(it,"keyHandled",it,at,dt),(pt=="handled"||pt=="multi")&&(tr(dt),Uo(it)),!!pt}function pf(it,at){var dt=em(at,!0);return dt?at.shiftKey&&!it.state.keySeq?nd(it,"Shift-"+dt,at,function(ht){return Hd(it,ht,!0)})||nd(it,dt,at,function(ht){if(typeof ht=="string"?/^go[A-Z]/.test(ht):ht.motion)return Hd(it,ht)}):nd(it,dt,at,function(ht){return Hd(it,ht)}):!1}function mf(it,at,dt){return nd(it,"'"+dt+"'",at,function(ht){return Hd(it,ht,!0)})}var id=null;function Eg(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&(at.curOp.focus=Ie(),!Gn(at,it))){ee&&Ht<11&&it.keyCode==27&&(it.returnValue=!1);var dt=it.keyCode;at.display.shift=dt==16||it.shiftKey;var ht=pf(at,it);Tt&&(id=ht?dt:null,!ht&&dt==88&&!Ii&&(ct?it.metaKey:it.ctrlKey)&&at.replaceSelection("",null,"cut")),Mt&&!ct&&!ht&&dt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),dt==18&&!/\bCodeMirror-crosshair\b/.test(at.display.lineDiv.className)&&Fg(at)}}function Fg(it){var at=it.display.lineDiv;ke(at,"CodeMirror-crosshair");function dt(ht){(ht.keyCode==18||!ht.altKey)&&(Wt(at,"CodeMirror-crosshair"),Xn(document,"keyup",dt),Xn(document,"mouseover",dt))}He(document,"keyup",dt),He(document,"mouseover",dt)}function Ng(it){it.keyCode==16&&(this.doc.sel.shift=!1),Gn(this,it)}function Pu(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(Jr(at.display,it)||Gn(at,it)||it.ctrlKey&&!it.altKey||ct&&it.metaKey)){var dt=it.keyCode,ht=it.charCode;if(Tt&&dt==id){id=null,tr(it);return}if(!(Tt&&(!it.which||it.which<10)&&pf(at,it))){var pt=String.fromCharCode(ht==null?dt:ht);pt!="\b"&&(mf(at,it,pt)||at.display.input.onKeyPress(it))}}}var nm=400,Tg=function(it,at,dt){this.time=it,this.pos=at,this.button=dt};Tg.prototype.compare=function(it,at,dt){return this.time+nm>it&&yn(at,this.pos)==0&&dt==this.button};var Zd,rd;function Dg(it,at){var dt=+new Date;return rd&&rd.compare(dt,it,at)?(Zd=rd=null,"triple"):Zd&&Zd.compare(dt,it,at)?(rd=new Tg(dt,it,at),Zd=null,"double"):(Zd=new Tg(dt,it,at),rd=null,"single")}function wu(it){var at=this,dt=at.display;if(!(Gn(at,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,Jr(dt,it)){oe||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!Sf(at,it)){var ht=Ha(at,it),pt=Ri(it),At=ht?Dg(ht,pt):"single";window.focus(),pt==1&&at.state.selectingText&&at.state.selectingText(it),!(ht&&Bg(at,pt,ht,At,it))&&(pt==1?ht?im(at,ht,At,it):Li(it)==dt.scroller&&tr(it):pt==2?(ht&&uf(at.doc,ht),setTimeout(function(){return dt.input.focus()},20)):pt==3&&(wt?at.display.input.onContextMenu(it):ga(at)))}}}function Bg(it,at,dt,ht,pt){var At="Click";return ht=="double"?At="Double"+At:ht=="triple"&&(At="Triple"+At),At=(at==1?"Left":at==2?"Middle":"Right")+At,nd(it,bg(At,pt),pt,function(Rt){if(typeof Rt=="string"&&(Rt=Ph[Rt]),!Rt)return!1;var Yt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Yt=Rt(it,dt)!=Ze}finally{it.state.suppressEdits=!1}return Yt})}function vf(it,at,dt){var ht=it.getOption("configureMouse"),pt=ht?ht(it,at,dt):{};if(pt.unit==null){var At=lt?dt.shiftKey&&dt.metaKey:dt.altKey;pt.unit=At?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||dt.shiftKey),pt.addNew==null&&(pt.addNew=ct?dt.metaKey:dt.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(ct?dt.altKey:dt.ctrlKey)),pt}function im(it,at,dt,ht){ee?setTimeout(qe(ua,it),0):it.curOp.focus=Ie();var pt=vf(it,dt,ht),At=it.doc.sel,Rt;it.options.dragDrop&&Pi&&!it.isReadOnly()&&dt=="single"&&(Rt=At.contains(at))>-1&&(yn((Rt=At.ranges[Rt]).from(),at)<0||at.xRel>0)&&(yn(Rt.to(),at)>0||at.xRel<0)?Og(it,ht,at,pt):ev(it,ht,at,pt)}function Og(it,at,dt,ht){var pt=it.display,At=!1,Rt=ho(it,function(le){oe&&(pt.scroller.draggable=!1),it.state.draggingText=!1,Xn(pt.wrapper.ownerDocument,"mouseup",Rt),Xn(pt.wrapper.ownerDocument,"mousemove",Yt),Xn(pt.scroller,"dragstart",Kt),Xn(pt.scroller,"drop",Rt),At||(tr(le),ht.addNew||uf(it.doc,dt,null,null,ht.extend),oe&&!Ue||ee&&Ht==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),Yt=function(le){At=At||Math.abs(at.clientX-le.clientX)+Math.abs(at.clientY-le.clientY)>=10},Kt=function(){return At=!0};oe&&(pt.scroller.draggable=!0),it.state.draggingText=Rt,Rt.copy=!ht.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),He(pt.wrapper.ownerDocument,"mouseup",Rt),He(pt.wrapper.ownerDocument,"mousemove",Yt),He(pt.scroller,"dragstart",Kt),He(pt.scroller,"drop",Rt),ga(it),setTimeout(function(){return pt.input.focus()},20)}function Ig(it,at,dt){if(dt=="char")return new ya(at,at);if(dt=="word")return it.findWordAt(at);if(dt=="line")return new ya(ln(at.line,0),wi(it.doc,ln(at.line+1,0)));var ht=dt(it,at);return new ya(ht.from,ht.to)}function ev(it,at,dt,ht){var pt=it.display,At=it.doc;tr(at);var Rt,Yt,Kt=At.sel,le=Kt.ranges;if(ht.addNew&&!ht.extend?(Yt=At.sel.contains(dt),Yt>-1?Rt=le[Yt]:Rt=new ya(dt,dt)):(Rt=At.sel.primary(),Yt=At.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Rt=new ya(dt,dt)),dt=Ha(it,at,!0,!0),Yt=-1;else{var _e=Ig(it,dt,ht.unit);ht.extend?Rt=lf(Rt,_e.anchor,_e.head,ht.extend):Rt=_e}ht.addNew?Yt==-1?(Yt=le.length,Gs(At,ru(it,le.concat([Rt]),Yt),{scroll:!1,origin:"*mouse"})):le.length>1&&le[Yt].empty()&&ht.unit=="char"&&!ht.extend?(Gs(At,ru(it,le.slice(0,Yt).concat(le.slice(Yt+1)),0),{scroll:!1,origin:"*mouse"}),Kt=At.sel):Sh(At,Yt,Rt,nn):(Yt=0,Gs(At,new Kl([Rt],0),nn),Kt=At.sel);var Pe=dt;function Fn(jr){if(yn(Pe,jr)!=0)if(Pe=jr,ht.unit=="rectangle"){for(var $r=[],bo=it.options.tabSize,Rr=he(Hn(At,dt.line).text,dt.ch,bo),Vo=he(Hn(At,jr.line).text,jr.ch,bo),Da=Math.min(Rr,Vo),ms=Math.max(Rr,Vo),Ga=Math.min(dt.line,jr.line),sl=Math.min(it.lastLine(),Math.max(dt.line,jr.line));Ga<=sl;Ga++){var Vs=Hn(At,Ga).text,cs=Sn(Vs,Da,bo);Da==ms?$r.push(new ya(ln(Ga,cs),ln(Ga,cs))):Vs.length>cs&&$r.push(new ya(ln(Ga,cs),ln(Ga,Sn(Vs,ms,bo))))}$r.length||$r.push(new ya(dt,dt)),Gs(At,ru(it,Kt.ranges.slice(0,Yt).concat($r),Yt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(jr)}else{var xl=Rt,Bs=Ig(it,jr,ht.unit),fs=xl.anchor,ha;yn(Bs.anchor,fs)>0?(ha=Bs.head,fs=Di(xl.from(),Bs.anchor)):(ha=Bs.anchor,fs=Ui(xl.to(),Bs.head));var Xa=Kt.ranges.slice(0);Xa[Yt]=rm(it,new ya(wi(At,fs),ha)),Gs(At,ru(it,Xa,Yt),nn)}}var Cn=pt.wrapper.getBoundingClientRect(),Hi=0;function Yi(jr){var $r=++Hi,bo=Ha(it,jr,!0,ht.unit=="rectangle");if(bo)if(yn(bo,Pe)!=0){it.curOp.focus=Ie(),Fn(bo);var Rr=Co(pt,At);(bo.line>=Rr.to||bo.line<Rr.from)&&setTimeout(ho(it,function(){Hi==$r&&Yi(jr)}),150)}else{var Vo=jr.clientY<Cn.top?-20:jr.clientY>Cn.bottom?20:0;Vo&&setTimeout(ho(it,function(){Hi==$r&&(pt.scroller.scrollTop+=Vo,Yi(jr))}),50)}}function sr(jr){it.state.selectingText=!1,Hi=1/0,jr&&(tr(jr),pt.input.focus()),Xn(pt.wrapper.ownerDocument,"mousemove",Ar),Xn(pt.wrapper.ownerDocument,"mouseup",Xr),At.history.lastSelOrigin=null}var Ar=ho(it,function(jr){jr.buttons===0||!Ri(jr)?sr(jr):Yi(jr)}),Xr=ho(it,sr);it.state.selectingText=Xr,He(pt.wrapper.ownerDocument,"mousemove",Ar),He(pt.wrapper.ownerDocument,"mouseup",Xr)}function rm(it,at){var dt=at.anchor,ht=at.head,pt=Hn(it.doc,dt.line);if(yn(dt,ht)==0&&dt.sticky==ht.sticky)return at;var At=fn(pt);if(!At)return at;var Rt=Ne(At,dt.ch,dt.sticky),Yt=At[Rt];if(Yt.from!=dt.ch&&Yt.to!=dt.ch)return at;var Kt=Rt+(Yt.from==dt.ch==(Yt.level!=1)?0:1);if(Kt==0||Kt==At.length)return at;var le;if(ht.line!=dt.line)le=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var _e=Ne(At,ht.ch,ht.sticky),Pe=_e-Rt||(ht.ch-dt.ch)*(Yt.level==1?-1:1);_e==Kt-1||_e==Kt?le=Pe<0:le=Pe>0}var Fn=At[Kt+(le?-1:0)],Cn=le==(Fn.level==1),Hi=Cn?Fn.from:Fn.to,Yi=Cn?"after":"before";return dt.ch==Hi&&dt.sticky==Yi?at:new ya(new ln(dt.line,Hi,Yi),ht)}function yf(it,at,dt,ht){var pt,At;if(at.touches)pt=at.touches[0].clientX,At=at.touches[0].clientY;else try{pt=at.clientX,At=at.clientY}catch(Fn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&tr(at);var Rt=it.display,Yt=Rt.lineDiv.getBoundingClientRect();if(At>Yt.bottom||!xi(it,dt))return sn(at);At-=Yt.top-Rt.viewOffset;for(var Kt=0;Kt<it.display.gutterSpecs.length;++Kt){var le=Rt.gutters.childNodes[Kt];if(le&&le.getBoundingClientRect().right>=pt){var _e=un(it.doc,At),Pe=it.display.gutterSpecs[Kt];return Pn(it,dt,it,_e,Pe.className,at),sn(at)}}}function Sf(it,at){return yf(it,at,"gutterClick",!0)}function xf(it,at){Jr(it.display,at)||om(it,at)||Gn(it,at,"contextmenu")||wt||it.display.input.onContextMenu(at)}function om(it,at){return xi(it,"gutterContextMenu")?yf(it,at,"gutterContextMenu",!1):!1}function Pf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ia(it)}var wh={toString:function(){return"CodeMirror.Init"}},Rg={},Mc={};function am(it){var at=it.optionHandlers;function dt(ht,pt,At,Rt){it.defaults[ht]=pt,At&&(at[ht]=Rt?function(Yt,Kt,le){le!=wh&&At(Yt,Kt,le)}:At)}it.defineOption=dt,it.Init=wh,dt("value","",function(ht,pt){return ht.setValue(pt)},!0),dt("mode",null,function(ht,pt){ht.doc.modeOption=pt,Go(ht)},!0),dt("indentUnit",2,Go,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){cc(ht),Ia(ht),sa(ht)},!0),dt("lineSeparator",null,function(ht,pt){if(ht.doc.lineSep=pt,!!pt){var At=[],Rt=ht.doc.first;ht.doc.iter(function(Kt){for(var le=0;;){var _e=Kt.text.indexOf(pt,le);if(_e==-1)break;le=_e+pt.length,At.push(ln(Rt,_e))}Rt++});for(var Yt=At.length-1;Yt>=0;Yt--)_h(ht.doc,pt,At[Yt],ln(At[Yt].line,At[Yt].ch+pt.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,pt,At){ht.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),At!=wh&&ht.refresh()}),dt("specialCharPlaceholder",Wn,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,pt){return ht.getInputField().spellcheck=pt},!0),dt("autocorrect",!1,function(ht,pt){return ht.getInputField().autocorrect=pt},!0),dt("autocapitalize",!1,function(ht,pt){return ht.getInputField().autocapitalize=pt},!0),dt("rtlMoveVisually",!gt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){Pf(ht),Tl(ht)},!0),dt("keyMap","default",function(ht,pt,At){var Rt=ed(pt),Yt=At!=wh&&ed(At);Yt&&Yt.detach&&Yt.detach(ht,Rt),Rt.attach&&Rt.attach(ht,Yt||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,sm,!0),dt("gutters",[],function(ht,pt){ht.display.gutterSpecs=xs(pt,ht.options.lineNumbers),Tl(ht)},!0),dt("fixedGutter",!0,function(ht,pt){ht.display.gutters.style.left=pt?Hs(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return _a(ht)},!0),dt("scrollbarStyle","native",function(ht){ml(ht),_a(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,pt){ht.display.gutterSpecs=xs(ht.options.gutters,pt),Tl(ht)},!0),dt("firstLineNumber",1,Tl,!0),dt("lineNumberFormatter",function(ht){return ht},Tl,!0),dt("showCursorWhenSelecting",!1,Ta,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,pt){pt=="nocursor"&&(fl(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(pt)}),dt("screenReaderLabel",null,function(ht,pt){pt=pt===""?null:pt,ht.display.input.screenReaderLabelChanged(pt)}),dt("disableInput",!1,function(ht,pt){pt||ht.display.input.reset()},!0),dt("dragDrop",!0,wf),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,Ta,!0),dt("singleCursorHeightPerLine",!0,Ta,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,cc,!0),dt("addModeClass",!1,cc,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,pt){return ht.doc.history.undoDepth=pt}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,cc,!0),dt("moveInputWithCursor",!0,function(ht,pt){pt||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,pt){return ht.display.input.getField().tabIndex=pt||""}),dt("autofocus",null),dt("direction","ltr",function(ht,pt){return ht.doc.setDirection(pt)},!0),dt("phrases",null)}function wf(it,at,dt){var ht=dt&&dt!=wh;if(!at!=!ht){var pt=it.display.dragFunctions,At=at?He:Xn;At(it.display.scroller,"dragstart",pt.start),At(it.display.scroller,"dragenter",pt.enter),At(it.display.scroller,"dragover",pt.over),At(it.display.scroller,"dragleave",pt.leave),At(it.display.scroller,"drop",pt.drop)}}function sm(it){it.options.lineWrapping?(ke(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Wt(it.display.wrapper,"CodeMirror-wrap"),en(it)),Vr(it),sa(it),Ia(it),setTimeout(function(){return _a(it)},100)}function la(it,at){var dt=this;if(!(this instanceof la))return new la(it,at);this.options=at=at?We(at):{},We(Rg,at,!1);var ht=at.value;typeof ht=="string"?ht=new Ds(ht,at.mode,null,at.lineSeparator,at.direction):at.mode&&(ht.modeOption=at.mode),this.doc=ht;var pt=new la.inputStyles[at.inputStyle](this),At=this.display=new mh(it,ht,pt,at);At.wrapper.CodeMirror=this,Pf(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ml(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 It,keySeq:null,specialChars:null},at.autofocus&&!nt&&At.input.focus(),ee&&Ht<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),Wd(this),Bl(),vo(this),this.curOp.forceUpdate=!0,of(this,ht),at.autofocus&&!nt||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&Ko(dt)},20):fl(this);for(var Rt in Mc)Mc.hasOwnProperty(Rt)&&Mc[Rt](this,at[Rt],wh);as(this),at.finishInit&&at.finishInit(this);for(var Yt=0;Yt<od.length;++Yt)od[Yt](this);Za(this),oe&&at.lineWrapping&&getComputedStyle(At.lineDiv).textRendering=="optimizelegibility"&&(At.lineDiv.style.textRendering="auto")}la.defaults=Rg,la.optionHandlers=Mc;function Wd(it){var at=it.display;He(at.scroller,"mousedown",ho(it,wu)),ee&&Ht<11?He(at.scroller,"dblclick",ho(it,function(Kt){if(!Gn(it,Kt)){var le=Ha(it,Kt);if(!(!le||Sf(it,Kt)||Jr(it.display,Kt))){tr(Kt);var _e=it.findWordAt(le);uf(it.doc,_e.anchor,_e.head)}}})):He(at.scroller,"dblclick",function(Kt){return Gn(it,Kt)||tr(Kt)}),He(at.scroller,"contextmenu",function(Kt){return xf(it,Kt)}),He(at.input.getField(),"contextmenu",function(Kt){at.scroller.contains(Kt.target)||xf(it,Kt)});var dt,ht={end:0};function pt(){at.activeTouch&&(dt=setTimeout(function(){return at.activeTouch=null},1e3),ht=at.activeTouch,ht.end=+new Date)}function At(Kt){if(Kt.touches.length!=1)return!1;var le=Kt.touches[0];return le.radiusX<=1&&le.radiusY<=1}function Rt(Kt,le){if(le.left==null)return!0;var _e=le.left-Kt.left,Pe=le.top-Kt.top;return _e*_e+Pe*Pe>20*20}He(at.scroller,"touchstart",function(Kt){if(!Gn(it,Kt)&&!At(Kt)&&!Sf(it,Kt)){at.input.ensurePolled(),clearTimeout(dt);var le=+new Date;at.activeTouch={start:le,moved:!1,prev:le-ht.end<=300?ht:null},Kt.touches.length==1&&(at.activeTouch.left=Kt.touches[0].pageX,at.activeTouch.top=Kt.touches[0].pageY)}}),He(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),He(at.scroller,"touchend",function(Kt){var le=at.activeTouch;if(le&&!Jr(at,Kt)&&le.left!=null&&!le.moved&&new Date-le.start<300){var _e=it.coordsChar(at.activeTouch,"page"),Pe;!le.prev||Rt(le,le.prev)?Pe=new ya(_e,_e):!le.prev.prev||Rt(le,le.prev.prev)?Pe=it.findWordAt(_e):Pe=new ya(ln(_e.line,0),wi(it.doc,ln(_e.line+1,0))),it.setSelection(Pe.anchor,Pe.head),it.focus(),tr(Kt)}pt()}),He(at.scroller,"touchcancel",pt),He(at.scroller,"scroll",function(){at.scroller.clientHeight&&(gl(it,at.scroller.scrollTop),pl(it,at.scroller.scrollLeft,!0),Pn(it,"scroll",it))}),He(at.scroller,"mousewheel",function(Kt){return Ps(it,Kt)}),He(at.scroller,"DOMMouseScroll",function(Kt){return Ps(it,Kt)}),He(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Kt){Gn(it,Kt)||Qn(Kt)},over:function(Kt){Gn(it,Kt)||(_p(it,Kt),Qn(Kt))},start:function(Kt){return qp(it,Kt)},drop:ho(it,xg),leave:function(Kt){Gn(it,Kt)||$p(it)}};var Yt=at.input.getField();He(Yt,"keyup",function(Kt){return Ng.call(it,Kt)}),He(Yt,"keydown",ho(it,Eg)),He(Yt,"keypress",ho(it,Pu)),He(Yt,"focus",function(Kt){return Ko(it,Kt)}),He(Yt,"blur",function(Kt){return fl(it,Kt)})}var od=[];la.defineInitHook=function(it){return od.push(it)};function ps(it,at,dt,ht){var pt=it.doc,At;dt==null&&(dt="add"),dt=="smart"&&(pt.mode.indent?At=to(it,at).state:dt="prev");var Rt=it.options.tabSize,Yt=Hn(pt,at),Kt=he(Yt.text,null,Rt);Yt.stateAfter&&(Yt.stateAfter=null);var le=Yt.text.match(/^\s*/)[0],_e;if(!ht&&!/\S/.test(Yt.text))_e=0,dt="not";else if(dt=="smart"&&(_e=pt.mode.indent(At,Yt.text.slice(le.length),Yt.text),_e==Ze||_e>150)){if(!ht)return;dt="prev"}dt=="prev"?at>pt.first?_e=he(Hn(pt,at-1).text,null,Rt):_e=0:dt=="add"?_e=Kt+it.options.indentUnit:dt=="subtract"?_e=Kt-it.options.indentUnit:typeof dt=="number"&&(_e=Kt+dt),_e=Math.max(0,_e);var Pe="",Fn=0;if(it.options.indentWithTabs)for(var Cn=Math.floor(_e/Rt);Cn;--Cn)Fn+=Rt,Pe+=" ";if(Fn<_e&&(Pe+=vn(_e-Fn)),Pe!=le)return _h(pt,Pe,ln(at,0),ln(at,le.length),"+input"),Yt.stateAfter=null,!0;for(var Hi=0;Hi<pt.sel.ranges.length;Hi++){var Yi=pt.sel.ranges[Hi];if(Yi.head.line==at&&Yi.head.ch<le.length){var sr=ln(at,le.length);Sh(pt,Hi,new ya(sr,sr));break}}}var al=null;function ad(it){al=it}function Ac(it,at,dt,ht,pt){var At=it.doc;it.display.shift=!1,ht||(ht=At.sel);var Rt=+new Date-200,Yt=pt=="paste"||it.state.pasteIncoming>Rt,Kt=qi(at),le=null;if(Yt&&ht.ranges.length>1)if(al&&al.text.join(`
|
|
`)==at){if(ht.ranges.length%al.text.length==0){le=[];for(var _e=0;_e<al.text.length;_e++)le.push(At.splitLines(al.text[_e]))}}else Kt.length==ht.ranges.length&&it.options.pasteLinesPerSelection&&(le=Ve(Kt,function(Ar){return[Ar]}));for(var Pe=it.curOp.updateInput,Fn=ht.ranges.length-1;Fn>=0;Fn--){var Cn=ht.ranges[Fn],Hi=Cn.from(),Yi=Cn.to();Cn.empty()&&(dt&&dt>0?Hi=ln(Hi.line,Hi.ch-dt):it.state.overwrite&&!Yt?Yi=ln(Yi.line,Math.min(Hn(At,Yi.line).text.length,Yi.ch+ue(Kt).length)):Yt&&al&&al.lineWise&&al.text.join(`
|
|
`)==Kt.join(`
|
|
`)&&(Hi=Yi=ln(Hi.line,0)));var sr={from:Hi,to:Yi,text:le?le[Fn%le.length]:Kt,origin:pt||(Yt?"paste":it.state.cutIncoming>Rt?"cut":"+input")};xh(it.doc,sr),Si(it,"inputRead",it,sr)}at&&!Yt&&jg(it,at),Zs(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Pe),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function zg(it,at){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&ro(at,function(){return Ac(at,dt,0,null,"paste")}),!0}function jg(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var pt=dt.ranges[ht];if(!(pt.head.ch>100||ht&&dt.ranges[ht-1].head.line==pt.head.line)){var At=it.getModeAt(pt.head),Rt=!1;if(At.electricChars){for(var Yt=0;Yt<At.electricChars.length;Yt++)if(at.indexOf(At.electricChars.charAt(Yt))>-1){Rt=ps(it,pt.head.line,"smart");break}}else At.electricInput&&At.electricInput.test(Hn(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(Rt=ps(it,pt.head.line,"smart"));Rt&&Si(it,"electricInput",it,pt.head.line)}}}function Hg(it){for(var at=[],dt=[],ht=0;ht<it.doc.sel.ranges.length;ht++){var pt=it.doc.sel.ranges[ht].head.line,At={anchor:ln(pt,0),head:ln(pt+1,0)};dt.push(At),at.push(it.getRange(At.anchor,At.head))}return{text:at,ranges:dt}}function Zg(it,at,dt,ht){it.setAttribute("autocorrect",dt?"":"off"),it.setAttribute("autocapitalize",ht?"":"off"),it.setAttribute("spellcheck",!!at)}function Wg(){var it=Vt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=Vt("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return oe?it.style.width="1000px":it.setAttribute("wrap","off"),Ot&&(it.style.border="1px solid black"),Zg(it),at}function Ch(it){var at=it.optionHandlers,dt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ht,pt){var At=this.options,Rt=At[ht];At[ht]==pt&&ht!="mode"||(At[ht]=pt,at.hasOwnProperty(ht)&&ho(this,at[ht])(this,pt,Rt),Pn(this,"optionChange",this,ht))},getOption:function(ht){return this.options[ht]},getDoc:function(){return this.doc},addKeyMap:function(ht,pt){this.state.keyMaps[pt?"push":"unshift"](ed(ht))},removeKeyMap:function(ht){for(var pt=this.state.keyMaps,At=0;At<pt.length;++At)if(pt[At]==ht||pt[At].name==ht)return pt.splice(At,1),!0},addOverlay:Lo(function(ht,pt){var At=ht.token?ht:it.getMode(this.options,ht);if(At.startState)throw new Error("Overlays may not be stateful.");In(this.state.overlays,{mode:At,modeSpec:ht,opaque:pt&&pt.opaque,priority:pt&&pt.priority||0},function(Rt){return Rt.priority}),this.state.modeGen++,sa(this)}),removeOverlay:Lo(function(ht){for(var pt=this.state.overlays,At=0;At<pt.length;++At){var Rt=pt[At].modeSpec;if(Rt==ht||typeof ht=="string"&&Rt.name==ht){pt.splice(At,1),this.state.modeGen++,sa(this);return}}}),indentLine:Lo(function(ht,pt,At){typeof pt!="string"&&typeof pt!="number"&&(pt==null?pt=this.options.smartIndent?"smart":"prev":pt=pt?"add":"subtract"),Rn(this.doc,ht)&&ps(this,ht,pt,At)}),indentSelection:Lo(function(ht){for(var pt=this.doc.sel.ranges,At=-1,Rt=0;Rt<pt.length;Rt++){var Yt=pt[Rt];if(Yt.empty())Yt.head.line>At&&(ps(this,Yt.head.line,ht,!0),At=Yt.head.line,Rt==this.doc.sel.primIndex&&Zs(this));else{var Kt=Yt.from(),le=Yt.to(),_e=Math.max(At,Kt.line);At=Math.min(this.lastLine(),le.line-(le.ch?0:1))+1;for(var Pe=_e;Pe<At;++Pe)ps(this,Pe,ht);var Fn=this.doc.sel.ranges;Kt.ch==0&&pt.length==Fn.length&&Fn[Rt].from().ch>0&&Sh(this.doc,Rt,new ya(Kt,Fn[Rt].to()),Ce)}}}),getTokenAt:function(ht,pt){return Qi(this,ht,pt)},getLineTokens:function(ht,pt){return Qi(this,ln(ht),pt,!0)},getTokenTypeAt:function(ht){ht=wi(this.doc,ht);var pt=kr(this,Hn(this.doc,ht.line)),At=0,Rt=(pt.length-1)/2,Yt=ht.ch,Kt;if(Yt==0)Kt=pt[2];else for(;;){var le=At+Rt>>1;if((le?pt[le*2-1]:0)>=Yt)Rt=le;else if(pt[le*2+1]<Yt)At=le+1;else{Kt=pt[le*2+2];break}}var _e=Kt?Kt.indexOf("overlay "):-1;return _e<0?Kt:_e==0?null:Kt.slice(0,_e-1)},getModeAt:function(ht){var pt=this.doc.mode;return pt.innerMode?it.innerMode(pt,this.getTokenAt(ht).state).mode:pt},getHelper:function(ht,pt){return this.getHelpers(ht,pt)[0]},getHelpers:function(ht,pt){var At=[];if(!dt.hasOwnProperty(pt))return At;var Rt=dt[pt],Yt=this.getModeAt(ht);if(typeof Yt[pt]=="string")Rt[Yt[pt]]&&At.push(Rt[Yt[pt]]);else if(Yt[pt])for(var Kt=0;Kt<Yt[pt].length;Kt++){var le=Rt[Yt[pt][Kt]];le&&At.push(le)}else Yt.helperType&&Rt[Yt.helperType]?At.push(Rt[Yt.helperType]):Rt[Yt.name]&&At.push(Rt[Yt.name]);for(var _e=0;_e<Rt._global.length;_e++){var Pe=Rt._global[_e];Pe.pred(Yt,this)&&Le(At,Pe.val)==-1&&At.push(Pe.val)}return At},getStateAfter:function(ht,pt){var At=this.doc;return ht=$n(At,ht==null?At.first+At.size-1:ht),to(this,ht+1,pt).state},cursorCoords:function(ht,pt){var At,Rt=this.doc.sel.primary();return ht==null?At=Rt.head:typeof ht=="object"?At=wi(this.doc,ht):At=ht?Rt.from():Rt.to(),vr(this,At,pt||"page")},charCoords:function(ht,pt){return ao(this,wi(this.doc,ht),pt||"page")},coordsChar:function(ht,pt){return ht=Ir(this,ht,pt||"page"),wr(this,ht.left,ht.top)},lineAtHeight:function(ht,pt){return ht=Ir(this,{top:ht,left:0},pt||"page").top,un(this.doc,ht+this.display.viewOffset)},heightAtLine:function(ht,pt,At){var Rt=!1,Yt;if(typeof ht=="number"){var Kt=this.doc.first+this.doc.size-1;ht<this.doc.first?ht=this.doc.first:ht>Kt&&(ht=Kt,Rt=!0),Yt=Hn(this.doc,ht)}else Yt=ht;return Yo(this,Yt,{top:0,left:0},pt||"page",At||Rt).top+(Rt?this.doc.height-we(Yt):0)},defaultTextHeight:function(){return Na(this.display)},defaultCharWidth:function(){return ss(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,pt,At,Rt,Yt){var Kt=this.display;ht=vr(this,wi(this.doc,ht));var le=ht.bottom,_e=ht.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Kt.sizer.appendChild(pt),Rt=="over")le=ht.top;else if(Rt=="above"||Rt=="near"){var Pe=Math.max(Kt.wrapper.clientHeight,this.doc.height),Fn=Math.max(Kt.sizer.clientWidth,Kt.lineSpace.clientWidth);(Rt=="above"||ht.bottom+pt.offsetHeight>Pe)&&ht.top>pt.offsetHeight?le=ht.top-pt.offsetHeight:ht.bottom+pt.offsetHeight<=Pe&&(le=ht.bottom),_e+pt.offsetWidth>Fn&&(_e=Fn-pt.offsetWidth)}pt.style.top=le+"px",pt.style.left=pt.style.right="",Yt=="right"?(_e=Kt.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(Yt=="left"?_e=0:Yt=="middle"&&(_e=(Kt.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=_e+"px"),At&&Fl(this,{left:_e,top:le,right:_e+pt.offsetWidth,bottom:le+pt.offsetHeight})},triggerOnKeyDown:Lo(Eg),triggerOnKeyPress:Lo(Pu),triggerOnKeyUp:Ng,triggerOnMouseDown:Lo(wu),execCommand:function(ht){if(Ph.hasOwnProperty(ht))return Ph[ht].call(null,this)},triggerElectric:Lo(function(ht){jg(this,ht)}),findPosH:function(ht,pt,At,Rt){var Yt=1;pt<0&&(Yt=-1,pt=-pt);for(var Kt=wi(this.doc,ht),le=0;le<pt&&(Kt=kc(this.doc,Kt,Yt,At,Rt),!Kt.hitSide);++le);return Kt},moveH:Lo(function(ht,pt){var At=this;this.extendSelectionsBy(function(Rt){return At.display.shift||At.doc.extend||Rt.empty()?kc(At.doc,Rt.head,ht,pt,At.options.rtlMoveVisually):ht<0?Rt.from():Rt.to()},Ye)}),deleteH:Lo(function(ht,pt){var At=this.doc.sel,Rt=this.doc;At.somethingSelected()?Rt.replaceSelection("",null,"+delete"):Sl(this,function(Yt){var Kt=kc(Rt,Yt.head,ht,pt,!1);return ht<0?{from:Kt,to:Yt.head}:{from:Yt.head,to:Kt}})}),findPosV:function(ht,pt,At,Rt){var Yt=1,Kt=Rt;pt<0&&(Yt=-1,pt=-pt);for(var le=wi(this.doc,ht),_e=0;_e<pt;++_e){var Pe=vr(this,le,"div");if(Kt==null?Kt=Pe.left:Pe.left=Kt,le=Lh(this,Pe,Yt,At),le.hitSide)break}return le},moveV:Lo(function(ht,pt){var At=this,Rt=this.doc,Yt=[],Kt=!this.display.shift&&!Rt.extend&&Rt.sel.somethingSelected();if(Rt.extendSelectionsBy(function(_e){if(Kt)return ht<0?_e.from():_e.to();var Pe=vr(At,_e.head,"div");_e.goalColumn!=null&&(Pe.left=_e.goalColumn),Yt.push(Pe.left);var Fn=Lh(At,Pe,ht,pt);return pt=="page"&&_e==Rt.sel.primary()&&vu(At,ao(At,Fn,"div").top-Pe.top),Fn},Ye),Yt.length)for(var le=0;le<Rt.sel.ranges.length;le++)Rt.sel.ranges[le].goalColumn=Yt[le]}),findWordAt:function(ht){var pt=this.doc,At=Hn(pt,ht.line).text,Rt=ht.ch,Yt=ht.ch;if(At){var Kt=this.getHelper(ht,"wordChars");(ht.sticky=="before"||Yt==At.length)&&Rt?--Rt:++Yt;for(var le=At.charAt(Rt),_e=jt(le,Kt)?function(Pe){return jt(Pe,Kt)}:/\s/.test(le)?function(Pe){return/\s/.test(Pe)}:function(Pe){return!/\s/.test(Pe)&&!jt(Pe)};Rt>0&&_e(At.charAt(Rt-1));)--Rt;for(;Yt<At.length&&_e(At.charAt(Yt));)++Yt}return new ya(ln(ht.line,Rt),ln(ht.line,Yt))},toggleOverwrite:function(ht){ht!=null&&ht==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ke(this.display.cursorDiv,"CodeMirror-overwrite"):Wt(this.display.cursorDiv,"CodeMirror-overwrite"),Pn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ie()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Lo(function(ht,pt){Vl(this,ht,pt)}),getScrollInfo:function(){var ht=this.display.scroller;return{left:ht.scrollLeft,top:ht.scrollTop,height:ht.scrollHeight-Wr(this)-this.display.barHeight,width:ht.scrollWidth-Wr(this)-this.display.barWidth,clientHeight:Mo(this),clientWidth:fo(this)}},scrollIntoView:Lo(function(ht,pt){ht==null?(ht={from:this.doc.sel.primary().head,to:null},pt==null&&(pt=this.options.cursorScrollMargin)):typeof ht=="number"?ht={from:ln(ht,0),to:null}:ht.from==null&&(ht={from:ht,to:null}),ht.to||(ht.to=ht.from),ht.margin=pt||0,ht.from.line!=null?Wo(this,ht):yu(this,ht.from,ht.to,ht.margin)}),setSize:Lo(function(ht,pt){var At=this,Rt=function(Kt){return typeof Kt=="number"||/^\d+$/.test(String(Kt))?Kt+"px":Kt};ht!=null&&(this.display.wrapper.style.width=Rt(ht)),pt!=null&&(this.display.wrapper.style.height=Rt(pt)),this.options.lineWrapping&&Zo(this);var Yt=this.display.viewFrom;this.doc.iter(Yt,this.display.viewTo,function(Kt){if(Kt.widgets){for(var le=0;le<Kt.widgets.length;le++)if(Kt.widgets[le].noHScroll){mo(At,Yt,"widget");break}}++Yt}),this.curOp.forceUpdate=!0,Pn(this,"refresh",this)}),operation:function(ht){return ro(this,ht)},startOperation:function(){return vo(this)},endOperation:function(){return Za(this)},refresh:Lo(function(){var ht=this.display.cachedTextHeight;sa(this),this.curOp.forceUpdate=!0,Ia(this),Vl(this,this.doc.scrollLeft,this.doc.scrollTop),gh(this.display),(ht==null||Math.abs(ht-Na(this.display))>.5||this.options.lineWrapping)&&Vr(this),Pn(this,"refresh",this)}),swapDoc:Lo(function(ht){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),of(this,ht),Ia(this),this.display.input.reset(),Vl(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,Si(this,"swapDoc",this,pt),pt}),phrase:function(ht){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,ht)?pt[ht]:ht},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}},ki(it),it.registerHelper=function(ht,pt,At){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][pt]=At},it.registerGlobalHelper=function(ht,pt,At,Rt){it.registerHelper(ht,pt,Rt),dt[ht]._global.push({pred:At,val:Rt})}}function kc(it,at,dt,ht,pt){var At=at,Rt=dt,Yt=Hn(it,at.line),Kt=pt&&it.direction=="rtl"?-dt:dt;function le(){var Xr=at.line+Kt;return Xr<it.first||Xr>=it.first+it.size?!1:(at=new ln(Xr,at.ch,at.sticky),Yt=Hn(it,Xr))}function _e(Xr){var jr;if(ht=="codepoint"){var $r=Yt.text.charCodeAt(at.ch+(ht>0?0:-1));isNaN($r)?jr=null:jr=new ln(at.line,Math.max(0,Math.min(Yt.text.length,at.ch+dt*($r>=55296&&$r<56320?2:1))),-dt)}else pt?jr=ff(it.cm,Yt,at,dt):jr=rs(Yt,at,dt);if(jr==null)if(!Xr&&le())at=bc(pt,it.cm,Yt,at.line,Kt);else return!1;else at=jr;return!0}if(ht=="char"||ht=="codepoint")_e();else if(ht=="column")_e(!0);else if(ht=="word"||ht=="group")for(var Pe=null,Fn=ht=="group",Cn=it.cm&&it.cm.getHelper(at,"wordChars"),Hi=!0;!(dt<0&&!_e(!Hi));Hi=!1){var Yi=Yt.text.charAt(at.ch)||`
|
|
`,sr=jt(Yi,Cn)?"w":Fn&&Yi==`
|
|
`?"n":!Fn||/\s/.test(Yi)?null:"p";if(Fn&&!Hi&&!sr&&(sr="s"),Pe&&Pe!=sr){dt<0&&(dt=1,_e(),at.sticky="after");break}if(sr&&(Pe=sr),dt>0&&!_e(!Hi))break}var Ar=Sc(it,at,At,Rt,!0);return li(At,Ar)&&(Ar.hitSide=!0),Ar}function Lh(it,at,dt,ht){var pt=it.doc,At=at.left,Rt;if(ht=="page"){var Yt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Kt=Math.max(Yt-.5*Na(it.display),3);Rt=(dt>0?at.bottom:at.top)+dt*Kt}else ht=="line"&&(Rt=dt>0?at.bottom+3:at.top-3);for(var le;le=wr(it,At,Rt),!!le.outside;){if(dt<0?Rt<=0:Rt>=pt.height){le.hitSide=!0;break}Rt+=dt*5}return le}var ba=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new It,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ba.prototype.init=function(it){var at=this,dt=this,ht=dt.cm,pt=dt.div=it.lineDiv;Zg(pt,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function At(Yt){for(var Kt=Yt.target;Kt;Kt=Kt.parentNode){if(Kt==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Kt.className))break}return!1}He(pt,"paste",function(Yt){!At(Yt)||Gn(ht,Yt)||zg(Yt,ht)||Ht<=11&&setTimeout(ho(ht,function(){return at.updateFromDOM()}),20)}),He(pt,"compositionstart",function(Yt){at.composing={data:Yt.data,done:!1}}),He(pt,"compositionupdate",function(Yt){at.composing||(at.composing={data:Yt.data,done:!1})}),He(pt,"compositionend",function(Yt){at.composing&&(Yt.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),He(pt,"touchstart",function(){return dt.forceCompositionEnd()}),He(pt,"input",function(){at.composing||at.readFromDOMSoon()});function Rt(Yt){if(!(!At(Yt)||Gn(ht,Yt))){if(ht.somethingSelected())ad({lineWise:!1,text:ht.getSelections()}),Yt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var Kt=Hg(ht);ad({lineWise:!0,text:Kt.text}),Yt.type=="cut"&&ht.operation(function(){ht.setSelections(Kt.ranges,0,Ce),ht.replaceSelection("",null,"cut")})}else return;if(Yt.clipboardData){Yt.clipboardData.clearData();var le=al.text.join(`
|
|
`);if(Yt.clipboardData.setData("Text",le),Yt.clipboardData.getData("Text")==le){Yt.preventDefault();return}}var _e=Wg(),Pe=_e.firstChild;ht.display.lineSpace.insertBefore(_e,ht.display.lineSpace.firstChild),Pe.value=al.text.join(`
|
|
`);var Fn=document.activeElement;on(Pe),setTimeout(function(){ht.display.lineSpace.removeChild(_e),Fn.focus(),Fn==pt&&dt.showPrimarySelection()},50)}}He(pt,"copy",Rt),He(pt,"cut",Rt)},ba.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ba.prototype.prepareSelection=function(){var it=El(this.cm,!1);return it.focus=document.activeElement==this.div,it},ba.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ba.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ba.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,dt=at.doc.sel.primary(),ht=dt.from(),pt=dt.to();if(at.display.viewTo==at.display.viewFrom||ht.line>=at.display.viewTo||pt.line<at.display.viewFrom){it.removeAllRanges();return}var At=Ec(at,it.anchorNode,it.anchorOffset),Rt=Ec(at,it.focusNode,it.focusOffset);if(!(At&&!At.bad&&Rt&&!Rt.bad&&yn(Di(At,Rt),ht)==0&&yn(Ui(At,Rt),pt)==0)){var Yt=at.display.view,Kt=ht.line>=at.display.viewFrom&&Cf(at,ht)||{node:Yt[0].measure.map[2],offset:0},le=pt.line<at.display.viewTo&&Cf(at,pt);if(!le){var _e=Yt[Yt.length-1].measure,Pe=_e.maps?_e.maps[_e.maps.length-1]:_e.map;le={node:Pe[Pe.length-1],offset:Pe[Pe.length-2]-Pe[Pe.length-3]}}if(!Kt||!le){it.removeAllRanges();return}var Fn=it.rangeCount&&it.getRangeAt(0),Cn;try{Cn=ce(Kt.node,Kt.offset,le.offset,le.node)}catch(Hi){}Cn&&(!Mt&&at.state.focused?(it.collapse(Kt.node,Kt.offset),Cn.collapsed||(it.removeAllRanges(),it.addRange(Cn))):(it.removeAllRanges(),it.addRange(Cn)),Fn&&it.anchorNode==null?it.addRange(Fn):Mt&&this.startGracePeriod()),this.rememberSelection()}},ba.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},ba.prototype.showMultipleSelections=function(it){Jt(this.cm.display.cursorDiv,it.cursors),Jt(this.cm.display.selectionDiv,it.selection)},ba.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},ba.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return Ee(this.div,at)},ba.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ba.prototype.blur=function(){this.div.blur()},ba.prototype.getField=function(){return this.div},ba.prototype.supportsTouch=function(){return!0},ba.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():ro(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function at(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,at))}this.polling.set(this.cm.options.pollInterval,at)},ba.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},ba.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(et&&ve&&this.cm.display.gutterSpecs.length&&Gg(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var dt=Ec(at,it.anchorNode,it.anchorOffset),ht=Ec(at,it.focusNode,it.focusOffset);dt&&ht&&ro(at,function(){Gs(at.doc,Qu(dt,ht),Ce),(dt.bad||ht.bad)&&(at.curOp.selectionChanged=!0)})}}},ba.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,at=it.display,dt=it.doc.sel.primary(),ht=dt.from(),pt=dt.to();if(ht.ch==0&&ht.line>it.firstLine()&&(ht=ln(ht.line-1,Hn(it.doc,ht.line-1).length)),pt.ch==Hn(it.doc,pt.line).text.length&&pt.line<it.lastLine()&&(pt=ln(pt.line+1,0)),ht.line<at.viewFrom||pt.line>at.viewTo-1)return!1;var At,Rt,Yt;ht.line==at.viewFrom||(At=qa(it,ht.line))==0?(Rt=qt(at.view[0].line),Yt=at.view[0].node):(Rt=qt(at.view[At].line),Yt=at.view[At-1].node.nextSibling);var Kt=qa(it,pt.line),le,_e;if(Kt==at.view.length-1?(le=at.viewTo-1,_e=at.lineDiv.lastChild):(le=qt(at.view[Kt+1].line)-1,_e=at.view[Kt+1].node.previousSibling),!Yt)return!1;for(var Pe=it.doc.splitLines(Vd(it,Yt,_e,Rt,le)),Fn=Oe(it.doc,ln(Rt,0),ln(le,Hn(it.doc,le).text.length));Pe.length>1&&Fn.length>1;)if(ue(Pe)==ue(Fn))Pe.pop(),Fn.pop(),le--;else if(Pe[0]==Fn[0])Pe.shift(),Fn.shift(),Rt++;else break;for(var Cn=0,Hi=0,Yi=Pe[0],sr=Fn[0],Ar=Math.min(Yi.length,sr.length);Cn<Ar&&Yi.charCodeAt(Cn)==sr.charCodeAt(Cn);)++Cn;for(var Xr=ue(Pe),jr=ue(Fn),$r=Math.min(Xr.length-(Pe.length==1?Cn:0),jr.length-(Fn.length==1?Cn:0));Hi<$r&&Xr.charCodeAt(Xr.length-Hi-1)==jr.charCodeAt(jr.length-Hi-1);)++Hi;if(Pe.length==1&&Fn.length==1&&Rt==ht.line)for(;Cn&&Cn>ht.ch&&Xr.charCodeAt(Xr.length-Hi-1)==jr.charCodeAt(jr.length-Hi-1);)Cn--,Hi++;Pe[Pe.length-1]=Xr.slice(0,Xr.length-Hi).replace(/^\u200b+/,""),Pe[0]=Pe[0].slice(Cn).replace(/\u200b+$/,"");var bo=ln(Rt,Cn),Rr=ln(le,Fn.length?ue(Fn).length-Hi:0);if(Pe.length>1||Pe[0]||yn(bo,Rr))return _h(it.doc,Pe,bo,Rr,"+input"),!0},ba.prototype.ensurePolled=function(){this.forceCompositionEnd()},ba.prototype.reset=function(){this.forceCompositionEnd()},ba.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ba.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},ba.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&ro(this.cm,function(){return sa(it.cm)})},ba.prototype.setUneditable=function(it){it.contentEditable="false"},ba.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||ho(this.cm,Ac)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ba.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ba.prototype.onContextMenu=function(){},ba.prototype.resetPosition=function(){},ba.prototype.needsContentAttribute=!0;function Cf(it,at){var dt=ca(it,at.line);if(!dt||dt.hidden)return null;var ht=Hn(it.doc,at.line),pt=io(dt,ht,at.line),At=fn(ht,it.doc.direction),Rt="left";if(At){var Yt=Ne(At,at.ch);Rt=Yt%2?"right":"left"}var Kt=Qo(pt.map,at.ch,Rt);return Kt.offset=Kt.collapse=="right"?Kt.end:Kt.start,Kt}function Gg(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function Gd(it,at){return at&&(it.bad=!0),it}function Vd(it,at,dt,ht,pt){var At="",Rt=!1,Yt=it.doc.lineSeparator(),Kt=!1;function le(Cn){return function(Hi){return Hi.id==Cn}}function _e(){Rt&&(At+=Yt,Kt&&(At+=Yt),Rt=Kt=!1)}function Pe(Cn){Cn&&(_e(),At+=Cn)}function Fn(Cn){if(Cn.nodeType==1){var Hi=Cn.getAttribute("cm-text");if(Hi){Pe(Hi);return}var Yi=Cn.getAttribute("cm-marker"),sr;if(Yi){var Ar=it.findMarks(ln(ht,0),ln(pt+1,0),le(+Yi));Ar.length&&(sr=Ar[0].find(0))&&Pe(Oe(it.doc,sr.from,sr.to).join(Yt));return}if(Cn.getAttribute("contenteditable")=="false")return;var Xr=/^(pre|div|p|li|table|br)$/i.test(Cn.nodeName);if(!/^br$/i.test(Cn.nodeName)&&Cn.textContent.length==0)return;Xr&&_e();for(var jr=0;jr<Cn.childNodes.length;jr++)Fn(Cn.childNodes[jr]);/^(pre|p)$/i.test(Cn.nodeName)&&(Kt=!0),Xr&&(Rt=!0)}else Cn.nodeType==3&&Pe(Cn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Fn(at),at!=dt;)at=at.nextSibling,Kt=!1;return At}function Ec(it,at,dt){var ht;if(at==it.display.lineDiv){if(ht=it.display.lineDiv.childNodes[dt],!ht)return Gd(it.clipPos(ln(it.display.viewTo-1)),!0);at=null,dt=0}else for(ht=at;;ht=ht.parentNode){if(!ht||ht==it.display.lineDiv)return null;if(ht.parentNode&&ht.parentNode==it.display.lineDiv)break}for(var pt=0;pt<it.display.view.length;pt++){var At=it.display.view[pt];if(At.node==ht)return lm(At,at,dt)}}function lm(it,at,dt){var ht=it.text.firstChild,pt=!1;if(!at||!Ee(ht,at))return Gd(ln(qt(it.line),0),!0);if(at==ht&&(pt=!0,at=ht.childNodes[dt],dt=0,!at)){var At=it.rest?ue(it.rest):it.line;return Gd(ln(qt(At),At.text.length),pt)}var Rt=at.nodeType==3?at:null,Yt=at;for(!Rt&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(Rt=at.firstChild,dt&&(dt=Rt.nodeValue.length));Yt.parentNode!=ht;)Yt=Yt.parentNode;var Kt=it.measure,le=Kt.maps;function _e(sr,Ar,Xr){for(var jr=-1;jr<(le?le.length:0);jr++)for(var $r=jr<0?Kt.map:le[jr],bo=0;bo<$r.length;bo+=3){var Rr=$r[bo+2];if(Rr==sr||Rr==Ar){var Vo=qt(jr<0?it.line:it.rest[jr]),Da=$r[bo]+Xr;return(Xr<0||Rr!=sr)&&(Da=$r[bo+(Xr?1:0)]),ln(Vo,Da)}}}var Pe=_e(Rt,Yt,dt);if(Pe)return Gd(Pe,pt);for(var Fn=Yt.nextSibling,Cn=Rt?Rt.nodeValue.length-dt:0;Fn;Fn=Fn.nextSibling){if(Pe=_e(Fn,Fn.firstChild,0),Pe)return Gd(ln(Pe.line,Pe.ch-Cn),pt);Cn+=Fn.textContent.length}for(var Hi=Yt.previousSibling,Yi=dt;Hi;Hi=Hi.previousSibling){if(Pe=_e(Hi,Hi.firstChild,-1),Pe)return Gd(ln(Pe.line,Pe.ch+Yi),pt);Yi+=Hi.textContent.length}}var ds=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new It,this.hasSelection=!1,this.composing=null};ds.prototype.init=function(it){var at=this,dt=this,ht=this.cm;this.createField(it);var pt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Ot&&(pt.style.width="0px"),He(pt,"input",function(){ee&&Ht>=9&&at.hasSelection&&(at.hasSelection=null),dt.poll()}),He(pt,"paste",function(Rt){Gn(ht,Rt)||zg(Rt,ht)||(ht.state.pasteIncoming=+new Date,dt.fastPoll())});function At(Rt){if(!Gn(ht,Rt)){if(ht.somethingSelected())ad({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var Yt=Hg(ht);ad({lineWise:!0,text:Yt.text}),Rt.type=="cut"?ht.setSelections(Yt.ranges,null,Ce):(dt.prevInput="",pt.value=Yt.text.join(`
|
|
`),on(pt))}else return;Rt.type=="cut"&&(ht.state.cutIncoming=+new Date)}}He(pt,"cut",At),He(pt,"copy",At),He(it.scroller,"paste",function(Rt){if(!(Jr(it,Rt)||Gn(ht,Rt))){if(!pt.dispatchEvent){ht.state.pasteIncoming=+new Date,dt.focus();return}var Yt=new Event("paste");Yt.clipboardData=Rt.clipboardData,pt.dispatchEvent(Yt)}}),He(it.lineSpace,"selectstart",function(Rt){Jr(it,Rt)||tr(Rt)}),He(pt,"compositionstart",function(){var Rt=ht.getCursor("from");dt.composing&&dt.composing.range.clear(),dt.composing={start:Rt,range:ht.markText(Rt,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),He(pt,"compositionend",function(){dt.composing&&(dt.poll(),dt.composing.range.clear(),dt.composing=null)})},ds.prototype.createField=function(it){this.wrapper=Wg(),this.textarea=this.wrapper.firstChild},ds.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},ds.prototype.prepareSelection=function(){var it=this.cm,at=it.display,dt=it.doc,ht=El(it);if(it.options.moveInputWithCursor){var pt=vr(it,dt.sel.primary().head,"div"),At=at.wrapper.getBoundingClientRect(),Rt=at.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,pt.top+Rt.top-At.top)),ht.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,pt.left+Rt.left-At.left))}return ht},ds.prototype.showSelection=function(it){var at=this.cm,dt=at.display;Jt(dt.cursorDiv,it.cursors),Jt(dt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},ds.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var dt=at.getSelection();this.textarea.value=dt,at.state.focused&&on(this.textarea),ee&&Ht>=9&&(this.hasSelection=dt)}else it||(this.prevInput=this.textarea.value="",ee&&Ht>=9&&(this.hasSelection=null))}},ds.prototype.getField=function(){return this.textarea},ds.prototype.supportsTouch=function(){return!1},ds.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||Ie()!=this.textarea))try{this.textarea.focus()}catch(it){}},ds.prototype.blur=function(){this.textarea.blur()},ds.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ds.prototype.receivedFocus=function(){this.slowPoll()},ds.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},ds.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function dt(){var ht=at.poll();!ht&&!it?(it=!0,at.polling.set(60,dt)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,dt)},ds.prototype.poll=function(){var it=this,at=this.cm,dt=this.textarea,ht=this.prevInput;if(this.contextMenuPending||!at.state.focused||Pt(dt)&&!ht&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var pt=dt.value;if(pt==ht&&!at.somethingSelected())return!1;if(ee&&Ht>=9&&this.hasSelection===pt||ct&&/[\uf700-\uf7ff]/.test(pt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var At=pt.charCodeAt(0);if(At==8203&&!ht&&(ht="\u200B"),At==8666)return this.reset(),this.cm.execCommand("undo")}for(var Rt=0,Yt=Math.min(ht.length,pt.length);Rt<Yt&&ht.charCodeAt(Rt)==pt.charCodeAt(Rt);)++Rt;return ro(at,function(){Ac(at,pt.slice(Rt),ht.length-Rt,null,it.composing?"*compose":null),pt.length>1e3||pt.indexOf(`
|
|
`)>-1?dt.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ds.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ds.prototype.onKeyPress=function(){ee&&Ht>=9&&(this.hasSelection=null),this.fastPoll()},ds.prototype.onContextMenu=function(it){var at=this,dt=at.cm,ht=dt.display,pt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var At=Ha(dt,it),Rt=ht.scroller.scrollTop;if(!At||Tt)return;var Yt=dt.options.resetSelectionOnContextMenu;Yt&&dt.doc.sel.contains(At)==-1&&ho(dt,Gs)(dt.doc,Qu(At),Ce);var Kt=pt.style.cssText,le=at.wrapper.style.cssText,_e=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-_e.top-5)+"px; left: "+(it.clientX-_e.left-5)+`px;
|
|
z-index: 1000; background: `+(ee?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Pe;oe&&(Pe=window.scrollY),ht.input.focus(),oe&&window.scrollTo(null,Pe),ht.input.reset(),dt.somethingSelected()||(pt.value=at.prevInput=" "),at.contextMenuPending=Cn,ht.selForContextMenu=dt.doc.sel,clearTimeout(ht.detectingSelectAll);function Fn(){if(pt.selectionStart!=null){var Yi=dt.somethingSelected(),sr="\u200B"+(Yi?pt.value:"");pt.value="\u21DA",pt.value=sr,at.prevInput=Yi?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=sr.length,ht.selForContextMenu=dt.doc.sel}}function Cn(){if(at.contextMenuPending==Cn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=le,pt.style.cssText=Kt,ee&&Ht<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Rt),pt.selectionStart!=null)){(!ee||ee&&Ht<9)&&Fn();var Yi=0,sr=function(){ht.selForContextMenu==dt.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&at.prevInput=="\u200B"?ho(dt,is)(dt):Yi++<10?ht.detectingSelectAll=setTimeout(sr,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(sr,200)}}if(ee&&Ht>=9&&Fn(),wt){Qn(it);var Hi=function(){Xn(window,"mouseup",Hi),setTimeout(Cn,20)};He(window,"mouseup",Hi)}else setTimeout(Cn,50)},ds.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ds.prototype.setUneditable=function(){},ds.prototype.needsContentAttribute=!1;function um(it,at){if(at=at?We(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var dt=Ie();at.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=Yt.getValue()}var pt;if(it.form&&(He(it.form,"submit",ht),!at.leaveSubmitMethodAlone)){var At=it.form;pt=At.submit;try{var Rt=At.submit=function(){ht(),At.submit=pt,At.submit(),At.submit=Rt}}catch(Kt){}}at.finishInit=function(Kt){Kt.save=ht,Kt.getTextArea=function(){return it},Kt.toTextArea=function(){Kt.toTextArea=isNaN,ht(),it.parentNode.removeChild(Kt.getWrapperElement()),it.style.display="",it.form&&(Xn(it.form,"submit",ht),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var Yt=la(function(Kt){return it.parentNode.insertBefore(Kt,it.nextSibling)},at);return Yt}function Kd(it){it.off=Xn,it.on=He,it.wheelEventPixels=Dl,it.Doc=Ds,it.splitLines=qi,it.countColumn=he,it.findColumn=Sn,it.isWordChar=kt,it.Pass=Ze,it.signal=Pn,it.Line=hn,it.changeEnd=vh,it.scrollbarModel=Nl,it.Pos=ln,it.cmpPos=yn,it.modes=Ji,it.mimeModes=Zi,it.resolveMode=En,it.getMode=Ae,it.modeExtensions=Me,it.extendMode=be,it.copyState=qn,it.startState=Fi,it.innerMode=ni,it.commands=Ph,it.keyMap=yl,it.keyName=em,it.isModifierKey=Rd,it.lookupKey=Yl,it.normalizeKeyMap=Lg,it.StringStream=gn,it.SharedTextMarker=Tu,it.TextMarker=je,it.LineWidget=$u,it.e_preventDefault=tr,it.e_stopPropagation=Qe,it.e_stop=Qn,it.addClass=ke,it.contains=Ee,it.rmClass=Wt,it.keyNames=Du}am(la),Ch(la);var th="iter insert remove copy getEditor constructor".split(" ");for(var Fc in Ds.prototype)Ds.prototype.hasOwnProperty(Fc)&&Le(th,Fc)<0&&(la.prototype[Fc]=function(it){return function(){return it.apply(this.doc,arguments)}}(Ds.prototype[Fc]));return ki(Ds),la.inputStyles={textarea:ds,contenteditable:ba},la.defineMode=function(it){!la.defaults.mode&&it!="null"&&(la.defaults.mode=it),fi.apply(this,arguments)},la.defineMIME=bn,la.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),la.defineMIME("text/plain","null"),la.defineExtension=function(it,at){la.prototype[it]=at},la.defineDocExtension=function(it,at){Ds.prototype[it]=at},la.fromTextArea=um,Kd(la),la.version="5.58.2",la})},25419:function(An,Un,Et){(function(Mt){Mt(Et(89780),Et(15525),Et(98101))})(function(Mt){"use strict";Mt.defineMode("markdown",function(ne,ge){var xe=Mt.getMode(ne,"text/html"),ee=xe.name=="null";function Ht(he){if(Mt.findModeByName){var It=Mt.findModeByName(he);It&&(he=It.mime||It.mimes[0])}var Le=Mt.getMode(ne,he);return Le.name=="null"?null:Le}ge.highlightFormatting===void 0&&(ge.highlightFormatting=!1),ge.maxBlockquoteDepth===void 0&&(ge.maxBlockquoteDepth=0),ge.taskLists===void 0&&(ge.taskLists=!1),ge.strikethrough===void 0&&(ge.strikethrough=!1),ge.emoji===void 0&&(ge.emoji=!1),ge.fencedCodeBlockHighlighting===void 0&&(ge.fencedCodeBlockHighlighting=!0),ge.fencedCodeBlockDefaultMode===void 0&&(ge.fencedCodeBlockDefaultMode="text/plain"),ge.xml===void 0&&(ge.xml=!0),ge.tokenTypeOverrides===void 0&&(ge.tokenTypeOverrides={});var oe={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 Re in oe)oe.hasOwnProperty(Re)&&ge.tokenTypeOverrides[Re]&&(oe[Re]=ge.tokenTypeOverrides[Re]);var ve=/^([*\-_])(?:\s*\1){2,}\s*$/,Tt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ue=/^\[(x| )\](?=\s)/i,ie=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Je=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ot=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,lt=" ";function gt(he,It,Le){return It.f=It.inline=Le,Le(he,It)}function mt(he,It,Le){return It.f=It.block=Le,Le(he,It)}function St(he){return!he||!/\S/.test(he.string)}function wt(he){if(he.linkTitle=!1,he.linkHref=!1,he.linkText=!1,he.em=!1,he.strong=!1,he.strikethrough=!1,he.quote=0,he.indentedCode=!1,he.f==Wt){var It=ee;if(!It){var Le=Mt.innerMode(xe,he.htmlState);It=Le.mode.name=="xml"&&Le.state.tagStart===null&&!Le.state.context&&Le.state.tokenize.isInText}It&&(he.f=pe,he.block=zt,he.htmlState=null)}return he.trailingSpace=0,he.trailingSpaceNewLine=!1,he.prevLine=he.thisLine,he.thisLine={stream:null},null}function zt(he,It){var Le=he.column()===It.indentation,an=St(It.prevLine.stream),Ze=It.indentedCode,Ce=It.prevLine.hr,nn=It.list!==!1,Ye=(It.listStack[It.listStack.length-1]||0)+3;It.indentedCode=!1;var Sn=It.indentation;if(It.indentationDiff===null&&(It.indentationDiff=It.indentation,nn)){for(It.list=null;Sn<It.listStack[It.listStack.length-1];)It.listStack.pop(),It.listStack.length?It.indentation=It.listStack[It.listStack.length-1]:It.list=!1;It.list!==!1&&(It.indentationDiff=Sn-It.listStack[It.listStack.length-1])}var Fe=!an&&!Ce&&!It.prevLine.header&&(!nn||!Ze)&&!It.prevLine.fencedCodeEnd,vn=(It.list===!1||Ce||an)&&It.indentation<=Ye&&he.match(ve),ue=null;if(It.indentationDiff>=4&&(Ze||It.prevLine.fencedCodeEnd||It.prevLine.header||an))return he.skipToEnd(),It.indentedCode=!0,oe.code;if(he.eatSpace())return null;if(Le&&It.indentation<=Ye&&(ue=he.match(ie))&&ue[1].length<=6)return It.quote=0,It.header=ue[1].length,It.thisLine.header=!0,ge.highlightFormatting&&(It.formatting="header"),It.f=It.inline,Jt(It);if(It.indentation<=Ye&&he.eat(">"))return It.quote=Le?1:It.quote+1,ge.highlightFormatting&&(It.formatting="quote"),he.eatSpace(),Jt(It);if(!vn&&!It.setext&&Le&&It.indentation<=Ye&&(ue=he.match(Tt))){var Ve=ue[1]?"ol":"ul";return It.indentation=Sn+he.current().length,It.list=!0,It.quote=0,It.listStack.push(It.indentation),It.em=!1,It.strong=!1,It.code=!1,It.strikethrough=!1,ge.taskLists&&he.match(Ue,!1)&&(It.taskList=!0),It.f=It.inline,ge.highlightFormatting&&(It.formatting=["list","list-"+Ve]),Jt(It)}else{if(Le&&It.indentation<=Ye&&(ue=he.match(et,!0)))return It.quote=0,It.fencedEndRE=new RegExp(ue[1]+"+ *$"),It.localMode=ge.fencedCodeBlockHighlighting&&Ht(ue[2]||ge.fencedCodeBlockDefaultMode),It.localMode&&(It.localState=Mt.startState(It.localMode)),It.f=It.block=$t,ge.highlightFormatting&&(It.formatting="code-block"),It.code=-1,Jt(It);if(It.setext||(!Fe||!nn)&&!It.quote&&It.list===!1&&!It.code&&!vn&&!nt.test(he.string)&&(ue=he.lookAhead(1))&&(ue=ue.match(Je)))return It.setext?(It.header=It.setext,It.setext=0,he.skipToEnd(),ge.highlightFormatting&&(It.formatting="header")):(It.header=ue[0].charAt(0)=="="?1:2,It.setext=It.header),It.thisLine.header=!0,It.f=It.inline,Jt(It);if(vn)return he.skipToEnd(),It.hr=!0,It.thisLine.hr=!0,oe.hr;if(he.peek()==="[")return gt(he,It,wn)}return gt(he,It,It.inline)}function Wt(he,It){var Le=xe.token(he,It.htmlState);if(!ee){var an=Mt.innerMode(xe,It.htmlState);(an.mode.name=="xml"&&an.state.tagStart===null&&!an.state.context&&an.state.tokenize.isInText||It.md_inside&&he.current().indexOf(">")>-1)&&(It.f=pe,It.block=zt,It.htmlState=null)}return Le}function $t(he,It){var Le=It.listStack[It.listStack.length-1]||0,an=It.indentation<Le,Ze=Le+3;if(It.fencedEndRE&&It.indentation<=Ze&&(an||he.match(It.fencedEndRE))){ge.highlightFormatting&&(It.formatting="code-block");var Ce;return an||(Ce=Jt(It)),It.localMode=It.localState=null,It.block=zt,It.f=pe,It.fencedEndRE=null,It.code=0,It.thisLine.fencedCodeEnd=!0,an?mt(he,It,It.block):Ce}else return It.localMode?It.localMode.token(he,It.localState):(he.skipToEnd(),oe.code)}function Jt(he){var It=[];if(he.formatting){It.push(oe.formatting),typeof he.formatting=="string"&&(he.formatting=[he.formatting]);for(var Le=0;Le<he.formatting.length;Le++)It.push(oe.formatting+"-"+he.formatting[Le]),he.formatting[Le]==="header"&&It.push(oe.formatting+"-"+he.formatting[Le]+"-"+he.header),he.formatting[Le]==="quote"&&(!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=he.quote?It.push(oe.formatting+"-"+he.formatting[Le]+"-"+he.quote):It.push("error"))}if(he.taskOpen)return It.push("meta"),It.length?It.join(" "):null;if(he.taskClosed)return It.push("property"),It.length?It.join(" "):null;if(he.linkHref?It.push(oe.linkHref,"url"):(he.strong&&It.push(oe.strong),he.em&&It.push(oe.em),he.strikethrough&&It.push(oe.strikethrough),he.emoji&&It.push(oe.emoji),he.linkText&&It.push(oe.linkText),he.code&&It.push(oe.code),he.image&&It.push(oe.image),he.imageAltText&&It.push(oe.imageAltText,"link"),he.imageMarker&&It.push(oe.imageMarker)),he.header&&It.push(oe.header,oe.header+"-"+he.header),he.quote&&(It.push(oe.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=he.quote?It.push(oe.quote+"-"+he.quote):It.push(oe.quote+"-"+ge.maxBlockquoteDepth)),he.list!==!1){var an=(he.listStack.length-1)%3;an?an===1?It.push(oe.list2):It.push(oe.list3):It.push(oe.list1)}return he.trailingSpaceNewLine?It.push("trailing-space-new-line"):he.trailingSpace&&It.push("trailing-space-"+(he.trailingSpace%2?"a":"b")),It.length?It.join(" "):null}function Vt(he,It){if(he.match(Ot,!0))return Jt(It)}function pe(he,It){var Le=It.text(he,It);if(typeof Le!="undefined")return Le;if(It.list)return It.list=null,Jt(It);if(It.taskList){var an=he.match(Ue,!0)[1]===" ";return an?It.taskOpen=!0:It.taskClosed=!0,ge.highlightFormatting&&(It.formatting="task"),It.taskList=!1,Jt(It)}if(It.taskOpen=!1,It.taskClosed=!1,It.header&&he.match(/^#+$/,!0))return ge.highlightFormatting&&(It.formatting="header"),Jt(It);var Ze=he.next();if(It.linkTitle){It.linkTitle=!1;var Ce=Ze;Ze==="("&&(Ce=")"),Ce=(Ce+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var nn="^\\s*(?:[^"+Ce+"\\\\]+|\\\\\\\\|\\\\.)"+Ce;if(he.match(new RegExp(nn),!0))return oe.linkHref}if(Ze==="`"){var Ye=It.formatting;ge.highlightFormatting&&(It.formatting="code"),he.eatWhile("`");var Sn=he.current().length;if(It.code==0&&(!It.quote||Sn==1))return It.code=Sn,Jt(It);if(Sn==It.code){var Fe=Jt(It);return It.code=0,Fe}else return It.formatting=Ye,Jt(It)}else if(It.code)return Jt(It);if(Ze==="\\"&&(he.next(),ge.highlightFormatting)){var vn=Jt(It),ue=oe.formatting+"-escape";return vn?vn+" "+ue:ue}if(Ze==="!"&&he.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return It.imageMarker=!0,It.image=!0,ge.highlightFormatting&&(It.formatting="image"),Jt(It);if(Ze==="["&&It.imageMarker&&he.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return It.imageMarker=!1,It.imageAltText=!0,ge.highlightFormatting&&(It.formatting="image"),Jt(It);if(Ze==="]"&&It.imageAltText){ge.highlightFormatting&&(It.formatting="image");var vn=Jt(It);return It.imageAltText=!1,It.image=!1,It.inline=It.f=Ee,vn}if(Ze==="["&&!It.image)return It.linkText&&he.match(/^.*?\]/)||(It.linkText=!0,ge.highlightFormatting&&(It.formatting="link")),Jt(It);if(Ze==="]"&&It.linkText){ge.highlightFormatting&&(It.formatting="link");var vn=Jt(It);return It.linkText=!1,It.inline=It.f=he.match(/\(.*?\)| ?\[.*?\]/,!1)?Ee:pe,vn}if(Ze==="<"&&he.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){It.f=It.inline=ce,ge.highlightFormatting&&(It.formatting="link");var vn=Jt(It);return vn?vn+=" ":vn="",vn+oe.linkInline}if(Ze==="<"&&he.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){It.f=It.inline=ce,ge.highlightFormatting&&(It.formatting="link");var vn=Jt(It);return vn?vn+=" ":vn="",vn+oe.linkEmail}if(ge.xml&&Ze==="<"&&he.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ve=he.string.indexOf(">",he.pos);if(Ve!=-1){var In=he.string.substring(he.start,Ve);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(In)&&(It.md_inside=!0)}return he.backUp(1),It.htmlState=Mt.startState(xe),mt(he,It,Wt)}if(ge.xml&&Ze==="<"&&he.match(/^\/\w*?>/))return It.md_inside=!1,"tag";if(Ze==="*"||Ze==="_"){for(var Dt=1,Ct=he.pos==1?" ":he.string.charAt(he.pos-2);Dt<3&&he.eat(Ze);)Dt++;var yt=he.peek()||" ",kt=!/\s/.test(yt)&&(!ct.test(yt)||/\s/.test(Ct)||ct.test(Ct)),jt=!/\s/.test(Ct)&&(!ct.test(Ct)||/\s/.test(yt)||ct.test(yt)),bt=null,Gt=null;if(Dt%2&&(!It.em&&kt&&(Ze==="*"||!jt||ct.test(Ct))?bt=!0:It.em==Ze&&jt&&(Ze==="*"||!kt||ct.test(yt))&&(bt=!1)),Dt>1&&(!It.strong&&kt&&(Ze==="*"||!jt||ct.test(Ct))?Gt=!0:It.strong==Ze&&jt&&(Ze==="*"||!kt||ct.test(yt))&&(Gt=!1)),Gt!=null||bt!=null){ge.highlightFormatting&&(It.formatting=bt==null?"strong":Gt==null?"em":"strong em"),bt===!0&&(It.em=Ze),Gt===!0&&(It.strong=Ze);var Fe=Jt(It);return bt===!1&&(It.em=!1),Gt===!1&&(It.strong=!1),Fe}}else if(Ze===" "&&(he.eat("*")||he.eat("_"))){if(he.peek()===" ")return Jt(It);he.backUp(1)}if(ge.strikethrough){if(Ze==="~"&&he.eatWhile(Ze)){if(It.strikethrough){ge.highlightFormatting&&(It.formatting="strikethrough");var Fe=Jt(It);return It.strikethrough=!1,Fe}else if(he.match(/^[^\s]/,!1))return It.strikethrough=!0,ge.highlightFormatting&&(It.formatting="strikethrough"),Jt(It)}else if(Ze===" "&&he.match(/^~~/,!0)){if(he.peek()===" ")return Jt(It);he.backUp(2)}}if(ge.emoji&&Ze===":"&&he.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){It.emoji=!0,ge.highlightFormatting&&(It.formatting="emoji");var fe=Jt(It);return It.emoji=!1,fe}return Ze===" "&&(he.match(/^ +$/,!1)?It.trailingSpace++:It.trailingSpace&&(It.trailingSpaceNewLine=!0)),Jt(It)}function ce(he,It){var Le=he.next();if(Le===">"){It.f=It.inline=pe,ge.highlightFormatting&&(It.formatting="link");var an=Jt(It);return an?an+=" ":an="",an+oe.linkInline}return he.match(/^[^>]+/,!0),oe.linkInline}function Ee(he,It){if(he.eatSpace())return null;var Le=he.next();return Le==="("||Le==="["?(It.f=It.inline=ke(Le==="("?")":"]"),ge.highlightFormatting&&(It.formatting="link-string"),It.linkHref=!0,Jt(It)):"error"}var Ie={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ke(he){return function(It,Le){var an=It.next();if(an===he){Le.f=Le.inline=pe,ge.highlightFormatting&&(Le.formatting="link-string");var Ze=Jt(Le);return Le.linkHref=!1,Ze}return It.match(Ie[he]),Le.linkHref=!0,Jt(Le)}}function wn(he,It){return he.match(/^([^\]\\]|\\.)*\]:/,!1)?(It.f=on,he.next(),ge.highlightFormatting&&(It.formatting="link"),It.linkText=!0,Jt(It)):gt(he,It,pe)}function on(he,It){if(he.match(/^\]:/,!0)){It.f=It.inline=qe,ge.highlightFormatting&&(It.formatting="link");var Le=Jt(It);return It.linkText=!1,Le}return he.match(/^([^\]\\]|\\.)+/,!0),oe.linkText}function qe(he,It){return he.eatSpace()?null:(he.match(/^[^\s]+/,!0),he.peek()===void 0?It.linkTitle=!0:he.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),It.f=It.inline=pe,oe.linkHref+" url")}var We={startState:function(){return{f:zt,prevLine:{stream:null},thisLine:{stream:null},block:zt,htmlState:null,indentation:0,inline:pe,text:Vt,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(he){return{f:he.f,prevLine:he.prevLine,thisLine:he.thisLine,block:he.block,htmlState:he.htmlState&&Mt.copyState(xe,he.htmlState),indentation:he.indentation,localMode:he.localMode,localState:he.localMode?Mt.copyState(he.localMode,he.localState):null,inline:he.inline,text:he.text,formatting:!1,linkText:he.linkText,linkTitle:he.linkTitle,linkHref:he.linkHref,code:he.code,em:he.em,strong:he.strong,strikethrough:he.strikethrough,emoji:he.emoji,header:he.header,setext:he.setext,hr:he.hr,taskList:he.taskList,list:he.list,listStack:he.listStack.slice(0),quote:he.quote,indentedCode:he.indentedCode,trailingSpace:he.trailingSpace,trailingSpaceNewLine:he.trailingSpaceNewLine,md_inside:he.md_inside,fencedEndRE:he.fencedEndRE}},token:function(he,It){if(It.formatting=!1,he!=It.thisLine.stream){if(It.header=0,It.hr=!1,he.match(/^\s*$/,!0))return wt(It),null;if(It.prevLine=It.thisLine,It.thisLine={stream:he},It.taskList=!1,It.trailingSpace=0,It.trailingSpaceNewLine=!1,!It.localState&&(It.f=It.block,It.f!=Wt)){var Le=he.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(It.indentation=Le,It.indentationDiff=null,Le>0)return null}}return It.f(he,It)},innerMode:function(he){return he.block==Wt?{state:he.htmlState,mode:xe}:he.localState?{state:he.localState,mode:he.localMode}:{state:he,mode:We}},indent:function(he,It,Le){return he.block==Wt&&xe.indent?xe.indent(he.htmlState,It,Le):he.localState&&he.localMode.indent?he.localMode.indent(he.localState,It,Le):Mt.Pass},blankLine:wt,getType:Jt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return We},"xml"),Mt.defineMIME("text/markdown","markdown"),Mt.defineMIME("text/x-markdown","markdown")})},98101:function(An,Un,Et){(function(Mt){Mt(Et(89780))})(function(Mt){"use strict";Mt.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 ne=0;ne<Mt.modeInfo.length;ne++){var ge=Mt.modeInfo[ne];ge.mimes&&(ge.mime=ge.mimes[0])}Mt.findModeByMIME=function(xe){xe=xe.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Ht=Mt.modeInfo[ee];if(Ht.mime==xe)return Ht;if(Ht.mimes){for(var oe=0;oe<Ht.mimes.length;oe++)if(Ht.mimes[oe]==xe)return Ht}}if(/\+xml$/.test(xe))return Mt.findModeByMIME("application/xml");if(/\+json$/.test(xe))return Mt.findModeByMIME("application/json")},Mt.findModeByExtension=function(xe){xe=xe.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Ht=Mt.modeInfo[ee];if(Ht.ext){for(var oe=0;oe<Ht.ext.length;oe++)if(Ht.ext[oe]==xe)return Ht}}},Mt.findModeByFileName=function(xe){for(var ee=0;ee<Mt.modeInfo.length;ee++){var Ht=Mt.modeInfo[ee];if(Ht.file&&Ht.file.test(xe))return Ht}var oe=xe.lastIndexOf("."),Re=oe>-1&&xe.substring(oe+1,xe.length);if(Re)return Mt.findModeByExtension(Re)},Mt.findModeByName=function(xe){xe=xe.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Ht=Mt.modeInfo[ee];if(Ht.name.toLowerCase()==xe)return Ht;if(Ht.alias){for(var oe=0;oe<Ht.alias.length;oe++)if(Ht.alias[oe].toLowerCase()==xe)return Ht}}}})},67549:function(An,Un,Et){(function(Mt){Mt(Et(89780))})(function(Mt){"use strict";Mt.defineMode("stex",function(ne,ge){"use strict";function xe(Ot,et){Ot.cmdState.push(et)}function ee(Ot){return Ot.cmdState.length>0?Ot.cmdState[Ot.cmdState.length-1]:null}function Ht(Ot){var et=Ot.cmdState.pop();et&&et.closeBracket()}function oe(Ot){for(var et=Ot.cmdState,nt=et.length-1;nt>=0;nt--){var ct=et[nt];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function Re(Ot,et,nt){return function(){this.name=Ot,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ve={};ve.importmodule=Re("importmodule","tag",["string","builtin"]),ve.documentclass=Re("documentclass","tag",["","atom"]),ve.usepackage=Re("usepackage","tag",["atom"]),ve.begin=Re("begin","tag",["atom"]),ve.end=Re("end","tag",["atom"]),ve.label=Re("label","tag",["atom"]),ve.ref=Re("ref","tag",["atom"]),ve.eqref=Re("eqref","tag",["atom"]),ve.cite=Re("cite","tag",["atom"]),ve.bibitem=Re("bibitem","tag",["atom"]),ve.Bibitem=Re("Bibitem","tag",["atom"]),ve.RBibitem=Re("RBibitem","tag",["atom"]),ve.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Tt(Ot,et){Ot.f=et}function Ue(Ot,et){var nt;if(Ot.match(/^\\[a-zA-Z@]+/)){var ct=Ot.current().slice(1);return nt=ve.hasOwnProperty(ct)?ve[ct]:ve.DEFAULT,nt=new nt,xe(et,nt),Tt(et,Je),nt.style}if(Ot.match(/^\\[$&%#{}_]/)||Ot.match(/^\\[,;!\/\\]/))return"tag";if(Ot.match("\\["))return Tt(et,function(gt,mt){return ie(gt,mt,"\\]")}),"keyword";if(Ot.match("\\("))return Tt(et,function(gt,mt){return ie(gt,mt,"\\)")}),"keyword";if(Ot.match("$$"))return Tt(et,function(gt,mt){return ie(gt,mt,"$$")}),"keyword";if(Ot.match("$"))return Tt(et,function(gt,mt){return ie(gt,mt,"$")}),"keyword";var lt=Ot.next();if(lt=="%")return Ot.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=ee(et),nt)nt.closeBracket(lt),Tt(et,Je);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=ve.DEFAULT,nt=new nt,xe(et,nt),"bracket"):/\d/.test(lt)?(Ot.eatWhile(/[\w.%]/),"atom"):(Ot.eatWhile(/[\w\-_]/),nt=oe(et),nt.name=="begin"&&(nt.argument=Ot.current()),nt.styleIdentifier())}function ie(Ot,et,nt){if(Ot.eatSpace())return null;if(nt&&Ot.match(nt))return Tt(et,Ue),"keyword";if(Ot.match(/^\\[a-zA-Z@]+/))return"tag";if(Ot.match(/^[a-zA-Z]+/))return"variable-2";if(Ot.match(/^\\[$&%#{}_]/)||Ot.match(/^\\[,;!\/]/)||Ot.match(/^[\^_&]/))return"tag";if(Ot.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ot.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=Ot.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(Ot.skipToEnd(),"comment"):"error"}function Je(Ot,et){var nt=Ot.peek(),ct;return nt=="{"||nt=="["?(ct=ee(et),ct.openBracket(nt),Ot.eat(nt),Tt(et,Ue),"bracket"):/[ \t\r]/.test(nt)?(Ot.eat(nt),null):(Tt(et,Ue),Ht(et),Ue(Ot,et))}return{startState:function(){var Ot=ge.inMathMode?function(et,nt){return ie(et,nt)}:Ue;return{cmdState:[],f:Ot}},copyState:function(Ot){return{cmdState:Ot.cmdState.slice(),f:Ot.f}},token:function(Ot,et){return et.f(Ot,et)},blankLine:function(Ot){Ot.f=Ue,Ot.cmdState.length=0},lineComment:"%"}}),Mt.defineMIME("text/x-stex","stex"),Mt.defineMIME("text/x-latex","stex")})},15525:function(An,Un,Et){(function(Mt){Mt(Et(89780))})(function(Mt){"use strict";var ne={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},ge={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Mt.defineMode("xml",function(xe,ee){var Ht=xe.indentUnit,oe={},Re=ee.htmlMode?ne:ge;for(var ve in Re)oe[ve]=Re[ve];for(var ve in ee)oe[ve]=ee[ve];var Tt,Ue;function ie(ce,Ee){function Ie(on){return Ee.tokenize=on,on(ce,Ee)}var ke=ce.next();if(ke=="<")return ce.eat("!")?ce.eat("[")?ce.match("CDATA[")?Ie(et("atom","]]>")):null:ce.match("--")?Ie(et("comment","-->")):ce.match("DOCTYPE",!0,!0)?(ce.eatWhile(/[\w\._\-]/),Ie(nt(1))):null:ce.eat("?")?(ce.eatWhile(/[\w\._\-]/),Ee.tokenize=et("meta","?>"),"meta"):(Tt=ce.eat("/")?"closeTag":"openTag",Ee.tokenize=Je,"tag bracket");if(ke=="&"){var wn;return ce.eat("#")?ce.eat("x")?wn=ce.eatWhile(/[a-fA-F\d]/)&&ce.eat(";"):wn=ce.eatWhile(/[\d]/)&&ce.eat(";"):wn=ce.eatWhile(/[\w\.\-:]/)&&ce.eat(";"),wn?"atom":"error"}else return ce.eatWhile(/[^&<]/),null}ie.isInText=!0;function Je(ce,Ee){var Ie=ce.next();if(Ie==">"||Ie=="/"&&ce.eat(">"))return Ee.tokenize=ie,Tt=Ie==">"?"endTag":"selfcloseTag","tag bracket";if(Ie=="=")return Tt="equals",null;if(Ie=="<"){Ee.tokenize=ie,Ee.state=mt,Ee.tagName=Ee.tagStart=null;var ke=Ee.tokenize(ce,Ee);return ke?ke+" tag error":"tag error"}else return/[\'\"]/.test(Ie)?(Ee.tokenize=Ot(Ie),Ee.stringStartCol=ce.column(),Ee.tokenize(ce,Ee)):(ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ot(ce){var Ee=function(Ie,ke){for(;!Ie.eol();)if(Ie.next()==ce){ke.tokenize=Je;break}return"string"};return Ee.isInAttribute=!0,Ee}function et(ce,Ee){return function(Ie,ke){for(;!Ie.eol();){if(Ie.match(Ee)){ke.tokenize=ie;break}Ie.next()}return ce}}function nt(ce){return function(Ee,Ie){for(var ke;(ke=Ee.next())!=null;){if(ke=="<")return Ie.tokenize=nt(ce+1),Ie.tokenize(Ee,Ie);if(ke==">")if(ce==1){Ie.tokenize=ie;break}else return Ie.tokenize=nt(ce-1),Ie.tokenize(Ee,Ie)}return"meta"}}function ct(ce,Ee,Ie){this.prev=ce.context,this.tagName=Ee,this.indent=ce.indented,this.startOfLine=Ie,(oe.doNotIndent.hasOwnProperty(Ee)||ce.context&&ce.context.noIndent)&&(this.noIndent=!0)}function lt(ce){ce.context&&(ce.context=ce.context.prev)}function gt(ce,Ee){for(var Ie;;){if(!ce.context||(Ie=ce.context.tagName,!oe.contextGrabbers.hasOwnProperty(Ie)||!oe.contextGrabbers[Ie].hasOwnProperty(Ee)))return;lt(ce)}}function mt(ce,Ee,Ie){return ce=="openTag"?(Ie.tagStart=Ee.column(),St):ce=="closeTag"?wt:mt}function St(ce,Ee,Ie){return ce=="word"?(Ie.tagName=Ee.current(),Ue="tag",$t):oe.allowMissingTagName&&ce=="endTag"?(Ue="tag bracket",$t(ce,Ee,Ie)):(Ue="error",St)}function wt(ce,Ee,Ie){if(ce=="word"){var ke=Ee.current();return Ie.context&&Ie.context.tagName!=ke&&oe.implicitlyClosed.hasOwnProperty(Ie.context.tagName)&<(Ie),Ie.context&&Ie.context.tagName==ke||oe.matchClosing===!1?(Ue="tag",zt):(Ue="tag error",Wt)}else return oe.allowMissingTagName&&ce=="endTag"?(Ue="tag bracket",zt(ce,Ee,Ie)):(Ue="error",Wt)}function zt(ce,Ee,Ie){return ce!="endTag"?(Ue="error",zt):(lt(Ie),mt)}function Wt(ce,Ee,Ie){return Ue="error",zt(ce,Ee,Ie)}function $t(ce,Ee,Ie){if(ce=="word")return Ue="attribute",Jt;if(ce=="endTag"||ce=="selfcloseTag"){var ke=Ie.tagName,wn=Ie.tagStart;return Ie.tagName=Ie.tagStart=null,ce=="selfcloseTag"||oe.autoSelfClosers.hasOwnProperty(ke)?gt(Ie,ke):(gt(Ie,ke),Ie.context=new ct(Ie,ke,wn==Ie.indented)),mt}return Ue="error",$t}function Jt(ce,Ee,Ie){return ce=="equals"?Vt:(oe.allowMissing||(Ue="error"),$t(ce,Ee,Ie))}function Vt(ce,Ee,Ie){return ce=="string"?pe:ce=="word"&&oe.allowUnquoted?(Ue="string",$t):(Ue="error",$t(ce,Ee,Ie))}function pe(ce,Ee,Ie){return ce=="string"?pe:$t(ce,Ee,Ie)}return{startState:function(ce){var Ee={tokenize:ie,state:mt,indented:ce||0,tagName:null,tagStart:null,context:null};return ce!=null&&(Ee.baseIndent=ce),Ee},token:function(ce,Ee){if(!Ee.tagName&&ce.sol()&&(Ee.indented=ce.indentation()),ce.eatSpace())return null;Tt=null;var Ie=Ee.tokenize(ce,Ee);return(Ie||Tt)&&Ie!="comment"&&(Ue=null,Ee.state=Ee.state(Tt||Ie,ce,Ee),Ue&&(Ie=Ue=="error"?Ie+" error":Ue)),Ie},indent:function(ce,Ee,Ie){var ke=ce.context;if(ce.tokenize.isInAttribute)return ce.tagStart==ce.indented?ce.stringStartCol+1:ce.indented+Ht;if(ke&&ke.noIndent)return Mt.Pass;if(ce.tokenize!=Je&&ce.tokenize!=ie)return Ie?Ie.match(/^(\s*)/)[0].length:0;if(ce.tagName)return oe.multilineTagIndentPastTag!==!1?ce.tagStart+ce.tagName.length+2:ce.tagStart+Ht*(oe.multilineTagIndentFactor||1);if(oe.alignCDATA&&/<!\[CDATA\[/.test(Ee))return 0;var wn=Ee&&/^<(\/)?([\w_:\.-]*)/.exec(Ee);if(wn&&wn[1])for(;ke;)if(ke.tagName==wn[2]){ke=ke.prev;break}else if(oe.implicitlyClosed.hasOwnProperty(ke.tagName))ke=ke.prev;else break;else if(wn)for(;ke;){var on=oe.contextGrabbers[ke.tagName];if(on&&on.hasOwnProperty(wn[2]))ke=ke.prev;else break}for(;ke&&ke.prev&&!ke.startOfLine;)ke=ke.prev;return ke?ke.indent+Ht:ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:oe.htmlMode?"html":"xml",helperType:oe.htmlMode?"html":"xml",skipAttribute:function(ce){ce.state==Vt&&(ce.state=$t)},xmlCurrentTag:function(ce){return ce.tagName?{name:ce.tagName,close:ce.type=="closeTag"}:null},xmlCurrentContext:function(ce){for(var Ee=[],Ie=ce.context;Ie;Ie=Ie.prev)Ie.tagName&&Ee.push(Ie.tagName);return Ee.reverse()}}}),Mt.defineMIME("text/xml","xml"),Mt.defineMIME("application/xml","xml"),Mt.mimeModes.hasOwnProperty("text/html")||Mt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(An,Un,Et){"use strict";Et.d(Un,{$u:function(){return ve},BD:function(){return Dt},E9:function(){return Re},FF:function(){return ur},FJ:function(){return mt},Hn:function(){return gt},KX:function(){return wt},NB:function(){return re},S0:function(){return ue},UL:function(){return Tt},Vk:function(){return lt},Vm:function(){return Ne},YI:function(){return Ve},ZA:function(){return ge},Zt:function(){return Ue},al:function(){return bt},bn:function(){return jt},bx:function(){return Ct},g2:function(){return In},h1:function(){return Vt},hD:function(){return ki},l4:function(){return Ht},rU:function(){return Te},s_:function(){return yt},uz:function(){return Be},z6:function(){return ie}}),An=Et.hmd(An),function(){var Pt;function Ii(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Jn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Ii(a)}}function er(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Ji=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Zi;if(typeof Object.setPrototypeOf=="function")Zi=Object.setPrototypeOf;else{var fi;t:{var bn={a:!0},En={};try{En.__proto__=bn,fi=En.a;break t}catch(a){}fi=!1}Zi=fi?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Ae=Zi;function Me(a,y){if(a.prototype=Ji(y.prototype),a.prototype.constructor=a,Ae)Ae(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var be=typeof Et.g!="undefined"&&Et.g!=null?Et.g:self,qn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},ni=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Fi(a,y){if(y){var x=be;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&ni(x,a,{writable:!0,value:y})}}Fi("Object.assign",function(a){return a||qn}),Fi("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var gn=typeof globalThis=="object"&&globalThis||typeof Et.g=="object"&&Et.g.global===Et.g&&Et.g||typeof self=="object"&&self.self===self&&self||{};gn.requestAnimationFrame===void 0&&(gn.setImmediate===void 0?gn.requestAnimationFrame=function(a){gn.setTimeout(a,0)}:gn.requestAnimationFrame=gn.setImmediate);function Hn(){}function Oe(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&gn.clearTimeout(x),x=De(function(){x=-1,a.apply(b,E)},y)}}function De(a,y){return gn.setTimeout(a,y)}function ai(a){return gn.document.createElement(a)}function qt(a){throw Error(a)}function un(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),qt(a)}function Rn(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),qt(x+" is not in the range "+y+": "+a)}function Ai(a){gn.console&&gn.console.log(a)}function ln(a){return typeof a=="object"&&a!==null}function yn(a){return Array.isArray(a)||gn.NodeList&&a instanceof gn.NodeList||gn.HTMLCollection&&a instanceof gn.HTMLCollection}function li(a){return Array.prototype.slice.call(a)}function bi(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):qt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Ui(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):qt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Di(){var a=to.pop();return a===void 0?[]:a}function $n(a){a.length=0,to.push(a)}function wi(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(ln(a)&&a.constructor)return wi(a.constructor);return typeof a}function dr(a){var y=a;return ln(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 fr(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 xr(a,y,x){Object.defineProperty(Co.prototype,a,{get:y,set:x})}function cn(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 b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[b])%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 _r=gn.navigator!==void 0&&0<gn.navigator.userAgent.indexOf("Trident/7"),kr=gn.navigator!==void 0&&gn.navigator.platform!==void 0&&gn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,to=[];Object.freeze([]),Hn.className="Util",Hn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Hn.adym="gojs.net",Hn.vfo="28e645fdb266",Hn.className="Util";function rn(a,y,x){_i(this),this.j=a,this.xa=y,this.o=x}rn.prototype.toString=function(){return"EnumValue."+this.xa};function gi(a,y){return y==null||y===""?null:a[y]}be.Object.defineProperties(rn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),rn.className="EnumValue";function Ki(){this.ew=[]}Ki.prototype.toString=function(){return this.ew.join("")},Ki.prototype.add=function(a){a!==""&&this.ew.push(a)},Ki.className="StringBuilder";function nr(){}nr.className="PropertyCollection";var Qi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){gn.console&&gn.console.log(a)},HA:function(a,y,x,b){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(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(tt,rt){return function(){throw Error("Property "+tt.Zl[rt.Tj]+" of "+tt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function rr(){}rr.prototype.reset=function(){},rr.prototype.next=function(){return!1},rr.prototype.Ad=function(){return!1},rr.prototype.first=function(){return null},rr.prototype.any=function(){return!1},rr.prototype.all=function(){return!0},rr.prototype.each=function(){return this},rr.prototype.map=function(){return this},rr.prototype.filter=function(){return this},rr.prototype.de=function(){},rr.prototype.toString=function(){return"EmptyIterator"},be.Object.defineProperties(rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),rr.prototype.first=rr.prototype.first,rr.prototype.hasNext=rr.prototype.Ad,rr.prototype.next=rr.prototype.next,rr.prototype.reset=rr.prototype.reset;var Zr=null;rr.className="EmptyIterator",Zr=new rr;function Br(a){this.key=-1,this.value=a}Br.prototype.reset=function(){this.key=-1},Br.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Br.prototype.Ad=function(){return this.next()},Br.prototype.first=function(){return this.key=0,this.value},Br.prototype.any=function(a){return this.key=-1,a(this.value)},Br.prototype.all=function(a){return this.key=-1,a(this.value)},Br.prototype.each=function(a){return this.key=-1,a(this.value),this},Br.prototype.map=function(a){return new Br(a(this.value))},Br.prototype.filter=function(a){return a(this.value)?new Br(this.value):Zr},Br.prototype.de=function(){this.value=null},Br.prototype.toString=function(){return"SingletonIterator("+this.value+")"},be.Object.defineProperties(Br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Br.prototype.first=Br.prototype.first,Br.prototype.hasNext=Br.prototype.Ad,Br.prototype.next=Br.prototype.next,Br.prototype.reset=Br.prototype.reset,Br.className="SingletonIterator";function Hr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Hr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Hr.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,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Hr.prototype.Ad=function(){return this.next()},Hr.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 b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Hr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Hr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Hr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},Hr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&x.push(a(tt))}return a=new pn,a.s=x,a.xb(),a.iterator},Hr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&a(tt)&&x.push(tt)}return a=new pn,a.s=x,a.xb(),a.iterator},Hr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Hr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},be.Object.defineProperties(Hr.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,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),Hr.prototype.first=Hr.prototype.first,Hr.prototype.hasNext=Hr.prototype.Ad,Hr.prototype.next=Hr.prototype.next,Hr.prototype.reset=Hr.prototype.reset,Hr.className="ListIterator";function zr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}zr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},zr.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)},zr.prototype.Ad=function(){return this.next()},zr.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},zr.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},zr.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},zr.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},zr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new pn,a.s=x,a.xb(),a.iterator},zr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new pn,a.s=x,a.xb(),a.iterator},zr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},zr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},be.Object.defineProperties(zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),zr.prototype.first=zr.prototype.first,zr.prototype.hasNext=zr.prototype.Ad,zr.prototype.next=zr.prototype.next,zr.prototype.reset=zr.prototype.reset,zr.className="ListIteratorBackwards";function pn(a){_i(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&qt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=pn.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return this._isFrozen=!1,this},Pt.toString=function(){return"List()#"+Cr(this)},Pt.add=function(a){return a===null?this:(this._isFrozen&&un(this,a),this.s.push(a),this.xb(),this)},Pt.push=function(a){this.add(a)},Pt.addAll=function(a){if(a===null)return this;this._isFrozen&&un(this);var y=this.s;if(yn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Pt.clear=function(){this._isFrozen&&un(this),this.s.length=0,this.xb()},Pt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Pt.has=function(a){return this.contains(a)},Pt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Pt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Rn(a,"0 <= i < length",pn,"elt:i"),y[a]},Pt.get=function(a){return this.M(a)},Pt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Rn(a,"0 <= i < length",pn,"setElt:i"),this._isFrozen&&un(this,a),x[a]=y},Pt.set=function(a,y){this.cd(a,y)},Pt.first=function(){var a=this.s;return a.length===0?null:a[0]},Pt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Pt.pop=function(){this._isFrozen&&un(this);var a=this.s;return 0<a.length?a.pop():null},pn.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},pn.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},pn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},pn.prototype.map=function(a){for(var y=new pn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},pn.prototype.filter=function(a){for(var y=new pn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var tt=b[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},Pt=pn.prototype,Pt.Gb=function(a,y){0>a&&Rn(a,">= 0",pn,"insertAt:i"),this._isFrozen&&un(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Pt.remove=function(a){if(a===null)return!1;this._isFrozen&&un(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)},Pt.delete=function(a){return this.remove(a)},Pt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Rn(a,"0 <= i < length",pn,"removeAt:i"),this._isFrozen&&un(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Pt.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&un(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},pn.prototype.copy=function(){var a=new pn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Pt=pn.prototype,Pt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Pt.Iv=function(){for(var a=new Ln,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Pt.sort=function(a){return this._isFrozen&&un(this),this.s.sort(a),this.xb(),this},Pt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&un(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Rn(y,"0 <= from < length",pn,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},Pt.reverse=function(){return this._isFrozen&&un(this),this.s.reverse(),this.xb(),this},be.Object.defineProperties(pn.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 Zr;var a=this.Sa;return a!==null?(a.reset(),a):new Hr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Zr;var a=this.Hg;return a!==null?(a.reset(),a):new zr(this)}}}),pn.prototype.reverse=pn.prototype.reverse,pn.prototype.sortRange=pn.prototype.zi,pn.prototype.sort=pn.prototype.sort,pn.prototype.toSet=pn.prototype.Iv,pn.prototype.toArray=pn.prototype.Fa,pn.prototype.removeRange=pn.prototype.removeRange,pn.prototype.removeAt=pn.prototype.mb,pn.prototype.delete=pn.prototype.delete,pn.prototype.remove=pn.prototype.remove,pn.prototype.insertAt=pn.prototype.Gb,pn.prototype.pop=pn.prototype.pop,pn.prototype.last=pn.prototype.jc,pn.prototype.first=pn.prototype.first,pn.prototype.set=pn.prototype.set,pn.prototype.setElt=pn.prototype.cd,pn.prototype.get=pn.prototype.get,pn.prototype.elt=pn.prototype.M,pn.prototype.indexOf=pn.prototype.indexOf,pn.prototype.has=pn.prototype.has,pn.prototype.contains=pn.prototype.contains,pn.prototype.clear=pn.prototype.clear,pn.prototype.addAll=pn.prototype.addAll,pn.prototype.push=pn.prototype.push,pn.prototype.add=pn.prototype.add,pn.prototype.thaw=pn.prototype.ka,pn.prototype.freeze=pn.prototype.freeze,pn.className="List";function Yr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Yr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Yr.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)},Yr.prototype.Ad=function(){return this.next()},Yr.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},Yr.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},Yr.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},Yr.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},Yr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new pn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Yr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new pn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Yr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Yr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},be.Object.defineProperties(Yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Yr.prototype.first=Yr.prototype.first,Yr.prototype.hasNext=Yr.prototype.Ad,Yr.prototype.next=Yr.prototype.next,Yr.prototype.reset=Yr.prototype.reset,Yr.className="SetIterator";function Ln(a){_i(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&qt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=Ln.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return this._isFrozen=!1,this},Pt.toString=function(){return"Set()#"+Cr(this)},Pt.add=function(a){if(a===null)return this;this._isFrozen&&un(this,a);var y=a;return ln(a)&&(y=or(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ke(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},Pt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&un(this),yn(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},Pt.contains=function(a){if(a===null)return!1;var y=a;return ln(a)&&(y=Cr(a),y===void 0)?!1:this.Tb[y]!==void 0},Pt.has=function(a){return this.contains(a)},Pt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Pt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Pt.first=function(){var a=this.ea;return a===null?null:a.value},Ln.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ln.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ln.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ln.prototype.map=function(a){for(var y=new Ln,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ln.prototype.filter=function(a){for(var y=new Ln,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Pt=Ln.prototype,Pt.remove=function(a){if(a===null)return!1;this._isFrozen&&un(this,a);var y=a;if(ln(a)&&(y=Cr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Pt.delete=function(a){return this.remove(a)},Pt.hp=function(a){if(a===null)return this;if(this._isFrozen&&un(this),yn(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},Pt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&un(this);var y=new Ln;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},Pt.clear=function(){this._isFrozen&&un(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ln.prototype.copy=function(){var a=new Ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ln.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Ln.prototype.Hv=function(){var a=new pn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function _i(a){a.__gohashid=Po++}function or(a){var y=a.__gohashid;return y===void 0&&(y=Po++,a.__gohashid=y),y}function Cr(a){return a.__gohashid}be.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Zr;var a=this.Sa;return a!==null?(a.reset(),a):new Yr(this)}}}),Ln.prototype.toList=Ln.prototype.Hv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.retainAll=Ln.prototype.pA,Ln.prototype.removeAll=Ln.prototype.hp,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.first=Ln.prototype.first,Ln.prototype.containsAny=Ln.prototype.Ty,Ln.prototype.containsAll=Ln.prototype.Sy,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze;var Po=1;Ln.className="Set",Ln.uniqueHash=_i,Ln.hashIdUnique=or,Ln.hashId=Cr;function co(a){this.ma=a,this.qa=a.Ja,this.sa=null}co.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},co.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)},co.prototype.Ad=function(){return this.next()},co.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},co.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},co.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},co.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},co.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new pn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},co.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new pn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},co.prototype.de=function(){this.value=this.key=null,this.qa=-1},co.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},be.Object.defineProperties(co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),co.prototype.first=co.prototype.first,co.prototype.hasNext=co.prototype.Ad,co.prototype.next=co.prototype.next,co.prototype.reset=co.prototype.reset,co.className="MapKeySetIterator";function Kr(a){Ln.call(this),_i(this),this._isFrozen=!0,this.ma=a}Me(Kr,Ln),Pt=Kr.prototype,Pt.freeze=function(){return this},Pt.ka=function(){return this},Pt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Pt.add=function(){qt("This Set is read-only: "+this.toString())},Pt.contains=function(a){return this.ma.contains(a)},Pt.has=function(a){return this.contains(a)},Pt.remove=function(){qt("This Set is read-only: "+this.toString())},Pt.delete=function(a){return this.remove(a)},Pt.clear=function(){qt("This Set is read-only: "+this.toString())},Pt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Kr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Kr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Kr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Kr.prototype.map=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Kr.prototype.filter=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Kr.prototype.copy=function(){return new Kr(this.ma)},Kr.prototype.Iv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Kr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},Kr.prototype.Hv=function(){var a=new pn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},be.Object.defineProperties(Kr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Zr:new co(this.ma)}}}),Kr.prototype.toList=Kr.prototype.Hv,Kr.prototype.toArray=Kr.prototype.Fa,Kr.prototype.toSet=Kr.prototype.Iv,Kr.prototype.first=Kr.prototype.first,Kr.prototype.clear=Kr.prototype.clear,Kr.prototype.delete=Kr.prototype.delete,Kr.prototype.remove=Kr.prototype.remove,Kr.prototype.has=Kr.prototype.has,Kr.prototype.contains=Kr.prototype.contains,Kr.prototype.add=Kr.prototype.add,Kr.prototype.thaw=Kr.prototype.ka,Kr.prototype.freeze=Kr.prototype.freeze,Kr.className="MapKeySet";function eo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}eo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},eo.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)},eo.prototype.Ad=function(){return this.next()},eo.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},eo.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},eo.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},eo.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},eo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new pn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},eo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new pn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},eo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},eo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},be.Object.defineProperties(eo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),eo.prototype.first=eo.prototype.first,eo.prototype.hasNext=eo.prototype.Ad,eo.prototype.next=eo.prototype.next,eo.prototype.reset=eo.prototype.reset,eo.className="MapValueSetIterator";function Ke(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ke.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ke.className="KeyValuePair";function Mn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Mn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Mn.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)},Mn.prototype.Ad=function(){return this.next()},Mn.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},Mn.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},Mn.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},Mn.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},Mn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new pn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Mn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new pn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Mn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Mn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},be.Object.defineProperties(Mn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Mn.prototype.first=Mn.prototype.first,Mn.prototype.hasNext=Mn.prototype.Ad,Mn.prototype.next=Mn.prototype.next,Mn.prototype.reset=Mn.prototype.reset,Mn.className="MapIterator";function Ge(a){_i(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"&&qt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Pt=Ge.prototype,Pt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return this._isFrozen=!1,this},Pt.toString=function(){return"Map()#"+Cr(this)},Pt.add=function(a,y){this._isFrozen&&un(this,a);var x=a;ln(a)&&(x=or(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Ke(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()):b.value=y,this},Pt.set=function(a,y){return this.add(a,y)},Pt.addAll=function(a){if(a===null)return this;if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof Ge)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},Pt.first=function(){return this.ea},Ge.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ge.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ge.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ge.prototype.map=function(a){for(var y=new Ge,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Ge.prototype.filter=function(a){for(var y=new Ge,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Pt=Ge.prototype,Pt.contains=function(a){var y=a;return ln(a)&&(y=Cr(a),y===void 0)?!1:this.Tb[y]!==void 0},Pt.has=function(a){return this.contains(a)},Pt.I=function(a){var y=a;return ln(a)&&(y=Cr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Pt.get=function(a){return this.I(a)},Pt.remove=function(a){if(a===null)return!1;this._isFrozen&&un(this,a);var y=a;if(ln(a)&&(y=Cr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Pt.delete=function(a){return this.remove(a)},Pt.clear=function(){this._isFrozen&&un(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()},Ge.prototype.copy=function(){var a=new Ge,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Ge.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Ke(E.key,E.value),x++}return y},Ge.prototype.Lf=function(){return new Kr(this)},be.Object.defineProperties(Ge.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Zr;var a=this.Sa;return a!==null?(a.reset(),a):new Mn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Zr:new co(this)}},iteratorValues:{get:function(){if(0>=this.count)return Zr;var a=this.jf;return a!==null?(a.reset(),a):new eo(this)}}}),Ge.prototype.toKeySet=Ge.prototype.Lf,Ge.prototype.toArray=Ge.prototype.Fa,Ge.prototype.clear=Ge.prototype.clear,Ge.prototype.delete=Ge.prototype.delete,Ge.prototype.remove=Ge.prototype.remove,Ge.prototype.get=Ge.prototype.get,Ge.prototype.getValue=Ge.prototype.I,Ge.prototype.has=Ge.prototype.has,Ge.prototype.contains=Ge.prototype.contains,Ge.prototype.first=Ge.prototype.first,Ge.prototype.addAll=Ge.prototype.addAll,Ge.prototype.set=Ge.prototype.set,Ge.prototype.add=Ge.prototype.add,Ge.prototype.thaw=Ge.prototype.ka,Ge.prototype.freeze=Ge.prototype.freeze,Ge.className="Map";function Bt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):qt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ti,Kn,ui,Mi,Ei;Bt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Bt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Bt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Bt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Bt.prototype.copy=function(){var a=new Bt;return a.x=this.x,a.y=this.y,a},Pt=Bt.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Nn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Bt(x,E)}return new Bt}function si(a){return a.x.toString()+" "+a.y.toString()}Pt.toString=function(){return"Point("+this.x+","+this.y+")"},Pt.D=function(a){return a instanceof Bt?this.x===a.x&&this.y===a.y:!1},Pt.hi=function(a,y){return this.x===a&&this.y===y},Pt.Xa=function(a){return me.B(this.x,a.x)&&me.B(this.y,a.y)},Pt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Pt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Pt.offset=function(a,y){return this.x+=a,this.y+=y,this},Bt.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 b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},Pt=Bt.prototype,Pt.scale=function(a,y){return this.x*=a,this.y*=y,this},Pt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Pt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Pt.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},Pt.ab=function(a){return hi(a.x-this.x,a.y-this.y)},Pt.direction=function(a,y){return hi(a-this.x,y-this.y)};function hi(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}Pt.Ry=function(a,y){return me.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Pt.fA=function(a,y,x,b){return me.qh(a,y,x,b,this.x,this.y,this),this},Pt.gA=function(a,y){return me.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Pt.uA=function(a,y,x,b){return me.No(this.x,this.y,a,y,x,b,this),this},Pt.vA=function(a,y){return me.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Pt.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},Pt.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},Pt.transform=function(a){return a.Ga(this),this};function pi(a,y){return y.Cd(a),a}function mi(a,y,x,b,E,z){var tt=E-x,rt=z-b,ot=tt*tt+rt*rt;x-=a,b-=y;var st=-x*tt-b*rt;return 0>=st||st>=ot?(tt=E-a,rt=z-y,Math.min(x*x+b*b,tt*tt+rt*rt)):(a=tt*b-rt*x,a*a/ot)}function ar(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Nt(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Pt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Bt.alloc=function(){var a=ae.pop();return a===void 0?new Bt:a},Bt.allocAt=function(a,y){var x=ae.pop();return x===void 0?new Bt(a,y):(x.x=a,x.y=y,x)},Bt.free=function(a){ae.push(a)},Bt.prototype.isReal=Bt.prototype.w,Bt.prototype.setSpot=Bt.prototype.yi,Bt.prototype.setRectSpot=Bt.prototype.xi,Bt.prototype.snapToGridPoint=Bt.prototype.vA,Bt.prototype.snapToGrid=Bt.prototype.uA,Bt.prototype.projectOntoLineSegmentPoint=Bt.prototype.gA,Bt.prototype.projectOntoLineSegment=Bt.prototype.fA,Bt.intersectingLineSegments=function(a,y,x,b,E,z,tt,rt){return me.Rl(a,y,x,b,E,z,tt,rt)},Bt.prototype.compareWithLineSegmentPoint=Bt.prototype.Ry,Bt.compareWithLineSegment=function(a,y,x,b,E,z){return me.Fl(a,y,x,b,E,z)},Bt.prototype.direction=Bt.prototype.direction,Bt.prototype.directionPoint=Bt.prototype.ab,Bt.prototype.normalize=Bt.prototype.normalize,Bt.prototype.distanceSquared=Bt.prototype.zd,Bt.prototype.distanceSquaredPoint=Bt.prototype.Bf,Bt.prototype.scale=Bt.prototype.scale,Bt.prototype.rotate=Bt.prototype.rotate,Bt.prototype.offset=Bt.prototype.offset,Bt.prototype.subtract=Bt.prototype.re,Bt.prototype.add=Bt.prototype.add,Bt.prototype.equalsApprox=Bt.prototype.Xa,Bt.prototype.equalTo=Bt.prototype.hi,Bt.prototype.equals=Bt.prototype.D,Bt.prototype.set=Bt.prototype.set,Bt.prototype.setTo=Bt.prototype.sg;var ae=[];Bt.className="Point",Bt.parse=Nn,Bt.stringify=si,Bt.distanceLineSegmentSquared=mi,Bt.distanceSquared=ar,Bt.direction=Nt,Bt.Origin=ti=new Bt(0,0).ja(),Bt.InfiniteTopLeft=Kn=new Bt(-1/0,-1/0).ja(),Bt.InfiniteBottomRight=ui=new Bt(1/0,1/0).ja(),Bt.SixPoint=Mi=new Bt(6,6).ja(),Bt.NoPoint=Ei=new Bt(NaN,NaN).ja(),Bt.parse=Nn,Bt.stringify=si,Bt.distanceLineSegmentSquared=mi,Bt.distanceSquared=ar,Bt.direction=Nt;function Ut(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):qt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var se,we,Xe,en,hn,Bn,Dn;Ut.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Ut.prototype.h=function(a,y){return this.width=a,this.height=y,this},Ut.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Ut.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Ut.prototype.copy=function(){var a=new Ut;return a.width=this.width,a.height=this.height,a},Pt=Ut.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function mn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Ut(x,E)}return new Ut}function ii(a){return a.width.toString()+" "+a.height.toString()}Pt.toString=function(){return"Size("+this.width+","+this.height+")"},Pt.D=function(a){return a instanceof Ut?this.width===a.width&&this.height===a.height:!1},Pt.hi=function(a,y){return this.width===a&&this.height===y},Pt.Xa=function(a){return me.B(this.width,a.width)&&me.B(this.height,a.height)},Pt.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},Pt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Ut.alloc=function(){var a=Bi.pop();return a===void 0?new Ut:a},Ut.free=function(a){Bi.push(a)},Ut.prototype.isReal=Ut.prototype.w,Ut.prototype.inflate=Ut.prototype.Bc,Ut.prototype.equalsApprox=Ut.prototype.Xa,Ut.prototype.equalTo=Ut.prototype.hi,Ut.prototype.equals=Ut.prototype.D,Ut.prototype.set=Ut.prototype.set,Ut.prototype.setTo=Ut.prototype.sg;var Bi=[];Ut.className="Size",Ut.parse=mn,Ut.stringify=ii,Ut.ZeroSize=se=new Ut(0,0).ja(),Ut.OneSize=we=new Ut(1,1).ja(),Ut.SixSize=Xe=new Ut(6,6).ja(),Ut.EightSize=en=new Ut(8,8).ja(),Ut.TenSize=hn=new Ut(10,10).ja(),Ut.InfiniteSize=Bn=new Ut(1/0,1/0).ja(),Ut.NoSize=Dn=new Ut(NaN,NaN).ja(),Ut.parse=mn,Ut.stringify=ii;function de(a,y,x,b){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 b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Bt?(x=a.x,a=a.y,y instanceof Bt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof Ut?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):qt("Incorrect second argument supplied to Rect constructor "+y)):qt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Pt=de.prototype,Pt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Pt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Wn(a,y,x){a.width=y,a.height=x}Pt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Pt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Pt.dd=function(a){return this.x=a.x,this.y=a.y,this},Pt.tA=function(a){return this.width=a.width,this.height=a.height,this},de.prototype.copy=function(){var a=new de;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Pt=de.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Yn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new de(x,E,z,tt)}return new de}function zn(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Pt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Pt.D=function(a){return a instanceof de?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Pt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Pt.Xa=function(a){return me.B(this.x,a.x)&&me.B(this.y,a.y)&&me.B(this.width,a.width)&&me.B(this.height,a.height)};function _n(a,y){return me.$(a.x,y.x)&&me.$(a.y,y.y)&&me.$(a.width,y.width)&&me.$(a.height,y.height)}Pt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Pt.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},Pt.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},Pt.offset=function(a,y){return this.x+=a,this.y+=y,this},Pt.Bc=function(a,y){return ei(this,y,a,y,a)},Pt.Co=function(a){return ei(this,a.top,a.right,a.bottom,a.left)},Pt.Fv=function(a){return ei(this,-a.top,-a.right,-a.bottom,-a.left)},Pt.Hz=function(a,y,x,b){return ei(this,a,y,x,b)};function ei(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Pt.Ex=function(a){return Oi(this,a.x,a.y,a.width,a.height)},Pt.Uu=function(a,y,x,b){return Oi(this,a,y,x,b)};function Oi(a,y,x,b,E){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Pt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Pt.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function yi(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Pt.Ye=function(a){return oi(this,a.x,a.y,0,0)},Pt.ed=function(a){return oi(this,a.x,a.y,a.width,a.height)},Pt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),oi(this,a,y,x,b)};function oi(a,y,x,b,E){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Pt.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 Vn(a,y,x,b,E,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=E&&E+tt<=a+x&&y<=z&&z+rt<=y+b}function zi(a,y,x,b,E,z,tt,rt){return a>tt+E||E>x+a?!1:!(y>rt+z||z>b+y)}Pt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Pt.Mz=function(){return this.width===0&&this.height===0},de.alloc=function(){var a=Er.pop();return a===void 0?new de:a},de.allocAt=function(a,y,x,b){var E=Er.pop();return E===void 0?new de(a,y,x,b):E.h(a,y,x,b)},de.free=function(a){Er.push(a)},be.Object.defineProperties(de.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 Bt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Ut(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Bt(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}}}),de.prototype.isEmpty=de.prototype.Mz,de.prototype.isReal=de.prototype.w,de.intersectsLineSegment=function(a,y,x,b,E,z,tt,rt){return me.Fx(a,y,x,b,E,z,tt,rt)},de.prototype.setSpot=de.prototype.yi,de.prototype.union=de.prototype.Kv,de.prototype.unionRect=de.prototype.ed,de.prototype.unionPoint=de.prototype.Ye,de.prototype.intersects=de.prototype.Vu,de.prototype.intersectsRect=de.prototype.Yc,de.prototype.intersect=de.prototype.Uu,de.prototype.intersectRect=de.prototype.Ex,de.prototype.grow=de.prototype.Hz,de.prototype.subtractMargin=de.prototype.Fv,de.prototype.addMargin=de.prototype.Co,de.prototype.inflate=de.prototype.Bc,de.prototype.offset=de.prototype.offset,de.prototype.contains=de.prototype.contains,de.prototype.containsRect=de.prototype.Re,de.prototype.containsPoint=de.prototype.ca,de.prototype.equalsApprox=de.prototype.Xa,de.prototype.equalTo=de.prototype.hi,de.prototype.equals=de.prototype.D,de.prototype.setSize=de.prototype.tA,de.prototype.setPoint=de.prototype.dd,de.prototype.set=de.prototype.set,de.prototype.setTo=de.prototype.sg;var lr=null,mr=null,Er=[];de.className="Rect",de.parse=Yn,de.stringify=zn,de.contains=Vn,de.intersects=zi,de.ZeroRect=lr=new de(0,0,0,0).ja(),de.NoRect=mr=new de(NaN,NaN,NaN,NaN).ja(),de.parse=Yn,de.stringify=zn,de.contains=Vn,de.intersects=zi;function Si(a,y,x,b){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):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):qt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Si.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Si.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Si.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Si.prototype.copy=function(){var a=new Si;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Pt=Si.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function cr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Si;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Si(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Si(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new Si(x,E):new Si(x,E,z,tt)}return new Si}function gr(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Pt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Pt.D=function(a){return a instanceof Si?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Pt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Pt.Xa=function(a){return me.B(this.top,a.top)&&me.B(this.right,a.right)&&me.B(this.bottom,a.bottom)&&me.B(this.left,a.left)},Pt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Si.alloc=function(){var a=Xi.pop();return a===void 0?new Si:a},Si.free=function(a){Xi.push(a)},Si.prototype.isReal=Si.prototype.w,Si.prototype.equalsApprox=Si.prototype.Xa,Si.prototype.equalTo=Si.prototype.hi,Si.prototype.equals=Si.prototype.D,Si.prototype.set=Si.prototype.set,Si.prototype.setTo=Si.prototype.sg;var Pr=null,Vi=null,Xi=[];Si.className="Margin",Si.parse=cr,Si.stringify=gr,Si.ZeroMargin=Pr=new Si(0,0,0,0).ja(),Si.TwoMargin=Vi=new Si(2,2,2,2).ja(),Si.parse=cr,Si.stringify=gr;function dn(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Gi,hr,Fr,Or,yr,ji,br,Ur,Jr,Tr,so,no,Wr,fo,Mo,_o,io,ta,Ao,ca,No,Xo,ea,Qo,Ro,ko,oa,Ca,Zo,Ia,Fo,wo,po,Yo,Ir,ao;dn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},dn.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},dn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},dn.prototype.copy=function(){var a=new dn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Pt=dn.prototype,Pt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Pt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function vr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Nr(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Gi;if(a==="TopLeft")return hr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Fr;if(a==="TopRight")return Or;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return yr;if(a==="Center")return ji;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return br;if(a==="BottomLeft")return Ur;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Jr;if(a==="BottomRight")return Tr;if(a==="TopSide")return so;if(a==="LeftSide")return no;if(a==="RightSide")return Wr;if(a==="BottomSide")return fo;if(a==="TopBottomSides")return Mo;if(a==="LeftRightSides")return _o;if(a==="TopLeftSides")return io;if(a==="TopRightSides")return ta;if(a==="BottomLeftSides")return Ao;if(a==="BottomRightSides")return ca;if(a==="NotTopSide")return No;if(a==="NotLeftSide")return Xo;if(a==="NotRightSide")return ea;if(a==="NotBottomSide")return Qo;if(a==="AllSides")return Ro;if(a==="Default")return ko;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(tt=parseFloat(b)),new dn(x,E,z,tt)}return new dn}function uo(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Pt.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(Gi)?"None":this.D(hr)?"TopLeft":this.D(Fr)?"Top":this.D(Or)?"TopRight":this.D(yr)?"Left":this.D(ji)?"Center":this.D(br)?"Right":this.D(Ur)?"BottomLeft":this.D(Jr)?"Bottom":this.D(Tr)?"BottomRight":this.D(so)?"TopSide":this.D(no)?"LeftSide":this.D(Wr)?"RightSide":this.D(fo)?"BottomSide":this.D(Mo)?"TopBottomSides":this.D(_o)?"LeftRightSides":this.D(io)?"TopLeftSides":this.D(ta)?"TopRightSides":this.D(Ao)?"BottomLeftSides":this.D(ca)?"BottomRightSides":this.D(No)?"NotTopSide":this.D(Xo)?"NotLeftSide":this.D(ea)?"NotRightSide":this.D(Qo)?"NotBottomSide":this.D(Ro)?"AllSides":this.D(ko)?"Default":"None"},Pt.D=function(a){return a instanceof dn?(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},Pt.gv=function(){return new dn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Pt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(oa))a=no;else if(a.D(Ca))a=Wr;else if(a.D(Zo))a=so;else if(a.D(Ia))a=fo;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Pt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Pt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Pt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Pt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Pt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},dn.alloc=function(){var a=wr.pop();return a===void 0?new dn:a},dn.free=function(a){wr.push(a)},dn.prototype.isDefault=dn.prototype.Xb,dn.prototype.isNone=dn.prototype.ys,dn.prototype.isSide=dn.prototype.$c,dn.prototype.isNoSpot=dn.prototype.Mc,dn.prototype.isSpot=dn.prototype.sb,dn.prototype.includesSide=dn.prototype.Hf,dn.prototype.opposite=dn.prototype.gv,dn.prototype.equals=dn.prototype.D,dn.prototype.set=dn.prototype.set,dn.prototype.setTo=dn.prototype.sg;var wr=[];dn.className="Spot",dn.parse=Nr,dn.stringify=uo,dn.None=Gi=vr(new dn(0,0,0,0),0).ja(),dn.Default=ko=vr(new dn(0,0,-1,0),-1).ja(),dn.TopLeft=hr=new dn(0,0,0,0).ja(),dn.TopCenter=Fr=new dn(.5,0,0,0).ja(),dn.TopRight=Or=new dn(1,0,0,0).ja(),dn.LeftCenter=yr=new dn(0,.5,0,0).ja(),dn.Center=ji=new dn(.5,.5,0,0).ja(),dn.RightCenter=br=new dn(1,.5,0,0).ja(),dn.BottomLeft=Ur=new dn(0,1,0,0).ja(),dn.BottomCenter=Jr=new dn(.5,1,0,0).ja(),dn.BottomRight=Tr=new dn(1,1,0,0).ja(),dn.MiddleTop=Fo=Fr,dn.MiddleLeft=wo=yr,dn.MiddleRight=po=br,dn.MiddleBottom=Yo=Jr,dn.Top=Zo=Fr,dn.Left=oa=yr,dn.Right=Ca=br,dn.Bottom=Ia=Jr,dn.TopSide=so=vr(new dn(0,0,1,1),1).ja(),dn.LeftSide=no=vr(new dn(0,0,1,2),1).ja(),dn.RightSide=Wr=vr(new dn(0,0,1,4),1).ja(),dn.BottomSide=fo=vr(new dn(0,0,1,8),1).ja(),dn.TopBottomSides=Mo=vr(new dn(0,0,1,9),1).ja(),dn.LeftRightSides=_o=vr(new dn(0,0,1,6),1).ja(),dn.TopLeftSides=io=vr(new dn(0,0,1,3),1).ja(),dn.TopRightSides=ta=vr(new dn(0,0,1,5),1).ja(),dn.BottomLeftSides=Ao=vr(new dn(0,0,1,10),1).ja(),dn.BottomRightSides=ca=vr(new dn(0,0,1,12),1).ja(),dn.NotTopSide=No=vr(new dn(0,0,1,14),1).ja(),dn.NotLeftSide=Xo=vr(new dn(0,0,1,13),1).ja(),dn.NotRightSide=ea=vr(new dn(0,0,1,11),1).ja(),dn.NotBottomSide=Qo=vr(new dn(0,0,1,7),1).ja(),dn.AllSides=Ro=vr(new dn(0,0,1,15),1).ja(),Ir=new dn(.156,.156).ja(),ao=new dn(.844,.844).ja(),dn.parse=Nr,dn.stringify=uo;function vi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}vi.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},vi.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},vi.prototype.copy=function(){var a=new vi;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},vi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},vi.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},vi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},vi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},vi.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=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=b,this.m22=E,this},vi.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,tt=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*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},vi.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=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=b,this.dx=E,this.dy=z,this},vi.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 b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,tt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Pt=vi.prototype,Pt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Pt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Pt.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)},Pt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Pt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Pt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,ot=this.m22,st=this.dx,ut=this.dy,ft=y*z+x*rt+st,vt=y*tt+x*ot+ut,xt=b*z+x*rt+st,Lt=b*tt+x*ot+ut;return x=y*z+E*rt+st,y=y*tt+E*ot+ut,z=b*z+E*rt+st,b=b*tt+E*ot+ut,E=Math.min(ft,xt),ft=Math.max(ft,xt),xt=Math.min(vt,Lt),vt=Math.max(vt,Lt),E=Math.min(E,x),ft=Math.max(ft,x),xt=Math.min(xt,y),vt=Math.max(vt,y),E=Math.min(E,z),ft=Math.max(ft,z),xt=Math.min(xt,b),vt=Math.max(vt,b),a.h(E,xt,ft-E,vt-xt),a},vi.alloc=function(){var a=ia.pop();return a===void 0?new vi:a},vi.free=function(a){ia.push(a)},vi.prototype.transformRect=vi.prototype.pp,vi.prototype.transformPoint=vi.prototype.Ga,vi.prototype.scale=vi.prototype.scale,vi.prototype.translate=vi.prototype.translate,vi.prototype.rotate=vi.prototype.rotate,vi.prototype.invert=vi.prototype.Vj,vi.prototype.multiplyInverted=vi.prototype.bv,vi.prototype.multiply=vi.prototype.multiply,vi.prototype.reset=vi.prototype.reset,vi.prototype.isIdentity=vi.prototype.ws,vi.prototype.equals=vi.prototype.D,vi.prototype.setTransform=vi.prototype.setTransform,vi.prototype.set=vi.prototype.set;var ia=[];vi.className="Transform",vi.xF="54a702f3e53909c447824c6706603faf4c";var me={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=me.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);me.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,b,E,z,tt){if(0>=E&&(E=1e-6),a<x)var rt=a,ot=x;else rt=x,ot=a;if(y<b)var st=y,ut=b;else st=b,ut=y;if(a===x)return st<=tt&&tt<=ut&&a-E<=z&&z<=a+E;if(y===b)return rt<=z&&z<=ot&&y-E<=tt&&tt<=y+E;if(ot+=E,rt-=E,rt<=z&&z<=ot&&(ut+=E,st-=E,st<=tt&&tt<=ut))if(ot-rt>ut-st)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=tt&&tt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(tt=(x-a)/(b-y)*(tt-y)+a,tt-E<=z&&z<=tt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,tt,rt,ot,st,ut,ft){if(me.Yb(a,y,tt,rt,ft,x,b)&&me.Yb(a,y,tt,rt,ft,E,z))return me.Yb(a,y,tt,rt,ft,st,ut);var vt=(a+x)/2,xt=(y+b)/2,Lt=(x+E)/2,Ft=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(vt+Lt)/2,x=(xt+Ft)/2,Lt=(Lt+E)/2,Ft=(Ft+z)/2;var Xt=(b+Lt)/2,Zt=(x+Ft)/2;return me.cs(a,y,vt,xt,b,x,Xt,Zt,ot,st,ut,ft)||me.cs(Xt,Zt,Lt,Ft,E,z,tt,rt,ot,st,ut,ft)},ax:function(a,y,x,b,E,z,tt,rt,ot){var st=(x+E)/2,ut=(b+z)/2;return ot.h((((a+x)/2+st)/2+(st+(E+tt)/2)/2)/2,(((y+b)/2+ut)/2+(ut+(z+rt)/2)/2)/2),ot},My:function(a,y,x,b,E,z,tt,rt){var ot=(x+E)/2,st=(b+z)/2;return Nt(((a+x)/2+ot)/2,((y+b)/2+st)/2,(ot+(E+tt)/2)/2,(st+(z+rt)/2)/2)},Dl:function(a,y,x,b,E,z,tt,rt,ot,st){if(me.Yb(a,y,tt,rt,ot,x,b)&&me.Yb(a,y,tt,rt,ot,E,z))oi(st,a,y,0,0),oi(st,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+b)/2,vt=(x+E)/2,xt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+vt)/2,x=(ft+xt)/2,vt=(vt+E)/2,xt=(xt+z)/2;var Lt=(b+vt)/2,Ft=(x+xt)/2;me.Dl(a,y,ut,ft,b,x,Lt,Ft,ot,st),me.Dl(Lt,Ft,vt,xt,E,z,tt,rt,ot,st)}return st},Qe:function(a,y,x,b,E,z,tt,rt,ot,st){if(me.Yb(a,y,tt,rt,ot,x,b)&&me.Yb(a,y,tt,rt,ot,E,z))st.length===0&&(st.push(a),st.push(y)),st.push(tt),st.push(rt);else{var ut=(a+x)/2,ft=(y+b)/2,vt=(x+E)/2,xt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+vt)/2,x=(ft+xt)/2,vt=(vt+E)/2,xt=(xt+z)/2;var Lt=(b+vt)/2,Ft=(x+xt)/2;me.Qe(a,y,ut,ft,b,x,Lt,Ft,ot,st),me.Qe(Lt,Ft,vt,xt,E,z,tt,rt,ot,st)}return st},jv:function(a,y,x,b,E,z,tt,rt,ot,st){if(me.Yb(a,y,E,z,st,x,b))return me.Yb(a,y,E,z,st,rt,ot);var ut=(a+x)/2,ft=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var vt=(ut+x)/2,xt=(ft+b)/2;return me.jv(a,y,ut,ft,vt,xt,tt,rt,ot,st)||me.jv(vt,xt,x,b,E,z,tt,rt,ot,st)},OA:function(a,y,x,b,E,z,tt){return tt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),tt},iv:function(a,y,x,b,E,z,tt,rt){if(me.Yb(a,y,E,z,tt,x,b))oi(rt,a,y,0,0),oi(rt,E,z,0,0);else{var ot=(a+x)/2,st=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(ot+x)/2,ft=(st+b)/2;me.iv(a,y,ot,st,ut,ft,tt,rt),me.iv(ut,ft,x,b,E,z,tt,rt)}return rt},ep:function(a,y,x,b,E,z,tt,rt){if(me.Yb(a,y,E,z,tt,x,b))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(E),rt.push(z);else{var ot=(a+x)/2,st=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(ot+x)/2,ft=(st+b)/2;me.ep(a,y,ot,st,ut,ft,tt,rt),me.ep(ut,ft,x,b,E,z,tt,rt)}return rt},Eo:function(a,y,x,b,E,z,tt,rt,ot,st,ut,ft,vt,xt){if(me.Yb(a,y,tt,rt,vt,x,b)&&me.Yb(a,y,tt,rt,vt,E,z))return!me.Rl(a,y,tt,rt,ot,st,ut,ft)||(vt=(a-tt)*(st-ft)-(y-rt)*(ot-ut),vt===0)?!1:(xt.h(((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-st*ut))/vt,((a*rt-y*tt)*(st-ft)-(y-rt)*(ot*ft-st*ut))/vt),!0);var Lt=(a+x)/2,Ft=(y+b)/2,Xt=(x+E)/2,Zt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(Lt+Xt)/2,x=(Ft+Zt)/2,Xt=(Xt+E)/2,Zt=(Zt+z)/2;var Qt=(b+Xt)/2,_t=(x+Zt)/2,te=1/0,ye=!1,ze=0,ri=0;return me.Eo(a,y,Lt,Ft,b,x,Qt,_t,ot,st,ut,ft,vt,xt)&&(a=(xt.x-ot)*(xt.x-ot)+(xt.y-st)*(xt.y-st),a<te&&(te=a,ye=!0,ze=xt.x,ri=xt.y)),me.Eo(Qt,_t,Xt,Zt,E,z,tt,rt,ot,st,ut,ft,vt,xt)&&(xt.x-ot)*(xt.x-ot)+(xt.y-st)*(xt.y-st)<te&&(ye=!0,ze=xt.x,ri=xt.y),ye&&(xt.x=ze,xt.y=ri),ye},Fo:function(a,y,x,b,E,z,tt,rt,ot,st,ut,ft,vt){var xt=0;if(me.Yb(a,y,tt,rt,vt,x,b)&&me.Yb(a,y,tt,rt,vt,E,z)){if(vt=(a-tt)*(st-ft)-(y-rt)*(ot-ut),vt===0)return xt;var Lt=((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-st*ut))/vt,Ft=((a*rt-y*tt)*(st-ft)-(y-rt)*(ot*ft-st*ut))/vt;if(Lt>=ut)return xt;if((ot>ut?ot-ut:ut-ot)<(st>ft?st-ft:ft-st)){if(y<rt?(ot=y,a=rt):(ot=rt,a=y),Ft<ot||Ft>a)return xt}else if(a<tt?(ot=a,a=tt):ot=tt,Lt<ot||Lt>a)return xt;0<vt?xt++:0>vt&&xt--}else{Lt=(a+x)/2,Ft=(y+b)/2;var Xt=(x+E)/2,Zt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(Lt+Xt)/2,x=(Ft+Zt)/2,Xt=(Xt+E)/2,Zt=(Zt+z)/2;var Qt=(b+Xt)/2,_t=(x+Zt)/2;xt+=me.Fo(a,y,Lt,Ft,b,x,Qt,_t,ot,st,ut,ft,vt),xt+=me.Fo(Qt,_t,Xt,Zt,E,z,tt,rt,ot,st,ut,ft,vt)}return xt},qh:function(a,y,x,b,E,z,tt){return me.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):me.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(tt.h(b,y),!1):E>a?(tt.h(a,y),!1):(tt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(tt.h(a,y),!1):1.000005<E?(tt.h(x,b),!1):(tt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,tt,rt,ot){return me.B(a,x)&&me.B(y,b)?(ot.h(a,y),!1):me.$(E,tt)?me.$(a,x)?(me.qh(a,y,x,b,E,z,ot),!1):me.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,ot):(rt=(rt-z)/(tt-E),me.$(a,x)?(x=rt*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(ot.h(a,E),!1):x>y?(ot.h(a,y),!1):(ot.h(a,x),!0)):(tt=(b-y)/(x-a),me.$(rt,tt)?(me.qh(a,y,x,b,E,z,ot),!1):(E=(tt*a-rt*E+z-y)/(tt-rt),me.$(tt,0)?(a<x?(b=a,a=x):b=x,E<b?(ot.h(b,y),!1):E>a?(ot.h(a,y),!1):(ot.h(E,y),!0)):me.qh(a,y,x,b,E,tt*(E-a)+y,ot))))},MA:function(a,y,x,b,E){return me.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,tt,rt,ot,st){function ut(Xt,Zt){var Qt=(Xt-a)*(Xt-a)+(Zt-y)*(Zt-y);Qt<ft&&(ft=Qt,ot.h(Xt,Zt))}var ft=1/0;ut(ot.x,ot.y);var vt=0,xt=0,Lt=0,Ft=0;if(E<tt?(vt=E,xt=tt):(vt=tt,xt=E),z<rt?(Lt=E,Ft=tt):(Lt=tt,Ft=E),vt=(xt-vt)/2+st,st=(Ft-Lt)/2+st,E=(E+tt)/2,z=(z+rt)/2,vt===0||st===0)return ot;if(.5>(x>a?x-a:a-x)){if(vt=1-(x-E)*(x-E)/(vt*vt),0>vt)return ot;vt=Math.sqrt(vt),b=-st*vt+z,ut(x,st*vt+z),ut(x,b)}else{if(x=(b-y)/(x-a),b=1/(vt*vt)+x*x/(st*st),rt=2*x*(y-x*a)/(st*st)-2*x*z/(st*st)-2*E/(vt*vt),vt=rt*rt-4*b*(2*x*a*z/(st*st)-2*y*z/(st*st)+z*z/(st*st)+E*E/(vt*vt)-1+(y-x*a)*(y-x*a)/(st*st)),0>vt)return ot;vt=Math.sqrt(vt),st=(-rt+vt)/(2*b),ut(st,x*st-x*a+y),vt=(-rt-vt)/(2*b),ut(vt,x*vt-x*a+y)}return ot},Ff:function(a,y,x,b,E,z,tt,rt,ot){var st=1e21,ut=a,ft=y;if(me.Ve(a,y,a,b,E,z,tt,rt,ot)){var vt=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z);vt<st&&(st=vt,ut=ot.x,ft=ot.y)}return me.Ve(x,y,x,b,E,z,tt,rt,ot)&&(vt=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),vt<st&&(st=vt,ut=ot.x,ft=ot.y)),me.Ve(a,y,x,y,E,z,tt,rt,ot)&&(y=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),y<st&&(st=y,ut=ot.x,ft=ot.y)),me.Ve(a,b,x,b,E,z,tt,rt,ot)&&(a=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),a<st&&(st=a,ut=ot.x,ft=ot.y)),ot.h(ut,ft),1e21>st},us:function(a,y,x){return me.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,tt,rt){var ot=a+x,st=y+b;return E===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=E&&E<=ot&&tt<=st&&z>=y):z===rt?(E<tt?(rt=E,E=tt):rt=tt,y<=z&&z<=st&&rt<=ot&&E>=a):!!(Vn(a,y,x,b,E,z)||Vn(a,y,x,b,tt,rt)||me.Rl(a,y,ot,y,E,z,tt,rt)||me.Rl(ot,y,ot,st,E,z,tt,rt)||me.Rl(ot,st,a,st,E,z,tt,rt)||me.Rl(a,st,a,y,E,z,tt,rt))},Rl:function(a,y,x,b,E,z,tt,rt){return a===x&&y===b&&E===tt&&z===rt?a===E&&y===z:0>=me.Fl(a,y,x,b,E,z)*me.Fl(a,y,x,b,tt,rt)&&0>=me.Fl(E,z,tt,rt,a,y)*me.Fl(E,z,tt,rt,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var tt=Math.PI;z||(b*=tt/180,E*=tt/180);var rt=b>E?-1:1;z=[];var ot=tt/2,st=b;if(b=Math.min(2*tt,Math.abs(E-b)),1e-5>b)return ot=st+rt*Math.min(b,ot),rt=a+x*Math.cos(st),st=y+x*Math.sin(st),a+=x*Math.cos(ot),y+=x*Math.sin(ot),x=(rt+a)/2,ot=(st+y)/2,z.push([rt,st,x,ot,x,ot,a,y]),z;for(;1e-5<b;)E=st+rt*Math.min(b,ot),z.push(me.Vy(x,st,E,a,y)),b-=Math.abs(E-st),st=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,tt=a*Math.cos(z),rt=a*Math.sin(z),ot=-rt,st=tt*tt+ot*ot,ut=st+tt*tt+ot*rt;return st=4/3*(Math.sqrt(2*st*ut)-ut)/(tt*rt-ot*tt),rt=tt-st*ot,tt=ot+st*tt,ot=-tt,st=z+y,z=Math.cos(st),st=Math.sin(st),[b+a*Math.cos(y),E+a*Math.sin(y),b+rt*z-tt*st,E+rt*st+tt*z,b+rt*z-ot*st,E+rt*st+ot*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,tt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var rt=x;return x+E-a<E/2&&(rt=x+E),a=b,b+z-y<z/2&&(a=b+z),tt.h(rt,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var tt=1,rt=0;else tt=0,rt=1;var ot=tt===0?a:y,st=tt===0?x:b;return(tt===0?E:z)&&(st=-st),tt=rt,x=tt===0?x:b,(tt===0?E:z)&&(x=-x),me.az(ot,tt===0?a:y,st,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var tt=y*b,rt=-z+tt,ot=-z+Math.sqrt(a*a+tt*tt);y=rt;for(var st=0;9999999999>st&&(y=.5*(rt+ot),!(y===rt||y===ot));++st){var ut=a/(y+E),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)rt=y;else if(0>ut)ot=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new nr,um:new nr,Mf:new nr,Nf:0,vm:100};me.za=me.AA;function kn(a){_i(this),this.l=2,a===void 0&&(a=kn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===kn.o?this.ee=new pn:(kn.V===null&&(kn.V=new pn().freeze()),this.ee=kn.V),this.aq=this.ee.Ja,this.Ip=new de().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=hr,this.gg=Tr,this.Rk=this.Sk=NaN,this.Uf=Fn}kn.prototype.copy=function(){var a=new kn;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===kn.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].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},kn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},kn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==kn.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},kn.prototype.ka=function(){if(Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==kn.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},kn.prototype.Xa=function(a){if(!(a instanceof kn))return!1;if(this.type!==a.type)return this.type===kn.j&&a.type===kn.o?Ja(this,a):a.type===kn.j&&this.type===kn.o?Ja(a,this):!1;if(this.type===kn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return me.B(this.startX,a.startX)&&me.B(this.startY,a.startY)&&me.B(this.endX,a.endX)&&me.B(this.endY,a.endY)};function Ja(a,y){return a.type!==kn.j||y.type!==kn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&me.B(a.startX,y.startX)&&me.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===mo&&me.B(a.endX,y.endX)&&me.B(a.endY,y.endY))))}kn.ia=function(a){return a.toString()},kn.prototype.qb=function(a){a.classType===kn&&(this.type=a)},kn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case kn.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 kn.u:var y=new de(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 kn.F:if(y=new de(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 kn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},kn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},kn.parse=function(a,y){function x(){return Ft>=te-1?!0:st[Ft+1].match(ye)!==null}function b(){return Ft++,st[Ft]}function E(Lr){var Sr=parseFloat(b()),lo=parseFloat(b());Xt===Xt.toLowerCase()&&(Sr=_t.x+Sr,lo=_t.y+lo),Lr.h(Sr,lo)}function z(){return E(_t),_t}function tt(){return E(Qt),Qt}function rt(){var Lr=Zt.toLowerCase();return Lr!=="c"&&Lr!=="s"&&Lr!=="q"&&Lr!=="t"?_t:new Bt(2*_t.x-Qt.x,2*_t.y-Qt.y)}y===void 0&&(y=!1);var ot=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ot,"$1 $2"),a=a.replace(ot,"$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 st=a.split(" ");for(a=0;a<st.length;a++){var ut=st[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){ot=Di();for(var ft="",vt=!1,xt=0;xt<ut.length;xt++){var Lt=ut[xt];Lt!=="."||vt?Lt==="."?(ot.push(ft),ft="."):ft+=Lt:(vt=!0,ft+=Lt)}for(ot.push(ft),st.splice(a,1),ut=0;ut<ot.length;ut++)st.splice(a+ut,0,ot[ut]);a+=ot.length-1,$n(ot)}}var Ft=-1,Xt="",Zt="";ot=new Bt(0,0);var Qt=new Bt(0,0),_t=new Bt(0,0),te=st.length;a=F1(null),vt=ft=ut=!1,xt=!0,Lt=null;for(var ye=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ft>=te-1);)if(Zt=Xt,Xt=b(),Xt!=="")switch(Xt.toUpperCase()){case"X":xt=!0,ft=ut=!1;break;case"M":for(Lt=z(),a.mc===null||xt===!0?(Rf(a,Lt.x,Lt.y,ut,!ft,vt),xt=!1):a.moveTo(Lt.x,Lt.y),ot.assign(_t);!x();)Lt=z(),a.lineTo(Lt.x,Lt.y);break;case"L":for(;!x();)Lt=z(),a.lineTo(Lt.x,Lt.y);break;case"H":for(;!x();)_t=new Bt((Xt===Xt.toLowerCase()?_t.x:0)+parseFloat(b()),_t.y),a.lineTo(_t.x,_t.y);break;case"V":for(;!x();)_t=new Bt(_t.x,(Xt===Xt.toLowerCase()?_t.y:0)+parseFloat(b())),a.lineTo(_t.x,_t.y);break;case"C":for(;!x();){Lt=new Bt,E(Lt);var ze=tt(),ri=z();kh(a,Lt.x,Lt.y,ze.x,ze.y,ri.x,ri.y)}break;case"S":for(;!x();)Lt=rt(),ze=tt(),ri=z(),kh(a,Lt.x,Lt.y,ze.x,ze.y,ri.x,ri.y);break;case"Q":for(;!x();)Lt=tt(),ze=z(),jm(a,Lt.x,Lt.y,ze.x,ze.y);break;case"T":for(;!x();)Qt=Lt=rt(),ze=z(),jm(a,Lt.x,Lt.y,ze.x,ze.y);break;case"B":for(;!x();){Lt=parseFloat(b()),ze=parseFloat(b()),ri=parseFloat(b());var Ti=parseFloat(b()),Ci=parseFloat(b()),jn=Ci,xn=!1;x()||(jn=parseFloat(b()),x()||(xn=parseFloat(b())!==0)),Xt===Xt.toLowerCase()&&(ri+=_t.x,Ti+=_t.y),a.arcTo(Lt,ze,ri,Ti,Ci,jn,xn)}break;case"A":for(;!x();)Lt=Math.abs(parseFloat(b())),ze=Math.abs(parseFloat(b())),ri=parseFloat(b()),Ci=Ti=!1,xn=jn=0,jn=b(),jn.length===1?(Ti=!!parseFloat(jn),Ci=!!parseFloat(b()),jn=parseFloat(b())):jn.length===2?(Ti=!!parseFloat(jn[0]),Ci=!!parseFloat(jn[1]),jn=parseFloat(b())):(Ti=!!parseFloat(jn[0]),Ci=!!parseFloat(jn[1]),jn=parseFloat(jn.slice(2))),xn=parseFloat(b()),Xt===Xt.toLowerCase()&&(jn=_t.x+jn,xn=_t.y+xn),_t.h(jn,xn),wx(a,Lt,ze,ri,Ti,Ci,jn,xn);break;case"Z":Px(a),_t.assign(ot);break;case"F":for(Lt="",ze=1;st[Ft+ze];)if(st[Ft+ze]==="0")vt=!0,ze++;else if(st[Ft+ze].match(/[Uu]/)!==null)ze++;else if(st[Ft+ze].match(ye)===null)ze++;else{Lt=st[Ft+ze];break}Lt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Lt="",ze=1;st[Ft+ze];)if(st[Ft+ze].match(/[Ff]/)!==null)ze++;else if(st[Ft+ze].match(ye)===null)ze++;else{Lt=st[Ft+ze];break}Lt.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(ot=a.os,Hm=a,y)for(y=ot.figures.iterator;y.next();)y.value.isFilled=!0;return ot},kn.Ha=function(a,y){for(var x=a.length,b=Bt.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}Bt.free(b)},kn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===kn.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},kn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===kn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var tt=b[z];tt._isInvalidBounds=!1,tt.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),Qa(this,a,!1),oi(a,0,0,0,0),a.freeze()},kn.prototype.ix=function(){var a=new de;return Qa(this,a,!0),a};function Qa(a,y,x){switch(a.type){case kn.j:case kn.u:case kn.F:x?y.h(a.od,a.pd,0,0):oi(y,a.od,a.pd,0,0),oi(y,a.Dc,a.Ec,0,0);break;case kn.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):oi(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,rt=tt.length,ot=z.startX,st=z.startY,ut=0;ut<rt;ut++){var ft=tt[ut];switch(ft.type){case mo:case sa:ot=ft.endX,st=ft.endY,oi(y,ot,st,0,0);break;case fa:me.Dl(ot,st,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),ot=ft.endX,st=ft.endY;break;case ls:me.iv(ot,st,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),ot=ft.endX,st=ft.endY;break;case ra:case us:var vt=ft.type===ra?Ha(ft,z):qa(ft,z,ot,st),xt=vt.length;if(xt===0){ot=ft.type===ra?ft.centerX:ft.endX,st=ft.type===ra?ft.centerY:ft.endY,oi(y,ot,st,0,0);break}ft=null;for(var Lt=0;Lt<xt;Lt++)ft=vt[Lt],me.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(ot=ft[6],st=ft[7]);break;default:qt("Unknown Segment type: "+ft.type)}}}break;default:qt("Unknown Geometry type: "+a.type)}}kn.prototype.normalize=function(){this._isFrozen&&un(this);var a=this.ix();return this.offset(-a.x,-a.y),new Bt(-a.x,-a.y)},kn.prototype.offset=function(a,y){return this._isFrozen&&un(this),this.transform(1,0,0,1,a,y),this},kn.prototype.scale=function(a,y){return this._isFrozen&&un(this),this.transform(a,0,0,y,0,0),this},kn.prototype.rotate=function(a,y,x){this._isFrozen&&un(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=vi.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),vi.free(b),this},Pt=kn.prototype,Pt.transform=function(a,y,x,b,E,z){switch(this.type){case kn.j:case kn.u:case kn.F:var tt=this.od,rt=this.pd;this.od=tt*a+rt*x+E,this.pd=tt*y+rt*b+z,tt=this.Dc,rt=this.Ec,this.Dc=tt*a+rt*x+E,this.Ec=tt*y+rt*b+z;break;case kn.o:for(var ot=this.figures.s,st=ot.length,ut=0;ut<st;ut++){var ft=ot[ut];tt=ft.startX,rt=ft.startY,ft.startX=tt*a+rt*x+E,ft.startY=tt*y+rt*b+z,ft=ft.segments.s;for(var vt=ft.length,xt=0;xt<vt;xt++){var Lt=ft[xt];switch(Lt.type){case mo:case sa:tt=Lt.endX,rt=Lt.endY,Lt.endX=tt*a+rt*x+E,Lt.endY=tt*y+rt*b+z;break;case fa:tt=Lt.point1X,rt=Lt.point1Y,Lt.point1X=tt*a+rt*x+E,Lt.point1Y=tt*y+rt*b+z,tt=Lt.point2X,rt=Lt.point2Y,Lt.point2X=tt*a+rt*x+E,Lt.point2Y=tt*y+rt*b+z,tt=Lt.endX,rt=Lt.endY,Lt.endX=tt*a+rt*x+E,Lt.endY=tt*y+rt*b+z;break;case ls:tt=Lt.point1X,rt=Lt.point1Y,Lt.point1X=tt*a+rt*x+E,Lt.point1Y=tt*y+rt*b+z,tt=Lt.endX,rt=Lt.endY,Lt.endX=tt*a+rt*x+E,Lt.endY=tt*y+rt*b+z;break;case ra:tt=Lt.centerX,rt=Lt.centerY,Lt.centerX=tt*a+rt*x+E,Lt.centerY=tt*y+rt*b+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Lt.startAngle+=tt),0>a&&(Lt.startAngle=180-Lt.startAngle,Lt.sweepAngle=-Lt.sweepAngle),0>b&&(Lt.startAngle=-Lt.startAngle,Lt.sweepAngle=-Lt.sweepAngle),Lt.radiusX*=Math.sqrt(a*a+x*x),Lt.radiusY!==void 0&&(Lt.radiusY*=Math.sqrt(y*y+b*b));break;case us:if(tt=Lt.endX,rt=Lt.endY,Lt.endX=tt*a+rt*x+E,Lt.endY=tt*y+rt*b+z,Lt.radiusX===0||Lt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Lt.xAxisRotation+=tt),0>a&&(Lt.xAxisRotation=180-Lt.xAxisRotation,Lt.isClockwiseArc=!Lt.isClockwiseArc),0>b&&(Lt.xAxisRotation=-Lt.xAxisRotation,Lt.isClockwiseArc=!Lt.isClockwiseArc),Lt.radiusX*=Math.sqrt(a*a+x*x),Lt.radiusY*=Math.sqrt(y*y+b*b);break;default:qt("Unknown Segment type: "+Lt.type)}}}}return this._isInvalidBounds=!0,this},Pt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case kn.j:return me.Yb(x,b,E,z,y,a.x,a.y);case kn.u:var tt=de.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=tt.ca(a),de.free(tt),a;case kn.F:tt=Math.min(x,E)-y;var rt=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case kn.o:return pa(this,a,y,!0,!1);default:return!1}};function pa(a,y,x,b,E){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,ot,st,ut,ft,vt=a.figures.s,xt=vt.length,Lt=0;Lt<xt;Lt++){var Ft=vt[Lt],Xt=!Ft.isEvenOdd;if(Ft.isFilled){if(b&&Ft.ca(z,y,x))return!0;var Zt=Ft.segments;ot=Ft.startX,st=Ft.startY;for(var Qt=ot,_t=st,te=Zt.s,ye=0;ye<=Zt.length;ye++){var ze=void 0;if(ye!==Zt.length){ze=te[ye];var ri=ze.type;a=ze.endX,ft=ze.endY}else ri=mo,a=Qt,ft=_t;switch(ri){case sa:if(Qt=Na(z,y,tt,y,ot,st,Qt,_t),isNaN(Qt))return!0;rt+=Qt,Qt=a,_t=ft;break;case mo:if(ot=Na(z,y,tt,y,ot,st,a,ft),isNaN(ot))return!0;rt+=ot;break;case fa:ut=me.Fo(ot,st,ze.point1X,ze.point1Y,ze.point2X,ze.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case ls:ut=me.Fo(ot,st,(ot+2*ze.point1X)/3,(st+2*ze.point1Y)/3,(2*ze.point1X+a)/3,(2*ze.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case ra:case us:ri=ze.type===ra?Ha(ze,Ft):qa(ze,Ft,ot,st);var Ti=ri.length;if(Ti===0){if(ot=Na(z,y,tt,y,ot,st,ze.type===ra?ze.centerX:ze.endX,ze.type===ra?ze.centerY:ze.endY),isNaN(ot))return!0;rt+=ot;break}ze=null;for(var Ci=0;Ci<Ti;Ci++){if(ze=ri[Ci],Ci===0){if(ut=Na(z,y,tt,y,ot,st,ze[0],ze[1]),isNaN(ut))return!0;rt+=ut}ut=me.Fo(ze[0],ze[1],ze[2],ze[3],ze[4],ze[5],ze[6],ze[7],tt,y,z,y,.5),rt+=ut}ze!==null&&(a=ze[6],ft=ze[7]);break;default:qt("Unknown Segment type: "+ze.type)}ot=a,st=ft}if(Xt){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(Ft.ca(z,y,E?x:x+2))return!0}return!1}function Na(a,y,x,b,E,z,tt,rt){if(me.Yb(E,z,tt,rt,.05,a,y))return NaN;var ot=(a-x)*(z-rt);if(ot===0)return 0;var st=((a*b-y*x)*(E-tt)-(a-x)*(E*rt-z*tt))/ot;if(y=(a*b-y*x)*(z-rt)/ot,st>=a)return 0;if((E>tt?E-tt:tt-E)<(z>rt?z-rt:rt-z)){if(z<rt){if(y<z||y>rt)return 0}else if(y<rt||y>z)return 0}else if(E<tt){if(st<E||st>tt)return 0}else if(st<tt||st>E)return 0;return 0<ot?1:-1}function ss(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Pt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Bt),this.type===kn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var ot=b[rt],st=ot.length;for(a=0;a<st;a++){var ut=ot[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,x=x[rt],rt=x[2*a],E=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*b,E+(x[2*a+3]-E)*b),y;tt+=ut}}return y},Pt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===kn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,tt=0;tt<b;tt++){var rt=x[tt],ot=rt.length;for(a=0;a<ot;a++){var st=rt[a];if(z+st>=E)return E=y[tt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=st}}return NaN},Pt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===kn.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,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var ot=b[rt],st=ot.length;for(a=0;a<st;a++){var ut=ot[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],E=ut[2*a+2],a=ut[2*a+3],y[0]=x+(E-x)*b,y[1]=rt+(a-rt)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-rt)?0:1>Math.abs(E-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=E-x?0:180:180*Math.atan2(a-rt,E-x)/Math.PI,y;tt+=ut}}return y},Pt.xx=function(a){if(this.type===kn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var tt=x;b=E}else tt=E,b=x;return a<=tt?tt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-tt)}if(x===E)return y<b?tt=y:(tt=b,b=y),z<=tt?tt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-tt);tt=(b-y)*(b-y)+(E-x)*(E-x);var rt=Bt.alloc();return me.qh(y,x,b,E,z,a,rt),a=rt.x,z=rt.y,Bt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===kn.u){tt=this.startX,rt=this.startY;var ot=this.endX;if(E=this.endY,tt!==ot||rt!==E){y=ot-tt,x=E-rt,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,tt),ot),a=Math.min(Math.max(a,rt),E),tt=Math.abs(b-tt),ot=Math.abs(b-ot),rt=Math.abs(a-rt),E=Math.abs(a-E);var st=Math.min(tt,ot,rt,E);if(st===rt)return b/z;if(st===ot)return(y+a)/z;if(st===E)return(2*y+x-b)/z;if(st===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Bt.alloc(),E=1/0,rt=tt=0,ot=y.length;for(var ut=st=0,ft=0;ft<ot;ft++)for(var vt=y[ft],xt=x[ft],Lt=vt.length,Ft=0;Ft<Lt;Ft+=2){var Xt=vt[Ft],Zt=vt[Ft+1];if(Ft!==0){me.qh(st,ut,Xt,Zt,a.x,a.y,b);var Qt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Qt<E&&(E=Qt,tt=rt,tt+=Math.sqrt((b.x-st)*(b.x-st)+(b.y-ut)*(b.y-ut))),rt+=xt[(Ft-2)/2]}st=Xt,ut=Zt}return Bt.free(b),a=tt/z,0>a?0:1<a?1:a}return 0};function ts(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===kn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===kn.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===kn.F){var z=new aa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new Vr(ra);if(tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(a.startX+a.endX)/2,tt.centerY=(a.startY+a.endY)/2,tt.radiusX=Math.abs(a.startX-a.endX)/2,tt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(tt),a=Ha(tt,z),E=a.length,E===0)b.push(tt.centerX),b.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var rt=0;rt<E;rt++){var ot=a[rt];me.Qe(tt,z,ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],.5,b),tt=ot[6],z=ot[7]}}y.push(b),x.push(Hs(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),tt=E.startX,z=E.startY,rt=tt,ot=z;for(var st=E.segments.s,ut=st.length,ft=0;ft<ut;ft++){var vt=st[ft];switch(vt.type){case sa:4<=b.length&&(y.push(b),x.push(Hs(b))),b=[],b.push(vt.endX),b.push(vt.endY),tt=vt.endX,z=vt.endY,rt=tt,ot=z;break;case mo:b.push(vt.endX),b.push(vt.endY),tt=vt.endX,z=vt.endY;break;case fa:me.Qe(tt,z,vt.point1X,vt.point1Y,vt.point2X,vt.point2Y,vt.endX,vt.endY,.5,b),tt=vt.endX,z=vt.endY;break;case ls:me.ep(tt,z,vt.point1X,vt.point1Y,vt.endX,vt.endY,.5,b),tt=vt.endX,z=vt.endY;break;case ra:var xt=Ha(vt,E),Lt=xt.length;if(Lt===0){b.push(vt.centerX),b.push(vt.centerY),tt=vt.centerX,z=vt.centerY;break}for(var Ft=0;Ft<Lt;Ft++){var Xt=xt[Ft];me.Qe(tt,z,Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],.5,b),tt=Xt[6],z=Xt[7]}break;case us:if(xt=qa(vt,E,tt,z),Lt=xt.length,Ft=vt.endX,Xt=vt.endY,Lt===0){b.push(Ft),b.push(Xt),tt=Ft,z=Xt;break}for(Ft=0;Ft<Lt;Ft++)Xt=xt[Ft],me.Qe(tt,z,Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],.5,b),tt=Xt[6],z=Xt[7];break;default:qt("Segment not of valid type: "+vt.type)}vt.isClosed&&(b.push(rt),b.push(ot))}4<=b.length&&(y.push(b),x.push(Hs(b)))}}}function Hs(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var tt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(ar(x,b,tt,rt))),x=tt,b=rt}return y}Pt.add=function(a){return this.ee.add(a),this},Pt.pm=function(a,y,x,b,E,z,tt,rt){return this._isFrozen&&un(this),this.fg=new dn(a,y,E,z).freeze(),this.gg=new dn(x,b,tt,rt).freeze(),this},be.Object.defineProperties(kn.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 ts(this),this.tk}},flattenedLengths:{get:function(){return ts(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===kn.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===kn.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,b=a=0;b<x;b++)for(var E=y[b],z=E.length,tt=0;tt<z;tt++)a+=E[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&un(this,a),this.na=a,a===kn.o?this.ee=new pn:(kn.V===null&&(kn.V=new pn().freeze()),this.ee=kn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&un(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&un(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&un(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&un(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&un(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&un(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&un(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&un(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),kn.prototype.setSpots=kn.prototype.pm,kn.prototype.add=kn.prototype.add,kn.prototype.getFractionForPoint=kn.prototype.xx,kn.prototype.getPointAndAngleAlongPath=kn.prototype.Qu,kn.prototype.getAngleAlongPath=kn.prototype.wx,kn.prototype.getPointAlongPath=kn.prototype.Pu,kn.prototype.containsPoint=kn.prototype.ca,kn.prototype.transform=kn.prototype.transform,kn.prototype.rotate=kn.prototype.rotate,kn.prototype.scale=kn.prototype.scale,kn.prototype.offset=kn.prototype.offset,kn.prototype.normalize=kn.prototype.normalize,kn.prototype.computeBoundsWithoutOrigin=kn.prototype.ix,kn.prototype.equalsApprox=kn.prototype.Xa,kn.className="Geometry",kn.j=new rn(kn,"Line",0),kn.u=new rn(kn,"Rectangle",1),kn.F=new rn(kn,"Ellipse",2),kn.o=new rn(kn,"Path",3),kn.V=null,kn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",kn.className="Geometry",kn.stringify=kn.ia,kn.fillPath=kn.nb,kn.parse=kn.parse,kn.Line=kn.j,kn.Rectangle=kn.u,kn.Ellipse=kn.F,kn.Path=kn.o;function aa(a,y,x,b,E){_i(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new pn,this.sr=this.pl.Ja,this.fw=null}aa.prototype.copy=function(){var a=new aa;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Pt=aa.prototype,Pt.Xa=function(a){if(!(a instanceof aa&&me.B(this.startX,a.startX)&&me.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 b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},Pt.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,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},Pt.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},Pt.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},Pt.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},Pt.add=function(a){return this.pl.add(a),this},Pt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,tt=E,rt=this.segments.s,ot=rt.length,st=0;st<ot;st++){var ut=rt[st];switch(ut.type){case sa:z=ut.endX,tt=ut.endY,b=ut.endX,E=ut.endY;break;case mo:if(me.Yb(b,E,ut.endX,ut.endY,x,a,y))return!0;b=ut.endX,E=ut.endY;break;case fa:if(me.cs(b,E,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case ls:if(me.jv(b,E,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case ra:case us:var ft=ut.type===ra?Ha(ut,this):qa(ut,this,b,E),vt=ft.length,xt=ut.type===ra?ut.centerX:ut.endX,Lt=ut.type===ra?ut.centerY:ut.endY;if(vt===0){if(me.Yb(b,E,xt,Lt,x,a,y))return!0;b=xt,E=Lt;break}for(xt=null,Lt=0;Lt<vt;Lt++)if(xt=ft[Lt],Lt===0&&me.Yb(b,E,xt[0],xt[1],x,a,y)||me.cs(xt[0],xt[1],xt[2],xt[3],xt[4],xt[5],xt[6],xt[7],.5,a,y,x))return!0;xt!==null&&(b=xt[6],E=xt[7]);break;default:qt("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(b!==z||E!==tt)&&me.Yb(b,E,z,tt,x,a,y))return!0}return!1},be.Object.defineProperties(aa.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&&un(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&un(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&un(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&un(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&un(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&un(this,a),this.pl=a,this._isInvalidBounds=!0}}}),aa.prototype.add=aa.prototype.add,aa.prototype.equalsApprox=aa.prototype.Xa,aa.className="PathFigure";function Vr(a,y,x,b,E,z,tt,rt){_i(this),a===void 0&&(a=mo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===us?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===ra&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===ra&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Vr.prototype.copy=function(){var a=new Vr;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},Pt=Vr.prototype,Pt.Xa=function(a){if(!(a instanceof Vr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case sa:case mo:return me.B(this.endX,a.endX)&&me.B(this.endY,a.endY);case fa:return me.B(this.endX,a.endX)&&me.B(this.endY,a.endY)&&me.B(this.point1X,a.point1X)&&me.B(this.point1Y,a.point1Y)&&me.B(this.point2X,a.point2X)&&me.B(this.point2Y,a.point2Y);case ls:return me.B(this.endX,a.endX)&&me.B(this.endY,a.endY)&&me.B(this.point1X,a.point1X)&&me.B(this.point1Y,a.point1Y);case ra:return me.B(this.startAngle,a.startAngle)&&me.B(this.sweepAngle,a.sweepAngle)&&me.B(this.centerX,a.centerX)&&me.B(this.centerY,a.centerY)&&me.B(this.radiusX,a.radiusX)&&me.B(this.radiusY,a.radiusY);case us:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&me.B(this.xAxisRotation,a.xAxisRotation)&&me.B(this.endX,a.endX)&&me.B(this.endY,a.endY)&&me.B(this.radiusX,a.radiusX)&&me.B(this.radiusY,a.radiusY);default:return!1}},Pt.qb=function(a){a.classType===Vr&&(this.type=a)},Pt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case sa:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case mo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case fa: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 ls: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 ra: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 us: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":"")},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return this._isFrozen=!1,this},Pt.close=function(){return this.isClosed=!0,this};function Ha(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=me.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var tt=vi.alloc();tt.reset(),x<b?tt.scale(1,b/x):tt.scale(x/b,1),kn.Ha(z,tt),vi.free(tt)}for(x=z.length,b=0;b<x;b++)tt=z[b],tt[0]+=y,tt[1]+=E,tt[2]+=y,tt[3]+=E,tt[4]+=y,tt[5]+=E,tt[6]+=y,tt[7]+=E;return a.ae=z,a.ae}function qa(a,y,x,b){function E(Ft,Xt,Zt,Qt){return(Ft*Qt<Xt*Zt?-1:1)*Math.acos((Ft*Zt+Xt*Qt)/(Math.sqrt(Ft*Ft+Xt*Xt)*Math.sqrt(Zt*Zt+Qt*Qt)))}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 tt=Math.PI/180*a.Ne,rt=a.isLargeArc,ot=a.isClockwiseArc,st=a.Dc,ut=a.Ec,ft=Math.cos(tt),vt=Math.sin(tt),xt=ft*(x-st)/2+vt*(b-ut)/2;tt=-vt*(x-st)/2+ft*(b-ut)/2;var Lt=xt*xt/(y*y)+tt*tt/(z*z);return 1<Lt&&(y*=Math.sqrt(Lt),z*=Math.sqrt(Lt)),Lt=(rt===ot?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*xt*xt)/(y*y*tt*tt+z*z*xt*xt)),isNaN(Lt)&&(Lt=0),rt=Lt*y*tt/z,Lt=Lt*-z*xt/y,isNaN(rt)&&(rt=0),isNaN(Lt)&&(Lt=0),x=(x+st)/2+ft*rt-vt*Lt,b=(b+ut)/2+vt*rt+ft*Lt,ut=E(1,0,(xt-rt)/y,(tt-Lt)/z),ft=(xt-rt)/y,st=(tt-Lt)/z,xt=(-xt-rt)/y,rt=(-tt-Lt)/z,tt=E(ft,st,xt,rt),xt=(ft*xt+st*rt)/(Math.sqrt(ft*ft+st*st)*Math.sqrt(xt*xt+rt*rt)),-1>=xt?tt=Math.PI:1<=xt&&(tt=0),!ot&&0<tt&&(tt-=2*Math.PI),ot&&0>tt&&(tt+=2*Math.PI),ot=y>z?1:y/z,xt=y>z?z/y:1,y=me.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=vi.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(ot,xt),kn.Ha(y,z),vi.free(z),a.ae=y,a.ae}be.Object.defineProperties(Vr.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&&un(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&un(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&un(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&un(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&un(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&un(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&un(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&un(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&un(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Rn(a,">= zero",Vr,"radiusX"),this._isFrozen&&un(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Rn(a,">= zero",Vr,"radiusY"),this._isFrozen&&un(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&un(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&&un(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&&un(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&&un(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&&un(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Vr.prototype.equalsApprox=Vr.prototype.Xa;var sa=new rn(Vr,"Move",0),mo=new rn(Vr,"Line",1),fa=new rn(Vr,"Bezier",2),ls=new rn(Vr,"QuadraticBezier",3),ra=new rn(Vr,"Arc",4),us=new rn(Vr,"SvgArc",4);Vr.className="PathSegment",Vr.Move=sa,Vr.Line=mo,Vr.Bezier=fa,Vr.QuadraticBezier=ls,Vr.Arc=ra,Vr.SvgArc=us;function Ta(){this.H=null,this.xu=new Bt(0,0).freeze(),this.mt=new Bt(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}Ta.prototype.copy=function(){var a=new Ta;return this.clone(a)},Ta.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},Ta.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},Ta.prototype.So=function(a,y){var x=this.diagram;return x===null||bg(x,a,y),y},Ta.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(bg(x,a,y),y.assign(x.Ps(y))),y},be.Object.defineProperties(Ta.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}}}),Ta.prototype.getMultiTouchDocumentPoint=Ta.prototype.Bz,Ta.prototype.getMultiTouchViewPoint=Ta.prototype.So,Ta.className="InputEvent";function El(){this.H=null,this.xa="",this.ar=this.Lr=null}El.prototype.copy=function(){var a=new El;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},El.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},be.Object.defineProperties(El.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}}}),El.className="DiagramEvent";function zo(){this.Fm=To,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}zo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},zo.prototype.copy=function(){var a=new zo;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=ln(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=ln(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=ln(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=ln(y)&&typeof y.J=="function"?y.J():y,a},zo.prototype.qb=function(a){a.classType===zo&&(this.change=a)},zo.prototype.toString=function(){var a="";return a=this.change===La?a+"* ":this.change===To?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===La?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=dr(this.object)),this.oldValue!==null&&(a+=" old: "+dr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+dr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},zo.prototype.I=function(a){return a?this.oldValue:this.newValue},zo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},zo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},zo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},zo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},zo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},be.Object.defineProperties(zo.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===La&&(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}}}),zo.prototype.redo=zo.prototype.redo,zo.prototype.canRedo=zo.prototype.canRedo,zo.prototype.undo=zo.prototype.undo,zo.prototype.canUndo=zo.prototype.canUndo,zo.prototype.getParam=zo.prototype.Dz,zo.prototype.getValue=zo.prototype.I,zo.prototype.clear=zo.prototype.clear;var La=new rn(zo,"Transaction",-1),To=new rn(zo,"Property",0),Uo=new rn(zo,"Insert",1),ua=new rn(zo,"Remove",2);zo.className="ChangedEvent",zo.Transaction=La,zo.Property=To,zo.Insert=Uo,zo.Remove=ua;function ga(){this.o=new pn().freeze(),this.xa="",this.j=!1}ga.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 b=this.changes.M(x);b!==null&&(y+=`
|
|
`+b.toString())}}return y},ga.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()},ga.prototype.canUndo=function(){return this.isComplete},ga.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()}},ga.prototype.canRedo=function(){return this.isComplete},ga.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()}},ga.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ge,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===To&&b.object){var E=y.get(b.object);E||(E=new Ge,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},be.Object.defineProperties(ga.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}}}),ga.prototype.optimize=ga.prototype.ak,ga.prototype.redo=ga.prototype.redo,ga.prototype.canRedo=ga.prototype.canRedo,ga.prototype.undo=ga.prototype.undo,ga.prototype.canUndo=ga.prototype.canUndo,ga.prototype.clear=ga.prototype.clear,ga.className="Transaction";function Ko(){this.Pt=new Ln,this.Jd=!1,this.u=new pn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new pn().freeze(),this.hl=new pn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ko.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
`+this.history.M(b).toString(a-1);return y},Ko.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},Ko.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Pt=Ko.prototype,Pt.Xw=function(a){this.Pt.add(a)},Pt.Rx=function(a){this.Pt.remove(a)},Pt.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},Pt.eb=function(a){return a===void 0&&(a=""),fl(this,!0,a)},Pt.Kf=function(){return fl(this,!1,"")};function fl(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Ai("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Pt.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()}},Ko.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Ko.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){Ai("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Ko.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Ko.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){Ai("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Ko.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new zo;for(b.change=La,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Ko.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new ga);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||Ai("Change not within a transaction: "+x.toString()))}},Ko.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},be.Object.defineProperties(Ko.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}}}),Ko.prototype.handleChanged=Ko.prototype.Tu,Ko.prototype.redo=Ko.prototype.redo,Ko.prototype.undo=Ko.prototype.undo,Ko.prototype.canUndo=Ko.prototype.canUndo,Ko.prototype.discardHistoryAfterIndex=Ko.prototype.lx,Ko.prototype.rollbackTransaction=Ko.prototype.Kf,Ko.prototype.commitTransaction=Ko.prototype.eb,Ko.prototype.startTransaction=Ko.prototype.Ea,Ko.prototype.removeModel=Ko.prototype.Rx,Ko.prototype.addModel=Ko.prototype.Xw,Ko.prototype.clear=Ko.prototype.clear,Ko.className="UndoManager";function Qr(){_i(this),this.H=Tu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Ta,this.Zr=-1}Qr.prototype.toString=function(){return this.name!==""?this.name+" Tool":wi(this.constructor)},Qr.prototype.updateAdornments=function(){},Qr.prototype.canStart=function(){return this.isEnabled},Qr.prototype.doStart=function(){},Qr.prototype.doActivate=function(){this.isActive=!0},Qr.prototype.doDeactivate=function(){this.isActive=!1},Qr.prototype.doStop=function(){},Qr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Qr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Qr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Qr.prototype.doMouseMove=function(){},Qr.prototype.doMouseUp=function(){this.stopTool()},Qr.prototype.doMouseWheel=function(){},Qr.prototype.canStartMultiTouch=function(){return!0},Qr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Bt.allocAt(NaN,NaN)),b=y.So(1,Bt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}Bt.free(x),Bt.free(b)},Qr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Bt.allocAt(NaN,NaN)),b=y.So(1,Bt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new Bt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=E,tt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}Bt.free(x),Bt.free(b)},Qr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Qr.prototype.doKeyUp=function(){},Qr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Qr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Qr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(kr?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||(kr?y.meta:y.control)||y.shift||a.clearSelection()}},Qr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,pu(a,b,x),b.handled};function pu(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){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,b){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)}}}Qr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(b===z||b!==null&&b.rg(z)||(rt(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;b!==null&&(tt=b.mouseEnter,!(tt!==null&&(z===b||z!==null&&z.rg(b)||(tt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},Qr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Qr.prototype.doCurrentObjectChanged=function(){},Qr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===Fl&&!y.shift||E===Qs&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===Fl&&y.shift||E===Qs&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var rt="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(rt,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(rt,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:rt="pixel";break;case 1:rt="line";break;case 2:rt="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(rt,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(rt,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Qr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Qr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=De(function(){x.doWaitAfter(b)},a)},Qr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&gn.clearTimeout(this.Zr),this.Zr=-1},Qr.prototype.doWaitAfter=function(){},Qr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof oo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Qr.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},be.Object.defineProperties(Qr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof je&&(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}}}),Qr.prototype.startTransaction=Qr.prototype.Ea,Qr.className="Tool";function Co(){Qr.call(this),this.name="ToolManager",this.hb=new pn,this.ob=new pn,this.Hb=new pn,this.F=this.V=850,this.o=new Ut(2,2).ja(),this.Ha=5e3,this.ia=Qs,this.u=vu,this.Mp=this.j=null,this.zj=-1}Me(Co,Qr),Co.prototype.initializeStandardTools=function(){},Co.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof oo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Co.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Zs&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Vl){y.bubbles=!0;return}if(this.gestureBehavior===Zs)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Qs?this.mouseWheelBehavior=Fl:this.mouseWheelBehavior===Fl&&(this.mouseWheelBehavior=Qs)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Co.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Vl){y.bubbles=!0;return}if(this.gestureBehavior===Zs)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Gl(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Gl(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Co.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof oo&&(y===a||y.rg(a))||this.hideToolTip()},Co.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()))},Co.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)},Co.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 oo)||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()},Co.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof oo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Su&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(gn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=De(function(){E.hideToolTip()},a)}},Co.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},Co.prototype.hideToolTip=function(){this.zj!==-1&&(gn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof oo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Su&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Co.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Co.prototype.doMouseWheel=function(){this.standardMouseWheel()},Co.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Co.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Co.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},Co.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},Co.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)},be.Object.defineProperties(Co.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 oo?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}}}),Co.prototype.replaceStandardTool=Co.prototype.gb;var Qs=new rn(Co,"WheelScroll",0),Fl=new rn(Co,"WheelZoom",1),mu=new rn(Co,"WheelNone",2),vu=new rn(Co,"GestureZoom",3),Zs=new rn(Co,"GestureCancel",4),Vl=new rn(Co,"GestureNone",5);Co.className="ToolManager",Co.WheelScroll=Qs,Co.WheelZoom=Fl,Co.WheelNone=mu,Co.GestureZoom=vu,Co.GestureCancel=Zs,Co.GestureNone=Vl;function Wo(){Qr.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 Bt(NaN,NaN),this.Fr=new Bt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ln().freeze(),this.ia=new at,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ws;Me(Wo,Qr),Wo.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},Wo.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},Wo.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,(kr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Wo.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),Ra=null,this.isActive=!0,this.tl.set(a.position),yu(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&&Ds(a),mf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ra=this,Ju=this.diagram,this.doSimulatedDragOut()))};function yu(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Zn?(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 ol,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Wo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Wo.prototype.Pd=function(a){return a===void 0?new th(ti):this.isGridSnapEnabled?new th(new Bt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new th(a.copy())},Wo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),gl(this),id(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ws.count){for(var y=Ws,x=y.length,b=0;b<x;b++){var E=y.M(b);Ho(E),Eo(E),gl(E),E.diagram.ug()}y.clear()}Ho(this),this.tl.h(NaN,NaN),Ju!==null&&(Ju.currentCursor=""),Ra=Ju=null,Eo(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),wc(a,!0)},Wo.prototype.stopTransaction=function(){var a=this.diagram,y=Qr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function gl(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Nl(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Fu(){var a=Ra;Eo(a),_a(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Wo.prototype.doCancel=function(){Eo(this),_a(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Wo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Wo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function pl(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):_a(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 Ge,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Zn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,yu(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Eo(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 Zn&&(x.value.point=new Bt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Ho(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 wa(a,y,x){var b=a.diagram,E=a.startPoint,z=Bt.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Bt.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Ds(b),b.hk())}Wo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&nd(b,a,y,this.dragOptions,x)};function _a(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Zn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Nh(b,-E.x,-E.y)}y.bd()}}function Ka(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),vo(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=Nl(a,E,b),!a.isActive&&Ra===null)return;var rt=b!==null?b.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Mr)){var ot=x.mouseDragOver;ot!==null&&(ot(E),tt=!0)}if(!a.isActive&&Ra===null||(a.doDragOver(y,b),!a.isActive&&Ra===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Wo.prototype.findDragOverObject=function(a){var y=this;return Du(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof oo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Wo.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 Nl(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<E;tt++){var rt=a.Cg[tt],ot=rt.mouseDragLeave;if(ot!==null&&(ot(y,rt,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ra===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=ml(E);for(E=a.Cg.length,x=0;x<E&&(tt=a.Cg[x],rt=tt.mouseDragEnter,rt===null||(rt(y,tt,z),b=!0,!y.handled));x++);return b}function ml(a){var y=a.panel;return y!==null?y:a instanceof $i&&!(a instanceof Mr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Do(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(st){return b.findValidLinkablePort(st,x)});a=Bt.alloc();var z=1/0,tt=null;for(E=E.iterator;E.next();){var rt=E.value;if(rt.part!==null){var ot=rt.ga(ji,a);ot=y.Bf(ot),ot<z&&(tt=rt,z=ot)}}return Bt.free(a),tt}function vo(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,tt=null;x.fromNode===null&&(z=Do(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=Do(a,x.i(x.pointsCount-1),!0),rt!==null&&(ot=rt.part)),E.isValidLink(tt,z,ot,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=ot,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):ef(E,tt,z,ot,rt):ef(E,null,null,null,null)}}}}Wo.prototype.doDragOver=function(){};function Za(a,y){var x=a.diagram;a.dragsLink&&vo(a,!0),gl(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(E,z),E.handled))break;iu(a,E,z),z=ml(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Ra!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof di&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Ra!==null){for(a=de.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof di&&Ed(x,b,a);de.free(a)}}}function iu(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Mr||(x=a.mouseDrop,x!==null&&x(y))}function Ed(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Zn},!0,function(E){return E instanceof Zn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Wo.prototype.doDropOnto=function(){},Wo.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()?(pl(this,!1),mf(a,this.copiedParts),wa(this,this.copiedParts,!1),id(a,this.copiedParts)):this.mayMove()?(Eo(this),wa(this,this.draggedParts,!0)):this.mayDragOut()?(pl(this,!1),wa(this,this.copiedParts,!1)):Eo(this),Ka(this,a.lastInput.documentPoint))}},Wo.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?(Eo(this),pl(this,!0),mf(a,this.copiedParts),wa(this,this.copiedParts,!1),id(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,Eo(this),this.mayMove()&&(wa(this,this.draggedParts,!0),Ka(this,a.lastInput.documentPoint))),this.Ym=!0,Za(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&hg(this),a.Ya(),id(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Wo.prototype.simulatedMouseMove=function(a,y,x){if(Ra===null)return!1;var b=Ra.diagram;x instanceof je||(x=null);var E=Ju;return x!==E&&(E!==null&&E!==b&&(E.ug(),Ra.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Ju=x,x!==null&&x!==b&&(Fu(),E=x.toolManager.findTool("Dragging"),E!==null&&(Ws.contains(E)||Ws.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==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,b.doSimulatedDragOver()),!0)},Wo.prototype.simulatedMouseUp=function(a,y,x){if(Ra===null)return!1;var b=Ju,E=Ra.diagram;if(x===null)return Ra.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Ra.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Ju=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Fu(),Ws.contains(b)||Ws.add(b),b.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 Bt),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=Ra,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function hg(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof di&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Wo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(kr?!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())},Wo.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())},Wo.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())},Wo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Wo.prototype.Az=function(){return Ra},Wo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ra;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Wo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Sl(a),a.animationManager.Cc(),a=Ra,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Wo.prototype.doSimulatedDragLeave=function(){var a=Ra;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Wo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ra;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;tf(this,y.draggedParts.Lf(),!1,a.firstInput),wa(this,this.copiedParts,!1),Ka(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Wo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ra;if(y!==null){var x=y.diagram;if(y.Ym=!0,Eo(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),tf(this,y.draggedParts.Lf(),!0,a.lastInput),wa(this,this.copiedParts,!1);var b=new Ln;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Za(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function tf(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=de.alloc();E=b=1/0;for(var tt=-1/0,rt=-1/0,ot=y.iterator;ot.next();){var st=ot.value;if(st.isVisible()){var ut=st.location;st=ut.x,ut=ut.y,isNaN(st)||isNaN(ut)||(st<b&&(b=st),ut<E&&(E=ut),st>tt&&(tt=st),ut>rt&&(rt=ut))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,tt-b,rt-E),b=z.x+z.width/2,E=z.y+z.height/2,de.free(z),z=a.Fr,tt=new Ge,rt=Bt.alloc(),ot=y.iterator;ot.next();)st=ot.value,st instanceof Zn&&st.canCopy()&&(ut=x.I(st),ut!==null&&(ut.points=st.points,Nh(ut,z.x-b,z.y-E),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)st=y.value,st.Zc()&&st.canCopy()&&(ot=x.I(st),ot!==null&&(st=st.location,rt.h(z.x-(b-st.x),z.y-(E-st.y)),ot.location=rt,ot.Va(),tt.add(ot,a.Pd(rt))));Bt.free(rt),a.copiedParts=tt,yu(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Wo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Wo.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Bt},be.Object.defineProperties(Wo.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}}}),Wo.prototype.getDraggingSource=Wo.prototype.Az;var Ra=null,Ju=null;Wo.className="DraggingTool",Ws=new pn,xr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Co.prototype.doCancel=function(){Ra!==null&&Ra.doCancel(),Qr.prototype.doCancel.call(this)};function ro(){Qr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Zn,y=new Dr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Dr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new di,y=new Dr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=we,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new di,y=new Dr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=we,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 Ge,this.Of=this.gj=this.Pf=null}Me(ro,Qr),ro.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},ro.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=Ut.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,Ut.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ji,z=Bt.alloc(),x.location=y.ga(ji,z),Bt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},ro.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=we,y.fromSpot=Gi,y.toSpot=Gi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},ro.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},ro.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof di){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)}},ro.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof di))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof di)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},ro.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(ft){return E.findValidLinkablePort(ft,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof di){var ot=tt.ga(ji,Bt.alloc()),st=x.x-ot.x,ut=x.y-ot.y;Bt.free(ot),ot=st*st+ut*ut,ot<b&&(st=this.validPortsCache.I(tt),st!==null?st&&(y=tt,b=ot):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,rt,tt)||!a&&this.isValidLink(rt,tt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(tt,!0),y=tt,b=ot):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof di&&(x.layer===null||x.layer.allowLink))?y:null},ro.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},ro.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},ro.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},ro.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof di))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof di))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},ro.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||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 E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},ro.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 b=new Ln;return b.add(a),ho(this,x,y,b)};function ho(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),ho(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),ho(a,y.labeledLink,x,b))))}ro.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==Ac){if(b===Zg){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Lo(this,a,y,x,!0)}if(b===Wg){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Lo(this,a,y,x,!0)}if(b===zg)return a===y?a=!0:(b=new Ln,b.add(y),a=$o(this,b,a,y,x)),!a;if(b===jg)return!Lo(this,a,y,x,!1);if(b===Hg)return a===y?a=!0:(b=new Ln,b.add(y),a=es(this,b,a,y,x)),!a}return!0};function Lo(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==b&&(!E||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Lo(a,tt,x,b,E)))return!0}return!1}function $o(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&$o(a,y,tt,b,E)))return!0}return!1}function es(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&es(a,y,rt,b,E))return!0}}return!1}be.Object.defineProperties(ro.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}}}),ro.className="LinkingBaseTool";function hs(){ro.call(this),this.name="Linking",this.V={},this.F=null,this.K=Xh,this.Xd=null}Me(hs,ro),hs.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},hs.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 di)))return null;var x=this.direction;if(x===Xh||x===Zp){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===Xh||x===Wp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},hs.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 di&&(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 di&&(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)},hs.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()},hs.prototype.doStop=function(){ro.prototype.doStop.call(this),this.startObject=null},hs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof di&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=rt,E=tt):(y=rt,x=tt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(tt===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,b,E)):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)}}},hs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Zn)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)},hs.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},hs.prototype.doNoLink=function(){},be.Object.defineProperties(hs.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 Xh=new rn(hs,"Either",0),Zp=new rn(hs,"ForwardsOnly",0),Wp=new rn(hs,"BackwardsOnly",0);hs.className="LinkingTool",hs.Either=Xh,hs.ForwardsOnly=Zp,hs.BackwardsOnly=Wp;function ol(){ro.call(this),this.name="Relinking";var a=new Dr;a.figure="Diamond",a.desiredSize=en,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Dr,a.figure="Diamond",a.desiredSize=en,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new de}Me(ol,ro),ol.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Zn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ol.prototype.makeAdornment=function(a,y){var x=new oo;return x.type=Tn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ol.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},ol.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 oo&&x.adornedPart instanceof Zn))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=se),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=se),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},ol.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Hf||x===Th)&&(x=Ms),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}},ol.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()},ol.prototype.doStop=function(){ro.prototype.doStop.call(this),this.handle=null},ol.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof di&&(this.isForwards?(b=tt,E=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E: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()}}},ol.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},ol.prototype.doNoRelink=function(){};function ef(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}be.Object.defineProperties(ol.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 oo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ol.className="RelinkingTool",xr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),xr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function va(){Qr.call(this),this.name="LinkReshaping";var a=new Dr;a.figure="Rectangle",a.desiredSize=Xe,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Dr,a.figure="Diamond",a.desiredSize=en,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Bt,this.Yq=new pn}Me(va,Qr),va.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:dg},va.prototype.om=function(a,y){a.reshapingBehavior=y},va.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Zn){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)}},va.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new oo,E.type=Tn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=b?1:0;if(y.resegmentable&&y.computeCurve()!==hl)for(var rt=x+tt;rt<z-tt;rt++){var ot=this.makeResegmentHandle(a,rt);ot!==null&&(ot.segmentIndex=rt,ot.segmentFraction=.5,ot.fromMaxLinks=999,E.add(ot))}for(tt=x+1;tt<z;tt++)if(rt=this.makeHandle(a,tt),rt!==null){if(rt.segmentIndex=tt,tt!==x)if(tt===x+1&&b){ot=y.i(x);var st=y.i(x+1);me.B(ot.x,st.x)&&me.B(ot.y,st.y)&&(st=y.i(x-1)),me.B(ot.x,st.x)?(this.om(rt,ph),rt.cursor="n-resize"):me.B(ot.y,st.y)&&(this.om(rt,gh),rt.cursor="w-resize")}else tt===z-1&&b?(ot=y.i(z-1),st=y.i(z),me.B(ot.x,st.x)&&me.B(ot.y,st.y)&&(ot=y.i(z+1)),me.B(ot.x,st.x)?(this.om(rt,ph),rt.cursor="n-resize"):me.B(ot.y,st.y)&&(this.om(rt,gh),rt.cursor="w-resize")):tt!==z&&(this.om(rt,nf),rt.cursor="move");E.add(rt)}E.adornedObject=a}return E},va.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},va.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},va.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},va.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 Zn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),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}}},va.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},va.prototype.stopTransaction=function(){var a=this.diagram,y=Qr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},va.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},va.prototype.getResegmentingPoint=function(){return this.handle.ga(ji)},va.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},va.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,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var tt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(fh(this,tt,b,E,z,!0)||fh(this,tt,b,E,z,!1))){var rt=y.points.copy();fh(this,tt,b,E,z,!0)?(rt.cd(x-2,new Bt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Bt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Bt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Bt((z.x+tt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else tt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(fh(this,b,E,z,tt,!0)||fh(this,b,E,z,tt,!1))&&(rt=y.points.copy(),fh(this,b,E,z,tt,!0)?(rt.cd(x-1,new Bt(b.x,(b.y+tt.y)/2)),rt.cd(x+2,new Bt(tt.x,(b.y+tt.y)/2))):(rt.cd(x-1,new Bt((b.x+tt.x)/2,b.y)),rt.cd(x+2,new Bt((b.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Bt.alloc(),me.qh(b.x,b.y,z.x,z.y,E.x,E.y,tt)&&tt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Bt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function fh(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}va.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===ph?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===gh&&(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,b===ph?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===gh&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),tt=y.i(b+1);me.B(z.x,E.x)&&me.B(E.y,tt.y)?(me.B(z.x,y.i(b-2).x)&&!me.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),me.B(tt.y,y.i(b+2).y)&&!me.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)):me.B(z.y,E.y)&&me.B(E.x,tt.x)?(me.B(z.y,y.i(b-2).y)&&!me.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),me.B(tt.x,y.i(b+2).x)&&!me.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):me.B(z.x,E.x)&&me.B(E.x,tt.x)?(me.B(z.x,y.i(b-2).x)&&!me.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),me.B(tt.x,y.i(b+2).x)&&!me.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):me.B(z.y,E.y)&&me.B(E.y,tt.y)&&(me.B(z.y,y.i(b-2).y)&&!me.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),me.B(tt.y,y.i(b+2).y)&&!me.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(ji,Bt.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Bt.alloc()),y.L(0,b.x,b.y),Bt.free(z),Bt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(ji,Bt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Bt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Bt.free(x),Bt.free(a));y.zf()},va.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case nf:return a;case ph:return new Bt(y.i(x).x,a.y);case gh:return new Bt(a.x,y.i(x).y);default:case dg:return y.i(x)}},be.Object.defineProperties(va.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 oo))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}}}),va.prototype.setReshapingBehavior=va.prototype.om,va.prototype.getReshapingBehavior=va.prototype.Ru;var dg=new rn(va,"None",0),gh=new rn(va,"Horizontal",1),ph=new rn(va,"Vertical",2),nf=new rn(va,"All",3);va.className="LinkReshapingTool",va.None=dg,va.Horizontal=gh,va.Vertical=ph,va.All=nf,xr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function as(){Qr.call(this),this.name="Resizing",this.o=new Ut(1,1).freeze(),this.j=new Ut(9999,9999).freeze(),this.yg=new Ut(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Dr;a.alignmentFocus=ji,a.figure="Rectangle",a.desiredSize=Xe,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Bt,this.Dw=new Ut,this.Tn=new Bt,this.rt=new Ut(0,0),this.qt=new Ut(1/0,1/0),this.pt=new Ut(1,1)}Me(as,Qr),as.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Zn)){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(),ud(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},as.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new oo,y.type=Tn.Spot,y.locationSpot=ji;var x=new bs;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,hr)),y.add(this.makeHandle(a,Or)),y.add(this.makeHandle(a,Tr)),y.add(this.makeHandle(a,Ur)),y.add(this.makeHandle(a,Fo)),y.add(this.makeHandle(a,po)),y.add(this.makeHandle(a,Yo)),y.add(this.makeHandle(a,wo))}else if(Rl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},as.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},as.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=ji),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 t;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 Tn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},as.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},as.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))},as.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},as.prototype.stopTransaction=function(){var a=this.diagram,y=Qr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},as.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},as.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Bt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Bt.free(E)}},as.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Bt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Bt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},as.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 Mr){var b=new pn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new at;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},as.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=ji);var tt=this.adornedObject.naturalBounds,rt=tt.x,ot=tt.y,st=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var vt=tt.height;0>=ft&&(ft=1),0>=vt&&(vt=1),ft=vt/ft}return vt=Bt.alloc(),me.No(a.x,a.y,rt,ot,E.width,E.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,st-b.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.y=Math.max(vt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=st-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(vt.x,st-b.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.height=Math.max(Math.min(vt.y-ot,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=st-a.width)):(a.x=Math.max(vt.x,st-b.width),a.x=Math.min(a.x,st-x.width),a.width=st-a.x,z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),a.y=Math.max(vt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),a.height=Math.max(Math.min(vt.y-ot,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):0>=y.y?(a.y=Math.max(vt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(vt.y-ot,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))),Bt.free(vt),a},as.prototype.computeReshape=function(){var a=Cn;return this.adornedObject instanceof Dr&&(a=Lv(this.adornedObject)),!(a===Hi||this.diagram.lastInput.shift)},as.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},as.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},as.prototype.computeCellSize=function(){var a=new Ut(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},be.Object.defineProperties(as.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 oo))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 oo)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}}}),as.className="ResizingTool",xr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function xs(){Qr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Bt,this.ue=null;var a=new Dr;a.figure="Ellipse",a.desiredSize=en,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Bt(NaN,NaN),this.u=0,this.F=50}Me(xs,Qr),xs.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)}},xs.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new oo,y.type=Tn.Position,y.locationSpot=ji;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Rl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},xs.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},xs.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)},xs.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(ji)},xs.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 b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},xs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Bt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},xs.prototype.stopTransaction=function(){var a=this.diagram,y=Qr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},xs.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},xs.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},xs.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()},xs.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},xs.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},be.Object.defineProperties(xs.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 oo))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 oo)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}}}),xs.className="RotatingTool",xr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Yh(){Qr.call(this),this.name="ClickSelecting"}Me(Yh,Qr),Yh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Yh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Yh.className="ClickSelectingTool";function Tl(){Qr.call(this),this.name="Action",this.pk=null}Me(Tl,Qr),Tl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Tl.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()},Tl.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))}},Tl.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()},Tl.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())},Tl.prototype.doStop=function(){this.pk=null},Tl.className="ActionTool";function mh(){Qr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Bt(0,0)}Me(mh,Qr),mh.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)},mh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},mh.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof $i)x.Zc()&&(Rl(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);ln(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Bt.allocAt(a.x,a.y);this.isGridSnapEnabled&&pf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Bt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},be.Object.defineProperties(mh.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}}}),mh.className="ClickCreatingTool";function vl(){Qr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new $i;a.layerName="Tool",a.selectable=!1;var y=new Dr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Me(vl,Qr),vl.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))},vl.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},vl.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},vl.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 b=Ut.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Ut.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},vl.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()},vl.prototype.computeBoxBounds=function(){var a=this.diagram;return new de(a.firstInput.documentPoint,a.lastInput.documentPoint)},vl.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),kr?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 pn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},be.Object.defineProperties(vl.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}}}),vl.className="DragSelectingTool";function ns(){Qr.call(this),this.name="Panning",this.Xt=new Bt,this.xy=new Bt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(gn.document,"scroll",a.Kw,!1),a.stopTool()}}Me(ns,Qr),ns.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())},ns.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(gn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},ns.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},ns.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},ns.prototype.doMouseMove=function(){this.move()},ns.prototype.doMouseUp=function(){this.move(),this.stopTool()},ns.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,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},be.Object.defineProperties(ns.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),ns.className="PanningTool",xr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),xr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),xr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),xr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),xr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Su(){this.F=this.u=this.j=this.o=null}be.Object.defineProperties(Su.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}}}),Su.className="HTMLInfo";function Dl(a,y,x){this.text=a,this.hx=y,this.visible=x}Dl.className="ContextMenuButtonInfo";function Ps(){Qr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Bt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Me(Ps,Qr);function Kl(a){var y=new Su;y.show=function(E,z,tt){tt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},Uh=y,a.tu=function(){a.stopTool()},y=ai("div");var x=ai("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 b=ai("style");gn.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",ya,!1),b.addEventListener(y,"selectstart",ya,!1),b.addEventListener(x,"contextmenu",ya,!1)),y.className="goCXforeground",x.className="goCXbackground",gn.document.body&&(gn.document.body.appendChild(y),gn.document.body.appendChild(x)),dc=y,Fd=x,hc=!0}function ya(a){return a.preventDefault(),!1}Ps.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)},Ps.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ps.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ps.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof je||(a instanceof Pe?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},Ps.prototype.doActivate=function(){},Ps.prototype.doMouseDown=function(){if(Qr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof oo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&ru(this)},Ps.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof oo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}ru(this)};function ru(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Su||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Qu(a,!0),a.isActive||a.stopTool())}Ps.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Qu(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=Uh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Pe?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof oo&&!a.currentContextMenu.visible&&a.stopTool()}}Ps.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ps.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof oo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Su&&a.show(y,x,this);this.currentContextMenu=a},Ps.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},Ps.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof oo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Su&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function vh(a){var y=new pn;return y.add(new Dl("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Dl("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Dl("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Dl("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Dl("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Dl("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Dl("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Dl("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Dl("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Dl("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Dl("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Dl("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Dl("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ps.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=vh(this)),dc.innerHTML="",Fd.addEventListener("pointerdown",this.tu,!1);var y=this,x=ai("ul");x.className="goCXul",dc.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=ai("li"),z.className="goCXli";var tt=ai("a");tt.className="goCXa",tt.href="#",tt.ky=E.hx,tt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),tt.textContent=E.text,z.appendChild(tt),x.appendChild(z)}}dc.style.display="block",Fd.style.display="block"},Ps.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Uh){dc.style.display="none",Fd.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Fd,"pointerdown",this.tu,!1),this.currentContextMenu=null}},be.Object.defineProperties(Ps.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof oo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return hc===!1&&Uh===null&&la&&Kl(this),Uh},set:function(a){a===null&&(hc=!0),Uh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Uh=null,hc=!1,Fd=null,dc=null;Ps.className="ContextMenuTool",xr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Go(){Qr.call(this),this.name="TextEditing",this.Zh=new Oo,this.ia=null,this.V=Nd,this.vj=null,this.qa=Td,this.u=1,this.F=!0,this.o=null,this.j=new Su,this.kt=null,cc(this,this.j)}Me(Go,Qr);function cc(a,y){if(la){var x=ai("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(fc)):E==="Tab"?(a.acceptText(of),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Td){var b=a.kt;a.qa===gc&&(a.qa=pc),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Td){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof Oo&&z instanceof Go)if(z.state===mc)x.style.border="3px solid red",x.focus();else{var tt=b.ga(ji),rt=E.position,ot=E.scale,st=b.Df()*ot;st<z.minimumEditorScale&&(st=z.minimumEditorScale);var ut=b.naturalBounds.width*st+6,ft=b.naturalBounds.height*st+2,vt=(tt.x-rt.x)*ot;tt=(tt.y-rt.y)*ot,rt=b.verticalAlignment,ot=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*st,ft=rt.y*ft-rt.y*ot+rt.offsetY-(.5*ft-.5*ot)-ot/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*st+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(vt-ut/2|0)-1+"px",x.style.top=(tt+ft|0)-1+"px",x.style.textAlign=b.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=b.lineCount,x.wA=st,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Go.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||yh&&yh!==this&&(yh.acceptText(xu),yh&&yh!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Oo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Nd&&!y.isSelected||this.starting===af&&2>a.lastInput.clickCount)):!1},Go.prototype.doStart=function(){yh=this,this.textBlock!==null&&this.doActivate()},Go.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 Oo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=gc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new de(this.textBlock.ga(hr),this.textBlock.ga(Tr));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Go.prototype.doCancel=function(){this.stopTool()},Go.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Go.prototype.doMouseDown=function(){this.isActive&&this.acceptText(xu)},Go.prototype.acceptText=function(a){switch(a){case xu:this.qa===Dd?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===gc||this.qa===mc||this.qa===pc)&&(this.qa=fg,cg(this));break;case rf:case fc:case of:(fc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===gc||this.qa===mc||this.qa===pc)&&(this.qa=fg,cg(this))}};function cg(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=Dd,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=mc,a.doError(E,z))}}Go.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)},Go.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Go.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Td,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Go.prototype.doStop=function(){yh=null},Go.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Go.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},be.Object.defineProperties(Go.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)}}}),Go.prototype.measureTemporaryTextBlock=Go.prototype.Lx;var rf=new rn(Go,"LostFocus",0),xu=new rn(Go,"MouseDown",1),of=new rn(Go,"Tab",2),fc=new rn(Go,"Enter",3),$0=new rn(Go,"SingleClick",0),Nd=new rn(Go,"SingleClickSelected",1),af=new rn(Go,"DoubleClick",2),Td=new rn(Go,"StateNone",0),gc=new rn(Go,"StateActive",1),pc=new rn(Go,"StateEditing",2),fg=new rn(Go,"StateValidating",3),mc=new rn(Go,"StateInvalid",4),Dd=new rn(Go,"StateValidated",5),yh=null;Go.className="TextEditingTool",Go.LostFocus=rf,Go.MouseDown=xu,Go.Tab=of,Go.Enter=fc,Go.SingleClick=$0,Go.SingleClickSelected=Nd,Go.DoubleClick=af,Go.StateNone=Td,Go.StateActive=gc,Go.StateEditing=pc,Go.StateValidating=fg,Go.StateInvalid=mc,Go.StateValidated=Dd,xr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function qs(a){yc||(gg(),yc=!0),this.H=Tu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=_u,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ln,this.ce=new is,this.ce.Yd=this,this.Ei=new Ln,this.pu=new Ln,this.Sr=new Ln,this.pr=new Ln,a&&Object.assign(this,a)}qs.prototype.Xe=function(a){this.H=a},qs.prototype.canStart=function(){return!0};function Nu(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),rs(a.H),a.zb=!0)}function sf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===_u?(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===pg&&y.vc.clear(),a.Qw=!!(a.Pk===Sc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),xc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==ps&&b!==null&&(delete b.start.scale,delete b.end.scale),gn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ds(x),xg(x),a.zb=!1,y.start(),y.bc&&(Sh(a),x.Ya(),mg(y,0),Sl(x,!0),Jh(a),x.R("AnimationStarting",a)))}))}}function qu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function lf(a,y,x,b){a.isTicking||qu(a)||y instanceof Zn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Pt=qs.prototype,Pt.fv=function(a){return this.ce.fv(a)},Pt.Xu=function(a){return this.ce.Xu(a)};function uf(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var rt=!0;else{for(rt=tt.vc.iterator;rt.next();){var ot=rt.key;if(ot instanceof Pe&&ot.diagram!==null||ot instanceof je){rt=!0;break t}}rt=!1}rt?Pc(tt,!1):tt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Sh(E),Sl(E.H),Jh(E)),gn.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),gn.requestAnimationFrame(function(){x()}))}function Gp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Sh(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 Jh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Pt.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(),xc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),xc(y,this.H)},Pt.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))},Pt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Gs(this,a))},Pt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),xh(this.ce,y,"position",y.position,y.position),Gs(this,a))};function Vp(a,y,x){!a.zb||y.D(x)||qu(a)||(a.H.pi||(y=x.copy()),xh(a.ce,a.H,"position",y,x))}function hf(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Gs(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Qh(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],rt=a[2];a=a[3];var ot=y[0],st=y[1],ut=y[2];return y=y[3],rt===0||rt===100?(z=ot,tt=st):(ut===0||ut===100)&&(ot=z,st=tt),180<Math.abs(ot-z)&&(ot>z?z+=360:ot+=360),z=E(x,z,ot-z,b)%360,tt=E(x,tt,st-tt,b),rt=E(x,rt,ut-rt,b),x=E(x,a,y-a,b),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function gg(){function a(x,b,E,z,tt,rt){x.position=new Bt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}var y=new Ge;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new Bt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("location",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!0):x.location=new Bt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:placeholder",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new Bt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:nodeCollapse",function(x,b,E,z,tt,rt){var ot=x.actualBounds,st=E.actualBounds;E=st.x+st.width/2-ot.width/2,ot=st.y+st.height/2-ot.height/2,tt<rt?x.mm(z(tt,b.x,E-b.x,rt),z(tt,b.y,ot-b.y,rt),!1):x.position=new Bt(z(tt,b.x,E-b.x,rt),z(tt,b.y,ot-b.y,rt))}),y.add("desiredSize",function(x,b,E,z,tt,rt){x.desiredSize=new de(z(tt,b.width,E.width-b.width,rt),z(tt,b.height,E.height-b.height,rt))}),y.add("width",function(x,b,E,z,tt,rt){x.width=z(tt,b,E-b,rt)}),y.add("height",function(x,b,E,z,tt,rt){x.height=z(tt,b,E-b,rt)}),y.add("fill",function(x,b,E,z,tt,rt){x.fill=Qh(b,E,tt,rt,z)}),y.add("stroke",function(x,b,E,z,tt,rt){x.stroke=Qh(b,E,tt,rt,z)}),y.add("strokeWidth",function(x,b,E,z,tt,rt){x.strokeWidth=z(tt,b,E-b,rt)}),y.add("strokeDashOffset",function(x,b,E,z,tt,rt){x.strokeDashOffset=z(tt,b,E-b,rt)}),y.add("background",function(x,b,E,z,tt,rt){x.background=Qh(b,E,tt,rt,z)}),y.add("areaBackground",function(x,b,E,z,tt,rt){x.areaBackground=Qh(b,E,tt,rt,z)}),y.add("opacity",function(x,b,E,z,tt,rt){x.opacity=z(tt,b,E-b,rt)}),y.add("scale",function(x,b,E,z,tt,rt){x.scale=z(tt,b,E-b,rt)}),y.add("angle",function(x,b,E,z,tt,rt){x.angle=z(tt,b,E-b,rt)}),vc=y}be.Object.defineProperties(qs.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&&Rn(a,">= 1",qs,"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}}}),qs.prototype.stopAnimation=qs.prototype.Cc;var vc=null,yc=!1,_u=new rn(qs,"Default",1),Sc=new rn(qs,"AnimateLocations",2),pg=new rn(qs,"None",3);qs.className="AnimationManager",qs.defineAnimationEffect=function(a,y){yc||(gg(),yc=!0),vc.add(a,y)},qs.Default=_u,qs.AnimateLocations=Sc,qs.None=pg;function is(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=Bd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ti,this.vc=new Ge,this.Tt=new Ge,this.yl=new Ln,this.Ut=new Ln,this.dw=Ch,a&&Object.assign(this,a)}is.prototype.suspend=function(){this.Xk=!0},is.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Pc(this,!0),Sh(this.Yd),Sl(this.H),Jh(this.Yd),this.H.redraw()};function xc(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}Pt=is.prototype,Pt.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 je?a=x:x instanceof Pe&&(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===_u&&this===y.defaultAnimation&&(this.Lp=Kp,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=kc),Sh(y),this.yl.each(function(b){b.data=null,a.add(b)}),Jh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,uf(y,this),this)},Pt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Pt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof je?this.H=a:a instanceof Pe&&a.diagram!==null&&(this.H=a.diagram)),a instanceof $i){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return xh(this,a,y,x,b,E),this};function xh(a,y,x,b,E,z){var tt=a.vc;if(y instanceof je&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(nh(b),av(),b=[ul.j,ul.u,ul.o,ul.F],nh(E),av(),E=[ul.j,ul.u,ul.o,ul.F]),tt.contains(y)){var rt=tt.I(y),ot=rt.start,st=rt.end;ot[x]===void 0&&(ot[x]=qh(b)),st[x]=qh(E)}else ot={},st={},ot[x]=qh(b),st[x]=qh(E),rt=ot.position,y instanceof Pe&&rt instanceof Bt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(st.position),rt=new _h(ot,st,z),tt.add(y,rt);tt=ot[x],tt instanceof Bt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof $i?rt.Ku.location=qh(y.location):z&&(rt.Ku[x]=qh(b))}function qh(a){return a instanceof Bt||a instanceof Ut?a.copy():a}Pt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Pt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Pc(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Sh(x),mg(a,E),Sl(a.H,!0),Jh(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function mg(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Pe&&z.diagram===null)){var tt=b.value,rt=E?tt.end:tt.start;tt=E?tt.start:tt.end;var ot=vc,st;for(st in tt)st==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||ot.get(st)===null||ot.get(st)(z,rt[st],tt[st],a.Lp,y,x,a)}}}Pt.stop=function(){return this.bc?(this.Ml(!0),this):this},Pt.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,Sh(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=vc;b.next();){var tt=b.key,rt=b.value,ot=E?rt.end:rt.start,st=E?rt.start:rt.end,ut=rt.Ku,ft;for(ft in st)if(z.get(ft)!==null){var vt=ft;!rt.Hu||vt!=="position:nodeCollapse"&&vt!=="position:placeholder"||(vt="position"),z.get(vt)(tt,ot[ft],ut[ft]!==void 0?ut[ft]:rt.Hu?ot[ft]:st[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof $i&&(tt.location=ut.location),rt.nv&&tt instanceof $i&&tt.Zb(!1)}if(y.As.clear(),wc(y,!1),y.Ya(),y.N(),Sl(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)E=ft.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Sl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Jh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),xc(this,null),x.Ml(this),y.$b())}},Pt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Mr&&(b=y.placeholder),b!==null?(x=b.ga(hr),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Bt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Mr)for(a=a.memberParts;a.next();)b=a.value,b instanceof di&&this.Cj(b,y)},Pt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Mr&&(x=y.placeholder),x!==null){var b=x.ga(hr);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Mr)for(a=a.memberParts;a.next();)b=a.value,b instanceof di&&this.Aj(b,y)}},Pt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},be.Object.defineProperties(is.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Rn(a,">= 1",is,"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:qt("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}}}),is.prototype.getTemporaryState=is.prototype.Ez,is.prototype.stop=is.prototype.stop,is.prototype.add=is.prototype.add,is.prototype.addTemporaryPart=is.prototype.Iy;function Bd(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Kp(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}is.className="Animation",is.EaseLinear=function(a,y,x,b){return x*a/b+y},is.EaseInOutQuad=Bd,is.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},is.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},is.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},is.EaseOutExpo=Kp;function _h(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}_h.className="AnimationState";function Xl(a,y,x){this.xd=null,this.rf=a,this.so=x||vg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=$h))}Xl.prototype.copy=function(){var a=new Xl(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 Xp(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))}be.Object.defineProperties(Xl.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 vg=new rn(Xl,"Default",1),$h=new rn(Xl,"Immediate",2),Od=new rn(Xl,"Bundled",3);Xl.className="AnimationTrigger",Xl.Default=vg,Xl.Immediate=$h,Xl.Bundled=Od;function Wa(a){_i(this),this.H=null,this.Pa=new pn,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)}Pt=Wa.prototype,Pt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,fs(x)}a.clear(),this.Zq.length=0},Pt.Xe=function(a){this.H=a},Pt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var ot=rt.value;ot instanceof Mr?E++:ot instanceof di?b++:ot instanceof Zn?z++:ot instanceof oo?tt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<b&&(rt+=b+" Nodes "),0<E&&(rt+=E+" Groups "),0<z&&(rt+=z+" Links "),0<tt&&(rt+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,rt+=`
|
|
`+x.toString(),b=x.data,b!==null&&Cr(b)&&(rt+=" #"+Cr(b)),x instanceof di?rt+=" "+dr(b):x instanceof Zn&&(rt+=" "+dr(x.fromNode)+" "+dr(x.toNode));return y+" "+this.Pa.count+": "+rt},Pt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Bt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((b!==!0||ud(rt)!==!1)&&rt.isVisible()&&(E.assign(a),pi(E,rt.oe),rt=rt.ic(E,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Bt.free(E),rt}return Bt.free(E),null},Pt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof pn||b instanceof Ln||(b=new Ln),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Bt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((E!==!0||ud(ot)!==!1)&&ot.isVisible()){z.assign(a),pi(z,ot.oe);var st=ot;ot.ji(z,y,x,b)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||b.add(st))}}return Bt.free(z),b},Pt.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof pn||E instanceof Ln||(E=new Ln),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((z!==!0||ud(ot)!==!1)&&ot.isVisible()){var st=ot;ot.Cf(a,y,x,b,E)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||E.add(st))}}return E},Pt.Nu=function(a,y,x,b,E,z,tt){if(this.Uh===!1)return E;for(var rt=this.Pa.s,ot=rt.length;ot--;){var st=rt[ot];if((tt!==!0||ud(st)!==!1)&&z(st)&&st.isVisible()){var ut=st;st.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},Pt.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof pn||E instanceof Ln)&&(z=E),E=!0),z instanceof pn||z instanceof Ln||(z=new Ln),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=Bt.alloc(),ot=Bt.alloc(),st=this.Pa.s,ut=st.length;ut--;){var ft=st[ut];if((tt!==!0||ud(ft)!==!1)&&ft.isVisible()){rt.assign(a),pi(rt,ft.oe),ot.h(a.x+y,a.y),pi(ot,ft.oe);var vt=ft;ft.og(rt,ot,x,b,E,z)&&(x!==null&&(vt=x(vt)),vt===null||b!==null&&!b(vt)||z.add(vt))}}return Bt.free(rt),Bt.free(ot),z},Pt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=Di();for(var E=Di(),z=0;z<b;z++){var tt=x[z];if(tt.vw=z,tt instanceof Zn){if(tt.fd===!1)continue}else if(tt instanceof oo&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&yi(rt,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&E.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],Ov(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)Ov(E[y]);$n(a),$n(E)}}};function $u(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Pt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=$u(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=de.alloc(),ot=0;ot<b;ot++)this.Oj(a,x[ot],y,z,tt,rt,!0);if(de.free(rt),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Yp(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var tt=$u(a,y),rt=a.Zq;rt.length=0;for(var ot=x.scale,st=de.alloc(),ut=0;ut<z;ut++){var ft=E[ut];b.contains(ft)&&a.Oj(y,ft,x,rt,ot,st,!1)}de.free(st),y.globalAlpha=tt}}}Pt.Oj=function(a,y,x,b,E,z,tt){if(tt&&!ud(y))a.Hs(y);else{if(b!==null&&y instanceof Zn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,b=y.containingGroup;b!==null;)tt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(tt=!0,z.assign(b.tb)),b=b.containingGroup;var rt=y.actualBounds;if(b=!1,tt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}b=!z.Re(rt)}b&&(a.save(),a instanceof _s?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*E>x.Oq||rt.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ha(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(ha(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ha(y,a,y.background,!0,!1,z,E),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)))))),b&&(a.restore(),a.Vc(!0))}},Pt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(To,a,this,y,x,b,E)},Pt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&fs(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),df(this,a,y),a},Pt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,fs(y),a};function df(a,y,x){if(y=Up(a,y,x),x instanceof Mr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];if(rt===x&&(y=tt,0<=b)||0>b&&rt.containingGroup===x&&(b=tt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&df(a,-1,y)}x.svg!==null&&x.svg.remove()}function Up(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,ot=NaN;rt<E&&(ot=a.M(rt).zOrder,!!isNaN(ot));)rt++;if(!isNaN(tt)&&tt>b)for(;;){if(z===-1||tt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(ot)&&ot<b)for(;;){if(rt===E||ot>=b){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(ot=NaN;++rt<E&&(ot=a.M(rt).zOrder,isNaN(ot)););}return y}be.Object.defineProperties(Wa.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===""&&qt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&qt("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)&&Rn(a,"0 <= value <= 1",Wa,"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))}}}),Wa.prototype.findObjectsNear=Wa.prototype.og,Wa.prototype.findObjectsIn=Wa.prototype.Cf,Wa.prototype.findObjectsAt=Wa.prototype.ji,Wa.prototype.findObjectAt=Wa.prototype.ic,Wa.className="Layer";function je(a,y){if(lm||(ds(),lm=!0),_i(this),Tu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,la){var x=this,b=function(){x.removeEventListener(gn.document,"DOMContentLoaded",b,!1),x.setRTL()};gn.document.body!==null?this.setRTL():x.addEventListener(gn.document,"DOMContentLoaded",b,!1)}this.ol=null,wf.add("Model",So);var E=this;return this.Hb=function(z){var tt=E.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===To&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Jp(this),this.model=hy(),this.Wg=!0,qp(this),this.layout=new qo,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 um,a!==void 0&&(typeof a=="string"||gn.Element&&a instanceof Element?Sg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var td,Tu;function Jp(a){a.Yd=new qs,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new pn,a.pj=new Ge,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Bt(NaN,NaN).freeze(),a.du=new Bt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Bt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new vi,a.zu=new Bt(NaN,NaN).freeze(),a.ut=new de(NaN,NaN,NaN,NaN).freeze(),a.rj=new Si(0,0,0,0).freeze(),a.sj=Ch,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ps,a.zk=ko,a.Fg=ps,a.pq=ko,a.yt=hr,a.Bt=hr,a.Fc=!0,a.pn=!1,a.De=new Ln,a.Eh=new Ge,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Si(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Ta,a.bq.diagram=a,a.Qg=new Ta,a.Qg.diagram=a,a.cj=new Ta,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ev(a),a.ai=new Ln,a.Ht=!0,a.uu=Lh,a.pw=!1,a.wu=Ac,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 Ge,a.Xn=new pn,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 Si(5).freeze(),a.Hw=new Ln().freeze(),a.Nt=999999999,a.nw=new Ln().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 Ln,a.ow=new Ln,a.Xh=null,a.aw=new Ut(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Bt,bounds:new de,Py:new Ut,bA:new Ut,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new de(NaN,NaN,NaN,NaN).freeze(),a.wo=new Ut(NaN,NaN).freeze(),a.Sp=new de(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ge;var y=new di,x=new Oo;x.bind(new Sa("text","",dr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new di,x=new Oo,x.stroke="brown",x.bind(new Sa("text","",dr)),y.add(x),a.Lg.add("Comment",y),y=new di,y.selectable=!1,y.avoidable=!1,x=new Dr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Ut(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Ge,y=new Mr,y.selectionObjectName="GROUPPANEL",y.type=Tn.Vertical,x=new Oo,x.font="bold 12pt sans-serif",x.bind(new Sa("text","",dr)),y.add(x),x=new Tn(Tn.Auto),x.name="GROUPPANEL";var b=new Dr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new bs,b.padding=new Si(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Ge,y=new Zn,x=new Dr,x.isPanelMain=!0,y.add(x),x=new Dr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Zn,x=new Dr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new oo,y.type=Tn.Auto,x=new Dr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new bs,x.margin=new Si(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new oo,y.type=Tn.Link,x=new Dr,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 So,a.toolManager=new Co,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new at,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Qp(),a.eq=null,a.fq=Ei,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 Bt,a.zy=500,a.wp=new Bt,a.wq=!1}je.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Wd=null,od="",yg(this,!1),this.Xn.clear(),Of(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function yg(a,y){a.animationManager.Cc(!0),a.Hw=new Ln().freeze(),a.nw=new Ln().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var ot=rt.value;ot!==E&&ot.data===null&&z.push(ot)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;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(),Of(),a.Og.clear(),to=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Qp(){return null}je.prototype.reset=function(){this.clear(),this.vb=!0,Jp(this),wu(this),this.Wg=!0,qp(this),this.layout=new qo,this.Wg=!1,this.model=hy(),this.model.undoManager=new Ko,this.vb=this.rn=!1,this.N()},je.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=gn.document.body);var y=ai("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},je.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=gn.document.body);var y=0;if(la){var x=sm;y=td,x===null&&(x=sm=ai("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=td=ai("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 b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||kr||(y=11)}this.Db=y,this.Gw=!0},je.prototype.qb=function(a){a.classType===je&&(this.autoScale=a)},je.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 Sg(a,y){if(la){if(y!=null||qt("Diagram setup requires an argument DIV."),a.Ka!==null&&qt("Diagram has already completed setup."),typeof y=="string"?a.Ka=gn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:qt("No DIV or DIV id supplied: "+y),a.Ka===null&&qt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&qt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&gn.ResizeObserver){var x=Oe(function(){a.$b()},250);a.ol=new gn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}gn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=gn.go;var E=new Il(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",gn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Ag(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Il(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,la){E=ai("div");var z=ai("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=$p,E.addEventListener("pointerdown",tm),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Oe(function(){a.Yh=null,a.N()},300),a.Ov=Oe(function(){xg(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=yl(a,tt,!0);rt.bubbles=!0;var ot=0,st=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(ot=0<tt.deltaX?1:-1),tt.deltaY!==0&&(st=0<tt.deltaY?1:-1),rt.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-ot:-st):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(ot=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(st=0<tt.wheelDeltaY?-1:1),rt.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-ot:-st):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),Yl(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,yl(a,tt,!0),tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())},a.ui=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.Yt;rt[tt.pointerId]===void 0&&(rt[tt.pointerId]=tt),rt=a.oj;var ot=!1;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)if(rt[1]!==null&&rt[1].pointerId===tt.pointerId)rt[1]=tt,ot=!0;else if(rt[0]===null)rt[0]=tt;else if(rt[1]===null)rt[1]=tt,ot=!0;else{tt.preventDefault();return}else rt[0]=tt;(rt=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var st=ot;ot=Lg(a,tt,!0,!1,!0,st),Rd(a,tt,ot),ot.targetDiagram=Cg(tt,tt.target),ot.targetObject=null,st||ot.clone(a.bq),st=a.uw,rt=rt?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(st.x-tt.screenX)>rt||Math.abs(st.y-tt.screenY)>rt)?a.yq++:a.yq=1,ot.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Yl(ot,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=Lg(a,tt,!1,!1,!1,rt[1]!==null);var ot=gn.document.elementFromPoint(tt.clientX,tt.clientY)||null;ot!==null&&ot.shadowRoot!==void 0&&ot.shadowRoot!==null&&(ot=ot.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var st=a,ut=tt;ot&&ot.H&&(ut=tt,st=ot.H),rt.targetDiagram=st,Rd(a,ut,rt),rt.targetObject=null,a.doMouseMove(),Yl(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",ot=a.Yt;if(rt&&a.qu)delete ot[tt.pointerId],tt.preventDefault();else if(ot=a.oj,ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null);else{ot[0]=null,ot=Lg(a,tt,!1,!0,!0,!1);var st=gn.document.elementFromPoint(tt.clientX,tt.clientY)||null;st!==null&&st.shadowRoot!==void 0&&st.shadowRoot!==null&&(st=st.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),st!==null&&st.H instanceof je&&st.H!==a&&Rd(st.H,tt,ot),st===null&&(st=tt.target),Rd(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=Cg(tt,st),ot.targetObject=null,a.doMouseUp(),Yl(ot,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=b.Z["d"+Fc[1]+Fc[2]+"wI"+Vd.slice(1,5)]["b"+Tx.slice(1,y)](b.Z,Ec,y,y),b.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}je.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},je.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function tv(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(gn,"resize",a.Ov,!1)}function Ds(a){30<a.Sq&&(a.Yh=1)}function wc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Qi&&Qi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}je.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:gn.devicePixelRatio||1},je.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},je.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},je.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},je.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},je.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},je.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},je.prototype.doFocus=function(){this.focus()},je.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=gn.scrollX||gn.pageXOffset,y=gn.scrollY||gn.pageYOffset;this.ta.focus(),gn.scrollTo(a,y)}},je.prototype.Oy=function(){this.H.R("GainedFocus")},je.prototype.Ny=function(){this.H.R("LostFocus")};function xg(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,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===ps&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function qp(a){var y=new Wa;y.name="Background",a.Al(y),y=new Wa,y.name="",a.Al(y),y=new Wa,y.name="Foreground",a.Al(y),y=new Wa,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Wa,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Wa,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function _p(a){var y=new Tn(Tn.Grid);y.name="GRID";var x=new Dr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Dr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Dr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Dr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Dr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Dr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new $i,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 $p(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Hd(this.H)}function tm(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Hd(this.H)}je.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,tt=b.x-z.left,rt=b.y-z.top,ot=b.width+z.left+z.right,st=b.height+z.top+z.bottom,ut=b.right+z.right;z=b.bottom+z.bottom;var ft=E.x;b=E.y;var vt=E.width,xt=E.height,Lt=E.right,Ft=E.bottom;E=this.scale;var Xt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Xt=Xt+a.scrollWidth-a.clientWidth;break;case"reverse":Xt=a.scrollWidth-Xt-a.clientWidth}var Zt=Xt;vt<ot||xt<st?(Xt=Bt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Zt&&(Xt.x=Zt/E+tt,this.ju=Zt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Xt.y=a.scrollTop/E+rt,this.lu=a.scrollTop),this.position=Xt,Bt.free(Xt),this.Ee=this.qr=!1):(Xt=Bt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Xt.h(Zt+tt,this.position.y)),ut>Lt&&(this.position=Xt.h(-(y.scrollWidth-this.Aa)+Zt-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<b&&(this.position=Xt.h(this.position.x,a.scrollTop+rt)),z>Ft&&(this.position=Xt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Bt.free(Xt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,Lt=E.right,z=b.bottom,Ft=E.bottom,tt=b.x,ft=E.x,rt=b.y,b=E.y,vt>=ot&&tt>=ft&&ut<=Lt&&(x.style.width="1px"),xt>=st&&rt>=b&&z<=Ft&&(x.style.height="1px"))}},je.prototype.computeBounds=function(a){return a===void 0&&(a=new de),rs(this),Pg(this,a)};function Pg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var tt=b[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var rt=tt.length,ot=0;ot<rt;ot++){var st=tt[ot];st.isInDocumentBounds&&st.isVisible()&&(st=st.actualBounds,st.w()&&(x?(x=!1,y.assign(st)):y.ed(st)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}je.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(yn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Zn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Zn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new de(NaN,NaN,0,0):x};function Bl(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=Bt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=de.allocAt(0,0,b.width,b.height);var E=Bt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,de.free(b),Bt.free(E),Bt.free(x)}x=a.yh,y&&a.Fg!==ps&&(x=a.Fg);var z=x!==ps?Id(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var tt=a.ya/z,rt=a.zk,ot=a.pq;y&&!rt.sb()&&(ot.sb()||ot.Xb())&&(rt=ot.Xb()?ji:ot),wg(a,a.documentBounds,E,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,me.B(z.x,x)&&me.B(z.y,b)&&me.B(z.width,E)&&me.B(z.height,tt)||a.onViewportBoundsChanged(new de(x,b,E,tt),z,y,!1)}}function Id(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),rt=z/E,ot=tt/b;return y===al?(y=Math.min(ot,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===ad?(y=ot>rt?(tt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}je.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ch,this.scale=Id(this,al),a!==Ch&&(Bl(this,!1),wg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Pt=je.prototype,Pt.BA=function(a,y){y===void 0&&(y=al);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===al||y===ad)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===ad?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Bt(a.x,a.y)}},Pt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Bt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},Pt.zz=function(a){if(a instanceof Pe){this.eq=a;var y=Bt.alloc();this.fq=this.op(a.ga(hr,y)),Bt.free(y)}else this.eq=null,this.fq=Ei};function wg(a,y,x,b,E,z){var tt=Bt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var st=Bt.alloc();st=a.eq.ga(hr,st),rt=st.x-a.fq.x/a.scale,ot=st.y-a.fq.y/a.scale,E=Gi,Bt.free(st)}(z||a.scrollMode===Ch)&&(E.sb()&&(x>y.width&&(rt=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(ot=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(rt=Math.min(rt+x/2,y.right+Math.max(z,E.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,E.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(ot=Math.min(ot+b/2,y.bottom+Math.max(x,E.bottom)-b/2),ot=Math.max(ot,y.top-Math.max(x,E.top)+b/2),ot-=b/2):ot>y.top?ot=y.top:ot<y.bottom-b&&(ot=y.bottom-b)),tt.x=isFinite(rt)?rt:-a.yb.left,tt.y=isFinite(ot)?ot:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),Vp(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),wu(a),Bt.free(tt)}Pt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Du(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof $i)return a}else if(a=Du(this,a,function(x){return x.part}),a instanceof $i)return a;return null},Pt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),rs(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Du(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),rs(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Pt.lz=function(a,y,x){return y===void 0&&(y=!0),Cc(this,a,function(b){return b.part},y?function(b){return b instanceof $i&&b.canSelect()}:null,x)};function Cc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof pn||E instanceof Ln||(E=new Ln),rs(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Pt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof pn||b instanceof Ln||(b=new Ln),rs(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Pt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),cf(this,a,function(E){return E instanceof $i&&(!x||E.canSelect())},y,b)},Pt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof pn||E instanceof Ln||(E=new Ln),rs(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,b,E)}return E},Pt.Nu=function(a,y,x,b,E,z){var tt=new Ln;rs(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var ot=rt.value;ot.visible&&ot.Nu(a,y,x,b,tt,E,z)}return tt};function cf(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof pn||E instanceof Ln||(E=new Ln),rs(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,b,E)}return E}Pt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),Lc(this,a,y,function(z){return z instanceof $i&&(!b||z.canSelect())},x,E)},Pt.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof pn||E instanceof Ln)&&(z=E),E=!0),z instanceof pn||z instanceof Ln||(z=new Ln),rs(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var rt=tt.value;rt.visible&&rt.og(a,y,x,b,E,z)}return z};function Lc(a,y,x,b,E,z){var tt=null;for(tt===void 0&&(tt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof pn||E instanceof Ln)&&(z=E),E=!0),z instanceof pn||z instanceof Ln||(z=new Ln),rs(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,tt,b,E,z)}return z}je.prototype.acceptEvent=function(a){return yl(this,a,a instanceof MouseEvent)};function yl(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Rd(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),kr&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=Cg(y,y.target),b.targetObject=null,b}function Cg(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 Lg(a,y,x,b,E,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,kr&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=b,tt.handled=!1,tt.bubbles=E,tt.isMultiTouch=z,tt}function Yl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}je.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=yl(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(),Yl(x,a)},je.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(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(),Yl(x,a)},je.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Yl(x,a)},je.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Yl(x,a)},je.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Bt(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?pi(new Bt(y,a),this.Ab):new Bt(y,a)};function Rd(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,tt=0,rt=0;b!==null&&(b=b.getBoundingClientRect(),tt=y.clientX-E/b.width*b.left,rt=y.clientY-z/b.height*b.top),x.viewPoint.h(tt,rt),a.Ab!==null?(y=Bt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Bt.free(y)):x.documentPoint.h(tt,rt)}function bg(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}je.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function em(a){a.ld||rs(a),a.Va()}je.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Pt=je.prototype,Pt.Pz=function(){return this.kg},Pt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Sl(this),this.hf=!1,this.du=new Bt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&De(function(){b.ld=!1,Nu(y,"Model"),a(b)},1)},Pt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;gn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Pt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Sl(this))};function ed(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Hd(a)||(y&&rs(a),x&&Bl(a,!1))}function Sl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];Ma(rt,!1),rt.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(ot){ot.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||xg(a),ed(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Pu(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),rs(a),z=!1,(!a.hf||a.xh)&&(a.hf?Og(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Og(a,!1)),z=!0),a.Jk=!1,rs(a),a.ou||em(a),ed(a,!0,!1),tt=!1,z?(x=de.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Mg(a)),a.R("LayoutCompleted"),ed(a,!0,!1),de.free(x)):x.Ok&&x.Qw&&(a.Fg!==ps?a.scale=Id(a,a.Fg):a.yh!==ps?a.scale=Id(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Bl(a,!0)),z&&tt&&a.eb("Initial Layout"),rs(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Mg(a){if(a.Fg!==ps)a.scale=Id(a,a.Fg);else if(a.yh!==ps)a.scale=Id(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Bl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Pu(a)}function rs(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 Ln,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Mr&&b.U&65536&&(b.U=b.U^65536)})}}Pt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Mr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Mr&&x.isVisible()&&bc(this,x);for(a.reset();a.next();)x=a.value,x instanceof Zn&&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 oo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function bc(a,y){for(var x=Di(),b=Di(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Mr?(ll(z)||Cs(z)||ld(z))&&bc(a,z):z instanceof Zn?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for($n(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();$n(b)}Pt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Pt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&qt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){jd(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,tt=Math.round(y.y*E)/E,rt=this.Ab;for(rt.reset(),E!==1&&rt.scale(E),y.x===0&&y.y===0||rt.translate(-z,-tt),a.ti=null,Uy(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ph(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<b;y++)x[y].gc(a,this);a=!1,this.Yf?Kd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(vi.prototype.Cd=vi.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,jd(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),tt=this.Mb,rt=this.pa;var ot=this.Ca,st=Math.round(rt.x*ot)/ot,ut=Math.round(rt.y*ot)/ot;for(ot!==1&&z.scale(ot),rt.x===0&&rt.y===0||z.translate(-st,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ph(this,a),rt=0;rt<E;rt++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[rt].gc(a,this);if(y=!1,this.Yf?Kd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(vi.prototype.Cd=vi.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Qi&&Qi.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function ff(a,y,x,b,E,z,tt,rt,ot,st){if(a.Ka!==null){a.ta===null&&qt("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),ot===void 0&&(ot=!1),st===void 0&&(st=!1),jd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=E;var ft=a.Wa.s,vt=ft.length;try{var xt=new de(z.x,z.y,b.width/E,b.height/E),Lt=xt.copy();Lt.Co(x),Pu(a,Lt),rs(a),a.Fd(ft,vt,a,xt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,b.width,b.height));var Ft=a.Mb;y.scale(Ft,Ft);var Xt=vi.alloc();Xt.reset(),Xt.translate(x.left,x.top),Xt.scale(E),z.x===0&&z.y===0||Xt.translate(-z.x,-z.y),y.setTransform(Xt.m11,Xt.m12,Xt.m21,Xt.m22,Xt.dx,Xt.dy),y.yc(),y instanceof _s&&Uy(y,Xt.m11,Xt.m12,Xt.m21,Xt.m22,Xt.dx,Xt.dy),vi.free(Xt),Ph(a,y),y.globalAlpha=a.pb;var Zt=a.Qj("Grid");if(tt){var Qt=new Ln,_t=tt.iterator;for(_t.reset();_t.next();){var te=_t.value;te instanceof $i&&(st||te.layer!==Zt)&&(te.Gj(),Qt.add(te))}for(st=0;st<vt;st++)Yp(ft[st],y,a,Qt,ot);Qt.each(function(ze){return ze.Gj()})}else for(Qt=0;Qt<vt;Qt++){var ye=ft[Qt];ye===Zt?st&&ye.gc(y,a,!0):ye.gc(y,a,ot)}a.$i=!1,a.Yf&&Kd(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,vt,a,a.viewportBounds),Pu(a),a.ib instanceof _s&&(a.ib.Nj.PA(),a.redraw())}}}Pt.Gf=function(a){return this.Rg[a]},Pt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Pt.Tx=function(){this.Rg=new nr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(kr||_r),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ph(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Pt.Ql=function(a){return this.on[a]},Pt.sA=function(a,y){this.on[a]=y},Pt.Sx=function(){this.on=new nr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Pt.set=function(a){return Object.assign(this,a),this},Pt.Du=function(a){return this.nm(a)},Pt.nm=function(a){return zd(this,a),this};function zd(a,y){var x=a instanceof Tn,b=a instanceof je,E;for(E in y){E===""&&qt("Setting properties requires non-empty property names");var z=a,tt=E;if(x||b){var rt=E.indexOf(".");if(0<rt){var ot=E.substring(0,rt);x?z=a.fb(ot):(z=a[ot],z==null&&(z=a.toolManager[ot])),ln(z)?tt=E.substr(rt+1):qt("Unable to find object named: "+ot+" in "+a.toString()+" when trying to set property: "+E)}}if(tt[0]!=="_"&&!fr(z,tt))if(b&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(b&&tt==="Changed"){a.Pe(y[tt]);continue}else if(b&&fr(a.toolManager,tt))z=a.toolManager;else if(b&&rm(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof Wi&&tt==="Changed"){a.Pe(y[tt]);continue}else qt('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[E],tt[0]==="_"&&z instanceof Pe&&z.Vw(tt)}}Pt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Ge,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Pt.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")},je.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!==kc&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=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))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=de.alloc(),Bg(this,this.computeBounds(b)),de.free(b)),b=this.ta,b===null||b instanceof Cu)))){var tt=this.Mb;E=this.Aa*tt;var rt=this.ya*tt,ot=this.scale*tt;z=Math.round(Math.round(y.x*ot)-Math.round(a.x*ot)),y=Math.round(Math.round(y.y*ot)-Math.round(a.y*ot)),ot=this.jw,a=this.oy,ot.width!==E&&(ot.width=E),ot.height!==rt&&(ot.height=rt),a.clearRect(0,0,E,rt),ot=190*tt;var st=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),vt=Math.floor(E-ut),xt=Math.floor(rt-ft);a.drawImage(b.Oa,ut,ft,vt,xt,0,0,vt,xt),Kd(this.Yf,this)&&a.clearRect(0,0,ot,st),b=Di(),a=Di(),xt=Math.abs(z),vt=Math.abs(y);var Lt=ut===0?0:E-xt;ut=Bt.allocAt(Lt,0),xt=Bt.allocAt(xt+Lt,rt),a.push(new de(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)));var Ft=this.Ab;if(Ft.reset(),Ft.scale(tt,tt),this.Ca!==1&&Ft.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Ft.translate(-tt.x,-tt.y),pi(ut,Ft),pi(xt,Ft),b.push(new de(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Lt=ft===0?0:rt-vt,ut.h(0,Lt),xt.h(E,vt+Lt),a.push(new de(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),pi(ut,Ft),pi(xt,Ft),b.push(new de(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Kd(this.Yf,this)&&(E=0<z?0:-z,rt=0<y?0:-y,ut.h(E,rt),xt.h(ot+E,st+rt),a.push(new de(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),pi(ut,Ft),pi(xt,Ft),b.push(new de(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)))),Bt.free(ut),Bt.free(xt),ed(this,!1,!0),this.Ka===null&&qt("No div specified"),this.ta===null&&qt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(jd(this),rt=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*rt,this.ya*rt),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,ot=Math.round(z.x*tt)/tt,st=Math.round(z.y*tt)/tt,y=this.Ab,y.reset(),tt!==1&&y.scale(tt),z.x===0&&z.y===0||y.translate(-ot,-st),E.save(),E.beginPath(),z=a.length,tt=0;tt<z;tt++)ot=a[tt],ot.width!==0&&ot.height!==0&&E.rect(Math.floor(ot.x),Math.floor(ot.y),Math.ceil(ot.width),Math.ceil(ot.height));for(E.clip(),E.setTransform(rt,0,0,rt,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Ph(this,E),E.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],ot=b,tt.visible&&tt.pb!==0){st=$u(tt,E),ft=tt.Zq,ft.length=0,ut=this.scale,vt=de.alloc(),xt=tt.Pa.s,Ft=xt.length,Lt=ot.length;for(var Xt=0;Xt<Ft;Xt++){var Zt=xt[Xt],Qt=_d(Zt,Zt.actualBounds);t:{for(var _t=2/ut,te=4/ut,ye=0;ye<Lt;ye++){var ze=ot[ye];if(ze.width!==0&&ze.height!==0&&Qt.Vu(ze.x-_t,ze.y-_t,ze.width+te,ze.height+te)){Qt=!0;break t}}Qt=!1}Qt&&tt.Oj(E,Zt,this,ft,ut,vt,!0)}de.free(vt),E.globalAlpha=st}E.restore(),E.Vc(!0),this.Yf&&Kd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}$n(b),$n(a),this.ld=!1}}else this.bd();x&&(Ds(this),this.bd(),wc(this,!0))}else x?(Ds(this),this.bd(),wc(this,!0)):this.bd()}};function jd(a){a.pn!==!1&&(a.pn=!1,Ag(a,a.Aa,a.ya))}function Ag(a,y,x){wu(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Hd(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,tt=a.gf?a.Db:0,rt=a.Be?a.Db:0,ot=E.clientWidth||x+tt,st=E.clientHeight||b+rt,ut=a.viewportBounds;E=ut.x;var ft=ut.y,vt=ut.width,xt=ut.height;if((ot!==x+tt||st!==b+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=ot,a.ya=st,z=a.pn=!0,wu(a)),!a.hf||!a.viewportBounds.w())return!0;var Lt=a.ku,Ft=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Xt=a.documentBounds,Zt=0,Qt=0,_t=0,te=0,ye=ut.width,ze=ut.height,ri=a.rj;a.contentAlignment.sb()?(Xt.width>ye&&(Zt=ri.left,Qt=ri.right),Xt.height>ze&&(_t=ri.top,te=ri.bottom)):(Zt=ri.left,Qt=ri.right,_t=ri.top,te=ri.bottom);var Ti=Xt.width+Zt+Qt,Ci=Xt.height+_t+te;ri=a.scale;var jn=Ti>ot/ri,xn=Ci>st/ri;if(!(z||a.gf||a.Be||jn||xn))return!0;Zt=Xt.x-Zt,ot=ut.x,Qt=Xt.right+Qt,st=ut.right+tt,_t=Xt.y-_t;var Lr=ut.y;Xt=Xt.bottom+te,ut=ut.bottom+rt;var Sr="1px";if(te="1px",a.scrollMode===Ch&&(jn||xn)&&(jn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(jn=1,Zt+1<ot&&(jn=Math.max((ot-Zt)*ri+a.Aa,jn)),Qt>st+1&&(jn=Math.max((Qt-st)*ri+a.Aa,jn)),ye+tt+1<Ti&&(jn=Math.max((Ti-ye)*ri+a.Aa,jn)),Sr=jn.toString()+"px"),xn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(jn=1,_t+1<Lr&&(jn=Math.max((Lr-_t)*ri+a.ya,jn)),Xt>ut+1&&(jn=Math.max((Xt-ut)*ri+a.ya,jn)),ze+rt+1<Ci&&(jn=Math.max((Ci-ze)*ri+a.ya,jn)),te=jn.toString()+"px")),jn=Sr!=="1px",xn=te!=="1px",jn&&xn||!jn&&!xn||(xn&&(st-=a.Db),jn&&(ut-=a.Db),Ti<ye+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Zt+1<ot&&(tt=Math.max((ot-Zt)*ri+a.Aa,tt)),Qt>st+1&&(tt=Math.max((Qt-st)*ri+a.Aa,tt)),ye+1<Ti&&(tt=Math.max((Ti-ye)*ri+a.Aa,tt)),Sr=tt.toString()+"px"),jn=Sr!=="1px",tt=a.ya,jn!==a.Be&&(tt=jn?a.ya-a.Db:a.ya+a.Db),Ci<ze+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,_t+1<Lr&&(rt=Math.max((Lr-_t)*ri+tt,rt)),Xt>ut+1&&(rt=Math.max((Xt-ut)*ri+tt,rt)),ze+1<Ci&&(rt=Math.max((Ci-ze)*ri+tt,rt)),te=rt.toString()+"px"),xn=te!=="1px"),a.qr&&jn===a.Be&&xn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(jn!==a.Be&&(Sr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=jn,Ft.style.width=Sr,xn!==a.gf&&(te==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Bt.alloc(),xn?(y.style.left=a.Db+"px",a.position=rt.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=rt.h(a.pa.x-a.Db/a.scale,a.pa.y)),Bt.free(rt))),z&&wu(a),a.gf=xn,Ft.style.height=te,a.gu=!0,z&&(a.pn=!0),y=Lt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ye+1<Ti?y=(a.position.x-Zt)*ri:Zt+1<ot?y=Lt.scrollWidth-Lt.clientWidth:Qt>st+1&&(y=a.position.x*ri)),a.tn)switch(a.bu){case"negative":y=-(Lt.scrollWidth-y-Lt.clientWidth);break;case"reverse":y=Lt.scrollWidth-y-Lt.clientWidth}return Lt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ze+1<Ci?Lt.scrollTop=(a.position.y-_t)*ri:_t+1<Lr?Lt.scrollTop=Lt.scrollHeight-Lt.clientHeight:Xt>ut+1&&(Lt.scrollTop=a.position.y*ri)),ot=a.Aa,st=a.ya,Lt.style.width=ot+(a.gf?a.Db:0)+"px",Lt.style.height=st+(a.Be?a.Db:0)+"px",x!==ot||b!==st||a.animationManager.zb?(x=de.allocAt(E,ft,vt,xt),a.onViewportBoundsChanged(x,a.viewportBounds,ri,z),de.free(x),!1):!0}Pt=je.prototype,Pt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&qt("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&&qt('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(Uo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Pt.oi=function(a){this.partManager.oi(a);var y=this;Jd(a,function(x){Zd(y,x)}),(a instanceof oo||a instanceof Mr&&a.placeholder!==null)&&a.v(),a.data!==null&&Jd(a,function(x){sy(y.partManager,x)}),Cs(a)!==!0&&ld(a)!==!0||this.De.add(a),R1(a,!0,this),j1(a)?(a.actualBounds.w()&&this.N(_d(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(_d(a,a.actualBounds)),this.$b()},Pt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Jd(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),j1(a)?(a.actualBounds.w()&&this.N(_d(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(_d(a,a.actualBounds)),this.$b()},Pt.remove=function(a){kg(this,a,!0)};function kg(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(ua,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Pt.Is=function(a,y){if(y===void 0&&(y=!1),yn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Ln,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Pt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},je.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=gf(this)),this.toolManager!==null){var E=new Ge;if(a!==null)if(yn(a))for(var z=0;z<a.length;z++)Bu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Bu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Bu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Bu(this,E,a.value,x,b);for(a=this.links;a.next();)Bu(this,E,a.value,x,b)}nd(this,E,y,b,x)}};function Bu(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=gf(a)),x instanceof di){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Mr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Bu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var rt=tt.fromNode,ot=tt.toNode;rt!==null&&y.contains(rt)&&ot!==null&&y.contains(ot)&&Bu(a,y,tt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Bu(a,y,x.value,b,E)}else if(x instanceof Zn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Bu(a,y,x.value,b,E);else x instanceof oo||y.add(x,a.Pd(E,x,x.location))}function nd(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Bt.alloc(),tt=Bt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||mf(a,y);for(var rt=Di(),ot=Di(),st=y.iterator,ut=Bt.alloc();st.next();){var ft=st.key,vt=st.value;if(ft.Zc()){var xt=Eg(a,ft,y);xt!==null?rt.push(new it(ft,vt,xt)):(!E||ft.canMove())&&(xt=vt.point,z.assign(xt),a.computeMove(ft,z.add(tt),b,ut),ft.location=ut,vt.shifted===void 0&&(vt.shifted=new Bt),vt.shifted.assign(ut.re(xt)))}else st.key instanceof Zn&&ot.push(st.sa)}for(Bt.free(ut),E=rt.length,st=0;st<E;st++)ft=rt[st],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Bt),ft.node.location=z.add(ft.Su.shifted);for(E=Bt.alloc(),st=Bt.alloc(),ft=ot.length,vt=0;vt<ft;vt++){var Lt=ot[vt];if(xt=Lt.key,xt instanceof Zn)if(xt.suspendsRouting){xt.Tg=null,ut=xt.fromNode;var Ft=xt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Ft=Lt.value.point,xt.dragComputation===null)y.add(xt,a.Pd(b,xt,tt)),Nh(xt,tt.x-Ft.x,tt.y-Ft.y);else{Lt=Bt.allocAt(0,0),(ut=xt.i(0))&&ut.w()&&Lt.assign(ut);var Xt=ut=Bt.alloc().assign(Lt).add(tt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Xt=Bt.alloc(),pf(a,xt,ut,Xt,b)),ut.assign(xt.dragComputation(xt,ut,Xt)).re(Lt),y.add(xt,a.Pd(b,xt,ut)),Nh(xt,ut.x-Ft.x,ut.y-Ft.y),Bt.free(Lt),Bt.free(ut),Xt!==ut&&Bt.free(Xt)}else ut!==null&&(E.assign(ut.location),Xt=y.I(ut),Xt!==null&&E.re(Xt.point)),Ft!==null&&(st.assign(Ft.location),Xt=y.I(Ft),Xt!==null&&st.re(Xt.point)),ut!==null&&Ft!==null?E.Xa(st)?(ut=Lt.value.point,Ft=z,Ft.assign(E),Ft.re(ut),y.add(xt,a.Pd(b,xt,E)),Nh(xt,Ft.x,Ft.y)):(xt.suspendsRouting=!1,xt.bb()):(Lt=Lt.value.point,ut=ut!==null?E:Ft!==null?st:tt,y.add(xt,a.Pd(b,xt,ut)),Nh(xt,ut.x-Lt.x,ut.y-Lt.y))}else(xt.fromNode===null||xt.toNode===null)&&(ut=Lt.value.point,y.add(xt,a.Pd(b,xt,tt)),Nh(xt,tt.x-ut.x,tt.y-ut.y))}Bt.free(z),Bt.free(tt),Bt.free(E),Bt.free(st),$n(rt),$n(ot),x||(rs(a),id(a,y))}}je.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Bt),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Bt.alloc(),pf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var tt=a.minLocation,rt=tt.x;isNaN(rt)&&(rt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var ot=a.maxLocation,st=ot.x;return isNaN(st)&&(st=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ot=ot.y,isNaN(ot)&&(ot=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(rt,Math.min(x.x,st)),Math.max(tt,Math.min(x.y,ot))),E!==y&&Bt.free(E),b};function gf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function pf(a,y,x,b,E){if(E===void 0&&(E=gf(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var tt=E.gridSnapOrigin,rt=tt.x;if(tt=tt.y,E=E.gridSnapCellSpot,z!==null){var ot=z.gridCellSize;isNaN(a)&&(a=ot.width),isNaN(y)&&(y=ot.height),z=z.gridOrigin,isNaN(rt)&&(rt=z.x),isNaN(tt)&&(tt=z.y)}z=Bt.allocAt(0,0),z.yi(0,0,a,y,E),me.No(x.x,x.y,rt+z.x,tt+z.y,a,y,b),Bt.free(z)}}function mf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Zn&&(y.suspendsRouting=!0)}function id(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Zn&&(x.suspendsRouting=!1,Yv(x)&&x.bb())}a.Mr=!1}}function Eg(a,y,x){return y=y.containingGroup,y!==null&&(a=Eg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Pt=je.prototype,Pt.Pd=function(a,y,x){if(x===void 0)return new th(ti);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new th(new Bt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new th(x.copy())};function Fg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&qt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&qt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&qt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&qt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&qt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Pt.Al=function(a){Fg(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(Uo,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Pt.Ww=function(a,y){Fg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ua,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Uo,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Pt.Cy=function(a,y){Fg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ua,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Uo,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Pt.kA=function(a){if(a.diagram!==this&&qt("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 b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(ua,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Pt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Pt.Yw=function(a){return this.pf===null&&(this.pf=new pn),this.pf.add(a),this.model.Pe(a),this},Pt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Pt.Pe=function(a){return this.zg===null&&(this.zg=new pn),this.zg.add(a),this},Pt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Pt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==La&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Pt.cb=function(a,y,x,b,E,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new zo;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=b,rt.oldParam=z,rt.newValue=E,rt.newParam=tt,this.ds(rt)},Pt.g=function(a,y,x,b,E){this.cb(To,a,this,y,x,b,E)},je.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===To){var E=a.object;if(Jo(E,a.propertyName,a.I(y)),E instanceof Pe){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Uo){var tt=a.object,rt=a.newParam,ot=a.newValue;if(tt instanceof Tn)if(typeof rt=="number"&&ot instanceof Pe){y?tt.pc(rt):tt.Gb(rt,ot);var st=tt.part;st!==null&&st.Wb()}else typeof rt=="number"&&ot instanceof Aa&&(ot.isRow?h1(tt,rt,y?void 0:ot):d1(tt,rt,y?void 0:ot));else if(tt instanceof Wa){var ut=a.oldParam===!0;typeof rt=="number"&&ot instanceof $i&&(y?(ot.isSelected=!1,ot.isHighlighted=!1,ot.Wb(),tt.pc(ut?rt:-1,ot,ut)):tt.oi(rt,ot,ut))}else tt instanceof je?typeof rt=="number"&&ot instanceof Wa&&(y?this.Wa.mb(rt):(ot.Xe(this),this.Wa.Gb(rt,ot))):qt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===ua){var ft=a.object,vt=a.oldParam,xt=a.oldValue;if(ft instanceof Tn)typeof vt=="number"&&xt instanceof Pe?y?ft.Gb(vt,xt):ft.pc(vt):typeof vt=="number"&&xt instanceof Aa&&(xt.isRow?h1(ft,vt,y?xt:void 0):d1(ft,vt,y?xt:void 0));else if(ft instanceof Wa){var Lt=a.newParam===!0;typeof vt=="number"&&xt instanceof $i&&(y?0>ft.Pa.indexOf(xt)&&ft.oi(vt,xt,Lt):(xt.isSelected=!1,xt.isHighlighted=!1,xt.Wb(),ft.pc(Lt?vt:-1,xt,Lt)))}else ft instanceof je?typeof vt=="number"&&xt instanceof Wa&&(y?(xt.Xe(this),this.Wa.Gb(vt,xt)):this.Wa.mb(vt)):qt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==La&&qt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},je.prototype.Ea=function(a){return this.undoManager.Ea(a)},je.prototype.eb=function(a){return this.undoManager.eb(a)},je.prototype.Kf=function(){return this.undoManager.Kf()},je.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},je.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},je.prototype.rp=function(){this.partManager.rp()};function Ng(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,wu(a),a.N(),a.Ee=!0,b.zb&&(qu(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,wu(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,ot=a.zoomPoint.y,st=a.contentAlignment;isNaN(rt)&&(st.$c()?st.Hf(no)?rt=0:st.Hf(Wr)&&(rt=z-1):rt=st.sb()?st.x*(z-1):z/2),isNaN(ot)&&(st.$c()?st.Hf(so)?ot=0:st.Hf(fo)&&(ot=tt-1):ot=st.sb()?st.y*(tt-1):tt/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=Bt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Bt.free(z),a.Ca=x,wu(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Bl(a,!1),b.zb&&(qu(b)||b.ce.add(b.H,"scale",y,a.Ca))}}je.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==ps||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Co&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Gl(E,this)),this.vb||this.invalidateViewport(a,y),Pu(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=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Pu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Ut.alloc(),E=1,z=1,tt=x.O.s,rt=tt.length,ot=0;ot<rt;ot++){var st=tt[ot],ut=Math.abs(st.interval);2>ut||(pv(st.figure)?z=z*ut/me.vx(z,ut):E=E*ut/me.vx(E,ut))}if(tt=x.gridCellSize,b.h(z*tt.width,E*tt.height),y!==void 0)E=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=de.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){de.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,de.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Bt.alloc(),me.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Ut.free(b),x.part.location=y,Bt.free(y)}}je.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(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},je.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))},je.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof $i||qt("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof $i||qt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},je.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Pt=je.prototype,Pt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Pt.Jz=function(a){a=new Ln().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 $i||qt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Pt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Bt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),Bt.free(z);return}qt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):qt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Bt.free(z)},Pt.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)},Pt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Pt.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)},Pt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,tt=y.m11,rt=y.m12,ot=y.m21,st=y.m22,ut=y.dx,ft=y.dy,vt=x*tt+b*ot+ut;y=x*rt+b*st+ft;var xt=E*tt+b*ot+ut;return a=E*rt+b*st+ft,b=x*tt+z*ot+ut,x=x*rt+z*st+ft,tt=E*tt+z*ot+ut,E=E*rt+z*st+ft,z=Math.min(vt,xt),vt=Math.max(vt,xt),xt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),vt=Math.max(vt,b),xt=Math.min(xt,x),y=Math.max(y,x),z=Math.min(z,tt),vt=Math.max(vt,tt),xt=Math.min(xt,E),y=Math.max(y,E),new de(z,xt,vt-z,y-xt)},Pt.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),pi(a.copy(),this.Ab)};function nm(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Tg(a){return a=wf.get(a),a!==null?new a:new So}je.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===La&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(ot){return ot.diagram=E}),a.mouseMoveTools.each(function(ot){return ot.diagram=E}),a.mouseUpTools.each(function(ot){return ot.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===La){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),rs(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||sf(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(nm(this),this.As.clear(),Gp(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;De(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function Zd(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)rd(a,y[b])}function rd(a,y){if(y instanceof Rs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ln&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Dg(a,y){if(y instanceof Rs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Ln&&x.Bg.remove(a),Of(b));break}}}}}je.prototype.Wd=function(){this.partManager.Wd()},je.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},je.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},je.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},je.prototype.Vb=function(a){return this.partManager.Vb(a)},je.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Pt=je.prototype,Pt.Lc=function(a){return this.partManager.Lc(a)},Pt.ii=function(a){return this.partManager.ii(a)},Pt.Kc=function(a){return this.partManager.Kc(a)},Pt.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:er(Jn(y)))},Pt.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:er(Jn(y)))};function wu(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 Bg(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Bl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Pt.Va=function(){if(this.Zi){var a=de.alloc();Bg(this,this.computeBounds(a)),de.free(a)}},Pt.rz=function(){for(var a=new Ln,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},Pt.qz=function(){return this.ai.iterator},Pt.Uz=function(a){rs(this),a&&vf(this,!0),this.ld?Og(this,!1):(this.Jk=!0,Sl(this))};function vf(a,y){for(var x=a.ai.iterator;x.next();)im(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function im(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)im(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Og(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Nu(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Ig(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),rs(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||sf(z),a.aa=x}}}function Ig(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Ig(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),bc(a,y),E.isValidLayout=!0):a.xh=!0)}}Pt.yz=function(){for(var a=new pn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(E){var z=E.toLowerCase(),tt=new pn;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new Ge,b=new Ge;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=b}function rm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function yf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;qt("Unknown DiagramEvent name: "+y)}Pt.Bj=function(a,y){return a=yf(this,a),a!==null&&a.add(y),this},Pt.am=function(a,y){a=yf(this,a),a!==null&&a.remove(y)},Pt.R=function(a,y,x){var b=yf(this,a),E=new El;if(E.diagram=this,a=rm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function Sf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Pt.Yj=function(a,y){return xf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},je.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Pg(this,a):a.assign(this.documentBounds)};function xf(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new dp(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=om(a,x)),x===null){y=de.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,rt=tt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&Pf(a,tt,b,y)}de.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=de.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof di&&Pf(a,tt,b,y);de.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&rS(E);return E}function om(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?om(a,y.containingGroup):null}function Pf(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Zf(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Dh,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Dh}else if(y instanceof Mr)for(y=y.memberParts;y.next();)E=y.value,E instanceof di&&Pf(a,E,x,b)}}function wh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}je.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Rg(this)};function Rg(a){a.vk===-1&&(a.vk=De(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=de.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Bg(a,y),de.free(y),a.Fc=!0,a.bd(),Rg(a))}},a.vp))}je.prototype.ug=function(){this.vk!==-1&&(gn.clearTimeout(this.vk),this.vk=-1)},je.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 b=this.viewportBounds,E=this.scale;b=de.allocAt(0,0,b.width*E,b.height*E);var z=Bt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<b.x+x.left/2&&(z.x-=tt),a.x<b.x+x.left/4&&(z.x-=4*tt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>b.x+b.width-x.right/2&&(z.x+=tt),a.x>b.x+b.width-x.right/4&&(z.x+=4*tt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<b.y+x.top/2&&(z.y-=tt),a.y<b.y+x.top/4&&(z.y-=4*tt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>b.y+b.height-x.bottom/2&&(z.y+=tt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(ti)||(y=new Bt(y.x+z.x/E,y.y+z.y/E)),de.free(b),Bt.free(z),y},Pt=je.prototype,Pt.Cs=function(){return null},Pt.av=function(){return null},Pt.bs=function(a,y){this.pj.add(a,y)},Pt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Mr&&(y.$p=null)})};function Mc(a,y,x){function b(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-st>ot?y(x,E,rt):gn.requestAnimationFrame(b)}for(var E=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var rt=a,ot=x.callbackTimeout||300,st=+new Date;return gn.requestAnimationFrame(function(){b()}),null}Pt.Wz=function(a){return la?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Pt.Jx=function(a){return a===void 0&&(a={}),Mc(this,this.Xz,a)},Pt.Xz=function(a,y,x){var b=am(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case Vd+"data":E=b.getImageData(0,0,x.width,x.height);break;case Vd:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&qt('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:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function am(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&qt("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Ut(1/0,1/0):new Ut(2e3,2e3));var rt=y.position||null,ot=y.parts||null,st=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var vt=y.document||document,xt=y.elementFinished||null,Lt=y.showTemporary;Lt===void 0&&(Lt=!ft),y=y.showGrid,y===void 0&&(y=Lt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof st=="number"?st=new Si(st):st instanceof Si||qt("MakeImage padding must be a Margin or a number."),st.left=Math.max(st.left,0),st.right=Math.max(st.right,0),st.top=Math.max(st.top,0),st.bottom=Math.max(st.bottom,0),a.ib.Vc(!0),ft=new Il(null,vt,void 0,!0);var Ft=ft.context;if(!(E||z||ot||rt))return ft.width=a.Aa+Math.ceil(st.left+st.right),ft.height=a.ya+Math.ceil(st.top+st.bottom),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=vt,b.hs=xt,ff(a,b.context,st,new Ut(ft.width,ft.height),a.Ca,a.pa,ot,ut,Lt,y),b.context):(a.Xm=!1,ff(a,Ft,st,new Ut(ft.width,ft.height),a.Ca,a.pa,ot,ut,Lt,y),a.Xm=!0,ft.context);var Xt=a.Pp,Zt=a.documentBounds.copy();if(Zt.Fv(a.yb),Lt)for(var Qt=a.Wa.s,_t=Qt.length,te=0;te<_t;te++){var ye=Qt[te];if(ye.visible&&ye.isTemporary){ye=ye.Pa.s;for(var ze=ye.length,ri=0;ri<ze;ri++){var Ti=ye[ri];Ti.isInDocumentBounds&&Ti.isVisible()&&(Ti=Ti.actualBounds,Ti.w()&&Zt.ed(Ti))}}}if(Qt=new Bt(Zt.x,Zt.y),ot!==null){for(_t=new de(0,0,0,0),te=!0,ye=ot.iterator,ye.reset();ye.next();)ze=ye.value,ze instanceof $i&&(ri=ze.layer,ri!==null&&!ri.visible||ri!==null&&!Lt&&ri.isTemporary||!ze.isVisible()||(ze=ze.actualBounds,ze.w()&&(te?(te=!1,_t.assign(ze)):_t.ed(ze))));Zt.width=_t.width,Zt.height=_t.height,Qt.x=_t.x,Qt.y=_t.y}return rt!==null&&rt.w()&&(Qt=rt,z||(z=Xt)),_t=rt=0,st!==null&&(rt=st.left+st.right,_t=st.top+st.bottom),te=ye=0,E!==null&&(ye=E.width,te=E.height,isFinite(ye)&&(ye=Math.max(0,ye-rt)),isFinite(te)&&(te=Math.max(0,te-_t))),E!==null&&z!==null?(z==="NaN"&&(z=Xt),E.w()?(E=ye,Zt=te):isNaN(te)?(E=ye,Zt=Zt.height*z):(E=Zt.width*z,Zt=te)):E!==null?E.w()?(z=Math.min(ye/Zt.width,te/Zt.height),E=ye,Zt=te):isNaN(te)?(z=ye/Zt.width,E=ye,Zt=Zt.height*z):(z=te/Zt.height,E=Zt.width*z,Zt=te):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/Zt.width,(tt.height-_t)/Zt.height),z>Xt?(z=Xt,E=Zt.width,Zt=Zt.height):(E=tt.width,Zt=tt.height)):(E=Zt.width*z,Zt=Zt.height*z):(z=Xt,E=Zt.width,Zt=Zt.height),st!==null?(E+=rt,Zt+=_t):st=new Si(0),tt!==null&&(Xt=tt.width,tt=tt.height,isNaN(Xt)&&(Xt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Xt)&&(E=Math.min(E,Xt)),isFinite(tt)&&(Zt=Math.min(Zt,tt))),ft.width=Math.ceil(E),ft.height=Math.ceil(Zt),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=vt,b.hs=xt,ff(a,b.context,st,new Ut(Math.ceil(E),Math.ceil(Zt)),z,Qt,ot,ut,Lt,y),b.context):(a.Xm=!1,ff(a,Ft,st,new Ut(Math.ceil(E),Math.ceil(Zt)),z,Qt,ot,ut,Lt,y),a.Xm=!0,ft.context)}be.Object.defineProperties(je.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(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 Cu(this,gn.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 Cu(this,gn.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(gn,"resize",this.Ov,!1),this.removeEventListener(gn,"wheel",this.$j,!0),Tu===this&&(Tu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Sg(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)&&Rn(a,"0 <= value <= 1",je,"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),Bl(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),Bl(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),Bl(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),Bl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Rn(a,">= 0",je,"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&&Rn(a,">= 0",je,"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 b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(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 Rn(a,">= 0",je,"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||nm(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&&qt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=yg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Nu(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=Tg(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);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=b,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(gn,"pointermove",this.dk,!0),this.addEventListener(gn,"pointerdown",this.ui,!0),this.addEventListener(gn,"pointerup",this.fk,!0),this.addEventListener(gn,"pointerout",this.ek,!0),this.addEventListener(gn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(gn,"wheel",this.$j,!0),this.addEventListener(gn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(gn,"pointermove",this.dk,!0),this.removeEventListener(gn,"pointerdown",this.ui,!0),this.removeEventListener(gn,"pointerup",this.fk,!0),this.removeEventListener(gn,"pointerout",this.ek,!0),this.removeEventListener(gn,"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(gn,"wheel",this.$j,!0),this.removeEventListener(gn,"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=Bt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Vp(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?wu(this):(this.vb=!0,a=this.scale,wg(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)}Bt.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=_p(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=_p(this)),a.type!==Tn.Grid&&qt("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),Pu(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),wu(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||qt("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 Si(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===Ch&&Bl(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,Bl(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,Ng(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&&Ng(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!==ps&&Bl(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()||qt("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()||qt("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)):Rn(a,"> 0",je,"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)):Rn(a,"> 0",je,"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),Bl(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 Si(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&&qt("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();)ep(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Lh&&a!==ba&&a!==Cf&&qt("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 Ut(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 Si(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),be.Object.defineProperties(je,{licenseKey:{get:function(){return Gg.jc()},set:function(a){Gg.add(a.replace(/\s/g,""))}},version:{get:function(){return Gd}}}),je.prototype.makeImageData=je.prototype.Jx,je.prototype.makeImage=je.prototype.Wz,je.prototype.cacheGroupExternalLinks=je.prototype.Fu,je.prototype.addRenderer=je.prototype.bs,je.prototype.makeSVG=je.prototype.av,je.prototype.makeSvg=je.prototype.Cs,je.prototype.stopAutoScroll=je.prototype.ug,je.prototype.doAutoScroll=je.prototype.gs,je.prototype.isUnoccupied=je.prototype.Yj,je.prototype.raiseDiagramEvent=je.prototype.R,je.prototype.removeDiagramListener=je.prototype.am,je.prototype.addDiagramListener=je.prototype.Bj,je.prototype.findTreeRoots=je.prototype.yz,je.prototype.layoutDiagram=je.prototype.Uz,je.prototype.findTopLevelGroups=je.prototype.qz,je.prototype.findTopLevelNodesAndLinks=je.prototype.rz,je.prototype.ensureBounds=je.prototype.Va,je.prototype.findLinksByExample=je.prototype.ls,je.prototype.findNodesByExample=je.prototype.ms,je.prototype.findLinkForData=je.prototype.Kc,je.prototype.findNodeForData=je.prototype.ii,je.prototype.findPartForData=je.prototype.Lc,je.prototype.findLinkForKey=je.prototype.findLinkForKey,je.prototype.findNodeForKey=je.prototype.Vb,je.prototype.findPartForKey=je.prototype.findPartForKey,je.prototype.rebuildParts=je.prototype.Wd,je.prototype.transformViewToDoc=je.prototype.Ps,je.prototype.transformRectDocToView=je.prototype.zA,je.prototype.transformDocToView=je.prototype.op,je.prototype.centerRect=je.prototype.es,je.prototype.scrollToRect=je.prototype.tv,je.prototype.scroll=je.prototype.scroll,je.prototype.highlightCollection=je.prototype.Jz,je.prototype.highlight=je.prototype.Iz,je.prototype.selectCollection=je.prototype.rA,je.prototype.select=je.prototype.select,je.prototype.updateAllRelationshipsFromData=je.prototype.rp,je.prototype.updateAllTargetBindings=je.prototype.updateAllTargetBindings,je.prototype.commit=je.prototype.commit,je.prototype.rollbackTransaction=je.prototype.Kf,je.prototype.commitTransaction=je.prototype.eb,je.prototype.startTransaction=je.prototype.Ea,je.prototype.raiseChanged=je.prototype.g,je.prototype.raiseChangedEvent=je.prototype.cb,je.prototype.removeChangedListener=je.prototype.ik,je.prototype.addChangedListener=je.prototype.Pe,je.prototype.removeModelChangedListener=je.prototype.mA,je.prototype.addModelChangedListener=je.prototype.Yw,je.prototype.findLayer=je.prototype.Qj,je.prototype.removeLayer=je.prototype.kA,je.prototype.addLayerAfter=je.prototype.Cy,je.prototype.addLayerBefore=je.prototype.Ww,je.prototype.addLayer=je.prototype.Al,je.prototype.moveParts=je.prototype.moveParts,je.prototype.copyParts=je.prototype.Kj,je.prototype.removeParts=je.prototype.Is,je.prototype.remove=je.prototype.remove,je.prototype.add=je.prototype.add,je.prototype.clearDelayedGeometries=je.prototype.bx,je.prototype.setProperties=je.prototype.nm,je.prototype.attach=je.prototype.Du,je.prototype.set=je.prototype.set,je.prototype.resetInputOptions=je.prototype.Sx,je.prototype.setInputOption=je.prototype.sA,je.prototype.getInputOption=je.prototype.Ql,je.prototype.resetRenderingHints=je.prototype.Tx,je.prototype.setRenderingHint=je.prototype.Xx,je.prototype.getRenderingHint=je.prototype.Gf,je.prototype.maybeUpdate=je.prototype.bd,je.prototype.requestUpdate=je.prototype.$b,je.prototype.delayInitialization=je.prototype.Xy,je.prototype.isUpdateRequested=je.prototype.Pz,je.prototype.invalidateDocumentBounds=je.prototype.Ya,je.prototype.findObjectsNear=je.prototype.og,je.prototype.findPartsNear=je.prototype.mz,je.prototype.findObjectsIn=je.prototype.Cf,je.prototype.findPartsIn=je.prototype.ux,je.prototype.findObjectsAt=je.prototype.ji,je.prototype.findPartsAt=je.prototype.lz,je.prototype.findObjectAt=je.prototype.ic,je.prototype.findPartAt=je.prototype.Ol,je.prototype.focusObject=je.prototype.zz,je.prototype.alignDocument=je.prototype.Jy,je.prototype.zoomToRect=je.prototype.BA,je.prototype.zoomToFit=je.prototype.zoomToFit,je.prototype.diagramScroll=je.prototype.kx,je.prototype.focus=je.prototype.focus;var wf=new Ge,sm=null,la=gn.document!==void 0,Wd=null,od="",ps=new rn(je,"None",0),al=new rn(je,"Uniform",1),ad=new rn(je,"UniformToFill",2),Ac=new rn(je,"CycleAll",10),zg=new rn(je,"CycleNotDirected",11),jg=new rn(je,"CycleNotDirectedFast",12),Hg=new rn(je,"CycleNotUndirected",13),Zg=new rn(je,"CycleDestinationTree",14),Wg=new rn(je,"CycleSourceTree",15),Ch=new rn(je,"DocumentScroll",1),kc=new rn(je,"InfiniteScroll",2),Lh=new rn(je,"TreeParentCollapsed",21),ba=new rn(je,"AllParentsCollapsed",22),Cf=new rn(je,"AnyParentsCollapsed",23),Gg=new pn,Gd="2.3.10",Vd="image",Ec=null,lm=!1;function ds(){if(la){var a=gn.document.createElement("canvas"),y=a.getContext("2d"),x=cn("7ca11abfd022028846");y[x]=cn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Hn.Dx+"4ae6247590da4bb21c324ba3a84e385776",vi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",me.za],E=1;5>E;E++)y[cn("7ca11abfd7330390")](cn(b[E-1]),10,15*E);for(y[x]=cn("39f046ebb36e4b"),x=1;5>x;x++)y[cn("7ca11abfd7330390")](cn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(vi.prototype.Cd=vi.prototype.Eu),Ec=a}}je.className="Diagram",je.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=gn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof je?y.H:null},je.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},je.useDOM=function(a){la=a?gn.document!==void 0:!1},je.isUsingDOM=function(){return la},je.None=ps,je.Uniform=al,je.UniformToFill=ad,je.CycleAll=Ac,je.CycleNotDirected=zg,je.CycleNotDirectedFast=jg,je.CycleNotUndirected=Hg,je.CycleDestinationTree=Zg,je.CycleSourceTree=Wg,je.DocumentScroll=Ch,je.InfiniteScroll=kc,je.TreeParentCollapsed=Lh,je.AllParentsCollapsed=ba,je.AnyParentsCollapsed=Cf;function um(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Kd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=gn[cn("76a715b2f73f148a")][cn("72ba13b5")]||"";if(a.Rc=!0,la){var b=je[cn("76a115b6ed251eaf4692")];if(b)for(var E=Gg.iterator;E.next()&&(b=E.value,b=cn(b).split(cn("39e9")),!(6>b.length));){var z=cn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=cn(Hn[cn("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=gn[cn("74a900bae4370f8b51")][cn("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[cn("73a612b6fb191d")](cn("3aad1ab6e022098b4dc4")),z=cn(b[2]),-1<tt&&(rt=rt[cn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[cn("76ad18b4f73e")],rt=x[cn("73a612b6fb191d")](cn("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[cn("73a612b6fb191d")](z),0>tt&&z!==cn("7da71ca0ad381e90")&&(tt=y[cn("73a612b6fb191d")](cn("76a715b2ef3e149757"))),0>tt&&(tt=y[cn("73a612b6fb191d")](cn("76a715b2ef3e149757"))),0>tt&&(tt=y[cn("73a612b6fb191d")](cn("2bfa41fdb3784bca12"))),0>tt&&(tt=x[cn("73a612b6fb191d")](cn("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[cn("73a612b6fb191d")](cn("35"))||y[cn("73a612b6fb191d")](cn("35"))===-1),!a.Rc||x[cn("73a612b6fb191d")](cn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[cn("73a612b6fb191d")](z)),!a.Rc)||(tt=gn[cn("76a715b2f73f148a")][cn("69ad17a1e03e")],rt=tt[cn("73a612b6fb191d")](cn("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[cn("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=gn.document.createElement("div");for(var ot=b[0].replace(/[A-Za-z]/g,"");4>ot.length;)ot+="9";if(rt=ot,ot=ot.substr(ot.length-4),b="",b+=["gsh","gsf"][parseInt(ot.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(ot.substr(0,1),10)%4],tt[cn("79a417a0f0181a8946")]=b,gn.document[cn("78a712aa")]){gn.document[cn("78a712aa")][cn("7bb806b6ed32388c4a875b")](tt),ot=gn.getComputedStyle(tt).getPropertyValue(cn("78a704b7e62456904c9b12701b6532a8"));var st=gn.getComputedStyle(tt).getPropertyValue(cn("75b817b0ea2202"));if(gn.document[cn("78a712aa")][cn("68ad1bbcf533388c4a875b")](tt),ot){if(tt=gn[cn("77a902b0eb1b1e804a8a")],st==="0."+parseInt(rt,10)%100||ot.indexOf(parseInt(z[1]+z[2],16))!==-1&&ot.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(cn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(b===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[cn("76ad18b4f73e")],E=x[cn("73a612b6fb191d")](cn("35e7"))+2;E<ut;E++)y+=x[E];x=y[cn("73a612b6fb191d")](cn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[cn("73a612b6fb191d")](cn("35")))}}}return 0<a.Rc&&a!==a.wy}um.className="DiagramHelper";function th(a){this.j=a===void 0?new Bt:a,this.o=new Bt}be.Object.defineProperties(th.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 Fc="DraggingInfo";th.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function at(){this.reset()}at.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Ut(NaN,NaN).freeze(),this.gridSnapCellSpot=hr,this.gridSnapOrigin=new Bt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},at.className="DraggingOptions";function dt(a,y){if(typeof a=="string"||gn.Element&&a instanceof Element)var x=je.call(this,a)||this;else x=je.call(this)||this,y=a;return ht(x),y&&x.nm(y),x}Me(dt,je);function ht(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Fr,a.layout=new Ya}dt.prototype.reset=function(){je.prototype.reset.call(this),ht(this)},dt.className="Palette";function pt(a,y){if(typeof a=="string"||gn.Element&&a instanceof Element)var x=je.call(this,a)||this;else x=je.call(this)||this,y=a;var b=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 $i;var E=new Dr;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Si(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Yt,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var tt=z.viewportBounds,rt=b.lastInput.documentPoint;z.position=new Bt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){b.Ya(),Rt(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&Rt(b)},x.autoScale=al,x.vb=!1,y&&Object.assign(x,y),x}Me(pt,je),pt.prototype.computePixelRatio=function(){return 1},pt.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(jd(this),this.ql===null){var x=new Il(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),At(this)}finally{this.ta=a,this.ib=y}}}je.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&qt("No div specified"),this.ta===null&&qt("No canvas specified"),!(this.ta instanceof Cu)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){jd(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?At(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,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function At(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=de.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Pu(y,E),de.free(E),rs(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),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var rt=y[tt],ot=a;if(rt.visible&&rt.opacity!==0){var st=rt.diagram.grid.part;if(!x&&rt.isTemporary)b&&st.layer===rt&&(rt=$u(rt,E),st.gc(E,ot),E.globalAlpha=rt);else{for(var ut=$u(rt,E),ft=ot.scale,vt=de.alloc(),xt=rt.Pa.s,Lt=xt.length,Ft=0;Ft<Lt;Ft++){var Xt=xt[Ft];(b||Xt!==st)&&rt.Oj(E,Xt,ot,null,ft,vt,!1)}de.free(vt),E.globalAlpha=ut}}}}}function Rt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Ut.alloc();E.h(x.width,x.height),b.desiredSize=E,Ut.free(E),a=2/a.scale,b instanceof Dr&&(b.strokeWidth=a),y.location=new Bt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return lr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Rt(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=b,this.R("ViewportBoundsChanged",this.fc,a))},be.Object.defineProperties(pt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pt&&qt("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,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),Rt(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),Rt(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)}}}),pt.className="Overview";function Yt(){Wo.call(this),this.j=null}Me(Yt,Wo),Yt.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 Bt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Bt(a.x-this.j.x,a.y-this.j.y)),!0)},Yt.prototype.doActivate=function(){this.j=null,Wo.prototype.doActivate.call(this)},Yt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Yt.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 b=a.firstInput.documentPoint;x=x.location,this.j=new Bt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Bt(a.x-this.j.x,a.y-this.j.y)}}},Yt.className="OverviewDraggingTool";function Kt(){_i(this),this.H=Tu,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=lr,this.hb=!0,this.cg=null,this.ob=200}Kt.prototype.toString=function(){return"CommandHandler"},Kt.prototype.Xe=function(a){this.H=a},Kt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=kr?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&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"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&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():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&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()},Kt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Kt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Co&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Kt.prototype.canStopCommand=function(){return!0},Kt.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 b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Kt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Kt.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 Ln,x=a.selection.iterator;x.next();)hd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Kt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Kt.prototype.copySelection=function(){var a=this.diagram,y=new Ln;for(a=a.selection.iterator;a.next();)hd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Kt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Kt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Kt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Kt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Wd=null,od="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new pn,x.addAll(z),Wd=x,od=y.model.dataFormat}}y.R("ClipboardChanged",x)},Kt.prototype.pasteFromClipboard=function(){var a=new Ln,y=Wd;if(y===null)return a;var x=this.diagram;if(od!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,tt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=tt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},Kt.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 b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);nd(y,z,new Bt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Kt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Wd===null||Wd.count===0||od!==a.model.dataFormat)},Kt.prototype.undo=function(){this.diagram.undoManager.undo()},Kt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Kt.prototype.redo=function(){this.diagram.undoManager.redo()},Kt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Kt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ps&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Kt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ps?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Kt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ps&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Kt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ps?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Kt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Kt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Kt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Nu(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=lr):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),sf(y)},Kt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Kt.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(ot){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;Nu(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=le(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var ot=E.pop();0<E.length&&ot instanceof di&&ot.isTreeExpanded&&(!(ot instanceof Mr)||ot.isSubGraphExpanded);)ot=E.pop();0<E.length?(ot instanceof $i&&y.tv(ot.actualBounds),ot instanceof di&&!ot.isTreeExpanded&&(ot.isTreeExpanded=!0),ot instanceof Mr&&!ot.isSubGraphExpanded&&(ot.isSubGraphExpanded=!0)):(ot instanceof $i&&y.es(ot.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){De(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function le(a,y,x){if(y.isVisible())return x;if(y instanceof oo)le(a,y.adornedPart,x);else if(y instanceof Zn){var b=y.fromNode;b!==null&&le(a,b,x),y=y.toNode,y!==null&&le(a,y,x)}else y instanceof di&&(b=y.labeledLink,b!==null&&le(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),le(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),le(a,y,x));return x}Kt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof $i)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Kt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Nu(y.animationManager,"Collapse Tree");var x=new pn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof di&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Kt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof di&&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 di&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Kt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Nu(y.animationManager,"Expand Tree");var x=new pn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof di&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Kt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof di)||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 di&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Kt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new pn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&E.add(tt)}for(var rt=new pn,ot=E.iterator;ot.next();){var st=ot.value;z=!1;for(var ut=E.iterator;ut.next();)if(st.Td(ut.value)){z=!0;break}z||rt.add(st)}if(0<rt.count){var ft=rt.first().containingGroup;if(ft!==null)for(;ft!==null;){E=!1;for(var vt=rt.iterator;vt.next();)if(!vt.value.Td(ft)){E=!0;break}if(E)ft=ft.containingGroup;else break}if(x instanceof Mr)Rl(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var xt=y.copyNodeData(x);ln(xt)&&(y.xf(xt),b=a.ii(xt))}if(b!==null){ft!==null&&this.isValidMember(ft,b)&&(b.containingGroup=ft);for(var Lt=rt.iterator;Lt.next();){var Ft=Lt.value;this.isValidMember(b,Ft)&&(Ft.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Kt.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 _e(a){var y=Di();for(a=a.iterator;a.next();){var x=a.value;x instanceof Zn||y.push(x)}a=new Ln,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,tt=0;tt<x;tt++)if(E.Td(y[tt])){z=!1;break}z&&a.add(E)}return $n(y),a}Kt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Zn)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},Kt.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 b=new pn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Mr&&z.canUngroup()&&b.add(z)}var tt=new pn;if(0<b.count){y.clearSelection(!0);for(var rt=b.iterator;rt.next();){var ot=rt.value;ot.expandSubGraph();var st=ot.containingGroup,ut=st!==null&&st.data!==null?x.wa(st.data):void 0;tt.addAll(ot.memberParts);for(var ft=tt.iterator;ft.next();){var vt=ft.value;if(vt.isSelected=!0,!(vt instanceof Zn)){var xt=vt.data;xt!==null?x.mp(xt,ut):vt.containingGroup=st}}y.remove(ot)}}y.R("SelectionUngrouped",b,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Kt.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 Mr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Mr&&y.canUngroup())return!0;return!1},Kt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=_e(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Kt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Nu(y.animationManager,"Collapse SubGraph");var x=new pn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Mr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Kt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Mr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Mr&&y.isSubGraphExpanded)return!0;return!1},Kt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Nu(y.animationManager,"Expand SubGraph");var x=new pn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Mr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Kt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Mr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Mr&&!y.isSubGraphExpanded)return!0;return!1},Kt.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 b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Oo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Kt.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 Oo))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 Oo&&x.editable}),a!==null))return!0;return!1},Kt.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 b=y.lastInput,E=null;a instanceof Pe?E=a.ga(ji):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Bt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,Qu(x,!1,a)}},Kt.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)},Kt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new Ge,a===null)return b;for(var z=a.iterator;z.next();)Bu(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Zn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},be.Object.defineProperties(Kt.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||qt("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}}}),Kt.className="CommandHandler",Qp=function(){return new Kt};function Pe(){_i(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Bt(NaN,NaN).freeze(),this.jd=Dn,this.Ab=new vi,this.wh=new vi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Pr,this.uc=new de(NaN,NaN,NaN,NaN).freeze(),this.Ib=new de(NaN,NaN,NaN,NaN).freeze(),this.dc=new de(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ko,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 Fn,Cn,Hi,Yi,sr,Ar,Xr,jr,$r,bo;Pe.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=li(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Pe.prototype.Vw=function(a){var y=this.Dh;if(yn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Pe.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Pe.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},Pe.prototype.copy=function(){return this.clone()},Pt=Pe.prototype,Pt.qb=function(a){a.classType===Zn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:qt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Pe&&(this.stretch=a)},Pt.toString=function(){return wi(this.constructor)+"#"+Cr(this)},Pt.th=function(){this.A!==null&&(this.A.nc=!0)};function Rr(a){a.A===null?a.A=new Tc:a.A.nc&&(a.A=a.A.copy())}Pt.Xc=function(){if(this.ba===null){var a=new Vg;a.Xi=Gi,a.yj=Gi,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Pt.cb=function(a,y,x,b,E,z,tt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,b,E,z,tt),x===this&&a===To&&$a(this)&&Vo(this,rt,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 Ge),tt=z.undoManager.transactionLevel===0,a.startCondition===$h?tt=!0:a.startCondition===Od&&(tt=!1),tt?(z=new is,Xp(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Nu(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Tn&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)rt=x[E],rt instanceof Tn&&Jd(rt,function(ot){ot.data!==null&&ot.l&16777216&&ot.La(y)})};function Vo(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,tt=null;if(z.sourceName!==null){if(tt=MS(z,b,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,b)}else{if(rt=b.data,rt===null)continue;var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,rt,x,b)}tt===a&&(rt=b.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}Pt.ks=function(a){return this.bindingId===a?this:null},Pt.g=function(a,y,x){this.cb(To,a,this,y,x)},Pt.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new vi);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Da(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Pt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?mi(a.x,a.y,0,0,0,b.height)<=y||mi(a.x,a.y,0,b.height,b.width,b.height)<=y||mi(a.x,a.y,b.width,b.height,b.width,0)<=y||mi(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Pt.se=function(){return!0},Pt.ca=function(a){var y=Bt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Bt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),tt=z/2,rt=this.naturalBounds;b=this.Df()*b.scale;var ot=1/b;if(rt.width*b<E&&rt.height*b<E)return a=Vn(x.x-tt*ot,x.y-tt*ot,x.width+z*ot,x.height+z*ot,y.x,y.y),Bt.free(y),a}return E=!1,(this instanceof oo||this instanceof Dr?Vn(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)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Bt.free(y),E},Pt.gh=function(a){var y=this.naturalBounds;return Vn(0,0,y.width,y.height,a.x,a.y)},Pt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=de.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Bt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Bt.free(E),de.free(y),b},Pt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Bt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Bt.free(E),b},Pt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Bt.allocAt(0,0),E=Bt.allocAt(0,x.height),z=Bt.allocAt(x.width,x.height),tt=Bt.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))rt=!0;else{x=de.allocAt(0,0,x.width,x.height);var ot=Bt.allocAt(a.x,a.y);x.ca(y.Cd(ot))?rt=!0:(ot.h(a.x,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.y),x.ca(y.Cd(ot))&&(rt=!0)))),Bt.free(ot),de.free(x),!rt&&(me.us(a,b,E)||me.us(a,E,z)||me.us(a,z,tt)||me.us(a,tt,b))&&(rt=!0)}return Bt.free(b),Bt.free(E),Bt.free(z),Bt.free(tt),rt},Pt.ga=function(a,y){if(y===void 0&&(y=new Bt),a instanceof dn){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},Pt.mi=function(a){a===void 0&&(a=new de);var y=this.naturalBounds,x=this.oe,b=Bt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),oi(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),oi(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),oi(a,b.x,b.y,0,0),Bt.free(b),a},Pt.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},Pt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Pt.qs=function(a,y){return y===void 0&&(y=new Bt),y.assign(a),this.oe.Cd(y),y},Pt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Pt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,st=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,me.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(tt=a*rt+y*st+ft,a=a*ot+y*ut+vt,y=x*rt+b*st+ft,x=x*ot+b*ut+vt,E.h(0,0),b=this.naturalBounds,x=me.Ff(0,0,b.width,b.height,tt,a,y,x,E),E.transform(z),x)},Pe.prototype.measure=function(a,y,x,b){if(ll(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+tt:a,y=isFinite(E.width)?E.width+tt:y):(a=isFinite(E.width)?E.width+tt:a,y=isFinite(E.height)?E.height+tt:y),E=x||0,tt=b||0;var rt=this instanceof Tn;switch(Os(this,!0)){case Cn:tt=E=0,rt&&(y=a=1/0);break;case Fn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case Yi:isFinite(a)&&a>x&&(E=a),tt=0,rt&&(y=1/0);break;case sr:isFinite(y)&&y>b&&(tt=y),E=0,rt&&(a=1/0)}rt=this.maxSize;var ot=this.minSize;E>rt.width&&ot.width<rt.width&&(E=rt.width),tt>rt.height&&ot.height<rt.height&&(tt=rt.height),x=Math.max(E,ot.width),b=Math.max(tt,ot.height),rt.width<x&&(x=Math.min(ot.width,x)),rt.height<b&&(b=Math.min(ot.height,b)),a=Math.min(rt.width,a),y=Math.min(rt.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||qt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ma(this,!1)}},Pe.prototype.Wl=function(){},Pe.prototype.Dd=function(){return!1},Pe.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=de.alloc();z.assign(this.Ib),this.Ib.ka(),Cs(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Ah(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof Oo&&(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()||qt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ou(this,!1),de.free(z)},Pt=Pe.prototype,Pt.eh=function(){};function ms(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,b+=y,E+=tt,y=Os(a,!0),x===b&&z===E&&(y=Cn),y){case Cn:(x>b||z>E)&&(Ma(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Fn:Ma(a,!0),a.measure(b,E,0,0);break;case Yi:Ma(a,!0),a.measure(b,z,0,0);break;case sr:Ma(a,!0),a.measure(x,E,0,0)}}}Pt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),_n(a,y)||(x.oh(),this.Pn(x)))},Pt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof di&&G1(a,this))},Pt.gc=function(a,y){if(!xl(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof Tn&&Ah(this),tt=this.Ib;if(z){var rt=this.Ib,ot=this.dc,st=this.areaBackground,ut=this.Ma;st===null&&ut===null||a.yc(),st!==null&&(ha(this,a,st,!0,!0,ot,rt),st instanceof yo&&st.type===Cl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(st)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(ha(this,a,ut,!0,!1,ot,rt),ut instanceof yo&&ut.type===Cl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ut)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&Xa(this),st=this.part,ot=!1;var ft=0;st&&y.Gf("drawShadows")&&(ot=st.isShadowed)&&(ut=st.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var vt;if(!(vt=y.$i||!ut)){var xt=this.naturalBounds;vt=this.wh;var Lt=vt.m11,Ft=vt.m21,Xt=vt.dx,Zt=vt.m12,Qt=vt.m22,_t=vt.dy,te,ye=te=0;vt=te*Lt+ye*Ft+Xt;var ze=te*Zt+ye*Qt+_t;te=xt.width+ft,ye=0;var ri=te*Lt+ye*Ft+Xt;te=te*Zt+ye*Qt+_t,ye=Math.min(vt,ri);var Ti=Math.min(ze,te),Ci=Math.max(vt+0,ri)-ye,jn=Math.max(ze+0,te)-Ti;vt=ye,ze=Ti,te=xt.width+ft,ye=xt.height+ft,ri=te*Lt+ye*Ft+Xt,te=te*Zt+ye*Qt+_t,ye=Math.min(vt,ri),Ti=Math.min(ze,te),Ci=Math.max(vt+Ci,ri)-ye,jn=Math.max(ze+jn,te)-Ti,vt=ye,ze=Ti,te=0,ye=xt.height+ft,ri=te*Lt+ye*Ft+Xt,te=te*Zt+ye*Qt+_t,ye=Math.min(vt,ri),Ti=Math.min(ze,te),Ci=Math.max(vt+Ci,ri)-ye,jn=Math.max(ze+jn,te)-Ti,vt=ye,ze=Ti,ft=y.viewportBounds,xt=ft.x,Lt=ft.y,vt=!(vt>ft.width+xt||xt>Ci+vt||ze>ft.height+Lt||Lt>jn+ze)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof Oo&&(a.font=this.font),vt){if(ze=rt.se()?rt.naturalBounds:rt.actualBounds,Ci=Math.max(tt.x,ze.x),jn=Math.max(tt.y,ze.y),ft=Math.min(tt.right,ze.right)-Ci,xt=Math.min(tt.bottom,ze.bottom)-jn,Lt=this.tb,Lt!==null&&(Ci=Lt.x,jn=Lt.y,ft=Lt.width,xt=Lt.height),Ci>tt.width+tt.x||tt.x>ze.width+ze.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Ci,jn,ft,xt),a.clip()}if(ut){if(!st.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}ot&&(ze=st.shadowOffset,a.Ev(ze.x*y.scale*this.scale*y.Mb,ze.y*y.scale*this.scale*y.Mb,st.shadowBlur),eh(a),a.shadowColor=st.shadowColor)}ot&&this.shadowVisible===!0?eh(a):ot&&this.shadowVisible===!1&&Iu(a),st=this.naturalBounds,this.areaBackground!==null&&(a.yc(),sl(this,a,st,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&Ga(this,rt)&&this.shadowVisible===null&&Iu(a),this.Ma!==null&&(a.yc(),Vs(this,a,st,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||Ga(this,rt))?(Ul(this,!0),this.shadowVisible===null&&Iu(a)):Ul(this,!1),this.hh(a,y),ot&&this.l&512&&eh(a),ut&&ot&&Iu(a),vt&&(a.restore(),a.Vc(this instanceof Tn)),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=b),this.filter!==""&&(a.filter=E)}}};function Ga(a,y){return y===null?!1:(Ah(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Tn.Auto||y.type===Tn.Spot)&&y.Pb()!==a)}Pt.Dv=function(){};function sl(a,y,x,b){ha(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof yo&&a.areaBackground.type===Cl?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Vs(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,rt=x.width+E,ot=x.height+E;ha(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof yo&&a.Ma.type===Cl?(y.beginPath(),y.rect(z-E/2,tt-E/2,rt,ot),y.ng(a.Ma)):y.fillRect(z-E/2,tt-E/2,rt,ot)}function cs(a,y,x){for(var b=y.O.s,E=b.length,z=-1,tt=0;tt<E;tt++)if(b[tt]===a){z=tt;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===Tn.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 xl(a,y,x){if(!(y instanceof _s))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 b=a.panel,E=a.nk(y);if(a.kk(y,x,E))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):b&&cs(a,b,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),eh(y),y.shadowColor=a.shadowColor}a instanceof Oo&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof Tn;var rt=a instanceof Tn?Ah(a):!1;a.l&4096&&Xa(a);var ot=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&rt?(Kg(y,1,0,0,1,0,0),a.svg=y.ad):z?(Kg(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):Kg(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var st=tt.copy().Vj();y.rb.ha=[st.m11,st.m12,st.m21,st.m22,st.dx,st.dy],sl(a,y,E,ot),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),a.background!==null&&(z?(rt&&(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),Vs(a,y,E,ot),rt&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],Vs(a,y,E,ot)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,E=a.part,rt=!1,E&&x.Gf("drawShadows")&&(rt=E.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&eh(y),rt&&a.shadowVisible===!0?eh(y):rt&&a.shadowVisible===!1&&Iu(y),E=a.panel,rt&&Ga(a,E)&&a.shadowVisible===null&&Iu(y),y.Il&&(st=x.computePixelRatio(),st="drop-shadow("+y.shadowOffsetX/st+"px "+y.shadowOffsetY/st+"px "+y.shadowBlur/st/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",st),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",st)),rt&&(a.Ma!==null||a.areaBackground!==null||Ga(a,E))?(Ul(a,!0),a.shadowVisible===null&&Iu(y)):Ul(a,!1),E=rt,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,rt=z?a.svg:y.yd,st=a.svg,!z&&st!==null&&rt!==st&&st.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,b,ot,rt),Bs(y,st),!0):(a.svg=rt,tt!==null&&rt===null&&(dm(y),y.nh.pop()),rt===null||(a.$o(y,b,ot,rt),y.Il&&(x=x.computePixelRatio(),a.Dv(rt,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&eh(y),a.Dd()&&Iu(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&rt.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&rt.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(rt):y.Nj.prepend(rt),y.ti=rt):b!==null&&cs(a,b,rt),tt!==null&&tt(a,rt)),!0)}Pt.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,tt=z.width,x=z.height),z=b.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+Po++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:tt,height:x}),this instanceof Tn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Bs(a,b)};function Bs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function fs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Jn(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}Pt.hh=function(){},Pt.lv=function(){this.Uc=!0},Pt.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 b=this.transform,E=this instanceof Tn?Ah(this):!1;if(!(this instanceof Tn&&E))if(this instanceof Rs){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof Tn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Dr){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.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):(tt=b.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],sl(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(tt=y.gd.getAttribute("filter"),tt!==null&&a.ad.setAttribute("filter",tt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&cm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(cm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Tn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Vs(this,a,this.naturalBounds,this.actualBounds),y.Ma?(cm(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&&cm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Pt.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 ha(a,y,x,b,E,z,tt){if(x!==null){var rt=1,ot=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Mh)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var st=a.kq();if(rt=z.width,ot=z.height,E?(rt=tt.width,ot=tt.height):b||(rt+=st,ot+=st),(z=y instanceof Ud)&&x.xe&&(x.type===Ff||x.yk===rt&&x.ft===ot))var ut=x.xe;else{var ft=0,vt=0,xt=0,Lt=0,Ft=0,Xt=0;if(Xt=Ft=0,E?(Ft=tt.x,Xt=tt.y):b||(Ft-=st/2,Xt-=st/2),ft=x.start.x*rt+x.start.offsetX,vt=x.start.y*ot+x.start.offsetY,xt=x.end.x*rt+x.end.offsetX,Lt=x.end.y*ot+x.end.offsetY,ft+=Ft,xt+=Ft,vt+=Xt,Lt+=Xt,x.type===ih)ut=y.createLinearGradient(ft,vt,xt,Lt);else if(x.type===Cl)Xt=isNaN(x.endRadius)?Math.max(rt,ot)/2:x.endRadius,isNaN(x.startRadius)?(Ft=0,Xt=Math.max(rt,ot)/2):Ft=x.startRadius,ut=y.createRadialGradient(ft,vt,Ft,xt,Lt,Xt);else if(x.type===Ff)try{ut=y.createPattern(x.pattern,"repeat")}catch(Qt){ut=null}if(x.type!==Ff&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ut.addColorStop(E.key,E.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=ot),ut===null&&x.type===Ff&&x.yk!==-1)){x.yk=-1;var Zt=a.diagram;Zt!==null&&x.yk===-1&&De(function(){Zt.redraw()},600)}}b?y.fillStyle=ut:y.strokeStyle=ut}}}Pt.rg=function(a){if(a instanceof Tn)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},Pt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Pt.If=function(){for(var a=this instanceof Tn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Xa(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Ol(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)}Ol(a,!1),Pl(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Pl(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,Pl(a,!1)))}Pt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Bt.alloc();z.yi(y,x,b,E,ji),a.rotate(this.Kb,z.x,z.y),Bt.free(z)}},Pt.v=function(a){if(!ll(this)){a===void 0&&(a=!1),Ma(this,!0),Ou(this,!0);var y=this.panel;y===null||a||y.v()}},Pt.Uj=function(){ll(this)||(Ma(this,!0),Ou(this,!0))};function ws(a){if(!Cs(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof di&&a.Bd(),y.$b())),Ou(a,!0)}}Pt.Uk=function(){!(this.l&2048)&&(Ol(this,!0),Pl(this,!0))},Pt.Wu=function(){Pl(this,!0)},Pt.N=function(){var a=this.part;a!==null&&a.N()};function Os(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Tn.Table?ou(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Tn.Auto&&b.Pb()===a?Va(a,Fn,y):x===Ar?b!==null?b.type===Tn.Spot&&b.Pb()===a?Va(a,Fn,y):(x=b.defaultStretch,x===Ar?Va(a,Cn,y):Va(a,x,y)):Va(a,Cn,y):Va(a,x,y)}function ou(a,y,x,b){var E=a.stretch;if(E!==Ar)return Va(a,E,b);var z=E=null;switch(y.stretch){case sr:z=!0;break;case Fn:z=!0}switch(x.stretch){case Yi:E=!0;break;case Fn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Yi||y===Fn),z===null&&(z=y===sr||y===Fn),E===!0&&z===!0?Va(a,Fn,b):E===!0?Va(a,Yi,b):z===!0?Va(a,sr,b):Va(a,Cn,b)}function Va(a,y,x){if(x)return y;if(y===Cn||(x=a.desiredSize,x.w()))return Cn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Yi)return Cn;if(y===Fn)return sr}else{if(y===sr)return Cn;if(y===Fn)return Yi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===sr)return Cn;if(y===Fn)return Yi}else{if(y===Yi)return Cn;if(y===Fn)return sr}return y}function Ul(a,y){a.l=y?a.l|512:a.l&-513}function $a(a){return(a.l&1024)!==0}function Nc(a,y){a.l=y?a.l|1024:a.l&-1025}function Ol(a,y){a.l=y?a.l|2048:a.l&-2049}function Pl(a,y){a.l=y?a.l|4096:a.l&-4097}function ll(a){return(a.l&8192)!==0}function Ma(a,y){a.l=y?a.l|8192:a.l&-8193}function Cs(a){return(a.l&16384)!==0}function Ou(a,y){a.l=y?a.l|16384:a.l&-16385}Pt.Gj=function(){this.svg=null},Pt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Pt.Av=function(){},Pt.zv=function(a){return this.pa=a,ws(this),!0},Pt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Pt.kq=function(){return 0};function Xd(a){var y=a.part;if(y instanceof di&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||G1(y,a)}}function Yy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Tn?a instanceof di?a.Bd():a.qm(a,function(x){Xd(x)}):Xd(a))}Pt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Sa(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&c1(a)&&qt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new pn),this.localBindings.add(E),this},Pt.set=function(a){return Object.assign(this,a),this},Pt.Du=function(a){return nv(this,a),this},Pt.apply=function(a){return a(this),this},Pt.nm=function(a){return zd(this,a),this},Pt.pz=function(){return this.ih()},Pt.ih=function(){for(var a=this instanceof Tn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Pt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Ge),this.animationTriggers.add(a.propertyName,a),this};function wl(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=Lf.I(a);typeof z=="function"?(x=li(arguments),b=z(x),ln(b)||qt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=gn.go[a]}if(b===null&&(E!=null&&E.constructor||qt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof je&&1<x.length){z=b;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(Sg(z,tt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?qt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):nv(b,z);return b}function nv(a,y){if(typeof y=="string")if(a instanceof Oo)a.text=y;else if(a instanceof Dr)a.figure=y;else if(a instanceof Rs)a.source=y;else if(a instanceof Tn)y=Jl.I(y),y!==null&&(a.type=y);else if(a instanceof yo){var x=gi(yo,y);x!==null?a.type=x:qt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof kn?(y=gi(kn,y),y!==null&&(a.type=y)):a instanceof Vr&&(y=gi(Vr,y),y!==null&&(a.type=y));else if(y instanceof Pe)a instanceof Tn||qt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Aa){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Aa?km(b,y):qt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof rn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ea)a.type=y;else if(y instanceof Sa)a instanceof Pe||a instanceof Aa?a.bind(y):qt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Xl)a instanceof Pe?a.Jv(y):qt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof aa)a instanceof kn&&a.type===kn.o?a.figures.add(y):qt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Vr)a instanceof aa?a.segments.add(y):qt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof qo)a instanceof je||a instanceof Mr?a.layout=y:qt("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++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof yo){x=new nr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);zd(a,x)}else if(a instanceof Aa){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&qt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&qt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new nr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);zd(a,E)}else zd(a,y);else qt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function bh(a,y){Lf.add(a,y)}function hm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}be.Object.defineProperties(Pe.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Tc),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 Tc),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 Tc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Rr(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&&(Rr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ms},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new sd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ms&&(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 sd),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 sd),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ti},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new sd),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Ar},set:function(a){var y=this.stretch;y!==a&&(Rr(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&&(Rr(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)&&Rn(a,"0 <= value <= 1",Pe,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(_d(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(_d(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(),Yy(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&&Bc(a,"GraphObject.areaBackground"),a instanceof yo&&a.freeze(),Rr(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&&Bc(a,"GraphObject.background"),a instanceof yo&&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 $i)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,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Bt(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&qt("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,Yy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Dr&&this.qc(),this.g("desiredSize",b,a),$a(this)&&(a=this.part,a!==null&&(Vo(this,a,"width"),Vo(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 Ut(a,this.jd.height).freeze(),this.v(),this instanceof Dr&&this.qc(),this.g("desiredSize",y,a),$a(this)&&(a=this.part,a!==null&&Vo(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 Ut(this.jd.width,a).freeze(),this.v(),this instanceof Dr&&this.qc(),this.g("desiredSize",y,a),$a(this)&&(a=this.part,a!==null&&Vo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:se},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(),Rr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Bn},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(),Rr(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 Si(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&&Xa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Xa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Rr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Cn},set:function(a){this.reshapingBehavior!==a&&(Rr(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()&&qt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),ws(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&&Rn(a,">= 0",Pe,"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&&Rn(a,">= 1",Pe,"columnSpan"),Rr(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&&Rn(a,">= 0",Pe,"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&&Rn(a,">= 1",Pe,"rowSpan"),Rr(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&&(Rr(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 di||qt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Wv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,X1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Gi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Xd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Rn(a,">= 0",Pe,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Xd(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),Xd(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&&Rn(a,">= 0",Pe,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Gi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Xd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Rn(a,">= 0",Pe,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Xd(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),Xd(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&&Rn(a,">= 0",Pe,"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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(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&&(Rr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Pe.prototype.trigger=Pe.prototype.Jv,Pe.prototype.findBindingPanel=Pe.prototype.ih,Pe.prototype.findTemplateBinder=Pe.prototype.pz,Pe.prototype.setProperties=Pe.prototype.nm,Pe.prototype.apply=Pe.prototype.apply,Pe.prototype.attach=Pe.prototype.Du,Pe.prototype.set=Pe.prototype.set,Pe.prototype.isEnabledObject=Pe.prototype.If,Pe.prototype.isVisibleObject=Pe.prototype.Ed,Pe.prototype.isContainedBy=Pe.prototype.rg,Pe.prototype.getNearestIntersectionPoint=Pe.prototype.rs,Pe.prototype.getLocalPoint=Pe.prototype.qs,Pe.prototype.getDocumentScale=Pe.prototype.Df,Pe.prototype.getDocumentAngle=Pe.prototype.li,Pe.prototype.getDocumentBounds=Pe.prototype.mi,Pe.prototype.getDocumentPoint=Pe.prototype.ga,Pe.prototype.intersectsRect=Pe.prototype.Yc,Pe.prototype.containedInRect=Pe.prototype.fh,Pe.prototype.containsRect=Pe.prototype.Re,Pe.prototype.containsPoint=Pe.prototype.ca,Pe.prototype.raiseChanged=Pe.prototype.g,Pe.prototype.raiseChangedEvent=Pe.prototype.cb,Pe.prototype.addCopyProperty=Pe.prototype.Vw;var Lf=null;Pe.className="GraphObject",Lf=new Ge,bh("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=wl(Tn,Tn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Tn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},wl(Dr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new dn(0,0,2.76142374915397,2.761423749153969),spot2:new dn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Tn&&(x=b.fb("ButtonBorder"),x instanceof Dr)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Tn&&(x=b.fb("ButtonBorder"),x instanceof Dr&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Tn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Dr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=tt,tt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Tn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Dr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Tn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Dr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Tn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Dr))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var tt=b._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=b._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),E.skipsUndoManager=z}}},y}),bh("TreeExpanderButton",function(){var a=wl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},wl(Dr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:en},new Sa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Sa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof oo&&(x=x.adornedPart),x instanceof di){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),bh("SubGraphExpanderButton",function(){var a=wl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},wl(Dr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:en},new Sa("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 oo&&(x=x.adornedPart),x instanceof Mr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),bh("ToolTip",function(){return wl(oo,Tn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Bt(0,3),shadowBlur:5},wl(Dr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new dn(0,0,4,6),spot2:new dn(1,1,-4,-4)}))}),bh("ContextMenu",function(){return wl(oo,Tn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Bt(0,3),shadowBlur:5},new Sa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),bh("ContextMenuButton",function(){var a=wl("Button");a.stretch=Yi;var y=a.fb("ButtonBorder");return y instanceof Dr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new dn(0,0,2,3),y.spot2=new dn(1,1,-2,-2)),a}),bh("PanelExpanderButton",function(a){var y=hm(a,"COLLAPSIBLE"),x=wl("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},wl(Dr,{name:"ButtonIcon",strokeWidth:2},new Sa("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Dr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var tt=E.ih();tt===null&&(tt=E.part),tt!==null&&(E=tt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),bh("CheckBoxButton",function(a){var y=hm(a);return a=wl("Button",{desiredSize:new Ut(14,14)},wl(Dr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Fn,geometryStretch:Hi,visible:!1},y!==""?new Sa("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Tn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),bh("CheckBox",function(a){a=hm(a),a=wl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Si(0,1,0,0)});var y=wl(Tn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Si(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}),Pe.None=Cn=new rn(Pe,"None",0),Pe.Default=Ar=new rn(Pe,"Default",0),Pe.Vertical=sr=new rn(Pe,"Vertical",4),Pe.Horizontal=Yi=new rn(Pe,"Horizontal",5),Pe.Fill=Fn=new rn(Pe,"Fill",3),Pe.Uniform=Hi=new rn(Pe,"Uniform",1),Pe.UniformToFill=Xr=new rn(Pe,"UniformToFill",2),Pe.FlipVertical=jr=new rn(Pe,"FlipVertical",1),Pe.FlipHorizontal=$r=new rn(Pe,"FlipHorizontal",2),Pe.FlipBoth=bo=new rn(Pe,"FlipBoth",3),Pe.make=wl,Pe.getBuilders=function(){var a=new Ge,y;for(y in Lf)if(y!==y.toLowerCase()){var x=Lf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Pe.defineBuilder=bh,Pe.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=Lf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Pe))return y&&b.set(y),b;qt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Pe.takeBuilderArgument=hm;function Tc(){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=se,this.o=Bn,this.hg=Ar,this.ob=this.Bi=1,this.Pf=Cn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Tc.prototype.copy=function(){var a=new Tc;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 sd(){this.u=-1/0,this.o=0,this.F=ti,this.rr=Ms,this.j=this.V="None"}sd.prototype.copy=function(){var a=new sd;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},sd.className="LinkElementSettings";function Vg(){this.yj=this.Xi=ko,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Vg.prototype.copy=function(){var a=new Vg;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},Vg.className="LinkSettings";function Yd(){this.ha=[1,0,0,1,0,0]}Yd.prototype.copy=function(){var a=new Yd;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},Yd.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},Yd.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Yd.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 b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,tt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Yd.className="STransform";function Dc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Dc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Dc.className="SGradient";function Cu(a,y,x){this.ownerDocument=a=y===void 0?gn.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 _s(this,x)}Cu.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Cu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),ln(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Cu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Cu.prototype.focus=function(){this.Oa.focus()},Cu.prototype.mx=function(){this.ownerDocument=null},be.Object.defineProperties(Cu.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}}}),Cu.className="SVGSurface";function _s(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 Yd,this.j=dm(this),this.Nj=dm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Po++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Uy(a,y,x,b,E,z,tt){a.Nj===void 0?Kg(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}Pt=_s.prototype,Pt.arc=function(a,y,x,b,E,z,tt,rt){var ot=2*Math.PI,st=ot-1e-6,ut=x*Math.cos(b),ft=x*Math.sin(b),vt=a+ut,xt=y+ft,Lt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(tt-vt)||1e-6<Math.abs(rt-xt))&&this.path.push(["L",vt,+xt]),0>b&&(b=b%ot+ot),b>st?(this.path.push(["A",x,x,0,1,Lt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,Lt,vt,xt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Lt,a+x*Math.cos(E),y+x*Math.sin(E)])},Pt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Pt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Pt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Pt.clearRect=function(){},Pt.clip=function(){this.Yl.clipPath=!0},Pt.closePath=function(){this.path.push(["z"])},Pt.createLinearGradient=function(a,y,x,b){var E=new Dc("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Pt.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 b="PATTERN"+Po++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Vd,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Pt.createRadialGradient=function(a,y,x,b,E,z){var tt=new Dc("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Jy(a,y,x,b,E,z,tt,rt,ot){b=rt/b,E=ot/E,z===0&&tt===0||a.rb.translate(z,tt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Pt.drawImage=function(a,y,x,b,E,z,tt,rt,ot){var st="";a instanceof HTMLCanvasElement&&(st=a.toDataURL()),a instanceof HTMLImageElement&&(st=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,tt=x,rt=b=ut,ot=E=a),b=b||0,E=E||0,rt=rt||0,ot=ot||0,Jy(this,y,x,b,E,z||0,tt||0,rt,ot),z={x:0,y:0,width:ut||b,height:a||E,href:st},me.$(b,rt)&&me.$(E,ot)?st.toLowerCase().indexOf(".svg")===-1&&st.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ut||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),bf(this,Vd,z,this.rb),this.addElement(Vd,z)},Pt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Pt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Pt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},bf(this,"fill",a,this.rb),this.addElement("rect",a)},Pt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},bf(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Pt.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},bf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Pt.lineTo=function(a,y){this.path.push(["L",a,y])},Pt.moveTo=function(a,y){this.path.push(["M",a,y])},Pt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Pt.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},Pt.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},Pt.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())},Pt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||Kg(this,a,y,x,b,E,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Pt.scale=function(a,y){this.rb.scale(a,y)},Pt.translate=function(a,y){this.rb.translate(a,y)},Pt.transform=function(){},Pt.yc=function(){},Pt.stroke=function(){_y(this,this.Yl)},Pt.jk=function(){this.clipInsteadOfFill||this.stroke()},Pt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Pt.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 bf(a,y,x,b){y==="fill"?iv(a,x):y==="stroke"&&_y(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof Dc?y.fill=rv(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 qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Dc?y.setAttributeNS(null,"fill",rv(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 _y(a,y){if(a.strokeStyle instanceof Dc)y.stroke=rv(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 rv(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+Po++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,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:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],tt=0;tt<y;tt++){var rt=E[tt],ot=rt.color;rt={offset:rt.offset,"stop-color":ot},/^rgba\(/.test(ot)&&(ot=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ot),rt["stop-color"]="rgb("+ot[1]+","+ot[2]+","+ot[3]+")",rt["stop-opacity"]=ot[4]),z.push(rt)}for(z.sort(function(st,ut){return st.offset>ut.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Pt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=li(a[E]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());b.push(tt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,bf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var rt in a)rt!=="transform"&&y.setAttributeNS(null,rt,a[rt]);else{rt=y.getElementsByTagName("path");for(var ot in a)ot!=="transform"&&rt[x].setAttributeNS(null,ot,a[ot])}else this.addElement("path",a)};function Kg(a,y,x,b,E,z,tt){var rt=new Yd;rt.ha=[y,x,b,E,z,tt],y={},bf(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function dm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Pt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Iu(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function eh(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Pt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Pt.fs=function(){this.Ct=!1},Pt.Vc=function(){},Pt.Wx=function(){},_s.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},_s.prototype.getImageData=function(){return null},_s.prototype.measureText=function(){return null};function cm(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()))}_s.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},_s.className="SVGContext",je.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Cu(this,gn.document));var y=new Cu(this,gn.document,!0);a===void 0&&(a=new nr);var x=this;return Mc(this,function(b,E){return b=am(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},je.prototype.makeSvg=je.prototype.Cs,je.prototype.av=function(a){return this.Cs(a)},je.prototype.makeSVG=je.prototype.av;function Il(a,y,x,b){this.ownerDocument=y=y===void 0?gn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ud(y,x,b),y.H=a}Il.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Il.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Il.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Il.prototype.focus=function(){this.Oa.focus()},Il.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},be.Object.defineProperties(Il.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}}}),Il.className="CanvasSurface";function Ud(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&qt("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 vi,this.isTemporary=!!x}Pt=Ud.prototype,Pt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Pt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Pt.beginPath=function(){this.Z.beginPath()},Pt.Se=function(){},Pt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Pt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Pt.clip=function(){this.Z.clip()},Pt.closePath=function(){this.Z.closePath()},Pt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Pt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Pt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Pt.drawImage=function(a,y,x,b,E,z,tt,rt,ot){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,tt,rt,ot)},Pt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Pt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Pt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Pt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Pt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Pt.lineTo=function(a,y){this.Z.lineTo(a,y)},Pt.measureText=function(a){return this.Z.measureText(a)},Pt.moveTo=function(a,y){this.Z.moveTo(a,y)},Pt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Pt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Pt.restore=function(){this.Z.restore()},Pt.save=function(){this.yc(),this.Z.save()},Ud.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Pt=Ud.prototype,Pt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Pt.scale=function(a,y){this.El.scale(a,y)},Pt.translate=function(a,y){this.El.translate(a,y)},Pt.stroke=function(){this.Z.stroke()},Pt.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var tt=this.El,rt=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*b,x=tt.m12*x+tt.m22*b,tt.dx=tt.m11*E+tt.m21*z+tt.dx,tt.dy=tt.m12*E+tt.m22*z+tt.dy,tt.m11=rt,tt.m12=a,tt.m21=y,tt.m22=x}},Pt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Pt.ng=function(a,y){if(a instanceof yo&&a.type===Cl){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)},Pt.jk=function(){this.Hm||this.stroke()},Pt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Pt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Pt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Pt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Pt.Hs=function(){},be.Object.defineProperties(Ud.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 mx=Object.freeze([]);Ud.className="CanvasSurfaceContext";function Xg(){this.F=this.o=this.u=this.j=0}Xg.className="ColorNumbers";function yo(a,y){Ef||(hv(),Ef=!0),_i(this),this._isFrozen=!1,a===void 0?(this.na=Mh,this.xk="black"):typeof a=="string"?(this.na=Mh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===ih?(this.Qd=Fr,this.Lk=Jr):this.Lk=a===Cl?this.Qd=ji:this.Qd=Gi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}yo.prototype.copy=function(){var a=new yo;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},Pt=yo.prototype,Pt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Pt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Pt.qb=function(a){a.classType===yo&&(this.type=a)},Pt.toString=function(){var a="Brush(";if(this.type===Mh)a+=this.color;else if(a=this.type===ih?a+"Linear ":this.type===Cl?a+"Radial ":this.type===Ff?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+")"},Pt.addColorStop=function(a,y){return this._isFrozen&&un(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Rn(a,"0 <= loc <= 1",yo,"addColorStop:loc"),this.we===null&&(this.we=new Ge),this.we.add(a,y),this.na===Mh&&(this.type=ih),this.xe=null,this},Pt.Vz=function(a,y){if(this._isFrozen&&un(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Nf:y,this.type===Mh)nh(this.color),this.color=Af(a,y);else if((this.type===ih||this.type===Cl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)nh(x.value),this.addColorStop(x.key,Af(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Nf:x,nh(a),Af(y,x)}Pt.Wy=function(a,y){if(this._isFrozen&&un(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Nf:y,this.type===Mh)nh(this.color),this.color=Af(-a,y);else if((this.type===ih||this.type===Cl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)nh(x.value),this.addColorStop(x.key,Af(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Nf:x,nh(a),Af(-y,x)}function ov(a,y,x){nh(a),a=jo.j;var b=jo.u,E=jo.o,z=jo.F;return nh(y),x===void 0&&(x=.5),"rgba("+Math.round((jo.j-a)*x+a)+", "+Math.round((jo.u-b)*x+b)+", "+Math.round((jo.o-E)*x+E)+", "+Math.round((jo.F-z)*x+z)+")"}Pt.Gx=function(){if(this.type===Mh)return Mf(this.color);if((this.type===ih||this.type===Cl)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Cl)return Mf(a.first().value);if(a.get(.5)!==null)return Mf(a.get(.5));if(a.count===2)return a=a.Fa(),Mf(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);E>z&&rt<E?(x=tt,E=rt):z>=E&&rt<z&&(b=tt,z=rt)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Mf(ov(a.get(x),a.get(b),1-z/E))}return!1};function Mf(a){return a?a instanceof yo?a.Gx():(nh(a),128>(299*jo.j+587*jo.u+114*jo.o)/1e3):!1}function Af(a,y){switch(y){case Nf:y=100*sv(jo.j);var x=100*sv(jo.u),b=100*sv(jo.o);return Ls.j=.4124564*y+.3575761*x+.1804375*b,Ls.u=.2126729*y+.7151522*x+.072175*b,Ls.o=.0193339*y+.119192*x+.9503041*b,Ls.F=jo.F,y=uv(Ls.j/kf[0]),x=uv(Ls.u/kf[1]),b=uv(Ls.o/kf[2]),Ru.j=116*x-16,Ru.u=500*(y-x),Ru.o=200*(x-b),Ru.F=Ls.F,Ru.j=Math.min(100,Math.max(0,Ru.j+100*a)),a=(Ru.j+16)/116,y=a-Ru.o/200,Ls.j=kf[0]*e1(Ru.u/500+a),Ls.u=kf[1]*(Ru.j>fm*dv?Math.pow(a,3):Ru.j/fm),Ls.o=kf[2]*e1(y),Ls.F=Ru.F,a=-.969266*Ls.j+1.8760108*Ls.u+.041556*Ls.o,y=.0556434*Ls.j+-.2040259*Ls.u+1.0572252*Ls.o,jo.j=255*lv((3.2404542*Ls.j+-1.5371385*Ls.u+-.4985314*Ls.o)/100),jo.u=255*lv(a/100),jo.o=255*lv(y/100),jo.F=Ls.F,jo.j=Math.round(jo.j),255<jo.j?jo.j=255:0>jo.j&&(jo.j=0),jo.u=Math.round(jo.u),255<jo.u?jo.u=255:0>jo.u&&(jo.u=0),jo.o=Math.round(jo.o),255<jo.o?jo.o=255:0>jo.o&&(jo.o=0),"rgba("+jo.j+", "+jo.u+", "+jo.o+", "+jo.F+")";case n1:return av(),ul.o=Math.min(100,Math.max(0,ul.o+100*a)),"hsla("+ul.j+", "+ul.u+"%, "+ul.o+"%, "+ul.F+")";default:qt("Unknown color space: "+y)}}function nh(a){Ef||(hv(),Ef=!0);var y=cv;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,jo.j=a[0],jo.u=a[1],jo.o=a[2],jo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,jo.j=0,jo.u=0,jo.o=0,jo.F=1)}}function av(){var a=jo.j/255,y=jo.u/255,x=jo.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var tt=a=0;else{switch(b){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*E-1))}ul.j=Math.round(tt),ul.u=Math.round(100*a),ul.o=Math.round(100*E),ul.F=jo.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(fm*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/fm}function Bc(a,y){typeof a!="string"&&(a instanceof yo||qt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=la?new Il(null,void 0,{willReadFrequently:!0}).context:null}be.Object.defineProperties(yo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&un(this,a),this.na=a,this.start.Mc()&&(a===ih?this.start=Fr:a===Cl&&(this.start=ji)),this.end.Mc()&&(a===ih?this.end=Jr:a===Cl&&(this.end=ji)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&un(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&un(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&un(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&un(this,a),0>a&&Rn(a,">= zero",yo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&un(this,a),0>a&&Rn(a,">= zero",yo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&un(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&un(this,a),this.cr=a,this.xe=null}}}),yo.prototype.isDark=yo.prototype.Gx,yo.prototype.darkenBy=yo.prototype.Wy,yo.prototype.lightenBy=yo.prototype.Vz,yo.prototype.addColorStop=yo.prototype.addColorStop;var dv=216/24389,fm=24389/27,kf=[95.047,100,108.883],cv=null,jo=new Xg,ul=new Xg,Ls=new Xg,Ru=new Xg,Ef=!1;yo.className="Brush";var Mh;yo.Solid=Mh=new rn(yo,"Solid",0);var ih;yo.Linear=ih=new rn(yo,"Linear",1);var Cl;yo.Radial=Cl=new rn(yo,"Radial",2);var Ff;yo.Pattern=Ff=new rn(yo,"Pattern",4);var Nf;yo.Lab=Nf=new rn(yo,"Lab",5);var n1;yo.HSL=n1=new rn(yo,"HSL",6),yo.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 b=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>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},yo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Ef||(hv(),Ef=!0);var y=cv;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)},yo.lighten=function(a){return $y(a)},yo.lightenBy=$y,yo.darken=function(a){return t1(a)},yo.darkenBy=t1,yo.mix=ov,yo.isDark=Mf;function Ea(){this.xa="Base"}Ea.prototype.measure=function(){},Ea.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ea.prototype.arrange=function(){},Ea.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Ea.prototype.iA=function(a){a.Uj()},Ea.prototype.gc=function(){},be.Object.defineProperties(Ea.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Tn}}}),Ea.prototype.remeasureObject=Ea.prototype.iA,Ea.prototype.arrangeElement=Ea.prototype.Ly,Ea.prototype.measureElement=Ea.prototype.Yz,Ea.className="PanelLayout";function gm(){this.xa="Base"}Me(gm,Ea),gm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;a=rh(a);for(var ot=0;ot<rt;ot++){var st=b[ot];if(st.visible||st===a){var ut=st.margin,ft=ut.right+ut.left;ut=ut.top+ut.bottom,st.measure(y,x,z,tt);var vt=st.measuredBounds;ft=Math.max(vt.width+ft,0),ut=Math.max(vt.height+ut,0),vt=st.position.x;var xt=st.position.y;isFinite(vt)||(vt=0),isFinite(xt)||(xt=0),st instanceof Dr&&st.isGeometryPositioned&&(st=st.strokeWidth/2,vt-=st,xt-=st),oi(E,vt,xt,ft,ut)}}},gm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],tt=z.measuredBounds,rt=z.margin,ot=z.position.x,st=z.position.y;if(ot=isNaN(ot)?-a:ot-a,st=isNaN(st)?-x:st-x,z instanceof Dr&&z.isGeometryPositioned){var ut=z.strokeWidth/2;ot-=ut,st-=ut}z.visible&&z.arrange(ot+rt.left,st+rt.top,tt.width,tt.height)}};function pm(){this.xa="Base"}Me(pm,Ea),pm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;y=Di(),z=rh(a);for(var ot=0;ot<rt;ot++){var st=b[ot];if(st.visible||st===z){var ut=Os(st,!1);if(ut!==Cn&&ut!==Yi)y.push(st);else{st.measure(1/0,x,0,tt),ut=st.margin,st=st.measuredBounds;var ft=Math.max(st.height+ut.top+ut.bottom,0);E.width+=Math.max(st.width+ut.right+ut.left,0),E.height=Math.max(E.height,ft)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)ot=y[a],(ot.visible||ot===z)&&(ut=ot.margin,rt=ut.right+ut.left,ut=ut.top+ut.bottom,ot.measure(1/0,x,0,tt),ot=ot.measuredBounds,ut=Math.max(ot.height+ut,0),E.width+=Math.max(ot.width+rt,0),E.height=Math.max(E.height,ut));$n(y)},pm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,tt=a.isOpposite,rt=tt?x.width:E.left,ot=0;ot<b;ot++){var st=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,xt=vt.top+vt.bottom,Lt=z+E.bottom,Ft=ft.height,Xt=Os(ut,!1);(isNaN(ut.desiredSize.height)&&Xt===Fn||Xt===sr)&&(Ft=Math.max(x.height-xt-Lt,0)),xt=Ft+xt+Lt,Lt=ut.alignment,Lt.Xb()&&(Lt=a.defaultAlignment),Lt.sb()||(Lt=ji),tt&&(rt-=ft.width+vt.left+vt.right),ut.arrange(rt+Lt.offsetX+vt.left,st+Lt.offsetY+vt.top+(x.height*Lt.y-xt*Lt.y),ft.width,Ft),tt||(rt+=ft.width+vt.left+vt.right)}}};function mm(){this.xa="Base"}Me(mm,Ea),mm.prototype.measure=function(a,y,x,b,E,z){var tt=b.length;x=Di();for(var rt=rh(a),ot=0;ot<tt;ot++){var st=b[ot];if(st.visible||st===rt){var ut=Os(st,!1);if(ut!==Cn&&ut!==sr)x.push(st);else{var ft=st.margin;ut=ft.right+ft.left,ft=ft.top+ft.bottom,st.measure(y,1/0,z,0),st=st.measuredBounds,Wn(E,Math.max(E.width,Math.max(st.width+ut,0)),E.height+Math.max(st.height+ft,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)ot=x[a],(ot.visible||ot===rt)&&(st=ot.margin,tt=st.right+st.left,st=st.top+st.bottom,ot.measure(y,1/0,z,0),ot=ot.measuredBounds,st=Math.max(ot.height+st,0),E.width=Math.max(E.width,Math.max(ot.width+tt,0)),E.height+=st);$n(x)}},mm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,tt=a.isOpposite,rt=tt?x.height:E.top,ot=0;ot<b;ot++){var st=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,xt=vt.left+vt.right,Lt=z+E.right,Ft=ft.width,Xt=Os(ut,!1);(isNaN(ut.desiredSize.width)&&Xt===Fn||Xt===Yi)&&(Ft=Math.max(x.width-xt-Lt,0)),xt=Ft+xt+Lt,Lt=ut.alignment,Lt.Xb()&&(Lt=a.defaultAlignment),Lt.sb()||(Lt=ji),tt&&(rt-=ft.height+vt.bottom+vt.top),ut.arrange(st+Lt.offsetX+vt.left+(x.width*Lt.x-xt*Lt.x),rt+Lt.offsetY+vt.top,Ft,ft.height),tt||(rt+=ft.height+vt.bottom+vt.top)}}};function vm(){this.xa="Base"}Me(vm,Ea),vm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,ot=a.Pb(),st=ot.margin,ut=st.right+st.left,ft=st.top+st.bottom;ot.measure(y,x,z,tt);var vt=ot.measuredBounds;z=vt.width,tt=vt.height;var xt=Math.max(z+ut,0),Lt=Math.max(tt+ft,0),Ft=a.isClipping,Xt=de.allocAt(-st.left,-st.top,xt,Lt),Zt=de.allocAt(0,0,z,tt);fv(ot,Zt,!0),z=Zt.width,tt=Zt.height;for(var Qt=!0,_t=rh(a),te=0;te<rt;te++){var ye=b[te];vt=y;var ze=x;if(ye!==ot&&(ye.visible||ye===_t)){st=ye.margin;var ri=st.left,Ti=st.top;switch(xt=st.right+st.left,Lt=st.top+st.bottom,st=Os(ye,!1),st){case Fn:vt=z,ze=tt,Ti=ri=Lt=xt=0;break;case Yi:vt=z,ri=xt=0;break;case sr:ze=tt,Ti=Lt=0}ye.measure(vt,ze,0,0),vt=ye.measuredBounds,xt=Math.max(vt.width+xt,0),Lt=Math.max(vt.height+Lt,0),st=ye.alignment,st.Xb()&&(st=a.defaultAlignment),st.sb()||(st=ji);var Ci=ye.alignmentFocus;if(Ci.Xb()&&(Ci=ji),ze=null,ye instanceof Tn&&ye.$e!==""&&(ze=ye.fb(ye.$e),ze===ye&&(ze=null)),ri=Zt.x-ri,Ti=Zt.y-Ti,ze!==null){for(ye.arrange(0,0,vt.width,vt.height),vt=ze.actualBounds,vt=Bt.allocAt(vt.x+(Ci.x*vt.width-Ci.offsetX),vt.y+(Ci.y*vt.height-Ci.offsetY)),ze=ze.panel;ze!==ye;)ze.transform.Ga(vt),ze=ze.panel;ri+=st.x*z+st.offsetX-vt.x,Ti+=st.y*tt+st.offsetY-vt.y,Bt.free(vt)}else ri+=st.x*z+st.offsetX-(Ci.x*vt.width+Ci.offsetX),Ti+=st.y*tt+st.offsetY-(Ci.y*vt.height+Ci.offsetY);Qt?(Qt=!1,E.h(ri,Ti,xt,Lt)):oi(E,ri,Ti,xt,Lt)}}switch(Qt?E.assign(Xt):Ft?E.Uu(Zt.x,Zt.y,Zt.width,Zt.height):oi(E,Xt.x,Xt.y,Xt.width,Xt.height),de.free(Xt),de.free(Zt),st=ot.stretch,st===Ar&&(st=Os(ot,!1)),st){case Cn:return;case Fn:if(!isFinite(y)&&!isFinite(x))return;break;case Yi:if(!isFinite(y))return;break;case sr:if(!isFinite(x))return}for(vt=ot.measuredBounds,z=vt.width,tt=vt.height,xt=Math.max(z+ut,0),Lt=Math.max(tt+ft,0),st=ot.margin,Zt=de.allocAt(-st.left,-st.top,xt,Lt),fv(ot,Zt,!0),z=Zt.width,tt=Zt.height,y=0;y<rt;y++)x=b[y],x===ot||!x.visible&&x!==_t||(st=x.margin,xt=st.right+st.left,Lt=st.top+st.bottom,vt=x.measuredBounds,xt=Math.max(vt.width+xt,0),Lt=Math.max(vt.height+Lt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=ji),x=x.alignmentFocus,x.Xb()&&(x=ji),Qt?(Qt=!1,E.h(ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-st.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-st.top,xt,Lt)):oi(E,ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-st.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-st.top,xt,Lt));Qt?E.assign(Xt):Ft?E.Uu(Zt.x,Zt.y,Zt.width,Zt.height):oi(E,Xt.x,Xt.y,Xt.width,Xt.height),de.free(Zt)},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,tt=z.width,rt=z.height,ot=a.padding;z=ot.left,ot=ot.top;var st=z-x.x,ut=ot-x.y;for(E.arrange(st,ut,tt,rt),tt=de.allocAt(0,0,tt,rt),fv(E,tt,!1),rt=0;rt<b;rt++){var ft=y[rt];if(ft!==E){st=ft.measuredBounds;var vt=st.width,xt=st.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=ji);var Lt=ft.alignmentFocus;if(Lt.Xb()&&(Lt=ji),st=null,ft instanceof Tn&&ft.$e!==""&&(st=ft.fb(ft.$e),st===ft&&(st=null)),st!==null){var Ft=st.actualBounds;for(Lt=Bt.allocAt(Ft.x+(Lt.x*Ft.width-Lt.offsetX),Ft.y+(Lt.y*Ft.height-Lt.offsetY)),st=st.panel;st!==ft;)st.transform.Ga(Lt),st=st.panel;st=ut.x*tt.width+ut.offsetX-Lt.x,ut=ut.y*tt.height+ut.offsetY-Lt.y,Bt.free(Lt)}else st=ut.x*tt.width+ut.offsetX-(Lt.x*vt+Lt.offsetX),ut=ut.y*tt.height+ut.offsetY-(Lt.y*xt+Lt.offsetY);st+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+st,ot+ut,vt,xt)}}de.free(tt)};function fv(a,y,x){var b=null;if(a instanceof Tn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function ym(){this.xa="Base"}Me(ym,Ea),ym.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,ot=a.Pb(),st=ot.margin,ut=y,ft=x,vt=st.right+st.left,xt=st.top+st.bottom;ot.measure(y,x,z,tt),st=ot.measuredBounds;var Lt=0,Ft=null;ot instanceof Dr&&(Ft=ot,Lt=Ft.strokeWidth*Ft.scale);var Xt=Math.max(st.width+vt,0);st=Math.max(st.height+xt,0);var Zt=vv(ot),Qt=Zt.x*Xt+Zt.offsetX;Zt=Zt.y*st+Zt.offsetY;var _t=yv(ot),te=_t.x*Xt+_t.offsetX;for(_t=_t.y*st+_t.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(Qt-te)-Lt,0)),isFinite(x)&&(ft=Math.max(Math.abs(Zt-_t)-Lt,0)),Lt=Ut.alloc(),Lt.h(0,0),a=rh(a),_t=0;_t<rt;_t++)Zt=b[_t],Zt===ot||!Zt.visible&&Zt!==a||(st=Zt.margin,Xt=st.right+st.left,Qt=st.top+st.bottom,Zt.measure(ut,ft,0,0),st=Zt.measuredBounds,Xt=Math.max(st.width+Xt,0),st=Math.max(st.height+Qt,0),Lt.h(Math.max(Xt,Lt.width),Math.max(st,Lt.height)));if(rt===1)E.width=Xt,E.height=st,Ut.free(Lt);else{switch(Zt=vv(ot),_t=yv(ot),rt=b=0,_t.x!==Zt.x&&_t.y!==Zt.y&&(b=Lt.width/Math.abs(_t.x-Zt.x),rt=Lt.height/Math.abs(_t.y-Zt.y)),Ut.free(Lt),Lt=0,Ft!==null&&(Lt=Ft.strokeWidth*Ft.scale,Lv(Ft)===Hi&&(b=rt=Math.max(b,rt))),b+=Math.abs(Zt.offsetX)+Math.abs(_t.offsetX)+Lt,rt+=Math.abs(Zt.offsetY)+Math.abs(_t.offsetY)+Lt,Ft=ot.stretch,Ft===Ar&&(Ft=Os(ot,!1)),Ft){case Cn:tt=z=0;break;case Fn:isFinite(y)&&(b=y),isFinite(x)&&(rt=x);break;case Yi:isFinite(y)&&(b=y),tt=0;break;case sr:z=0,isFinite(x)&&(rt=x)}ot.Uj(),ot.measure(b,rt,z,tt),E.width=ot.measuredBounds.width+vt,E.height=ot.measuredBounds.height+xt}},ym.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=de.alloc();z.h(0,0,1,1);var tt=b.margin,rt=tt.left;tt=tt.top;var ot=a.padding,st=ot.left;ot=ot.top,b.arrange(st+rt,ot+tt,E.width,E.height);var ut=vv(b),ft=yv(b),vt=ut.y*E.height+ut.offsetY,xt=ft.x*E.width+ft.offsetX;for(ft=ft.y*E.height+ft.offsetY,z.x=ut.x*E.width+ut.offsetX,z.y=vt,oi(z,xt,ft,0,0),z.x+=rt+st,z.y+=tt+ot,E=0;E<x;E++)rt=y[E],rt!==b&&(st=rt.measuredBounds,tt=rt.margin,ot=Math.max(st.width+tt.right+tt.left,0),ut=Math.max(st.height+tt.top+tt.bottom,0),vt=rt.alignment,vt.Xb()&&(vt=a.defaultAlignment),vt.sb()||(vt=ji),ot=z.width*vt.x+vt.offsetX-ot*vt.x+tt.left+z.x,tt=z.height*vt.y+vt.offsetY-ut*vt.y+tt.top+z.y,rt.visible&&(Vn(z.x,z.y,z.width,z.height,ot,tt,st.width,st.height)?rt.arrange(ot,tt,st.width,st.height):rt.arrange(ot,tt,st.width,st.height,new de(z.x,z.y,z.width,z.height))));de.free(z)};function Sm(){this.xa="Base",this.name="Table"}Me(Sm,Ea),Sm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,tt=Di(),rt=Di(),ot=0;ot<z;ot++){var st=b[ot],ut=st instanceof Tn?st:null;if(ut!==null&&Ah(ut)&&st.visible){rt.push(ut);for(var ft=ut.O.s,vt=ft.length,xt=0;xt<vt;xt++){var Lt=ft[xt];ut.type===Tn.TableRow?Lt.row=st.row:ut.type===Tn.TableColumn&&(Lt.column=st.column),tt.push(Lt)}}else tt.push(st)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Ft=[],Xt=0;Xt<z;Xt++){var Zt=tt[Xt];Zt.visible&&(Ma(Zt,!0),Ou(Zt,!0),Ft[Zt.row]||(Ft[Zt.row]=[]),Ft[Zt.row][Zt.column]||(Ft[Zt.row][Zt.column]=[]),Ft[Zt.row][Zt.column].push(Zt))}$n(tt);var Qt=Di(),_t=Di(),te=Di(),ye={count:0},ze={count:0},ri=y,Ti=x,Ci=a.rowDefs,jn=a.colDefs,xn=null;z=Ci.length;for(var Lr=0;Lr<z;Lr++)xn=Ci[Lr],xn!==void 0&&(xn.actual=0);z=jn.length;for(var Sr=0;Sr<z;Sr++)xn=jn[Sr],xn!==void 0&&(xn.actual=0);for(var lo=Ft.length,Bo=0,Ba=0;Ba<lo;Ba++)Ft[Ba]&&(Bo=Math.max(Bo,Ft[Ba].length));var ja=Math.min(a.topIndex,lo-1),vs=Math.min(a.leftIndex,Bo-1),Oa=0;lo=Ft.length;for(var Rh=rh(a),xa=0;xa<lo;xa++)if(Ft[xa]){Bo=Ft[xa].length;var hu=a.Fb(xa);hu.actual=0;for(var ys=hu.oc=0;ys<Bo;ys++)if(Ft[xa][ys]){var zh=a.Eb(ys);Qt[ys]===void 0&&(zh.actual=0,zh.oc=0,Qt[ys]=!0);for(var cl=Ft[xa][ys],Hl=cl.length,el=0;el<Hl;el++){var Xs=cl[el];if(Xs.visible||Xs===Rh){var Pd=1<Xs.rowSpan||1<Xs.columnSpan;Pd&&(xa<ja||ys<vs||_t.push(Xs));var du=Xs.margin,tg=du.right+du.left,nl=du.top+du.bottom,Ss=ou(Xs,hu,zh,!1),Dp=Xs.desiredSize,Xc=!isNaN(Dp.height),Mu=!isNaN(Dp.width)&&Xc;if(Pd||Ss===Cn||Mu||xa<ja||ys<vs||(ye[ys]!==void 0||Ss!==Fn&&Ss!==Yi||(ye[ys]=-1,ye.count++),ze[xa]!==void 0||Ss!==Fn&&Ss!==sr||(ze[xa]=-1,ze.count++),te.push(Xs)),Xs.measure(1/0,1/0,0,0),!(xa<ja||ys<vs)){var Ys=Xs.measuredBounds,ic=Math.max(Ys.width+tg,0),il=Math.max(Ys.height+nl,0);if(Xs.rowSpan===1&&(Ss===Cn||Ss===Yi)){xn=a.Fb(xa);var wd=xn.Wc();Oa=Math.max(il-xn.actual,0),Oa+wd>Ti&&(Oa=Math.max(Ti-wd,0));var W0=xn.oa===0;xn.oc=xn.oc+Oa,xn.actual=xn.oa+Oa,Ti=Math.max(Ti-(Oa+(W0?wd:0)),0)}if(Xs.columnSpan===1&&(Ss===Cn||Ss===sr)){xn=a.Eb(ys);var Bp=xn.Wc();Oa=Math.max(ic-xn.actual,0),Oa+Bp>ri&&(Oa=Math.max(ri-Bp,0));var Hy=xn.oa===0;xn.oc=xn.oc+Oa,xn.actual=xn.oa+Oa,ri=Math.max(ri-(Oa+(Hy?Bp:0)),0)}Pd&&Xs.Uj()}}}}}$n(Qt);var Xu=0,sh=0;z=a.columnCount;for(var Yc=0;Yc<z;Yc++){var Cd=jn[Yc];Cd!==void 0&&(Xu+=isNaN(Cd.Hc)?Cd.oc:Cd.Hc,Cd.oc!==0&&(Xu+=Cd.Wc()))}z=a.rowCount;for(var eg=0;eg<z;eg++){var Ld=Ci[eg];Ld!==void 0&&(sh+=isNaN(Ld.Hc)?Ld.oc:Ld.Hc,Ld.oc!==0&&(sh+=Ld.Wc()))}ri=Math.max(y-Xu,0);var Yu=Ti=Math.max(x-sh,0),jh=ri;z=te.length;for(var Us=0;Us<z;Us++){var Au=te[Us],G0=a.Fb(Au.row),lh=a.Eb(Au.column),ng=Au.measuredBounds,cu=Au.margin,rc=cu.right+cu.left,ku=cu.top+cu.bottom;ye[Au.column]=lh.oc===0&&ye[Au.column]!==void 0?Math.max(ng.width+rc,ye[Au.column]):null,ze[Au.row]=G0.oc===0&&ze[Au.row]!==void 0?Math.max(ng.height+ku,ze[Au.row]):null}var Uc=0,ig=0,eu;for(eu in ze)eu!=="count"&&(Uc+=ze[eu]);for(eu in ye)eu!=="count"&&(ig+=ye[eu]);for(var Ua=Ut.alloc(),Op=0;Op<z;Op++){var Ns=te[Op];if(Ns.visible||Ns===Rh){var Pa=a.Fb(Ns.row),Ts=a.Eb(Ns.column),uh=0;isFinite(Ts.width)?uh=Ts.width:(isFinite(ri)&&ye[Ns.column]!==null?ig===0?uh=Ts.actual+ri:uh=ye[Ns.column]/ig*jh:ye[Ns.column]!==null?uh=ri:uh=Ts.actual||ri,uh=Math.max(0,uh-Ts.Wc()));var Hh=0;switch(isFinite(Pa.height)?Hh=Pa.height:(isFinite(Ti)&&ze[Ns.row]!==null?Uc===0?Hh=Pa.actual+Ti:Hh=ze[Ns.row]/Uc*Yu:ze[Ns.row]!==null?Hh=Ti:Hh=Pa.actual||Ti,Hh=Math.max(0,Hh-Pa.Wc())),Ua.h(Math.max(Ts.minimum,Math.min(uh,Ts.maximum)),Math.max(Pa.minimum,Math.min(Hh,Pa.maximum))),Ss=ou(Ns,Pa,Ts,!1),Ss){case Yi:Ua.height=Math.max(Ua.height,Pa.actual+Ti);break;case sr:Ua.width=Math.max(Ua.width,Ts.actual+ri)}var oc=Ns.margin,Zy=oc.right+oc.left,V0=oc.top+oc.bottom;Ns.Uj(),Ns.measure(Ua.width,Ua.height,Ts.minimum,Pa.minimum);var rg=Ns.measuredBounds,ac=Math.max(rg.width+Zy,0),Jc=Math.max(rg.height+V0,0);isFinite(ri)&&(ac=Math.min(ac,Ua.width)),isFinite(Ti)&&(Jc=Math.min(Jc,Ua.height));var Js=0;Js=Pa.actual,Pa.actual=Math.max(Pa.actual,Jc),Pa.oc=Math.max(Pa.oc,Jc),Oa=Pa.actual-Js,Ti=Math.max(Ti-Oa,0),ze[Ns.row]===null&&(Yu=Math.max(Yu-Oa,0)),Js=Ts.actual,Ts.actual=Math.max(Ts.actual,ac),Ts.oc=Math.max(Ts.oc,ac),Oa=Ts.actual-Js,ri=Math.max(ri-Oa,0),ye[Ns.column]===null&&(jh=Math.max(jh-Oa,0))}}$n(te);var hh=Ut.alloc(),fu=Di(),kl=Di();if(z=_t.length,z!==0){for(var bd=0;bd<lo;bd++)if(Ft[bd]){Bo=Ft[bd].length;var og=a.Fb(bd);fu[bd]=og.actual;for(var Md=0;Md<Bo;Md++)if(Ft[bd][Md]){var K0=a.Eb(Md);kl[Md]=K0.actual}}}for(var ag=0;ag<z;ag++){var da=_t[ag];if(da.visible||da===Rh){var nu=a.Fb(da.row),Zl=a.Eb(da.column);switch(Ua.h(Math.max(Zl.minimum,Math.min(y,Zl.maximum)),Math.max(nu.minimum,Math.min(x,nu.maximum))),Ss=ou(da,nu,Zl,!1),Ss){case Fn:kl[Zl.index]!==0&&(Ua.width=Math.min(Ua.width,kl[Zl.index])),fu[nu.index]!==0&&(Ua.height=Math.min(Ua.height,fu[nu.index]));break;case Yi:kl[Zl.index]!==0&&(Ua.width=Math.min(Ua.width,kl[Zl.index]));break;case sr:fu[nu.index]!==0&&(Ua.height=Math.min(Ua.height,fu[nu.index]))}isFinite(Zl.width)&&(Ua.width=Zl.width),isFinite(nu.height)&&(Ua.height=nu.height),hh.h(0,0);for(var X0=Zl.minimum,rl=nu.minimum,Zh=1;Zh<da.rowSpan&&!(da.row+Zh>=a.rowCount);Zh++)xn=a.Fb(da.row+Zh),Oa=0,Oa=Ss===Fn||Ss===sr?Math.max(xn.minimum,fu[da.row+Zh]===0?xn.maximum:Math.min(fu[da.row+Zh],xn.maximum)):Math.max(xn.minimum,isNaN(xn.Hc)?xn.maximum:Math.min(xn.Hc,xn.maximum)),hh.height+=Oa,rl+=xn.minimum;for(var Wl=1;Wl<da.columnSpan&&!(da.column+Wl>=a.columnCount);Wl++)xn=a.Eb(da.column+Wl),Oa=0,Oa=Ss===Fn||Ss===Yi?Math.max(xn.minimum,kl[da.column+Wl]===0?xn.maximum:Math.min(kl[da.column+Wl],xn.maximum)):Math.max(xn.minimum,isNaN(xn.Hc)?xn.maximum:Math.min(xn.Hc,xn.maximum)),hh.width+=Oa,X0+=xn.minimum;Ua.width+=hh.width,Ua.height+=hh.height;var sg=da.margin,Ad=sg.right+sg.left,Ip=sg.top+sg.bottom;da.measure(Ua.width,Ua.height,X0,rl);for(var lg=da.measuredBounds,Eu=Math.max(lg.width+Ad,0),sc=Math.max(lg.height+Ip,0),kd=0,ug=0;ug<da.rowSpan&&!(da.row+ug>=a.rowCount);ug++)xn=a.Fb(da.row+ug),kd+=xn.total||0;if(kd<sc){var Wh=sc-kd,Uu=sc-kd;if(da.spanAllocation!==null)for(var Gh=da.spanAllocation,dh=0;dh<da.rowSpan&&!(0>=Wh)&&!(da.row+dh>=a.rowCount);dh++){xn=a.Fb(da.row+dh);var Vh=xn.oa||0,lc=Gh(da,xn,Uu);xn.actual=Math.min(xn.maximum,Vh+lc),xn.oa!==Vh&&(Wh-=xn.oa-Vh)}for(;0<Wh;){var gu=xn.oa||0;if(isNaN(xn.height)&&xn.maximum>gu&&(xn.actual=Math.min(xn.maximum,gu+Wh),xn.oa!==gu&&(Wh-=xn.oa-gu)),xn.index===0)break;xn=a.Fb(xn.index-1)}}for(var Qc=0,Kh=0;Kh<da.columnSpan&&!(da.column+Kh>=a.columnCount);Kh++)xn=a.Eb(da.column+Kh),Qc+=xn.total||0;if(Qc<Eu){var qc=Eu-Qc,Wy=Eu-Qc;if(da.spanAllocation!==null)for(var ch=da.spanAllocation,uc=0;uc<da.columnSpan&&!(0>=qc)&&!(da.column+uc>=a.columnCount);uc++){xn=a.Eb(da.column+uc);var Rp=xn.oa||0,Gy=ch(da,xn,Wy);xn.actual=Math.min(xn.maximum,Rp+Gy),xn.oa!==Rp&&(qc-=xn.oa-Rp)}for(;0<qc;){var Y0=xn.oa||0;if(isNaN(xn.width)&&xn.maximum>Y0&&(xn.actual=Math.min(xn.maximum,Y0+qc),xn.oa!==Y0&&(qc-=xn.oa-Y0)),xn.index===0)break;xn=a.Eb(xn.index-1)}}}}$n(_t),Ut.free(hh),Ut.free(Ua),fu!==void 0&&$n(fu),kl!==void 0&&$n(kl);var _c=0,$c=0,U0=a.desiredSize,gx=a.maxSize;Ss=Os(a,!0);var zp=sh=Xu=0,jp=0;z=a.columnCount;for(var J0=0;J0<z;J0++)jn[J0]!==void 0&&(xn=a.Eb(J0),isFinite(xn.width)?(zp+=xn.width,zp+=xn.Wc()):Em(xn)===Qg?(zp+=xn.oa,zp+=xn.Wc()):xn.oa!==0&&(Xu+=xn.oa,Xu+=xn.Wc()));isFinite(U0.width)?_c=Math.min(U0.width,gx.width):_c=Ss!==Cn&&isFinite(y)?y:Xu,_c=Math.max(_c,a.minSize.width),_c=Math.max(_c-zp,0);for(var qx=Xu===0?1:Math.max(_c/Xu,1),Q0=0;Q0<z;Q0++)jn[Q0]!==void 0&&(xn=a.Eb(Q0),isFinite(xn.width)||Em(xn)===Qg||(xn.actual=xn.oa*qx),xn.position=E.width,xn.oa!==0&&(E.width+=xn.oa,E.width+=xn.Wc()));z=a.rowCount;for(var q0=0;q0<z;q0++)Ci[q0]!==void 0&&(xn=a.Fb(q0),isFinite(xn.height)?(jp+=xn.height,jp+=xn.Wc()):Em(xn)===Qg?(jp+=xn.oa,jp+=xn.Wc()):xn.oa!==0&&(sh+=xn.oa,sh+=xn.Wc()));isFinite(U0.height)?$c=Math.min(U0.height,gx.height):$c=Ss!==Cn&&isFinite(x)?x:sh,$c=Math.max($c,a.minSize.height),$c=Math.max($c-jp,0);for(var _x=sh===0?1:Math.max($c/sh,1),_0=0;_0<z;_0++)Ci[_0]!==void 0&&(xn=a.Fb(_0),isFinite(xn.height)||Em(xn)===Qg||(xn.actual=xn.oa*_x),xn.position=E.height,xn.oa!==0&&(E.height+=xn.oa,E.height+=xn.Wc()));z=rt.length;for(var Vy=0;Vy<z;Vy++){var Hp=rt[Vy],Ky=0,Xy=0;Hp.type===Tn.TableRow?(Ky=E.width,xn=a.Fb(Hp.row),Xy=xn.actual):(xn=a.Eb(Hp.column),Ky=xn.actual,Xy=E.height),Hp.measuredBounds.h(0,0,Ky,Xy),Ma(Hp,!1)}$n(rt),a.inRowsCols=Ft},Sm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var tt=a.inRowsCols;if(tt!==null){for(var rt,ot,st=tt.length,ut=0,ft=0;ft<st;ft++)tt[ft]&&(ut=Math.max(ut,tt[ft].length));ot=a.rowDefs,rt=a.colDefs;var vt=ft=0,xt=Math.min(a.topIndex,st-1);if(0<ot.length){for(;xt!==st&&(ot[xt]===void 0||ot[xt].oa===0);)xt++;xt=Math.max(Math.min(xt,st-1),0),ft=-ot[xt].position}var Lt=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;Lt!==ut&&(rt[Lt]===void 0||rt[Lt].oa===0);)Lt++;Lt=Math.max(Math.min(Lt,ut-1),0),vt=-rt[Lt].position}for(var Ft=0,Xt=0;Ft!==st&&ot[Ft]===void 0;)Ft++;for(;Xt!==st&&rt[Xt]===void 0;)Xt++;ut=a.part,a.Fb(Ft),a.Eb(Xt);for(var Zt=0;Zt<y.length;Zt++){var Qt=y[Zt];if(Qt instanceof Tn&&Qt.visible&&Ah(Qt)){if(Qt.type===Tn.TableRow){rt=a.Fb(Qt.row);var _t=a.Eb(Xt)}else rt=a.Fb(Ft),_t=a.Eb(Qt.column);ot=rt.position+ft+E,rt.oa!==0&&(ot+=rt.Io(Math.max(Ft,xt))),rt=_t.position+vt+z,_t.oa!==0&&(rt+=_t.Io(Math.max(Xt,Lt))),_t=Qt.measuredBounds,Qt.Uk(),Qt.actualBounds.ka();var te=Qt.actualBounds,ye=de.allocAt(te.x,te.y,te.width,te.height);te.x=Qt.type===Tn.TableRow?z:rt,te.y=Qt.type===Tn.TableColumn?E:ot,te.width=_t.width,te.height=_t.height,Qt.actualBounds.freeze(),Ou(Qt,!1),_n(ye,te)||ut===null||(ut.oh(),Qt.Pn(ut)),de.free(ye)}}for(Zt=Ut.alloc(),Qt=0;Qt<st;Qt++)if(tt[Qt]){for(ut=tt[Qt].length,_t=a.Fb(Qt),ot=_t.position+ft+E,_t.oa!==0&&(ot+=_t.Io(Math.max(Ft,xt))),te=0;te<ut;te++)if(tt[Qt][te]){ye=a.Eb(te),rt=ye.position+vt+z,ye.oa!==0&&(rt+=ye.Io(Math.max(Xt,Lt)));for(var ze=tt[Qt][te],ri=ze.length,Ti=0;Ti<ri;Ti++){var Ci=ze[Ti],jn=Ci.measuredBounds;Zt.h(0,0);for(var xn=1;xn<Ci.rowSpan&&!(Qt+xn>=a.rowCount);xn++){var Lr=a.Fb(Qt+xn);Lr.oa!==0&&(Zt.height+=Lr.total)}for(xn=1;xn<Ci.columnSpan&&!(te+xn>=a.columnCount);xn++)Lr=a.Eb(te+xn),Lr.oa!==0&&(Zt.width+=Lr.total);var Sr=ye.oa+Zt.width,lo=_t.oa+Zt.height;xn=rt,Lr=ot;var Bo=Sr,Ba=lo,ja=rt,vs=ot,Oa=Sr,Rh=lo;rt+Sr>x.width&&(Oa=Math.max(x.width-rt,0)),ot+lo>x.height&&(Rh=Math.max(x.height-ot,0));var xa=Ci.alignment;if(xa.Xb()){xa=a.defaultAlignment,xa.sb()||(xa=ji);var hu=xa.x,ys=xa.y,zh=xa.offsetX;xa=xa.offsetY;var cl=ye.alignment,Hl=_t.alignment;cl.sb()&&(hu=cl.x,zh=cl.offsetX),Hl.sb()&&(ys=Hl.y,xa=Hl.offsetY)}else hu=xa.x,ys=xa.y,zh=xa.offsetX,xa=xa.offsetY;(isNaN(hu)||isNaN(ys))&&(ys=hu=.5,xa=zh=0),cl=jn.width,Hl=jn.height;var el=Ci.margin,Xs=el.left+el.right,Pd=el.top+el.bottom,du=ou(Ci,_t,ye,!1);!isNaN(Ci.desiredSize.width)||du!==Fn&&du!==Yi||(cl=Math.max(Sr-Xs,0)),!isNaN(Ci.desiredSize.height)||du!==Fn&&du!==sr||(Hl=Math.max(lo-Pd,0)),Sr=Ci.maxSize,lo=Ci.minSize,cl=Math.min(Sr.width,cl),Hl=Math.min(Sr.height,Hl),cl=Math.max(lo.width,cl),Hl=Math.max(lo.height,Hl),Sr=Hl+Pd,xn+=Bo*hu-(cl+Xs)*hu+zh+el.left,Lr+=Ba*ys-Sr*ys+xa+el.top,Ci.visible&&(Vn(ja,vs,Oa,Rh,xn,Lr,jn.width,jn.height)?Ci.arrange(xn,Lr,cl,Hl):Ci.arrange(xn,Lr,cl,Hl,new de(ja,vs,Oa,Rh)))}}}for(Ut.free(Zt),a=0;a<b;a++)x=y[a],z=x instanceof Tn?x:null,z!==null&&Ah(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function xm(){this.xa="Base"}Me(xm,Ea),xm.prototype.measure=function(){},xm.prototype.arrange=function(){};function Pm(){this.xa="Base"}Me(Pm,Ea),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function wm(){this.xa="Base"}Me(wm,Ea),wm.prototype.measure=function(a,y,x,b,E,z,tt){1<b.length&&qt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,tt);var rt=b.measuredBounds,ot=b.margin,st=ot.right+ot.left;if(ot=ot.top+ot.bottom,isFinite(y)||isFinite(x)){var ut=b.scale,ft=rt.width;rt=rt.height;var vt=Math.max(y-st,0),xt=Math.max(x-ot,0),Lt=1;a.viewboxStretch===Hi?ft!==0&&rt!==0&&(Lt=Math.min(vt/ft,xt/rt)):ft!==0&&rt!==0&&(Lt=Math.max(vt/ft,xt/rt)),Lt===0&&(Lt=1e-4),b.Ca*=Lt,ut!==b.scale&&(Ma(b,!0),b.measure(1/0,1/0,z,tt))}rt=b.measuredBounds,E.width=isFinite(y)?y:Math.max(rt.width+st,0),E.height=isFinite(x)?x:Math.max(rt.height+ot,0)},wm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=ji),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-E*tt.y+tt.offsetY,b.width,b.height)};function Yg(){this.xa="Base"}Me(Yg,Ea),Yg.prototype.measure=function(){},Yg.prototype.arrange=function(){},Yg.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,ot=z.height,st=Math.ceil(rt/E),ut=Math.ceil(ot/b),ft=a.gridOrigin,vt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,ot),y.clip(),y.Se();for(var xt=[],Lt=a.O.s,Ft=Lt.length,Xt=0;Xt<Ft;Xt++){var Zt=Lt[Xt],Qt=[];if(xt.push(Qt),Zt.visible){var _t=Zt.interval;if(!(0>_t)){Zt=pv(Zt.figure);for(var te=0;te<Ft;te++)if(te!==Xt){var ye=Lt[te];ye.visible&&pv(ye.figure)===Zt&&(ye=ye.interval,ye>_t&&Qt.push(ye))}}}}for(Lt=a.O.s,Ft=Lt.length,Xt=0;Xt<Ft;Xt++){var ze=Lt[Xt];if(ze.visible&&(Qt=ze.interval||1,Zt=Math.abs(Qt),!(2>E*Zt*x))){if(_t=ze.segmentIndex,(!isFinite(_t)||isNaN(_t))&&(_t=0),0>_t&&(_t=Zt-Math.min(-_t,Zt)),_t=Math.round(_t%Zt),Zt=ze.opacity,te=1,Zt!==1){if(Zt===0)continue;te=y.globalAlpha,y.globalAlpha=te*Zt}ye=xt[Xt];var ri=!1,Ti=ze.strokeDashArray;if(Ti!==null&&(ri=!0,y.js(Ti,ze.strokeDashOffset)),ze.figure==="LineV"&&ze.stroke!==null&&0<ze.strokeWidth){for(y.lineWidth=ze.strokeWidth,ha(a,y,ze.stroke,!1,!1,z,tt),y.beginPath(),Ti=ze=Math.floor((vt-E)/E);Ti<=ze+st;Ti++){var Ci=Ti*E+vt;0<=Ci&&Ci<=rt&&Cm(Ti,Qt,_t,ye)&&(y.moveTo(Ci,0),y.lineTo(Ci,ot))}y.stroke(),y.Se()}else if(ze.figure==="LineH"&&ze.stroke!==null&&0<ze.strokeWidth){for(y.lineWidth=ze.strokeWidth,ha(a,y,ze.stroke,!1,!1,z,tt),y.beginPath(),Ti=ze=Math.floor((ft-b)/b);Ti<=ze+ut;Ti++)Ci=Ti*b+ft,0<=Ci&&Ci<=ot&&Cm(Ti,Qt,_t,ye)&&(y.moveTo(0,Ci),y.lineTo(rt,Ci));y.stroke(),y.Se()}else if(ze.figure==="BarV"&&ze.fill!==null)for(ha(a,y,ze.fill,!0,!1,z,tt),ze=ze.width,isNaN(ze)&&(ze=E),Ci=Ti=Math.floor((vt-E)/E);Ci<=Ti+st;Ci++){var jn=Ci*E+vt;0<=jn+ze&&jn<=rt&&Cm(Ci,Qt,_t,ye)&&y.fillRect(jn,0,ze,ot)}else if(ze.figure==="BarH"&&ze.fill!==null)for(ha(a,y,ze.fill,!0,!1,z,tt),ze=ze.height,isNaN(ze)&&(ze=b),Ci=Ti=Math.floor((ft-b)/b);Ci<=Ti+ut;Ci++)jn=Ci*b+ft,0<=jn+ze&&jn<=ot&&Cm(Ci,Qt,_t,ye)&&y.fillRect(0,jn,rt,ze);ri&&y.fs(),Zt!==1&&(y.globalAlpha=te)}}y.restore(),y.Vc(!1)};function Cm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Lm(){this.xa="Base"}Me(Lm,Ea),Lm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof oo||a instanceof Zn){var tt=null,rt=null;if(a instanceof Zn&&(tt=a),a instanceof oo&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof Zn){var ot=tt;if(z===0)Wn(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var st=a instanceof oo?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=ot.points,ft=tt.pointsCount;rt!==null?rt.Ul(!1):tt!==null&&tt.Ul(!1),rt=y.width;var vt=y.height,xt=a.j;if(xt.length=0,st!==null){i1(a,rt,vt,st);var Lt=st.measuredBounds;x.ed(Lt),xt.push(Lt)}Lt=vi.alloc();for(var Ft=Bt.alloc(),Xt=Bt.alloc(),Zt=0;Zt<z;Zt++){var Qt=b[Zt];if(Qt!==st)if(Qt.isPanelMain&&Qt instanceof Dr){i1(a,rt,vt,Qt);var _t=Qt.measuredBounds;x.ed(_t),xt.push(_t)}else if(2>ft)Qt.measure(1/0,1/0,0,0),_t=Qt.measuredBounds,x.ed(_t),xt.push(_t);else{var te=Qt.segmentIndex,ye=Qt.segmentFraction,ze=Qt.alignmentFocus;ze.Mc()&&(ze=ji);var ri=Qt.segmentOrientation,Ti=Qt.segmentOffset;if(isNaN(te)){var Ci=ot.ua;_t=Di(),Ci.Qu(ye,_t);var jn=Bt.allocAt(_t[0],_t[1]);if(jn.add(ot.i(0)),Ci.type===kn.j?jn.offset(-Ci.startX,-Ci.startY):(Ci=Ci.figures.first(),Ci!==null&&jn.offset(-Ci.startX,-Ci.startY)),Ci=_t[2],ri!==Ms){var xn=ot.computeAngle(Qt,ri,Ci);Qt.Kb=xn}xn=jn.x-y.x;var Lr=jn.y-y.y;Bt.free(jn),$n(_t)}else if(te<-ft||te>=ft)_t=Bt.alloc(),ot.vg(),ot.computeMidPoint(_t),Ci=ot.midAngle,ri!==Ms&&(xn=ot.computeAngle(Qt,ri,Ci),Qt.Kb=xn),xn=_t.x-y.x,Lr=_t.y-y.y,Bt.free(_t);else{if(xn=0,0<=te?(Lr=ut.M(te),_t=te<ft-1?ut.M(te+1):Lr):(xn=ft+te,Lr=ut.M(xn),_t=0<xn?ut.M(xn-1):Lr),Lr.Xa(_t)){0<=te?(Ci=0<te?ut.M(te-1):Lr,xn=te<ft-2?ut.M(te+2):_t):(Ci=xn<ft-1?ut.M(xn+1):Lr,xn=1<xn?ut.M(xn-2):_t),jn=Ci.Bf(Lr);var Sr=_t.Bf(xn);Ci=jn>Sr+10?0<=te?Ci.ab(Lr):Lr.ab(Ci):Sr>jn+10?0<=te?_t.ab(xn):xn.ab(_t):0<=te?Ci.ab(xn):xn.ab(Ci)}else Ci=0<=te?Lr.ab(_t):_t.ab(Lr);ri!==Ms&&(xn=ot.computeAngle(Qt,ri,Ci),Qt.Kb=xn),xn=Lr.x+(_t.x-Lr.x)*ye-y.x,Lr=Lr.y+(_t.y-Lr.y)*ye-y.y}Qt.measure(1/0,1/0,0,0),_t=Qt.measuredBounds,jn=Qt.naturalBounds;var lo=0;Qt instanceof Dr&&(lo=Qt.strokeWidth),Sr=jn.width+lo;var Bo=jn.height+lo;Lt.reset(),Lt.translate(-_t.x,-_t.y),Lt.scale(Qt.scale,Qt.scale),Lt.rotate(ri===Ms?Qt.angle:Ci,Sr/2,Bo/2),ri!==ap&&ri!==lp||Lt.rotate(90,Sr/2,Bo/2),ri!==sp&&ri!==up||Lt.rotate(-90,Sr/2,Bo/2),ri===t0&&(45<Ci&&135>Ci||225<Ci&&315>Ci)&&Lt.rotate(-Ci,Sr/2,Bo/2),jn=new de(0,0,Sr,Bo),Ft.xi(jn,ze),Lt.Ga(Ft),ze=-Ft.x+lo/2*Qt.scale,Qt=-Ft.y+lo/2*Qt.scale,Xt.assign(Ti),lo=isNaN(Ti.x);var Ba=isNaN(Ti.y);if(lo||Ba){Sr=Sr/2+3,Bo=Bo/2+3;var ja=45<=Ci&&135>=Ci,vs=225<=Ci&&315>=Ci;ri===Ms&&(ja||vs)?(Xt.x=Ba?Sr:Ti.y,Xt.y=lo?Bo:Ti.x,ja?0<=te||isNaN(te)&&.5>ye||!lo||(Xt.y=-Bo):vs&&((0<=te||isNaN(te)&&.5>ye)&&lo&&(Xt.y=-Bo),Ba&&(Xt.x=-Sr))):(lo&&(Xt.x=0<=te||isNaN(te)&&.5>ye?Sr:-Sr),Ba&&(Xt.y=-Bo),Xt.rotate(Ci))}else Xt.rotate(Ci);xn+=Xt.x,Lr+=Xt.y,jn.set(_t),jn.h(xn+ze,Lr+Qt,_t.width,_t.height),xt.push(jn),x.ed(jn)}}if(tt!==null)for(b=tt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Wn(E,x.width||0,x.height||0),vi.free(Lt),Bt.free(Ft),Bt.free(Xt)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof oo||a instanceof Zn){var b=a,E=null;a instanceof oo&&(E=a,b=E.adornedPart);var z=a instanceof oo?null:b.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt<tt.length){var ot=tt[rt];rt++,z.arrange(ot.x-a.jg.x,ot.y-a.jg.y,ot.width,ot.height)}for(ot=0;ot<x;ot++){var st=y[ot];if(st!==z&&rt<tt.length){var ut=tt[rt];rt++,st.arrange(ut.x-a.jg.x,ut.y-a.jg.y,ut.width,ut.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Zn)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,rt=tt.segmentIndex,ot=tt.segmentFraction;var vt=tt.alignmentFocus;if(st=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(rt)){var xt=ft.ua,Lt=Di();xt.Qu(ot,Lt);var Ft=Bt.allocAt(Lt[0],Lt[1]);Ft.add(ft.i(0)),xt.type===kn.j||(xt=xt.figures.first()),Ft.offset(-xt.startX,-xt.startY),xt=Lt[2],st!==Ms&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=Ft.x;var Xt=Ft.y;Bt.free(Ft),$n(Lt)}else if(rt<-x||rt>=x)Lt=Bt.alloc(),xt=ft,Xt=Lt,xt.vg(),xt.computeMidPoint(Xt),xt=ft.midAngle,st!==Ms&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=Lt.x,Xt=Lt.y,Bt.free(Lt);else{if(Ft=0,0<=rt?(Lt=y.s[rt],Xt=rt<x-1?y.s[rt+1]:Lt):(Ft=x+rt,Lt=y.s[Ft],Xt=0<Ft?y.s[Ft-1]:Lt),Lt.Xa(Xt)){0<=rt?(xt=0<rt?y.s[rt-1]:Lt,Ft=rt<x-2?y.s[rt+2]:Xt):(xt=Ft<x-1?y.s[Ft+1]:Lt,Ft=1<Ft?y.s[Ft-2]:Xt);var Zt=xt.Bf(Lt),Qt=Xt.Bf(Ft);xt=Zt>Qt+10?0<=rt?xt.ab(Lt):Lt.ab(xt):Qt>Zt+10?0<=rt?Xt.ab(Ft):Ft.ab(Xt):0<=rt?xt.ab(Ft):Ft.ab(xt)}else xt=0<=rt?Lt.ab(Xt):Xt.ab(Lt);st!==Ms&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=Lt.x+(Xt.x-Lt.x)*ot,Xt=Lt.y+(Xt.y-Lt.y)*ot}if(vt.ys())tt.location=new Bt(ft,Xt);else{vt.Mc()&&(vt=ji),Lt=vi.alloc(),Lt.reset(),Lt.scale(tt.scale,tt.scale),Lt.rotate(tt.angle,0,0);var _t=tt.naturalBounds;Ft=de.allocAt(0,0,_t.width,_t.height),Zt=Bt.alloc(),Zt.xi(Ft,vt),Lt.Ga(Zt),vt=-Zt.x,Qt=-Zt.y;var te=_t.width,ye=_t.height;_t=Bt.alloc(),_t.assign(ut);var ze=isNaN(ut.x),ri=isNaN(ut.y);if(ze||ri){te=te/2+3,ye=ye/2+3;var Ti=45<=xt&&135>=xt,Ci=225<=xt&&315>=xt;st===Ms&&(Ti||Ci)?(_t.x=ri?te:ut.y,_t.y=ze?ye:ut.x,Ti?0<=rt||isNaN(rt)&&.5>ot||!ze||(_t.y=-ye):Ci&&((0<=rt||isNaN(rt)&&.5>ot)&&ze&&(_t.y=-ye),ri&&(_t.x=-te))):(ze&&(_t.x=0<=rt||isNaN(rt)&&.5>ot?te:-te),ri&&(_t.y=-ye),_t.rotate(xt))}else _t.rotate(xt);ft+=_t.x,Xt+=_t.y,Lt.pp(Ft),vt+=Ft.x,Qt+=Ft.y,rt=Bt.allocAt(ft+vt,Xt+Qt),tt.move(rt),Bt.free(rt),Bt.free(_t),Bt.free(Zt),de.free(Ft),vi.free(Lt)}}E!==null?E.Ul(!1):b.Ul(!1),b=T1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Bt.free(b)}};function i1(a,y,x,b){if(ll(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof oo&&a.type===Tn.Link&&a.adornedObject instanceof Dr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Zn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof oo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Ma(b,!1)}}function Ug(){this.xa="Base"}Me(Ug,Ea),Ug.prototype.measure=function(a,y,x,b,E,z,tt){var rt=a.Pb();a.graduatedBounds=[];var ot=rt.margin,st=ot.right+ot.left,ut=ot.top+ot.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,vt=new de(-ot.left,-ot.top,Math.max(ft.width+st,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(vt),E.assign(vt);for(var xt=rt.geometry,Lt=rt.strokeWidth,Ft=xt.flattenedSegments,Xt=xt.flattenedLengths,Zt=xt.flattenedTotalLength,Qt=Ft.length,_t=0,te=0,ye=Di(),ze=0;ze<Qt;ze++){var ri=Ft[ze],Ti=[];te=_t=0;for(var Ci=ri.length,jn=0;jn<Ci;jn+=2){var xn=ri[jn],Lr=ri[jn+1];if(jn!==0){var Sr=180*Math.atan2(Lr-te,xn-_t)/Math.PI;0>Sr&&(Sr+=360),Ti.push(Sr)}_t=xn,te=Lr}ye.push(Ti)}if(a.graduatedIntervals===null){for(var lo=[],Bo=a.O.s,Ba=Bo.length,ja=0;ja<Ba;ja++){var vs=Bo[ja],Oa=[];if(lo.push(Oa),vs.visible){var Rh=vs.interval;if(!(0>Rh)){for(var xa=0;xa<Ba;xa++)if(xa!==ja){var hu=Bo[xa];if(hu.visible&&vs.constructor===hu.constructor){var ys=hu.interval;ys>Rh&&Oa.push(ys)}}}}}a.graduatedIntervals=lo}var zh=a.graduatedIntervals,cl=a.O.s,Hl=cl.length,el=0,Xs=0,Pd=Zt;a.graduatedMarks=[];for(var du,tg=0;tg<Hl;tg++){var nl=cl[tg];if(du=[],nl.visible&&nl!==rt){var Ss=Math.abs(nl.interval),Dp=a.graduatedTickUnit;if(!(2>Dp*Ss*Zt/a.graduatedRange&&nl.graduatedSkip===null)){var Xc=Xt[0][0],Mu=0,Ys=0;Xs=Zt*nl.graduatedStart-1e-4,Pd=Zt*nl.graduatedEnd+1e-4;var ic=Dp*Ss,il=a.graduatedTickBase;if(il<a.graduatedMin){var wd=(a.graduatedMin-il)/ic;wd=wd%1===0?wd:Math.floor(wd+1),il+=wd*ic}else il>a.graduatedMin+ic&&(il-=Math.floor((il-a.graduatedMin)/ic)*ic);for(var W0=zh[tg],Bp=il,Hy=1e-6*a.graduatedMax,Xu=1;il<=a.graduatedMax+Hy;Xu++){t:{for(var sh=W0.length,Yc=0;Yc<sh;Yc++){var Cd=(il-a.graduatedTickBase)%(W0[Yc]*a.graduatedTickUnit),eg=1e-6*a.graduatedTickUnit;if(Cd<eg&&Cd>-eg){var Ld=!1;break t}}Ld=!0}if(Ld&&(il>a.graduatedMax&&(il=a.graduatedMax),nl.graduatedSkip===null||nl instanceof Oo&&!nl.graduatedSkip(il,nl)||nl instanceof Dr&&!nl.graduatedSkip(il,nl))&&(el=(il-a.graduatedMin)*Zt/a.graduatedRange,el>Zt&&(el=Zt),Xs<=el&&el<=Pd)){for(var Yu=ye[Mu][Ys],jh=Xt[Mu][Ys];Mu<Xt.length;){for(;el>Xc&&Ys<Xt[Mu].length-1;)Ys++,Yu=ye[Mu][Ys],jh=Xt[Mu][Ys],Xc+=jh;if(el<=Xc)break;Mu++,Ys=0,Yu=ye[Mu][Ys],jh=Xt[Mu][Ys],Xc+=jh}var Us=Ft[Mu],Au=Us[2*Ys],G0=Us[2*Ys+1],lh=(el-(Xc-jh))/jh,ng=new Bt(Au+(Us[2*Ys+2]-Au)*lh+Lt/2-xt.bounds.x,G0+(Us[2*Ys+3]-G0)*lh+Lt/2-xt.bounds.y);ng.scale(rt.scale,rt.scale);t:{var cu=Yu,rc=ye[Mu];if(!(.5005>lh&&.4995<lh)){var ku=cu;if(.5>lh?0<Ys?ku=rc[Ys-1]:me.$(Us[0],Us[Us.length-2])&&me.$(Us[1],Us[Us.length-1])&&(ku=rc[rc.length-1]):.5<lh&&(Ys+1<rc.length?ku=rc[Ys+1]:me.$(Us[0],Us[Us.length-2])&&me.$(Us[1],Us[Us.length-1])&&(ku=rc[0])),cu!==ku){var Uc=Math.abs(cu-ku);if(180<Uc&&(cu<ku?cu+=360:ku+=360,Uc=Math.abs(cu-ku)),5e-4>lh||.9995<lh){Yu=(cu+ku)/2%360;break t}if(10>Uc){var ig=1-Math.abs(.5-lh);Yu=(cu*ig+ku*(1-ig))%360;break t}}}Yu=cu}if(nl instanceof Oo){var eu="";nl.graduatedFunction!==null?(eu=nl.graduatedFunction(il,nl),eu=eu!=null?eu.toString():""):eu=(+il.toFixed(2)).toString(),eu!==""&&du.push({$l:ng,angle:Yu,text:eu})}else du.push({$l:ng,angle:Yu})}il=Bp+Xu*ic}}}a.graduatedMarks.push(du)}$n(ye);var Ua=a.graduatedMarks;if(Ua!==null)for(var Op=b.length,Ns=0;Ns<Op;Ns++){var Pa=b[Ns],Ts=Ua[Ns];if(Pa.visible&&Pa!==rt&&Ts.length!==0){if(Pa instanceof Dr){var uh=a,Hh=E,oc=Pa.alignmentFocus;oc.Mc()&&(oc=Fr);var Zy=Pa.angle;Pa.Kb=0,Pa.measure(1/0,1/0,0,0),Pa.Kb=Zy;var V0=Pa.measuredBounds,rg=V0.width,ac=V0.height,Jc=de.allocAt(0,0,rg,ac),Js=Bt.alloc();Js.xi(Jc,oc),de.free(Jc);for(var hh=-Js.x,fu=-Js.y,kl=new de,bd=Ts.length,og=0;og<bd;og++)for(var Md=Ts[og],K0=Md.$l.x,ag=Md.$l.y,da=Md.angle,nu=0;4>nu;nu++){switch(nu){case 0:Js.h(hh,fu);break;case 1:Js.h(hh+rg,fu);break;case 2:Js.h(hh,fu+ac);break;case 3:Js.h(hh+rg,fu+ac)}Js.rotate(da+Pa.angle),Js.offset(K0,ag),og===0&&nu===0?kl.h(Js.x,Js.y,0,0):kl.Ye(Js),Js.offset(-K0,-ag),Js.rotate(-da-Pa.angle)}Bt.free(Js),uh.graduatedBounds!==null&&uh.graduatedBounds.push(kl),oi(Hh,kl.x,kl.y,kl.width,kl.height)}else if(Pa instanceof Oo){var Zl=a,X0=E;Zl.temporaryTextBlock===null&&(Zl.temporaryTextBlock=new Oo);var rl=Zl.temporaryTextBlock;y1(rl,Pa);var Zh=Pa.alignmentFocus;Zh.Mc()&&(Zh=Fr);for(var Wl=Pa.segmentOrientation,sg=Pa.segmentOffset,Ad=new de,Ip=0,lg=0,Eu=0,sc=0,kd=0,ug=Ts.length,Wh=0;Wh<ug;Wh++){var Uu=Ts[Wh];Ip=Uu.$l.x,lg=Uu.$l.y,Eu=Uu.angle,kd=sc=Pa.angle,Wl!==Ms&&(kd=Wl===op||Wl===$m?Eu+Pa.angle:Eu,sc=Zn.computeAngle(Wl,kd)),rl.Kb=sc,rl.text=Uu.text||"",rl.measure(1/0,1/0,0,0);var Gh=rl.measuredBounds,dh=rl.naturalBounds,Vh=dh.width,lc=dh.height,gu=vi.alloc();gu.reset(),gu.translate(-Gh.x,-Gh.y),gu.scale(rl.scale,rl.scale),gu.rotate(kd,Vh/2,lc/2),Wl!==ap&&Wl!==lp||gu.rotate(90,Vh/2,lc/2),Wl!==sp&&Wl!==up||gu.rotate(-90,Vh/2,lc/2),Wl===t0&&(45<Eu&&135>Eu||225<Eu&&315>Eu)&&gu.rotate(-Eu,Vh/2,lc/2);var Qc=de.allocAt(0,0,Vh,lc),Kh=Bt.alloc();Kh.xi(Qc,Zh),gu.Ga(Kh);var qc=-Kh.x,Wy=-Kh.y,ch=Bt.alloc();ch.assign(sg),isNaN(ch.x)&&(ch.x=Vh/2+3),isNaN(ch.y)&&(ch.y=-(lc/2+3)),ch.rotate(Eu),Ip+=ch.x+qc,lg+=ch.y+Wy;var uc=new de(Ip,lg,Gh.width,Gh.height),Rp=new de(Gh.x,Gh.y,Gh.width,Gh.height),Gy=new de(dh.x,dh.y,dh.width,dh.height);Uu.Sz=sc,Uu.lineCount=rl.lineCount,Uu.lines=[rl.Cb,rl.Ih,rl.df,rl.Le,rl.Qc,rl.Qb,rl.ze],Uu.actualBounds=uc,Uu.measuredBounds=Rp,Uu.naturalBounds=Gy,Wh===0?Ad.assign(uc):Ad.ed(uc),Bt.free(ch),Bt.free(Kh),de.free(Qc),vi.free(gu)}Zl.graduatedBounds!==null&&Zl.graduatedBounds.push(Ad),oi(X0,Ad.x,Ad.y,Ad.width,Ad.height)}Ma(Pa,!1)}}},Ug.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,b!==null&&b.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var ot=y.length,st=0;st<ot;st++){var ut=y[st];rt=E[st],ut.visible&&ut!==b&&rt.length!==0&&(rt=z[tt],tt++,ut.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},Ug.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,tt=E.height;E=y instanceof _s,y.save(),y.beginPath(),y.rect(-1,-1,z+1,tt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),tt=a.Df()*x.scale,0>=tt&&(tt=1);for(var rt=z.actualBounds,ot=a.O.s,st=a.graduatedMarks,ut=ot.length,ft=0;ft<ut;ft++){var vt=ot[ft],xt=st[ft],Lt=xt.length;if(vt.visible&&vt!==z&&xt.length!==0){if(vt instanceof Dr){if(!(2>a.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Ft=vt.measuredBounds,Xt=vt.strokeWidth*vt.scale,Zt=vt.alignmentFocus;Zt.Mc()&&(Zt=Fr);for(var Qt=0;Qt<Lt;Qt++){var _t=xt[Qt].$l,te=xt[Qt].angle,ye=Zt,ze=vt.Ab;ze.reset(),ze.translate(_t.x+rt.x,_t.y+rt.y),ze.rotate(te+vt.angle,0,0),ze.translate(-Ft.width*ye.x+ye.offsetX+Xt/2,-Ft.height*ye.y+ye.offsetY+Xt/2),ze.scale(vt.scale,vt.scale),Ol(vt,!1),vt.wh.set(vt.Ab),vt.Kk=vt.scale,Pl(vt,!1),vt.gc(y,x),E&&(a.svg.appendChild(vt.svg),vt.svg=null),vt.Ab.reset()}}}else if(vt instanceof Oo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Oo),Ft=a.temporaryTextBlock,y1(Ft,vt),Xt=0;Xt<Lt;Xt++)Zt=xt[Xt],Zt.actualBounds&&Zt.measuredBounds&&Zt.naturalBounds&&(Ft.ec=Zt.text||"",Ft.Kb=Zt.Sz||0,Ft.Gc=Zt.lineCount||0,Qt=Zt.lines,Qt!==void 0&&(Ft.Cb=Qt[0],Ft.Ih=Qt[1],Ft.df=Qt[2],Ft.Le=Qt[3],Ft.Qc=Qt[4],Ft.Qb=Qt[5],Ft.ze=Qt[6]),Zt.naturalBounds&&(Ft.dc=Zt.naturalBounds),Zt.actualBounds&&(Qt=Zt.actualBounds,Ft.arrange(Qt.x,Qt.y,Qt.width,Qt.height)),Qt=Zt.actualBounds,Ft.arrange(Qt.x,Qt.y,Qt.width,Qt.height),_t=Zt.measuredBounds,Zt=Zt.naturalBounds,te=Ft.Ab,te.reset(),te.translate(Qt.x+rt.x,Qt.y+rt.y),te.translate(-_t.x,-_t.y),Ft.no(te,Zt.x,Zt.y,Zt.width,Zt.height),Ol(Ft,!1),Ft.wh.set(Ft.Ab),Ft.Kk=Ft.scale,Pl(Ft,!1),Ft.Ng=vt.part,Ft.Me=vt.panel,Ft.gc(y,x),Ft.Me=null,Ft.Ng=null,E&&(a.svg.appendChild(Ft.svg),Ft.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Tn(a,y){if(Pe.call(this),this.na=null,a===void 0)this.na=Tn.Position;else if(typeof a=="string"){var x=Jl.I(a);x!==null&&(this.na=x)}else a instanceof Ea?this.na=a:a&&(this.na=Tn.Position,y=a);this.na===null&&qt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Tn.Grid?1048576:0),this.O=new pn,this.yb=Pr,this.Tm=ko,this.Uf=Ar,this.$g=null,this.$e="",this.jg=new de(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Hi,this.jn=hn,this.kn=ti,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Me(Tn,Pe),Tn.prototype.cloneProtected=function(a){Pe.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},Tn.prototype.Af=function(a){Pe.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Tn.prototype.copy=function(){var a=Pe.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof di&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(Uo,"elements",a,null,E,null,tt)}}return a}return null},Pt=Tn.prototype,Pt.toString=function(){return"Panel("+this.type.name+")#"+Cr(this)},Pt.Pn=function(a){Pe.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Pt.hh=function(a,y){if(this.na===Tn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Tn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Tn.Table)if(a.yc(),a instanceof _s){var x=a.yd;a.yd=dm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===Tn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x&&rt===b&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&bm(a,y,!0,x,!0),b!==null&&bm(a,y,!1,b,!0),x!==null&&r1(a,y,!0,x),b!==null&&r1(a,y,!1,b),x!==null&&bm(a,y,!0,x,!1),b!==null&&bm(a,y,!1,b,!1)}function r1(a,y,x,b){for(var E=b.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,ot=0;ot<E;ot++){var st=b[ot];if(st!==void 0&&st.actual!==0)if(rt)rt=!1;else{if(x){if(st.position>tt.height)continue}else if(st.position>tt.width)continue;var ut=st.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=st.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){ha(a,y,ft,!1,!1,tt,z),ft=!1;var vt=st.separatorDashArray;vt===null&&(vt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),vt!==null&&(ft=!0,y.js(vt,0)),y.beginPath(),vt=st.position+ut,x?vt>tt.height&&(ut-=vt-tt.height):vt>tt.width&&(ut-=vt-tt.width),st=st.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(st+=ut.top,vt=tt.width-ut.right,y.moveTo(ut.left,st),y.lineTo(vt,st)):(st+=ut.left,vt=tt.height-ut.bottom,y.moveTo(st,ut.top),y.lineTo(st,vt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function bm(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,rt=a.naturalBounds,ot=o1(a,!0),st=o1(a,!1),ut=0;ut<z;ut++){var ft=b[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==E&&ft.actual!==0){var vt=x?tt.height:tt.width;if(!(ft.position>vt)){var xt=ft.Wc(),Lt=ft.separatorStrokeWidth;isNaN(Lt)&&(Lt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ft=ft.separatorStroke;Ft===null&&(Ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Ft===null||ft.index===(x?ot:st))&&(Lt=0),xt-=Lt,Lt=ft.position+Lt,xt+=ft.actual,Lt+xt>vt&&(xt=vt-Lt),0>=xt||(vt=a.yb,ha(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(vt.left,Lt+vt.top,tt.width-(vt.left+vt.right),xt):y.fillRect(Lt+vt.left,vt.top,xt,tt.height-(vt.top+vt.bottom)))}}}}function o1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function pv(a){return a==="LineV"||a==="BarV"}Pt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Pt.kk=function(a,y,x){if(!Pe.prototype.kk.call(this,a,y,x))return!1;if(this.type===Tn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===Tn.Grid||this.na===Tn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},Pt.nk=function(){return!0},Pt.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var rt=y[tt].actualBounds;E=tt===0?rt.x:Math.min(rt.x,E),z=tt===0?rt.y:Math.min(rt.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Pe.prototype.$o.call(this,a,y,x,b)},Pt.Sj=function(a,y,x,b,E){var z=this.se(),tt=this.transform,rt=1/(tt.m11*tt.m22-tt.m12*tt.m21),ot=tt.m22*rt,st=-tt.m12*rt,ut=-tt.m21*rt,ft=tt.m11*rt,vt=rt*(tt.m21*tt.dy-tt.m22*tt.dx),xt=rt*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,me.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*ot+y*ut+vt,rt=a*st+y*ft+xt,a=x*ot+b*ut+vt,ot=x*st+b*ft+xt,E.h(0,0),x=this.naturalBounds,z=me.Ff(0,0,x.width,x.height,z,rt,a,ot,E),E.transform(tt),z;z||(ot=1,ut=st=0,ft=1,xt=vt=0),rt=a*ot+y*ut+vt,a=a*st+y*ft+xt,ot=x*ot+b*ut+vt,x=x*st+b*ft+xt,E.h(ot,x),b=(ot-rt)*(ot-rt)+(x-a)*(x-a),st=!1,ft=this.O.s,xt=ft.length,ut=Bt.alloc(),vt=null,y=1/0;var Lt=null,Ft=this.isClipping&&this.na===Tn.Spot;Ft&&(Lt=Bt.alloc(),vt=this.Pb(),(st=vt.Sj(rt,a,ot,x,Lt))&&(y=(rt-Lt.x)*(rt-Lt.x)+(a-Lt.y)*(a-Lt.y)));for(var Xt=0;Xt<xt;Xt++){var Zt=ft[Xt];Zt.visible&&Zt!==vt&&Zt.Sj(rt,a,ot,x,ut)&&(st=!0,Zt=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),Zt<b&&(b=Zt,E.set(ut)))}return Ft&&(y>b&&E.set(Lt),Bt.free(Lt)),Bt.free(ut),z&&E.transform(tt),st},Pt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Pe.prototype.Gj.call(this)},Pt.v=function(a){if(!ll(this)){Pe.prototype.v.call(this,a),a=null,(this.na===Tn.Auto||this.na===Tn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=Os(E,!1);(E instanceof bs||E instanceof Tn||E instanceof Oo||z!==Cn)&&E.v(!0)}}}},Pt.Uj=function(){if(!ll(this)){Ma(this,!0),Ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Pt.Uk=function(){if(!(this.l&2048)){Ol(this,!0),Pl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Pt.Wu=function(){Pl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Pt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,b=tt.height),x=Math.max(x,tt.width),b=Math.max(b,tt.height);var rt=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,rt.width)),isNaN(z.height)||(y=Math.min(z.height,rt.height)),a=Math.max(x,a),y=Math.max(b,y);var ot=this.yb;a=Math.max(a-ot.left-ot.right,0),y=Math.max(y-ot.top-ot.bottom,0);var st=this.O.s;st.length!==0&&this.na.measure(this,a,y,st,E,x,b),a=E.width+ot.left+ot.right,ot=E.height+ot.top+ot.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(ot=z.height),a=Math.min(rt.width,a),ot=Math.min(rt.height,ot),a=Math.max(tt.width,a),ot=Math.max(tt.height,ot),a=Math.max(x,a),ot=Math.max(b,ot),Wn(E,a,ot),Wn(this.naturalBounds,a,ot),this.Ge(0,0,a,ot)},Pt.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 b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function rh(a){return a.part!==null?a.part.locationObject:null}Pt.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=Os(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,rt=tt.left+tt.right;switch(tt=tt.top+tt.bottom,y===x&&z===b&&(a=Cn),a){case Cn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Fn:this.v(!0),this.measure(x+rt,b+tt,0,0);break;case Yi:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case sr:this.v(!0),this.measure(y+rt,b+tt,0,0)}}this.na.arrange(this,E,this.jg)}},Pt.gh=function(a){var y=this.naturalBounds,x=rh(this);if(Vn(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Bt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(pi(E.set(a),z.transform),z.ca(E)))return Bt.free(E),!0}return Bt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Pt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},Pt.qm=function(a,y){if(y(this,a),a instanceof Tn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Jd(a,y){a1(a,a,y)}function a1(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof Tn&&a1(a,z,x)}}function vx(a,y){s1(a,a,y)}function s1(a,y,x){if(x(y),y instanceof Tn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)s1(a,y[E],x)}}Pt.Nl=function(a){return l1(this,this,a)};function l1(a,y,x){if(x(y))return y;if(y instanceof Tn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=l1(a,y[E],x);if(z!==null)return z}}return null}Pt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Jg(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Tn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function u1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Tn?x=Math.max(x,u1(E)):E instanceof Dr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Pt.se=function(){return!(this.type===Tn.TableRow||this.type===Tn.TableColumn)};function Ah(a){return a.type===Tn.TableRow||a.type===Tn.TableColumn}Pt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Cs(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),tt=z?a:pi(Bt.allocAt(a.x,a.y),this.transform),rt=this.diagram,ot=10,st=5;if(rt!==null&&(ot=rt.Ql("extraTouchArea"),st=ot/2),Vn(-(st*E),-(st*E),b.width+ot*E,b.height+ot*E,tt.x,tt.y)){if(!this.isAtomic){E=this.O.s;var ut=E.length;if(rt=Bt.alloc(),st=(ot=this.isClipping&&this.na===Tn.Spot)?this.Pb():null,ot&&(st.se()?pi(rt.set(a),st.transform):rt.set(a),!st.ca(rt)))return Bt.free(rt),z||Bt.free(tt),null;for(var ft=rh(this);ut--;){var vt=E[ut];if((vt.visible||vt===ft)&&(vt.se()?pi(rt.set(a),vt.transform):rt.set(a),!ot||vt!==st)){var xt=null;if(vt instanceof Tn?xt=vt.ic(rt,y,x):vt.pickable===!0&&vt.ca(rt)&&(xt=vt),xt!==null&&(y!==null&&(xt=y(xt)),xt!==null&&(x===null||x(xt))))return Bt.free(rt),z||Bt.free(tt),xt}}Bt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Bt.free(tt),null):(a=Vn(0,0,b.width,b.height,tt.x,tt.y)?this:null,z||Bt.free(tt),a)}return z||Bt.free(tt),null},Pt.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),tt=z?a:pi(Bt.allocAt(a.x,a.y),this.transform);if(E=Vn(0,0,E.width,E.height,tt.x,tt.y),Ah(this)||E){if(!this.isAtomic){for(var rt=this.O.s,ot=rt.length,st=Bt.alloc(),ut=rh(this);ot--;){var ft=rt[ot];if(ft.visible||ft===ut){ft.se()?pi(st.set(a),ft.transform):st.set(a);var vt=ft;ft=ft instanceof Tn?ft:null,(ft!==null?ft.ji(st,y,x,b):vt.ca(st))&&vt.pickable!==!1&&(y!==null&&(vt=y(vt)),vt===null||x!==null&&!x(vt)||b.add(vt))}}Bt.free(st)}return z||Bt.free(tt),E&&(this.background!==null||this.areaBackground!==null)}return z||Bt.free(tt),!1},Pt.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=vi.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,E),z===void 0&&vi.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=rh(this),ot=this.O.s,st=ot.length;st--;){var ut=ot[st];if(ut.visible||ut===rt){var ft=ut.actualBounds,vt=this.naturalBounds;ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof Tn?ut:null,vt=vi.alloc(),vt.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,vt):Da(ft,a,b,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||E.add(ft)),vi.free(vt))}}return z===void 0&&vi.free(tt),b}return z===void 0&&vi.free(tt),!1};function mv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var tt=E[z];if(tt.visible){var rt=tt.actualBounds,ot=a.naturalBounds;rt.x>ot.width||rt.y>ot.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof Tn&&mv(tt,y,x,b),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||b.add(tt))}}}Pt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var tt=this.naturalBounds,rt=this.se(),ot=rt?a:pi(Bt.allocAt(a.x,a.y),this.transform),st=rt?y:pi(Bt.allocAt(y.x,y.y),this.transform),ut=ot.Bf(st),ft=0<ot.x&&ot.x<tt.width&&0<ot.y&&ot.y<tt.height||mi(ot.x,ot.y,0,0,0,tt.height)<=ut||mi(ot.x,ot.y,0,tt.height,tt.width,tt.height)<=ut||mi(ot.x,ot.y,tt.width,tt.height,tt.width,0)<=ut||mi(ot.x,ot.y,tt.width,0,0,0)<=ut;if(tt=ot.zd(0,0)<=ut&&ot.zd(0,tt.height)<=ut&&ot.zd(tt.width,0)<=ut&&ot.zd(tt.width,tt.height)<=ut,rt||(Bt.free(ot),Bt.free(st)),ft){if(!this.isAtomic){ot=Bt.alloc(),st=Bt.alloc(),ut=rh(this);for(var vt=this.O.s,xt=vt.length;xt--;){var Lt=vt[xt];if(Lt.visible||Lt===ut){var Ft=Lt.actualBounds,Xt=this.naturalBounds;(!rt||!(Ft.x>Xt.width||Ft.y>Xt.height||0>Ft.x+Ft.width||0>Ft.y+Ft.height))&&(Lt.se()?(Ft=Lt.transform,pi(ot.set(a),Ft),pi(st.set(y),Ft)):(ot.set(a),st.set(y)),Ft=Lt,Lt=Lt instanceof Tn?Lt:null,(Lt!==null?Lt.og(ot,st,x,b,E,z):Ft.tx(ot,st,E))&&(x!==null&&(Ft=x(Ft)),Ft===null||b!==null&&!b(Ft)||z.add(Ft)))}}Bt.free(ot),Bt.free(st)}return E?ft:tt}return!1};function vv(a){var y=null;return a instanceof Dr&&(y=a.spot1,y===ko&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=hr),y}function yv(a){var y=null;return a instanceof Dr&&(y=a.spot2,y===ko&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Tr),y}Pt.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},Pt.M=function(a){return this.O.M(a)},Pt.Gb=function(a,y){y instanceof $i&&qt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&qt("Cannot make a Panel contain itself: "+this.toString()),qt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&qt("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!==Tn.Grid||y instanceof Dr||qt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Tn.Graduated||y instanceof Dr||y instanceof Oo||qt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new Ge),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,tt=this.O.s,rt=tt.length,ot=0;ot<rt;ot++)if(tt[ot]===y){z=ot;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else qt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ll(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Tn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Am(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof di&&(x.Te=!0),x.Te&&x instanceof di&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(ua,"elements",this,y,null,b,null),x.cb(Uo,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Pt.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},Pt.mb=function(a){0<=a&&this.pc(a,!0)},Pt.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Ma(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof di&&(b instanceof Tn?b.qm(b,function(tt,rt){Wv(z,rt,y)}):Wv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ua,"elements",this,b,null,a,null))},Pt.Fb=function(a){0>a&&Rn(a,">= 0",Tn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Aa;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Uo,"rowdefs",this,null,x,null,a)}return y[a]},Pt.oA=function(a){if(0>a&&Rn(a,">= 0",Tn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(ua,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Aa?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Pt.Eb=function(a){0>a&&Rn(a,">= 0",Tn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Aa;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Uo,"coldefs",this,null,x,null,a)}return y[a]},Pt.jA=function(a){if(0>a&&Rn(a,">= 0",Tn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(ua,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Aa?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Pt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&km(y,a),this},Pt.Hy=function(a,y){return(a=this.Fb(a))&&km(a,new Aa(y)),this},Pt.By=function(a,y){return(a=this.Eb(a))&&km(a,new Aa(y)),this},Pt.nz=function(a){if(0>a||this.type!==Tn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Pt.fz=function(a){if(0>a||this.type!==Tn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Pt.Fz=function(a,y){if(y===void 0&&(y=new Bt(NaN,NaN)),this.type!==Tn.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)},Pt.Gz=function(a){if(this.type!==Tn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function c1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Rl(a){var y=a.allBindings;if(y===null)a.data!==null&&qt("Template cannot have .data be non-null: "+a),a.allBindings=y=new pn;else if(y._isFrozen)return;var x=new pn;Sv(a,!1),a.qm(a,function(st,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(Nc(ut,!1),ft=ft.iterator;ft.next();){var vt=ft.value;vt.mode===vp&&Nc(ut,!0);var xt=vt.sourceName;xt!==null&&(xt==="/"&&Sv(st,!0),xt=MS(vt,st,ut),xt!==null&&(x.add(xt),xt.srcBindings===null&&(xt.srcBindings=new pn),xt.srcBindings.add(vt))),y.add(vt)}if(ut instanceof Tn&&ut.type===Tn.Table){if(0<ut.rowCount){for(st=ut.rowDefs,ft=st.length,vt=0;vt<ft;vt++)if(xt=st[vt],xt!==void 0&&xt.be!==null)for(var Lt=xt.be.iterator;Lt.next();){var Ft=Lt.value;Ft.xd=xt,Ft.to=2,Ft.wl=xt.index,y.add(Ft)}}if(0<ut.columnCount){for(ut=ut.colDefs,st=ut.length,ft=0;ft<st;ft++)if(vt=ut[ft],vt!==void 0&&vt.be!==null)for(xt=vt.be.iterator;xt.next();)Lt=xt.value,Lt.xd=vt,Lt.to=1,Lt.wl=vt.index,y.add(Lt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Nc(E,!0);for(var z=E.srcBindings.iterator;z.next();){var tt=z.value;E.localBindings===null&&(E.localBindings=new pn),E.localBindings.add(tt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var rt=E.targetProperty,ot=rt.indexOf(".");0<ot&&z instanceof Tn&&(tt=rt.substring(0,ot),rt=rt.substr(ot+1),ot=z.fb(tt),ot!==null?(z=ot,E.targetProperty=rt):Ai('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+E.toString())),z instanceof Aa?(tt=Cr(z.panel),E.Ai=tt===void 0?-1:tt,z.panel.bindingId=E.Ai):z instanceof Pe?(tt=Cr(z),E.Ai=tt===void 0?-1:tt,z.bindingId=E.Ai):qt("Unknown type of binding target: "+z)}y.freeze(),a instanceof $i&&a.Zc()&&a.Va()}Pt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof Tn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Rl(y),y},Pt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof Tn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Pt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Tn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var tt=0;E<x&&tt<b;){if(z=a[E],!(z instanceof Tn)||z.data!==y[tt])return!0;E++,tt++}return!1}function Jg(a){if(a.type===Tn.Spot||a.type===Tn.Auto)return Math.min(a.O.length,1);if(a.type===Tn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Dr&&b.isPanelMain))break}return x}return a.type===Tn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Tn&&Ah(a))?1:0}Pt.mv=function(){for(var a=Jg(this);this.O.length>a;)this.pc(this.O.length-1,!1);f1(this,this.itemArray)};function f1(a,y){var x=Jg(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 b=0;b<x;b++)Mm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],tt=b<a.O.length?a.O.M(b):null;if(tt instanceof Tn){if(tt.data!==z){var rt=Pv(a,tt.data),ot=Pv(a,z),st=ot!==rt;st||(rt=wv(a,rt),st=wv(a,ot)!==rt),st?(a.pc(b,!1),Mm(a,z,E,!1)):tt.data=z}}else Mm(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xv(a,x,0),ll(a)||a.v(),a.graduatedIntervals=null,a.If()||Am(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof di&&(y.Te=!0),y.Te&&y instanceof di&&(y.wc=null))}}function Mm(a,y,x,b){if(!(y==null||0>x)){var E=Pv(a,y);if(E=wv(a,E),E!==null){if(Rl(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Ge),a.ge.add(y,E)),z=x+Jg(a),a.Gb(z,E),b&&(E.ub=y,xv(a,z,x),E.ub=null),E.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Tn){var E=y,z=x;b.type===Tn.TableRow?b.row=E:b.type===Tn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Pv(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=ma(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;qt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function wv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(g1||(g1=!0,Ai('No item template Panel found for category "'+y+'" on '+a),Ai(" Using default item template."),a=new Tn,y=new Oo,y.bind(new Sa("text","",dr)),a.add(y),p1=a),b=p1)),b}function Am(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Tn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Tn&&!z.isEnabled||Am(a,z,x)}}}function Lu(a,y){y.name=a,Jl.add(a,y)}be.Object.defineProperties(Tn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Tn.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&&Rn(a,">= 0",Tn,"padding"),a=new Si(a)):(0>a.left&&Rn(a.left,">= 0",Tn,"padding:value.left"),0>a.right&&Rn(a.right,">= 0",Tn,"padding:value.right"),0>a.top&&Rn(a.top,">= 0",Tn,"padding:value.top"),0>a.bottom&&Rn(a.bottom,">= 0",Tn,"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:Pr},set:function(a){typeof a=="number"&&(a=new Si(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Ll),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 yo)&&(a instanceof yo&&a.freeze(),this.T===null&&(this.T=new Ll),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 Ll),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,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||qt("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Ll),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 yo)&&(a instanceof yo&&a.freeze(),this.T===null&&(this.T=new Ll),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 Ll),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,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||qt("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Ll),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 Ll),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||qt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pu(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()||qt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pu(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 oh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),$a(this)&&(a=this.part,a!==null&&Vo(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 oh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),$a(this)&&(a=this.part,a!==null&&Vo(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 oh),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 oh),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 oh,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 oh,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 oh,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 oh,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 Ll),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ll),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Fm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Ll),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Fm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Ll),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)&&qt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ll),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)&&qt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ll),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 $i&&!(this instanceof oo);Rl(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Zn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof $i&&(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),b!==null&&b.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 Tc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||f1(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 Ge}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof $i||a.isPanelMain)&&qt("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(););Rr(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&&(Rr(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 Mr&&(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&&Am(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))}}}),be.Object.defineProperties(Tn,{Position:{get:function(){return Jl.I("Position")}},Horizontal:{get:function(){return Jl.I("Horizontal")}},Vertical:{get:function(){return Jl.I("Vertical")}},Spot:{get:function(){return Jl.I("Spot")}},Auto:{get:function(){return Jl.I("Auto")}},Table:{get:function(){return Jl.I("Table")}},Viewbox:{get:function(){return Jl.I("Viewbox")}},TableRow:{get:function(){return Jl.I("TableRow")}},TableColumn:{get:function(){return Jl.I("TableColumn")}},Link:{get:function(){return Jl.I("Link")}},Grid:{get:function(){return Jl.I("Grid")}},Graduated:{get:function(){return Jl.I("Graduated")}}}),Tn.prototype.rebuildItemElements=Tn.prototype.mv,Tn.prototype.findItemPanelForData=Tn.prototype.sx,Tn.prototype.updateTargetBindings=Tn.prototype.La,Tn.prototype.copyTemplate=Tn.prototype.Uy,Tn.prototype.graduatedValueForPoint=Tn.prototype.Gz,Tn.prototype.graduatedPointForValue=Tn.prototype.Fz,Tn.prototype.findColumnForLocalX=Tn.prototype.fz,Tn.prototype.findRowForLocalY=Tn.prototype.nz,Tn.prototype.addColumnDefinition=Tn.prototype.By,Tn.prototype.addRowDefinition=Tn.prototype.Hy,Tn.prototype.addRowColumnDefinition=Tn.prototype.Gy,Tn.prototype.removeColumnDefinition=Tn.prototype.jA,Tn.prototype.getColumnDefinition=Tn.prototype.Eb,Tn.prototype.removeRowDefinition=Tn.prototype.oA,Tn.prototype.getRowDefinition=Tn.prototype.Fb,Tn.prototype.removeAt=Tn.prototype.mb,Tn.prototype.remove=Tn.prototype.remove,Tn.prototype.insertAt=Tn.prototype.Gb,Tn.prototype.elt=Tn.prototype.M,Tn.prototype.add=Tn.prototype.add,Tn.prototype.findObject=Tn.prototype.fb,Tn.prototype.findInVisualTree=Tn.prototype.Nl,Tn.prototype.walkVisualTreeFrom=Tn.prototype.qm,Tn.prototype.findMainElement=Tn.prototype.Pb;var g1=!1,p1=null,Jl=new Ge;Tn.className="Panel",Tn.definePanelLayout=Lu,Lu("Position",new gm),Lu("Vertical",new mm),Lu("Auto",new ym),Lu("Link",new Lm);function oh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}oh.prototype.copy=function(){var a=new oh;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},oh.className="GradPanelSettings";function Ll(){this.Pc=[],this.Oc=[],this.j=this.ob=Fm,this.hb=this.Hb=0,this.Qp=Pr,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ll.prototype.copy=function(a){for(var y=new Ll,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),E[z]=tt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),E[z]=tt);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},Ll.className="TablePanelSettings";function Aa(a){_i(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ko,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=Ar,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))}Aa.prototype.copy=function(){var a=new Aa;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=li(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function km(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=li(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Pt=Aa.prototype,Pt.qb=function(a){a.classType===Aa&&(this.sizing=a)},Pt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Cr(this)},Pt.wi=function(a){this.Me=a},Pt.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)},Pt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Tn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var tt=b?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Pt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(To,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Em(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Pt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Sa(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&c1(y)&&qt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new pn),this.be.add(E),this},be.Object.defineProperties(Aa.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&&Rn(a,">= 0",Aa,"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&&Rn(a,">= 0",Aa,"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))&&Rn(a,">= 0",Aa,"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&&Rn(a,">= 0",Aa,"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 Si(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&&Bc(a,"RowColumnDefinition.separatorStroke"),a instanceof yo&&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,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||qt("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===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&&Bc(a,"RowColumnDefinition.background"),a instanceof yo&&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}}}),Aa.prototype.computeEffectiveSpacing=Aa.prototype.Wc,Aa.prototype.computeEffectiveSpacingTop=Aa.prototype.Io;var Cv=new rn(Aa,"Default",0),Qg=new rn(Aa,"None",1),Fm=new rn(Aa,"ProportionalExtra",2);Aa.className="RowColumnDefinition",Aa.Default=Cv,Aa.None=Qg,Aa.ProportionalExtra=Fm;function Dr(a,y){Pe.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)}Me(Dr,Pe),Dr.prototype.cloneProtected=function(a){Pe.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=li(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 Qd(a){a.Na===null?a.Na=new Mv:a.Na.nc&&(a.Na=a.Na.copy())}Pt=Dr.prototype,Pt.th=function(){Pe.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Pt.qb=function(a){a===Cn||a===Hi||a===Xr||a===Ar?this.geometryStretch=a:Pe.prototype.qb.call(this,a)},Pt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Cr(this)};function Tf(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],ot=x[1],st,ut,ft,vt,xt,Lt,Ft=0,Xt=Di(),Zt=2;Zt<E;Zt+=2)st=x[Zt],ut=x[Zt+1],ft=st-rt,rt=ut-ot,ft===0&&(ft=.001),vt=rt/ft,xt=Math.atan2(rt,ft),Lt=Math.sqrt(ft*ft+rt*rt),Xt.push([ft,xt,vt,Lt]),Ft+=Lt,rt=st,ot=ut;rt=x[0],ot=x[1],ft=b.measuredBounds.width,b instanceof Dr&&(ft-=b.strokeWidth),1>ft&&(ft=1),E=x=ft,st=tt/2,ut=st!==0,Zt=0,Lt=Xt[Zt],ft=Lt[0],xt=Lt[1],vt=Lt[2],Lt=Lt[3];for(var Qt=0;.1<=Ft;){if(Qt===0&&(ut?(E=x,E-=st,Ft-=st,ut=!1):E=x,E===0&&(E=1)),E>Ft){$n(Xt);return}E>Lt?(Qt=E-Lt,E=Lt):Qt=0;var _t=Math.sqrt(E*E/(1+vt*vt));if(0>ft&&(_t=-_t),rt+=_t,ot+=vt*_t,a.translate(rt,ot),a.rotate(xt),a.translate(-(tt/2),-(z/2)),Qt===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-xt),a.translate(-rt,-ot),Ft-=E,Lt-=E,Qt!==0){if(Zt++,Zt===Xt.length){$n(Xt);return}Lt=Xt[Zt],ft=Lt[0],xt=Lt[1],vt=Lt[2],Lt=Lt[3],E=Qt}}$n(Xt)}}Pt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;b!==null&&ha(this,a,b,!0,!1,tt,z);var rt=this.part,ot=this.ig;if(x===null||ot!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(ot=rt.type===Tn.Link&&rt instanceof oo&&rt.category==="Selection"&&rt.adornedObject instanceof Dr&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(ha(this,a,x,!1,!1,tt,z),a.lineWidth=ot,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||b!==null&&b!=="transparent"||(rt=!1),tt=!1,ot=this.strokeDashArray,ot!==null&&(tt=!0,a.js(ot,this.strokeDashOffset)),E.type===kn.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===kn.u){var st=E.startX;ot=E.startY;var ut=E.endX,ft=E.endY;E=Math.min(st,ut);var vt=Math.min(ot,ft);st=Math.abs(ut-st),ot=Math.abs(ft-ot),a.beginPath(),a.rect(E,vt,st,ot),b!==null&&a.ng(b),x!==null&&(rt&&z&&Iu(a),a.jk(),rt&&z&&eh(a)),a.Se()}else if(E.type===kn.F)st=E.startX,ot=E.startY,ut=E.endX,ft=E.endY,E=Math.abs(ut-st)/2,vt=Math.abs(ft-ot)/2,st=Math.min(st,ut)+E,ot=Math.min(ot,ft)+vt,a.beginPath(),a.moveTo(st,ot-vt),a.bezierCurveTo(st+me.wg*E,ot-vt,st+E,ot-me.wg*vt,st+E,ot),a.bezierCurveTo(st+E,ot+me.wg*vt,st+me.wg*E,ot+vt,st,ot+vt),a.bezierCurveTo(st-me.wg*E,ot+vt,st-E,ot+me.wg*vt,st-E,ot),a.bezierCurveTo(st-E,ot-me.wg*vt,st-me.wg*E,ot-vt,st,ot-vt),a.closePath(),b!==null&&a.ng(b),x!==null&&(rt&&z&&Iu(a),a.jk(),rt&&z&&eh(a)),a.Se();else if(E.type===kn.o)for(E=E.figures,ot=E.length,vt=0;vt<ot;vt++){st=E.s[vt],a.beginPath(),a.moveTo(st.startX,st.startY),ut=st.segments.s,ft=ut.length;for(var xt=null,Lt=0;Lt<ft;Lt++){var Ft=ut[Lt];switch(Ft.type){case sa:a.moveTo(Ft.endX,Ft.endY);break;case mo:a.lineTo(Ft.endX,Ft.endY);break;case fa:a.bezierCurveTo(Ft.point1X,Ft.point1Y,Ft.point2X,Ft.point2Y,Ft.endX,Ft.endY);break;case ls:a.quadraticCurveTo(Ft.point1X,Ft.point1Y,Ft.endX,Ft.endY);break;case ra:if(Ft.radiusX===Ft.radiusY){var Xt=Math.PI/180;a.arc(Ft.point1X,Ft.point1Y,Ft.radiusX,Ft.startAngle*Xt,(Ft.startAngle+Ft.sweepAngle)*Xt,0>Ft.sweepAngle,xt!==null?xt.endX:st.startX,xt!==null?xt.endY:st.startY)}else if(xt=Ha(Ft,st),Xt=xt.length,Xt===0)a.lineTo(Ft.centerX,Ft.centerY);else for(var Zt=0;Zt<Xt;Zt++){var Qt=xt[Zt];Zt===0&&a.lineTo(Qt[0],Qt[1]),a.bezierCurveTo(Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7])}break;case us:if(Zt=Xt=0,xt!==null&&xt.type===ra){if(xt=Ha(xt,st),Qt=xt.length,Qt===0){a.lineTo(Ft.endX,Ft.endY);break}xt=xt[Qt-1]||null,xt!==null&&(Xt=xt[6],Zt=xt[7])}else Xt=xt!==null?xt.endX:st.startX,Zt=xt!==null?xt.endY:st.startY;if(xt=qa(Ft,st,Xt,Zt),Xt=xt.length,Xt===0){a.lineTo(Ft.endX,Ft.endY);break}for(Zt=0;Zt<Xt;Zt++)Qt=xt[Zt],a.bezierCurveTo(Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7]);break;default:qt("Segment not of valid type: "+Ft.type)}Ft.isClosed&&a.closePath(),xt=Ft}ut=st.isFilled,z?st.isShadowed?(ut===!0&&b!=="transparent"&&b!==null&&a.ng(b,st.isEvenOdd),x!==null&&(ut&&rt&&Iu(a),a.jk(),ut&&rt&&eh(a))):(Iu(a),ut&&b!=="transparent"&&b!==null&&a.ng(b,st.isEvenOdd),x!==null&&a.jk(),eh(a)):(ut&&b!==null&&a.ng(b,st.isEvenOdd),x!==null&&a.jk()),a.Se(vt)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=Di(),z.type===kn.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Tf(a,y,b,x);else if(z.type===kn.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,b.length=0,b.push(rt.startX),b.push(rt.startY),tt=rt.startX,E=rt.startY,ot=tt,vt=E,st=rt.segments.s,ut=st.length,ft=0;ft<ut;ft++){switch(Lt=st[ft],Lt.type){case sa:Tf(a,y,b,x),b.length=0,b.push(Lt.endX),b.push(Lt.endY),tt=Lt.endX,E=Lt.endY,ot=tt,vt=E;break;case mo:b.push(Lt.endX),b.push(Lt.endY),tt=Lt.endX,E=Lt.endY;break;case fa:me.Qe(tt,E,Lt.point1X,Lt.point1Y,Lt.point2X,Lt.point2Y,Lt.endX,Lt.endY,.5,b),tt=Lt.endX,E=Lt.endY;break;case ls:me.ep(tt,E,Lt.point1X,Lt.point1Y,Lt.endX,Lt.endY,.5,b),tt=Lt.endX,E=Lt.endY;break;case ra:if(Ft=Ha(Lt,rt),xt=Ft.length,xt===0){b.push(Lt.centerX),b.push(Lt.centerY),tt=Lt.centerX,E=Lt.centerY;break}for(Xt=0;Xt<xt;Xt++)Zt=Ft[Xt],me.Qe(tt,E,Zt[2],Zt[3],Zt[4],Zt[5],Zt[6],Zt[7],.5,b),tt=Zt[6],E=Zt[7];break;case us:if(Ft=qa(Lt,rt,tt,E),xt=Ft.length,xt===0){b.push(Lt.endX),b.push(Lt.endY),tt=Lt.endX,E=Lt.endY;break}for(Xt=0;Xt<xt;Xt++)Zt=Ft[Xt],me.Qe(tt,E,Zt[2],Zt[3],Zt[4],Zt[5],Zt[6],Zt[7],.5,b),tt=Zt[6],E=Zt[7];break;default:qt("Segment not of valid type: "+Lt.type)}Lt.isClosed&&(b.push(ot),b.push(vt),Tf(a,y,b,x))}Tf(a,y,b,x)}else if(z.type===kn.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),Tf(a,y,b,x);else if(z.type===kn.F){if(E=new aa,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,tt=new Vr(ra),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(tt),z=Ha(tt,E),rt=z.length,rt===0)b.push(tt.centerX),b.push(tt.centerY);else for(tt=E.startX,E=E.startY,ot=0;ot<rt;ot++)vt=z[ot],me.Qe(tt,E,vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,b),tt=vt[6],E=vt[7];Tf(a,y,b,x)}$n(b),a.restore(),a.Vc(!1)}}}},Pt.kk=function(a,y,x){return!Pe.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)},Pt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Pe.prototype.nk.call(this,a)},Pt.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)}},Pt.ga=function(a,y){if(y===void 0&&(y=new Bt),a instanceof dn){a.Mc()&&qt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Pt.mi=function(a){a===void 0&&(a=new de);var y=this.naturalBounds,x=this.oe;y=de.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Bt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),oi(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),oi(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),oi(a,b.x,b.y,0,0),de.free(y),Bt.free(b),a},Pt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==kn.j||y||(E+=2);var z=de.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return de.free(z),!1;if(b=E+1e-4,x.type===kn.j)return this.stroke===null||(b=(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>b)?!1:(de.free(z),me.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===kn.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return de.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),de.free(z),a}if(x.type===kn.F){tt=x.startX,E=x.startY,rt=x.endX;var ot=x.endY;if(x=Math.min(tt,rt),y=Math.min(E,ot),tt=Math.abs(rt-tt)/2,E=Math.abs(ot-E)/2,x=a.x-(x+tt),y=a.y-(y+E),this.fill===null){if(tt-=b,E-=b,0>=tt||0>=E||1>=x*x/(tt*tt)+y*y/(E*E))return de.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),de.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===kn.o)return de.free(z),this.fill===null?ss(x,a.x,a.y,E):pa(x,a,E,1<this.strokeWidth,y);qt("Unknown Geometry type: "+x.type)},Pt.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var tt=this.geometry.bounds;else{var rt=this.figure,ot=bv[rt];if(ot===void 0){var st=me.Ze[rt];typeof st=="string"&&(st=me.Ze[st]),typeof st=="function"?(ot=st(null,100,100),bv[rt]=ot):qt("Unsupported Figure: "+rt)}tt=ot.bounds}rt=tt.width,ot=tt.height,st=tt.width;var ut=tt.height;switch(Os(this,!0)){case Cn:b=x=0;break;case Fn:st=Math.max(a-z,0),ut=Math.max(y-z,0);break;case Yi:st=Math.max(a-z,0),b=0;break;case sr:x=0,ut=Math.max(y-z,0)}isFinite(E.width)&&(st=E.width),isFinite(E.height)&&(ut=E.height);var ft=this.maxSize,vt=this.minSize;switch(x=Math.max(x-z,vt.width),b=Math.max(b-z,vt.height),st=Math.min(ft.width,st),ut=Math.min(ft.height,ut),st=isFinite(st)?Math.max(x,st):Math.max(rt,x),ut=isFinite(ut)?Math.max(b,ut):Math.max(ot,b),x=Lv(this),x){case Cn:break;case Fn:rt=st,ot=ut;break;case Hi:x=Math.min(st/rt,ut/ot),isFinite(x)||(x=1),rt*=x,ot*=x;break;default:qt(x+" is not a valid geometryStretch.")}this.Rd!==null?(rt===0&&(rt=.001),ot===0&&(ot=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,b=rt/tt.width,tt=ot/tt.height,isFinite(b)||(b=1),isFinite(tt)||(tt=1),this.ua=b===1&&tt===1?x:x.copy().scale(b,tt)):this.ua!==null&&me.$(this.ua.Sk,a-z)&&me.$(this.ua.Rk,y-z)||(this.ua=Dr.makeGeometry(this,rt,ot)),tt=this.ua.bounds,a===1/0||y===1/0?this.Ge(tt.x-z/2,tt.y-z/2,a===0&&rt===0?0:tt.width+z,y===0&&ot===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),st+z,ut+z),E.w()?(st=E.width,ut=E.height,st=Math.min(ft.width,st),ut=Math.min(ft.height,ut),st=Math.max(vt.width,st),ut=Math.max(vt.height,ut),this.dc.h(0,0,st,ut)):this.dc.assign(tt)};function Lv(a){var y=a.geometryStretch;return a.Rd!==null?y===Ar?Fn:y:y===Ar?bv[a.figure].defaultStretch:y}Pt.eh=function(a,y,x,b){ms(this,a,y,x,b)},Pt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Pt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,st=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);z=a*rt+y*st+ft,tt=a*ot+y*ut+vt,rt=x*rt+b*st+ft,ot=x*ot+b*ut+vt,ft=this.ig/2,st=this.ua,st===null&&(this.measure(1/0,1/0),st=this.ua);var xt=st.bounds;if(ut=!1,st.type===kn.j)if(1.5>=this.strokeWidth)ut=me.Ve(st.startX,st.startY,st.endX,st.endY,z,tt,rt,ot,E);else{if(st.startX===st.endX?(b=ft,ut=0):(y=(st.endY-st.startY)/(st.endX-st.startX),ut=ft/Math.sqrt(1+y*y),b=ut*y),y=Di(),a=new Bt,me.Ve(st.startX+b,st.startY+ut,st.endX+b,st.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Bt,me.Ve(st.startX-b,st.startY-ut,st.endX-b,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Bt,me.Ve(st.startX+b,st.startY+ut,st.startX-b,st.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Bt,me.Ve(st.endX+b,st.endY+ut,st.endX-b,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),rt=y.length,rt===0)return $n(y),!1;for(ut=!0,ot=1/0,b=0;b<rt;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<ot&&(ot=x,E.x=a.x,E.y=a.y);$n(y)}else if(st.type===kn.u)ut=me.Ff(xt.x-ft,xt.y-ft,xt.x+xt.width+ft,xt.y+xt.height+ft,z,tt,rt,ot,E);else if(st.type===kn.F){y=de.allocAt(xt.x,xt.y,xt.width,xt.height).Bc(ft,ft);t:if(y.width===0)ut=me.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,ot,E);else if(y.height===0)ut=me.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,ot,E);else{if(a=y.width/2,st=y.height/2,b=y.x+a,ut=y.y+st,x=9999,z!==rt&&(x=(tt-ot)/(z-rt)),9999>Math.abs(x)){if(ot=tt-ut-x*(z-b),0>a*a*x*x+st*st-ot*ot){E.x=NaN,E.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+st*st-ot*ot),rt=(-(a*a*x*ot)+a*st*ft)/(st*st+a*a*x*x)+b,a=(-(a*a*x*ot)-a*st*ft)/(st*st+a*a*x*x)+b,st=x*(rt-b)+ot+ut,ot=x*(a-b)+ot+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-st)*(tt-st))<Math.abs((z-a)*(z-a))+Math.abs((tt-ot)*(tt-ot))?(E.x=rt,E.y=st):(E.x=a,E.y=ot)}else{if(rt=st*st,ot=z-b,rt-=rt/(a*a)*ot*ot,0>rt){E.x=NaN,E.y=NaN,ut=!1;break t}ot=Math.sqrt(rt),rt=ut+ot,ot=ut-ot,Math.abs(rt-tt)<Math.abs(ot-tt)?(E.x=z,E.y=rt):(E.x=z,E.y=ot)}ut=!0}de.free(y)}else if(st.type===kn.o){vt=Bt.alloc();var Lt=rt-z,Ft=ot-tt,Xt=Lt*Lt+Ft*Ft,Zt=z,Qt=tt;if(0<Xt&&xt.contains(Zt,Qt)&&(vt.x=Zt,vt.y=Qt,this.ca(vt)))for(Lt!==0&&.5>Math.abs(Lt)?(Ft*=.5/Lt,Lt=.5):Ft!==0&&.5>Math.abs(Ft)&&(Lt*=.5/Ft,Ft=.5),Zt-=Lt,Qt-=Ft;xt.contains(Zt,Qt);)Zt-=Lt,Qt-=Ft;for(E.x=rt,E.y=ot,Ft=0;Ft<st.figures.count;Ft++){var _t=st.figures.s[Ft],te=_t.isFilled?Zt:z,ye=_t.isFilled?Qt:tt,ze=_t.segments;xt=_t.startX,Lt=_t.startY;for(var ri=xt,Ti=Lt,Ci=0;Ci<ze.count;Ci++){var jn=ze.s[Ci],xn=jn.type,Lr=jn.endX,Sr=jn.endY,lo=!1;switch(xn){case sa:ri=Lr,Ti=Sr;break;case mo:lo=Tm(xt,Lt,Lr,Sr,te,ye,rt,ot,vt);break;case fa:lo=me.Eo(xt,Lt,jn.point1X,jn.point1Y,jn.point2X,jn.point2Y,Lr,Sr,te,ye,rt,ot,.6,vt);break;case ls:lo=me.Eo(xt,Lt,xt+2/3*(jn.point1X-xt),Lt+2/3*(jn.point1Y-Lt),Lr+2/3*(jn.point1X-Lr),Sr+2/3*(jn.point1Y-Sr),Lr,Sr,te,ye,rt,ot,.6,vt);break;case ra:case us:xn=jn.type===ra?Ha(jn,_t):qa(jn,_t,xt,Lt);var Bo=xn.length;if(Bo===0){lo=Tm(xt,Lt,jn.type===ra?jn.centerX:jn.endX,jn.type===ra?jn.centerY:jn.endY,te,ye,rt,ot,vt);break}for(Sr=null,Lr=0;Lr<Bo;Lr++){if(Sr=xn[Lr],Lr===0&&Tm(xt,Lt,Sr[0],Sr[1],te,ye,rt,ot,vt)){var Ba=Nm(te,ye,vt,Xt,E);Ba<Xt&&(Xt=Ba,ut=!0)}me.Eo(Sr[0],Sr[1],Sr[2],Sr[3],Sr[4],Sr[5],Sr[6],Sr[7],te,ye,rt,ot,.6,vt)&&(Ba=Nm(te,ye,vt,Xt,E),Ba<Xt&&(Xt=Ba,ut=!0))}Lr=Sr[6],Sr=Sr[7];break;default:qt("Unknown Segment type: "+xn)}xt=Lr,Lt=Sr,lo&&(lo=Nm(te,ye,vt,Xt,E),lo<Xt&&(Xt=lo,ut=!0)),jn.isClosed&&(Lr=ri,Sr=Ti,Tm(xt,Lt,Lr,Sr,te,ye,rt,ot,vt)&&(jn=Nm(te,ye,vt,Xt,E),jn<Xt&&(Xt=jn,ut=!0)))}}z=x-a,tt=b-y,rt=Math.sqrt(z*z+tt*tt),rt!==0&&(z/=rt,tt/=rt),E.x-=z*ft,E.y-=tt*ft,Bt.free(vt)}else qt("Unknown Geometry type: "+st.type);return ut?(this.transform.Ga(E),!0):!1};function Nm(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Tm(a,y,x,b,E,z,tt,rt,ot){if(me.$(a,x)&&me.$(y,b)||me.$(E,tt)&&me.$(z,rt))return!1;var st=!1,ut=(E-tt)*(y-b)-(z-rt)*(a-x);return ut===0?!1:(ot.x=((E*rt-z*tt)*(a-x)-(E-tt)*(a*b-y*x))/ut,ot.y=((E*rt-z*tt)*(y-b)-(z-rt)*(a*b-y*x))/ut,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(ot.y>a||me.$(ot.y,a))&&(ot.y<y||me.$(ot.y,y))&&(st=!0)):(y=a<x?a:x,a=a<x?x:a,(ot.x>y||me.$(ot.x,y))&&(ot.x<a||me.$(ot.x,a))&&(st=!0)),st)}Pt.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 b=this.strokeWidth/2,E=!1,z=Bt.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),Bt.free(z),E},Pt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=vi.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var tt=Bt.alloc();if(tt.h(b,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(E,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0)))return Bt.free(tt),!0;var rt=Bt.alloc(),ot=Bt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=E,rt.y=z,rt.transform(x),tt.x=b,tt.y=z,tt.transform(x),y=!1,qd(this,tt,rt,ot)?y=!0:(tt.x=E,tt.y=a,tt.transform(x),qd(this,tt,rt,ot)?y=!0:(rt.x=b,rt.y=a,rt.transform(x),qd(this,tt,rt,ot)?y=!0:(tt.x=b,tt.y=z,tt.transform(x),qd(this,tt,rt,ot)&&(y=!0)))),Bt.free(tt),vi.free(x),Bt.free(rt),Bt.free(ot),y};function qd(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Pt.tx=function(a,y,x){function b(Xt,Zt){for(var Qt=Xt.length,_t=0;_t<Qt;_t+=2)if(Zt.zd(Xt[_t],Xt[_t+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var tt=y.bounds,rt=tt.x,ot=tt.y,st=tt.x+tt.width;if(tt=tt.y+tt.height,ar(a.x,a.y,rt,ot)<=E&&ar(a.x,a.y,st,ot)<=E&&ar(a.x,a.y,rt,tt)<=E&&ar(a.x,a.y,st,tt)<=E)return!0}if(rt=y.startX,ot=y.startY,st=y.endX,tt=y.endY,y.type===kn.j){if(x=(rt-st)*(a.x-st)+(ot-tt)*(a.y-tt),mi(a.x,a.y,rt,ot,st,tt)<=(0<=(st-rt)*(a.x-rt)+(tt-ot)*(a.y-ot)&&0<=x?E:z))return!0}else{if(y.type===kn.u)return y=!1,x&&(y=mi(a.x,a.y,rt,ot,rt,tt)<=E||mi(a.x,a.y,rt,ot,st,ot)<=E||mi(a.x,a.y,st,ot,st,tt)<=E||mi(a.x,a.y,rt,tt,st,tt)<=E),y;if(y.type===kn.F){y=a.x-(rt+st)/2,z=a.y-(ot+tt)/2;var ut=Math.abs(st-rt)/2,ft=Math.abs(tt-ot)/2;if(ut===0||ft===0)return mi(a.x,a.y,rt,ot,st,tt)<=E;if(x){if(a=me.$y(ut,ft,y,z),a*a<=E)return!0}else return!(ar(y,z,-ut,0)>=E||ar(y,z,0,-ft)>=E||ar(y,z,0,ft)>=E||ar(y,z,ut,0)>=E)}else if(y.type===kn.o){if(st=y.bounds,z=st.x,rt=st.y,ot=st.x+st.width,st=st.y+st.height,a.x>ot&&a.x<z&&a.y>st&&a.y<rt&&mi(a.x,a.y,z,rt,z,st)>E&&mi(a.x,a.y,z,rt,ot,rt)>E&&mi(a.x,a.y,ot,st,z,st)>E&&mi(a.x,a.y,ot,st,ot,rt)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?ss(y,a.x,a.y,z):pa(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>E)return!1;for(rt=z.segments.s,ot=rt.length,st=0;st<ot;st++)switch(ft=rt[st],ft.type){case sa:case mo:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E)return!1;break;case fa:var vt=Di();if(me.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=b(vt,a),$n(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case ls:if(vt=Di(),me.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=b(vt,a),$n(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case ra:case us:vt=ft.type===ra?Ha(ft,z):qa(ft,z,tt,ut);var xt=vt.length;if(xt===0){if(tt=ft.type===ra?ft.centerX:ft.endX,ut=ft.type===ra?ft.centerY:ft.endY,a.zd(tt,ut)>E)return!1;break}ft=null;for(var Lt=Di(),Ft=0;Ft<xt;Ft++)if(ft=vt[Ft],Lt.length=0,me.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,Lt),b(Lt,a))return $n(Lt),!1;$n(Lt),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:qt("Unknown Segment type: "+ft.type)}}return!0}}}return!1},Pt.qc=function(){this.ua=null},Pt.kq=function(){return this.ig};function m1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=op,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=po):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new dn(1-po.x,po.y)))}Dr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=zu[a.toArrow];else a.fromArrow!=="None"?b=zu[a.fromArrow]:(b=me.Ze[a.figure],typeof b=="string"&&(b=me.Ze[b]),b===void 0&&qt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=me.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function v1(a){var y=zu[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=zu[x],y===void 0){var b=null,E;for(E in me.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=kn.parse(me.um[b],!1),zu[b]=a,x!==b&&(zu[x]=b),b}}return typeof y=="string"?y:y instanceof kn?a:null}be.Object.defineProperties(Dr.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 b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),$a(this)&&(a=this.part,a!==null&&Vo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=kn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Bt.allocAt(-y.x,-y.y),Bt.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&&Bc(a,"Shape.fill"),a instanceof yo&&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&&Bc(a,"Shape.stroke"),a instanceof yo&&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 Rn(a,"value >= 0",Dr,"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"?Rn(a,'"butt", "round", or "square"',Dr,"strokeCap"):(Qd(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"?Rn(a,'"miter", "bevel", or "round"',Dr,"strokeJoin"):(Qd(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){Qd(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,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||qt("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===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&&(Qd(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=me.Ze[a];typeof x=="function"?x=a:(x=me.Ze[a.toLowerCase()])||qt("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=v1(a);x===null?qt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new sd),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),m1(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=v1(a);x===null?qt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new sd),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),m1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ko},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Qd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ko},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Qd(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&&(Qd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Ar},set:function(a){var y=this.geometryStretch;y!==a&&(Qd(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 ju),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Pu(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 ju),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 ju),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 ju),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Dr.prototype.intersectsRect=Dr.prototype.Yc,Dr.prototype.containedInRect=Dr.prototype.fh,Dr.prototype.getNearestIntersectionPoint=Dr.prototype.rs,Dr.prototype.getDocumentBounds=Dr.prototype.mi,Dr.prototype.getDocumentPoint=Dr.prototype.ga;var zu=new nr,bv=new nr;Dr.className="Shape",Dr.getFigureGenerators=function(){var a=new Ge,y;for(y in me.Ze)y!==y.toLowerCase()&&a.add(y,me.Ze[y]);return a.freeze(),a},Dr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=me.Ze;b[a]=y,b[x]=a},Dr.getArrowheadGeometries=function(){var a=new Ge;for(b in me.um)if(zu[b]===void 0){var y=kn.parse(me.um[b],!1);zu[b]=y,y=b.toLowerCase(),y!==b&&(zu[y]=b)}for(var x in zu)if(x!==x.toLowerCase()){var b=zu[x];b instanceof kn&&a.add(x,b)}return a.freeze(),a},Dr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=kn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||qt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=zu;b[a]=x,b[y]=a};function Mv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Ar,this.gg=this.fg=ko}Mv.prototype.copy=function(){var a=new Mv;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 Oo(a,y){return Pe.call(this),Rm||(Is=la?new Il(null).context:null,Rm=!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}Me(Oo,Pe),Oo.prototype.cloneProtected=function(a){Pe.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 bu(a){a.da===null?a.da=new Dv:a.da.nc&&(a.da=a.da.copy())}Pt=Oo.prototype,Pt.th=function(){Pe.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function y1(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}Pt.qb=function(a){a.classType===Oo?this.wrap=a:Pe.prototype.qb.call(this,a)},Pt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Pt.v=function(){Pe.prototype.v.call(this)},Pt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,tt=_g(this),rt=a.textAlign=this.textAlign,ot=y.tn;rt==="start"?rt=ot?"right":"left":rt==="end"&&(rt=ot?"left":"right"),ot=this.isUnderline;var st=this.isStrikethrough;ha(this,a,this.xc,!0,!1,x,b),(ot||st)&&ha(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var vt=y.scale;switch(8>(ft*ft+ut*ut)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof _s&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case $r:a.translate(E,0),a.scale(-1,1);break;case jr:a.translate(0,z),a.scale(1,-1);break;case bo:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,vt=(y+tt+ft)*ut,z>vt&&(b=this.verticalAlignment,b=b.y*z-b.y*vt+b.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>E&&(ft=E),this.Oj(this.ze,a,0,b+y,E,tt,ft,x,rt,ot,st);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vt<ut;vt++){var xt=this.Qc[vt];xt>E&&(xt=E),b+=y,this.Oj(this.Qb[vt],a,0,b,E,tt,xt,x,rt,ot,st),b+=tt+ft}switch(this.flip){case $r:a.scale(-1,1),a.translate(-E,0);break;case jr:a.scale(1,-1),a.translate(0,-z);break;case bo:a.scale(-1,-1),a.translate(-E,-z)}}},Pt.Oj=function(a,y,x,b,E,z,tt,rt,ot,st,ut){var ft=0;if(rt)ot==="left"?ft=0:ot==="right"?ft=E-tt:ot==="center"&&(ft=(E-tt)/2),y.fillRect(x+ft,b+.25*z,tt,1);else{if(ot==="left"?ft=0:ot==="right"?ft=E:ot==="center"&&(ft=E/2),E=Dm!==null?Dm(this,z):.75*z,y.fillText(a,x+ft,b+E),a=z/20|0,a===0&&(a=1),ot==="right"?ft-=tt:ot==="center"&&(ft-=tt/2),st){rt=Bm!==null?Bm(this,z):.8*z,ot=x+ft,st=b+rt,E=x+ft+tt,rt=b+rt;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(ot,st),y.lineTo(E,rt),y.stroke(),y.Se(),y instanceof _s&&y.ad.classList.add("gojs-td")}ut&&(ut=b+z-z/2.2|0,a%2!==0&&(ut+=.5),b=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(b,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof _s&&y.ad.classList.add("gojs-td"))}},Pt.kk=function(a,y,x){if(!Pe.prototype.kk.call(this,a,y,x))return!1;if(ha(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++)qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,qy(a,y,!0);return!0},Pt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Pe.prototype.nk.call(this,a)},Pt.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)}},Pt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Is!==null&&b1!==z&&(b1=Is.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var tt;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 rt=tt=0,ot=!1;!ot;){var st=z.indexOf(`
|
|
`,rt);st===-1&&(st=z.length,ot=!0),rt=z.substr(rt,st-rt),this.formatting===$g&&(rt=rt.trim()),tt=Math.max(tt,Ql(rt)),rt=st+1}z=tt}else tt=z.indexOf(`
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=Ql(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)),tt=x1(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,ot=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Om&&(y=this.Ae,y=this.overflow===Om?S1(y):0,st=this.spacingAbove+this.spacingBelow,st=Math.max(0,_g(this)+st),ot=Math.min(this.maxLines-1,Math.max(Math.floor(ot/st+.01)-1,0)),!(ot+1>=this.Qb.length))){for(this.l|=16777216,st=this.Qb[ot],y=Math.max(1,a-y);Ql(st)>y&&1<st.length;)st=st.substr(0,st.length-1);st+=tp,y=Ql(st),this.Qb[ot]=st,this.Qb=this.Qb.slice(0,ot+1),this.Qc[ot]=y,this.Qc=this.Qc.slice(0,ot+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===P1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(b,tt),Wn(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Pt.eh=function(a,y,x,b){ms(this,a,y,x,b)};function qg(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 Av(a,y,x,b){var E=a.formatting===$g;E&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,_g(a)+rt);var ot=a.overflow===Om?S1(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,rt);else if(tt=y,a.wrap===kv){a.Le=1;var st=Ql(y);if(ot===0||st<=x)a.Cb=Math.max(a.Cb,st),qg(a,y,a.Cb),b!==null&&b.h(st,rt);else{for(z=Df(a,tt),tt=tt.substr(z.length),y=Df(a,tt),st=Ql(z+y);0<y.length&&st<=x;)z+=y,tt=tt.substr(y.length),y=Df(a,tt),st=z+y,E&&(st=st.trim()),st=Ql(st);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-ot);Ql(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=tp;var ut=Ql(z);a.Cb=ut,qg(a,z,ut),b!==null&&b.h(ut,rt)}}else{for(ot=0,tt.length===0&&(ot=1,qg(a,tt,0));0<tt.length;){for(y=Df(a,tt),tt=tt.substr(y.length);Ql(y)>x;){var ft=1;for(st=Ql(y.substr(0,ft)),ut=0;st<=x;)ft++,ut=st,st=Ql(y.substr(0,ft));if(ft===1){var vt=st;z=Math.max(z,st)}else vt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),qg(a,y.substr(0,ft),vt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Df(a,tt),st=Ql(y+ut);0<ut.length&&st<=x;)y+=ut,tt=tt.substr(ut.length),ut=Df(a,tt),st=y+ut,E&&(st=st.trim()),st=Ql(st);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=st,z=Math.max(z,st)):(ft=ut=Ql(y),z=Math.max(z,ut)),qg(a,y,ft),ot++,a.Gc+ot>a.maxLines))break}a.Le=Math.min(a.maxLines,ot),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,rt*a.Le)}}function Df(a,y){if(a.wrap===w1)return y.substr(0,1);for(var x=y.length,b=0,E=Sx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===C1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Ql(a){return Is===null?8*a.length:Is.measureText(a).width}function _g(a){if(a.df!==null)return a.df;var y=a.Ae;if(Is===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>L1?x=Nv[y]:(x=1.3*Is.measureText("M").width,Nv[y]=x,L1++),a.df=x}function S1(a){if(Is===null)return 6;if(Im[a]!==void 0&&5e3>Tv)var y=Im[a];else y=Is.measureText(tp).width,Im[a]=y,Tv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,_g(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,tt,rt=!1;!rt;){if(tt=x.indexOf(`
|
|
`,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==kv){a.Le=0;var ot=Ut.alloc();Av(a,z,y,ot),E+=ot.height,Ut.free(ot),a.Gc+=a.Le}else Av(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=E}be.Object.defineProperties(Oo.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"||(bu(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Cn},set:function(a){var y=this.flip;y!==a&&(bu(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Zo},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),bu(this),this.da.Yr=a,ws(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Ut.alloc();Av(this,this.ec,999999,a);var y=a.width;Ut.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Wn(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:Ev},set:function(a){var y=this.wrap;y!==a&&(bu(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Fv},set:function(a){var y=this.overflow;y!==a&&(bu(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&&Bc(a,"TextBlock.stroke"),a instanceof yo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return _g(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&&(bu(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&&(bu(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 ju),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 ju),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 ju),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 ju),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 ju),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&&(bu(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&&(bu(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&&(bu(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&&(bu(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:$g},set:function(a){var y=this.formatting;y!==a&&(bu(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&&Rn(a,"> 0",Oo,"maxLines"),bu(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 Dm=null,Bm=null,kv=new rn(Oo,"None",0),P1=new rn(Oo,"WrapFit",1),Ev=new rn(Oo,"WrapDesiredSize",2),w1=new rn(Oo,"WrapBreakAll",3),Fv=new rn(Oo,"OverflowClip",0),Om=new rn(Oo,"OverflowEllipsis",1),$g=new rn(Oo,"FormatTrim",0),C1=new rn(Oo,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new nr,L1=0,Im=new nr,Tv=0,tp="...",b1="",Is=null,Rm=!1;Oo.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=Cn,this.gq=$g,this.Jq=1/0,this.$q=Fv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Zo,this.$r=Ev}Dv.prototype.copy=function(){var a=new Dv;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},Oo.getEllipsis=function(){return tp},Oo.setEllipsis=function(a){tp=a,Im=new nr,Tv=0},Oo.getBaseline=function(){return Dm},Oo.setBaseline=function(a){Dm=a},Oo.getUnderline=function(){return Bm},Oo.setUnderline=function(a){Bm=a},Oo.isValidFont=function(a){if(Rm||(Is=la?new Il(null).context:null,Rm=!0),Is===null)return!0;var y=Is.font;if(a===y||a==="10px sans-serif")return!0;Is.font="10px sans-serif",Is.font=a;var x=Is.font;if(x!=="10px sans-serif")return Is.font=y,!0;Is.font="19px serif";var b=Is.font;return Is.font=a,x=Is.font,Is.font=y,x!==b},Oo.FormatNone=C1,Oo.FormatTrim=$g,Oo.None=kv,Oo.OverflowClip=Fv,Oo.OverflowEllipsis=Om,Oo.WrapBreakAll=w1,Oo.WrapDesiredSize=Ev,Oo.WrapFit=P1;function ju(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}ju.prototype.copy=function(){var a=new ju;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},ju.className="GradElementSettings";function Rs(a,y){Pe.call(this),this.Eg=null,this.qo="",this.Xg=mr,this.Nk=Fn,this.Zg=this.Hd=null,this.Mk=ji,this.Xf=Cn,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 Bf;Me(Rs,Pe),Rs.prototype.cloneProtected=function(a){Pe.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},Rs.prototype.qb=function(a){a===Cn||a===Hi||a===Xr?this.imageStretch=a:Pe.prototype.qb.call(this,a)},Rs.prototype.toString=function(){return"Picture("+this.source+")#"+Cr(this)};function Of(a){a===void 0&&(a=""),a!==""?Bf[a]&&(delete Bf[a],zm--):(Bf=new nr,zm=0)}function M1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null)for(var rt=tt.length,ot=0;ot<rt;ot++)z=tt[ot],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Ma(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null){E=tt.length,z=Di();for(var rt=0;rt<E;rt++)z.push(tt[rt]);if(y.hn)for(rt=0;rt<E;rt++)tt=z[rt],tt.Hd!==null&&tt.Hd(tt,x);$n(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Rs.prototype.hA=function(){if(this.source!==""){Of(this.source);var a=this.source;this.source="",this.source=a}},Rs.prototype.redraw=function(){this.N(),this.Uc=!0},Rs.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Ud)){var E=a instanceof _s;b=this.naturalBounds;var z=0,tt=0,rt=this.qn,ot=rt?+x.width:x.naturalWidth;if(rt=rt?+x.height:x.naturalHeight,ot===void 0&&x.videoWidth&&(ot=x.videoWidth),rt===void 0&&x.videoHeight&&(rt=x.videoHeight),ot=ot||b.width,rt=rt||b.height,ot!==0&&rt!==0){var st=ot,ut=rt;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,ot=this.Xg.width,rt=this.Xg.height);var ft=ot,vt=rt,xt=this.Nk,Lt=this.Mk;switch(xt){case Cn:if(this.sourceRect.w())break;ft>=b.width&&(z=z+Lt.offsetX+(ft*Lt.x-b.width*Lt.x)),vt>=b.height&&(tt=tt+Lt.offsetY+(vt*Lt.y-b.height*Lt.y)),ot=Math.min(b.width,ft),rt=Math.min(b.height,vt);break;case Fn:ft=b.width,vt=b.height;break;case Hi:case Xr:xt===Hi?(xt=Math.min(b.height/vt,b.width/ft),ft*=xt,vt*=xt):xt===Xr&&(xt=Math.max(b.height/vt,b.width/ft),ft*=xt,vt*=xt,ft>=b.width&&(z=(z+Lt.offsetX+(ft*Lt.x-b.width*Lt.x)/ft)*ot),vt>=b.height&&(tt=(tt+Lt.offsetY+(vt*Lt.y-b.height*Lt.y)/vt)*rt),ot*=1/(ft/b.width),rt*=1/(vt/b.height),ft=b.width,vt=b.height)}xt=this.Df()*y.scale;var Ft=ft*xt*vt*xt,Xt=ot*rt/Ft,Zt=x.__goCache;xt=null;var Qt=xx;if(!E){if(x.sq&&Zt!==void 0&&4<Ft&&Xt>Qt*Qt)for(Zt.gi===null&&(k1(Zt,4,st,ut,x),k1(Zt,16,st,ut,x)),E=Zt.gi,st=E.length,ut=0;ut<st&&E[ut].ratio*E[ut].ratio<Xt;ut++)xt=E[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Il(null).context;try{E.drawImage(this.Eg,0,0)}catch(_t){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(_t){this.vl=!0}}if(this.vl)return}}switch(E=ft<b.width?Lt.offsetX+(b.width*Lt.x-ft*Lt.x):0,Lt=vt<b.height?Lt.offsetY+(b.height*Lt.y-vt*Lt.y):0,this.flip){case $r:a.translate(Math.min(b.width,ft),0),a.scale(-1,1);break;case jr:a.translate(0,Math.min(b.height,vt)),a.scale(1,-1);break;case bo:a.translate(Math.min(b.width,ft),Math.min(b.height,vt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Zt!==void 0&&xt!==null&&xt.ratio!==1){a.save(),y=xt.ratio;try{a.drawImage(xt.source,z/y,tt/y,Math.min(xt.source.width,ot/y),Math.min(xt.source.height,rt/y),E,Lt,Math.min(b.width,ft),Math.min(b.height,vt)),a instanceof _s&&(this.bt=[z/y,tt/y,Math.min(xt.source.width,ot/y),Math.min(xt.source.height,rt/y),E,Lt,Math.min(b.width,ft),Math.min(b.height,vt)])}catch(_t){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,ot,rt,E,Lt,Math.min(b.width,ft),Math.min(b.height,vt)),a instanceof _s&&(this.bt=[z,tt,ot,rt,E,Lt,Math.min(b.width,ft),Math.min(b.height,vt)])}catch(_t){this.en=!1}switch(this.flip){case $r:a.scale(-1,1),a.translate(-Math.min(b.width,ft),0);break;case jr:a.scale(1,-1),a.translate(0,-Math.min(b.height,vt));break;case bo:a.scale(-1,-1),a.translate(-Math.min(b.width,ft),-Math.min(b.height,vt))}}}}},Rs.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=Os(this,!0),tt=this.Eg,rt=this.qn,ot=0,st=0;(rt||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(ot=rt?+tt.width:tt.naturalWidth,st=rt?+tt.height:tt.naturalHeight),isFinite(E.width)||z===Fn||z===Yi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=ot)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ot),isFinite(E.height)||z===Fn||z===sr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=st)),b=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:st),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Wn(this.dc,a,y),this.Ge(0,0,a,y)},Rs.prototype.eh=function(a,y,x,b){ms(this,a,y,x,b)},be.Object.defineProperties(Rs.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||qt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Dg(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Ln),b!==null&&x&&rd(b,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()||(Ma(this,!1),this.v())):x&&M1(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=Bf;if(la){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<zm&&(Of(),x=Bf),b=ai("img"),b.hn=!0,M1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,zm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new A1),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}}}),Rs.prototype.redraw=Rs.prototype.redraw,Rs.prototype.reloadSource=Rs.prototype.hA;var zm=0,xx=4;Rs.className="Picture",Bf=new nr,Rs.clearCache=Of;function A1(){this.gi=null}function k1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Il(null),tt=z.context,rt=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new E1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),tt.setTransform(rt*x,0,0,rt*x,0,0),tt.yc(),tt.drawImage(E,0,0),a.gi.push(y))}A1.className="PictureCacheArray";function E1(a,y){this.source=a,this.ratio=y}E1.className="PictureCacheInstance";function If(){this.os=new kn,this.mc=null}If.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new kn,this.mc=null};function Rf(a,y,x,b,E,z){a.mc=new aa,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Px(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}If.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Vr(sa);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},If.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Vr(mo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function kh(a,y,x,b,E,z,tt){var rt;rt===void 0&&(rt=!1);var ot=new Vr(fa);ot.point1X=y,ot.point1Y=x,ot.point2X=b,ot.point2Y=E,ot.endX=z,ot.endY=tt,rt&&ot.close(),a.mc.segments.add(ot)}function jm(a,y,x,b,E){var z;z===void 0&&(z=!1);var tt=new Vr(ls);tt.point1X=y,tt.point1Y=x,tt.endX=b,tt.endY=E,z&&tt.close(),a.mc.segments.add(tt)}If.prototype.arcTo=function(a,y,x,b,E,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new Vr(ra);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=b,rt.radiusX=E,rt.radiusY=z!==0?z:E,tt&&rt.close(),this.mc.segments.add(rt)};function wx(a,y,x,b,E,z,tt,rt){var ot;ot===void 0&&(ot=!1),y=new Vr(us,tt,rt,y,x,b,E,z),ot&&y.close(),a.mc.segments.add(y)}function F1(a){var y=Hm;return y!==null?(Hm=null,y.reset(a),y):(y=new If,y.reset(a),y)}var Hm=null;If.className="StreamGeometryContext";function gs(a,y){var x=a.toLowerCase(),b=me.Ze;b[a]=y,b[x]=a}gs("Rectangle",function(a,y,x){a="r"+y+","+x;var b=me.Mf[a];return b!==void 0||(b=new kn(kn.u),b.endX=y,b.endY=x,me.Nf<me.vm&&(me.Mf[a]=b,me.Nf++)),b}),gs("Square",function(a,y,x){a="s"+y+","+x;var b=me.Mf[a];return b!==void 0||(b=new kn(kn.u),b.endX=y,b.endY=x,b.defaultStretch=Hi,me.Nf<me.vm&&(me.Mf[a]=b,me.Nf++)),b}),gs("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 b="rr"+y+","+x+","+a,E=me.Mf[b];if(E!==void 0)return E;var z=a*me.wg;return E=new kn().add(new aa(a,0,!0).add(new Vr(mo,y-a,0)).add(new Vr(fa,y,a,y-z,0,y,z)).add(new Vr(mo,y,x-a)).add(new Vr(fa,y-a,x,y,x-z,y-z,x)).add(new Vr(mo,a,x)).add(new Vr(fa,0,x-a,z,x,0,x-z)).add(new Vr(mo,0,a)).add(new Vr(fa,a,0,0,z,z,0).close())),1<z&&(E.spot1=new dn(0,0,z,z),E.spot2=new dn(1,1,-z,-z)),me.Nf<me.vm&&(me.Mf[b]=E,me.Nf++),E}),gs("Border","RoundedRectangle"),gs("Ellipse",function(a,y,x){a="e"+y+","+x;var b=me.Mf[a];return b!==void 0||(b=new kn(kn.F),b.endX=y,b.endY=x,b.spot1=Ir,b.spot2=ao,me.Nf<me.vm&&(me.Mf[a]=b,me.Nf++)),b}),gs("Circle",function(a,y,x){a="c"+y+","+x;var b=me.Mf[a];return b!==void 0||(b=new kn(kn.F),b.endX=y,b.endY=x,b.spot1=Ir,b.spot2=ao,b.defaultStretch=Hi,me.Nf<me.vm&&(me.Mf[a]=b,me.Nf++)),b}),gs("TriangleRight",function(a,y,x){return new kn().add(new aa(0,0).add(new Vr(mo,y,.5*x)).add(new Vr(mo,0,x).close())).pm(0,.25,.5,.75)}),gs("TriangleDown",function(a,y,x){return new kn().add(new aa(0,0).add(new Vr(mo,y,0)).add(new Vr(mo,.5*y,x).close())).pm(.25,0,.75,.5)}),gs("TriangleLeft",function(a,y,x){return new kn().add(new aa(y,x).add(new Vr(mo,0,.5*x)).add(new Vr(mo,y,0).close())).pm(.5,.25,1,.75)}),gs("TriangleUp",function(a,y,x){return new kn().add(new aa(y,x).add(new Vr(mo,0,x)).add(new Vr(mo,.5*y,0).close())).pm(.25,.5,.75,1)}),gs("Triangle","TriangleUp"),gs("Diamond",function(a,y,x){return new kn().add(new aa(.5*y,0).add(new Vr(mo,0,.5*x)).add(new Vr(mo,.5*y,x)).add(new Vr(mo,y,.5*x).close())).pm(.25,.25,.75,.75)}),gs("LineH",function(a,y,x){return a=new kn(kn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),gs("LineV",function(a,y,x){return a=new kn(kn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),gs("None","Rectangle"),gs("BarH","Rectangle"),gs("BarV","Rectangle"),gs("MinusLine","LineH"),gs("PlusLine",function(a,y,x){return new kn().add(new aa(0,x/2,!1).add(new Vr(mo,y,x/2)).add(new Vr(sa,y/2,0)).add(new Vr(mo,y/2,x)))}),gs("XLine",function(a,y,x){return new kn().add(new aa(0,x,!1).add(new Vr(mo,y,0)).add(new Vr(sa,0,0)).add(new Vr(mo,y,x)))}),gs("LineRight",function(a,y,x){return new kn().add(new aa(.25*y,0,!1).add(new Vr(mo,.75*y,.5*x)).add(new Vr(mo,.25*y,x)))}),gs("LineDown",function(a,y,x){return new kn().add(new aa(0,.25*x,!1).add(new Vr(mo,.5*y,.75*x)).add(new Vr(mo,y,.25*x)))}),gs("LineLeft",function(a,y,x){return new kn().add(new aa(.75*y,0,!1).add(new Vr(mo,.25*y,.5*x)).add(new Vr(mo,.75*y,x)))}),gs("LineUp",function(a,y,x){return new kn().add(new aa(0,.75*x,!1).add(new Vr(mo,.5*y,.25*x)).add(new Vr(mo,y,.75*x)))}),me.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 Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Dn,this.ir=null,this.jr="",this.lr=ko,this.Gq="",this.Hq=hr,this.Pq=Kn,this.Kq=ui,this.Up=null,this.Cq=127,this.zr=Mi,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;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 $i(a,y){a===void 0||a instanceof Ea||typeof a=="string"?Tn.call(this,a):(Tn.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 Bt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new de,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Me($i,Tn),$i.prototype.cloneProtected=function(a){Tn.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},Pt=$i.prototype,Pt.Af=function(a){Tn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Pt.toString=function(){var a=wi(this.constructor)+"#"+Cr(this);return this.data!==null&&(a+="("+dr(this.data)+")"),a};function zs(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Pt.th=function(){Tn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Pt.gk=function(a,y,x,b,E,z,tt){var rt=this.diagram;rt!==null&&(a===Uo&&y==="elements"?E instanceof Tn?Jd(E,function(ot){sy(rt.partManager,ot),Zd(rt,ot)}):rd(rt,E):a===ua&&y==="elements"&&(E instanceof Tn?Jd(E,function(ot){ly(rt.partManager,ot,rt)}):Dg(rt,E)),rt.cb(a,y,x,b,E,z,tt))},Pt.La=function(a){if(Tn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Tn&&Jd(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},$i.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},$i.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},$i.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new Ge),y.Tf!==a&&(y.category=a),b.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)))}}},$i.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},$i.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Di();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);$n(y)}},$i.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()}t:{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 Mr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof oo))break t;Rl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Tn.Link),x.adornedObject=y)}if(x!==null){x.type===Tn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},$i.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Ov(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Zm(a){if(ld(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function N1(a){if(a.G|=2097152,ld(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||B1(a,y,x),x=a.Ib;var b=de.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),de.free(b),Rv(a,!1)}}$i.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new vi);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},$i.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=ji;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Bt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,b,E,z);a.rotate(this.Kb,tt.x,tt.y),Bt.free(tt)}},$i.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},$i.prototype.moveTo=function(a,y,x){a=Bt.allocAt(a,y),this.move(a,x),Bt.free(a)},$i.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())},$i.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())},$i.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ge),y.I(a)!==null)return y.I(a);var x=Tn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Eh(a,y,x,b){b===void 0&&(b=new Bt),x=x.Mc()?ji:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}$i.prototype.mi=function(a){return a===void 0&&(a=new de),a.assign(this.actualBounds)},$i.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function T1(a){var y=Bt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Dr?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/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 _d(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=u1(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,b-=tt/2,E-=tt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}$i.prototype.arrange=function(){if(Cs(this)===!1)N1(this);else{Ou(this,!1);var a=this.Ib,y=de.alloc();y.assign(a);var x=ud(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;B1(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||me.B(y.width,a.width)&&me.B(y.height,a.height)||0<=this.vw&&this.C(16),de.free(y),Rv(this,!1)}},Pt=$i.prototype,Pt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=de.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),de.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||_n(a,y)||(this instanceof di&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Pt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&D1(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Bt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),ld(this)===!1&&Cs(this)===!1&&(Zm(this),N1(this)),!0};function D1(a,y,x,b,E){y===null||a instanceof oo||(y=y.animationManager,y.zb&&lf(y,a,new Bt(b,E),x))}Pt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;ld(this)||Cs(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}Zm(this)},Pt.Av=function(){this.G&=-2097153,Zm(this)};function B1(a,y,x){var b=T1(a),E=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?O1(a,y,x,E,b):I1(a,y,x,E,b):z?O1(a,y,x,E,b):tt&&I1(a,y,x,E,b),a.G|=2097152,Bt.free(b),a.Uk()}function O1(a,y,x,b,E){var z=y.x,tt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof oo||lf(x,a,new Bt(z,tt),y),b||y.x===z&&y.y===tt||a.g("position",new Bt(z,tt),y.copy()))}function I1(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function R1(a,y,x){zv(a,!1),a instanceof di&&wh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?ud(a)?(yi(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Pt.si=function(){return!0},Pt.Zc=function(){return!0},Pt.ph=function(){return!1},Pt.Dd=function(){return!0};function Iv(a,y,x,b){y.constructor===a.constructor||H1||(H1=!0,Ai('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Ai(" Old class: "+wi(a.constructor)+", new class: "+wi(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,rt=!0,ot=!0,st=!1;a instanceof di&&(rt=a.isTreeLeaf,ot=a.isTreeExpanded,st=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof di&&(a.U=rt?a.U|4:a.U&-5,a.U=ot?a.U|1:a.U&-2,a.U=st?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}$i.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},$i.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},$i.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},$i.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},$i.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},$i.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},$i.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},$i.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},$i.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 ld(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function zv(a,y){a.G=y?a.G|65536:a.G&-65537}function ud(a){return(a.G&131072)!==0}Pt=$i.prototype,Pt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Wm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Pt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Pt.N=function(){var a=this.diagram;a!==null&&!Cs(this)&&!ld(this)&&this.isVisible()&&this.Ib.w()&&a.N(_d(this,this.Ib))},Pt.v=function(){Tn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof di&&this.labeledLink!==null&&ws(this.labeledLink),a.$b(!0))},Pt.Vo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},Pt.Wo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Pt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Pt.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof di&&(y=y.labeledLink,y!==null)?jv(a,y):0}Pt.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof di&&(x=y.labeledLink,x!==null)?z1(a,x):y}Pt.Td=function(a){return a instanceof Mr?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Hv(a,b,x)?y instanceof di&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}Pt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Mr&&Wm(y,!0),y instanceof di){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 di&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Mr&&Wm(y,!1),y instanceof di&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},$i.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof di&&this.isLinkLabel)},$i.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 di&&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 j1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function hd(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof oo)){if(a.add(y),y instanceof di){if(x&&y instanceof Mr)for(var tt=y.memberParts;tt.next();)hd(a,tt.value,x,b,E,z);if(E!==!1)for(tt=y.linksConnected;tt.next();){var rt=tt.value;if(!a.contains(rt)){var ot=rt.fromNode,st=rt.toNode;ot=ot===null||a.contains(ot),st=st===null||a.contains(st),(E?ot&&st:ot||st)&&hd(a,rt,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)hd(a,y.value,x,b-1,E,z)}else if(y instanceof Zn)for(y=y.labelNodes;y.next();)hd(a,y.value,x,b,E,z)}}be.Object.defineProperties($i.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Zr: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 b=y.pc(-1,this,!0);if(0<=b&&x.cb(ua,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Uo,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(zs(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&&df(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 oo?this.type!==Tn.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:Kn},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),zs(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ui},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),zs(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&&(zs(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:hr},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),zs(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,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Cs(this)===!1&&(Zm(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),D1(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,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,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof oo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof oo?this instanceof oo&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Rl(x),x=x.copy(),x!==null&&Iv(this,x,y,a))):(z!==null&&z.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Rl(x),x=x.copy(),x===null||x instanceof Zn||(b=this.location.copy(),Iv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Iv(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 b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},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&&(zs(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&&(zs(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&&(zs(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 Zn?(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&&(zs(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&&(zs(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&&(zs(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:Dn},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),zs(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&&(zs(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&&(zs(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:ko},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),zs(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&&qt("Cannot make a Group a member of itself: "+this.toString()),qt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Kv(y,this):this instanceof Mr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof Mr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof Mr){for(x=new Ln,hd(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof di)for(b=b.linksConnected;b.next();)zf(b.value)}if(this instanceof di){for(x=this.linksConnected;x.next();)zf(x.value);x=this.labeledLink,x!==null&&zf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&df(y,-1,a))}}else qt("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&&(zs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof di&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(zs(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&&(zs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Mi},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),zs(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&&(zs(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&&(zs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),$i.prototype.invalidateLayout=$i.prototype.C,$i.prototype.findCommonContainingGroup=$i.prototype.px,$i.prototype.isMemberOf=$i.prototype.Td,$i.prototype.findTopLevelPart=$i.prototype.sz,$i.prototype.findSubGraphLevel=$i.prototype.oz,$i.prototype.ensureBounds=$i.prototype.Va,$i.prototype.getDocumentBounds=$i.prototype.mi,$i.prototype.findObject=$i.prototype.fb,$i.prototype.moveTo=$i.prototype.moveTo,$i.prototype.invalidateAdornments=$i.prototype.Wb,$i.prototype.clearAdornments=$i.prototype.Ej,$i.prototype.removeAdornment=$i.prototype.Jf,$i.prototype.addAdornment=$i.prototype.bh,$i.prototype.findAdornment=$i.prototype.Pj,$i.prototype.updateTargetBindings=$i.prototype.La;var H1=!1;$i.className="Part",$i.LayoutNone=0,$i.LayoutAdded=1,$i.LayoutRemoved=2,$i.LayoutShown=4,$i.LayoutHidden=8,$i.LayoutNodeSized=16,$i.LayoutGroupLayout=32,$i.LayoutNodeReplaced=64,$i.LayoutStandard=127,$i.LayoutAll=16777215;function oo(a,y){a===void 0||a instanceof Ea||typeof a=="string"?$i.call(this,a):($i.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)}Me(oo,$i),oo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},oo.prototype.updateRelationshipsFromData=function(){},oo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Zn&&y instanceof Dr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof Dr&&(E.ua=a)}}},oo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Cs(a))},oo.prototype.Zc=function(){return!1},oo.prototype.gk=function(a,y,x,b,E,z,tt){if(a===Uo&&y==="elements"){if(E instanceof bs)this.$a===null&&(this.$a=E);else if(E instanceof Tn){var rt=E.Nl(function(ot){return ot instanceof bs});rt instanceof bs&&this.$a===null&&(this.$a=rt)}}else a===ua&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Tn&&this.$a.rg(b)&&(this.$a=null));$i.prototype.gk.call(this,a,y,x,b,E,z,tt)},oo.prototype.updateAdornments=function(){},oo.prototype.Lj=function(){},be.Object.defineProperties(oo.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}}}),oo.className="Adornment";function Zv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Vi,this.er=Km,this.Kr=this.ij=this.Nq=this.Mq=null}Zv.prototype.copy=function(){var a=new Zv;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 di(a,y){a===void 0||a instanceof Ea||typeof a=="string"?$i.call(this,a):($i.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new pn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Me(di,$i),di.prototype.cloneProtected=function(a){$i.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Pt=di.prototype,Pt.Af=function(a){$i.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Fh(a){a.Ba===null?a.Ba=new Zv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Pt.th=function(){$i.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Z1(a,y){y!==null&&(a.af===null&&(a.af=new Ln),a.af.add(y))}function W1(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Pt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=W1(this,a,y,x),a!==null&&a.Sl()},Pt.gk=function(a,y,x,b,E,z,tt){a===Uo&&y==="elements"?this.wc=null:a===ua&&y==="elements"&&(this.wc=null),$i.prototype.gk.call(this,a,y,x,b,E,z,tt)},Pt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||($s(x.fromPort),$s(x.toPort),x.bb())}};function G1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&($s(x.fromPort),$s(x.toPort),x.bb())}}function $s(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||$s(y.port)}}Pt.si=function(){return!0},di.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},di.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},di.prototype.isVisible=function(){if(!$i.prototype.isVisible.call(this))return!1;var a=!0,y=Lh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Lh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ba){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Cf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},di.prototype.Zb=function(a){$i.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},di.prototype.qx=function(){var a=new Ln,y=new Ln;return V1(this,this,a,y),y.iterator};function V1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(E?tt.fromNode===y:tt.toNode===y)&&V1(a,E?tt.toNode:tt.fromNode,x,b):b.add(tt)})}}di.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Hr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Pt=di.prototype,Pt.Mo=function(a){a===void 0&&(a=null);var y=new Hr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Pt.Sd=function(a){a===void 0&&(a=null);var y=new Hr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Pt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Br(x):Zr},Pt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Br(x):Zr},Pt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Br(x):Zr},Pt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Hr(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Pt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Hr(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function Gm(a,y,x){$s(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,y,x),tt!==null&&(tt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Vm(a,y,x){$s(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=tt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.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,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):ep(y)))}function ep(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 b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}di.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Pt=di.prototype,Pt.Vo=function(a){$i.prototype.Vo.call(this,a),a||(ep(this),a=this.Yk,a!==null&&$1(a,this))},Pt.Wo=function(a){$i.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Pt.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 b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,$i.prototype.Lj.call(this)},Pt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;K1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function K1(a){a.wc===null?a.wc=new Ge:a.wc.clear(),a.qm(a,function(y,x){X1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function X1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Wv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=Di()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);$n(x)}}}Pt.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 b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Pt.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 b=x.value;if(b.isTreeLink&&(a=b.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()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Pt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Wm(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;)Wm(y,!1),y=y.pg();return x},Pt.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},Pt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof di)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},Pt.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Ln;return a(this,y),y},Pt.uz=function(){return Y1(this,this)};function Y1(a,y){return y=y.pg(),y===null?0:1+Y1(a,y)}Pt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Hr(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},Pt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new pn,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new pn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Br(x):Zr},Pt.wz=function(a){a===void 0&&(a=1/0);var y=new Ln;return hd(y,this,!1,a,!0),y},di.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 Ln;x.add(this),U1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function U1(a,y,x,b,E,z,tt){if(1<b)for(var rt=x?a.Mo():a.Sd();rt.next();){var ot=rt.value;ot.isTreeLink&&(ot=ot.To(a),ot===null||ot===a||y.contains(ot)||(y.add(ot),U1(ot,y,x,b-1,E,z,tt)))}else J1(a,y,x,E,z,tt)}function J1(a,y,x,b,E,z){for(var tt=E===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),ot={};rt.next();){var st=rt.value;if(st.isTreeLink&&(st=st.To(a),st!==null&&st!==a)){var ut=y.contains(st);if(ut||y.add(st),tt){var ft=x?st.Oo():st.Po();ot.uv=a,ft.all(function(vt){return function(xt){return xt===vt.uv||!xt.isTreeExpanded}}(ot))&&b.Aj(st,E),st.oh(),st.Zb(!1)}st.isTreeExpanded&&(st.wasTreeExpanded=st.isTreeExpanded,ut||J1(st,y,x,b,E,z))}ot={uv:ot.uv}}a.isTreeExpanded=!1}di.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 Ln;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function Q1(a,y,x,b,E,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),st={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(rt||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!rt){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();st.vv=a,ft.all(function(vt){return function(xt){return xt===vt.vv||!xt.isTreeExpanded}}(st))&&E.Cj(ut,z)}(2<b||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,Q1(ut,y,x,b-1,E,z,tt))}st={vv:st.vv}}a.isTreeExpanded=!0}be.Object.defineProperties(di.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Km},set:function(a){var y=this.portSpreading;y!==a&&(Fh(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:Vi},set:function(a){typeof a=="number"&&(a=new Si(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Fh(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&&(Fh(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&&(Fh(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&&(Fh(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,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var tt=z.wa(b);tt!==void 0&&z.Qx(E,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&($1(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),ws(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&K1(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 b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}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&&(Fh(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))}}}),di.prototype.expandTree=di.prototype.expandTree,di.prototype.collapseTree=di.prototype.collapseTree,di.prototype.findTreeParts=di.prototype.wz,di.prototype.findTreeChildrenNodes=di.prototype.Ou,di.prototype.findTreeChildrenLinks=di.prototype.Qo,di.prototype.findTreeLevel=di.prototype.uz,di.prototype.findTreeParentChain=di.prototype.vz,di.prototype.findTreeParentNode=di.prototype.pg,di.prototype.findTreeParentLink=di.prototype.kh,di.prototype.findCommonTreeParent=di.prototype.gz,di.prototype.findTreeRoot=di.prototype.xz,di.prototype.isInTreeOf=di.prototype.Nz,di.prototype.findPort=di.prototype.ns,di.prototype.findLinksTo=di.prototype.kz,di.prototype.findLinksBetween=di.prototype.jz,di.prototype.findNodesInto=di.prototype.Oo,di.prototype.findNodesOutOf=di.prototype.Po,di.prototype.findNodesConnected=di.prototype.Mu,di.prototype.findLinksInto=di.prototype.Sd,di.prototype.findLinksOutOf=di.prototype.Mo,di.prototype.findExternalTreeLinksConnected=di.prototype.qx,di.prototype.invalidateConnectedLinks=di.prototype.Bd,di.prototype.invalidateLinkBundle=di.prototype.Lz;var Lx=new rn(di,"SpreadingNone",10),Km=new rn(di,"SpreadingEvenly",11),Gv=new rn(di,"SpreadingPacked",12);di.className="Node",di.SpreadingNone=Lx,di.SpreadingEvenly=Km,di.SpreadingPacked=Gv;function Mr(a,y){a===void 0||a instanceof Ea||typeof a=="string"?di.call(this,a):(di.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ln,this.$a=null,this.Sc=new qo,this.Sc.group=this,this.gl=new Ln,this.tb=this.$p=null,y&&Object.assign(this,y)}Me(Mr,di),Mr.prototype.cloneProtected=function(a){di.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof bs});y instanceof bs?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())},Pt=Mr.prototype,Pt.Af=function(a){di.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 di)x.Bd(y);else if(x instanceof Zn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Pt.gk=function(a,y,x,b,E,z,tt){if(a===Uo&&y==="elements"){if(E instanceof bs)this.$a===null?this.$a=E:this.$a!==E&&qt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Tn){var rt=E.Nl(function(ot){return ot instanceof bs});rt instanceof bs&&(this.$a===null?this.$a=rt:this.$a!==rt&&qt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ua&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Tn&&this.$a.rg(b)&&(this.$a=null));di.prototype.gk.call(this,a,y,x,b,E,z,tt)},Pt.Xl=function(a,y){di.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Tn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Tn&&(a=a.Pb()),this.tb===null&&(this.tb=new de),a.mi(this.tb),a instanceof Dr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Pt.eh=function(a,y,x,b){this.nf=this.$a,di.prototype.eh.call(this,a,y,x,b)},Pt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Zn||y.Va()}),di.prototype.Va.call(this)},Pt.si=function(){if(!di.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof di){if(y.isVisible()&&Cs(y))return!1}else if(y instanceof Zn&&y.isVisible()&&Cs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Vv(a,y){if(a.Gn.add(y)){y instanceof Mr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Zn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof Mr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Zn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Pt.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)}di.prototype.Lj.call(this)},Mr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=_e(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Mr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=_e(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Mr.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))},Pt=Mr.prototype,Pt.Bd=function(a){var y=(this.U&65536)!==0;if(di.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 b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?($s(x.fromPort),$s(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&($s(x.fromPort),$s(x.toPort),x.bb()))}}},Pt.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 Ln,b=y.iterator;b.next();){var E=b.value;if(E instanceof di)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Pt.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ln,x=a.iterator;x.next();){var b=x.value;if(b instanceof di)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Pt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ln;return a(this,y),y},Pt.Rj=function(){var a=new Ln;return hd(a,this,!0,0,!0),a.remove(this),a},Pt.Zb=function(a){di.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Mr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof Mr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,b)),z instanceof di)z.Bd(y),x.Aj(z,b);else if(z instanceof Zn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Mr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();_1(this,y,a,this),a.Ue=!1}};function _1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof Mr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,_1(z,y,x,b)),z instanceof di)z.Bd(y),x.Cj(z,b);else if(z instanceof Zn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Mr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=Bt.alloc(),di.prototype.move.call(this,a,y),a=new Ln,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Zn&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof di&&E.isLinkLabel)){var tt=E.position,rt=E.location;tt.w()?(z.x=tt.x+b,z.y=tt.y+x,E.position=z):rt.w()&&(z.x=rt.x+b,z.y=rt.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Zn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(tt=E.position,z.x=tt.x+b,z.y=tt.y+x,z.w()?E.move(z):E.bb(),Yv(E)&&E.bb());Bt.free(z)}},be.Object.defineProperties(Mr.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&&qt("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&&(Fh(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&&(Fh(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&&(Fh(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 b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.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&&(Fh(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)}}}),Mr.prototype.expandSubGraph=Mr.prototype.expandSubGraph,Mr.prototype.collapseSubGraph=Mr.prototype.collapseSubGraph,Mr.prototype.findSubGraphParts=Mr.prototype.Rj,Mr.prototype.findContainingGroupChain=Mr.prototype.hz,Mr.prototype.findExternalNodesConnected=Mr.prototype.iz,Mr.prototype.findExternalLinksConnected=Mr.prototype.Lu,Mr.prototype.ensureBounds=Mr.prototype.Va,Mr.className="Group";function bs(a){Pe.call(this),this.yb=Pr,this.ko=new de(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Me(bs,Pe),bs.prototype.cloneProtected=function(a){Pe.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},bs.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Vn(0,0,y.width,y.height,a.x,a.y)},bs.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Mr||a instanceof oo)||qt("Placeholder is not inside a Group or Adornment."),a instanceof Mr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Wn(b,(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,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Bt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Bt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof Dr&&(tt=z.strokeWidth);var rt=z.Df(),ot=z.naturalBounds,st=(ot.width+tt)*rt;tt=(ot.height+tt)*rt,a.type!==Tn.Link&&(rt=z.ga(a.category==="Selection"?hr:a.locationSpot,Bt.alloc()),a.location=rt,Bt.free(rt)),isNaN(st)||isNaN(tt)?(a=z.ga(hr,Bt.alloc()),st=de.allocAt(a.x,a.y,0,0),st.Ye(z.ga(Tr,a)),st.Ye(z.ga(Or,a)),st.Ye(z.ga(Ur,a)),Wn(y,st.width+b||0,st.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Bt.free(a),de.free(st)):(Wn(y,st+b||0,tt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},bs.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},bs.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Mr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=de.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Mr&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),de.free(x),b&&y instanceof Mr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},bs.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Mr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var rt=tt.value;if(rt.isVisible()){if(rt instanceof Zn&&(!y.computesBoundsIncludingLinks||ll(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<b&&(b=rt.top),rt.right>E&&(E=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},be.Object.defineProperties(bs.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Si(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),bs.className="Placeholder";function Zn(a){$i.call(this,Tn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ms,this.Om=0,this.Qm=Ms,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new pn().freeze(),this.Tg=this.Mg=null,this.ml=new de,this.ua=new kn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Bt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Me(Zn,$i),Zn.prototype.cloneProtected=function(a){$i.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())},Pt=Zn.prototype,Pt.Af=function(a){$i.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&&$s(y),a=a.toPort,a!==null&&$s(a)},Pt.qb=function(a){a.classType===Zn?(a.value&2)===2?this.routing=a:a===hl||a===Th||a===Hf?this.curve=a:a===rp||a===qm||a===_m?this.adjusting=a:a!==Qv&&a!==Ms&&qt("Unknown Link enum value for a Link property: "+a):$i.prototype.qb.call(this,a)},Pt.Xc=function(){this.ba===null&&(this.ba=new Vg)},Pt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Cs(a)||ld(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Cs(a)||ld(a)))},Pt.zv=function(){return!1},Pt.Av=function(){},Pt.Zc=function(){return!1},Zn.prototype.computeAngle=function(a,y,x){return Zn.computeAngle(y,x)},Zn.computeAngle=function(a,y){switch(a){default:case Ms:a=0;break;case op:a=y;break;case ap:a=y+90;break;case sp:a=y-90;break;case qv:a=y+180;break;case $m:a=me.bp(y),90<a&&270>a&&(a-=180);break;case lp:a=me.bp(y+90),90<a&&270>a&&(a-=180);break;case up:a=me.bp(y-90),90<a&&270>a&&(a-=180);break;case t0:if(a=me.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return me.bp(a)};function zf(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Kv(x,a),a.Ah=y,y!==null&&Vv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Pt=Zn.prototype,Pt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&$i.prototype.oh.call(this)},Pt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Pt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new Ln),a.wd.add(y),a.v()}Pt.Vo=function(a){if($i.prototype.Vo.call(this,a),$d(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Gm(x,this,b)}np(this)}},Pt.Wo=function(a){if($i.prototype.Wo.call(this,a),$d(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Vm(x,this,b)}ip(this)}},Pt.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))},Zn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Zn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?$i.prototype.move.call(this,a,!1):(a=Bt.allocAt(x.x+b,x.y+E),$i.prototype.move.call(this,a,!1),Bt.free(a)),Nh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Zn.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},Zn.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},Zn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ei),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===hl))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()===hl){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return me.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),me.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=tt[z],!(b+E>x/2));)b+=E,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-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Zn.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()===hl))return this.ua.wx(.5);if(this.computeCurve()===hl&&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 b=this.i(x+2);return x=this.i(x+3),me.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},Pt=Zn.prototype,Pt.i=function(a){return this.Nb.s[a]},Pt.dd=function(a,y){this.Nb.cd(a,y)},Pt.L=function(a,y,x){this.Nb.cd(a,new Bt(y,x))},Pt.Kz=function(a,y){this.Nb.Gb(a,y)},Pt.m=function(a,y,x){this.Nb.Gb(a,new Bt(y,x))},Pt.ne=function(a){this.Nb.add(a)},Pt.yf=function(a,y){this.Nb.add(new Bt(a,y))},Pt.pv=function(a){this.Nb.mb(a)},Pt.Fj=function(){this.Nb.clear()};function Nh(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 b=a.fd,E=new pn,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new Bt(tt.x+y,tt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.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),ws(a)),b?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&hf(tt.animationManager,a,E),a.g("points",z,E)}}Pt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Pt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x=Math.min(rt.x,x),b=Math.min(rt.y,b)}rt=tt=1/0;for(var ot=y.s,st=ot.length,ut=0;ut<st;ut++){var ft=ot[ut];tt=Math.min(ft.x,tt),rt=Math.min(ft.y,rt),ft.freeze()}if(y.freeze(),st===z){for(z=0;z<st;z++)if(ut=E[z],ft=ot[z],ut.x-x!==ft.x-tt||ut.y-b!==ft.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&hf(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},Pt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(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),Qm(a,!1))}Pt.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())}},Pt.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()}}},Zn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Rc||(Rc=new di,Rc.desiredSize=se,Rc.Va()),this.defaultFromPoint&&(Rc.location=this.defaultFromPoint,Rc.Va(),y=a=Rc)):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 b=this.toNode,E=null;if(b===null?(zc||(zc=new di,zc.desiredSize=se,zc.Va()),this.defaultToPoint&&(zc.location=this.defaultToPoint,zc.Va(),E=b=zc)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var rt=jf(tt),ot=jf(x),st=y===E&&y!==null,ut=this.isOrthogonal,ft=this.curve===hl;this.Wf=st&&!ut?ft=!0:!1;var vt=this.computeAdjusting()===Ms||st;if(!ut&&!st&&rt&&ot){if(rt=!1,!vt&&3<=z&&(vt=this.getLinkPoint(a,y,tt,!0,!1,b,E),ot=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=this.adjustPoints(0,vt,z-1,ot))&&(vt=this.getLinkPoint(a,y,tt,!0,!1,b,E),ot=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,vt,z-1,ot)),!rt)if(this.Fj(),ft){z=this.getLinkPoint(a,y,tt,!0,!1,b,E),vt=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=vt.x-z.x,ot=vt.y-z.y,st=this.computeCurviness(),ft=ut=0;var xt=z.x+rt/3,Lt=z.y+ot/3,Ft=xt,Xt=Lt;me.B(ot,0)?Xt=0<rt?Xt-st:Xt+st:(ut=-rt/ot,ft=Math.sqrt(st*st/(ut*ut+1)),0>st&&(ft=-ft),Ft=(0>ot?-1:1)*ft+xt,Xt=ut*(Ft-xt)+Lt),xt=z.x+2*rt/3,Lt=z.y+2*ot/3;var Zt=xt,Qt=Lt;me.B(ot,0)?Qt=0<rt?Qt-st:Qt+st:(Zt=(0>ot?-1:1)*ft+xt,Qt=ut*(Zt-xt)+Lt),this.Fj(),this.ne(z),this.yf(Ft,Xt),this.yf(Zt,Qt),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,vt=E,b=this.getLinkPoint(a,y,tt,!0,!1,z,vt),E=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=E.x-b.x,x=E.y-b.y,tt=this.computeCurviness(),a=b.x+vt/2,y=b.y+x/2,z=a,rt=y,me.B(x,0)?rt=0<vt?rt-tt:rt+tt:(vt=-vt/x,z=Math.sqrt(tt*tt/(vt*vt+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=vt*(z-a)+y),this.ne(b),this.yf(z,rt),this.ne(E)):(this.ne(b),this.ne(E),rt=de.alloc(),y.mi(rt),ot=rt.ca(E),vt.mi(rt),st=rt.ca(b),(ot||st)&&(tt=y.ga(Um(tt),new Bt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=vt.ga(Um(x),new Bt),this.dd(1,this.getLinkPointFromPoint(z,vt,x,b,!1,x))),de.free(rt))}else{ft=this.isAvoiding,vt&&(ut&&ft||st)&&this.Fj();var _t=st?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,b,E),xt=Ft=Lt=0,(ut||!rt||st)&&(Xt=this.computeEndSegmentLength(a,y,tt,!0),xt=this.getLinkDirection(a,y,ft,tt,!0,ut,b,E),st&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(xt-=ut?90:30,0>_t&&(xt-=180)),0>xt?xt+=360:360<=xt&&(xt-=360),st&&(Xt+=Math.abs(_t)*(ut?1:2)),xt===0?Lt=Xt:xt===90?Ft=Xt:xt===180?Lt=-Xt:xt===270?Ft=-Xt:(Lt=Xt*Math.cos(xt*Math.PI/180),Ft=Xt*Math.sin(xt*Math.PI/180)),tt.Mc()&&st&&(Xt=y.ga(ji,Bt.alloc()),Zt=Bt.allocAt(Xt.x+1e3*Lt,Xt.y+1e3*Ft),this.getLinkPointFromPoint(a,y,Xt,Zt,!0,ft),Bt.free(Xt),Bt.free(Zt))),Xt=this.getLinkPoint(b,E,x,!1,ut,a,y);var te=Qt=Zt=0;if(ut||!ot||st){var ye=this.computeEndSegmentLength(b,E,x,!1);te=this.getLinkDirection(b,E,Xt,x,!1,ut,a,y),st&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(te+=ut?0:30,0>_t&&(te+=180)),0>te?te+=360:360<=te&&(te-=360),st&&(ye+=Math.abs(_t)*(ut?1:2)),te===0?Zt=ye:te===90?Qt=ye:te===180?Zt=-ye:te===270?Qt=-ye:(Zt=ye*Math.cos(te*Math.PI/180),Qt=ye*Math.sin(te*Math.PI/180)),x.Mc()&&st&&(x=E.ga(ji,Bt.alloc()),tt=Bt.allocAt(x.x+1e3*Zt,x.y+1e3*Qt),this.getLinkPointFromPoint(b,E,x,tt,!1,Xt),Bt.free(x),Bt.free(tt))}x=ft,(ut||!rt||st)&&(x=new Bt(ft.x+Lt,ft.y+Ft)),tt=Xt,(ut||!ot||st)&&(tt=new Bt(Xt.x+Zt,Xt.y+Qt)),!vt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Xt):!vt&&!ut&&ot&&3<z&&this.adjustPoints(1,x,z-1,Xt)?this.dd(0,ft):!vt&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,ft),this.dd(z-1,Xt)):(this.Fj(),this.ne(ft),(ut||!rt||st)&&this.ne(x),ut&&this.addOrthoPoints(x,xt,tt,te,a,b),(ut||!ot||st)&&this.ne(tt),this.ne(Xt))}return!0};function Xv(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}Zn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Bt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var tt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*E;var rt=-a.m12*E,ot=-a.m21*E,st=a.m11*E,ut=E*(a.m21*a.dy-a.m22*a.dx),ft=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*tt+b.y*ot+ut,b=b.x*rt+b.y*st+ft,tt=x.x*tt+x.y*ot+ut,x=x.x*rt+x.y*st+ft}return y.Sj(E,b,tt,x,z),a!==null&&z.transform(a),z};function Ym(a,y){var x=y.Zn;return x===null&&(x=new jc,x.port=y,x.node=y.part,y.Zn=x),sS(x,a)}Zn.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,rt){if(rt===void 0&&(rt=new Bt),x.sb()&&!jf(x))return y.ga(x,rt),rt;if(x.$c()){var ot=Ym(this,y);if(ot!==null){if(rt.assign(ot.Zo),E&&this.routing===eS){var st=Ym(this,tt);if(st!==null&&ot.Gl<st.Gl){ot=Bt.alloc(),st=Bt.alloc();var ut=new de(y.ga(hr,ot),y.ga(Tr,st)),ft=this.computeSpot(!b,tt);a=this.getLinkPoint(z,tt,ft,!b,E,a,y,st),(x.Hf(no)||x.Hf(Wr))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(so)||x.Hf(fo))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Bt.free(ot),Bt.free(st)}}return rt}}return x=y.ga(Um(x),Bt.alloc()),this.pointsCount>(E?6:2)?(tt=b?this.i(1):this.i(this.pointsCount-2),E&&(tt=Xv(x,tt.copy()))):(ot=this.computeSpot(!b,tt),z=Bt.alloc(),tt=tt.ga(Um(ot),z),E&&(tt=Xv(x,tt)),Bt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,rt),Bt.free(x),rt},Zn.prototype.getLinkDirection=function(a,y,x,b,E,z,tt,rt){t:if(b.sb())var ot=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(ot=Ym(this,y),ot!==null))switch(ot.Nc){case 1:ot=270;break t;case 2:ot=180;break t;default:case 4:ot=0;break t;case 8:ot=90;break t}ot=y.ga(ji,Bt.alloc()),this.pointsCount>(z?6:2)?(rt=E?this.i(1):this.i(this.pointsCount-2),rt=z?Xv(ot,rt.copy()):x):(x=Bt.alloc(),rt=rt.ga(ji,x),Bt.free(x)),x=Math.abs(rt.x-ot.x)>Math.abs(rt.y-ot.y)?rt.x>=ot.x?0:180:rt.y>=ot.y?90:270,Bt.free(ot),ot=x}return b.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),jf(b)||(a=y.li(),a===0)||(45<=a&&135>a?ot+=90:135<=a&&225>a?ot+=180:225<=a&&315>a&&(ot+=270),360<=ot&&(ot-=360)),ot},Zn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Ym(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Zn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ji:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ko?Gi:y)):(a=y||this.toPort,a===null?a=ji:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ko?Gi:y)),a};function jf(a){return a===Gi||a.x===.5&&a.y===.5}function Um(a){return a.x===.5&&a.y===.5?a:ji}Zn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ms&&4<this.pointsCount?this.computeMidPoint(new Bt):(a=y.Zn,a=a!==null?sS(a,this):null,a!==null?a.Zo:y.ga(ji))},Zn.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},Zn.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=vi.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,E),z===void 0&&vi.free(tt),!0;if(this.Yc(a,tt)){var rt=!1;if(!this.isAtomic)for(var ot=this.O.s,st=ot.length;st--;){var ut=ot[st];if(ut.visible||ut===this.locationObject){var ft=ut.actualBounds,vt=this.naturalBounds;if(!(ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=vi.alloc(),ft.set(tt),ut instanceof Tn)rt=ut.Cf(a,y,x,b,E,ft);else if(this.path===ut){if(ut instanceof Dr)if(rt=a,vt=b,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),vt)t:{var xt=rt,Lt=ft;if(ut.fh(xt,Lt))rt=!0;else{if(Lt===void 0&&(Lt=ut.transform,xt.Re(ut.actualBounds))){rt=!0;break t}rt=xt.left,vt=xt.right;var Ft=xt.top;xt=xt.bottom;var Xt=Bt.alloc(),Zt=Bt.alloc(),Qt=Bt.alloc(),_t=vi.alloc();_t.set(Lt),_t.bv(ut.transform),_t.Vj(),Zt.x=vt,Zt.y=Ft,Zt.transform(_t),Xt.x=rt,Xt.y=Ft,Xt.transform(_t),Lt=!1,qd(ut,Xt,Zt,Qt)?Lt=!0:(Xt.x=vt,Xt.y=xt,Xt.transform(_t),qd(ut,Xt,Zt,Qt)?Lt=!0:(Zt.x=rt,Zt.y=xt,Zt.transform(_t),qd(ut,Xt,Zt,Qt)?Lt=!0:(Xt.x=rt,Xt.y=Ft,Xt.transform(_t),qd(ut,Xt,Zt,Qt)&&(Lt=!0)))),vi.free(_t),Bt.free(Xt),Bt.free(Zt),Bt.free(Qt),rt=Lt}}else rt=ut.fh(rt,ft)}else rt=Da(ut,a,b,ft);rt&&(vt=ut,y!==null&&(vt=y(ut)),vt&&(x===null||x(vt))&&E.add(vt)),vi.free(ft)}}}return z===void 0&&vi.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&vi.free(tt),!1},Zn.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?hl:this.curve},Zn.prototype.computeCorner=function(){if(this.curve===hl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Zn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Zn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=iS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,tt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===op||b===$m||b===qv?a=Math.max(a,E):b===sp||b===up||b===ap||b===lp?a=Math.max(a,tt):(y=y.ga(ji).ab(x.ga(ji))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*E)+1)),this.curve===hl&&(a*=1.333)}}return a},Zn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ms&&x.bb()}},Zn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=nS;var y=this.Sf;if(y!==null){for(var x=Di(),b=0,E=y.links,z=0;z<E.length;z++){var tt=E[z].computeSpacing();x.push(tt),b+=tt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),$n(x)}}return a},Zn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Zn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Zn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===qm)return!1;E===_m&&(E=rp)}switch(E){case qm:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(b)){E=z.x,z=z.y;var rt=tt.x-E,ot=tt.y-z,st=Math.sqrt(rt*rt+ot*ot);if(!me.$(st,0)){if(me.$(rt,0))var ut=0>ot?-Math.PI/2:Math.PI/2;else ut=Math.atan(ot/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;rt=b.x-tt;var vt=b.y-ft;for(ot=Math.sqrt(rt*rt+vt*vt),me.$(rt,0)?vt=0>vt?-Math.PI/2:Math.PI/2:(vt=Math.atan(vt/Math.abs(rt)),0>rt&&(vt=Math.PI-vt)),st=ot/st,ut=vt-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),rt=y.x-E,ot=y.y-z,y=Math.sqrt(rt*rt+ot*ot),me.$(y,0)||(me.$(rt,0)?ot=0>ot?-Math.PI/2:Math.PI/2:(ot=Math.atan(ot/Math.abs(rt)),0>rt&&(ot=Math.PI-ot)),rt=ot+ut,y*=st,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,b)}}return!0;case _m:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(b)){E=z.x,z=z.y,tt=ft.x,ft=ft.y,st=(tt-E)*(tt-E)+(ft-z)*(ft-z),rt=y.x,ut=y.y,ot=b.x,vt=b.y;var xt=1;if(ot-rt!==0){var Lt=(vt-ut)/(ot-rt);xt=Math.sqrt(1+1/(Lt*Lt))}else Lt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Ft=y.x,Xt=y.y,Zt=.5;st!==0&&(Zt=((E-Ft)*(E-tt)+(z-Xt)*(z-ft))/st);var Qt=E+Zt*(tt-E),_t=z+Zt*(ft-z);y=Math.sqrt((Ft-Qt)*(Ft-Qt)+(Xt-_t)*(Xt-_t)),Xt<Lt*(Ft-Qt)+_t&&(y=-y),0<Lt&&(y=-y),Ft=rt+Zt*(ot-rt),Zt=ut+Zt*(vt-ut),Lt!==0?(y=Ft+y/xt,this.L(a,y,Zt-(y-Ft)/Lt)):this.L(a,Ft,Zt+y)}this.dd(x,b)}return!0;case rp:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),tt=this.i(a+2),rt=z.x,ut=z.y,ft=rt,st=ut,me.B(E.y,z.y)?me.B(z.x,tt.x)?ut=y.y:me.B(z.y,tt.y)&&(rt=y.x):me.B(E.x,z.x)&&(me.B(z.y,tt.y)?rt=y.x:me.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,rt,ut),E=this.i(x),z=this.i(x-1),tt=this.i(x-2),rt=z.x,ut=z.y,ot=rt,vt=ut,me.B(E.y,z.y)?me.B(z.x,tt.x)?ut=b.y:me.B(z.y,tt.y)&&(rt=b.x):me.B(E.x,z.x)&&(me.B(z.y,tt.y)?rt=b.x:me.B(z.x,tt.x)&&(ut=b.y)),this.L(x-1,rt,ut),Yv(this))){this.L(a+1,ft,st),this.L(x-1,ot,vt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Zn.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var tt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var rt=E.actualBounds.copy(),ot=z.actualBounds.copy();if(rt.w()&&ot.w()){rt.Bc(hp,hp),ot.Bc(hp,hp),rt.Ye(a),ot.Ye(x);var st=Bt.alloc(),ut=Bt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&ot.right>a.x||b===90&&x.y>a.y&&ot.right>a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===180?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(st.x=a.x<ot.left?this.computeMidOrthoPosition(a.x,a.y,ot.left,x.y,!1):a.x<ot.right&&(b===270&&a.y<ot.top||b===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.right,ut.x=st.x,ut.y=x.y):b===0&&a.x<ot.left&&a.y>ot.top&&a.y<ot.bottom&&(st.x=a.x,st.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=st.y)):(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===180&&(ot.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(b===180||b===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=st.y),st.y>rt.top&&st.y<rt.bottom&&(x.x>=rt.left&&x.x<=a.x||a.x<=ot.right&&a.x>=x.x?(b===90||b===270)&&(st.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,b===0?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=st.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&ot.left<a.x||b===90&&x.y>a.y&&ot.left<a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===0?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(st.x=a.x>ot.right?this.computeMidOrthoPosition(a.x,a.y,ot.right,x.y,!1):a.x>ot.left&&(b===270&&a.y<ot.top||b===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.left,ut.x=st.x,ut.y=x.y):b===180&&a.x>ot.right&&a.y>ot.top&&a.y<ot.bottom&&(st.x=a.x,st.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=st.y)):(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===0&&(ot.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(b===0||b===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=st.y),st.y>rt.top&&st.y<rt.bottom&&(x.x<=rt.right&&x.x>=a.x||a.x>=ot.left&&a.x<=x.x?(b===90||b===270)&&(st.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,b===180?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=st.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&ot.bottom>a.y||b===0&&x.x>a.x&&ot.bottom>a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===270?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(st.y=a.y<ot.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.top,!0):a.y<ot.bottom&&(b===180&&a.x<ot.left||b===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.bottom,ut.x=x.x,ut.y=st.y):b===90&&a.y<ot.top&&a.x>ot.left&&a.x<ot.right&&(st.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),st.y=a.y,ut.x=st.x)):(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===270&&(ot.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=st.x,ut.y=x.y),st.x>rt.left&&st.x<rt.right&&(x.y>=rt.top&&x.y<=a.y||a.y<=ot.bottom&&a.y>=x.y?(b===0||b===180)&&(st.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,b===90?rt.right:Math.max(rt.right,ot.right)),ut.x=st.x,ut.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&ot.top<a.y||b===0&&x.x>a.x&&ot.top<a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===90?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(st.y=a.y>ot.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.bottom,!0):a.y>ot.top&&(b===180&&a.x<ot.left||b===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.top,ut.x=x.x,ut.y=st.y):b===270&&a.y>ot.bottom&&a.x>ot.left&&a.x<ot.right&&(st.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),st.y=a.y,ut.x=st.x)):(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===90&&(ot.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=st.x,ut.y=x.y),st.x>rt.left&&st.x<rt.right&&(x.y<=rt.bottom&&x.y>=a.y||a.y>=ot.top&&a.y<=x.y?(b===0||b===180)&&(st.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,b===270?rt.right:Math.max(rt.right,ot.right)),ut.x=st.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var vt=this.diagram;if(vt===null||E===z||this.layer.isTemporary||!Sf(vt)||rt.ca(ft)&&!z.Td(E)||ot.ca(a)&&!E.Td(z))y=!1;else{var xt=xf(vt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&xt.Yj(Math.min(a.x,st.x),Math.min(a.y,st.y),Math.abs(a.x-st.x),Math.abs(a.y-st.y))&&xt.Yj(Math.min(st.x,ut.x),Math.min(st.y,ut.y),Math.abs(st.x-ut.x),Math.abs(st.y-ut.y))&&xt.Yj(Math.min(ut.x,ft.x),Math.min(ut.y,ft.y),Math.abs(ut.x-ft.x),Math.abs(ut.y-ft.y)))y=!1;else{E=a,z=ft;var Lt=x=null;if(vt.isVirtualized){vt=xt.bounds.copy(),vt.Bc(-xt.Ho,-xt.Go);var Ft=Bt.alloc();Zf(xt,a.x,a.y)||(me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,a.x,a.y,st.x,st.y,Ft)?(x=a=Ft.copy(),y=Ft.ab(st)):me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,st.x,st.y,ut.x,ut.y,Ft)?(x=a=Ft.copy(),y=Ft.ab(ut)):me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,ft.x,ft.y,Ft)&&(x=a=Ft.copy(),y=Ft.ab(ft))),Zf(xt,ft.x,ft.y)||(me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ft.x,ft.y,ut.x,ut.y,Ft)?(Lt=ft=Ft.copy(),b=ut.ab(Ft)):me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,st.x,st.y,Ft)?(Lt=ft=Ft.copy(),b=st.ab(Ft)):me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,st.x,st.y,a.x,a.y,Ft)&&(Lt=ft=Ft.copy(),b=a.ab(Ft))),Bt.free(Ft)}rt=rt.copy().ed(ot),rt.Bc(xt.Ho*xt.Os,xt.Go*xt.Os),oS(xt,a,y,ft,b,rt,!0),ot=Hu(xt,ft.x,ft.y),!xt.abort&&ot>=Wf&&(rS(xt),rt.Bc(xt.Ho*xt.Hx,xt.Go*xt.Ix),oS(xt,a,y,ft,b,rt,!1),ot=Hu(xt,ft.x,ft.y)),!xt.abort&&ot<Wf&&Hu(xt,ft.x,ft.y)!==Dh?(Uv(this,xt,ft.x,ft.y,b,!0,tt),rt=this.i(2),4>this.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?me.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):me.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=xt.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(me.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):me.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=xt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Lt!==null&&(b===0||b===180?this.yf(z.x,Lt.y):this.yf(Lt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(st.copy()),this.ne(ut.copy())),Bt.free(st),Bt.free(ut)}},Zn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Yv(a){if(a.diagram===null||!a.isAvoiding||!Sf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=xf(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Uv(a,y,x,b,E,z,tt){var rt=y.Ho,ot=y.Go,st=Hu(y,x,b),ut=x,ft=b;for(E===0?ut+=rt:E===90?ft+=ot:E===180?ut-=rt:ft-=ot,E!==tt&&st>tc&&Hu(y,ut,ft)!==st-1&&(Hu(y,x-rt,b)===st-1?(E=180,ut=x-rt,ft=b):Hu(y,x+rt,b)===st-1?(E=0,ut=x+rt,ft=b):Hu(y,x,b-ot)===st-1?(E=270,ut=x,ft=b-ot):Hu(y,x,b+ot)===st-1&&(E=90,ut=x,ft=b+ot));st>tc&&Hu(y,ut,ft)===st-1;)x=ut,b=ft,E===0?ut+=rt:E===90?ft+=ot:E===180?ut-=rt:ft-=ot,--st;z?st>tc&&(E===180||E===0?x=Math.floor(x/rt)*rt+rt/2:(E===90||E===270)&&(b=Math.floor(b/ot)*ot+ot/2)):(x=Math.floor(x/rt)*rt+rt/2,b=Math.floor(b/ot)*ot+ot/2),st>tc&&(z=E,tt=x,ut=b,E===0?(z=90,ut+=ot):E===90?(z=180,tt-=rt):E===180?(z=270,ut-=ot):E===270&&(z=0,tt+=rt),Hu(y,tt,ut)===st-1?Uv(a,y,tt,ut,z,!1,z):(tt=x,ut=b,E===0?(z=270,ut-=ot):E===90?(z=0,tt+=rt):E===180?(z=90,ut+=ot):E===270&&(z=180,tt-=rt),Hu(y,tt,ut)===st-1&&Uv(a,y,tt,ut,z,!1,z))),a.yf(x,b)}Zn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=mi(y,a,x.x,x.y,b.x,b.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var rt=mi(y,a,b.x,b.y,x.x,x.y);b=x,rt<E&&(z=tt,E=rt)}return z},Zn.prototype.qc=function(){this.lk=!1,this.v()},Zn.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,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof Dr&&(E.ua=this.ua)}}},Zn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&$d(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var tt=this.computeCurve();if(tt===hl&&3<=y&&!me.$(this.smoothness,0))if(y===3){var rt=this.i(1);b=Math.min(E.x,rt.x);var ot=Math.min(E.y,rt.y);rt=this.i(2),b=Math.min(b,rt.x),ot=Math.min(ot,rt.y)}else{if(this.isOrthogonal)for(ot=0;ot<y;ot++)rt=b[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),ot=this.i(b),z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,ot=z.y}else{for(ot=0;ot<y;ot++)rt=b[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);b=z.x,ot=z.y}if(b-=this.su.x,ot-=this.su.y,E.x-=b,E.y-=ot,y!==2||$d(this)){if(a.type=kn.o,rt=F1(a),this.computeShortLength(!0)!==0&&(E=Oc(this,E,!0,z)),Rf(rt,E.x,E.y,!1),tt===hl&&3<=y&&!me.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-ot,E=this.i(2).copy(),E.x-=b,E.y-=ot,this.computeShortLength(!1)!==0&&(E=Oc(this,E,!1,z)),kh(rt,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Bt.allocAt(b,ot),x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-ot,st.x-b,st.y-ot),y.set(z),x.set(E),tt=st}}st=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Oc(this,ut.copy(),!1,ti)),st=.5*(st+ut.x),tt=.5*(tt+ut.y),kh(rt,E.x-b,E.y-ot,st-b,tt-ot,ut.x-b,ut.y-ot),Bt.free(y),Bt.free(x),Bt.free(z),Bt.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Oc(this,tt.copy(),!1,ti)),kh(rt,z.x-b,z.y-ot,E.x-b,E.y-ot,tt.x-b,tt.y-ot);else{for(z=Bt.alloc(),z.assign(this.i(0)),E=Bt.alloc(),E.assign(z),tt=this.computeCorner(),ft=1,st=0;ft<y;){if(ft=Jv(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Oc(this,ut.copy(),!1,ti)),Ic(this,rt,-b,-ot,z,ut,x);else if(st===0)for(ft=1;ft<y;)E.assign(z),ut=this.i(ft++),Ic(this,rt,-b,-ot,z,ut,x),z.assign(ut);break}if(st=Jv(this,ut,ft+1,ft<y-3),ft=-b,Xt=-ot,vt=ut,Zt=this.i(st),Ft=x,me.B(z.y,vt.y)&&me.B(vt.x,Zt.x))if(Lt=Math.min(tt,Math.abs(vt.x-E.x)/2),Lt=_t=Math.min(Lt,Math.abs(Zt.y-vt.y)/2),me.B(Lt,0))Ic(this,rt,ft,Xt,z,vt,Ft),z.assign(vt);else{var te=vt.x,ye=vt.y;xt=te,Qt=ye,vt.x>z.x?te=vt.x-Lt:te=vt.x+Lt,Zt.y>vt.y?Qt=vt.y+_t:Qt=vt.y-_t,Zt=Bt.allocAt(te,ye),Ic(this,rt,ft,Xt,z,Zt,Ft),Bt.free(Zt),jm(rt,vt.x+ft,vt.y+Xt,xt+ft,Qt+Xt),z.h(xt,Qt)}else me.B(z.x,vt.x)&&me.B(vt.y,Zt.y)?(Lt=Math.min(tt,Math.abs(vt.y-E.y)/2),Lt=_t=Math.min(Lt,Math.abs(Zt.x-vt.x)/2),me.B(_t,0)?(Ic(this,rt,ft,Xt,z,vt,Ft),z.assign(vt)):(te=vt.x,ye=vt.y,xt=te,Qt=ye,vt.y>z.y?ye=vt.y-Lt:ye=vt.y+Lt,Zt.x>vt.x?xt=vt.x+_t:xt=vt.x-_t,Zt=Bt.allocAt(te,ye),Ic(this,rt,ft,Xt,z,Zt,Ft),Bt.free(Zt),jm(rt,vt.x+ft,vt.y+Xt,xt+ft,Qt+Xt),z.h(xt,Qt))):(Ic(this,rt,ft,Xt,z,vt,Ft),z.assign(vt));E.assign(ut),ft=st}Bt.free(z)}Hm=rt}else rt=this.i(1).copy(),rt.x-=b,rt.y-=ot,this.computeShortLength(!0)!==0&&(E=Oc(this,E,!0,z)),this.computeShortLength(!1)!==0&&(rt=Oc(this,rt,!1,z)),a.type=kn.j,a.startX=E.x,a.startY=E.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function Jm(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),me.$(a,0)?y:me.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Oc(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=Jm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=Jm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Jv(a,y,x,b){for(var E=a.pointsCount,z=y;me.$(y.x,z.x)&&me.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!me.$(y.x,z.x)&&!me.$(y.y,z.y))return x-1;for(var tt=z;me.$(y.x,z.x)&&me.$(z.x,tt.x)&&(!b||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||me.$(y.y,z.y)&&me.$(z.y,tt.y)&&(!b||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=E)return E-1;tt=a.i(x++)}return x-2}Zn.prototype.computeJumpLength=function(){return 10};function Ic(a,y,x,b,E,z,tt){if(!tt&&$d(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],st=0;if(a.isVisible()&&(st=bx(a,E,z,ot)),0<st){if(me.B(E.y,z.y))if(E.x<z.x)for(var ut=0;ut<st;){var ft=Math.max(E.x,Math.min(ot[ut++]-rt,z.x-tt));y.lineTo(ft+x,z.y+b);for(var vt=ft+x,xt=Math.min(ft+tt,z.x);ut<st&&(ft=ot[ut],ft<xt+tt);)ut++,xt=Math.min(ft+rt,z.x);ft=z.y-tt+b,xt+=x;var Lt=z.y+b;a.curve===Th?Rf(y,xt,Lt,!1):kh(y,vt,ft,xt,ft,xt,Lt)}else for(--st;0<=st;){for(ut=Math.min(E.x,Math.max(ot[st--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+b),vt=ut+x,ft=Math.max(ut-tt,z.x);0<=st&&(ut=ot[st],ut>ft-tt);)st--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+b,ft+=x,xt=z.y+b,a.curve===Th?Rf(y,ft,xt,!1):kh(y,vt,ut,ft,ut,ft,xt)}else if(me.B(E.x,z.x))if(E.y<z.y)for(ut=0;ut<st;){for(ft=Math.max(E.y,Math.min(ot[ut++]-rt,z.y-tt)),y.lineTo(z.x+x,ft+b),vt=ft+b,ft=Math.min(ft+tt,z.y);ut<st&&(xt=ot[ut],xt<ft+tt);)ut++,ft=Math.min(xt+rt,z.y);xt=z.x-tt+x,Lt=z.x+x,ft+=b,a.curve===Th?Rf(y,Lt,ft,!1):kh(y,xt,vt,xt,ft,Lt,ft)}else for(--st;0<=st;){for(ut=Math.min(E.y,Math.max(ot[st--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+b),vt=ut+b,ut=Math.max(ut-tt,z.y);0<=st&&(ft=ot[st],ft>ut-tt);)st--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,xt=z.x+x,ut+=b,a.curve===Th?Rf(y,xt,ut,!1):kh(y,ft,vt,ft,ut,xt,ut)}}}y.lineTo(z.x+x,z.y+b)}function bx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];if(ot instanceof Zn){if(ot===a)return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length;if(ot.isVisible()&&$d(ot)){var st=ot.routeBounds;st.w()&&a.routeBounds.Yc(st)&&!a.usesSamePort(ot)&&(st=ot.path,st!==null&&st.Ed()&&Mx(y,x,b,ot))}}}}}return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length}function Mx(a,y,x,b){for(var E=me.B(a.y,y.y),z=b.pointsCount,tt=b.i(0),rt=Bt.alloc(),ot=1;ot<z;ot++){var st=b.i(ot);if(ot<z-1){var ut=b.i(ot+1);if(tt.y===st.y&&st.y===ut.y){if(st.x>tt.x&&ut.x>=st.x||st.x<tt.x&&ut.x<=st.x)continue}else if(tt.x===st.x&&st.x===ut.x&&(st.y>tt.y&&ut.y>=st.y||st.y<tt.y&&ut.y<=st.y))continue}t:{ut=a.x;var ft=a.y,vt=y.x,xt=y.y,Lt=tt.x;tt=tt.y;var Ft=st.x,Xt=st.y;if(me.B(ut,vt)){if(!me.B(ft,xt)&&me.B(tt,Xt)&&Math.min(ft,xt)<tt&&Math.max(ft,xt)>tt&&Math.min(Lt,Ft)<ut&&Math.max(Lt,Ft)>ut&&!me.B(Lt,Ft)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(me.B(ft,xt)&&me.B(Lt,Ft)&&Math.min(ut,vt)<Lt&&Math.max(ut,vt)>Lt&&Math.min(tt,Xt)<ft&&Math.max(tt,Xt)>ft&&!me.B(tt,Xt)){rt.x=Lt,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(E?x.push(rt.x):x.push(rt.y)),tt=st}Bt.free(rt)}function $d(a){return a=a.curve,a===Hf||a===Th}function Qm(a,y){(y||$d(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()))}Zn.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 b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var tt=E.length,rt=0;rt<tt;rt++){var ot=E[rt];ot instanceof Zn&&(ot===this?z=!0:z&&tS(this,ot,a))}}else if(b)for(z=E.Pa.s,E=z.length,tt=0;tt<E;tt++)rt=z[tt],rt instanceof Zn&&tS(this,rt,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&$d(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Zn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Zn.prototype.isVisible=function(){if(!$i.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 b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.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},Zn.prototype.Zb=function(a){if($i.prototype.Zb.call(this,a),a&&Qm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Zn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?rp:this.qk};function np(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,tt=y.jb.s,rt=tt.length,ot=0;ot<rt;ot++){var st=tt[ot];(st.ef===y&&st.ff===b&&st.uf===x&&st.vf===E||st.ef===x&&st.ff===E&&st.uf===y&&st.vf===b)&&(z===null?z=st:(a===null&&(a=[],a.push(z)),a.push(st)))}if(a!==null){for(z=W1(y,x,b,E),z===null&&(z=new e0(y,b,x,E),Z1(y,z),Z1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function ip(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Ui(y.links,a),y.Sl()))}Zn.prototype.ph=function(){return!0},be.Object.defineProperties(Zn.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&&Vm(y,this,x),ip(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.uf!==a&&Gm(a,this,E),np(this),this.C(1)),this.g("fromNode",y,a),zf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&$s(x),ip(this),this.ff=a;var b=this.fromPort;b!==null&&$s(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),np(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&&Vm(y,this,x),ip(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.ef!==a&&Gm(a,this,E),np(this),this.C(1)),this.g("toNode",y,a),zf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&$s(x),ip(this),this.vf=a;var b=this.toPort;b!==null&&$s(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),np(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:ko},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&&$s(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&&Rn(a,">= 0",Zn,"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:ko},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&&$s(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&&Rn(a,">= 0",Zn,"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?Zr: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&&ep(this.fromNode),this.toNode!==null&&ep(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Dr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===hl&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),me.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var tt=this.i(z-2);z+3>=b&&(z=b-1);var rt=this.i(z-1),ot=this.i(z);me.Dl(E.x,E.y,tt.x,tt.y,rt.x,rt.y,ot.x,ot.y,.5,a),y=Math.min(ot.x,y),x=Math.min(ot.y,x),E=ot}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),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 Bt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);me.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):me.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];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 b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new pn,b=0;b<a.length/2;b++)E=new Bt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!ln(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new pn,b=0;b<a.length;b++)E=a[b],x.add(new Bt(E.x,E.y).freeze())}}else if(a instanceof pn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else qt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&hf(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||!jf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!jf(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(),Qm(this,y===Th||y===Hf||a===Th||a===Hf),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(),Qm(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)}}}),Zn.prototype.invalidateOtherJumpOvers=Zn.prototype.Xo,Zn.prototype.findClosestSegment=Zn.prototype.ez,Zn.prototype.updateRoute=Zn.prototype.vg,Zn.prototype.invalidateRoute=Zn.prototype.bb,Zn.prototype.rollbackRoute=Zn.prototype.rv,Zn.prototype.commitRoute=Zn.prototype.zf,Zn.prototype.startRoute=Zn.prototype.uh,Zn.prototype.clearPoints=Zn.prototype.Fj,Zn.prototype.removePoint=Zn.prototype.pv,Zn.prototype.addPointAt=Zn.prototype.yf,Zn.prototype.addPoint=Zn.prototype.ne,Zn.prototype.insertPointAt=Zn.prototype.m,Zn.prototype.insertPoint=Zn.prototype.Kz,Zn.prototype.setPointAt=Zn.prototype.L,Zn.prototype.setPoint=Zn.prototype.dd,Zn.prototype.getPoint=Zn.prototype.i,Zn.prototype.getOtherPort=Zn.prototype.Cz,Zn.prototype.getOtherNode=Zn.prototype.To;var Rc=null,zc=null,Qv=new rn(Zn,"Normal",1),Ax=new rn(Zn,"Orthogonal",2),kx=new rn(Zn,"AvoidsNodes",6),eS=new rn(Zn,"AvoidsNodesStraight",7),Ms=new rn(Zn,"None",0),hl=new rn(Zn,"Bezier",9),Th=new rn(Zn,"JumpGap",10),Hf=new rn(Zn,"JumpOver",11),rp=new rn(Zn,"End",17),qm=new rn(Zn,"Scale",18),_m=new rn(Zn,"Stretch",19),op=new rn(Zn,"OrientAlong",21),ap=new rn(Zn,"OrientPlus90",22),sp=new rn(Zn,"OrientMinus90",23),qv=new rn(Zn,"OrientOpposite",24),$m=new rn(Zn,"OrientUpright",25),lp=new rn(Zn,"OrientPlus90Upright",26),up=new rn(Zn,"OrientMinus90Upright",27),t0=new rn(Zn,"OrientUpright45",28),nS=16,iS=14,hp=8;Zn.className="Link",Zn.Normal=Qv,Zn.Orthogonal=Ax,Zn.AvoidsNodes=kx,Zn.AvoidsNodesStraight=eS,Zn.None=Ms,Zn.Bezier=hl,Zn.JumpGap=Th,Zn.JumpOver=Hf,Zn.End=rp,Zn.Scale=qm,Zn.Stretch=_m,Zn.OrientAlong=op,Zn.OrientPlus90=ap,Zn.OrientMinus90=sp,Zn.OrientOpposite=qv,Zn.OrientUpright=$m,Zn.OrientPlus90Upright=lp,Zn.OrientMinus90Upright=up,Zn.OrientUpright45=t0,Zn.EndSegmentStep=8,Zn.CurvinessStart=nS,Zn.SpacingMin=iS,Zn.OrthoShortCut=hp;function e0(a,y,x,b){_i(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}e0.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},e0.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))}},e0.className="LinkBundle";function dp(a){_i(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}dp.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=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((b+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=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=_v,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function Zf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Hu(a,y,x){return Zf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):_v}function rS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=tc&&(x[b]=_v)}dp.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<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 E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Dh)return!1}return!0};function Zu(a,y,x,b,E,z,tt,rt,ot){if(!(y<z||y>tt||x<rt||x>ot)){var st=y|0,ut=x|0,ft=a.ac[st][ut];if(ft>=tc&&ft<Wf)for(E?ut+=b:st+=b,ft+=1;z<=st&&st<=tt&&rt<=ut&&ut<=ot&&!(ft>=a.ac[st][ut]);)a.ac[st][ut]=ft,ft+=1,E?ut+=b:st+=b;if(st=E?ut:st,E)if(0<b)for(x+=b;x<st;x+=b)Zu(a,y,x,1,!E,z,tt,rt,ot),Zu(a,y,x,-1,!E,z,tt,rt,ot);else for(x+=b;x>st;x+=b)Zu(a,y,x,1,!E,z,tt,rt,ot),Zu(a,y,x,-1,!E,z,tt,rt,ot);else if(0<b)for(y+=b;y<st;y+=b)Zu(a,y,x,1,!E,z,tt,rt,ot),Zu(a,y,x,-1,!E,z,tt,rt,ot);else for(y+=b;y>st;y+=b)Zu(a,y,x,1,!E,z,tt,rt,ot),Zu(a,y,x,-1,!E,z,tt,rt,ot)}}function n0(a,y,x,b,E,z,tt,rt,ot){y|=0,x|=0;var st=Dh,ut=tc;for(a.ac[y][x]=ut;st===Dh&&y>z&&y<tt&&x>rt&&x<ot;)ut+=1,a.ac[y][x]=ut,E?x+=b:y+=b,st=a.ac[y][x]}function i0(a,y,x,b,E,z,tt,rt,ot){y|=0,x|=0;var st=Dh,ut=Wf;for(a.ac[y][x]=ut;st===Dh&&y>z&&y<tt&&x>rt&&x<ot;)a.ac[y][x]=ut,E?x+=b:y+=b,st=a.ac[y][x]}function oS(a,y,x,b,E,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,ot=y.y;if(Zf(a,rt,ot)){rt-=a.Nd,rt/=a.rc,ot-=a.Od,ot/=a.sc;var st=b.x,ut=b.y;if(Zf(a,st,ut))if(st-=a.Nd,st/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(rt-st)&&1>=Math.abs(ot-ut))a.abort=!0;else{var ft=z.x;b=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,vt-=a.Od,vt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,b|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),b=a.ac,rt|=0,ot|=0,st|=0,ut|=0;var xt=x===0||x===90?1:-1;if(x=x===90||x===270,b[rt][ot]===Dh?(n0(a,rt,ot,xt,x,z,y,ft,vt),n0(a,rt,ot,1,!x,z,y,ft,vt),n0(a,rt,ot,-1,!x,z,y,ft,vt)):n0(a,rt,ot,xt,x,rt,ot,rt,ot),b[st][ut]===Dh?(i0(a,st,ut,E===0||E===90?1:-1,E===90||E===270,z,y,ft,vt),i0(a,st,ut,1,!(E===90||E===270),z,y,ft,vt),i0(a,st,ut,-1,!(E===90||E===270),z,y,ft,vt)):i0(a,st,ut,xt,x,st,ut,st,ut),x=Di(),tt&&aS(a,st,ut,E,rt,ot,x))for((x[0]!==st||x[1]!==ut)&&(x.unshift(ut),x.unshift(st)),(x[x.length-2]!==rt||x[x.length-1]!==ot)&&(x.push(rt),x.push(ot)),a=tc,E=x[x.length-2],tt=x[x.length-1],b[E][tt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],tt=x[z+3],y=x[z],st=x[z+1];y>E?E++:y<E?E--:st>tt?tt++:st<tt&&tt--,b[E][tt]=a++,E!==y||tt!==st;);else Zu(a,rt,ot,1,!1,z,y,ft,vt),Zu(a,rt,ot,-1,!1,z,y,ft,vt),Zu(a,rt,ot,1,!0,z,y,ft,vt),Zu(a,rt,ot,-1,!0,z,y,ft,vt);$n(x)}}}}function aS(a,y,x,b,E,z,tt){for(var rt=a.ac,ot=y,st=x;;){if(ot===E&&st===z)return!0;var ut=ot,ft=st;if(b===0)if(ut<E)ut++;else break;else if(b===90)if(ft<z)ft++;else break;else if(b===180)if(ut>E)ut--;else break;else if(ft>z)ft--;else break;var vt=rt[ut][ft];if(vt===0||vt===$v)break;ot=ut,st=ft}for(;;){if(ut=b,ft=ot,vt=st,b===0?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):b===90?ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--):b===180?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--),ft=rt[ft][vt],ut!==b&&ft!==0&&ft!==$v){if(tt.push(ot),tt.push(st),aS(a,ot,st,ut,E,z,tt))return!0;tt.pop(),tt.pop()}if(rt[ot][st]=$v,b===0){if(ot===y)return!1;ot--}else if(b===90){if(st===x)return!1;st--}else if(b===180){if(ot===y)return!1;ot++}else{if(st===x)return!1;st++}}}be.Object.defineProperties(dp.prototype,{bounds:{get:function(){return new de(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 Dh=0,tc=1,Wf=999999,_v=Wf+1,$v=Wf+2;dp.className="PositionArray";function jc(){_i(this),this.port=this.node=null,this.pe=[],this.ap=!1}jc.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
`+b.toString())}return y};function Ex(a,y,x,b){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 b&&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}jc.prototype.Sl=function(){this.pe.length=0};function sS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof Mr?E:null;if(z===null||z.isSubGraphExpanded)var tt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,tt=b.Lu()}z=a.pe.length=0;var rt=a.port.ga(hr,Bt.alloc()),ot=a.port.ga(Tr,Bt.alloc());for(E=de.allocAt(rt.x,rt.y,0,0),E.Ye(ot),Bt.free(rt),Bt.free(ot),rt=Bt.allocAt(E.x+E.width/2,E.y+E.height/2),ot=a.port.li(),tt=tt.iterator;tt.next();){var st=tt.value;if(st.isVisible()&&st.fromPort!==st.toPort){var ut=st.fromPort===a.port||st.fromNode!==null&&st.fromNode.Td(b),ft=st.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?st.toPort:st.fromPort,ut!==null)){var vt=ut.part;if(vt!==null){var xt=vt.findVisibleNode();xt!==null&&xt!==vt&&(vt=xt,ut=vt.port),ut=st.computeOtherPoint(vt,ut),vt=rt.ab(ut),vt-=ot,0>vt?vt+=360:360<=vt&&(vt-=360),ft=Ex(E,ft,vt,st.isOrthogonal),ft===0?(ft=4,180<vt&&(vt-=360)):ft===90?(ft=8,270<vt&&(vt-=360)):ft===180?ft=2:(ft=1,90>vt&&(vt+=360)),xt=a.pe[z],xt===void 0?(xt=new ty(st,vt,ft),a.pe[z]=xt):(xt.link=st,xt.angle=vt,xt.Nc=ft),xt.hv.set(ut),z++}}}}for(Bt.free(rt),a.pe.sort(jc.prototype.j),ot=a.pe.length,b=-1,z=rt=0;z<ot;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==b&&(b=tt.Nc,rt=0),tt.Uo=rt,rt++);for(b=-1,rt=0,z=ot-1;0<=z;z--)ot=a.pe[z],ot!==void 0&&(ot.Nc!==b&&(b=ot.Nc,rt=ot.Uo+1),ot.Gl=rt);if(z=a.pe,ft=a.port,b=a.node.portSpreading,rt=Bt.alloc(),ot=Bt.alloc(),tt=Bt.alloc(),st=Bt.alloc(),ft.ga(hr,rt),ft.ga(Or,ot),ft.ga(Tr,tt),ft.ga(Ur,st),xt=vt=ut=ft=0,b===Gv)for(var Lt=0;Lt<z.length;Lt++){var Ft=z[Lt];if(Ft!==null){var Xt=Ft.link.computeThickness();switch(Ft.Nc){case 8:vt+=Xt;break;case 2:xt+=Xt;break;case 1:ft+=Xt;break;default:case 4:ut+=Xt}}}var Zt=Lt=0,Qt=1,_t=Ft=0;for(Xt=0;Xt<z.length;Xt++){var te=z[Xt];if(te!==null){if(Lt!==te.Nc){switch(Lt=te.Nc,Lt){case 8:var ye=tt;Zt=st;break;case 2:ye=st,Zt=rt;break;case 1:ye=rt,Zt=ot;break;default:case 4:ye=ot,Zt=tt}switch(Ft=Zt.x-ye.x,_t=Zt.y-ye.y,Lt){case 8:vt>Math.abs(Ft)?(Qt=Math.abs(Ft)/vt,vt=Math.abs(Ft)):Qt=1;break;case 2:xt>Math.abs(_t)?(Qt=Math.abs(_t)/xt,xt=Math.abs(_t)):Qt=1;break;case 1:ft>Math.abs(Ft)?(Qt=Math.abs(Ft)/ft,ft=Math.abs(Ft)):Qt=1;break;default:case 4:ut>Math.abs(_t)?(Qt=Math.abs(_t)/ut,ut=Math.abs(_t)):Qt=1}Zt=0}var ze=te.Zo;if(b===Gv){switch(te=te.link.computeThickness(),te*=Qt,ze.set(ye),Lt){case 8:ze.x=ye.x+Ft/2+vt/2-Zt-te/2;break;case 2:ze.y=ye.y+_t/2+xt/2-Zt-te/2;break;case 1:ze.x=ye.x+Ft/2-ft/2+Zt+te/2;break;default:case 4:ze.y=ye.y+_t/2-ut/2+Zt+te/2}Zt+=te}else{var ri=.5;b===Km&&(ri=(te.Uo+1)/(te.Gl+1)),ze.x=ye.x+Ft*ri,ze.y=ye.y+_t*ri}}}for(Bt.free(rt),Bt.free(ot),Bt.free(tt),Bt.free(st),ye=a.pe,z=0;z<ye.length;z++)b=ye[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,de.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}jc.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},jc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Gi,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},jc.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Bt,this.Gl=this.Uo=0,this.Zo=new Bt,this.Ju=0}ty.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()},ty.className="LinkInfo";function qo(a){_i(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Bt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}qo.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},qo.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},qo.prototype.qb=function(){},qo.prototype.toString=function(){var a=wi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},qo.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())}}},qo.prototype.createNetwork=function(){return new Io(this)},qo.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof je?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Mr?y.lg(a.memberParts):y.lg(a.iterator),y},qo.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")}},qo.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()}},qo.prototype.doLayout=function(a){var y=new Ln;a instanceof je?(dd(this,y,a.nodes,!0,this.rh,!0,!1,!0),dd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Mr?dd(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},qo.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var rt=a.value;cp(rt);var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(b,E),rt instanceof Mr&&(rt.rh=!1),b+=Math.max(st,50)+20,tt=Math.max(tt,Math.max(ot,50)),z>=y-1?(z=0,b=x,E+=tt+20,tt=0):z++}},qo.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,b=this.arrangementOrigin.y,E=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof Zn)&&(cp(rt),this.rh(rt))){var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(x,b),rt instanceof Mr&&(rt.rh=!1),x+=Math.max(st,50)+20,z=Math.max(z,Math.max(ot,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},qo.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Mr&&a.rh)};function dd(a,y,x,b,E,z,tt,rt){for(x=x.iterator;x.next();){var ot=x.value;b&&!ot.isTopLevel||E!==null&&!E(ot)||!ot.canLayout()||(z&&ot instanceof di?ot.isLinkLabel||(ot instanceof Mr&&ot.layout===null?dd(a,y,ot.memberParts,!1,E,z,tt,rt):(cp(ot),y.add(ot))):tt&&ot instanceof Zn?y.add(ot):!rt||!ot.Zc()||ot instanceof di||(cp(ot),y.add(ot)))}}function cp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}qo.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new de),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},qo.prototype.ex=function(a){var y=new Ln;return a instanceof je?(dd(this,y,a.nodes,!0,null,!0,!0,!0),dd(this,y,a.links,!0,null,!0,!0,!0),dd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Mr?dd(this,y,a.memberParts,!1,null,!0,!0,!0):dd(this,y,a.iterator,!1,null,!0,!0,!0),y},qo.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(hr),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},be.Object.defineProperties(qo.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())}}}),qo.prototype.collectParts=qo.prototype.ex,qo.prototype.getLayoutBounds=qo.prototype.ni,qo.prototype.invalidateLayout=qo.prototype.C,qo.className="Layout";function Io(a){_i(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new Ge,this.zs=new Ge}Io.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 Ln,this.ye=new Ln,this.Es=new Ge,this.zs=new Ge},Io.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},Io.prototype.createVertex=function(){return new Fa(this)},Io.prototype.createEdge=function(){return new tl(this)},Io.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(tt){if(tt instanceof di)return!tt.isLinkLabel;if(tt instanceof Zn){var rt=tt.fromNode;return rt===null||rt.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof di&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Mr&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Zn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},Io.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},Pt=Io.prototype,Pt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Pt.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},Pt.Iu=function(a){if(a!==null&&lS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function lS(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}Pt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Pt.ki=function(a){return a===null?null:this.Es.I(a)},Pt.Bo=function(a){if(a!==null){ey(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ey(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}}Pt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},Pt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ny(this,a)}};function ny(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Pt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Pt.Lo=function(a){return a===null?null:this.zs.I(a)},Pt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},Pt.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))}},Pt.Ko=function(){for(var a=Di(),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]);$n(a)},Io.prototype.deleteArtificialVertexes=function(){for(var a=Di(),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=Di(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);$n(a),$n(y)};function Fx(a){for(var y=Di(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);$n(y)}Io.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Fx(this),this.Ko()),a=new pn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){lS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ny(a,E),ey(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}Io.prototype.dz=function(){for(var a=new Ln,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},be.Object.defineProperties(Io.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}}}),Io.prototype.findAllParts=Io.prototype.dz,Io.prototype.splitIntoSubNetworks=Io.prototype.Zx,Io.prototype.deleteSelfEdges=Io.prototype.Ko,Io.prototype.reverseEdge=Io.prototype.gm,Io.prototype.linkVertexes=Io.prototype.Zj,Io.prototype.findEdge=Io.prototype.Lo,Io.prototype.deleteLink=Io.prototype.Yy,Io.prototype.deleteEdge=Io.prototype.Mj,Io.prototype.addLink=Io.prototype.Dy,Io.prototype.addEdge=Io.prototype.Bo,Io.prototype.findVertex=Io.prototype.ki,Io.prototype.deleteNode=Io.prototype.Zy,Io.prototype.deleteVertex=Io.prototype.Iu,Io.prototype.addNode=Io.prototype.Bl,Io.prototype.addVertex=Io.prototype.dh,Io.prototype.addParts=Io.prototype.lg,Io.className="LayoutNetwork";function Fa(a){_i(this),this.ob=a,this.j=new de(0,0,10,10).freeze(),this.o=new Bt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new pn,this.mg=new pn}Fa.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new pn,this.mg=new pn},Fa.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Cr(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},Fa.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;ln(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 Mr)){x=de.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(ji);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),de.free(x);return}de.free(x)}a.moveTo(y.x,y.y)}},Fa.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Fa.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Fa.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Fa.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ry(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}be.Object.defineProperties(Fa.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,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,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=de.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),de.free(x),!(a instanceof Mr)&&(a=a.locationObject.ga(ji),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/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 Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ln,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ln,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 pn,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}}}),Fa.prototype.deleteDestinationEdge=Fa.prototype.Jl,Fa.prototype.addDestinationEdge=Fa.prototype.zl,Fa.prototype.deleteSourceEdge=Fa.prototype.Kl,Fa.prototype.addSourceEdge=Fa.prototype.Cl,Fa.className="LayoutVertex",Fa.standardComparer=ry,Fa.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 b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}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 tl(a){_i(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}tl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},tl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Cr(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},tl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},tl.prototype.commit=function(){},tl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},be.Object.defineProperties(tl.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)}}}),tl.prototype.getOtherVertex=tl.prototype.Ax,tl.className="LayoutEdge";function Ya(a){qo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ut(NaN,NaN).freeze(),this.tf=new Ut(10,10).freeze(),this.Jb=fp,this.Rb=o0,this.nd=gp,this.hd=uS,a&&Object.assign(this,a)}Me(Ya,qo),Ya.prototype.cloneProtected=function(a){qo.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},Ya.prototype.qb=function(a){a.classType===Ya?a===gp||a===s0||a===oy||a===a0?this.sorting=a:a===o0||a===au?this.arrangement=a:a===fp||a===r0?this.alignment=a:qt("Unknown enum value: "+a):qo.prototype.qb.call(this,a)},Ya.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 b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Mr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case a0:E.reverse();break;case gp:E.sort(this.comparer);break;case s0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case r0:var rt=y,ot=x,st=de.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<E.length;ft++){var vt=this.ni(E[ft],st);ut=Math.max(ut,vt.width)}if(ut=Math.max(ut+rt,1),ft=Math.max(this.cellSize.height,1),!isFinite(ft))for(vt=ft=0;vt<E.length;vt++){var xt=this.ni(E[vt],st);ft=Math.max(ft,xt.height)}ft=Math.max(ft+ot,1),vt=this.arrangement;for(var Lt=xt=this.arrangementOrigin.x,Ft=this.arrangementOrigin.y,Xt=0,Zt=0,Qt=0;Qt<E.length;Qt++){var _t=E[Qt],te=this.ni(_t,st),ye=Math.ceil((te.width+rt)/ut)*ut,ze=Math.ceil((te.height+ot)/ft)*ft;switch(vt){case au:var ri=Math.abs(Lt-te.width);break;default:ri=Lt+te.width}switch((0<z&&Xt>z-1||0<tt&&0<Xt&&ri-xt>tt)&&(b.push(new de(0,Ft,tt+rt,Zt)),Xt=0,Lt=xt,Ft+=Zt,Zt=0),Zt=Math.max(Zt,ze),vt){case au:te=-te.width;break;default:te=0}switch(_t.moveTo(Lt+te,Ft),vt){case au:Lt-=ye;break;default:Lt+=ye}Xt++}b.push(new de(0,Ft,tt+rt,Zt)),de.free(st);break;case fp:for(ot=tt,ut=z,ft=y,vt=x,tt=de.alloc(),xt=Math.max(this.cellSize.width,1),z=Ft=st=0,rt=Bt.alloc(),Lt=0;Lt<E.length;Lt++)Zt=E[Lt],Xt=this.ni(Zt,tt),Zt=Eh(Zt,Zt.locationObject,Zt.locationSpot,rt),st=Math.max(st,Zt.x),Ft=Math.max(Ft,Xt.width-Zt.x),z=Math.max(z,Zt.y);switch(Lt=this.arrangement,Lt){case au:st+=ft;break;default:Ft+=ft}xt=isFinite(xt)?Math.max(xt+ft,1):Math.max(st+Ft,1);var Ti=Zt=this.arrangementOrigin.x;for(Qt=this.arrangementOrigin.y,Ft=0,ot>=st&&(ot-=st),st=_t=0,ye=Math.max(this.cellSize.height,1),te=z=0,ze=!0,Xt=Bt.alloc(),ri=0;ri<E.length;ri++){var Ci=E[ri],jn=this.ni(Ci,tt),xn=Eh(Ci,Ci.locationObject,Ci.locationSpot,rt);if(0<Ft)switch(Lt){case au:Ti=(Ti-Zt-(jn.width-xn.x))/xt,Ti=me.$(Math.round(Ti),Ti)?Math.round(Ti):Math.floor(Ti),Ti=Ti*xt+Zt;break;default:Ti=(Ti-Zt+xn.x)/xt,Ti=me.$(Math.round(Ti),Ti)?Math.round(Ti):Math.ceil(Ti),Ti=Ti*xt+Zt}else switch(Lt){case au:_t=Ti+xn.x+jn.width;break;default:_t=Ti-xn.x}switch(Lt){case au:var Lr=-(Ti+xn.x)+_t;break;default:Lr=Ti+jn.width-xn.x-_t}if(0<ut&&Ft>ut-1||0<ot&&0<Ft&&Lr>ot){for(b.push(new de(0,ze?Qt-z:Qt,ot+ft,te+z+vt)),Ti=0;Ti<Ft&&ri!==Ft;Ti++){Lr=E[ri-Ft+Ti];var Sr=Eh(Lr,Lr.locationObject,Lr.locationSpot,Xt);Lr.moveTo(Lr.position.x,Lr.position.y+z-Sr.y)}te+=vt,Qt=ze?Qt+te:Qt+(te+z),Ft=te=z=0,Ti=Zt,ze=!1}switch(Ti===Zt&&(st=Lt===au?Math.max(st,jn.width-xn.x):Math.min(st,-xn.x)),z=Math.max(z,xn.y),te=Math.max(te,jn.height-xn.y),isFinite(ye)&&(te=Math.max(te,Math.max(jn.height,ye)-xn.y)),ze?Ci.moveTo(Ti-xn.x,Qt-xn.y):Ci.moveTo(Ti-xn.x,Qt),Lt){case au:Ti-=xn.x+ft;break;default:Ti+=jn.width-xn.x+ft}Ft++}if(b.push(new de(0,Qt,ot+ft,(ze?te:te+z)+vt)),E.length!==Ft)for(ot=0;ot<Ft;ot++)ut=E[E.length-Ft+ot],ft=Eh(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Bt.free(rt),Bt.free(Xt),Lt===au)for(E=0;E<b.length;E++)z=b[E],z.width+=st,z.x-=st;else for(E=0;E<b.length;E++)z=b[E],z.x>st&&(z.width+=z.x-st,z.x=st);de.free(tt)}for(rt=z=tt=E=0;rt<b.length;rt++)ot=b[rt],E=Math.min(E,ot.x),tt=Math.min(tt,ot.y),z=Math.max(z,ot.x+ot.width);this.arrangement===au?this.commitLayers(b,new Bt(E+y/2-(z+E),tt-x/2)):this.commitLayers(b,new Bt(E-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Ya.prototype.commitLayers=function(){};function uS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}be.Object.defineProperties(Ya.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!==fp&&a!==r0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==o0&&a!==au||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==a0&&a!==gp&&a!==s0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var r0=new rn(Ya,"Position",0),fp=new rn(Ya,"Location",1),o0=new rn(Ya,"LeftToRight",2),au=new rn(Ya,"RightToLeft",3),oy=new rn(Ya,"Forward",4),a0=new rn(Ya,"Reverse",5),gp=new rn(Ya,"Ascending",6),s0=new rn(Ya,"Descending",7);Ya.className="GridLayout",Ya.standardComparer=uS,Ya.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 b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Ya.Position=r0,Ya.Location=fp,Ya.LeftToRight=o0,Ya.RightToLeft=au,Ya.Forward=oy,Ya.Reverse=a0,Ya.Ascending=gp,Ya.Descending=s0;function So(){this.On=new Ln,this.Dn=new Ln,this.Pa=new Ln,this.cf=new Ge,this.bf=new Ge,this.aj=new Ge,this.H=null,this.tp=!1}Pt=So.prototype,Pt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Pt.Xe=function(a){this.H=a},Pt.oi=function(a){if(a instanceof di){if(this.On.add(a),a instanceof Mr){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 Zn?this.Dn.add(a):a instanceof oo||this.Pa.add(a);y=a.data,y===null||a instanceof oo||(a instanceof Zn?this.bf.add(y,a):this.cf.add(y,a))},Pt.pc=function(a){if(a.Ej(),a instanceof di){if(this.On.remove(a),a instanceof Mr){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 Zn?this.Dn.remove(a):a instanceof oo||this.Pa.remove(a);y=a.data,y===null||a instanceof oo||(a instanceof Zn?this.bf.remove(y):this.cf.remove(y))},Pt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof Mr)&&qt('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Mr||qt('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Zn||qt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Di(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=Di(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=Di(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);$n(y),$n(x),$n(a)}},So.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},So.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&hS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&vf(this.diagram,!1)};function hS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(Rl(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}So.prototype.insertLink=function(){return null},So.prototype.resolveReferencesForData=function(){},So.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(gS||(gS=!0,Ai('No Group template found for category "'+x+'"'),Ai(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(fS||(fS=!0,Ai('No Node template found for category "'+x+'"'),Ai(" Using default node template")),y=a.ny))),y}So.prototype.getLinkCategoryForData=function(){return""},So.prototype.setLinkCategoryForData=function(){},So.prototype.setFromNodeForLink=function(){},So.prototype.setToNodeForLink=function(){},So.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(pS||(pS=!0,Ai('No Link template found for category "'+a+'"'),Ai(" Using default link template")),x=y.my)),x},So.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},So.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},So.prototype.ip=function(a){a=this.Lc(a),a!==null&&(kg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},So.prototype.unresolveReferencesForPart=function(){},So.prototype.removeDataForLink=function(){},So.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},So.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof di?a:null)},So.prototype.findLinkForKey=function(){return null},Pt=So.prototype,Pt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Pt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof di?a:null)},Pt.Kc=function(a){return a===null?null:this.bf.I(a)},Pt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(ln(tt)&&ay(this,E,tt)){y.add(b);break}}}return y.iterator},Pt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(ln(tt)&&ay(this,E,tt)){y.add(b);break}}}return y.iterator};function ay(a,y,x){for(var b in x){var E=y[b],z=x[b];if(yn(z)){if(!yn(E)||E.length<z.length)return!1;for(var tt=0;tt<E.length;tt++){var rt=z[tt];if(rt!==void 0&&!cS(a,E[tt],rt))return!1}}else if(!cS(a,E,z))return!1}return!0}function cS(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(ln(y)&&ln(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}So.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 b=a.modelChange;if(b!=="")if(x===To){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Uo){var tt=a.newValue;b==="nodeDataArray"&&ln(tt)&&hS(this,tt),y.isModified=!0}else if(x===ua){var rt=a.oldValue;b==="nodeDataArray"&&ln(rt)&&this.ip(rt),y.isModified=!0}else x===La&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===To){var ot=a.propertyName,st=a.object;st===y.model?(ot==="nodeKeyProperty"||ot==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(st,ot),y.isModified=!0}else if(x===Uo||x===ua){var ut=a.change===Uo,ft=ut?a.newParam:a.oldParam,vt=ut?a.newValue:a.oldValue,xt=this.aj.I(a.object);if(Array.isArray(xt))for(a=0;a<xt.length;a++){var Lt=xt[a];if(ut)Mm(Lt,vt,ft,!0);else if(!(0>ft)){var Ft=ft+Jg(Lt);Lt.pc(Ft,!0),xv(Lt,Ft,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},So.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)},So.prototype.rp=function(){for(var a=this.H.model,y=new Ln,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),E.forEach(function(tt){LS(a,tt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&CS(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()},So.prototype.refreshDataBoundLinks=function(){},So.prototype.updateRelationshipsFromData=function(){},So.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 b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var tt=E[z].sx(a);tt!==null&&(x===null&&(x=Di()),x.push(tt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);$n(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(yn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function ly(a,y,x){Jd(y,function(tt){tt=tt.O.s;for(var rt=tt.length,ot=0;ot<rt;ot++)Dg(x,tt[ot])});var b=y.Hh;if(yn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}So.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Ge;if(yn(a))for(var E=0;E<a.length;E++)l0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)l0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Ln;for(var z=new Ge,tt=b.iterator;tt.next();){var rt=tt.value;if(rt instanceof Zn)a||rt.fromNode!==null&&rt.toNode!==null||E.add(rt);else if(rt instanceof di&&rt.data!==null&&x.Tl()){var ot=rt;rt=tt.key;var st=rt.pg();st!==null&&(st=b.I(st),st!==null?(x.qe(ot.data,x.wa(st.data)),ot=y.Kc(ot.data),rt=rt.kh(),rt!==null&&ot!==null&&z.add(rt,ot)):x.qe(ot.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new Ge;b.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function l0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof $i))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof di){for(var tt=y.linksConnected;tt.next();){var rt=tt.value;if(rt.fromNode===y){var ot=b.I(rt);ot!==null&&(ot.fromNode=z)}rt.toNode===y&&(rt=b.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof Mr&&z instanceof Mr)for(y=y.memberParts;y.next();)tt=l0(a,y.value,x,b,E),tt instanceof Zn||tt===null||(tt.containingGroup=z)}else if(y instanceof Zn&&z instanceof Zn)for(tt=y.fromNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=l0(a,y.value,x,b,E),tt!==null&&tt instanceof di&&(tt.labeledLink=z);return z}So.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Zn||(b=E.copyNodeData(b),ln(b)&&(E.xf(b),x=y.Lc(b)))}else Rl(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Zn||(E=y.copyNodeData(b)),ln(E)&&(x.data=E)));return x},be.Object.defineProperties(So.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}}}),So.prototype.updateAllRelationshipsFromData=So.prototype.rp,So.prototype.findLinksByExample=So.prototype.ls,So.prototype.findNodesByExample=So.prototype.ms,So.prototype.findLinkForData=So.prototype.Kc,So.prototype.findNodeForData=So.prototype.ii,So.prototype.findPartForData=So.prototype.Lc,So.prototype.findNodeForKey=So.prototype.Vb,So.prototype.removeModeledPart=So.prototype.ip,So.prototype.removeModeledParts=So.prototype.Gs,So.prototype.rebuildParts=So.prototype.Wd;var fS=!1,gS=!1,pS=!1;So.className="PartManager";function za(a){So.apply(this,arguments)}Me(za,So),za.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),mS(this,a.linkDataArray)},za.prototype.addModeledParts=function(a){for(So.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)zf(a.value);vf(this.diagram,!1)};function mS(a,y){y.forEach(function(x){vS(a,x)}),vf(a.diagram,!1)}function vS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Rl(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=c0(x,y,!0);z!==""&&(E.fromPortId=z),z=dl(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof di&&(E.fromNode=z)),z=c0(x,y,!1),z!==""&&(E.toPortId=z),z=dl(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof di&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}za.prototype.removeAllModeledParts=function(){var a=this.diagram.model;yS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function yS(a,y){y.forEach(function(x){a.ip(x)})}za.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},za.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},za.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},za.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},za.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},za.prototype.findPartForKey=function(a){var y=So.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},za.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},za.prototype.doModelChanged=function(a){var y=this;if(So.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===To){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(E==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var ot=this.Vb(a.newValue);rt.toNode=ot}}else if(E==="linkFromPortId"){var st=this.Kc(a.object);if(st!==null){var ut=a.newValue;typeof ut=="string"&&(st.fromPortId=ut)}}else if(E==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var vt=a.newValue;typeof vt=="string"&&(ft.toPortId=vt)}}else if(E==="nodeGroupKey"){var xt=this.Lc(a.object);if(xt!==null){var Lt=a.newValue;if(Lt!==void 0){var Ft=this.Vb(Lt);Ft instanceof Mr?xt.containingGroup=Ft:xt.containingGroup=null}else xt.containingGroup=null}}else if(E==="linkLabelKeys"){var Xt=this.Kc(a.object);if(Xt!==null){var Zt=a.oldValue,Qt=a.newValue;Array.isArray(Zt)&&Zt.forEach(function(xn){0<=Qt.indexOf(xn)||(xn=y.Vb(xn),xn!==null&&(xn.labeledLink=null))}),Array.isArray(Qt)&&Qt.forEach(function(xn){xn=y.Vb(xn),xn!==null&&(xn.labeledLink=Xt)})}}else if(E==="linkCategory"){var _t=this.Kc(a.object),te=a.newValue;_t!==null&&typeof te=="string"&&(_t.category=te)}else E==="linkDataArray"&&(yS(this,a.oldValue),mS(this,a.newValue));x.isModified=!0}else if(b===Uo){var ye=a.newValue;if(E==="linkDataArray"&&typeof ye=="object"&&ye!==null)vS(this,ye);else if(E==="linkLabelKeys"&&fd(ye)){var ze=this.Kc(a.object),ri=this.Vb(ye);ze!==null&&ri!==null&&(ri.labeledLink=ze)}x.isModified=!0}else if(b===ua){var Ti=a.oldValue;if(E==="linkDataArray"&&typeof Ti=="object"&&Ti!==null)this.ip(Ti);else if(E==="linkLabelKeys"&&fd(Ti)){var Ci=this.Vb(Ti);Ci!==null&&(Ci.labeledLink=null)}x.isModified=!0}}else if(b===To){var jn=a.propertyName;a.object!==x.model||jn!=="linkFromKeyProperty"&&jn!=="linkToKeyProperty"&&jn!=="linkFromPortIdProperty"&&jn!=="linkToPortIdProperty"&&jn!=="linkLabelKeysProperty"&&jn!=="nodeIsGroupProperty"&&jn!=="nodeGroupKeyProperty"&&jn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},za.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ln,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){FS(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&ES(y,z,!1)})},za.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Zn){var E=dl(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=dl(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Ln().addAll(y);var tt=new Ln;a.labelNodes.each(function(rt){rt.data!==null&&(rt=b.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(E),E=E.copy(),E.hp(tt),(0<y.count||0<E.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),E.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof oo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Mr)&&(a.containingGroup=y)}}},za.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=pp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var tt=b.value;y.lb(tt)?E instanceof Mr&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=E)):(z.link=this.Kc(tt),z.link!==null&&E instanceof di&&(dl(y,tt,!0)===x&&(z.link.fromNode=E),dl(y,tt,!1)===x&&(z.link.toNode=E),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(rt){return function(ot){return ot===x?(E.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}lu(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Mr&&(E.containingGroup=a))}},za.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof di){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)su(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&su(y,x,b.data)),a instanceof Mr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&su(y,x,b)}}},za.prototype.copyPartData=function(a,y){var x=So.prototype.copyPartData.call(this,a,y);if(a instanceof Zn)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.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},za.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,tt=E.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=tt.archetypeLinkData,b instanceof Zn){if(Rl(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,E.add(z),a=tt.archetypeLabelNodeData,a instanceof di&&(Rl(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Vf(z,b,z.wa(a.data),!0),Kf(z,b,rt,!0),x!==null&&Vf(z,b,z.wa(x.data),!1),Kf(z,b,y,!1),z.fi(b),a=tt.archetypeLabelNodeData,a===null||a instanceof di||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},za.prototype.findLinkForKey=za.prototype.findLinkForKey,za.prototype.findPartForKey=za.prototype.findPartForKey,za.prototype.removeAllModeledParts=za.prototype.removeAllModeledParts,za.prototype.addModeledParts=za.prototype.addModeledParts,za.prototype.addAllModeledParts=za.prototype.addAllModeledParts,za.className="GraphLinksPartManager";function bl(){So.apply(this,arguments),this.Sg=null}Me(bl,So);function u0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Lo(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Rl(b),b=b.copy(),b!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}bl.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},bl.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},bl.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},bl.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},bl.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},bl.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},bl.prototype.doModelChanged=function(a){if(So.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 b=a.modelChange;if(b!==""){if(x===To){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),tt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(tt!==null){var rt=tt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:u0(this,z,tt)}}else if(b==="parentLinkCategory"){var ot=this.ii(a.object),st=a.newValue;if(ot!==null&&typeof st=="string"){var ut=ot.kh();ut!==null&&(ut.category=st)}}y.isModified=!0}}else if(x===To){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},bl.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof di&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:u0(this,y,a):b!==null&&kg(x,b,!1)))}}},bl.prototype.updateDataBindings=function(a,y){So.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},bl.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=pp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof di&&y.mh(z)===x&&u0(this,E,this.ii(z))}lu(y,x)}a=y.mh(a),a!==void 0&&E instanceof di&&(a=this.Vb(a),u0(this,a,E))}},bl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof di){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(ua,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&su(y,x,E)}},bl.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},bl.prototype.findLinkForKey=bl.prototype.findLinkForKey,bl.className="TreePartManager";function Wi(a,y){this.kl=new Ln,this.il=new Ln,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,_i(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ge,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 Ge,this.Lt=new pn,this.Wg=!1,this.o=null,this.undoManager=new Ko,a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Wi.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},Wi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Wi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Wi.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,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+dr(E)}}return y},Wi.prototype.xA=function(a){a.change!==La&&qt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof ga?(xS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Wi.prototype.Qv=function(a,y){var x=this,b=!1,E=new Ln,z=new Ln,tt=new Ln,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===Uo?E.add(ft.newValue):ft.change===ua&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==To||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(rt&&rt.contains(ft.object)?rt.get(ft.object).each(function(vt){x.lb(vt)&&z.add(vt)}):ft.object instanceof Wi||x.ri()&&x.Jc(ft.object)||PS(x,ft.object).each(function(vt){z.add(vt)})):b=!0)});var ot=this.il;ot.clear(),E.each(function(ft){ot.add(x.wa(ft)),y||z.add(ft)});var st=this.kl;st.clear(),tt.each(function(ft){st.add(x.wa(ft)),y&&z.add(ft)}),a=x.cloneDeep(z.Fa());var ut=null;return b&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<ot.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=ot.Fa():ut.insertedNodeKeys=ot.Fa()),0<a.length&&(ut===null&&(ut={}),ut.modifiedNodeData=a),0<st.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=st.Fa():ut.removedNodeKeys=st.Fa()),st.clear(),ot.clear(),ut},Wi.prototype.cloneDeep=function(a){return Gf(this,a,!0)};function Gf(a,y,x,b,E,z){function tt(ft,vt){rt?(ft.__gohashid===void 0&&z.push(ft),b.set(ft,vt)):(ft=Po++,b.set(ft,vt),E.set(ft,y))}if(!ln(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(b||(b=new Ge),rt){var ot=b.get(y);if(ot)return ot}else for(E||(E=new Ge),ot=E.iterator;ot.next();){var st=ot.key;if(ot.value===y&&(st=b.get(st)))return st}if(Array.isArray(y)){ot=[],tt(y,ot);for(var ut=0;ut<y.length;ut++)ot.push(Gf(a,y[ut],!1,b,E,z))}else if(y instanceof Bt||y instanceof Ut||y instanceof de||y instanceof Si||y instanceof dn)ot=y.copy(),tt(y,ot);else{if(y instanceof yo||y instanceof kn||y instanceof rn)return y;if(y instanceof pn)ot=new pn().addAll(Gf(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof Ln)ot=new Ln().addAll(Gf(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof Ge)ot=new Ge().addAll(Gf(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof Date)ot=new Date(y.getTime()),tt(y,ot);else if(y instanceof RegExp)ot=new RegExp(y),tt(y,ot),ot.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ot=y.copy(),tt(y,ot);else for(ut in ot={},tt(y,ot),y)ut!=="__gohashid"&&(ot[ut]=Gf(a,y[ut],!1,b,E,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),ot}Pt=Wi.prototype,Pt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Pt.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},Pt.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 SS(a,y){y=y.modelData,ln(y)&&(a.dm(y),a.modelData=y)}Pt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!wS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+uy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+cd(this,this.nodeDataArray,!0)},Pt.kv=function(a){SS(this,a),a=a.nodeDataArray,yn(a)&&(this.dm(a),this.nodeDataArray=a)};function xS(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var tt=b.get(E);tt===null?(tt=new Ln,tt.add(z),b.add(E,tt)):tt.add(z)}}var b=a.vh;b===null&&(b=new Ge,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===To?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Uo||z===ua)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function PS(a,y){for(var x=new Ln,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];h0(a,y,E,E,x)}return x}function h0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return E.add(b),!0;if(h0(a,y,tt,b,E))return!0}else if(ln(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return E.add(b),!0;if(h0(a,y,tt,b,E))return!0}return!1}Pt.Pv=function(a,y){var x=this,b=!1,E=new Ln,z=new Ln,tt=new Ln,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===Uo?E.add(ut.newValue):ut.change===ua&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==To||x.modelData!==ut.object&&ut.propertyName!=="modelData"?ut.object!==null&&(rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){x.lb(ft)&&z.add(ft)}):ut.object instanceof Wi||x.ri()&&x.Jc(ut.object)||PS(x,ut.object).each(function(ft){z.add(ft)})):b=!0)});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(x.wa(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(x.wa(ut)),y&&z.add(ut)}),a="",b&&(a+=`,
|
|
"modelData": `+uy(this,this.modelData)),0<ot.count&&(a+=(y?this.Yv:this.Wv)+cd(this,ot.Fa(),!0)),0<z.count&&(a+=this.jy+cd(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Wv:this.Yv)+cd(this,st.Fa(),!0)),st.clear(),ot.clear(),a},Pt.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)&&qt("applyIncrementalJson cannot change Model properties"),SS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Ge;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],tt=this.wa(z);tt!=null&&b.set(tt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){tt=y[z];var rt=this.hc(tt);rt===null&&(rt=(rt=b.get(tt))?rt:this.copyNodeData({}),this.km(rt,tt),this.xf(rt))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var ot in E)ot==="__gohashid"||ot===this.nodeKeyProperty||this.Wj()&&ot===this.nodeIsGroupProperty||this.setDataProperty(z,ot,E[ot]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ot=0;ot<x;ot++)y=this.hc(a[ot]),y!==null&&this.cm(y)},Pt.$x=function(a,y){a.change!==La&&qt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof ga?(y===void 0&&(y=mp(this,this)),xS(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 }'},Pt.yA=function(a,y){return this.$x(a,y)},Pt.np=function(a){return a===void 0&&(a=mp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Pt.toJSON=function(a){return this.np(a)},Pt.Zw=function(a){var y=null;if(typeof a=="string")try{y=gn.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:qt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&qt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Pt.Ky=function(a){return this.Zw(a)},Wi.constructGraphLinksModel=function(){return new Wi},Pt=Wi.prototype,Pt.dm=function(a){if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(ln(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:qt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(ln(a)){for(y in a)if(x=a[y],ln(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new pn,b=0;b<x.length/2;b++)E.add(new Bt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nx(a)}return a},Pt.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()):yn(a)?cd(this,a):ln(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function cd(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Ki;E.add("["),x&&1<b&&E.add(`
|
|
`);for(var z=0;z<b;z++){var tt=y[z];tt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
`)),E.add(a.sm(tt)))}return x&&1<b&&E.add(`
|
|
`),E.add("]"),E.toString()}function wS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function As(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Bt)y={class:"go.Point",x:As(x.x),y:As(x.y)};else if(x instanceof Ut)y={class:"go.Size",width:As(x.width),height:As(x.height)};else if(x instanceof de)y={class:"go.Rect",x:As(x.x),y:As(x.y),width:As(x.width),height:As(x.height)};else if(x instanceof Si)y={class:"go.Margin",top:As(x.top),right:As(x.right),bottom:As(x.bottom),left:As(x.left)};else if(x instanceof dn)x.sb()?y={class:"go.Spot",x:As(x.x),y:As(x.y),offsetX:As(x.offsetX),offsetY:As(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof yo){if(y={class:"go.Brush",type:x.type.name},x.type===Mh?y.color=x.color:(x.type===ih||x.type===Cl)&&(y.start=x.start,y.end=x.end,x.type===Cl&&(x.startRadius!==0&&(y.startRadius=As(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=As(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof kn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=As(x.startX)),x.startY!==0&&(y.startY=As(x.startY)),x.endX!==0&&(y.endX=As(x.endX)),x.endY!==0&&(y.endY=As(x.endY)),x.spot1.D(hr)||(y.spot1=x.spot1),x.spot2.D(Tr)||(y.spot2=x.spot2),x.type===kn.o&&(y.path=kn.ia(x))):x instanceof rn&&(y={class:"go.EnumValue",classType:mp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=ma(y,E);if(!wS(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof pn){var tt="[";for(z=z.iterator;z.next();){var rt=z.value;1<tt.length&&(tt+=","),tt+=a.sm(rt.x),tt+=",",tt+=a.sm(rt.y)}tt+="]",b+=tt}else b+=a.sm(z)}return b+"}"}function ks(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(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 Bt(ks(a.x),ks(a.y));else if(y==="Size")x=new Ut(ks(a.width),ks(a.height));else if(y==="Rect")x=new de(ks(a.x),ks(a.y),ks(a.width),ks(a.height));else if(y==="Margin")x=new Si(ks(a.top),ks(a.right),ks(a.bottom),ks(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Nr(a.enum):x=new dn(ks(a.x),ks(a.y),ks(a.offsetX),ks(a.offsetY));else if(y==="Brush"){if(x=new yo,x.type=gi(yo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof dn&&(x.start=a.start),a.end instanceof dn&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=ks(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=ks(a.endRadius)),a=a.colorStops,ln(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=kn.parse(a.path):x=new kn,x.type=gi(kn,a.type),typeof a.startX=="number"&&(x.startX=ks(a.startX)),typeof a.startY=="number"&&(x.startY=ks(a.startY)),typeof a.endX=="number"&&(x.endX=ks(a.endX)),typeof a.endY=="number"&&(x.endY=ks(a.endY)),a.spot1 instanceof dn&&(x.spot1=a.spot1),a.spot2 instanceof dn&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=gi(b,a.name)));return x}Pt.Pe=function(a){return this.Lt.add(a),this},Pt.ik=function(a){this.Lt.remove(a)},Pt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},Pt.cb=function(a,y,x,b,E,z,tt){ka(this,"",a,y,x,b,E,z,tt)},Pt.g=function(a,y,x,b,E){ka(this,"",To,a,this,y,x,b,E)},Pt.Fs=function(a,y,x,b,E,z){ka(this,"",To,y,a,x,b,E,z)};function ka(a,y,x,b,E,z,tt,rt,ot){rt===void 0&&(rt=null),ot===void 0&&(ot=null);var st=new zo;st.model=a,st.change=x,st.modelChange=y,st.propertyName=b,st.object=E,st.oldValue=z,st.oldParam=rt,st.newValue=tt,st.newParam=ot,a.ds(st)}Wi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===To){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Jo(x,b,E)}else a.change===Uo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,ln(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Ui(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&bi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=ma(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.newValue,y?Ui(b,x):bi(b,x,a))):qt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ua?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,ln(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&bi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Ui(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=ma(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.oldValue,y?bi(b,x,a):Ui(b,x))):qt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==La&&qt("unknown ChangedEvent: "+a.toString())},Wi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Wi.prototype.eb=function(a){return this.undoManager.eb(a)},Wi.prototype.Kf=function(){return this.undoManager.Kf()},Wi.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Pt=Wi.prototype,Pt.La=function(a,y){y===void 0&&(y=""),ka(this,"SourceChanged",La,y,a,null,null)},Pt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ma(a,y),y!==void 0)){if(fd(y))return y;qt("Key value for node data "+a+" is not a number or a string: "+y)}}},Pt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=ma(a,x);b!==y&&this.hc(y)===null&&(Jo(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),ka(this,"nodeKey",To,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Jo(a,x,y)}};function fd(a){return typeof a=="number"||typeof a=="string"}Pt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Pt.hc=function(a){return a===null&&qt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&fd(a)?this.kb.I(a):null},Pt.$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 b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Jo(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Jo(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Jo(a,y,x)}}}}},Pt.xf=function(a){a!==null&&(or(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&qt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,bi(a.Tc,b,y)),ka(a,"nodeDataArray",Uo,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Pt.Fy=function(a){if(yn(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)},Pt.cm=function(a){a!==null&&LS(this,a,!0)};function LS(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;Ui(a.Tc,b)}ka(a,"nodeDataArray",ua,"nodeDataArray",a,y,null,b,null),a.qp(y)}Pt.nA=function(a){if(yn(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)},Pt.$z=function(a){if(a!==this.nodeDataArray&&yn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.wa(z);if(tt!==void 0){x.add(tt);var rt=this.hc(tt);rt!==z&&(rt!==null?(this.Do(rt,z),this.lm(z,rt)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Pt.jp=function(a,y){y!==void 0&&(a=pp(this,a),a instanceof Ln&&this.Vf.add(y,a))},Pt.Lv=function(){},Pt.fm=function(){},Pt.em=function(){},Pt.qp=function(){};function su(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ln,a.Vf.add(y,b)),b.add(x)}}function lu(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Ln&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function pp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Ln?a:null)}Pt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Wi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):d0(this,a,!0),ln(a)&&_i(a),a};function d0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=d0(a,y[x],a.copiesArrayObjects);b.push(E)}return _i(b),b}if(x&&ln(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=ma(y,b),tt=mp(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof Wi||z instanceof Ko||z instanceof ga||z instanceof zo||(z=d0(a,z,!1)),Jo(x,b,z)}return _i(x),x}return y instanceof Bt||y instanceof Ut||y instanceof de||y instanceof dn||y instanceof Si?y.copy():y}Wi.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!bS&&a instanceof Pe&&(bS=!0,Ai('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Ai(" Is that really your intent?"));var b=ma(a,y);b!==x&&(Jo(a,y,x),this.Fs(a,y,b,x))},Pt=Wi.prototype,Pt.set=function(a,y,x){this.setDataProperty(a,y,x)},Pt.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},Pt.Ay=function(a,y){this.ts(a,-1,y)},Pt.ts=function(a,y,x){0>y&&(y=a.length),bi(a,y,x),ka(this,"",Uo,"",a,null,x,null,y)},Pt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&qt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Ui(a,y),ka(this,"",ua,"",a,x,null,y,null)},Pt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ma(a,y),y===void 0))return"";if(typeof y=="string")return y;qt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Pt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=ma(a,x);b===void 0&&(b=""),b!==y&&(Jo(a,x,y),ka(this,"nodeCategory",To,x,a,b,y))}else Jo(a,x,y)}},Pt.lm=function(a,y){this.jm(y,this.Ro(a))},Pt.Tl=function(){return!1},Pt.Wj=function(){return!1},Pt.ri=function(){return!1},Pt.xs=function(){return!1},Pt.Xj=function(){return!1};function hy(){return new Wi}function mp(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 mp(a,y.constructor);return typeof y}function dy(a){return ql[a]?ql[a]:gn.go!==void 0&&gn.go[a]?gn.go[a]:null}function ma(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(b){}return x}function Jo(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(b){}}be.Object.defineProperties(Wi.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===""&&qt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&qt("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,b=0;b<x;b++){var E=a[b];ln(E)||qt("Model.nodeDataArray must only contain Objects, not: "+E),or(E)}for(this.Tc=a,b=new pn,E=0;E<x;E++){var z=a[E],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?b.add(z):this.kb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(ka(this,"nodeDataArray",To,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);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"}}}),Wi.prototype.setCategoryForNodeData=Wi.prototype.jm,Wi.prototype.getCategoryForNodeData=Wi.prototype.Ro,Wi.prototype.removeArrayItem=Wi.prototype.ov,Wi.prototype.insertArrayItem=Wi.prototype.ts,Wi.prototype.addArrayItem=Wi.prototype.Ay,Wi.prototype.assignAllDataProperties=Wi.prototype.Do,Wi.prototype.set=Wi.prototype.set,Wi.prototype.clearUnresolvedReferences=Wi.prototype.Qy,Wi.prototype.mergeNodeDataArray=Wi.prototype.$z,Wi.prototype.removeNodeDataCollection=Wi.prototype.nA,Wi.prototype.removeNodeData=Wi.prototype.cm,Wi.prototype.addNodeDataCollection=Wi.prototype.Fy,Wi.prototype.addNodeData=Wi.prototype.xf,Wi.prototype.makeNodeDataKeyUnique=Wi.prototype.$u,Wi.prototype.findNodeDataForKey=Wi.prototype.hc,Wi.prototype.containsNodeData=Wi.prototype.lb,Wi.prototype.setKeyForNodeData=Wi.prototype.km,Wi.prototype.getKeyForNodeData=Wi.prototype.wa,Wi.prototype.updateTargetBindings=Wi.prototype.La,Wi.prototype.commit=Wi.prototype.commit,Wi.prototype.rollbackTransaction=Wi.prototype.Kf,Wi.prototype.commitTransaction=Wi.prototype.eb,Wi.prototype.startTransaction=Wi.prototype.Ea,Wi.prototype.raiseDataChanged=Wi.prototype.Fs,Wi.prototype.raiseChanged=Wi.prototype.g,Wi.prototype.raiseChangedEvent=Wi.prototype.cb,Wi.prototype.removeChangedListener=Wi.prototype.ik,Wi.prototype.addChangedListener=Wi.prototype.Pe,Wi.prototype.writeJsonValue=Wi.prototype.sm,Wi.prototype.replaceJsonObjects=Wi.prototype.dm,Wi.prototype.applyIncrementalJSON=Wi.prototype.Ky,Wi.prototype.applyIncrementalJson=Wi.prototype.Zw,Wi.prototype.toJSON=Wi.prototype.toJSON,Wi.prototype.toJson=Wi.prototype.np,Wi.prototype.toIncrementalJSON=Wi.prototype.yA,Wi.prototype.toIncrementalJson=Wi.prototype.$x,Wi.prototype.toIncrementalData=Wi.prototype.xA,Wi.prototype.clear=Wi.prototype.clear;var bS=!1,ql={};Wi.className="Model",Wi.fromJSON=Wi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=gn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:qt("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=gn[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Wi?y=a:qt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Wi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Wi.safePropertyValue=ma,Wi.safePropertySet=Jo,ql.Brush=yo,ql.ChangedEvent=zo,ql.Geometry=kn,ql.Margin=Si,ql.Panel=Tn,ql.Point=Bt,ql.Rect=de,ql.Size=Ut,ql.Spot=dn,ql.Transaction=ga,ql.UndoManager=Ko;function Sa(a,y,x,b){_i(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,b===void 0?(this.el=AS,this.wk=null):(this.el=vp,this.wk=b),this.st=new Ln}Sa.prototype.copy=function(){var a=new Sa;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},Pt=Sa.prototype,Pt.qb=function(a){a.classType===Sa&&(this.mode=a)},Pt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Pt.freeze=function(){return this._isFrozen=!0,this},Pt.ka=function(){return this._isFrozen=!1,this},Pt.Kx=function(a){return a===void 0&&(a=null),this.mode=vp,this.backConverter=a,this},Pt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Pt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function MS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Pt.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")Ai("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=ma(y,b)),z!==void 0)if(E===null)x!==""&&Jo(a,x,z);else try{if(x!==""){var tt=E(z,a);Jo(a,x,tt)}else E(z,a)}catch(rt){}}}},Pt.sp=function(a,y,x,b){if(this.el===vp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,tt=a;if(E!==""&&(tt=ma(a,E)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=b!==null?b.diagram:null,ot=rt!==null?rt.model:null;if(z===null){if(x!=="")ot!==null?ot.setDataProperty(y,x,tt):Jo(y,x,tt);else if(ot!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var st=b.itemIndex,ut=b.panel.itemArray;ot.ov(ut,st),ot.ts(ut,st,tt)}}else try{if(x!==""){var ft=z(tt,y,ot);ot!==null?ot.setDataProperty(y,x,ft):Jo(y,x,ft)}else{var vt=z(tt,y,ot);if(vt!==void 0&&ot!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var xt=b.itemIndex,Lt=b.panel.itemArray;ot.ov(Lt,xt),ot.ts(Lt,xt,vt)}}}catch(Ft){}}finally{this.st.remove(a)}}}},be.Object.defineProperties(Sa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&un(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&un(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&un(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&un(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&un(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&un(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&un(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&un(this),this.el=a}}}),Sa.prototype.updateSource=Sa.prototype.sp,Sa.prototype.updateTarget=Sa.prototype.Mv,Sa.prototype.ofModel=Sa.prototype.dA,Sa.prototype.ofObject=Sa.prototype.cp,Sa.prototype.makeTwoWay=Sa.prototype.Kx;var Tx="Binding",AS=new rn(Sa,"OneWay",1),vp=new rn(Sa,"TwoWay",2);Sa.className="Binding",Sa.parseEnum=function(a,y){return function(x){return x=gi(a,x),x===null?y:x}},Sa.toString=dr,Sa.OneWay=AS,Sa.TwoWay=vp;function qr(a,y,x){Wi.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ln,this.wb=new Ge,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&&(yn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Me(qr,Wi),qr.constructGraphLinksModel=Wi.constructGraphLinksModel,qr.prototype.cloneProtected=function(a){Wi.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},Pt=qr.prototype,Pt.clear=function(){Wi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Pt.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,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+dr(E)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+dl(this,E,!0)+"-->"+dl(this,E,!1)}return y},Pt.Qv=function(a,y){this.linkKeyProperty===""&&qt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Wi.prototype.Qv.call(this,a,y),b=this,E=new Ln,z=new Ln,tt=new Ln,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Uo?E.add(ut.newValue):ut.change===ua&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Wi||b.lb(ut.object)||kS(b,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(b.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(b.Ac(ut)),y&&z.add(ut)}),a=b.cloneDeep(z.Fa()),0<ot.count&&(x===null&&(x={}),y?x.removedLinkKeys=ot.Fa():x.insertedLinkKeys=ot.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<st.count&&(x===null&&(x={}),y?x.insertedLinkKeys=st.Fa():x.removedLinkKeys=st.Fa()),st.clear(),ot.clear(),x},Pt.rm=function(){var a=Wi.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},Pt.gp=function(a){Wi.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)},Pt.Rv=function(){var a=Wi.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+cd(this,this.linkDataArray,!0);return a+y},Pt.kv=function(a){Wi.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kS(a,y){for(var x=new Ln,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];h0(a,y,E,E,x)}return x}Pt.Pv=function(a,y){this.linkKeyProperty===""&&qt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Wi.prototype.Pv.call(this,a,y),b=this,E=new Ln,z=new Ln,tt=new Ln,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Uo?E.add(ut.newValue):ut.change===ua&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Wi||b.lb(ut.object)||kS(b,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(b.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(b.Ac(ut)),y&&z.add(ut)}),a=x,0<ot.count&&(a+=(y?this.Xv:this.Vv)+cd(this,ot.Fa(),!0)),0<z.count&&(a+=this.iy+cd(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Vv:this.Xv)+cd(this,st.Fa(),!0)),st.clear(),ot.clear(),a},Pt.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)&&qt("applyIncrementalJson cannot change Model properties"),Wi.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var tt in E)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,E[tt]);NS(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},qr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===To){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Jo(x,b,E);return}}else if(a.change===Uo){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,ln(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===ua){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,ln(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Wi.prototype.changeState.call(this,a,y)}},Pt=qr.prototype,Pt.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),Jo(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Pt.yx=function(a){return dl(this,a,!0)},Pt.wv=function(a,y){Vf(this,a,y,!0)},Pt.Bx=function(a){return dl(this,a,!1)},Pt.Bv=function(a,y){Vf(this,a,y,!1)};function dl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ma(y,a),a!==void 0))){if(fd(a))return a;qt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Vf(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=ma(y,E);z!==x&&(lu(a,z,y),Jo(y,E,x),a.hc(x)===null&&su(a,x,y),ka(a,b?"linkFromKey":"linkToKey",To,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Jo(y,E,x)}}Pt.zx=function(a){return c0(this,a,!0)},Pt.xv=function(a,y){Kf(this,a,y,!0)},Pt.Cx=function(a){return c0(this,a,!1)},Pt.Cv=function(a,y){Kf(this,a,y,!1)};function c0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ma(y,a),y===void 0?"":y)}function Kf(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=ma(y,E);z===void 0&&(z=""),z!==x&&(Jo(y,E,x),ka(a,b?"linkFromPortId":"linkToPortId",To,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Jo(y,E,x)}}Pt.Ef=function(a){if(a===null)return f0;var y=this.je;return y===""?f0:(a=ma(a,y),a===void 0?f0:a)},Pt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=ma(a,x);if(b===void 0&&(b=f0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)lu(this,b[z],a);for(Jo(a,x,y),E=y.length,z=0;z<E;z++){var tt=y[z];this.hc(tt)===null&&su(this,tt,a)}ka(this,"linkLabelKeys",To,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Jo(a,x,y)}},Pt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ma(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&su(this,y,a),ka(this,"linkLabelKeys",Uo,x,a,null,y,null,E)))}else qt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Pt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ma(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(lu(this,y,a),ka(this,"linkLabelKeys",ua,x,a,y,null,E,null)))}else b!==void 0&&qt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Pt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ma(a,y),y!==void 0)){if(fd(y))return y;qt("Key value for link data "+a+" is not a number or a string: "+y)}}},Pt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=ma(a,x);b!==y&&this.jh(y)===null&&(Jo(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),ka(this,"linkKey",To,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Jo(a,x,y)}},Pt.jh=function(a){return a===null&&qt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&fd(a)?this.wb.I(a):null},Pt.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 b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Jo(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Jo(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Jo(a,y,x)}}}}},Pt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Pt.fi=function(a){a!==null&&(or(a),this.Jc(a)||ES(this,a,!0))};function ES(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&qt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),ka(a,"linkDataArray",Uo,"linkDataArray",a,null,y,null,b),cy(a,y)}Pt.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)},Pt.bm=function(a){a!==null&&FS(this,a,!0)};function FS(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(ka(a,"linkDataArray",ua,"linkDataArray",a,y,null,b,null),x=dl(a,y,!0),lu(a,x,y),x=dl(a,y,!1),lu(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],lu(a,x,y)}Pt.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)},Pt.Zz=function(a){if(this.linkKeyProperty===""&&qt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&yn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),NS(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function cy(a,y){var x=dl(a,y,!0);x=a.Vl(x),a.hc(x)===null&&su(a,x,y),x=dl(a,y,!1),x=a.Vl(x),a.hc(x)===null&&su(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&su(a,x,y)}Pt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):d0(this,a,!0),ln(a)&&(_i(a),this.lf!==""&&Jo(a,this.lf,void 0),this.mf!==""&&Jo(a,this.mf,void 0),this.je!==""&&Jo(a,this.je,[])),a},Pt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ma(a,y)},Pt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ma(a,y),y!==void 0)){if(fd(y))return y;qt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Pt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=ma(a,x);b!==y&&(lu(this,b,a),Jo(a,x,y),this.hc(y)===null&&su(this,y,a),ka(this,"nodeGroupKey",To,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Jo(a,x,y)}},qr.prototype.copyNodeData=function(a){return a===null?null:(a=Wi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ma(a,this.Je)===void 0||Jo(a,this.Je,void 0),a)},qr.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){Vf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Vf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Kf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Kf(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 b=ma(a,y);b!==x&&(Jo(a,y,x),this.Fs(a,y,b,x))},Pt=qr.prototype,Pt.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&ma(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Pt.jp=function(a,y){Wi.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 b=x.value,E=a,z=y;if(dl(this,b,!0)===E){var tt=this.lf;Jo(b,tt,z),ka(this,"linkFromKey",To,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)}if(dl(this,b,!1)===E&&(tt=this.mf,Jo(b,tt,z),ka(this,"linkToKey",To,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)),tt=this.Ef(b),Array.isArray(tt))for(var rt=tt.length,ot=this.je,st=0;st<rt;st++)tt[st]===E&&(tt[st]=z,ka(this,"linkLabelKeys",Uo,ot,b,E,z,st,st))}},Pt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Jo(a,b,x),ka(this,"nodeGroupKey",To,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Pt.Lv=function(){Wi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},Pt.fm=function(a){Wi.prototype.fm.call(this,a),a=this.wa(a);var y=pp(this,a);if(y!==null){var x=Di();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;ka(this,"nodeGroupKey",To,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(dl(this,b,!0)===a&&(E=this.lf,ka(this,"linkFromKey",To,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),dl(this,b,!1)===a&&(E=this.mf,ka(this,"linkToKey",To,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,tt=this.je,rt=0;rt<z;rt++)E[rt]===a&&(ka(this,"linkLabelKeys",Uo,tt,b,a,a,rt,rt),x.push(b))}for(y=0;y<x.length;y++)lu(this,a,x[y]);$n(x)}},Pt.em=function(a){Wi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&su(this,y,a)},Pt.qp=function(a){Wi.prototype.qp.call(this,a);var y=this.lh(a);lu(this,y,a)},Pt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ma(a,y),y===void 0))return"";if(typeof y=="string")return y;qt("getCategoryForLinkData found a non-string category for "+a+": "+y)},qr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},qr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=ma(a,x);b===void 0&&(b=""),b!==y&&(Jo(a,x,y),ka(this,"linkCategory",To,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Jo(a,x,y)}},qr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Pt=qr.prototype,Pt.lm=function(a,y){Wi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function NS(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))}Pt.Wj=function(){return!0},Pt.ri=function(){return!0},Pt.xs=function(){return!0},Pt.Xj=function(){return!0},be.Object.defineProperties(qr.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,b=0;b<x;b++){var E=a[b];ln(E)||qt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),or(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new pn,E=0;E<x;E++){var z=a[E],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?b.add(z):this.wb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new Ln,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,ka(this,"linkDataArray",To,"linkDataArray",this,y,a),y=0;y<x;y++)cy(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,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}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"}}}),qr.prototype.setCategoryForLinkData=qr.prototype.lp,qr.prototype.getCategoryForLinkData=qr.prototype.ps,qr.prototype.assignAllDataProperties=qr.prototype.Do,qr.prototype.setGroupKeyForNodeData=qr.prototype.mp,qr.prototype.getGroupKeyForNodeData=qr.prototype.lh,qr.prototype.isGroupForNodeData=qr.prototype.Yu,qr.prototype.copyLinkData=qr.prototype.Jo,qr.prototype.mergeLinkDataArray=qr.prototype.Zz,qr.prototype.removeLinkDataCollection=qr.prototype.lA,qr.prototype.removeLinkData=qr.prototype.bm,qr.prototype.addLinkDataCollection=qr.prototype.Ey,qr.prototype.addLinkData=qr.prototype.fi,qr.prototype.containsLinkData=qr.prototype.Jc,qr.prototype.makeLinkDataKeyUnique=qr.prototype.Bs,qr.prototype.findLinkDataForKey=qr.prototype.jh,qr.prototype.setKeyForLinkData=qr.prototype.Ks,qr.prototype.getKeyForLinkData=qr.prototype.Ac,qr.prototype.removeLabelKeyForLinkData=qr.prototype.Qx,qr.prototype.addLabelKeyForLinkData=qr.prototype.Bu,qr.prototype.setLabelKeysForLinkData=qr.prototype.Ls,qr.prototype.getLabelKeysForLinkData=qr.prototype.Ef,qr.prototype.setToPortIdForLinkData=qr.prototype.Cv,qr.prototype.getToPortIdForLinkData=qr.prototype.Cx,qr.prototype.setFromPortIdForLinkData=qr.prototype.xv,qr.prototype.getFromPortIdForLinkData=qr.prototype.zx,qr.prototype.setToKeyForLinkData=qr.prototype.Bv,qr.prototype.getToKeyForLinkData=qr.prototype.Bx,qr.prototype.setFromKeyForLinkData=qr.prototype.wv,qr.prototype.getFromKeyForLinkData=qr.prototype.yx,qr.prototype.clear=qr.prototype.clear;var f0=Object.freeze([]);qr.className="GraphLinksModel",ql.GraphLinksModel=qr,Wi.constructGraphLinksModel=Wi.constructGraphLinksModel=function(){return new qr},Wi.initDiagramModel=hy=function(){return new qr};function Es(a,y){Wi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Me(Es,Wi),Es.constructGraphLinksModel=Wi.constructGraphLinksModel,Es.prototype.cloneProtected=function(a){Wi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Pt=Es.prototype,Pt.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,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+dr(E)}}return y},Pt.rm=function(){var a=Wi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Pt.gp=function(a){Wi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Pt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&qt("applyIncrementalJson cannot change Model properties"),Wi.prototype.fp.call(this,a)},Pt.Vl=function(a){return a},Pt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ma(a,y),y!==void 0)){if(fd(y))return y;qt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Pt.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 b=ma(a,x);b!==y&&(lu(this,b,a),Jo(a,x,y),this.hc(y)===null&&su(this,y,a),ka(this,"nodeParentKey",To,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Jo(a,x,y)}},Pt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ma(a,y),y===void 0)?"":typeof y=="string"?y:(qt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Es.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Es.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=ma(a,x);b===void 0&&(b=""),b!==y&&(Jo(a,x,y),ka(this,"parentLinkCategory",To,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Jo(a,x,y)}},Es.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Es.prototype.copyNodeData=function(a){return a===null?null:(a=Wi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ma(a,this.Ke)===void 0||Jo(a,this.Ke,void 0),a)},Es.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 b=ma(a,y);b!==x&&(Jo(a,y,x),this.Fs(a,y,b,x))},Pt=Es.prototype,Pt.jp=function(a,y){Wi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Pt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Jo(a,b,x),ka(this,"nodeParentKey",To,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Pt.fm=function(a){Wi.prototype.fm.call(this,a),a=this.wa(a);var y=pp(this,a);if(y!==null){var x=Di();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;ka(this,"nodeParentKey",To,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)lu(this,a,x[y]);$n(x)}},Pt.em=function(a){Wi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&su(this,y,a)},Pt.qp=function(a){Wi.prototype.qp.call(this,a);var y=this.mh(a);lu(this,y,a)},Pt.lm=function(a,y){Wi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Pt.Tl=function(){return!0},Pt.xs=function(){return!0},be.Object.defineProperties(Es.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"}}}),Es.prototype.setParentLinkCategoryForNodeData=Es.prototype.Ms,Es.prototype.getParentLinkCategoryForNodeData=Es.prototype.ss,Es.prototype.setParentKeyForNodeData=Es.prototype.qe,Es.prototype.getParentKeyForNodeData=Es.prototype.mh,Es.className="TreeModel",ql.TreeModel=Es;function na(a){qo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=_l,this.Ti=0,this.Zv=new Bt,this.Jp=this.me=0,this.Xr=new Pp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=_l,this.K=Fs,this.nd=Yf,this.hd=ry,this.tf=6,this.Nn=x0,a&&Object.assign(this,a)}Me(na,qo),na.prototype.cloneProtected=function(a){qo.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},na.prototype.qb=function(a){a.classType===na?a===y0||a===S0||a===m0||a===v0||a===Yf?this.sorting=a:a===ec||a===Xf||a===Fs||a===pd?this.direction=a:a===Bh||a===gd||a===_l||a===$l?this.arrangement=a:(a===Hc||a===x0)&&(this.nodeDiameterFormula=a):qo.prototype.qb.call(this,a)},na.prototype.createNetwork=function(){return new Uf(this)},na.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 pn;y.addAll(a.iterator),a=new pn;var x=new pn,b=this.sort(y),E,z,tt=this.Jp,rt=this.arrangement,ot=this.nodeDiameterFormula,st=this.radius;(!isFinite(st)||0>=st)&&(st=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var vt=this.sweepAngle;if((!isFinite(vt)||360<vt||1>vt)&&(vt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===$l&&ot===Hc?rt=_l:rt===$l&&ot!==Hc&&(rt=this.arrangement),(this.direction===ec||this.direction===Xf)&&this.sorting!==Yf){for(ot=0;!(ot>=b.length)&&(a.add(b.M(ot)),!(ot+1>=b.length));ot+=2)x.add(b.M(ot+1));this.direction===ec?(this.arrangement===$l&&a.reverse(),b=new pn,b.addAll(a),b.addAll(x)):(this.arrangement===$l&&x.reverse(),b=new pn,b.addAll(x),b.addAll(a))}ot=b.length;for(var xt=z=E=0;xt<b.length;xt++){var Lt=ft+vt*z*(this.direction===Fs?1:-1)/ot,Ft=b.M(xt).diameter;isNaN(Ft)&&(Ft=md(b.M(xt),Lt)),360>vt&&(xt===0||xt===b.length-1)&&(Ft/=2),E+=Ft,z++}if(isNaN(st)||rt===$l){if(isNaN(y)&&(y=6),rt!==_l&&rt!==$l){for(z=-1/0,tt=0;tt<ot;tt++)xt=b.M(tt),E=b.M(tt===ot-1?0:tt+1),isNaN(xt.diameter)&&md(xt,0),isNaN(E.diameter)&&md(E,0),z=Math.max(z,(xt.diameter+E.diameter)/2);tt=z+y,rt===Bh?st=(z+y)/(2*Math.PI/ot):st=g0(this,tt*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180)}else st=g0(this,E+(360<=vt?ot:ot-1)*(rt!==$l?y:1.6*y),ut,ft*Math.PI/180,vt*Math.PI/180);z=st*ut}else if(z=st*ut,xt=fy(this,st,z,ft*Math.PI/180,vt*Math.PI/180),isNaN(y))(rt===_l||rt===$l)&&(y=(xt-E)/(360<=vt?ot:ot-1));else if(rt===_l||rt===$l)xt=(xt-E)/(360<=vt?ot:ot-1),xt<y?(st=g0(this,E+y*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180),z=st*ut):y=xt;else{for(tt=-1/0,E=0;E<ot;E++)Lt=b.M(E),Ft=b.M(E===ot-1?0:E+1),isNaN(Lt.diameter)&&md(Lt,0),isNaN(Ft.diameter)&&md(Ft,0),tt=Math.max(tt,(Lt.diameter+Ft.diameter)/2);tt+=y,E=g0(this,tt*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180),E>st?(st=E,z=st*ut):tt=xt/(360<=vt?ot:ot-1)}if(this.kw=rt,this.lc=st,this.Zm=ut,this.lw=ft,this.Wp=vt,this.Ti=y,this.me=z,this.Jp=tt,y=b,b=this.kw,rt=this.lc,st=this.lw,ut=this.Wp,ft=this.Ti,vt=this.me,ot=this.Jp,this.direction!==ec&&this.direction!==Xf||b!==$l)if(this.direction===ec||this.direction===Xf){switch(tt=0,b){case gd:tt=180*p0(this,rt,vt,st,ot)/Math.PI;break;case _l:ot=y=0,tt=a.first(),tt!==null&&(y=md(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=md(tt,Math.PI/2)),tt=180*p0(this,rt,vt,st,ft+(y+ot)/2)/Math.PI;break;case Bh:tt=ut/y.length}if(this.direction===ec){switch(b){case gd:xp(this,a,st,pd);break;case _l:Sp(this,a,st,pd);break;case Bh:yp(this,a,ut/2,st,pd)}switch(b){case gd:xp(this,x,st+tt,Fs);break;case _l:Sp(this,x,st+tt,Fs);break;case Bh:yp(this,x,ut/2,st+tt,Fs)}}else{switch(b){case gd:xp(this,x,st,pd);break;case _l:Sp(this,x,st,pd);break;case Bh:yp(this,x,ut/2,st,pd)}switch(b){case gd:xp(this,a,st+tt,Fs);break;case _l:Sp(this,a,st+tt,Fs);break;case Bh:yp(this,a,ut/2,st+tt,Fs)}}}else switch(b){case gd:xp(this,y,st,this.direction);break;case _l:Sp(this,y,st,this.direction);break;case Bh:yp(this,y,ut,st,this.direction);break;case $l:TS(this,y,ut,st,this.direction)}else TS(this,y,ut,st-ut/2,Fs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function yp(a,y,x,b,E){var z=a.Wp,tt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var st=b+(E===Fs?ot*x/(360<=z?rt:rt-1):-(ot*x)/rt),ut=y.M(ot),ft=tt*Math.tan(st)/a;ft=Math.sqrt((tt*tt+a*a*ft*ft)/(1+ft*ft)),ut.centerX=ft*Math.cos(st),ut.centerY=ft*Math.sin(st),ut.actualAngle=180*st/Math.PI}}function Sp(a,y,x,b){var E=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var st=y.M(ot),ut=y.M(ot===rt-1?0:ot+1),ft=z*Math.sin(x);st.centerX=E*Math.cos(x),st.centerY=ft,st.actualAngle=180*x/Math.PI,isNaN(st.diameter)&&md(st,0),isNaN(ut.diameter)&&md(ut,0),st=p0(a,E,z,b===Fs?x:-x,(st.diameter+ut.diameter)/2+tt),x+=b===Fs?st:-st}}function xp(a,y,x,b){var E=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var st=y.M(ot);st.centerX=E*Math.cos(x),st.centerY=z*Math.sin(x),st.actualAngle=180*x/Math.PI,st=p0(a,E,z,b===Fs?x:-x,tt),x+=b===Fs?st:-st}}function TS(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Pp,360>x){for(z=b+(E===Fs?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,BS(a,y,x,b,E)}else DS(a,y,x,b,E);a.Xr.commit(y)}function DS(a,y,x,b,E){var z=a.lc,tt=a.Ti,rt=a.Zm,ot=z*Math.cos(b*Math.PI/180),st=a.me*Math.sin(b*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=Bt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=ot,ut[ft].centerY=st,!(ft>=ut.length-1));ft++)OS(a,ot,st,ut,ft,E,z)||IS(a,ot,st,ut,ft,E,z),ot=z.x,st=z.y;if(Bt.free(z),a.mj++,!(23<a.mj)){ot=ut[0].centerX,st=ut[0].centerY,z=ut[ut.length-1].centerX,ft=ut[ut.length-1].centerY;var vt=Math.abs(ot-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),xt=Math.abs(st-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(xt)?Math.abs(ot-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<xt?xt:1>Math.abs(vt)?0:vt,ot=Math.abs(z)>Math.abs(ft)?0<z!=st>ft:0<ft!=ot<z,(ot=E===Fs?ot:!ot)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*rt,DS(a,y,x,b,E))}}}function BS(a,y,x,b,E){for(var z=a.lc,tt=a.me,rt=a.Zm,ot=z*Math.cos(b*Math.PI/180),st=tt*Math.sin(b*Math.PI/180),ut=Bt.alloc(),ft=y.Fa(),vt=0;vt<ft.length&&(ft[vt].centerX=ot,ft[vt].centerY=st,!(vt>=ft.length-1));vt++)OS(a,ot,st,ft,vt,E,ut)||IS(a,ot,st,ft,vt,E,ut),ot=ut.x,st=ut.y;if(Bt.free(ut),a.mj++,!(23<a.mj)){if(ot=Math.atan2(st,ot),ot=E===Fs?a.gt-ot:ot-a.gt,ot=Math.abs(ot)<Math.abs(ot-2*Math.PI)?ot:ot-2*Math.PI,z=ot*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],ot=0;ot<ft.length;ot++)tt.mk[ot]=ft[ot].bounds.x,tt.tm[ot]=ft[ot].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*rt,BS(a,y,x,b,E))}}function OS(a,y,x,b,E,z,tt){var rt=a.lc,ot=a.me,st=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===Fs)){if(z=y+a,z>rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=st,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=st,!1;ut=!0}return st=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>x!==ut&&(st=-st),Math.abs(x-st)>(b[E].height+b[E+1].height)/2?(tt.x=z,tt.y=st,!1):(tt.x=z,tt.y=st,!0)}function IS(a,y,x,b,E,z,tt){var rt=a.lc,ot=a.me,st=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Fs)){if(z=x-a,z<-ot){if(z=x+a,z>ot){tt.x=st,tt.y=z;return}b=!0}}else if(z=x+a,z>ot){if(z=x-a,z<-ot){tt.x=st,tt.y=z;return}b=!0}st=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>y!==b&&(st=-st),tt.x=st,tt.y=z}na.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},na.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 Bt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.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))},na.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),ot=0,st=0;st<=z;st++){b!==void 0&&E!==void 0?ot=b+st*E/z:ot=st*Math.PI/(2*z);var ut=Math.sin(ot);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return b!==void 0&&E!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function g0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?fy(a,1,x,b,E):fy(a,1,x))}function p0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var rt=0;;rt++){var ot=Math.sin(b+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*ot*ot)*a,tt>=E)return rt*a}}na.prototype.sort=function(a){switch(this.sorting){case m0:break;case v0:a.reverse();break;case y0:a.sort(this.comparer);break;case S0:a.sort(this.comparer),a.reverse();break;case Yf:return this.ak(Dx(a));default:qt("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new pn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var tt=0;tt<a.length;tt++){var rt=a.M(tt).edgesCount;rt>E&&(E=rt,z=tt)}else for(tt=0;tt<a.length;tt++)rt=y[tt],rt>E&&(E=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)E=a.indexOf(tt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}na.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],rt=[];b=[],E=new pn;for(var ot=0,st=0;st<y.length;st++){var ut=y[st].length;if(ut===1)b.push(st);else if(ut===0)E.add(a.M(st));else{if(ot===0)x.push(st);else{for(var ft=ut=1/0,vt=-1,xt=[],Lt=0;Lt<x.length;Lt++)0>y[x[Lt]].indexOf(x[Lt===x.length-1?0:Lt+1])&&xt.push(Lt===x.length-1?0:Lt+1);if(xt.length===0)for(Lt=0;Lt<x.length;Lt++)xt.push(Lt);for(Lt=0;Lt<xt.length;Lt++){for(var Ft=xt[Lt],Xt=y[st],Zt=0,Qt=0;Qt<tt.length;Qt++){var _t=z[tt[Qt]],te=z[rt[Qt]];if(_t<te){var ye=_t;_t=te}else ye=te;if(ye<Ft&&Ft<=_t)for(te=0;te<Xt.length;te++){var ze=Xt[te];0>x.indexOf(ze)||ye<z[ze]&&z[ze]<_t||ye===z[ze]||_t===z[ze]||Zt++}else for(te=0;te<Xt.length;te++)ze=Xt[te],0>x.indexOf(ze)||ye<z[ze]&&z[ze]<_t&&ye!==z[ze]&&_t!==z[ze]&&Zt++}for(Xt=Zt,Qt=Zt=0;Qt<y[st].length;Qt++)ye=x.indexOf(y[st][Qt]),0<=ye&&(ye=Math.abs(Ft-(ye>=Ft?ye+1:ye)),Zt+=ye<x.length+1-ye?ye:x.length+1-ye);for(Qt=0;Qt<tt.length;Qt++)ye=z[tt[Qt]],_t=z[rt[Qt]],ye>=Ft&&ye++,_t>=Ft&&_t++,ye>_t&&(te=_t,_t=ye,ye=te),_t-ye<(x.length+2)/2==(ye<Ft&&Ft<=_t)&&Zt++;(Xt<ut||Xt===ut&&Zt<ft)&&(ut=Xt,ft=Zt,vt=Ft)}for(x.splice(vt,0,st),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[st].length;ut++)ft=y[st][ut],0<=x.indexOf(ft)&&(tt.push(st),rt.push(ft))}ot++}}for(tt=x.length;;){for(z=!0,rt=0;rt<b.length;rt++)if(ot=b[rt],st=y[ot][0],ut=x.indexOf(st),0<=ut){for(vt=ft=0;vt<y[st].length;vt++)xt=x.indexOf(y[st][vt]),0>xt||xt===ut||(Lt=xt>ut?xt-ut:ut-xt,ft+=xt<ut!=Lt>tt-Lt?1:-1);x.splice(0>ft?ut:ut+1,0,ot),b.splice(rt,1),rt--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},be.Object.defineProperties(na.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!==$l&&a!==_l&&a!==gd&&a!==Bh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Fs&&a!==pd&&a!==ec&&a!==Xf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==m0&&a!==v0&&a!==y0&&!S0&&a!==Yf||(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!==x0&&a!==Hc||(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 _l=new rn(na,"ConstantSpacing",0),gd=new rn(na,"ConstantDistance",1),Bh=new rn(na,"ConstantAngle",2),$l=new rn(na,"Packed",3),Fs=new rn(na,"Clockwise",4),pd=new rn(na,"Counterclockwise",5),ec=new rn(na,"BidirectionalLeft",6),Xf=new rn(na,"BidirectionalRight",7),m0=new rn(na,"Forwards",8),v0=new rn(na,"Reverse",9),y0=new rn(na,"Ascending",10),S0=new rn(na,"Descending",11),Yf=new rn(na,"Optimized",12),x0=new rn(na,"Pythagorean",13),Hc=new rn(na,"Circular",14);na.className="CircularLayout",na.ConstantSpacing=_l,na.ConstantDistance=gd,na.ConstantAngle=Bh,na.Packed=$l,na.Clockwise=Fs,na.Counterclockwise=pd,na.BidirectionalLeft=ec,na.BidirectionalRight=Xf,na.Forwards=m0,na.Reverse=v0,na.Ascending=y0,na.Descending=S0,na.Optimized=Yf,na.Pythagorean=x0,na.Circular=Hc;function Pp(){this.Pl=-1/0,this.tm=this.mk=null}Pp.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},Pp.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]}},Pp.className="VertexArrangement";function Uf(a){Io.call(this,a)}Me(Uf,Io),Uf.prototype.createVertex=function(){return new wp(this)},Uf.prototype.createEdge=function(){return new P0(this)},Uf.className="CircularNetwork";function wp(a){Fa.call(this,a),this.u=this.Si=NaN}Me(wp,Fa);function md(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===$l)if(x.nodeDiameterFormula===Hc)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===Hc?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}be.Object.defineProperties(wp.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)}}}),wp.className="CircularVertex";function P0(a){tl.call(this,a)}Me(P0,tl),P0.className="CircularEdge";function os(a){qo.call(this),this.ah=null,this.An=0,this.$d=new Ut(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)}Me(os,qo),os.prototype.cloneProtected=function(a){qo.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},os.prototype.createNetwork=function(){return new Zc(this)},os.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 b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}RS(this,0,a)}this.network=y;var tt=b=x.iterator;b=this.arrangementSpacing;var rt=tt.count,ot=!0;z=E=0;for(var st=Di(),ut=0;ut<rt+y.vertexes.count+2;ut++)st[ut]=null;rt=0,tt.reset();for(var ft=de.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),ot)ot=!1,E=ft.x+ft.width/2,z=ft.y+ft.height/2,st[0]=new Bt(ft.x+ft.width+b.width,ft.y),st[1]=new Bt(ft.x,ft.y+ft.height+b.height),rt=2;else{var vt=zS(st,rt,E,z,ft.width,ft.height,b),xt=st[vt],Lt=new Bt(xt.x+ft.width+b.width,xt.y),Ft=new Bt(xt.x,xt.y+ft.height+b.height);for(vt+1<rt&&st.splice(vt+1,0,null),st[vt]=Lt,st[vt+1]=Ft,rt++,vt=xt.x-ft.x,xt=xt.y-ft.y,ut=ut.vertexes.iterator;ut.next();)Lt=ut.value,Lt.centerX+=vt,Lt.centerY+=xt}for(de.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,vt=tt.bounds,2>rt?(E=vt.x+vt.width/2,z=vt.y+vt.height/2,st[0]=new Bt(vt.x+vt.width+b.width,vt.y),st[1]=new Bt(vt.x,vt.y+vt.height+b.height),rt=2):(ot=zS(st,rt,E,z,vt.width,vt.height,b),ft=st[ot],xt=new Bt(ft.x+vt.width+b.width,ft.y),vt=new Bt(ft.x,ft.y+vt.height+b.height),ot+1<rt&&st.splice(ot+1,0,null),st[ot]=xt,st[ot+1]=vt,rt++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for($n(st),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}HS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},os.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},os.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function RS(a,y,x){if(Bx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,RS(a,y+1,x),HS(a,z),Ix(a,E),y=E.vertexes.Fa(),y.sort(function(tt,rt){return tt===null||rt===null||tt===rt?0:rt.Vd-tt.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Bx(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,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ox(a,y){for(var x=a.network,b=new Zc(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var tt=new ZS;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new pn),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;E=rt.fromVertex,tt=rt.toVertex,E.network===b&&tt.network===b?b.Bo(rt):E.network===b?(rt=E.Hj,rt===null&&(rt=new pn,E.Hj=rt),rt.add(tt),E.Vd--,E.sh+=tt.sh):tt.network===b&&(rt=tt.Hj,rt===null&&(rt=new pn,tt.Hj=rt),rt.add(E),tt.Vd--,tt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,me.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var ot=E.Hj;if(ot!==null&&0<ot.count&&(tt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=tt))){for(var st=rt=0,ut=ot.count-tt;ut<ot.count;ut++){var ft=ot.M(ut),vt=null;for(z=ft.edges.iterator;z.next();){var xt=z.value;if(xt.Ax(ft)===E){vt=xt;break}}vt!==null&&(st+=vt.length,rt+=ft.width*ft.height)}z=E.centerX,ot=E.centerY,ut=E.width,ft=E.height,vt=E.focus,xt=ut*ft,1>xt&&(xt=1),rt=me.sqrt((rt+xt+st*st*4/(tt*tt))/xt),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,E.bounds=new de(z-vt.x-tt,ot-vt.y-rt,ut+2*tt,ft+2*rt),E.focus=new Bt(vt.x+tt,vt.y+rt)}}return a.network=b,x}function Ix(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,tt=E.Tv;b.bounds=new de(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new Bt(z,tt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=me.sqrt(z*z+tt*tt)/2;for(var rt=!1,ot=tt=0,st=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?ot++:(rt=!0,st++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(ot!==0){for(0<st&&(tt/=st),st=y=0,y=rt?2*Math.PI/(ot+1):2*Math.PI/ot,ot%2===0&&(st=y/2),1<x.count&&x.sort(function(xt,Lt){return xt===null||Lt===null||xt===Lt?0:Lt.width*Lt.height-xt.width*xt.height}),rt=ot%2===0?0:1,x=x.iterator;x.next();)if(ot=x.value,!(1<ot.Vd||a.isFixed(ot))){for(ut=null,ft=ot.edges.iterator;ft.next();){ut=ft.value;break}ft=ot.width;var vt=ot.height;ft=me.sqrt(ft*ft+vt*vt)/2,ut=z+ut.length+ft,ft=tt+(y*(rt/2>>1)+st)*(rt%2===0?1:-1),ot.centerX=b+ut*Math.cos(ft),ot.centerY=E+ut*Math.sin(ft),rt++}}}}function zS(a,y,x,b,E,z,tt){var rt=9e19,ot=-1,st=0;t:for(;st<y;st++){var ut=a[st],ft=ut.x-x,vt=ut.y-b;if(ft=ft*ft+vt*vt,ft<rt){for(vt=st-1;0<=vt;vt--)if(a[vt].y>ut.y&&a[vt].x-ut.x<E+tt.width)continue t;for(vt=st+1;vt<y;vt++)if(a[vt].x>ut.x&&a[vt].y-ut.y<z+tt.height)continue t;ot=st,rt=ft}}return ot}os.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},os.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 b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function jS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,b+E<tt?a>y+z?(x=b+E-tt,a=a-y-z,me.sqrt(x*x+a*a)):a+x<y?(b=b+E-tt,a=a+x-y,me.sqrt(b*b+a*a)):tt-(b+E):b>tt+rt?a>y+z?(x=b-tt-rt,a=a-y-z,me.sqrt(x*x+a*a)):a+x<y?(b=b-tt-rt,a=a+x-y,me.sqrt(b*b+a*a)):b-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function HS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(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 b=x.centerX,E=b,z=x=x.centerY,tt=1;tt<y.length;tt++){var rt=y[tt];rt.forceX=0,rt.forceY=0;var ot=rt.centerX;rt=rt.centerY,b=Math.min(b,ot),E=Math.max(E,ot),x=Math.min(x,rt),z=Math.max(z,rt)}(E=E-b>z-x)?y.sort(function(Ft,Xt){return Ft===null||Xt===null||Ft===Xt?0:Ft.centerX-Xt.centerX}):y.sort(function(Ft,Xt){return Ft===null||Xt===null||Ft===Xt?0:Ft.centerY-Xt.centerY}),x=a.Zf;var st=b=rt=0;for(z=0;z<y.length;z++){tt=y[z],b=tt.bounds,rt=tt.focus,ot=b.x+rt.x;var ut=b.y+rt.y;b=tt.charge*a.electricalFieldX(ot,ut),st=tt.charge*a.electricalFieldY(ot,ut),b+=tt.mass*a.gravitationalFieldX(ot,ut),st+=tt.mass*a.gravitationalFieldY(ot,ut),tt.forceX+=b,tt.forceY+=st;for(var ft=z+1;ft<y.length;ft++){var vt=y[ft];if(vt!==tt){b=vt.bounds,rt=vt.focus,st=b.x+rt.x;var xt=b.y+rt.y;if(ot-st>x||st-ot>x){if(E)break}else if(ut-xt>x||xt-ut>x){if(!E)break}else{var Lt=jS(tt,vt);1>Lt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new w0),Lt=b.random(),rt=b.random(),ot>st?(b=Math.abs(vt.bounds.right-tt.bounds.x),b=(1+b)*Lt):ot<st?(b=Math.abs(vt.bounds.x-tt.bounds.right),b=-(1+b)*Lt):(b=Math.max(vt.width,tt.width),b=(1+b)*Lt-b/2),ut>xt?(st=Math.abs(vt.bounds.bottom-tt.bounds.y),st=(1+st)*rt):ot<st?(st=Math.abs(vt.bounds.y-tt.bounds.bottom),st=-(1+st)*rt):(st=Math.max(vt.height,tt.height),st=(1+st)*rt-st/2)):(rt=-(tt.charge*vt.charge)/(Lt*Lt),b=(st-ot)/Lt*rt,st=(xt-ut)/Lt*rt),tt.forceX+=b,tt.forceY+=st,vt.forceX-=b,vt.forceY-=st}}}}for(E=a.network.edges.iterator;E.next();)rt=E.value,x=rt.fromVertex,z=rt.toVertex,tt=x.bounds,ot=x.focus,b=tt.x+ot.x,tt=tt.y+ot.y,ut=z.bounds,ft=z.focus,ot=ut.x+ft.x,ut=ut.y+ft.y,ft=jS(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new w0),rt=ft.random(),ft=ft.random(),b=(b>ot?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,st=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),b=(ot-b)/ft*rt,st=(ut-tt)/ft*rt),x.forceX+=b,x.forceY+=st,z.forceX-=b,z.forceY-=st;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}os.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},os.prototype.moveFixedVertex=function(){},os.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},os.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ko,y.toSpot=ko)}},os.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=de.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,de.free(x)}x=de.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}de.free(x)},os.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},os.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},os.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},os.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},os.prototype.electricalFieldX=function(){return 0},os.prototype.electricalFieldY=function(){return 0},os.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},os.prototype.gravitationalFieldX=function(){return 0},os.prototype.gravitationalFieldY=function(){return 0},os.prototype.isFixed=function(a){return a.isFixed},be.Object.defineProperties(os.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"&&qt('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())}}}),os.className="ForceDirectedLayout";function ZS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}ZS.className="ForceDirectedSubnet";function Zc(a){Io.call(this,a)}Me(Zc,Io),Zc.prototype.createVertex=function(){return new Cp(this)},Zc.prototype.createEdge=function(){return new Lp(this)},Zc.className="ForceDirectedNetwork";function Cp(a){Fa.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}Me(Cp,Fa),be.Object.defineProperties(Cp.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)}}}),Cp.className="ForceDirectedVertex";function Lp(a){tl.call(this,a),this.j=this.o=NaN}Me(Lp,tl),be.Object.defineProperties(Lp.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)}}}),Lp.className="ForceDirectedEdge";function w0(){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()}w0.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},w0.className="RandomNumberGenerator";function xo(a){qo.call(this),this.kc=this.ie=25,this.K=0,this.Dk=A0,this.Zk=k0,this.Qk=E0,this.bj=4,this.rk=F0,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 Bt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Me(xo,qo),xo.prototype.cloneProtected=function(a){qo.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},xo.prototype.qb=function(a){a.classType===xo?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:qt("Unknown enum value: "+a):qo.prototype.qb.call(this,a)},xo.prototype.createNetwork=function(){return new Qf(this)},xo.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!==Mp&&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===Mp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var tt=0,rt=0,ot=0,st=0;if(b.link!==null){if(rt=b.link,rt===null)continue;var ut=E.node;if(tt=z.node,ut===null||tt===null)continue;var ft=rt.fromNode;ot=rt.toNode;for(var vt=rt.fromPort;vt!==null&&!vt.Ed();)vt=vt.panel;for(rt=rt.toPort;rt!==null&&!rt.Ed();)rt=rt.panel;if(b.rev){st=ft;var xt=vt;ft=ot,vt=rt,ot=st,rt=xt}var Lt=E.focus;st=z.focus;var Ft=b.rev?z.bounds:E.bounds;xt=Bt.alloc(),ut!==ft?Ft.w()&&ft.isVisible()?ft.actualBounds.w()?(Eh(ft,vt,ji,xt),xt.x+=ft.actualBounds.x-Ft.x,xt.y+=ft.actualBounds.y-Ft.y):(Eh(ft,vt,ji,xt),xt.w()||xt.assign(Lt)):xt.assign(Lt):Ft.w()?(Eh(ft,vt,ji,xt),xt.w()||xt.assign(Lt)):xt.assign(Lt),ft=b.rev?E.bounds:z.bounds,ut=Bt.alloc(),tt!==ot?ft.w()&&ot.isVisible()?ot.actualBounds.w()?(Eh(ot,rt,ji,ut),ut.x+=ot.actualBounds.x-ft.x,ut.y+=ot.actualBounds.y-ft.y):(Eh(ot,rt,ji,ut),ut.w()||ut.assign(st)):ut.assign(st):ft.w()?(Eh(ot,rt,ji,ut),ut.w()||ut.assign(st)):ut.assign(st),this.K===90||this.K===270?(tt=Math.round((xt.x-Lt.x)/this.kc),ot=xt.x,rt=Math.round((ut.x-st.x)/this.kc),st=ut.x):(tt=Math.round((xt.y-Lt.y)/this.kc),ot=xt.y,rt=Math.round((ut.y-st.y)/this.kc),st=ut.y),Bt.free(xt),Bt.free(ut),b.portFromColOffset=tt,b.portFromPos=ot,b.portToColOffset=rt,b.portToPos=st}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(xt=E.layer,ut=z.layer,ft=0,Ft=b.link,Ft!==null){var Xt=Ft.fromPort,Zt=Ft.toPort;if(Xt!==null&&Zt!==null){var Qt=Ft.fromNode;if(vt=Ft.toNode,Qt!==null&&vt!==null){var _t=M0(this,!0),te=M0(this,!1),ye=this.setsPortSpots?_t:Ft.computeSpot(!0,Xt);Lt=this.setsPortSpots?te:Ft.computeSpot(!1,Zt);var ze=Ft.isOrthogonal;ye.$c()&&ye.Hf(te)&&Lt.$c()&&Lt.Hf(_t)?ft=0:(_t=Ft.getLinkPoint(Qt,Xt,ye,!0,ze,vt,Zt,Bt.alloc()),te=Ft.getLinkDirection(Qt,Xt,_t,ye,!0,ze,vt,Zt),Bt.free(_t),ye.ys()||te!==QS(this,b,!0)?this.setsPortSpots&&Qt!==null&&Qt.ports.count===1&&b.rev&&(ft+=1):ft+=1,ye=Ft.getLinkPoint(vt,Zt,Lt,!1,ze,Qt,Xt,Bt.alloc()),Ft=Ft.getLinkDirection(vt,Zt,ye,Lt,!1,ze,Qt,Xt),Bt.free(ye),Lt.ys()||Ft!==QS(this,b,!1)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&b.rev&&(ft+=2):ft+=2)}}}if(vt=ft,ft=vt===1||vt===3,(vt=vt===2||vt===3)&&(Lt=a.createVertex(),Lt.node=null,Lt.Dj=1,Lt.layer=xt,Lt.near=E,a.dh(Lt),E=a.Zj(E,Lt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=tt,E.portToColOffset=0,E.portFromPos=ot,E.portToPos=0,E=Lt),Ft=1,ft&&Ft--,xt-ut>Ft&&0<xt){for(b.valid=!1,Lt=a.createVertex(),Lt.node=null,Lt.Dj=2,Lt.layer=xt-1,a.dh(Lt),E=a.Zj(E,Lt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=vt?0:tt,E.portToColOffset=0,E.portFromPos=vt?0:ot,E.portToPos=0,E=Lt,xt--;xt-ut>Ft&&0<xt;)Lt=a.createVertex(),Lt.node=null,Lt.Dj=3,Lt.layer=xt-1,a.dh(Lt),E=a.Zj(E,Lt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Lt,xt--;E=a.Zj(Lt,z,b.link),E.valid=!ft,ft&&(Lt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=rt,E.portFromPos=0,E.portToPos=st}else b.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=vd(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),yd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},xo.prototype.linkMinLength=function(){return 1};function gy(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}xo.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},xo.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 js(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function Ml(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function WS(a,y,x){var b=vd(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<E;tt++){var rt=0,ot=b[tt],st=ot.near;if(st!==null&&st.layer===ot.layer)if(ot=st.index,ot>tt)for(var ut=tt+1;ut<ot;ut++){var ft=b[ut];ft.near===st&&ft.Dj===st.Dj||rt++}else for(ut=tt-1;ut>ot;ut--)ft=b[ut],ft.near===st&&ft.Dj===st.Dj||rt++;var vt;if(0<=x)for(ot=b[tt].sourceEdgesArrayAccess,st=0;st<ot.length;st++){var xt=ot[st];if(xt.valid&&xt.fromVertex.layer!==y)for(ft=xt.fromVertex.index,ut=xt.portToPos,xt=xt.portFromPos,vt=st+1;vt<ot.length;vt++){var Lt=ot[vt];if(Lt.valid&&Lt.fromVertex.layer!==y){var Ft=Lt.fromVertex.index,Xt=Lt.portToPos;Lt=Lt.portFromPos,ut<Xt&&(ft>Ft||ft===Ft&&xt>Lt)&&rt++,Xt<ut&&(Ft>ft||Ft===ft&&Lt>xt)&&rt++}}}if(0>=x){for(ot=b[tt].destinationEdgesArrayAccess,st=0;st<ot.length;st++)if(xt=ot[st],xt.valid&&xt.toVertex.layer!==y)for(ft=xt.toVertex.index,ut=xt.portToPos,xt=xt.portFromPos,vt=st+1;vt<ot.length;vt++)Lt=ot[vt],Lt.valid&&Lt.toVertex.layer!==y&&(Ft=Lt.toVertex.index,Xt=Lt.portToPos,Lt=Lt.portFromPos,xt<Lt&&(ft>Ft||ft===Ft&&ut>Xt)&&rt++,Lt<xt&&(Ft>ft||Ft===ft&&Xt>ut)&&rt++)}for(z[tt*E+tt]=rt,ot=tt+1;ot<E;ot++){var Zt=0,Qt=0;if(0<=x){rt=b[tt].sourceEdgesArrayAccess;var _t=b[ot].sourceEdgesArrayAccess;for(st=0;st<rt.length;st++)if(xt=rt[st],xt.valid&&xt.fromVertex.layer!==y)for(ft=xt.fromVertex.index,xt=xt.portFromPos,vt=0;vt<_t.length;vt++)Lt=_t[vt],Lt.valid&&Lt.fromVertex.layer!==y&&(Ft=Lt.fromVertex.index,Lt=Lt.portFromPos,(ft<Ft||ft===Ft&&xt<Lt)&&Qt++,(Ft<ft||Ft===ft&&Lt<xt)&&Zt++)}if(0>=x){for(rt=b[tt].destinationEdgesArrayAccess,_t=b[ot].destinationEdgesArrayAccess,st=0;st<rt.length;st++)if(xt=rt[st],xt.valid&&xt.toVertex.layer!==y)for(ft=xt.toVertex.index,ut=xt.portToPos,vt=0;vt<_t.length;vt++)Lt=_t[vt],Lt.valid&&Lt.toVertex.layer!==y&&(Ft=Lt.toVertex.index,Xt=Lt.portToPos,(ft<Ft||ft===Ft&&ut<Xt)&&Qt++,(Ft<ft||Ft===ft&&Xt<ut)&&Zt++)}z[tt*E+ot]=Zt,z[ot*E+tt]=Qt}}return yd(a,y,b),z}xo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=WS(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function C0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=vd(b,E),tt=b.tc[E],rt=0,ot=0;ot<tt;ot++){var st=z[ot].destinationEdgesArrayAccess;if(st!==null)for(var ut=0;ut<st.length;ut++){var ft=st[ut];if(ft.valid&&ft.toVertex.layer!==E){var vt=ft.fromVertex.column+ft.portFromColOffset,xt=ft.toVertex.column+ft.portToColOffset;rt+=(Math.abs(vt-xt)+1)*gy(ft)}}}yd(b,E,z),y+=rt}return y}xo.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 py(a,y,x){for(var b=vd(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=rt.destinationEdgesArrayAccess);var ut=0,ft=0,vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ut+=vt.column-1,ft++),ot!==null)for(vt=0;vt<ot.length;vt++){rt=ot[vt];var xt=rt.fromVertex;rt.valid&&!rt.rev&&xt.layer!==y&&(ut+=xt.column,ft++)}if(st!==null)for(ot=0;ot<st.length;ot++)rt=st[ot],vt=rt.toVertex,rt.valid&&!rt.rev&&vt.layer!==y&&(ut+=vt.column,ft++);z[tt]=ft===0?-1:ut/ft}return yd(a,y,b),z}function GS(a,y,x){for(var b=vd(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=rt.destinationEdgesArrayAccess);var ut=0,ft=[],vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ft[ut]=vt.column-1,ut++),rt=void 0,ot!==null)for(vt=0;vt<ot.length;vt++){rt=ot[vt];var xt=rt.fromVertex;rt.valid&&!rt.rev&&xt.layer!==y&&(ft[ut]=xt.column+rt.portFromColOffset,ut++)}if(st!==null)for(ot=0;ot<st.length;ot++)rt=st[ot],vt=rt.toVertex,rt.valid&&!rt.rev&&vt.layer!==y&&(ft[ut]=vt.column+rt.portToColOffset,ut++);ut===0?z[tt]=-1:(ft.sort(function(Lt,Ft){return Lt-Ft}),st=ut>>1,z[tt]=ut&1?ft[st]:ft[st-1]+ft[st]>>1)}return yd(a,y,b),z}function bp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,ot=rt.toVertex,st=y.layer-ot.layer;rt=a.linkMinLength(rt),st===rt&&bp(a,ot,x,b,E,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,ot=rt.fromVertex,st=ot.layer-y.layer,rt=a.linkMinLength(rt),st===rt&&bp(a,ot,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}xo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;jx(a)!==null;){for(E=VS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=VS(a);for(E=KS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=KS(a);E=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var ot=0,st=rt.destinationEdges;st.next();)st.value.toVertex.valid&&ot++;st=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&&st++;(E===null||z<ot-st)&&(E=rt,z=ot-st)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case A0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&vy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Mp:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function VS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function KS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function vy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,vy(a,E))}y.finish=a.Kn,a.Kn++}xo.prototype.assignLayers=function(){switch(this.Zk){case xy:XS(this);break;case Py:for(var a,y=this.network.vertexes.iterator;y.next();)a=US(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 k0:for(XS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&JS(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 XS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=YS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function YS(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,YS(a,z)+E)}y.layer=x}else x=y.layer;return x}function US(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,US(a,z)+E)}y.layer=x}else x=y.layer;return x}function JS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)JS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var tt=b[z],rt=tt.fromVertex,ot=tt.toVertex;tt=a.linkMinLength(tt),rt.layer-ot.layer>tt&&bp(a,rt,0,-1,!0,!1)}for(bp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,rt=0,ot=null,tt=a.network.vertexes.iterator;tt.next();){var st=tt.value;if(st.component===1){var ut=0,ft=!1,vt=st.sourceEdgesArrayAccess;E=vt.length;for(var xt=0;xt<E;xt++){var Lt=vt[xt],Ft=Lt.fromVertex;ut+=1,Ft.component!==1&&(z+=1,Ft=Ft.layer-st.layer,Lt=a.linkMinLength(Lt),b=Math.min(b,Ft-Lt))}for(vt=st.destinationEdgesArrayAccess,E=vt.length,xt=0;xt<E;xt++)Lt=vt[xt].toVertex,--ut,Lt.component!==1?--z:ft=!0;(ot===null||ut<rt)&&!ft&&(ot=st,rt=ut)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else ot.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(bp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,rt=null,ot=a.network.vertexes.iterator;ot.next();)if(tt=ot.value,tt.component===1){for(st=0,ut=!1,vt=tt.sourceEdgesArrayAccess,ft=vt.length,xt=0;xt<ft;xt++)Lt=vt[xt].fromVertex,st+=1,Lt.component!==1?b+=1:ut=!0;for(vt=tt.destinationEdgesArrayAccess,ft=vt.length,xt=0;xt<ft;xt++)Lt=vt[xt],Ft=Lt.toVertex,--st,Ft.component!==1&&(--b,Ft=tt.layer-Ft.layer,Lt=a.linkMinLength(Lt),E=Math.min(E,Ft-Lt));(rt===null||st>z)&&!ut&&(rt=tt,z=st)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else rt.component=0}}}function QS(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}xo.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy: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 E0: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&&qS(this,x);break;case wy: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&&_S(this,x)}};function qS(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 b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&qS(a,b))}function _S(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&_S(a,b))}xo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=js(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)L0(this,b,1),zl(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=js(this)),b=this.Ia;0<=b;b--)L0(this,b,-1),zl(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=js(this))}for(Ml(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)L0(this,b,0),zl(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=js(this)),b=this.Ia;0<=b;b--)L0(this,b,0),zl(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=js(this))}Ml(this,y);var z,tt,rt;switch(this.rk){case Ly:break;case by:for(rt=a+1;(b=this.countCrossings())<rt;)for(rt=b,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zl(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zl(this,b,1)||z;for(E=this.countCrossings(),E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zl(this,b,1)||z;for(E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zl(this,b,-1)||z;for(E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zl(this,b,0)||z;for(E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zl(this,b,0)||z;E>=a?Ml(this,y):(a=E,y=js(this))}break;default:case F0:for(x=this.Ia,tt=0,rt=a+1;(b=this.countCrossings())<rt;){for(rt=b,z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zl(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zl(this,b,1)||z;for(E=this.countCrossings(),E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zl(this,b,1)||z;for(E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zl(this,b,-1)||z;for(E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zl(this,b,0)||z;for(E>=a?Ml(this,y):(a=E,y=js(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zl(this,b,0)||z;E>=a?Ml(this,y):(a=E,y=js(this))}}Ml(this,y)};function L0(a,y,x){var b=vd(a,y),E=a.tc[y],z=GS(a,y,x),tt=py(a,y,x);for(x=0;x<E;x++)tt[x]===-1&&(tt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var rt=!0,ot;rt;)for(rt=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(rt=!0,ot=z[x],z[x]=z[x+1],z[x+1]=ot,ot=tt[x],tt[x]=tt[x+1],tt[x+1]=ot,ot=b[x],b[x]=b[x+1],b[x+1]=ot);for(x=z=0;x<E;x++)ot=b[x],ot.index=x,z+=a.nodeMinColumnSpace(ot,!0),ot.column=z,z+=1,z+=a.nodeMinColumnSpace(ot,!1);yd(a,y,b)}function zl(a,y,x){var b=vd(a,y),E=a.tc[y];x=WS(a,y,x);var z,tt=[];for(z=0;z<E;z++)tt[z]=-1;var rt=[];for(z=0;z<E;z++)rt[z]=-1;for(var ot=!1,st=!0;st;)for(st=!1,z=0;z<E-1;z++){var ut=x[b[z].index*E+b[z+1].index],ft=x[b[z+1].index*E+b[z].index],vt=0,xt=0,Lt=b[z].column,Ft=b[z+1].column,Xt=a.nodeMinColumnSpace(b[z],!0),Zt=a.nodeMinColumnSpace(b[z],!1),Qt=a.nodeMinColumnSpace(b[z+1],!0),_t=a.nodeMinColumnSpace(b[z+1],!1);Xt=Lt-Xt+Qt,Zt=Ft-Zt+_t;var te=b[z].sourceEdges.iterator;for(te.reset();te.next();)if(Qt=te.value,_t=Qt.fromVertex,Qt.valid&&_t.layer===y){for(Qt=0;b[Qt]!==_t;)Qt++;Qt<z&&(vt+=2*(z-Qt),xt+=2*(z+1-Qt)),Qt===z+1&&(vt+=1),Qt>z+1&&(vt+=4*(Qt-z),xt+=4*(Qt-(z+1)))}for(te=b[z].destinationEdges.iterator,te.reset();te.next();)if(Qt=te.value,_t=Qt.toVertex,Qt.valid&&_t.layer===y){for(Qt=0;b[Qt]!==_t;)Qt++;Qt===z+1&&(xt+=1)}for(te=b[z+1].sourceEdges.iterator,te.reset();te.next();)if(Qt=te.value,_t=Qt.fromVertex,Qt.valid&&_t.layer===y){for(Qt=0;b[Qt]!==_t;)Qt++;Qt<z&&(vt+=2*(z+1-Qt),xt+=2*(z-Qt)),Qt===z&&(xt+=1),Qt>z+1&&(vt+=4*(Qt-(z+1)),xt+=4*(Qt-z))}for(te=b[z+1].destinationEdges.iterator,te.reset();te.next();)if(Qt=te.value,_t=Qt.toVertex,Qt.valid&&_t.layer===y){for(Qt=0;b[Qt]!==_t;)Qt++;Qt===z&&(vt+=1)}Qt=_t=0,te=tt[b[z].index];var ye=rt[b[z].index],ze=tt[b[z+1].index],ri=rt[b[z+1].index];te!==-1&&(_t+=Math.abs(te-Lt),Qt+=Math.abs(te-Zt)),ye!==-1&&(_t+=Math.abs(ye-Lt),Qt+=Math.abs(ye-Zt)),ze!==-1&&(_t+=Math.abs(ze-Ft),Qt+=Math.abs(ze-Xt)),ri!==-1&&(_t+=Math.abs(ri-Ft),Qt+=Math.abs(ri-Xt)),(xt<vt-.5||xt===vt&&ft<ut-.5||xt===vt&&ft===ut&&Qt<_t-.5)&&(st=ot=!0,b[z].column=Zt,b[z+1].column=Xt,ut=b[z],b[z]=b[z+1],b[z+1]=ut)}for(z=0;z<E;z++)b[z].index=z;return yd(a,y,b),ot}xo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Yx)!==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 b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Jf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Jf(this,y,-1)||x;x=Jf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Jf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Jf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Jf(this,y,0)||x}}else Gx(this)};function Jf(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=vd(a,y),z=a.tc[y],tt=py(a,y,-1);if(0<x)for(b=0;b<z;b++)tt[b]=-1;var rt=py(a,y,1);if(0>x)for(b=0;b<z;b++)rt[b]=-1;for(var ot=!1,st=!0;st;)for(st=!1,b=0;b<z;b++){var ut=E[b].column,ft=a.nodeMinColumnSpace(E[b],!0),vt=a.nodeMinColumnSpace(E[b],!1),xt=0;0>b-1||ut-E[b-1].column-1>ft+a.nodeMinColumnSpace(E[b-1],!1)?xt=ut-1:xt=ut,ft=b+1>=z||E[b+1].column-ut-1>vt+a.nodeMinColumnSpace(E[b+1],!0)?ut+1:ut;var Lt=vt=0,Ft=0;if(0>=x)for(var Xt=E[b].sourceEdges.iterator;Xt.next();){var Zt=Xt.value,Qt=Zt.fromVertex;if(Zt.valid&&Qt.layer!==y){var _t=gy(Zt),te=Zt.portFromColOffset;Zt=Zt.portToColOffset,Qt=Qt.column,vt+=(Math.abs(ut+Zt-(Qt+te))+1)*_t,Lt+=(Math.abs(xt+Zt-(Qt+te))+1)*_t,Ft+=(Math.abs(ft+Zt-(Qt+te))+1)*_t}}if(0<=x)for(Xt=E[b].destinationEdges.iterator;Xt.next();)Zt=Xt.value,Qt=Zt.toVertex,Zt.valid&&Qt.layer!==y&&(_t=gy(Zt),te=Zt.portFromColOffset,Zt=Zt.portToColOffset,Qt=Qt.column,vt+=(Math.abs(ut+te-(Qt+Zt))+1)*_t,Lt+=(Math.abs(xt+te-(Qt+Zt))+1)*_t,Ft+=(Math.abs(ft+te-(Qt+Zt))+1)*_t);Zt=te=_t=0,Xt=tt[E[b].index],Qt=rt[E[b].index],Xt!==-1&&(_t+=Math.abs(Xt-ut),te+=Math.abs(Xt-xt),Zt+=Math.abs(Xt-ft)),Qt!==-1&&(_t+=Math.abs(Qt-ut),te+=Math.abs(Qt-xt),Zt+=Math.abs(Qt-ft)),Lt<vt||Lt===vt&&te<_t?(st=ot=!0,E[b].column=xt):(Ft<vt||Ft===vt&&Zt<_t)&&(st=ot=!0,E[b].column=ft)}return yd(a,y,E),a.normalize(),ot}function yy(a,y,x){var b=vd(a,y),E=a.tc[y],z=GS(a,y,x),tt=[];for(x=0;x<E;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var rt=b[x].column,ot=a.nodeMinColumnSpace(b[x],!0),st=a.nodeMinColumnSpace(b[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===E-1)ut=rt;else if(x===0){var ft=b[x+1].column;ft-rt===st+a.nodeMinColumnSpace(b[x+1],!0)?ut=rt-1:ut=rt}else x===E-1?(ft=b[x-1].column,ut=rt-ft===ot+a.nodeMinColumnSpace(b[x-1],!1)?rt+1:rt):(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ft=b[x+1].column,st=ft-a.nodeMinColumnSpace(b[x+1],!0)-st-1,ut=(ot+st)/2|0);else x===0&&x===E-1?ut=tt[x]:x===0?(ft=b[x+1].column,st=ft-a.nodeMinColumnSpace(b[x+1],!0)-st-1,ut=Math.min(tt[x],st)):x===E-1?(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ut=Math.max(tt[x],ot)):(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ft=b[x+1].column,st=ft-a.nodeMinColumnSpace(b[x+1],!0)-st-1,ot<tt[x]&&tt[x]<st?ut=tt[x]:ot>=tt[x]?ut=ot:st<=tt[x]&&(ut=st));ut!==rt&&(z=!0,b[x].column=ut)}yd(a,y,b),a.normalize()}function Zx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),tt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+tt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Wx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){b=tt.value;var rt=b.column-a.nodeMinColumnSpace(b,!0),ot=b.column+a.nodeMinColumnSpace(b,!1);rt<=y&&ot>=y&&(E[b.layer]=!0),rt<=x&&ot>=x&&(z[b.layer]=!0)}for(rt=!0,x=!1,b=0;b<=a.Ia;b++)rt=rt&&!(E[b]&&z[b]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Zx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Wx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=js(a),z=C0(a);for(b=z+1;z<b;){b=z,tx(a,x,1);var tt=C0(a);tt>z?Ml(a,E):tt<z&&(z=tt,E=js(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=js(a),z=C0(a),b=z+1;z<b;)b=z,tx(a,x,-1),tt=C0(a),tt>z?Ml(a,E):tt<z&&(z=tt,E=js(a));a.normalize()}function tx(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(my(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(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var tt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),ot=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=ot;rt++)E[tt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt+1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt+1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt-1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt-1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(ot=tt[tt.length-1],tt.pop(),E[ot])for(E[ot]=!1,z=0;z<a.le;z++)y[ot*a.le+z]&&tt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Gx(a){for(var y=Di(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Ln,Vx(y,x);var z=null,tt=null,rt=null,ot=null,st=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,vt=(a.ve&8)!==0;for(st&&(a.verticalAlignment(y,x,!0),z=b0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=b0(a,y,!1,!1)),b=Jn(y),E=b.next();!E.done;E=b.next())E.value.reverse();vt&&(a.verticalAlignment(y,x,!1),ot=b0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=b0(a,y,!0,!0)),$n(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(xt){var Lt=Di();st&&Lt.push(z.get(xt)),ut&&Lt.push(tt.get(xt)),ft&&Lt.push(rt.get(xt)),vt&&Lt.push(ot.get(xt)),Lt.sort(function(Xt,Zt){return Xt-Zt});var Ft=Lt.length;Ft=(Lt[Math.floor((Ft-1)/2)]+Lt[Math.ceil((Ft-1)/2)])/2,$n(Lt),xt.zc=Ft})}function Vx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,tt=a[b],rt=a[b+1],ot=0;z<rt.length;ot++){var st=rt[ot];t:{if(st.node===null){var ut=My(st);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var ft=ut;if(ot===rt.length-1||ft){for(ut=tt.length-1,ft&&(ut=My(st)[0].index);z<=ot;){if(st=rt[z],!st.bo){ft=[];for(var vt=Jn(st.sourceEdgesArrayAccess),xt=vt.next();!xt.done;xt=vt.next())xt=xt.value,xt.valid&&ft.push(xt);st.bo=ft}for(st=Jn(st.bo),ft=st.next();!ft.done;ft=st.next())ft=ft.value,vt=ft.fromVertex.index,(vt<E||vt>ut)&&y.add(ft);z++}E=ut}}}xo.prototype.verticalAlignment=function(a,y,x){Kx(a),a=Jn(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Jn(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var tt=x?My(z):Ux(z),rt=tt.length;if(0<rt){tt.sort(function(ft,vt){return ft.vi-vt.vi});var ot=(rt-1)/2;for(rt=Math.floor(ot),ot=Math.ceil(ot);rt<=ot;rt++)if(z.align===z){var st=tt[rt],ut=void 0;ut=x?N0(st,z):N0(z,st),!y.contains(ut)&&E<st.vi&&(st.align=z,z.root=st.root,z.align=st.root,E=st.vi)}}}}};function Kx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function b0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Jn(y),tt=z.next();!tt.done;tt=z.next()){var rt=Jn(tt.value);for(tt=rt.next();!tt.done;tt=rt.next())tt=tt.value,tt.sd=tt,tt.shift=1/0,tt.zc=NaN,tt.qg=0}for(tt=a.K===90||a.K===270,z=Jn(y),rt=z.next();!rt.done;rt=z.next()){rt=Jn(rt.value);for(var ot=rt.next();!ot.done;ot=rt.next())if(ot=ot.value,ot.root===ot){for(var st=0,ut=ot;ut.align!==ot;){var ft=ut.align,vt=tt?ut.width:ut.height,xt=tt?ft.width:ft.height;if(x){var Lt=N0(ut,ft),Ft=Lt.portFromPos,Xt=Lt.portToPos;Lt.link!==null&&(ut.node&&ut.node!==Lt.link.fromNode&&(Ft=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Lt.link.toNode&&(Xt=tt?ft.focusX:ft.focusY))}else Lt=N0(ft,ut),Ft=Lt.portToPos,Xt=Lt.portFromPos,Lt.link!==null&&(ut.node&&ut.node!==Lt.link.toNode&&(Ft=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Lt.link.fromNode&&(Xt=tt?ft.focusX:ft.focusY));vt=b?ut.qg+(vt-Ft)-(xt-Xt):ut.qg+Ft-Xt,ft.qg=vt,st=Math.min(st,vt),ut=ut.align}ut=ot;do ut.qg=ut.qg-st,ut=ut.align;while(ut!==ot)}}for(x=Jn(y),tt=x.next();!tt.done;tt=x.next())for(z=Jn(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ex(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(rt=nx(z,y),rt.sd.shift=Math.min(rt.sd.shift,z.sd.shift+z.zc+z.qg-(rt.zc+rt.qg+(E?rt.width:rt.height)+a.columnSpacing)));rt=z.vi+1}while(tt<y.length&&rt<y[tt].length&&z.sd===y[tt][rt].sd)}for(a=new Ge,y=Jn(y),tt=y.next();!tt.done;tt=y.next())for(x=Jn(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=E?tt.width:tt.height,a.add(tt,b?-tt.zc-z:tt.zc);return a}function ex(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=nx(b,x),z=E.root;ex(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+tt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function nx(a,y){var x=a.Tz;return a=a.vi,1>a&&qt("Could not determine previous vertex in layer"),y[x][a-1]}xo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=Di(),E=Di(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Xx(this,y[tt],b,E,tt);rt<z&&(x=tt,z=rt)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?b[x]-b[tt]:E[x]-E[tt],z.delta!==0&&y[tt].each(function(ot){return function(st){st.value+=ot.delta}}(z)));$n(b),$n(E)};function Xx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var ot=rt.key;rt=rt.value,ot=a.K===90||a.K===270?ot.width:ot.height,rt<z&&(z=rt),rt+ot>tt&&(tt=rt+ot)}),x[E]=z,b[E]=tt,tt-z}xo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=M0(this,!0),y=M0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function M0(a,y){return a.K===270?y?Fo:Yo:a.K===90?y?Yo:Fo:a.K===180?y?wo:po:y?po:wo}xo.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 b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,tt=E=1/0,rt=-1/0;a.next();){var ot=a.value,st=ot.layer,ut=ot.column|0;b?(tt=y.x+this.kc*ut,st=this.Kd[st]):(tt=this.Kd[st],st=y.y+this.kc*ut),ot.centerX=tt,ot.centerY=st,x&&isFinite(ot.zc)&&(b?ot.node?ot.x=y.x+ot.zc:ot.centerX=y.x+ot.zc:ot.node?ot.y=y.y+ot.zc:ot.centerY=y.y+ot.zc),z=Math.min(ot.x,z),E=Math.min(ot.y,E),b?(tt=z,rt=Math.max(rt,ot.bounds.right)):(tt=E,rt=Math.max(rt,ot.bounds.bottom))}for(this.xw=rt-tt,z=y.x-z,y=y.y-E,this.Rf=new Bt(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},xo.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 b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new de(0,0,x,Math.abs(this.Ta[0]))):y.push(new de(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new de(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new de(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new de(0,0,Math.abs(this.Ta[0]),x)):y.push(new de(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new de(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new de(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},xo.prototype.commitLayers=function(){},xo.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 b=y,E=b.fromNode,z=b.toNode,tt=b.fromPort,rt=b.toPort;if(E!==null){var ot=E.findVisibleNode();ot!==null&&ot!==E&&(E=ot,tt=ot.port)}z!==null&&(ot=z.findVisibleNode(),ot!==null&&ot!==z&&(z=ot,rt=ot.port));var st=y.computeSpot(!0,tt);ot=y.computeSpot(!1,rt);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===hl&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(E,tt,st,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,ot,!1,!1,E,tt),x.w()||x.set(E.actualBounds.center),rt.w()||rt.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+rt.x)/3,(2*x.y+rt.y)/3),y.yf((x.x+2*rt.x)/3,(x.y+2*rt.y)/3),y.yf(rt.x,rt.y)):(x=b=!1,tt!==null&&st===Gi&&(b=!0),rt!==null&&ot===Gi&&(x=!0),(b||x)&&(ot=null,b&&(ot=y.getLinkPointFromPoint(E,tt,tt.ga(ji),y.i(3),!0),ot.w()||ot.set(E.actualBounds.center),y.L(0,ot.x,ot.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,rt,rt.ga(ji),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),ot&&(z=y.i(2),y.L(1,(2*ot.x+z.x)/3,(2*ot.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var vt=!1,xt=!1,Lt=this.ie,Ft=y.firstPickIndex+1;if(y.isOrthogonal){xt=!0;var Xt=y.pointsCount;4<Xt&&y.points.removeRange(2,Xt-3)}else if(y.curve===hl)vt=!0,Xt=y.pointsCount,4<Xt&&y.points.removeRange(2,Xt-3),Xt===4&&(Ft=2);else{Xt=y.pointsCount;var Zt=st===Gi,Qt=ot===Gi;2<Xt&&Zt&&Qt?y.points.removeRange(1,Xt-2):3<Xt&&Zt&&!Qt?y.points.removeRange(1,Xt-3):3<Xt&&!Zt&&Qt?y.points.removeRange(2,Xt-2):4<Xt&&!Zt&&!Qt&&y.points.removeRange(2,Xt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var _t=Xt=null;for(Zt=ft.sourceEdges.iterator;Zt.next()&&(Qt=Zt.value,Qt.link!==x.link||(Xt=Qt.fromVertex,_t=Qt.toVertex,Xt.node!==null)););if(Xt===null)break;if(Xt!==ut){Zt=y.i(Ft-1).x,Qt=y.i(Ft-1).y;var te=Xt.centerX,ye=Xt.centerY;if(xt)this.K===180||this.K===0?Ft===y.firstPickIndex+1?(y.m(Ft++,Zt,Qt),y.m(Ft++,Zt,ye)):(_t!==null?_t.centerY:Qt)!==ye&&(_t=this.Ta[Xt.layer-1]+this.Rf.x,y.m(Ft++,_t,Qt),y.m(Ft++,_t,ye)):Ft===y.firstPickIndex+1?(y.m(Ft++,Zt,Qt),y.m(Ft++,te,Qt)):(_t!==null?_t.centerX:Zt)!==te&&(_t=this.Ta[Xt.layer-1]+this.Rf.y,y.m(Ft++,Zt,_t),y.m(Ft++,te,_t));else if(Ft===y.firstPickIndex+1){_t=Math.max(10,this.he[ft.layer]);var ze=Math.max(10,this.Ld[ft.layer]);if(vt)this.K===180?te<=ft.bounds.x?(ft=ft.bounds.x,y.m(Ft++,ft-_t,ye),y.m(Ft++,ft,ye),y.m(Ft++,ft+ze,ye)):(y.m(Ft++,te-_t,ye),y.m(Ft++,te,ye),y.m(Ft++,te+ze,ye)):this.K===90?ye>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Ft++,te,ft+ze),y.m(Ft++,te,ft),y.m(Ft++,te,ft-_t)):(y.m(Ft++,te,ye+ze),y.m(Ft++,te,ye),y.m(Ft++,te,ye-_t)):this.K===270?ye<=ft.bounds.y?(ft=ft.bounds.y,y.m(Ft++,te,ft-_t),y.m(Ft++,te,ft),y.m(Ft++,te,ft+ze)):(y.m(Ft++,te,ye-_t),y.m(Ft++,te,ye),y.m(Ft++,te,ye+ze)):this.K===0&&(te>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Ft++,ft+ze,ye),y.m(Ft++,ft,ye),y.m(Ft++,ft-_t,ye)):(y.m(Ft++,te+ze,ye),y.m(Ft++,te,ye),y.m(Ft++,te-_t,ye)));else{y.m(Ft++,Zt,Qt);var ri=0;this.K===180||this.K===0?((this.K===180?te>=ft.bounds.right:te<=ft.bounds.x)&&(ri=(this.K===0?-_t:ze)/2),y.m(Ft++,Zt+ri,ye)):((this.K===270?ye>=ft.bounds.bottom:ye<=ft.bounds.y)&&(ri=(this.K===90?-_t:ze)/2),y.m(Ft++,te,Qt+ri)),y.m(Ft++,te,ye)}}else _t=Math.max(10,this.he[Xt.layer]),ze=Math.max(10,this.Ld[Xt.layer]),vt?this.K===180?(y.m(Ft++,te-_t-Lt,ye),y.m(Ft++,Math.min(te-_t+Lt/2,te),ye),y.m(Ft++,te,ye),y.m(Ft++,te,ye),y.m(Ft++,Math.max(te+ze-Lt/2,te),ye),y.m(Ft++,te+ze+Lt,ye)):this.K===90?(y.m(Ft++,te,ye+ze+Lt),y.m(Ft++,te,Math.max(ye+ze-Lt/2,ye)),y.m(Ft++,te,ye),y.m(Ft++,te,ye),y.m(Ft++,te,Math.min(ye-_t+Lt/2,ye)),y.m(Ft++,te,ye-_t-Lt)):this.K===270?(y.m(Ft++,te,ye-_t-Lt),y.m(Ft++,te,Math.min(ye-_t+Lt/2,ye)),y.m(Ft++,te,ye),y.m(Ft++,te,ye),y.m(Ft++,te,Math.max(ye+ze-Lt/2,ye)),y.m(Ft++,te,ye+ze+Lt)):(y.m(Ft++,te+ze+Lt,ye),y.m(Ft++,Math.max(te+ze-Lt/2,te),ye),y.m(Ft++,te,ye),y.m(Ft++,te,ye),y.m(Ft++,Math.min(te-_t+Lt/2,te),ye),y.m(Ft++,te-_t-Lt,ye)):y.m(Ft++,te,ye)}ft=Xt}(rt===null||st!==Gi||xt)&&(Zt=y.i(Ft-1).x,Qt=y.i(Ft-1).y,te=y.i(Ft).x,ye=y.i(Ft).y,xt?(Lt=this.Ld[ut.layer],this.K===180||this.K===0?(xt=Qt,xt>=ut.bounds.y&&xt<=ut.bounds.bottom&&(this.K===180?te>=ut.bounds.x:te<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-Lt:Lt),xt<ut.bounds.y+ut.bounds.height/2?xt=ut.bounds.y-this.kc/2:xt=ut.bounds.bottom+this.kc/2,y.m(Ft++,ft,Qt),y.m(Ft++,ft,xt)),y.m(Ft++,te,xt)):(xt=Zt,xt>=ut.bounds.x&&xt<=ut.bounds.right&&(this.K===270?ye>=ut.bounds.y:ye<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-Lt:Lt),xt<ut.bounds.x+ut.bounds.width/2?xt=ut.bounds.x-this.kc/2:xt=ut.bounds.right+this.kc/2,y.m(Ft++,Zt,ft),y.m(Ft++,xt,ft)),y.m(Ft++,xt,ye)),y.m(Ft++,te,ye)):vt?(_t=Math.max(10,this.he[ut.layer]),ze=Math.max(10,this.Ld[ut.layer]),this.K===180&&te>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Ft-2,ft,Qt),y.L(Ft-1,ft+ze,Qt)):this.K===90&&ye<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Ft-2,Zt,ft),y.L(Ft-1,Zt,ft-_t)):this.K===270&&ye>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Ft-2,Zt,ft),y.L(Ft-1,Zt,ft+ze)):this.K===0&&te<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Ft-2,ft,Qt),y.L(Ft-1,ft-_t,Qt))):(_t=Math.max(10,this.he[ut.layer]),ze=Math.max(10,this.Ld[ut.layer]),xt=0,this.K===180||this.K===0?((this.K===180?te<=ut.bounds.x:te>=ut.bounds.right)&&(xt=(this.K===0?ze:-_t)/2),y.m(Ft++,te+xt,Qt)):((this.K===270?ye<=ut.bounds.y:ye>=ut.bounds.bottom)&&(xt=(this.K===90?ze:-_t)/2),y.m(Ft++,Zt,ye+xt)),y.m(Ft++,te,ye)))}else{for(;ut!==null&&ut!==ft;){for(_t=Xt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Zt=ut.value,Zt.link!==x.link||(Xt=Zt.toVertex,_t=Zt.fromVertex,_t.node!==null&&(_t=null),Xt.node!==null)););if(Xt===null)break;Xt!==ft&&(Zt=y.i(Ft-1).x,Qt=y.i(Ft-1).y,te=Xt.centerX,ye=Xt.centerY,xt?this.K===180||this.K===0?(_t!==null?_t.centerY:Qt)!==ye&&(_t=this.Ta[Xt.layer]+this.Rf.x,Ft===y.firstPickIndex+1&&(_t=this.K===0?Math.max(_t,Zt):Math.min(_t,Zt)),y.m(Ft++,_t,Qt),y.m(Ft++,_t,ye)):(_t!==null?_t.centerX:Zt)!==te&&(_t=this.Ta[Xt.layer]+this.Rf.y,Ft===y.firstPickIndex+1&&(_t=this.K===90?Math.max(_t,Qt):Math.min(_t,Qt)),y.m(Ft++,Zt,_t),y.m(Ft++,te,_t)):(_t=Math.max(10,this.he[Xt.layer]),ze=Math.max(10,this.Ld[Xt.layer]),vt?this.K===180?(y.m(Ft++,te+ze+Lt,ye),y.m(Ft++,Math.max(te+ze-Lt/2,te),ye),y.m(Ft++,te,ye),y.m(Ft++,te,ye),y.m(Ft++,Math.min(te-_t+Lt/2,te),ye),y.m(Ft++,te-_t-Lt,ye)):this.K===90?(y.m(Ft++,te,ye-_t-Lt),y.m(Ft++,te,Math.min(ye-_t+Lt/2,ye)),y.m(Ft++,te,ye),y.m(Ft++,te,ye),y.m(Ft++,te,Math.max(ye+ze-Lt/2,ye)),y.m(Ft++,te,ye+ze+Lt)):this.K===270?(y.m(Ft++,te,ye+ze+Lt),y.m(Ft++,te,Math.max(ye+ze-Lt/2,ye)),y.m(Ft++,te,ye),y.m(Ft++,te,ye),y.m(Ft++,te,Math.min(ye-_t+Lt/2,ye)),y.m(Ft++,te,ye-_t-Lt)):(y.m(Ft++,te-_t-Lt,ye),y.m(Ft++,Math.min(te-_t+Lt/2,te),ye),y.m(Ft++,te,ye),y.m(Ft++,te,ye),y.m(Ft++,Math.max(te+ze-Lt/2,te),ye),y.m(Ft++,te+ze+Lt,ye)):this.K===180?(y.m(Ft++,te+ze,ye),y.m(Ft++,te-_t,ye)):this.K===90?(y.m(Ft++,te,ye-_t),y.m(Ft++,te,ye+ze)):this.K===270?(y.m(Ft++,te,ye+ze),y.m(Ft++,te,ye-_t)):(y.m(Ft++,te-_t,ye),y.m(Ft++,te+ze,ye)))),ut=Xt}xt&&(Zt=y.i(Ft-1).x,Qt=y.i(Ft-1).y,te=y.i(Ft).x,ye=y.i(Ft).y,this.K===180||this.K===0?Qt!==ye&&(_t=this.K===0?Math.min(Math.max((te+Zt)/2,this.Ta[ft.layer]+this.Rf.x),te):Math.max(Math.min((te+Zt)/2,this.Ta[ft.layer]+this.Rf.x),te),y.m(Ft++,_t,Qt),y.m(Ft++,_t,ye)):Zt!==te&&(_t=this.K===90?Math.min(Math.max((ye+Qt)/2,this.Ta[ft.layer]+this.Rf.y),ye):Math.max(Math.min((ye+Qt)/2,this.Ta[ft.layer]+this.Rf.y),ye),y.m(Ft++,Zt,_t),y.m(Ft++,te,_t)))}b!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=st===Gi?y.getLinkPointFromPoint(E,tt,tt.ga(ji),y.i(3),!0):y.i(0),st===Gi&&(st=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+st.x)/2,st.y),y.L(2,b.x,(st.y+b.y)/2)):(y.L(1,st.x,(tt.y+st.y)/2),y.L(2,(st.x+b.x)/2,b.y))),tt.w()||tt.set(E.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(E=ot===Gi?y.getLinkPointFromPoint(z,rt,rt.ga(ji),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===Gi&&(rt=y.i(y.pointsCount-3),ot=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,ot.x,(rt.y+ot.y)/2)):(y.L(y.pointsCount-2,rt.x,(E.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+ot.x)/2,ot.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},xo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new pn,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 b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),tt=b.i(E+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var rt=new Sd;rt.layer=Math.floor(z.y/2);var ot=b.i(0),st=b.i(b.pointsCount-1);if(rt.first=ot.x*ot.x+ot.y,rt.jc=st.x*st.x+st.y,rt.rd=Math.min(z.x,tt.x),rt.Ic=Math.max(z.x,tt.x),rt.index=E,rt.link=b,E+2<b.pointsCount){ot=b.i(E-1),st=b.i(E+2);var ut=0;ot.y<z.y?ut=st.y<z.y?3:z.x<tt.x?2:1:ot.y>z.y&&(ut=st.y>z.y?0:tt.x<z.x?2:1),rt.j=ut}x.push(rt)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<E;ot++)st=x[ot],st.jc!==rt&&(ut++,rt=st.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(rt=x[z].first,ot=z;ot<E;ot++)st=x[ot],st.first!==rt&&(ft++,rt=st.first);for(ot=!0,st=ft,ut<ft?(ot=!1,st=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<E;ft++){var vt=x[ft];(ot?vt.first:vt.jc)!==rt&&(ut++,rt=ot?vt.first:vt.jc);var xt=vt.link;z=xt.i(vt.index),tt=xt.i(vt.index+1);var Lt=this.linkSpacing*(ut-(st-1)/2);y++,xt.uh(),xt.L(vt.index,z.x,z.y+Lt),xt.L(vt.index+1,tt.x,tt.y+Lt),xt.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),tt=b.i(E+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new Sd,rt.layer=Math.floor(z.x/2),ot=b.i(0),st=b.i(b.pointsCount-1),rt.first=ot.x+ot.y*ot.y,rt.jc=st.x+st.y*st.y,rt.rd=Math.min(z.y,tt.y),rt.Ic=Math.max(z.y,tt.y),rt.index=E,rt.link=b,E+2<b.pointsCount&&(ot=b.i(E-1),st=b.i(E+2),ut=0,ot.x<z.x?ut=st.x<z.x?3:z.y<tt.y?2:1:ot.x>z.x&&(ut=st.x>z.x?0:tt.y<z.y?2:1),rt.j=ut),x.push(rt));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<E;ot++)st=x[ot],st.jc!==rt&&(ut++,rt=st.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,rt=x[z].first,ot=z;ot<E;ot++)st=x[ot],st.first!==rt&&(ft++,rt=st.first);for(ot=!0,st=ft,ut<ft?(ot=!1,st=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<E;ft++)vt=x[ft],(ot?vt.first:vt.jc)!==rt&&(ut++,rt=ot?vt.first:vt.jc),xt=vt.link,z=xt.i(vt.index),tt=xt.i(vt.index+1),Lt=this.linkSpacing*(ut-(st-1)/2),y++,xt.uh(),xt.L(vt.index,z.x+Lt,z.y),xt.L(vt.index+1,tt.x+Lt,tt.y),xt.zf()}z=E}a=b}}}},Pt=xo.prototype,Pt.Vx=function(a,y){return a instanceof Sd&&y instanceof Sd&&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},Pt.Ux=function(a,y){return a instanceof Sd&&y instanceof Sd&&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},Pt.Js=function(a,y){return a instanceof Sd&&y instanceof Sd&&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},Pt.B=function(a,y){return a-=y,-1<a&&1>a},Pt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&qt("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function vd(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function yd(a,y,x){a.He[a.tc[y]]=x}be.Object.defineProperties(xo.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()):qt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==A0&&a!==Mp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==k0&&a!==xy&&a!==Py||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==E0&&a!==wy&&a!==Cy||(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!==F0&&a!==by||(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 A0=new rn(xo,"CycleDepthFirst",0),Sy=new rn(xo,"CycleGreedy",1),Mp=new rn(xo,"CycleFromLayers",2),k0=new rn(xo,"LayerOptimalLinkLength",0),xy=new rn(xo,"LayerLongestPathSink",1),Py=new rn(xo,"LayerLongestPathSource",2),E0=new rn(xo,"InitDepthFirstOut",0),wy=new rn(xo,"InitDepthFirstIn",1),Cy=new rn(xo,"InitNaive",2),Ly=new rn(xo,"AggressiveNone",0),F0=new rn(xo,"AggressiveLess",1),by=new rn(xo,"AggressiveMore",2),Yx=8;xo.className="LayeredDigraphLayout",xo.CycleDepthFirst=A0,xo.CycleGreedy=Sy,xo.CycleFromLayers=Mp,xo.LayerOptimalLinkLength=k0,xo.LayerLongestPathSink=xy,xo.LayerLongestPathSource=Py,xo.InitDepthFirstOut=E0,xo.InitDepthFirstIn=wy,xo.InitNaive=Cy,xo.AggressiveNone=Ly,xo.AggressiveLess=F0,xo.AggressiveMore=by,xo.PackNone=0,xo.PackExpand=1,xo.PackStraighten=2,xo.PackMedian=4,xo.PackAll=15,xo.AlignNone=0,xo.AlignUpperLeft=1,xo.AlignUpperRight=2,xo.AlignLowerLeft=4,xo.AlignLowerRight=8,xo.AlignAll=15;function Sd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Sd.className="SegInfo";function Qf(a){Io.call(this,a)}Me(Qf,Io),Qf.prototype.createVertex=function(){return new Al(this)},Qf.prototype.createEdge=function(){return new Ap(this)},Qf.className="LayeredDigraphNetwork";function Al(a){Fa.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}Me(Al,Fa);function ix(a,y){return a.index-y.index}function N0(a,y){if(!a.$n){for(var x=[],b=Jn(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Jn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;qt("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=Jn(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Ux(a){if(!a.ao){for(var y=[],x=Jn(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}Al.prototype.Cl=function(a){Fa.prototype.Cl.call(this,a),this.bo=this.co=null},Al.prototype.Kl=function(a){Fa.prototype.Kl.call(this,a),this.bo=this.co=null},Al.prototype.zl=function(a){Fa.prototype.zl.call(this,a),this.$n=this.ao=null},Al.prototype.Jl=function(a){Fa.prototype.Jl.call(this,a),this.$n=this.ao=null},be.Object.defineProperties(Al.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)}}}),Al.prototype.deleteDestinationEdge=Al.prototype.Jl,Al.prototype.addDestinationEdge=Al.prototype.zl,Al.prototype.deleteSourceEdge=Al.prototype.Kl,Al.prototype.addSourceEdge=Al.prototype.Cl,Al.className="LayeredDigraphVertex";function Ap(a){tl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Me(Ap,tl),be.Object.defineProperties(Ap.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)}}}),Ap.className="LayeredDigraphEdge";function Gr(a){qo.call(this),this.Ub=new Ln,this.Wn=O0,this.ud=Wu,this.vo=R0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=z0,this.$d=new Ut(10,10).freeze();var y=new Kc(this);this.W=new jl(y),this.Y=new jl(y),this.ru=[],a&&Object.assign(this,a)}Me(Gr,qo),Gr.prototype.cloneProtected=function(a){qo.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)},Gr.prototype.qb=function(a){a.classType===Gr?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:qt("Unknown enum value: "+a):qo.prototype.qb.call(this,a)},Gr.prototype.createNetwork=function(){return new Kc(this)},Gr.prototype.makeNetwork=function(a){function y(b){if(b instanceof di)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Zn){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof je?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Mr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Gr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==j0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof je&&(y=a),this.path===O0&&y!==null?this.ud=y.isTreePathToChildren?Wu:Gc:this.ud=this.path===O0?Wu: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 Ln,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof di?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof jl&&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,Ay(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=rx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ay(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jl&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jl&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jl&&lx(this,y);if(this.Cu(),this.layerStyle===H0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?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,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jl&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ln,this.isValidLayout=!0};function Jx(a){var y=new Ln;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Gr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Wu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Gc:x.destinationEdges.count===0&&this.Ub.add(x);break;default:qt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=rx(this,a),a!==null&&this.Ub.add(a))};function rx(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Wu:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Gc:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:qt("Unhandled path value "+a.ud.toString())}}return b}function Ay(a,y){if(y!==null){switch(a.ud){case Wu:if(0<y.destinationEdges.count){for(var x=new pn,b=y.destinationVertexes;b.next();){var E=b.value;ox(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Gc:if(0<y.sourceEdges.count){for(x=new pn,b=y.sourceVertexes;b.next();)E=b.value,ox(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:qt("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)Ay(a,x[y])}}function ox(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Gr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Ku&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];ax(a,ot),x+=ot.descendantCount+1,b=Math.max(b,ot.maxChildrenCount),E=Math.max(E,ot.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case R0:return y.parent!==null?y.parent:a.W;case Oy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Dy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Gr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===Ku){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==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 sx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)sx(a,y[b])}}Gr.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==Ku&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Gr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case qf:break;case Ep:a.children.reverse();break;case Fp:a.children.sort(a.comparer);break;case Np:a.children.sort(a.comparer),a.children.reverse();break;default:qt("Unhandled sorting value "+a.sorting.toString())}},Gr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Gr.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=xd(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,tt=0,rt=0,ot=a.commentSpacing;if(a.node!==null)for(var st=a.node.Mu();st.next();){var ut=st.value;ut.category==="Comment"&&ut.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ut),ut.Va(),ut=ut.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(rt)):(z+=ut.width+Math.abs(rt),tt=Math.max(tt,ut.height)),rt=ot)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=de.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=E,de.free(E))};function xd(a){return a===Oh||a===Ku||a===Ih||a===ah}function kp(a){return a===Oh||a===Ku}function ky(a){var y=a.parent;if(y!==null){var x=y.alignment;if(xd(x)){if(kp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Ih)return!0}}return!1}Gr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=xd(z)),b=b===90||b===270,x=E===90||E===270;for(var tt=a.childrenCount===0,rt=ky(a),ot=0,st=a.comments,ut=st.length,ft=Bt.alloc(),vt=0;vt<ut;vt++){var xt=st[vt],Lt=xt.measuredBounds;if(b&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<E&&!z||x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-Lt.width,a.bounds.y+ot),xt.move(ft),xt=xt.Sd();xt.next();){var Ft=xt.value;Ft.fromSpot=wo,Ft.toSpot=po}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ot),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=po,Ft.toSpot=wo;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ot),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=po,Ft.toSpot=wo;else for(ft.h(a.bounds.x+a.commentMargin-Lt.width,a.bounds.y+ot),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=wo,Ft.toSpot=po;ot=0<=a.commentSpacing?ot+(Lt.height+a.commentSpacing):ot+(a.commentSpacing-Lt.height)}else{if(135<E&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y-a.commentMargin-Lt.height),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=Fo,Ft.toSpot=Yo;else for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y-a.commentMargin),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=Yo,Ft.toSpot=Fo;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y+a.commentMargin),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=Yo,Ft.toSpot=Fo;else for(ft.h(a.bounds.x+ot,a.bounds.y+a.commentMargin-Lt.height),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=Fo,Ft.toSpot=Yo;ot=0<=a.commentSpacing?ot+(Lt.width+a.commentSpacing):ot+(a.commentSpacing-Lt.width)}}if(Bt.free(ft),y=ot-a.commentSpacing-(b?y.height:y.width),this.ud===Wu)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},Gr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case I0:ux(this,a);break;case Tp:if(a.alignment===Ku)ux(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=xd(x)),b=ky(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?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 E=tu(a);y=E===90||E===270;var z=0,tt=a.children,rt=tt.length;for(x=0;x<rt;x++)b=tt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var ot=a.alignment;b=ot===Gu;var st=ot===Vu,ut=xd(ot),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var vt=a.nodeSpacing,xt=this.computeNodeIndent(a),Lt=a.rowSpacing,Ft=0;(b||st||a.hm||a.im&&a.maxGenerationCount===1)&&(Ft=Math.max(0,a.rowIndent)),b=a.width;var Xt=a.height,Zt=0,Qt=0,_t=0,te=null,ye=null,ze=0,ri=0,Ti=0,Ci=0,jn=0,xn=0,Lr=0,Sr=0;if(ut&&!kp(ot)&&135<E&&tt.reverse(),kp(ot))if(1<rt)for(var lo=0;lo<rt;lo++)lo%2===0&&lo!==rt-1&&(Sr=Math.max(Sr,y?tt[lo].Da.width:tt[lo].Da.height));else rt===1&&(Sr=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(ot){case Oh:Qt=135>E?hx(this,a,tt,Sr,Zt,Qt):dx(this,a,tt,Sr,Zt,Qt),Sr=Qt.x,Zt=Qt.width,Qt=Qt.height;break;case Ih:for(te=0;te<rt;te++)ye=tt[te],ft=ye.Da,_t=xn===0?0:Lt,y?(ye.S.h(z-ft.width,Ci+_t),Zt=Math.max(Zt,ft.width),Qt=Math.max(Qt,Ci+_t+ft.height),Ci+=_t+ft.height):(ye.S.h(Ti+_t,z-ft.height),Zt=Math.max(Zt,Ti+_t+ft.width),Qt=Math.max(Qt,ft.height),Ti+=_t+ft.width),xn++;break;case ah:for(te=0;te<rt;te++)ye=tt[te],z=ye.Da,ft=xn===0?0:Lt,y?(ye.S.h(vt/2+a.focus.x,Ci+ft),Zt=Math.max(Zt,z.width),Qt=Math.max(Qt,Ci+ft+z.height),Ci+=ft+z.height):(ye.S.h(Ti+ft,vt/2+a.focus.y),Zt=Math.max(Zt,Ti+ft+z.width),Qt=Math.max(Qt,z.height),Ti+=ft+z.width),xn++}te=Ks(this,2),ye=Ks(this,2),y?(te[0].h(0,0),te[1].h(0,Qt),ye[0].h(Zt,0)):(te[0].h(0,0),te[1].h(Zt,0),ye[0].h(0,Qt)),ye[1].h(Zt,Qt)}else for(lo=0;lo<rt;lo++){var Bo=tt[lo],Ba=Bo.Da;if(y){0<ft&&0<xn&&Ti+vt+Ba.width>ft&&(Ti<z&&nc(a,ot,z-Ti,0,Lr,lo-1),jn++,xn=0,Lr=lo,_t=Qt,Ti=0,Ci=135<E?-Qt-Lt:Qt+Lt),D0(this,Bo,0,Ci);var ja=0;if(xn===0)te=Bo.Yo,ye=Bo.kp,ze=Ba.width,ri=Ba.height,(te===null||ye===null||E!==tu(Bo))&&(te=Ks(this,2),ye=Ks(this,2),te[0].h(0,0),te[1].h(0,ri),ye[0].h(ze,0),ye[1].h(ze,ri));else{var vs=Di();ri=cx(this,a,Bo,te,ye,ze,ri,vs),ja=ri.x,te=vs[0],ye=vs[1],ze=ri.width,ri=ri.height,$n(vs),Ti<Ba.width&&0>ja&&(Wc(a,-ja,0,Lr,lo-1),B0(te,-ja,0),B0(ye,-ja,0),ja=0)}Bo.S.h(ja,Ci),Zt=Math.max(Zt,ze),Qt=Math.max(Qt,_t+(jn===0?0:Lt)+Ba.height),Ti=ze}else 0<ft&&0<xn&&Ci+vt+Ba.height>ft&&(Ci<z&&nc(a,ot,0,z-Ci,Lr,lo-1),jn++,xn=0,Lr=lo,_t=Zt,Ci=0,Ti=135<E?-Zt-Lt:Zt+Lt),D0(this,Bo,Ti,0),ja=0,xn===0?(te=Bo.Yo,ye=Bo.kp,ze=Ba.width,ri=Ba.height,(te===null||ye===null||E!==tu(Bo))&&(te=Ks(this,2),ye=Ks(this,2),te[0].h(0,0),te[1].h(ze,0),ye[0].h(0,ri),ye[1].h(ze,ri))):(vs=Di(),ri=cx(this,a,Bo,te,ye,ze,ri,vs),ja=ri.x,te=vs[0],ye=vs[1],ze=ri.width,ri=ri.height,$n(vs),Ci<Ba.height&&0>ja&&(Wc(a,0,-ja,Lr,lo-1),B0(te,0,-ja),B0(ye,0,-ja),ja=0)),Bo.S.h(Ti,ja),Qt=Math.max(Qt,ri),Zt=Math.max(Zt,_t+(jn===0?0:Lt)+Ba.width),Ci=ri;xn++}switch(0<jn&&(y?(Qt+=Math.max(0,x),Ti<Zt&&nc(a,ot,Zt-Ti,0,Lr,rt-1),0<Ft&&(st||Wc(a,Ft,0,0,rt-1),Zt+=Ft)):(Zt+=Math.max(0,x),Ci<Qt&&nc(a,ot,0,Qt-Ci,Lr,rt-1),0<Ft&&(st||Wc(a,0,Ft,0,rt-1),Qt+=Ft))),Ft=st=0,ot){case _f:y?st+=Zt/2-a.focus.x-xt/2:Ft+=Qt/2-a.focus.y-xt/2;break;case Vc:0<jn?y?st+=Zt/2-a.focus.x-xt/2:Ft+=Qt/2-a.focus.y-xt/2:y?(Sr=tt[0].S.x+tt[0].la.x,st+=Sr+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-Sr)/2-a.focus.x-xt/2):(Sr=tt[0].S.y+tt[0].la.y,Ft+=Sr+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-Sr)/2-a.focus.y-xt/2);break;case Gu:y?(st-=xt,Zt+=xt):(Ft-=xt,Qt+=xt);break;case Vu:y?(st+=Zt-a.width+xt,Zt+=xt):(Ft+=Qt-a.height+xt,Qt+=xt);break;case Oh:y?1<rt?st+=Sr+vt/2-a.focus.x:st+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Ft+=Sr+vt/2-a.focus.y:Ft+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case Ih:y?st+=Zt+vt/2-a.focus.x:Ft+=Qt+vt/2-a.focus.y;break;case ah:break;default:Qt=this.customAlignment(a,st,Ft,Zt,Qt),st=Qt[0],Ft=Qt[1],Zt=Qt[2],Qt=Qt[3]}for(xt=0;xt<rt;xt++)Sr=tt[xt],y?Sr.S.h(Sr.S.x+Sr.la.x-st,Sr.S.y+(135<E?(ut?-Qt:-Sr.Da.height)+Sr.la.y-x:Xt+x+Sr.la.y)):Sr.S.h(Sr.S.x+(135<E?(ut?-Zt:-Sr.Da.width)+Sr.la.x-x:b+x+Sr.la.x),Sr.S.y+Sr.la.y-Ft);if(rt=tt=0,ut?y?(Zt=Ey(a,Zt,st),0>st&&(st=0),135<E&&(Ft+=Qt+x),Qt+=Xt+x,ot===ah&&(tt+=vt/2+a.focus.x),rt+=Xt+x):(135<E&&(st+=Zt+x),Zt+=b+x,Qt=Fy(a,Qt,Ft),0>Ft&&(Ft=0),ot===ah&&(rt+=vt/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>Zt&&(Zt=Ny(ot,b-Zt,0),tt=Zt.x,rt=Zt.y,Zt=b,st=0):Zt=Ey(a,Zt,st),0>st&&(tt-=st,st=0),135<E&&(Ft+=Qt+x),Qt=Math.max(Math.max(Qt,Xt),Qt+Xt+x),rt+=Xt+x):(135<E&&(st+=Zt+x),Zt=Math.max(Math.max(Zt,b),Zt+b+x),a.comments===null?Xt>Qt&&(Qt=Ny(ot,0,Xt-Qt),tt=Qt.x,rt=Qt.y,Qt=Xt,Ft=0):Qt=Fy(a,Qt,Ft),0>Ft&&(rt-=Ft,Ft=0),tt+=b+x),0<jn)E=Ks(this,4),jn=Ks(this,4),y?(E[2].h(0,Xt+x),E[3].h(E[2].x,Qt),jn[2].h(Zt,E[2].y),jn[3].h(jn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Zt,E[2].y),jn[2].h(E[2].x,Qt),jn[3].h(E[3].x,jn[2].y));else{for(E=Ks(this,te.length+2),jn=Ks(this,ye.length+2),ot=0;ot<te.length;ot++)ut=te[ot],E[ot+2].h(ut.x+tt,ut.y+rt);for(ot=0;ot<ye.length;ot++)ut=ye[ot],jn[ot+2].h(ut.x+tt,ut.y+rt)}y?(E[0].h(st,0),E[1].h(E[0].x,Xt),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),jn[0].h(st+b,0),jn[1].h(jn[0].x,Xt),jn[2].y<jn[1].y&&(jn[2].x<jn[0].x?jn[2].assign(jn[1]):jn[1].assign(jn[2])),jn[3].y<jn[2].y&&(jn[3].x<jn[0].x?jn[3].assign(jn[2]):jn[2].assign(jn[3])),E[2].y-=x/2,jn[2].y-=x/2):(E[0].h(0,Ft),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),jn[0].h(0,Ft+Xt),jn[1].h(b,jn[0].y),jn[2].x<jn[1].x&&(jn[2].y<jn[0].y?jn[2].assign(jn[1]):jn[1].assign(jn[2])),jn[3].x<jn[2].x&&(jn[3].y<jn[0].y?jn[3].assign(jn[2]):jn[2].assign(jn[3])),E[2].x-=x/2,jn[2].x-=x/2),uu(this,te),uu(this,ye),a.Yo=E,a.kp=jn,a.la.h(st,Ft),a.Da.h(Zt,Qt)}break;default:qt("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=xd(x));var E=ky(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=tu(y),x=b===90||b===270;var z=0;E=y.children;for(var tt=E.length,rt=0;rt<tt;rt++){var ot=E[rt];z=Math.max(z,x?ot.Da.width:ot.Da.height)}var st=y.alignment,ut=st===Gu,ft=st===Vu;rt=xd(st);var vt=Math.max(0,y.breadthLimit);ot=a.computeLayerSpacing(y);var xt=y.nodeSpacing,Lt=a.computeNodeIndent(y),Ft=ut||ft?0:Lt/2,Xt=y.rowSpacing,Zt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Zt=Math.max(0,y.rowIndent)),ut=y.width;var Qt=y.height,_t=0,te=0,ye=0,ze=0,ri=0,Ti=0,Ci=0,jn=0,xn=0,Lr=0;if(rt&&!kp(st)&&135<b&&E.reverse(),kp(st))if(1<tt)for(var Sr=0;Sr<tt;Sr++){var lo=E[Sr],Bo=lo.Da;Sr%2===0&&Sr!==tt-1?xn=Math.max(xn,(x?Bo.width:Bo.height)+a.computeBusNodeSpacing(lo)-xt):Sr%2!==0&&(Lr=Math.max(Lr,(x?Bo.width:Bo.height)+a.computeBusNodeSpacing(lo)-xt))}else tt===1&&(xn=x?E[0].Da.width:E[0].Da.height);if(rt)switch(st){case Oh:case Ku:te=135>b?hx(a,y,E,xn,_t,te):dx(a,y,E,xn,_t,te),xn=te.x,_t=te.width,te=te.height;break;case Ih:for(vt=0;vt<tt;vt++)Ft=E[vt],ye=Ft.Da,Lr=Ci===0?0:Xt,x?(Ft.S.h(z-ye.width,ri+Lr),_t=Math.max(_t,ye.width),te=Math.max(te,ri+Lr+ye.height),ri+=Lr+ye.height):(Ft.S.h(ze+Lr,z-ye.height),_t=Math.max(_t,ze+Lr+ye.width),te=Math.max(te,ye.height),ze+=Lr+ye.width),Ci++;break;case ah:for(z=0;z<tt;z++)vt=E[z],Ft=vt.Da,ye=Ci===0?0:Xt,x?(vt.S.h(xt/2+y.focus.x,ri+ye),_t=Math.max(_t,Ft.width),te=Math.max(te,ri+ye+Ft.height),ri+=ye+Ft.height):(vt.S.h(ze+ye,xt/2+y.focus.y),_t=Math.max(_t,ze+ye+Ft.width),te=Math.max(te,Ft.height),ze+=ye+Ft.width),Ci++}else for(Lr=0;Lr<tt;Lr++)Sr=E[Lr],lo=Sr.Da,x?(0<vt&&0<Ci&&ze+xt+lo.width>vt&&(ze<z&&nc(y,st,z-ze,0,jn,Lr-1),Ti++,Ci=0,jn=Lr,ye=te,ze=0,ri=135<b?-te-Xt:te+Xt),Bo=Ci===0?Ft:xt,D0(a,Sr,0,ri),Sr.S.h(ze+Bo,ri),_t=Math.max(_t,ze+Bo+lo.width),te=Math.max(te,ye+(Ti===0?0:Xt)+lo.height),ze+=Bo+lo.width):(0<vt&&0<Ci&&ri+xt+lo.height>vt&&(ri<z&&nc(y,st,0,z-ri,jn,Lr-1),Ti++,Ci=0,jn=Lr,ye=_t,ri=0,ze=135<b?-_t-Xt:_t+Xt),Bo=Ci===0?Ft:xt,D0(a,Sr,ze,0),Sr.S.h(ze,ri+Bo),te=Math.max(te,ri+Bo+lo.height),_t=Math.max(_t,ye+(Ti===0?0:Xt)+lo.width),ri+=Bo+lo.height),Ci++;switch(0<Ti&&(x?(te+=Math.max(0,ot),ze<_t&&nc(y,st,_t-ze,0,jn,tt-1),0<Zt&&(ft||Wc(y,Zt,0,0,tt-1),_t+=Zt)):(_t+=Math.max(0,ot),ri<te&&nc(y,st,0,te-ri,jn,tt-1),0<Zt&&(ft||Wc(y,0,Zt,0,tt-1),te+=Zt))),Zt=ft=0,st){case _f:x?ft+=_t/2-y.focus.x-Lt/2:Zt+=te/2-y.focus.y-Lt/2;break;case Vc:0<Ti?x?ft+=_t/2-y.focus.x-Lt/2:Zt+=te/2-y.focus.y-Lt/2:x?(a=E[0].S.x+E[0].la.x,ft+=a+(E[tt-1].S.x+E[tt-1].la.x+2*E[tt-1].focus.x-a)/2-y.focus.x-Lt/2):(a=E[0].S.y+E[0].la.y,Zt+=a+(E[tt-1].S.y+E[tt-1].la.y+2*E[tt-1].focus.y-a)/2-y.focus.y-Lt/2);break;case Gu:x?(ft-=Lt,_t+=Lt):(Zt-=Lt,te+=Lt);break;case Vu:x?(ft+=_t-y.width+Lt,_t+=Lt):(Zt+=te-y.height+Lt,te+=Lt);break;case Oh:case Ku:x?1<tt?ft+=xn+xt/2-y.focus.x:ft+=E[0].focus.x-y.focus.x+E[0].la.x:1<tt?Zt+=xn+xt/2-y.focus.y:Zt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Ih:x?ft+=_t+xt/2-y.focus.x:Zt+=te+xt/2-y.focus.y;break;case ah:break;default:a=a.customAlignment(y,ft,Zt,_t,te),ft=a[0],Zt=a[1],_t=a[2],te=a[3]}for(a=0;a<tt;a++)Lt=E[a],x?Lt.S.h(Lt.S.x+Lt.la.x-ft,Lt.S.y+(135<b?(rt?-te:-Lt.Da.height)+Lt.la.y-ot:Qt+ot+Lt.la.y)):Lt.S.h(Lt.S.x+(135<b?(rt?-_t:-Lt.Da.width)+Lt.la.x-ot:ut+ot+Lt.la.x),Lt.S.y+Lt.la.y-Zt);x?(_t=Ey(y,_t,ft),0>ft&&(ft=0),135<b&&(Zt+=te+ot),te=Math.max(Math.max(te,Qt),te+Qt+ot)):(135<b&&(ft+=_t+ot),_t=Math.max(Math.max(_t,ut),_t+ut+ot),te=Fy(y,te,Zt),0>Zt&&(Zt=0)),y.la.h(ft,Zt),y.Da.h(_t,te)}}Gr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new de(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new de(b,0,E,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=tu(y)===90,ut=0,ft=0,vt=0,xt=0;xt<tt;xt++)if(!(xt%2!==0||1<tt&&xt===tt-1)){var Lt=x[xt],Ft=Lt.Da,Xt=ut===0?0:ot;if(st){var Zt=a.computeBusNodeSpacing(Lt)-rt;Lt.S.h(b-(Ft.width+Zt),vt+Xt),E=Math.max(E,Ft.width+Zt),z=Math.max(z,vt+Xt+Ft.height),vt+=Xt+Ft.height}else Zt=a.computeBusNodeSpacing(Lt)-rt,Lt.S.h(ft+Xt,b-(Ft.height+Zt)),z=Math.max(z,Ft.height+Zt),E=Math.max(E,ft+Xt+Ft.width),ft+=Xt+Ft.width;ut++}for(ut=0,Lt=ft,xt=vt,st?(ft=b+rt,vt=0):(ft=0,vt=b+rt),Ft=0;Ft<tt;Ft++)if(Ft%2!==0){Xt=x[Ft],Zt=Xt.Da;var Qt=ut===0?0:ot;if(st){var _t=a.computeBusNodeSpacing(Xt)-rt;Xt.S.h(ft+_t,vt+Qt),E=Math.max(E,ft+Zt.width+_t),z=Math.max(z,vt+Qt+Zt.height),vt+=Qt+Zt.height}else _t=a.computeBusNodeSpacing(Xt)-rt,Xt.S.h(ft+Qt,vt+_t),E=Math.max(E,ft+Qt+Zt.width),z=Math.max(z,vt+Zt.height+_t),ft+=Qt+Zt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,st?Math.max(Math.abs(xt),Math.abs(vt)):Math.max(Math.abs(Lt),Math.abs(ft))),st?(x.S.h(b+rt/2-x.focus.x-x.la.x,z+a),st=b+rt/2-x.focus.x-x.la.x,E=Math.max(E,st+tt.width),0>st&&(E-=st),z=Math.max(z,Math.max(xt,vt)+a+tt.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,rt))):(x.S.h(E+a,b+rt/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Lt,ft)+a+tt.width),vt=b+rt/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(b=T0(y,x.S.y,!0,b,rt)))),new de(b,0,E,z)}function dx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new de(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new de(b,0,E,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=tu(y)===270,ut=0,ft=0,vt=0,xt=0;xt<tt;xt++)if(!(xt%2!==0||1<tt&&xt===tt-1)){var Lt=x[xt],Ft=Lt.Da,Xt=ut===0?0:ot;if(st){var Zt=a.computeBusNodeSpacing(Lt)-rt;vt-=Xt+Ft.height,Lt.S.h(b-(Ft.width+Zt),vt),E=Math.max(E,Ft.width+Zt),z=Math.max(z,Math.abs(vt))}else Zt=a.computeBusNodeSpacing(Lt)-rt,ft-=Xt+Ft.width,Lt.S.h(ft,b-(Ft.height+Zt)),z=Math.max(z,Ft.height+Zt),E=Math.max(E,Math.abs(ft));ut++}for(ut=0,Lt=ft,xt=vt,st?(ft=b+rt,vt=0):(ft=0,vt=b+rt),Ft=0;Ft<tt;Ft++)if(Ft%2!==0){Xt=x[Ft],Zt=Xt.Da;var Qt=ut===0?0:ot;if(st){var _t=a.computeBusNodeSpacing(Xt)-rt;vt-=Qt+Zt.height,Xt.S.h(ft+_t,vt),E=Math.max(E,ft+Zt.width+_t),z=Math.max(z,Math.abs(vt))}else _t=a.computeBusNodeSpacing(Xt)-rt,ft-=Qt+Zt.width,Xt.S.h(ft,vt+_t),z=Math.max(z,vt+Zt.height+_t),E=Math.max(E,Math.abs(ft));ut++}for(1<tt&&tt%2===1&&(ot=x[tt-1],ut=ot.Da,a=a.computeBusLastRowSpacing(ot,st?Math.max(Math.abs(xt),Math.abs(vt)):Math.max(Math.abs(Lt),Math.abs(ft))),st?(ot.S.h(b+rt/2-ot.focus.x-ot.la.x,-z-ut.height-a),ft=b+rt/2-ot.focus.x-ot.la.x,E=Math.max(E,ft+ut.width),0>ft&&(E-=ft),z=Math.max(z,Math.abs(Math.min(xt,vt))+a+ut.height),0>ot.S.x&&(b=T0(y,ot.S.x,!1,b,rt))):(ot.S.h(-E-ut.width-a,b+rt/2-ot.focus.y-ot.la.y),E=Math.max(E,Math.abs(Math.min(Lt,ft))+a+ut.width),vt=b+rt/2-ot.focus.y-ot.la.y,z=Math.max(z,vt+ut.height),0>vt&&(z-=vt),0>ot.S.y&&(b=T0(y,ot.S.y,!0,b,rt)))),y=0;y<tt;y++)rt=x[y],st?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+E,rt.S.y);return new de(b,0,E,z)}Gr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Gr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function T0(a,y,x,b,E){a=a.children;for(var z=a.length,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Ey(a,y,x){switch(a.alignment){case Vc:case _f:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Gu:return a.width>y?a.width:y;case Vu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Oh:case Ku:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Ih:return a.width-a.focus.x+a.nodeSpacing/2+y;case ah:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a.alignment){case Vc:case _f:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Gu:return a.height>y?a.height:y;case Vu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Oh:case Ku:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Ih:return a.height-a.focus.y+a.nodeSpacing/2+y;case ah:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case _f:y/=2,x/=2;break;case Vc:y/=2,x/=2;break;case Gu:x=y=0;break;case Vu:break;default:qt("Unhandled alignment value "+a.toString())}return new Bt(y,x)}function nc(a,y,x,b,E,z){y=Ny(y,x,b),Wc(a,y.x,y.y,E,z)}function Wc(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function D0(a,y,x,b){var E=y.parent;switch(a.ud){case Wu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Gc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:qt("Unhandled path value "+a.ud.toString())}}function B0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function cx(a,y,x,b,E,z,tt,rt){var ot=tu(y),st=ot===90||ot===270,ut=y.nodeSpacing;y=b;var ft=E;b=z;var vt=tt,xt=x.Yo,Lt=x.kp;tt=x.Da;var Ft=st?Math.max(vt,tt.height):Math.max(b,tt.width);if((xt===null||ot!==tu(x))&&(xt=Ks(a,2),Lt=Ks(a,2),st?(xt[0].h(0,0),xt[1].h(0,tt.height),Lt[0].h(tt.width,0),Lt[1].h(Lt[0].x,xt[1].y)):(xt[0].h(0,0),xt[1].h(tt.width,0),Lt[0].h(0,tt.height),Lt[1].h(xt[1].x,Lt[0].y))),st){if(vt=9999999,!(ft===null||2>ft.length||xt===null||2>xt.length))for(E=x=0;x<ft.length&&E<xt.length;){z=ft[x];var Xt=xt[E];ot=Xt.x,st=Xt.y,ot+=b;var Zt=z;x+1<ft.length&&(Zt=ft[x+1]);var Qt=Xt;Xt=Qt.x,Qt=Qt.y,E+1<xt.length&&(Qt=xt[E+1],Xt=Qt.x,Qt=Qt.y,Xt+=b);var _t=vt;z.y===st?_t=ot-z.x:z.y>st&&z.y<Qt?_t=ot+(z.y-st)/(Qt-st)*(Xt-ot)-z.x:st>z.y&&st<Zt.y&&(_t=ot-(z.x+(st-z.y)/(Zt.y-z.y)*(Zt.x-z.x))),_t<vt&&(vt=_t),Zt.y<=z.y?x++:Qt<=st?E++:(Zt.y<=Qt&&x++,Qt<=Zt.y&&E++)}if(vt=b-vt,vt+=ut,x=xt,E=vt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=Ks(a,y.length+x.length),b=z=ot=0;z<x.length&&x[z].y<y[0].y;)st=x[z++],ut[b++].h(st.x+E,st.y);for(;ot<y.length;)st=y[ot++],ut[b++].h(st.x,st.y);for(ot=y[y.length-1].y;z<x.length&&x[z].y<=ot;)z++;for(;z<x.length&&x[z].y>ot;)st=x[z++],ut[b++].h(st.x+E,st.y);for(x=Ks(a,b),ot=0;ot<b;ot++)x[ot].assign(ut[ot]);uu(a,ut),b=x}if(z=Lt,ot=vt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=Ks(a,ft.length+z.length),E=st=x=0;x<ft.length&&ft[x].y<z[0].y;)Zt=ft[x++],ut[E++].h(Zt.x,Zt.y);for(;st<z.length;)Zt=z[st++],ut[E++].h(Zt.x+ot,Zt.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)ot=ft[x++],ut[E++].h(ot.x,ot.y);for(z=Ks(a,E),x=0;x<E;x++)z[x].assign(ut[x]);uu(a,ut),E=z}return z=Math.max(0,vt)+tt.width,tt=Ft,uu(a,y),uu(a,xt),uu(a,ft),uu(a,Lt),rt[0]=b,rt[1]=E,new de(vt,0,z,tt)}if(b=9999999,!(ft===null||2>ft.length||xt===null||2>xt.length))for(E=x=0;x<ft.length&&E<xt.length;)z=ft[x],Xt=xt[E],ot=Xt.x,st=Xt.y,st+=vt,Zt=z,x+1<ft.length&&(Zt=ft[x+1]),Qt=Xt,Xt=Qt.x,Qt=Qt.y,E+1<xt.length&&(Qt=xt[E+1],Xt=Qt.x,Qt=Qt.y,Qt+=vt),_t=b,z.x===ot?_t=st-z.y:z.x>ot&&z.x<Xt?_t=st+(z.x-ot)/(Xt-ot)*(Qt-st)-z.y:ot>z.x&&ot<Zt.x&&(_t=st-(z.y+(ot-z.x)/(Zt.x-z.x)*(Zt.y-z.y))),_t<b&&(b=_t),Zt.x<=z.x?x++:Xt<=ot?E++:(Zt.x<=Xt&&x++,Xt<=Zt.x&&E++);if(vt-=b,vt+=ut,x=xt,E=vt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=Ks(a,y.length+x.length),b=z=ot=0;z<x.length&&x[z].x<y[0].x;)st=x[z++],ut[b++].h(st.x,st.y+E);for(;ot<y.length;)st=y[ot++],ut[b++].h(st.x,st.y);for(ot=y[y.length-1].x;z<x.length&&x[z].x<=ot;)z++;for(;z<x.length&&x[z].x>ot;)st=x[z++],ut[b++].h(st.x,st.y+E);for(x=Ks(a,b),ot=0;ot<b;ot++)x[ot].assign(ut[ot]);uu(a,ut),b=x}if(z=Lt,ot=vt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=Ks(a,ft.length+z.length),E=st=x=0;x<ft.length&&ft[x].x<z[0].x;)Zt=ft[x++],ut[E++].h(Zt.x,Zt.y);for(;st<z.length;)Zt=z[st++],ut[E++].h(Zt.x,Zt.y+ot);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)ot=ft[x++],ut[E++].h(ot.x,ot.y);for(z=Ks(a,E),x=0;x<E;x++)z[x].assign(ut[x]);uu(a,ut),E=z}return z=Ft,tt=Math.max(0,vt)+tt.height,uu(a,y),uu(a,xt),uu(a,ft),uu(a,Lt),rt[0]=b,rt[1]=E,new de(vt,0,z,tt)}function Ks(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 Bt;return a}function uu(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Gr.prototype.arrangeTrees=function(){if(this.Rb===j0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof jl){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Ty(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof jl&&a.push(x);switch(this.sorting){case qf:break;case Ep:a.reverse();break;case Fp:a.sort(this.comparer);break;case Np:a.sort(this.comparer),a.reverse();break;default:qt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(Ty(this,E,y+E.la.x,x+E.la.y),this.Rb){case z0:x+=E.Da.height+this.$d.height;break;case Iy:y+=E.Da.width+this.$d.width;break;default:qt("Unhandled arrangement value "+this.Rb.toString())}}}};function Ty(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var tt=y[z];Ty(a,tt,x+tt.S.x,b+tt.S.y)}}}Gr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Gr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Gr.prototype.Gu=function(){if(this.layerStyle===H0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Bt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Bt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var rt=a[tt]+y[tt];this.angle===270?(z-=rt,E.push(new de(0,z,x,rt))):this.angle===90?(E.push(new de(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,E.push(new de(z,0,rt,x))):(E.push(new de(z,0,rt,x)),z+=rt)}this.commitLayers(E,b)}},Gr.prototype.commitLayers=function(){},Gr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Gr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof jl&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}Gr.prototype.setPortSpots=function(a){var y=a.alignment;if(xd(y)){var x=this.ud===Wu,b=tu(a);switch(b){case 0:var E=po;break;case 90:E=Yo;break;case 180:E=wo;break;default:E=Fo}var z=a.children,tt=z.length;switch(y){case Oh:case Ku:for(y=0;y<tt;y++){var rt=z[y];if(rt=(x?rt.sourceEdges:rt.destinationEdges).first(),rt!==null&&(rt=rt.link,rt!==null)){var ot=b===90||b===270?wo:Fo;if(tt===1||y===tt-1&&tt%2===1)switch(b){case 0:ot=wo;break;case 90:ot=Fo;break;case 180:ot=po;break;default:ot=Yo}else y%2===0&&(ot=b===90||b===270?po:Yo);x?(a.setsPortSpot&&(rt.fromSpot=E),a.setsChildPortSpot&&(rt.toSpot=ot)):(a.setsPortSpot&&(rt.fromSpot=ot),a.setsChildPortSpot&&(rt.toSpot=E))}}break;case Ih:for(b=b===90||b===270?po:Yo,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)));break;case ah:for(b=b===90||b===270?wo:Fo,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)))}}else if(x=tu(a),this.ud===Wu){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=po;break;case 90:b.fromSpot=Yo;break;case 180:b.fromSpot=wo;break;default:b.fromSpot=Fo}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=wo;break;case 90:b.toSpot=Fo;break;case 180:b.toSpot=po;break;default:b.toSpot=Yo}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=po;break;case 90:b.toSpot=Yo;break;case 180:b.toSpot=wo;break;default:b.toSpot=Fo}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=wo;break;case 90:b.fromSpot=Fo;break;case 180:b.fromSpot=po;break;default:b.fromSpot=Yo}else b.fromSpot=a.childPortSpot}};function tu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Gr.prototype.computeLayerSpacing=function(a){var y=tu(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Gr.prototype.computeNodeIndent=function(a){var y=tu(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},be.Object.defineProperties(Gr.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!==R0&&a!==By&&a!==Dy&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==H0||(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!==z0&&a!==Iy&&a!==j0||(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!==qf&&a!==Ep&&a!==Fp&&!Np||(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()):qt("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!==I0&&a!==Tp||(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!==qf&&a!==Ep&&a!==Fp&&!Np||(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!==I0&&a!==Tp||(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 O0=new rn(Gr,"PathDefault",-1),Wu=new rn(Gr,"PathDestination",0),Gc=new rn(Gr,"PathSource",1),qf=new rn(Gr,"SortingForwards",10),Ep=new rn(Gr,"SortingReverse",11),Fp=new rn(Gr,"SortingAscending",12),Np=new rn(Gr,"SortingDescending",13),_f=new rn(Gr,"AlignmentCenterSubtrees",20),Vc=new rn(Gr,"AlignmentCenterChildren",21),Gu=new rn(Gr,"AlignmentStart",22),Vu=new rn(Gr,"AlignmentEnd",23),Oh=new rn(Gr,"AlignmentBus",24),Ku=new rn(Gr,"AlignmentBusBranching",25),Ih=new rn(Gr,"AlignmentTopLeftBus",26),ah=new rn(Gr,"AlignmentBottomRightBus",27),I0=new rn(Gr,"CompactionNone",30),Tp=new rn(Gr,"CompactionBlock",31),R0=new rn(Gr,"StyleLayered",40),Dy=new rn(Gr,"StyleLastParents",41),By=new rn(Gr,"StyleAlternating",42),Oy=new rn(Gr,"StyleRootOnly",43),z0=new rn(Gr,"ArrangementVertical",50),Iy=new rn(Gr,"ArrangementHorizontal",51),j0=new rn(Gr,"ArrangementFixedRoots",52),Ry=new rn(Gr,"LayerIndividual",60),zy=new rn(Gr,"LayerSiblings",61),H0=new rn(Gr,"LayerUniform",62);Gr.className="TreeLayout",Gr.PathDefault=O0,Gr.PathDestination=Wu,Gr.PathSource=Gc,Gr.SortingForwards=qf,Gr.SortingReverse=Ep,Gr.SortingAscending=Fp,Gr.SortingDescending=Np,Gr.AlignmentCenterSubtrees=_f,Gr.AlignmentCenterChildren=Vc,Gr.AlignmentStart=Gu,Gr.AlignmentEnd=Vu,Gr.AlignmentBus=Oh,Gr.AlignmentBusBranching=Ku,Gr.AlignmentTopLeftBus=Ih,Gr.AlignmentBottomRightBus=ah,Gr.CompactionNone=I0,Gr.CompactionBlock=Tp,Gr.StyleLayered=R0,Gr.StyleLastParents=Dy,Gr.StyleAlternating=By,Gr.StyleRootOnly=Oy,Gr.ArrangementVertical=z0,Gr.ArrangementHorizontal=Iy,Gr.ArrangementFixedRoots=j0,Gr.LayerIndividual=Ry,Gr.LayerSiblings=zy,Gr.LayerUniform=H0;function Kc(a){Io.call(this,a)}Me(Kc,Io),Kc.prototype.createVertex=function(){return new jl(this)},Kc.prototype.createEdge=function(){return new $f(this)},Kc.className="TreeNetwork";function jl(a){Fa.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 Bt(0,0),this.Da=new Ut(0,0),this.la=new Bt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=qf,this.hd=ry,this.Kb=0,this.Jb=Vc,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Tp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ko,this.wr=!0,this.Dp=ko}Me(jl,Fa),jl.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)},be.Object.defineProperties(jl.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)}}}),jl.className="TreeVertex";function $f(a){tl.call(this,a),this.$t=new Bt(0,0)}Me($f,tl),$f.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Wu:x=this.fromVertex,b=this.toVertex;break;case Gc:x=this.toVertex,b=this.fromVertex;break;default:qt("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=tu(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var ot=a.curve===hl,st=a.isOrthogonal,ut;if(a.uh(),st||ot){for(ut=2;4<a.pointsCount;)a.pv(2);var ft=a.i(1),vt=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);ft=a.i(0),vt=a.i(a.pointsCount-1)}var xt=a.i(a.pointsCount-1);z===0?(x.alignment===Vu?(z=b.bottom+E.y,E.y===0&&ft.y>xt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=b.top+E.y,E.y===0&&ft.y<xt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,b.right+tt,z),ut++,a.m(ut,b.right+tt+(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+2*(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+(E.x-rt),z),ut++,a.m(ut,vt.x,z)):(st&&(a.m(ut,b.right+tt/2,ft.y),ut++),a.m(ut,b.right+tt/2,z),ut++,a.m(ut,b.right+tt+E.x-(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,vt.y))):z===90?(x.alignment===Vu?(z=b.right+E.x,E.x===0&&ft.x>xt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=b.left+E.x,E.x===0&&ft.x<xt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.bottom+tt),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+2*(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)),ut++,a.m(ut,z,vt.y)):(st&&(a.m(ut,ft.x,b.bottom+tt/2),ut++),a.m(ut,z,b.bottom+tt/2),ut++,a.m(ut,z,b.bottom+tt+E.y-(st?rt/2:rt)),ut++,st&&a.m(ut,vt.x,a.i(ut-1).y))):z===180?(x.alignment===Vu?(z=b.bottom+E.y,E.y===0&&ft.y>xt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=b.top+E.y,E.y===0&&ft.y<xt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,b.left-tt,z),ut++,a.m(ut,b.left-tt+(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+2*(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+(E.x+rt),z),ut++,a.m(ut,vt.x,z)):(st&&(a.m(ut,b.left-tt/2,ft.y),ut++),a.m(ut,b.left-tt/2,z),ut++,a.m(ut,b.left-tt+E.x+(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,vt.y))):z===270?(x.alignment===Vu?(z=b.right+E.x,E.x===0&&ft.x>xt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=b.left+E.x,E.x===0&&ft.x<xt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.top-tt),ut++,a.m(ut,z,b.top-tt+(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+2*(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+(E.y+rt)),ut++,a.m(ut,z,vt.y)):(st&&(a.m(ut,ft.x,b.top-tt/2),ut++),a.m(ut,z,b.top-tt/2),ut++,a.m(ut,z,b.top-tt+E.y+(st?rt/2:rt)),ut++,st&&a.m(ut,vt.x,a.i(ut-1).y))):qt("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=tu(x),y!==tu(E)&&(tt=b.computeLayerSpacing(x),rt=x.bounds,x=E.bounds,y===0&&x.left-rt.right<tt+1||y===90&&x.top-rt.bottom<tt+1||y===180&&rt.left-x.right<tt+1||y===270&&rt.top-x.bottom<tt+1||(a.vg(),x=a.curve===hl,E=a.isOrthogonal,b=xd(this.fromVertex.alignment),a.uh(),y===0?(y=rt.right+tt/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)):E?b?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=rt.bottom+tt/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)):E?b?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=rt.left-tt/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)):E?b?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=rt.top-tt/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)):E?b?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()))}}},be.Object.defineProperties($f.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)}}}),$f.className="TreeEdge",Co.prototype.initializeStandardTools=function(){this.gb("Action",new Tl,this.mouseDownTools),this.gb("Relinking",new ol,this.mouseDownTools),this.gb("LinkReshaping",new va,this.mouseDownTools),this.gb("Rotating",new xs,this.mouseDownTools),this.gb("Resizing",new as,this.mouseDownTools),this.gb("Linking",new hs,this.mouseMoveTools),this.gb("Dragging",new Wo,this.mouseMoveTools),this.gb("DragSelecting",new vl,this.mouseMoveTools),this.gb("Panning",new ns,this.mouseMoveTools),this.gb("ContextMenu",new Ps,this.mouseUpTools),this.gb("TextEditing",new Go,this.mouseUpTools),this.gb("ClickCreating",new mh,this.mouseUpTools),this.gb("ClickSelecting",new Yh,this.mouseUpTools)},Lu("Horizontal",new pm),Lu("Spot",new vm),Lu("Table",new Sm),Lu("Viewbox",new wm),Lu("TableRow",new xm),Lu("TableColumn",new Pm),Lu("Graduated",new Ug),Lu("Grid",new Yg),wf.add("GraphLinksModel",za),wf.add("TreeModel",bl);var Z0=gn.go,jy={get licenseKey(){return je.licenseKey},set licenseKey(a){je.licenseKey=a},get version(){return je.version},Group:Mr,EnumValue:rn,List:pn,Set:Ln,Map:Ge,Point:Bt,Size:Ut,Rect:de,Margin:Si,Spot:dn,Geometry:kn,PathFigure:aa,PathSegment:Vr,InputEvent:Ta,DiagramEvent:El,ChangedEvent:zo,Model:Wi,GraphLinksModel:qr,TreeModel:Es,Binding:Sa,Transaction:ga,UndoManager:Ko,CommandHandler:Kt,Tool:Qr,DraggingTool:Wo,DraggingInfo:th,DraggingOptions:at,LinkingBaseTool:ro,LinkingTool:hs,RelinkingTool:ol,LinkReshapingTool:va,ResizingTool:as,RotatingTool:xs,ClickSelectingTool:Yh,ActionTool:Tl,ClickCreatingTool:mh,HTMLInfo:Su,ContextMenuTool:Ps,DragSelectingTool:vl,PanningTool:ns,TextEditingTool:Go,ToolManager:Co,Animation:is,AnimationManager:qs,AnimationTrigger:Xl,Layer:Wa,Diagram:je,Palette:dt,Overview:pt,Brush:yo,GraphObject:Pe,Panel:Tn,RowColumnDefinition:Aa,Shape:Dr,TextBlock:Oo,Picture:Rs,Part:$i,Adornment:oo,Node:di,Link:Zn,Placeholder:bs,Layout:qo,LayoutNetwork:Io,LayoutVertex:Fa,LayoutEdge:tl,GridLayout:Ya,PanelLayout:Ea,CircularLayout:na,CircularNetwork:Uf,CircularVertex:wp,CircularEdge:P0,ForceDirectedLayout:os,ForceDirectedNetwork:Zc,ForceDirectedVertex:Cp,ForceDirectedEdge:Lp,LayeredDigraphLayout:xo,LayeredDigraphNetwork:Qf,LayeredDigraphVertex:Al,LayeredDigraphEdge:Ap,TreeLayout:Gr,TreeNetwork:Kc,TreeVertex:jl,TreeEdge:$f};typeof Z0=="object"&&Z0.version&&Ai("WARNING: a `go` object on the root object is already defined. "+("Debug"in Z0?"debug ":"")+"version: "+Z0.version+", replaced with version: "+jy.version),je.prototype.go=jy,gn.go=jy,typeof An.exports=="object"&&(An.exports=typeof Et.g!="undefined"?Et.g.go:self.go)}();var Mt=typeof Et.g!="undefined"?Et.g.go:self.go;const ne=typeof Et.g!="undefined"?Et.g.go:self.go,ge=ne.Group,xe=ne.EnumValue,ee=ne.List,Ht=ne.Set,oe=ne.Map,Re=ne.Point,ve=ne.Size,Tt=ne.Rect,Ue=ne.Margin,ie=ne.Spot,Je=ne.Geometry,Ot=ne.PathFigure,et=ne.PathSegment,nt=ne.InputEvent,ct=ne.DiagramEvent,lt=ne.ChangedEvent,gt=ne.Model,mt=ne.GraphLinksModel,St=ne.TreeModel,wt=ne.Binding,zt=ne.Transaction,Wt=ne.UndoManager,$t=ne.CommandHandler,Jt=ne.Tool,Vt=ne.DraggingTool,pe=ne.DraggingInfo,ce=ne.LinkingBaseTool,Ee=ne.LinkingTool,Ie=ne.RelinkingTool,ke=ne.LinkReshapingTool,wn=ne.ResizingTool,on=ne.RotatingTool,qe=ne.ClickSelectingTool,We=ne.ActionTool,he=ne.ClickCreatingTool,It=ne.HTMLInfo,Le=ne.ContextMenuTool,an=ne.DragSelectingTool,Ze=ne.PanningTool,Ce=ne.TextEditingTool,nn=ne.ToolManager,Ye=ne.Animation,Sn=ne.AnimationManager,Fe=ne.AnimationTrigger,vn=ne.Layer,ue=ne.Diagram,Ve=ne.Palette,In=ne.Overview,Dt=ne.Brush,Ct=ne.GraphObject,yt=ne.Panel,kt=ne.RowColumnDefinition,jt=ne.Shape,bt=ne.TextBlock,Gt=ne.TextBlockMetrics,fe=ne.Picture,Se=ne.Part,Be=ne.Adornment,re=ne.Node,Te=ne.Link,Ne=ne.Placeholder,$e=ne.Layout,fn=ne.LayoutNetwork,tn=ne.LayoutVertex,He=ne.LayoutEdge,On=ne.GridLayout,Xn=ne.PanelLayout,Pn=ne.CircularLayout,Gn=ne.CircularNetwork,Ni=ne.CircularVertex,xi=ne.CircularEdge,ki=ne.ForceDirectedLayout,tr=ne.ForceDirectedNetwork,Qe=ne.ForceDirectedVertex,sn=ne.ForceDirectedEdge,Qn=ne.LayeredDigraphLayout,Li=ne.LayeredDigraphNetwork,Ri=ne.LayeredDigraphVertex,Pi=ne.LayeredDigraphEdge,ur=ne.TreeLayout,ir=ne.TreeNetwork,pr=ne.TreeVertex,ci=ne.TreeEdge,qi=ne.version},2859:function(An,Un,Et){"use strict";Et.d(Un,{hP:function(){return In}});var Mt=function(Dt,Ct){return(Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,kt){yt.__proto__=kt}||function(yt,kt){for(var jt in kt)Object.prototype.hasOwnProperty.call(kt,jt)&&(yt[jt]=kt[jt])})(Dt,Ct)};function ne(Dt,Ct){function yt(){this.constructor=Dt}Mt(Dt,Ct),Dt.prototype=Ct===null?Object.create(Ct):(yt.prototype=Ct.prototype,new yt)}function ge(Dt,Ct,yt,kt){return new(yt||(yt=Promise))(function(jt,bt){function Gt(Be){try{Se(kt.next(Be))}catch(re){bt(re)}}function fe(Be){try{Se(kt.throw(Be))}catch(re){bt(re)}}function Se(Be){var re;Be.done?jt(Be.value):(re=Be.value,re instanceof yt?re:new yt(function(Te){Te(re)})).then(Gt,fe)}Se((kt=kt.apply(Dt,Ct||[])).next())})}function xe(Dt,Ct){var yt,kt,jt,bt,Gt={label:0,sent:function(){if(1&jt[0])throw jt[1];return jt[1]},trys:[],ops:[]};return bt={next:fe(0),throw:fe(1),return:fe(2)},typeof Symbol=="function"&&(bt[Symbol.iterator]=function(){return this}),bt;function fe(Se){return function(Be){return function(re){if(yt)throw new TypeError("Generator is already executing.");for(;Gt;)try{if(yt=1,kt&&(jt=2&re[0]?kt.return:re[0]?kt.throw||((jt=kt.return)&&jt.call(kt),0):kt.next)&&!(jt=jt.call(kt,re[1])).done)return jt;switch(kt=0,jt&&(re=[2&re[0],jt.value]),re[0]){case 0:case 1:jt=re;break;case 4:return Gt.label++,{value:re[1],done:!1};case 5:Gt.label++,kt=re[1],re=[0];continue;case 7:re=Gt.ops.pop(),Gt.trys.pop();continue;default:if(jt=Gt.trys,!((jt=jt.length>0&&jt[jt.length-1])||re[0]!==6&&re[0]!==2)){Gt=0;continue}if(re[0]===3&&(!jt||re[1]>jt[0]&&re[1]<jt[3])){Gt.label=re[1];break}if(re[0]===6&&Gt.label<jt[1]){Gt.label=jt[1],jt=re;break}if(jt&&Gt.label<jt[2]){Gt.label=jt[2],Gt.ops.push(re);break}jt[2]&&Gt.ops.pop(),Gt.trys.pop();continue}re=Ct.call(Dt,Gt)}catch(Te){re=[6,Te],kt=0}finally{yt=jt=0}if(5&re[0])throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}([Se,Be])}}}function ee(){for(var Dt=0,Ct=0,yt=arguments.length;Ct<yt;Ct++)Dt+=arguments[Ct].length;var kt=Array(Dt),jt=0;for(Ct=0;Ct<yt;Ct++)for(var bt=arguments[Ct],Gt=0,fe=bt.length;Gt<fe;Gt++,jt++)kt[jt]=bt[Gt];return kt}var Ht=function(){function Dt(){}return Dt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Dt.setAttributes=function(Ct,yt){for(var kt=0,jt=yt;kt<jt.length;kt++){var bt=jt[kt],Gt=bt[0],fe=bt[1];Ct.setAttribute(Gt,fe)}},Dt.createRect=function(Ct,yt,kt){var jt=document.createElementNS("http://www.w3.org/2000/svg","rect");return jt.setAttribute("width",Ct.toString()),jt.setAttribute("height",yt.toString()),kt&&Dt.setAttributes(jt,kt),jt},Dt.createLine=function(Ct,yt,kt,jt,bt){var Gt=document.createElementNS("http://www.w3.org/2000/svg","line");return Gt.setAttribute("x1",Ct.toString()),Gt.setAttribute("y1",yt.toString()),Gt.setAttribute("x2",kt.toString()),Gt.setAttribute("y2",jt.toString()),bt&&Dt.setAttributes(Gt,bt),Gt},Dt.createPolygon=function(Ct,yt){var kt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return kt.setAttribute("points",Ct),yt&&Dt.setAttributes(kt,yt),kt},Dt.createCircle=function(Ct,yt){var kt=document.createElementNS("http://www.w3.org/2000/svg","circle");return kt.setAttribute("cx",(Ct/2).toString()),kt.setAttribute("cy",(Ct/2).toString()),kt.setAttribute("r",Ct.toString()),yt&&Dt.setAttributes(kt,yt),kt},Dt.createEllipse=function(Ct,yt,kt){var jt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return jt.setAttribute("cx",(Ct/2).toString()),jt.setAttribute("cy",(yt/2).toString()),jt.setAttribute("rx",(Ct/2).toString()),jt.setAttribute("ry",(yt/2).toString()),kt&&Dt.setAttributes(jt,kt),jt},Dt.createGroup=function(Ct){var yt=document.createElementNS("http://www.w3.org/2000/svg","g");return Ct&&Dt.setAttributes(yt,Ct),yt},Dt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Dt.createMarker=function(Ct,yt,kt,jt,bt,Gt,fe){var Se=document.createElementNS("http://www.w3.org/2000/svg","marker");return Dt.setAttributes(Se,[["id",Ct],["orient",yt],["markerWidth",kt.toString()],["markerHeight",jt.toString()],["refX",bt.toString()],["refY",Gt.toString()]]),Se.appendChild(fe),Se},Dt.createText=function(Ct){var yt=document.createElementNS("http://www.w3.org/2000/svg","text");return yt.setAttribute("x","0"),yt.setAttribute("y","0"),Ct&&Dt.setAttributes(yt,Ct),yt},Dt.createTSpan=function(Ct,yt){var kt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return kt.textContent=Ct,yt&&Dt.setAttributes(kt,yt),kt},Dt.createImage=function(Ct){var yt=document.createElementNS("http://www.w3.org/2000/svg","image");return Ct&&Dt.setAttributes(yt,Ct),yt},Dt.createPoint=function(Ct,yt){var kt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return kt.x=Ct,kt.y=yt,kt},Dt.createPath=function(Ct,yt){var kt=document.createElementNS("http://www.w3.org/2000/svg","path");return kt.setAttribute("d",Ct),yt&&Dt.setAttributes(kt,yt),kt},Dt}(),oe=function(){function Dt(){}return Dt.addKey=function(Ct){Dt.key=Ct},Object.defineProperty(Dt,"isLicensed",{get:function(){return!!Dt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Dt.key)},enumerable:!1,configurable:!0}),Dt}(),Re=function(){function Dt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Dt.prototype.rasterize=function(Ct,yt,kt){var jt=this;return new Promise(function(bt){var Gt=kt!==void 0?kt:document.createElement("canvas");Ct===null&&(jt.markersOnly=!0,jt.naturalSize=!1);var fe=document.createElementNS("http://www.w3.org/2000/svg","svg");fe.setAttribute("xmlns","http://www.w3.org/2000/svg"),fe.setAttribute("width",yt.width.baseVal.valueAsString),fe.setAttribute("height",yt.height.baseVal.valueAsString),fe.setAttribute("viewBox","0 0 "+yt.viewBox.baseVal.width.toString()+" "+yt.viewBox.baseVal.height.toString()),fe.innerHTML=yt.innerHTML,jt.naturalSize===!0?(fe.width.baseVal.value=Ct.naturalWidth,fe.height.baseVal.value=Ct.naturalHeight):jt.width!==void 0&&jt.height!==void 0&&(fe.width.baseVal.value=jt.width,fe.height.baseVal.value=jt.height),Gt.width=fe.width.baseVal.value,Gt.height=fe.height.baseVal.value;var Se=fe.outerHTML,Be=Gt.getContext("2d");jt.markersOnly!==!0&&Be.drawImage(Ct,0,0,Gt.width,Gt.height);var re=window.URL,Te=new Image(Gt.width,Gt.height);Te.setAttribute("crossOrigin","anonymous");var Ne=new Blob([Se],{type:"image/svg+xml"}),$e=re.createObjectURL(Ne);Te.onload=function(){Be.drawImage(Te,0,0),re.revokeObjectURL($e);var fn=Gt.toDataURL(jt.imageType,jt.imageQuality);bt(fn)},Te.src=$e})},Dt}(),ve=function(){},Tt=function(){function Dt(Ct){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ct+"_"}return Object.defineProperty(Dt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.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(Dt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Dt.prototype.addClass=function(Ct){return this.styleSheet===void 0&&this.addStyleSheet(),Ct.name=""+this.classNamePrefix+Ct.localName,this.classes.push(Ct),this.styleSheet.sheet.insertRule("."+Ct.name+" {"+Ct.style+"}",this.styleSheet.sheet.cssRules.length),Ct},Dt.prototype.addRule=function(Ct){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ct),this.styleSheet.sheet.insertRule(Ct.selector+" {"+Ct.style+"}",this.styleSheet.sheet.cssRules.length)},Dt.prototype.addStyleSheet=function(){var Ct;this.styleSheet=document.createElement("style"),((Ct=this.styleSheetRoot)!==null&&Ct!==void 0?Ct:document.head).appendChild(this.styleSheet),this.addRule(new Ue("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ue("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new Ue("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new ie("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new ie("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Dt.prototype.removeStyleSheet=function(){var Ct;this.styleSheet&&(((Ct=this.styleSheetRoot)!==null&&Ct!==void 0?Ct:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Dt}(),Ue=function(Dt,Ct){this.selector=Dt,this.style=Ct},ie=function(Dt,Ct){this.localName=Dt,this.style=Ct},Je=function(){function Dt(Ct,yt,kt,jt,bt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ct,this.displayMode=yt,this.markerItems=kt,this.uiStyleSettings=jt,this.styles=bt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Dt.prototype.show=function(Ct){var yt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var kt=document.createElement("div");kt.className=this.toolbarBlockStyleClass.name,kt.style.whiteSpace="nowrap",this.uiContainer.appendChild(kt),this.addActionButton(kt,'<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(kt,'<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(kt,'<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(kt,'<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(kt,'<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(kt,'<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(kt,'<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(kt,'<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(bt){var Gt=document.createElement("div");Gt.className=""+yt.toolbarButtonStyleClass.name,Gt.setAttribute("data-type-name",bt.typeName),Gt.innerHTML=bt.icon,Gt.addEventListener("click",function(){yt.markerToolbarButtonClicked(Gt,bt)}),yt.buttons.push(Gt),yt.markerButtons.push(Gt)}),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 jt=document.createElement("div");jt.className=this.toolbarBlockStyleClass.name,jt.style.whiteSpace="nowrap",jt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(jt),this.addActionButton(jt,'<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(jt,'<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()},Dt.prototype.addButtonClickListener=function(Ct){this.buttonClickListeners.push(Ct)},Dt.prototype.removeButtonClickListener=function(Ct){this.buttonClickListeners.indexOf(Ct)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ct),1)},Dt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Dt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ct=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var yt=0;yt<this.markerButtons.length;yt++)yt<Ct||yt===Ct&&this.markerButtons.length-1===Ct?this.markerButtonBlock.appendChild(this.markerButtons[yt]):(yt===Ct&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[yt]))}},Dt.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")},Dt.prototype.resetButtonStyles=function(){var Ct=this;this.buttons.forEach(function(yt){yt.className=yt.className.replace(Ct.uiStyleSettings.toolbarButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarButtonStyleColorsClassName:Ct.toolbarButtonStyleColorsClass.name,"").trim(),yt.className=yt.className.replace(Ct.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ct.toolbarActiveButtonStyleColorsClass.name,"").trim(),yt.className+=" "+(Ct.uiStyleSettings.toolbarButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarButtonStyleColorsClassName:Ct.toolbarButtonStyleColorsClass.name)})},Dt.prototype.addActionButton=function(Ct,yt,kt){var jt=this,bt=document.createElement("div");switch(bt.className=""+this.toolbarButtonStyleClass.name,bt.innerHTML=yt,bt.setAttribute("data-action",kt),bt.addEventListener("click",function(){jt.actionToolbarButtonClicked(bt,kt)}),kt){case"select":bt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":bt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":bt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":bt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":bt.style.fill=this.uiStyleSettings.closeButtonColor}Ct.appendChild(bt),this.buttons.push(bt)},Dt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ie("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 ie("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ie("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ie("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 ie("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Ct=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ie("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
padding: `+Ct+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ie("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Ue("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new Ue("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Dt.prototype.markerToolbarButtonClicked=function(Ct,yt){this.setActiveButton(Ct),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(kt){return kt("marker",yt)}),this.markerButtonOverflowBlock.style.display="none"},Dt.prototype.actionToolbarButtonClicked=function(Ct,yt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(kt){return kt("action",yt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Dt.prototype.setActiveButton=function(Ct){this.resetButtonStyles(),Ct.className=Ct.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ct.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Dt.prototype.setActiveMarkerButton=function(Ct){var yt=this.markerButtons.find(function(kt){return kt.getAttribute("data-type-name")===Ct});yt&&this.setActiveButton(yt)},Dt.prototype.setCurrentMarker=function(Ct){var yt=this;this.currentMarker=Ct,this.buttons.filter(function(kt){return/delete|notes/.test(kt.getAttribute("data-action"))}).forEach(function(kt){yt.currentMarker===void 0?(kt.style.fillOpacity="0.4",kt.style.pointerEvents="none"):(kt.style.fillOpacity="1",kt.style.pointerEvents="all")})},Dt}(),Ot=function(){function Dt(Ct,yt,kt,jt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ct,this.displayMode=yt,this.uiStyleSettings=kt,this.styles=jt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Dt.prototype.addStyles=function(){var Ct;this.toolboxStyleClass=this.styles.addClass(new ie("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 ie("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var yt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ie("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ie("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ie("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 ie("toolbox-panel-row_colors",`
|
|
background-color: `+((Ct=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ct!==void 0?Ct:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ie("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*yt)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*yt)+`px;
|
|
padding: `+yt+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new Ue("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Ue("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Dt.prototype.show=function(Ct){var yt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolboxStyleClass.name+" "+((yt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&yt!==void 0?yt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Dt.prototype.setPanelButtons=function(Ct){var yt,kt,jt=this;this.panels=Ct,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((yt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&yt!==void 0?yt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((kt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&kt!==void 0?kt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(bt){var Gt;bt.uiStyleSettings=jt.uiStyleSettings;var fe=document.createElement("div");fe.className=jt.toolboxButtonStyleClass.name+" "+((Gt=jt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Gt!==void 0?Gt:jt.toolboxButtonStyleColorsClass.name),fe.innerHTML=bt.icon,fe.title=bt.title,fe.addEventListener("click",function(){jt.panelButtonClick(bt)}),jt.panelButtons.push(fe),jt.buttonRow.appendChild(fe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Dt.prototype.panelButtonClick=function(Ct){var yt=this,kt=-1;if(Ct!==this.activePanel){kt=this.panels.indexOf(Ct),this.panelRow.innerHTML="";var jt=Ct.getUi();jt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(jt),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=Ct}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){yt.displayMode==="inline"?yt.panelRow.style.display="none":yt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(bt,Gt){var fe,Se;bt.className=yt.toolboxButtonStyleClass.name+" "+(Gt===kt?""+((fe=yt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&fe!==void 0?fe:yt.toolboxActiveButtonStyleColorsClass.name):""+((Se=yt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Se!==void 0?Se:yt.toolboxButtonStyleColorsClass.name))})},Dt}(),et=function(Dt,Ct){this.title=Dt,this.icon=Ct},nt=function(Dt){function Ct(yt,kt,jt,bt){var Gt=Dt.call(this,yt,bt||'<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 Gt.colors=[],Gt.addTransparent=!1,Gt.colorBoxes=[],Gt.colors=kt,Gt.currentColor=jt,Gt.setCurrentColor=Gt.setCurrentColor.bind(Gt),Gt.getColorBox=Gt.getColorBox.bind(Gt),Gt}return ne(Ct,Dt),Ct.prototype.getUi=function(){var yt=this,kt=document.createElement("div");return kt.style.overflow="hidden",kt.style.whiteSpace="nowrap",this.colors.forEach(function(jt){var bt=yt.getColorBox(jt);kt.appendChild(bt),yt.colorBoxes.push(bt)}),kt},Ct.prototype.getColorBox=function(yt){var kt=this,jt=this.uiStyleSettings.toolbarHeight/4,bt=this.uiStyleSettings.toolbarHeight-jt,Gt=document.createElement("div");Gt.style.display="inline-block",Gt.style.boxSizing="content-box",Gt.style.width=bt-2+"px",Gt.style.height=bt-2+"px",Gt.style.padding="1px",Gt.style.marginRight="2px",Gt.style.marginBottom="2px",Gt.style.borderWidth="2px",Gt.style.borderStyle="solid",Gt.style.borderRadius=(bt+2)/2+"px",Gt.style.borderColor=yt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Gt.addEventListener("click",function(){kt.setCurrentColor(yt,Gt)});var fe=document.createElement("div");return fe.style.display="inline-block",fe.style.width=bt-2+"px",fe.style.height=bt-2+"px",fe.style.backgroundColor=yt,fe.style.borderRadius=bt/2+"px",yt==="transparent"&&(fe.style.fill=this.uiStyleSettings.toolboxAccentColor,fe.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>`),Gt.appendChild(fe),Gt},Ct.prototype.setCurrentColor=function(yt,kt){var jt=this;this.currentColor=yt,this.colorBoxes.forEach(function(bt){bt.style.borderColor=bt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(yt)},Ct}(et),ct=function(){function Dt(Ct,yt,kt){this._state="new",this._isSelected=!1,this._container=Ct,this._overlayContainer=yt,this.globalSettings=kt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Dt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Dt.prototype.ownsTarget=function(Ct){return!1},Object.defineProperty(Dt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Dt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Dt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Dt.prototype.pointerDown=function(Ct,yt){},Dt.prototype.dblClick=function(Ct,yt){},Dt.prototype.manipulate=function(Ct){},Dt.prototype.pointerUp=function(Ct){this.stateChanged()},Dt.prototype.dispose=function(){},Dt.prototype.addMarkerVisualToContainer=function(Ct){this.container.childNodes.length>0?this.container.insertBefore(Ct,this.container.childNodes[0]):this.container.appendChild(Ct)},Dt.prototype.getState=function(){return{typeName:Dt.typeName,state:this.state,notes:this.notes}},Dt.prototype.restoreState=function(Ct){this._state=Ct.state,this.notes=Ct.notes},Dt.prototype.scale=function(Ct,yt){},Dt.prototype.colorChanged=function(Ct){this.onColorChanged&&this.onColorChanged(Ct),this.stateChanged()},Dt.prototype.fillColorChanged=function(Ct){this.onFillColorChanged&&this.onFillColorChanged(Ct),this.stateChanged()},Dt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ct=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ct.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ct)&&this.onStateChanged(this)}},Dt.typeName="MarkerBase",Dt}(),lt=function(){function Dt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Dt.prototype.findGripByVisual=function(Ct){return this.topLeft.ownsTarget(Ct)?this.topLeft:this.topCenter.ownsTarget(Ct)?this.topCenter:this.topRight.ownsTarget(Ct)?this.topRight:this.centerLeft.ownsTarget(Ct)?this.centerLeft:this.centerRight.ownsTarget(Ct)?this.centerRight:this.bottomLeft.ownsTarget(Ct)?this.bottomLeft:this.bottomCenter.ownsTarget(Ct)?this.bottomCenter:this.bottomRight.ownsTarget(Ct)?this.bottomRight:void 0},Dt}(),gt=function(){function Dt(){this.GRIP_SIZE=10,this.visual=Ht.createGroup(),this.visual.appendChild(Ht.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ht.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Dt.prototype.ownsTarget=function(Ct){return Ct===this.visual||Ct===this.visual.childNodes[0]||Ct===this.visual.childNodes[1]},Dt}(),mt=function(){function Dt(){}return Dt.toITransformMatrix=function(Ct){return{a:Ct.a,b:Ct.b,c:Ct.c,d:Ct.d,e:Ct.e,f:Ct.f}},Dt.toSVGMatrix=function(Ct,yt){return Ct.a=yt.a,Ct.b=yt.b,Ct.c=yt.c,Ct.d=yt.d,Ct.e=yt.e,Ct.f=yt.f,Ct},Dt}(),St=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.left=0,bt.top=0,bt.width=0,bt.height=0,bt.defaultSize={x:50,y:20},bt.offsetX=0,bt.offsetY=0,bt.rotationAngle=0,bt.CB_DISTANCE=10,bt._suppressMarkerCreateEvent=!1,bt.container.transform.baseVal.appendItem(Ht.createTransform()),bt.setupControlBox(),bt}return ne(Ct,Dt),Object.defineProperty(Ct.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"visual",{get:function(){return this._visual},set:function(yt){this._visual=yt;var kt=Ht.createTransform();this._visual.transform.baseVal.appendItem(kt)},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(yt){return!!Dt.prototype.ownsTarget.call(this,yt)||!!(this.controlGrips.findGripByVisual(yt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(yt))},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.state==="new"&&(this.left=yt.x,this.top=yt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var jt=this.unrotatePoint(yt);if(this.manipulationStartX=jt.x,this.manipulationStartY=jt.y,this.offsetX=jt.x-this.left,this.offsetY=jt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(kt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(kt)){this.activeGrip=this.rotatorGrip;var bt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=bt.x-this.width/2,this.top=bt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Gt=this.container.transform.baseVal.getItem(0);Gt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Gt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ct.prototype.pointerUp=function(yt){var kt=this.state;Dt.prototype.pointerUp.call(this,yt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(yt),this._state="select",kt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ct.prototype.moveVisual=function(yt){this.visual.style.transform="translate("+yt.x+"px, "+yt.y+"px)"},Ct.prototype.manipulate=function(yt){var kt=this.unrotatePoint(yt);this.state==="creating"?this.resize(yt):this.state==="move"?(this.left=this.manipulationStartLeft+(kt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(kt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(kt):this.state==="rotate"&&this.rotate(yt)},Ct.prototype.resize=function(yt){var kt=this.manipulationStartLeft,jt=this.manipulationStartWidth,bt=this.manipulationStartTop,Gt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:kt=this.manipulationStartLeft+yt.x-this.manipulationStartX,jt=this.manipulationStartWidth+this.manipulationStartLeft-kt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:jt=this.manipulationStartWidth+yt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:bt=this.manipulationStartTop+yt.y-this.manipulationStartY,Gt=this.manipulationStartHeight+this.manipulationStartTop-bt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Gt=this.manipulationStartHeight+yt.y-this.manipulationStartY}jt>=0?(this.left=kt,this.width=jt):(this.left=kt+jt,this.width=-jt),Gt>=0?(this.top=bt,this.height=Gt):(this.top=bt+Gt,this.height=-Gt),this.setSize()},Ct.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ct.prototype.rotate=function(yt){if(Math.abs(yt.x-this.centerX)>.1){var kt=Math.sign(yt.x-this.centerX);this.rotationAngle=180*Math.atan((yt.y-this.centerY)/(yt.x-this.centerX))/Math.PI+90*kt,this.applyRotation()}},Ct.prototype.applyRotation=function(){var yt=this.container.transform.baseVal.getItem(0);yt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(yt,0)},Ct.prototype.rotatePoint=function(yt){if(this.rotationAngle===0)return yt;var kt=this.container.getCTM(),jt=Ht.createPoint(yt.x,yt.y);return{x:(jt=jt.matrixTransform(kt)).x,y:jt.y}},Ct.prototype.unrotatePoint=function(yt){if(this.rotationAngle===0)return yt;var kt=this.container.getCTM();kt=kt.inverse();var jt=Ht.createPoint(yt.x,yt.y);return{x:(jt=jt.matrixTransform(kt)).x,y:jt.y}},Ct.prototype.select=function(){Dt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Dt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=Ht.createGroup();var yt=Ht.createTransform();yt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(yt),this.container.appendChild(this.controlBox),this.controlRect=Ht.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=Ht.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 lt,this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){var yt=this.controlBox.transform.baseVal.getItem(0);yt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(yt,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()},Ct.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()},Ct.prototype.createGrip=function(){var yt=new gt;return yt.visual.transform.baseVal.appendItem(Ht.createTransform()),this.controlBox.appendChild(yt.visual),yt},Ct.prototype.positionGrips=function(){var yt=this.controlGrips.topLeft.GRIP_SIZE,kt=-yt/2,jt=kt,bt=(this.width+this.CB_DISTANCE)/2-yt/2,Gt=(this.height+this.CB_DISTANCE)/2-yt/2,fe=this.height+this.CB_DISTANCE-yt/2,Se=this.width+this.CB_DISTANCE-yt/2;this.positionGrip(this.controlGrips.topLeft.visual,kt,jt),this.positionGrip(this.controlGrips.topCenter.visual,bt,jt),this.positionGrip(this.controlGrips.topRight.visual,Se,jt),this.positionGrip(this.controlGrips.centerLeft.visual,kt,Gt),this.positionGrip(this.controlGrips.centerRight.visual,Se,Gt),this.positionGrip(this.controlGrips.bottomLeft.visual,kt,fe),this.positionGrip(this.controlGrips.bottomCenter.visual,bt,fe),this.positionGrip(this.controlGrips.bottomRight.visual,Se,fe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,bt,jt-3*this.CB_DISTANCE)},Ct.prototype.positionGrip=function(yt,kt,jt){var bt=yt.transform.baseVal.getItem(0);bt.setTranslate(kt,jt),yt.transform.baseVal.replaceItem(bt,0)},Ct.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ct.prototype.showControlBox=function(){this.controlBox.style.display=""},Ct.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Dt.prototype.getState.call(this))},Ct.prototype.restoreState=function(yt){Dt.prototype.restoreState.call(this,yt);var kt=yt;this.left=kt.left,this.top=kt.top,this.width=kt.width,this.height=kt.height,this.rotationAngle=kt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,kt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,kt.containerTransformMatrix))},Ct.prototype.scale=function(yt,kt){Dt.prototype.scale.call(this,yt,kt);var jt=this.rotatePoint({x:this.left,y:this.top}),bt=this.unrotatePoint({x:jt.x*yt,y:jt.y*kt});this.left=bt.x,this.top=bt.y,this.width=this.width*yt,this.height=this.height*kt,this.adjustControlBox()},Ct}(ct),wt=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.fillColor="transparent",bt.strokeColor="transparent",bt.strokeWidth=0,bt.strokeDasharray="",bt.opacity=1,bt.setStrokeColor=bt.setStrokeColor.bind(bt),bt.setFillColor=bt.setFillColor.bind(bt),bt.setStrokeWidth=bt.setStrokeWidth.bind(bt),bt.setStrokeDasharray=bt.setStrokeDasharray.bind(bt),bt.createVisual=bt.createVisual.bind(bt),bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return!(!Dt.prototype.ownsTarget.call(this,yt)&&yt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=Ht.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)},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.state==="new"&&(this.createVisual(),this.moveVisual(yt),this._state="creating")},Ct.prototype.manipulate=function(yt){Dt.prototype.manipulate.call(this,yt)},Ct.prototype.resize=function(yt){Dt.prototype.resize.call(this,yt),this.setSize()},Ct.prototype.setSize=function(){Dt.prototype.setSize.call(this),Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(yt){Dt.prototype.pointerUp.call(this,yt),this.setSize()},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.visual&&Ht.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(yt),this.stateChanged()},Ct.prototype.setFillColor=function(yt){this.fillColor=yt,this.visual&&Ht.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.visual&&Ht.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.visual&&Ht.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Dt.prototype.getState.call(this))},Ct.prototype.restoreState=function(yt){var kt=yt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.opacity=kt.opacity,this.createVisual(),Dt.prototype.restoreState.call(this,yt),this.setSize()},Ct.prototype.scale=function(yt,kt){Dt.prototype.scale.call(this,yt,kt),this.setSize()},Ct.title="Rectangle marker",Ct}(St),zt=function(Dt){function Ct(yt,kt,jt,bt){var Gt=Dt.call(this,yt,bt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Gt.widths=[],Gt.widthBoxes=[],Gt.widths=kt,Gt.currentWidth=jt,Gt.setCurrentWidth=Gt.setCurrentWidth.bind(Gt),Gt}return ne(Ct,Dt),Ct.prototype.getUi=function(){var yt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",this.widths.forEach(function(jt){var bt=document.createElement("div");bt.style.display="flex",bt.style.flexGrow="2",bt.style.alignItems="center",bt.style.justifyContent="space-between",bt.style.padding="5px",bt.style.borderWidth="2px",bt.style.borderStyle="solid",bt.style.borderColor=jt===yt.currentWidth?yt.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){yt.setCurrentWidth(jt,bt)}),kt.appendChild(bt);var Gt=document.createElement("div");Gt.innerText=jt.toString(),Gt.style.marginRight="5px",bt.appendChild(Gt);var fe=document.createElement("div");fe.style.minHeight="20px",fe.style.flexGrow="2",fe.style.display="flex",fe.style.alignItems="center";var Se=document.createElement("hr");Se.style.minWidth="20px",Se.style.border="0px",Se.style.borderTop=jt+"px solid "+yt.uiStyleSettings.toolboxColor,Se.style.flexGrow="2",fe.appendChild(Se),bt.appendChild(fe),yt.widthBoxes.push(bt)}),kt},Ct.prototype.setCurrentWidth=function(yt,kt){var jt=this;this.currentWidth=yt,this.widthBoxes.forEach(function(bt){bt.style.borderColor=bt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ct}(et),Wt=function(Dt){function Ct(yt,kt,jt,bt){var Gt=Dt.call(this,yt,bt||'<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 Gt.styles=[],Gt.styleBoxes=[],Gt.styles=kt,Gt.currentStyle=jt,Gt.setCurrentStyle=Gt.setCurrentStyle.bind(Gt),Gt}return ne(Ct,Dt),Ct.prototype.getUi=function(){var yt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",this.styles.forEach(function(jt){var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.justifyContent="space-between",bt.style.padding="5px",bt.style.borderWidth="2px",bt.style.borderStyle="solid",bt.style.overflow="hidden",bt.style.maxWidth=100/yt.styles.length-5+"%",bt.style.borderColor=jt===yt.currentStyle?yt.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){yt.setCurrentStyle(jt,bt)}),kt.appendChild(bt);var Gt=document.createElement("div");Gt.style.minHeight="20px",Gt.style.flexGrow="2",Gt.style.overflow="hidden";var fe=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+yt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(jt!==""?'stroke-dasharray="'+jt+'"':"")+` />
|
|
</svg>`;Gt.innerHTML=fe,bt.appendChild(Gt),yt.styleBoxes.push(bt)}),kt},Ct.prototype.setCurrentStyle=function(yt,kt){var jt=this;this.currentStyle=yt,this.styleBoxes.forEach(function(bt){bt.style.borderColor=bt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ct}(et),$t=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.strokeColor=jt.defaultColor,bt.strokeWidth=jt.defaultStrokeWidth,bt.strokeDasharray=jt.defaultStrokeDasharray,bt.strokePanel=new nt("Line color",jt.defaultColorSet,jt.defaultColor),bt.strokePanel.onColorChanged=bt.setStrokeColor,bt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),bt.strokeWidthPanel.onWidthChanged=bt.setStrokeWidth,bt.strokeStylePanel=new Wt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),bt.strokeStylePanel.onStyleChanged=bt.setStrokeDasharray,bt}return ne(Ct,Dt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Dt.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.typeName="FrameMarker",Ct.title="Frame marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ct}(wt),Jt=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"},Vt=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.x1=0,bt.y1=0,bt.x2=0,bt.y2=0,bt.defaultLength=50,bt.manipulationStartX=0,bt.manipulationStartY=0,bt.manipulationStartX1=0,bt.manipulationStartY1=0,bt.manipulationStartX2=0,bt.manipulationStartY2=0,bt.setupControlBox(),bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return!!Dt.prototype.ownsTarget.call(this,yt)||!(!this.grip1.ownsTarget(yt)&&!this.grip2.ownsTarget(yt))},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.manipulationStartX=yt.x,this.manipulationStartY=yt.y,this.state==="new"&&(this.x1=yt.x,this.y1=yt.y,this.x2=yt.x,this.y2=yt.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(kt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(kt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ct.prototype.pointerUp=function(yt){var kt=this.state;Dt.prototype.pointerUp.call(this,yt),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(yt),this._state="select",kt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ct.prototype.adjustVisual=function(){},Ct.prototype.manipulate=function(yt){this.state==="creating"?this.resize(yt):this.state==="move"?(this.x1=this.manipulationStartX1+yt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+yt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+yt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+yt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(yt)},Ct.prototype.resize=function(yt){switch(this.activeGrip){case this.grip1:this.x1=yt.x,this.y1=yt.y;break;case this.grip2:case void 0:this.x2=yt.x,this.y2=yt.y}this.adjustVisual(),this.adjustControlBox()},Ct.prototype.select=function(){Dt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Dt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=Ht.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){this.positionGrips()},Ct.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ct.prototype.createGrip=function(){var yt=new gt;return yt.visual.transform.baseVal.appendItem(Ht.createTransform()),this.controlBox.appendChild(yt.visual),yt},Ct.prototype.positionGrips=function(){var yt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-yt/2,this.y1-yt/2),this.positionGrip(this.grip2.visual,this.x2-yt/2,this.y2-yt/2)},Ct.prototype.positionGrip=function(yt,kt,jt){var bt=yt.transform.baseVal.getItem(0);bt.setTranslate(kt,jt),yt.transform.baseVal.replaceItem(bt,0)},Ct.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Dt.prototype.getState.call(this))},Ct.prototype.restoreState=function(yt){Dt.prototype.restoreState.call(this,yt);var kt=yt;this.x1=kt.x1,this.y1=kt.y1,this.x2=kt.x2,this.y2=kt.y2},Ct.prototype.scale=function(yt,kt){Dt.prototype.scale.call(this,yt,kt),this.x1=this.x1*yt,this.y1=this.y1*kt,this.x2=this.x2*yt,this.y2=this.y2*kt,this.adjustVisual(),this.adjustControlBox()},Ct}(ct),pe=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.strokeColor="transparent",bt.strokeWidth=0,bt.strokeDasharray="",bt.setStrokeColor=bt.setStrokeColor.bind(bt),bt.setStrokeWidth=bt.setStrokeWidth.bind(bt),bt.setStrokeDasharray=bt.setStrokeDasharray.bind(bt),bt.strokeColor=jt.defaultColor,bt.strokeWidth=jt.defaultStrokeWidth,bt.strokeDasharray=jt.defaultStrokeDasharray,bt.strokePanel=new nt("Line color",jt.defaultColorSet,jt.defaultColor),bt.strokePanel.onColorChanged=bt.setStrokeColor,bt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),bt.strokeWidthPanel.onWidthChanged=bt.setStrokeWidth,bt.strokeStylePanel=new Wt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),bt.strokeStylePanel.onStyleChanged=bt.setStrokeDasharray,bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return!(!Dt.prototype.ownsTarget.call(this,yt)&&yt!==this.visual&&yt!==this.selectorLine&&yt!==this.visibleLine)},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.selectorLine=Ht.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ht.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)},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ct.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()),Ht.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ht.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ht.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.adjustVisual(),this.colorChanged(yt)},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Dt.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){Dt.prototype.restoreState.call(this,yt);var kt=yt;this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.createVisual(),this.adjustVisual()},Ct.typeName="LineMarker",Ct.title="Line marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ct}(Vt),ce=function(Dt){function Ct(yt,kt,jt,bt){var Gt=Dt.call(this,yt,bt||'<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 Gt.fonts=[],Gt.fontBoxes=[],Gt.fonts=kt,Gt.currentFont=jt,Gt.setCurrentFont=Gt.setCurrentFont.bind(Gt),Gt}return ne(Ct,Dt),Ct.prototype.getUi=function(){var yt=this,kt=document.createElement("div");return kt.style.overflow="hidden",kt.style.flexGrow="2",this.fonts.forEach(function(jt){var bt=document.createElement("div");bt.style.display="inline-block",bt.style.alignItems="center",bt.style.justifyContent="space-between",bt.style.padding="5px",bt.style.borderWidth="2px",bt.style.borderStyle="solid",bt.style.overflow="hidden",bt.style.maxWidth=100/yt.fonts.length-5+"%",bt.style.borderColor=jt===yt.currentFont?yt.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){yt.setCurrentFont(jt,bt)}),kt.appendChild(bt);var Gt=document.createElement("div");Gt.style.display="flex",Gt.style.minHeight="20px",Gt.style.flexGrow="2",Gt.style.fontFamily=jt,Gt.style.overflow="hidden";var fe=document.createElement("div");fe.style.whiteSpace="nowrap",fe.style.overflow="hidden",fe.style.textOverflow="ellipsis",fe.innerHTML="The quick brown fox jumps over the lazy dog",Gt.appendChild(fe),bt.appendChild(Gt),yt.fontBoxes.push(bt)}),kt},Ct.prototype.setCurrentFont=function(yt,kt){var jt=this;this.currentFont=yt,this.fontBoxes.forEach(function(bt){bt.style.borderColor=bt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ct}(et),Ee=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.color="transparent",bt.padding=5,bt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",bt.text=bt.DEFAULT_TEXT,bt.isMoved=!1,bt.color=jt.defaultColor,bt.fontFamily=jt.defaultFontFamily,bt.defaultSize={x:100,y:30},bt.setColor=bt.setColor.bind(bt),bt.setFont=bt.setFont.bind(bt),bt.renderText=bt.renderText.bind(bt),bt.sizeText=bt.sizeText.bind(bt),bt.textEditDivClicked=bt.textEditDivClicked.bind(bt),bt.showTextEditor=bt.showTextEditor.bind(bt),bt.setSize=bt.setSize.bind(bt),bt.positionTextEditor=bt.positionTextEditor.bind(bt),bt.colorPanel=new nt("Color",jt.defaultColorSet,jt.defaultColor),bt.colorPanel.onColorChanged=bt.setColor,bt.fontFamilyPanel=new ce("Font",jt.defaultFontFamilies,jt.defaultFontFamily),bt.fontFamilyPanel.onFontChanged=bt.setFont,bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){if(Dt.prototype.ownsTarget.call(this,yt)||yt===this.visual||yt===this.textElement||yt===this.bgRectangle)return!0;var kt=!1;return this.textElement.childNodes.forEach(function(jt){jt===yt&&(kt=!0)}),kt},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.bgRectangle=Ht.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ht.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ht.createTransform()),this.textElement.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.isMoved=!1,this.pointerDownPoint=yt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(yt),this._state="creating")},Ct.prototype.renderText=function(){var yt=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(kt){yt.textElement.appendChild(Ht.createTSpan(kt.trim()===""?" ":kt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ct.prototype.getTextScale=function(){var yt=this.textElement.getBBox(),kt=1;if(yt.width>0&&yt.height>0){var jt=(1*this.width-this.width*this.padding*2/100)/yt.width,bt=(1*this.height-this.height*this.padding*2/100)/yt.height;kt=Math.min(jt,bt)}return kt},Ct.prototype.getTextPosition=function(yt){var kt=this.textElement.getBBox(),jt=0,bt=0;return kt.width>0&&kt.height>0&&(jt=(this.width-kt.width*yt)/2,bt=this.height/2-kt.height*yt/2),{x:jt,y:bt}},Ct.prototype.sizeText=function(){var yt=this.textElement.getBBox(),kt=this.getTextScale(),jt=this.getTextPosition(kt);jt.y-=yt.y*kt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+jt.x+"px, "+jt.y+"px) scale("+kt+", "+kt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(jt.x,jt.y),this.textElement.transform.baseVal.getItem(1).setScale(kt,kt))},Ct.prototype.manipulate=function(yt){Dt.prototype.manipulate.call(this,yt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(yt.x-this.pointerDownPoint.x)>5||Math.abs(yt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(yt){Dt.prototype.resize.call(this,yt),this.isMoved=!0,this.setSize(),this.sizeText()},Ct.prototype.setSize=function(){Dt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ct.prototype.pointerUp=function(yt){var kt=this.state;kt==="creating"&&(this._suppressMarkerCreateEvent=!0),Dt.prototype.pointerUp.call(this,yt),this.setSize(),(kt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.showTextEditor=function(){var yt=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(kt){kt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var kt=Number.parseFloat(yt.textEditor.style.fontSize);yt.textEditor.clientWidth>=Number.parseInt(yt.textEditor.style.maxWidth)&&kt>.9;)kt-=.1,yt.textEditor.style.fontSize=Math.max(kt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(kt){kt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(kt){if(kt.clipboardData){var jt=kt.clipboardData.getData("text"),bt=window.getSelection();if(!bt.rangeCount)return!1;bt.deleteFromDocument(),bt.getRangeAt(0).insertNode(document.createTextNode(jt)),kt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){yt.textEditDivClicked(yt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ct.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var yt=this.getTextScale(),kt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),jt=this.textElement.getBBox(),bt={x:jt.width*yt,y:jt.height*yt};kt.x-=bt.x/2,kt.y-=bt.y/2,this.textEditor.style.top=kt.y+"px",this.textEditor.style.left=kt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-kt.x+"px",this.textEditor.style.fontSize=Math.max(16*yt,12)+"px",this.textElement.style.display="none"}},Ct.prototype.textEditDivClicked=function(yt){this.text=yt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ct.prototype.select=function(){Dt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ct.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Dt.prototype.deselect.call(this)},Ct.prototype.dblClick=function(yt,kt){Dt.prototype.dblClick.call(this,yt,kt),this.showTextEditor()},Ct.prototype.setColor=function(yt){this.textElement&&Ht.setAttributes(this.textElement,[["fill",yt]]),this.color=yt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(yt)},Ct.prototype.setFont=function(yt){this.textElement&&Ht.setAttributes(this.textElement,[["font-family",yt]]),this.fontFamily=yt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ct.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ct.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Dt.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){var kt=yt;this.color=kt.color,this.fontFamily=kt.fontFamily,this.padding=kt.padding,this.text=kt.text,this.createVisual(),Dt.prototype.restoreState.call(this,yt),this.setSize()},Ct.prototype.scale=function(yt,kt){Dt.prototype.scale.call(this,yt,kt),this.setSize(),this.sizeText(),this.positionTextEditor()},Ct.typeName="TextMarker",Ct.title="Text marker",Ct.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>',Ct}(St),Ie=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.color="transparent",bt.lineWidth=3,bt.drawing=!1,bt.pixelRatio=1,bt.color=jt.defaultColor,bt.lineWidth=jt.defaultStrokeWidth,bt.pixelRatio=jt.freehandPixelRatio,bt.setColor=bt.setColor.bind(bt),bt.addCanvas=bt.addCanvas.bind(bt),bt.finishCreation=bt.finishCreation.bind(bt),bt.setLineWidth=bt.setLineWidth.bind(bt),bt.colorPanel=new nt("Color",jt.defaultColorSet,jt.defaultColor),bt.colorPanel.onColorChanged=bt.setColor,bt.lineWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),bt.lineWidthPanel.onWidthChanged=bt.setLineWidth,bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return!(!Dt.prototype.ownsTarget.call(this,yt)&&yt!==this.visual&&yt!==this.drawingImage)},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.drawingImage=Ht.createImage(),this.visual.appendChild(this.drawingImage);var yt=Ht.createTransform();this.visual.transform.baseVal.appendItem(yt),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(yt,kt){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(yt.x,yt.y),this.drawing=!0):Dt.prototype.pointerDown.call(this,yt,kt)},Ct.prototype.manipulate=function(yt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(yt.x,yt.y),this.canvasContext.stroke()):Dt.prototype.manipulate.call(this,yt)},Ct.prototype.resize=function(yt){Dt.prototype.resize.call(this,yt),Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(yt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Dt.prototype.pointerUp.call(this,yt)},Ct.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)},Ct.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Dt.prototype.select.call(this)},Ct.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Dt.prototype.deselect.call(this)},Ct.prototype.finishCreation=function(){for(var yt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),kt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],jt=kt[0],bt=kt[1],Gt=kt[2],fe=kt[3],Se=!1,Be=0;Be<this.canvasElement.height;Be++)for(var re=0;re<this.canvasElement.width;re++)yt.data[Be*this.canvasElement.width*4+4*re+3]>0&&(Se=!0,Be<bt&&(bt=Be),re<jt&&(jt=re),Be>fe&&(fe=Be),re>Gt&&(Gt=re));if(Se){this.left=jt/this.pixelRatio,this.top=bt/this.pixelRatio,this.width=(Gt-jt)/this.pixelRatio,this.height=(fe-bt)/this.pixelRatio;var Te=document.createElement("canvas");Te.width=Gt-jt,Te.height=fe-bt,Te.getContext("2d").putImageData(this.canvasContext.getImageData(jt,bt,Gt-jt,fe-bt),0,0),this.drawingImgUrl=Te.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ct.prototype.setDrawingImage=function(){Ht.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ct.prototype.setColor=function(yt){this.color=yt,this.colorChanged(yt)},Ct.prototype.setLineWidth=function(yt){this.lineWidth=yt},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({drawingImgUrl:this.drawingImgUrl},Dt.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){this.createVisual(),Dt.prototype.restoreState.call(this,yt),this.drawingImgUrl=yt.drawingImgUrl,this.setDrawingImage()},Ct.prototype.scale=function(yt,kt){Dt.prototype.scale.call(this,yt,kt),this.setDrawingImage()},Ct.typeName="FreehandMarker",Ct.title="Freehand marker",Ct.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>',Ct}(St),ke=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,jt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return bt.typeBoxes=[],bt.currentType=kt,bt.setCurrentType=bt.setCurrentType.bind(bt),bt}return ne(Ct,Dt),Ct.prototype.getUi=function(){var yt=this,kt=document.createElement("div");kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2";for(var jt=function(fe){var Se="both";switch(fe){case 0:Se="both";break;case 1:Se="start";break;case 2:Se="end";break;case 3:Se="none"}var Be=document.createElement("div");if(Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=Se===bt.currentType?bt.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){yt.setCurrentType(Se,Be)}),kt.appendChild(Be),Se==="both"||Se==="start"){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.minHeight="20px",re.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="`+(bt.uiStyleSettings!==void 0?bt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,re.style.marginLeft="5px",Be.appendChild(re)}var Te=document.createElement("div");Te.style.display="flex",Te.style.alignItems="center",Te.style.minHeight="20px",Te.style.flexGrow="2";var Ne=document.createElement("hr");if(Ne.style.minWidth="20px",Ne.style.border="0px",Ne.style.borderTop="3px solid "+(bt.uiStyleSettings!==void 0?bt.uiStyleSettings.toolboxColor:"#eeeeee"),Ne.style.flexGrow="2",Te.appendChild(Ne),Be.appendChild(Te),Se==="both"||Se==="end"){var $e=document.createElement("div");$e.style.display="flex",$e.style.alignItems="center",$e.style.minHeight="20px",$e.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="`+(bt.uiStyleSettings!==void 0?bt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,$e.style.marginRight="5px",Be.appendChild($e)}bt.typeBoxes.push(Be)},bt=this,Gt=0;Gt<4;Gt++)jt(Gt);return kt},Ct.prototype.setCurrentType=function(yt,kt){var jt=this;this.currentType=yt,this.typeBoxes.forEach(function(bt){bt.style.borderColor=bt===kt?jt.uiStyleSettings!==void 0?jt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ct}(et),wn=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.arrowType="end",bt.arrowBaseHeight=10,bt.arrowBaseWidth=10,bt.getArrowPoints=bt.getArrowPoints.bind(bt),bt.setArrowType=bt.setArrowType.bind(bt),bt.arrowTypePanel=new ke("Arrow type","end"),bt.arrowTypePanel.onArrowTypeChanged=bt.setArrowType,bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return!(!Dt.prototype.ownsTarget.call(this,yt)&&yt!==this.arrow1&&yt!==this.arrow2)},Ct.prototype.getArrowPoints=function(yt,kt){var jt=this.arrowBaseWidth+2*this.strokeWidth,bt=this.arrowBaseHeight+2*this.strokeWidth;return yt-jt/2+","+(kt+bt/2)+" "+yt+","+(kt-bt/2)+" "+(yt+jt/2)+","+(kt+bt/2)},Ct.prototype.createTips=function(){this.arrow1=Ht.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ht.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.arrow2)},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(Dt.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",Ht.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ht.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var yt=0;Math.abs(this.x1-this.x2)>.1&&(yt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var kt=this.arrow1.transform.baseVal.getItem(0);kt.setRotate(yt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(kt,0);var jt=this.arrow2.transform.baseVal.getItem(0);jt.setRotate(yt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(jt,0)}},Ct.prototype.setArrowType=function(yt){this.arrowType=yt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({arrowType:this.arrowType},Dt.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){Dt.prototype.restoreState.call(this,yt);var kt=yt;this.arrowType=kt.arrowType,this.createTips(),this.adjustVisual()},Ct.typeName="ArrowMarker",Ct.title="Arrow marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ct}(pe),on=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.fillColor=jt.defaultFillColor,bt.strokeWidth=0,bt.fillPanel=new nt("Color",jt.defaultColorSet,jt.defaultFillColor),bt.fillPanel.onColorChanged=bt.setFillColor,bt}return ne(Ct,Dt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Dt.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.typeName="CoverMarker",Ct.title="Cover marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ct}(wt),qe=function(Dt){function Ct(yt,kt,jt,bt){var Gt=Dt.call(this,yt,bt||'<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 Gt.opacities=[],Gt.opacityBoxes=[],Gt.opacities=kt,Gt.currentOpacity=jt,Gt.setCurrentOpacity=Gt.setCurrentOpacity.bind(Gt),Gt}return ne(Ct,Dt),Ct.prototype.getUi=function(){var yt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",kt.style.justifyContent="space-between",this.opacities.forEach(function(jt){var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.justifyContent="center",bt.style.padding="5px",bt.style.borderWidth="2px",bt.style.borderStyle="solid",bt.style.borderColor=jt===yt.currentOpacity?yt.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){yt.setCurrentOpacity(jt,bt)}),kt.appendChild(bt);var Gt=document.createElement("div");Gt.innerText=100*jt+"%",bt.appendChild(Gt),yt.opacityBoxes.push(bt)}),kt},Ct.prototype.setCurrentOpacity=function(yt,kt){var jt=this;this.currentOpacity=yt,this.opacityBoxes.forEach(function(bt){bt.style.borderColor=bt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ct}(et),We=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.setOpacity=bt.setOpacity.bind(bt),bt.fillColor=jt.defaultHighlightColor,bt.strokeWidth=0,bt.opacity=jt.defaultHighlightOpacity,bt.fillPanel=new nt("Color",jt.defaultColorSet,bt.fillColor),bt.fillPanel.onColorChanged=bt.setFillColor,bt.opacityPanel=new qe("Opacity",jt.defaultOpacitySteps,bt.opacity),bt.opacityPanel.onOpacityChanged=bt.setOpacity,bt}return ne(Ct,Dt),Ct.prototype.setOpacity=function(yt){this.opacity=yt,this.visual&&Ht.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Dt.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.typeName="HighlightMarker",Ct.title="Highlight marker",Ct.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>',Ct}(on),he='<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>',It='<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>',Le=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.bgColor="transparent",bt.tipPosition={x:0,y:0},bt.tipBase1Position={x:0,y:0},bt.tipBase2Position={x:0,y:0},bt.tipMoving=!1,bt.color=jt.defaultStrokeColor,bt.bgColor=jt.defaultFillColor,bt.fontFamily=jt.defaultFontFamily,bt.defaultSize={x:100,y:30},bt.setBgColor=bt.setBgColor.bind(bt),bt.getTipPoints=bt.getTipPoints.bind(bt),bt.positionTip=bt.positionTip.bind(bt),bt.setTipPoints=bt.setTipPoints.bind(bt),bt.colorPanel=new nt("Text color",jt.defaultColorSet,bt.color,he),bt.colorPanel.onColorChanged=bt.setColor,bt.bgColorPanel=new nt("Fill color",jt.defaultColorSet,bt.bgColor,It),bt.bgColorPanel.onColorChanged=bt.setBgColor,bt.fontFamilyPanel=new ce("Font",jt.defaultFontFamilies,jt.defaultFontFamily),bt.fontFamilyPanel.onFontChanged=bt.setFont,bt.tipGrip=new gt,bt.tipGrip.visual.transform.baseVal.appendItem(Ht.createTransform()),bt.controlBox.appendChild(bt.tipGrip.visual),bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return Dt.prototype.ownsTarget.call(this,yt)||this.tipGrip.ownsTarget(yt)||this.tip===yt},Ct.prototype.createTip=function(){Ht.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ht.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ct.prototype.pointerDown=function(yt,kt){this.state==="new"&&Dt.prototype.pointerDown.call(this,yt,kt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(kt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Dt.prototype.pointerDown.call(this,yt,kt)},Ct.prototype.pointerUp=function(yt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Dt.prototype.pointerUp.call(this,yt);else{var kt=this.state==="creating";Dt.prototype.pointerUp.call(this,yt),this.setTipPoints(kt),this.positionTip()}},Ct.prototype.manipulate=function(yt){if(this.tipMoving){var kt=this.unrotatePoint(yt);this.tipPosition={x:kt.x-this.manipulationStartLeft,y:kt.y-this.manipulationStartTop},this.positionTip()}else Dt.prototype.manipulate.call(this,yt)},Ct.prototype.setBgColor=function(yt){this.bgRectangle&&this.tip&&(Ht.setAttributes(this.bgRectangle,[["fill",yt]]),Ht.setAttributes(this.tip,[["fill",yt]])),this.bgColor=yt,this.fillColorChanged(yt)},Ct.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},Ct.prototype.setTipPoints=function(yt){yt===void 0&&(yt=!1);var kt=Math.min(this.height/2,15),jt=this.height/5;yt&&(this.tipPosition={x:kt+jt/2,y:this.height+20});var bt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?bt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(jt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:kt,y:0},this.tipBase2Position={x:kt+jt,y:0}):(this.tipBase1Position={x:0,y:kt},this.tipBase2Position={x:0,y:kt+jt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?bt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(jt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-kt-jt,y:0},this.tipBase2Position={x:this.width-kt,y:0}):(this.tipBase1Position={x:this.width,y:kt},this.tipBase2Position={x:this.width,y:kt+jt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?bt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(jt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-kt-jt,y:this.height},this.tipBase2Position={x:this.width-kt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-kt-jt},this.tipBase2Position={x:this.width,y:this.height-kt}):bt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(jt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:kt,y:this.height},this.tipBase2Position={x:kt+jt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-kt},this.tipBase2Position={x:0,y:this.height-kt-jt})},Ct.prototype.resize=function(yt){Dt.prototype.resize.call(this,yt),this.positionTip()},Ct.prototype.positionTip=function(){Ht.setAttributes(this.tip,[["points",this.getTipPoints()]]);var yt=this.tipGrip.visual.transform.baseVal.getItem(0);yt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(yt,0)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.select=function(){this.positionTip(),Dt.prototype.select.call(this)},Ct.prototype.getState=function(){var yt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Dt.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){var kt=yt;this.bgColor=kt.bgColor,this.tipPosition=kt.tipPosition,Dt.prototype.restoreState.call(this,yt),this.createTip(),this.setTipPoints()},Ct.prototype.scale=function(yt,kt){Dt.prototype.scale.call(this,yt,kt),this.tipPosition={x:this.tipPosition.x*yt,y:this.tipPosition.y*kt},this.positionTip()},Ct.typeName="CalloutMarker",Ct.title="Callout marker",Ct.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>',Ct}(Ee),an=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.fillColor="transparent",bt.strokeColor="transparent",bt.strokeWidth=0,bt.strokeDasharray="",bt.opacity=1,bt.strokeColor=jt.defaultColor,bt.strokeWidth=jt.defaultStrokeWidth,bt.strokeDasharray=jt.defaultStrokeDasharray,bt.fillColor=jt.defaultFillColor,bt.setStrokeColor=bt.setStrokeColor.bind(bt),bt.setFillColor=bt.setFillColor.bind(bt),bt.setStrokeWidth=bt.setStrokeWidth.bind(bt),bt.setStrokeDasharray=bt.setStrokeDasharray.bind(bt),bt.setOpacity=bt.setOpacity.bind(bt),bt.createVisual=bt.createVisual.bind(bt),bt.strokePanel=new nt("Line color",ee(jt.defaultColorSet,["transparent"]),jt.defaultColor),bt.strokePanel.onColorChanged=bt.setStrokeColor,bt.fillPanel=new nt("Fill color",ee(jt.defaultColorSet,["transparent"]),bt.fillColor,It),bt.fillPanel.onColorChanged=bt.setFillColor,bt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),bt.strokeWidthPanel.onWidthChanged=bt.setStrokeWidth,bt.strokeStylePanel=new Wt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),bt.strokeStylePanel.onStyleChanged=bt.setStrokeDasharray,bt.opacityPanel=new qe("Opacity",jt.defaultOpacitySteps,bt.opacity),bt.opacityPanel.onOpacityChanged=bt.setOpacity,bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return!(!Dt.prototype.ownsTarget.call(this,yt)&&yt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=Ht.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)},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.state==="new"&&(this.createVisual(),this.moveVisual(yt),this._state="creating")},Ct.prototype.manipulate=function(yt){Dt.prototype.manipulate.call(this,yt)},Ct.prototype.resize=function(yt){Dt.prototype.resize.call(this,yt),this.setSize()},Ct.prototype.setSize=function(){Dt.prototype.setSize.call(this),Ht.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ct.prototype.pointerUp=function(yt){Dt.prototype.pointerUp.call(this,yt),this.setSize()},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.visual&&Ht.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(yt),this.stateChanged()},Ct.prototype.setFillColor=function(yt){this.fillColor=yt,this.visual&&Ht.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(yt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.visual&&Ht.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.visual&&Ht.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.setOpacity=function(yt){this.opacity=yt,this.visual&&Ht.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Dt.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){var kt=yt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.opacity=kt.opacity,this.createVisual(),Dt.prototype.restoreState.call(this,yt),this.setSize()},Ct.prototype.scale=function(yt,kt){Dt.prototype.scale.call(this,yt,kt),this.setSize()},Ct.typeName="EllipseMarker",Ct.title="Ellipse marker",Ct.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>',Ct}(St),Ze=function(Dt){function Ct(yt,kt,jt){return Dt.call(this,yt,kt,jt)||this}return ne(Ct,Dt),Object.defineProperty(Ct.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(yt){return!(!Dt.prototype.ownsTarget.call(this,yt)&&yt!==this.tip1&&yt!==this.tip2)},Ct.prototype.createTips=function(){this.tip1=Ht.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(Ht.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ht.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(Ht.createTransform()),this.visual.appendChild(this.tip2)},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(Dt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ht.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()]]),Ht.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 yt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),kt=this.tip1.transform.baseVal.getItem(0);kt.setRotate(yt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(kt,0);var jt=this.tip2.transform.baseVal.getItem(0);jt.setRotate(yt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(jt,0)}},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Dt.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){Dt.prototype.restoreState.call(this,yt),this.createTips(),this.adjustVisual()},Ct.typeName="MeasurementMarker",Ct.title="Measurement marker",Ct.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>',Ct}(pe),Ce=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.strokePanel.colors=jt.defaultColorSet,bt.fillColor="transparent",bt}return ne(Ct,Dt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Dt.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.typeName="EllipseFrameMarker",Ct.title="Ellipse frame marker",Ct.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>',Ct}(an),nn=function(){function Dt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Dt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Dt.prototype.addUndoStep=function(Ct){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ct)||(this.undoStack.push(Ct),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ct)&&this.redoStack.splice(0,this.redoStack.length))},Dt.prototype.replaceLastUndoStep=function(Ct){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ct)},Dt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Dt.prototype.undo=function(){if(this.undoStack.length>1){var Ct=this.undoStack.pop();return Ct!==void 0&&this.redoStack.push(Ct),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Dt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Dt}(),Ye=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.strokeColor="transparent",bt.strokeWidth=0,bt.strokeDasharray="",bt.curveX=0,bt.curveY=0,bt.manipulationStartCurveX=0,bt.manipulationStartCurveY=0,bt.setStrokeColor=bt.setStrokeColor.bind(bt),bt.setStrokeWidth=bt.setStrokeWidth.bind(bt),bt.setStrokeDasharray=bt.setStrokeDasharray.bind(bt),bt.positionGrips=bt.positionGrips.bind(bt),bt.addControlGrips=bt.addControlGrips.bind(bt),bt.adjustVisual=bt.adjustVisual.bind(bt),bt.setupControlBox=bt.setupControlBox.bind(bt),bt.resize=bt.resize.bind(bt),bt.strokeColor=jt.defaultColor,bt.strokeWidth=jt.defaultStrokeWidth,bt.strokeDasharray=jt.defaultStrokeDasharray,bt.strokePanel=new nt("Line color",jt.defaultColorSet,jt.defaultColor),bt.strokePanel.onColorChanged=bt.setStrokeColor,bt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),bt.strokeWidthPanel.onWidthChanged=bt.setStrokeWidth,bt.strokeStylePanel=new Wt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),bt.strokeStylePanel.onStyleChanged=bt.setStrokeDasharray,bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return!(!Dt.prototype.ownsTarget.call(this,yt)&&yt!==this.visual&&yt!==this.selectorCurve&&yt!==this.visibleCurve&&!this.curveGrip.ownsTarget(yt))},Ct.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.selectorCurve=Ht.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ht.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)},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=yt.x,this.curveY=yt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(kt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ct.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ht.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ht.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ht.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setupControlBox=function(){Dt.prototype.setupControlBox.call(this),this.curveControlLine1=Ht.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ht.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)},Ct.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Dt.prototype.addControlGrips.call(this)},Ct.prototype.positionGrips=function(){Dt.prototype.positionGrips.call(this);var yt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-yt/2,this.curveY-yt/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()))},Ct.prototype.manipulate=function(yt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+yt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+yt.y-this.manipulationStartY),Dt.prototype.manipulate.call(this,yt)},Ct.prototype.resize=function(yt){this.activeGrip===this.curveGrip&&(this.curveX=yt.x,this.curveY=yt.y),Dt.prototype.resize.call(this,yt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.adjustVisual(),this.colorChanged(yt)},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.adjustVisual()},Ct.prototype.scale=function(yt,kt){this.curveX=this.curveX*yt,this.curveY=this.curveY*kt,Dt.prototype.scale.call(this,yt,kt)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Dt.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){Dt.prototype.restoreState.call(this,yt);var kt=yt;this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.curveX=kt.curveX,this.curveY=kt.curveY,this.createVisual(),this.adjustVisual()},Ct.typeName="CurveMarker",Ct.title="Curve marker",Ct.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>',Ct}(Vt),Sn=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,kt,jt)||this;return bt.fillColor="transparent",bt.strokeColor="transparent",bt.strokeWidth=0,bt.strokeDasharray="",bt.textColor="transparent",bt.fontSize="1rem",bt.isMoved=!1,bt.captionText="Caption",bt.PADDING=5,bt.captionBoxWidth=0,bt.captionBoxHeight=0,bt.strokeColor=jt.defaultColor,bt.strokeWidth=jt.defaultStrokeWidth,bt.strokeDasharray=jt.defaultStrokeDasharray,bt.fillColor=jt.defaultFillColor,bt.textColor=jt.defaultStrokeColor,bt.fontFamily=jt.defaultFontFamily,bt.fontSize=jt.defaultCaptionFontSize,bt.captionText=jt.defaultCaptionText,bt.setStrokeColor=bt.setStrokeColor.bind(bt),bt.setFillColor=bt.setFillColor.bind(bt),bt.setStrokeWidth=bt.setStrokeWidth.bind(bt),bt.setStrokeDasharray=bt.setStrokeDasharray.bind(bt),bt.createVisual=bt.createVisual.bind(bt),bt.sizeCaption=bt.sizeCaption.bind(bt),bt.setCaptionText=bt.setCaptionText.bind(bt),bt.showTextEditor=bt.showTextEditor.bind(bt),bt.positionTextEditor=bt.positionTextEditor.bind(bt),bt.finishTextEditing=bt.finishTextEditing.bind(bt),bt.setFont=bt.setFont.bind(bt),bt.setTextColor=bt.setTextColor.bind(bt),bt.strokePanel=new nt("Line color",ee(jt.defaultColorSet,["transparent"]),bt.strokeColor),bt.strokePanel.onColorChanged=bt.setStrokeColor,bt.fillPanel=new nt("Fill color",ee(jt.defaultColorSet,["transparent"]),bt.fillColor,It),bt.fillPanel.onColorChanged=bt.setFillColor,bt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),bt.strokeWidthPanel.onWidthChanged=bt.setStrokeWidth,bt.strokeStylePanel=new Wt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),bt.strokeStylePanel.onStyleChanged=bt.setStrokeDasharray,bt.fontFamilyPanel=new ce("Font",jt.defaultFontFamilies,jt.defaultFontFamily),bt.fontFamilyPanel.onFontChanged=bt.setFont,bt.textColorPanel=new nt("Text color",jt.defaultColorSet,bt.textColor,he),bt.textColorPanel.onColorChanged=bt.setTextColor,bt}return ne(Ct,Dt),Ct.prototype.ownsTarget=function(yt){return!(!Dt.prototype.ownsTarget.call(this,yt)&&yt!==this.visual&&yt!==this.frame&&yt!==this.captionBg&&yt!==this.captionElement)},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ht.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ht.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=Ht.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()},Ct.prototype.setCaptionText=function(yt){this.captionText=yt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ct.prototype.pointerDown=function(yt,kt){Dt.prototype.pointerDown.call(this,yt,kt),this.isMoved=!1,this.pointerDownPoint=yt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(yt),this._state="creating")},Ct.prototype.manipulate=function(yt){Dt.prototype.manipulate.call(this,yt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(yt.x-this.pointerDownPoint.x)>5||Math.abs(yt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(yt){Dt.prototype.resize.call(this,yt),this.setSize()},Ct.prototype.sizeCaption=function(){var yt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=yt.width+2*this.PADDING,this.captionBoxHeight=yt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ht.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')"]]),Ht.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')"]])},Ct.prototype.showTextEditor=function(){var yt=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(kt){kt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(kt){kt.key==="Enter"&&yt.finishTextEditing(yt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(kt){kt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){yt.finishTextEditing(yt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){yt.finishTextEditing(yt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ct.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"))},Ct.prototype.finishTextEditing=function(yt){this.setCaptionText(yt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ct.prototype.setFont=function(yt){this.captionElement&&Ht.setAttributes(this.captionElement,[["font-family",yt]]),this.fontFamily=yt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ct.prototype.setTextColor=function(yt){this.captionElement&&Ht.setAttributes(this.captionElement,[["fill",yt]]),this.textColor=yt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ct.prototype.setSize=function(){Dt.prototype.setSize.call(this),Ht.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ct.prototype.pointerUp=function(yt){Dt.prototype.pointerUp.call(this,yt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.dblClick=function(yt,kt){Dt.prototype.dblClick.call(this,yt,kt),this.showTextEditor()},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.frame&&Ht.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(yt),this.stateChanged()},Ct.prototype.setFillColor=function(yt){this.fillColor=yt,this.captionBg&&Ht.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(yt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.frame&&Ht.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.frame&&Ht.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=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},Dt.prototype.getState.call(this));return yt.typeName=this.typeName,yt},Ct.prototype.restoreState=function(yt){var kt=yt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.textColor=kt.textColor,this.fontFamily=kt.fontFamily,this.captionText=kt.captionText,this.fontSize=kt.fontSize,this.createVisual(),Dt.prototype.restoreState.call(this,yt),this.setSize()},Ct.prototype.scale=function(yt,kt){Dt.prototype.scale.call(this,yt,kt),this.setSize()},Ct.typeName="CaptionFrameMarker",Ct.title="Caption frame marker",Ct.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>',Ct}(St),Fe=function(){function Dt(Ct,yt){yt===void 0&&(yt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ct,this.cancelable=yt}return Object.defineProperty(Dt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Dt.prototype.preventDefault=function(){this._defaultPrevented=!0},Dt}(),vn=function(Dt){function Ct(yt,kt,jt){var bt=Dt.call(this,yt,!1)||this;return bt.dataUrl=kt,bt.state=jt,bt}return ne(Ct,Dt),Ct}(Fe),ue=function(Dt){function Ct(yt,kt,jt){jt===void 0&&(jt=!1);var bt=Dt.call(this,yt,jt)||this;return bt.marker=kt,bt}return ne(Ct,Dt),Ct}(Fe),Ve=function(){function Dt(){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 Dt.prototype.addEventListener=function(Ct,yt){this[Ct].push(yt)},Dt.prototype.removeEventListener=function(Ct,yt){var kt=this[Ct].indexOf(yt);kt>-1&&this[Ct].splice(kt,1)},Dt}(),In=function(){function Dt(Ct){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Jt,this._isOpen=!1,this.undoRedoManager=new nn,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 Ve,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Dt.instanceCounter++,this.styles=new Tt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ct,this.targetRoot=document.body,this.width=Ct.clientWidth,this.height=Ct.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(Dt.prototype,"ALL_MARKER_TYPES",{get:function(){return[$t,Ie,wn,Ee,Ce,an,We,Le,Ze,on,pe,Ye,Sn]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$t,Ie,wn,Ee,an,We,Le]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$t,Ie,wn,Ee,We]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ct){var yt=this;this._availableMarkerTypes.splice(0),Ct.forEach(function(kt){if(typeof kt=="string"){var jt=yt.ALL_MARKER_TYPES.find(function(bt){return bt.typeName===kt});jt!==void 0&&yt._availableMarkerTypes.push(jt)}else yt._availableMarkerTypes.push(kt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ct){this._zoomLevel=Ct,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(Dt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Dt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Dt.prototype.show=function(){var Ct=this;this.styles.styleSheetRoot===void 0&&ve.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ve.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(yt){return yt(new Fe(Ct))})},Dt.prototype.render=function(){return ge(this,void 0,void 0,function(){var Ct;return xe(this,function(yt){switch(yt.label){case 0:return this.setCurrentMarker(),(Ct=new Re).naturalSize=this.renderAtNaturalSize,Ct.imageType=this.renderImageType,Ct.imageQuality=this.renderImageQuality,Ct.markersOnly=this.renderMarkersOnly,Ct.width=this.renderWidth,Ct.height=this.renderHeight,[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return yt.sent(),[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,yt.sent()]}})})},Dt.prototype.close=function(Ct){var yt=this;if(Ct===void 0&&(Ct=!1),this.isOpen){var kt=!1;Ct||this.eventListeners.beforeclose.forEach(function(jt){var bt=new Fe(yt,!0);jt(bt),bt.defaultPrevented&&(kt=!0)}),kt||(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(jt){return jt(new Fe(yt))}),this.detachEvents(),this._isOpen=!1)}},Dt.prototype.addMarkersToToolbar=function(){for(var Ct,yt=[],kt=0;kt<arguments.length;kt++)yt[kt]=arguments[kt];(Ct=this._availableMarkerTypes).push.apply(Ct,yt)},Dt.prototype.addRenderEventListener=function(Ct){this.addEventListener("render",function(yt){Ct(yt.dataUrl,yt.state)})},Dt.prototype.removeRenderEventListener=function(Ct){},Dt.prototype.addCloseEventListener=function(Ct){this.addEventListener("close",function(){Ct()})},Dt.prototype.removeCloseEventListener=function(Ct){},Dt.prototype.setupResizeObserver=function(){var Ct=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ct.resize(Ct.target.clientWidth,Ct.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ct.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Dt.prototype.onPopupTargetResize=function(){var Ct=1*this.target.clientWidth/this.target.clientHeight,yt=this.editorCanvas.clientWidth/Ct>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ct:this.editorCanvas.clientWidth,kt=yt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ct;this.resize(yt,kt)},Dt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Dt.prototype.resize=function(Ct,yt){this._isResizing=!0;var kt=Ct/this.imageWidth,jt=yt/this.imageHeight;this.imageWidth=Math.round(Ct),this.imageHeight=Math.round(yt),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(kt,jt),this._isResizing=!1},Dt.prototype.scaleMarkers=function(Ct,yt){var kt,jt=this;this._currentMarker&&this._currentMarker instanceof Ee?this._currentMarker.scale(Ct,yt):(kt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(bt){bt!==jt._currentMarker&&bt.scale(Ct,yt)}),kt!==void 0&&this.setCurrentMarker(kt)},Dt.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"},Dt.prototype.setTopLeft=function(){var Ct=this.editingTarget.getBoundingClientRect(),yt=this.editorCanvas.getBoundingClientRect();this.left=Ct.left-yt.left,this.top=Ct.top-yt.top},Dt.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)},Dt.prototype.addDefs=function(){for(var Ct,yt=[],kt=0;kt<arguments.length;kt++)yt[kt]=arguments[kt];this.defs=Ht.createDefs(),this.addDefsToImage(),(Ct=this.defs).append.apply(Ct,yt)},Dt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Dt.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)},Dt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Dt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Dt.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)},Dt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Dt.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)},Dt.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 Ct=document.createElement("a");Ct.href="https://markerjs.com/",Ct.target="_blank",Ct.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>',Ct.title="Powered by marker.js",Ct.style.display="grid",Ct.style.alignItems="center",Ct.style.justifyItems="center",Ct.style.padding="3px",Ct.style.width="20px",Ct.style.height="20px",this.logoUI.appendChild(Ct),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Dt.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")},Dt.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"},Dt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Dt.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 Ct=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=Ct+"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 Je(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 Ot(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Dt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Dt.prototype.removeMarker=function(Ct){this.markerImage.removeChild(Ct.container),this.markers.indexOf(Ct)>-1&&this.markers.splice(this.markers.indexOf(Ct),1),Ct.dispose()},Dt.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())},Dt.prototype.toolbarButtonClicked=function(Ct,yt){if(Ct==="marker"&&yt!==void 0)this.createNewMarker(yt);else if(Ct==="action")switch(yt){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()}},Dt.prototype.deleteSelectedMarker=function(){var Ct=this;if(this._currentMarker!==void 0){var yt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(jt){var bt=new ue(Ct,Ct._currentMarker,!0);jt(bt),bt.defaultPrevented&&(yt=!0)}),!yt){var kt=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(jt){return jt(new ue(Ct,kt))})}}},Dt.prototype.clear=function(){var Ct=this,yt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Gt){var fe=new ue(Ct,void 0,!0);Gt(fe),fe.defaultPrevented&&(yt=!0)}),!yt)){this.setCurrentMarker();for(var kt=function(Gt){var fe=jt.markers[Gt];jt.setCurrentMarker(jt.markers[Gt]),jt._currentMarker.dispose(),jt.markerImage.removeChild(jt._currentMarker.container),jt.markers.splice(jt.markers.indexOf(jt._currentMarker),1),jt.eventListeners.markerdelete.forEach(function(Se){return Se(new ue(Ct,fe))})},jt=this,bt=this.markers.length-1;bt>=0;bt--)kt(bt);this.addUndoStep()}},Object.defineProperty(Dt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Dt.prototype.showNotesEditor=function(){var Ct;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=(Ct=this._currentMarker.notes)!==null&&Ct!==void 0?Ct:"",this.overlayContainer.appendChild(this.notesArea))},Dt.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)},Dt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Dt.prototype.addUndoStep=function(){var Ct=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var yt=this.getState(),kt=this.undoRedoManager.getLastUndoStep();if(!kt||kt.width===yt.width&&kt.height===yt.height){var jt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(yt),jt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(bt){return bt(new Fe(Ct))})}else this.undoRedoManager.replaceLastUndoStep(yt),this.eventListeners.statechange.forEach(function(bt){return bt(new Fe(Ct))})}},Dt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Dt.prototype.undoStep=function(){var Ct=this,yt=this.undoRedoManager.undo();yt!==void 0&&(this.restoreState(yt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(kt){return kt(new Fe(Ct))}))},Dt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Dt.prototype.redoStep=function(){var Ct=this,yt=this.undoRedoManager.redo();yt!==void 0&&(this.restoreState(yt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(kt){return kt(new Fe(Ct))}))},Dt.prototype.stepZoom=function(){var Ct=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ct<this.zoomSteps.length-1?this.zoomSteps[Ct+1]:this.zoomSteps[0]},Dt.prototype.panTo=function(Ct){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ct.x,top:this.prevPanPoint.y-Ct.y}),this.prevPanPoint=Ct},Dt.prototype.startRenderAndClose=function(){return ge(this,void 0,void 0,function(){var Ct,yt,kt=this;return xe(this,function(jt){switch(jt.label){case 0:return[4,this.render()];case 1:return Ct=jt.sent(),yt=this.getState(),this.eventListeners.render.forEach(function(bt){return bt(new vn(kt,Ct,yt))}),this.close(!0),[2]}})})},Dt.prototype.getState=function(Ct){Ct===!0&&this.setCurrentMarker();var yt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(kt){return yt.markers.push(kt.getState())}),yt},Dt.prototype.restoreState=function(Ct){var yt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ct.markers.forEach(function(kt){var jt=yt._availableMarkerTypes.find(function(Gt){return Gt.typeName===kt.typeName});if(jt!==void 0){var bt=yt.addNewMarker(jt);bt.restoreState(kt),yt.markers.push(bt)}}),Ct.width&&Ct.height&&(Ct.width!==this.imageWidth||Ct.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ct.width,this.imageHeight/Ct.height),this.eventListeners.restorestate.forEach(function(kt){return kt(new Fe(yt))})},Dt.prototype.addNewMarker=function(Ct){var yt=Ht.createGroup();return this.markerImage.appendChild(yt),new Ct(yt,this.overlayContainer,this.settings)},Dt.prototype.createNewMarker=function(Ct){var yt,kt=this;(yt=typeof Ct=="string"?this._availableMarkerTypes.find(function(jt){return jt.typeName===Ct}):Ct)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(yt),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(yt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(jt){return jt(new ue(kt,kt._currentMarker))}))},Dt.prototype.markerCreated=function(Ct){var yt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ct),this.setCurrentMarker(Ct),Ct instanceof Ie&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ie):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(kt){return kt(new ue(yt,yt._currentMarker))})},Dt.prototype.colorChanged=function(Ct){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ct,this.settings.defaultStrokeColor=Ct)},Dt.prototype.fillColorChanged=function(Ct){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ct)},Dt.prototype.markerStateChanged=function(Ct){var yt=this;this.eventListeners.markerchange.forEach(function(kt){return kt(new ue(yt,Ct))})},Dt.prototype.setCurrentMarker=function(Ct){var yt=this;this._currentMarker!==Ct&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(kt){return kt(new ue(yt,yt._currentMarker))})),this._currentMarker=Ct,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(kt){return kt(new ue(yt,yt._currentMarker))}))},Dt.prototype.onPointerDown=function(Ct){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ct.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var yt=this.markers.find(function(kt){return kt.ownsTarget(Ct.target)});yt!==void 0?(this.setCurrentMarker(yt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY),Ct.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ct.clientX,y:Ct.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY))},Dt.prototype.onDblClick=function(Ct){if(this._isFocused||this.focus(),this.mode==="select"){var yt=this.markers.find(function(kt){return kt.ownsTarget(Ct.target)});yt!==void 0&&yt!==this._currentMarker&&this.setCurrentMarker(yt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY),Ct.target):this.setCurrentMarker()}},Dt.prototype.onPointerMove=function(Ct){this.touchPoints!==1&&Ct.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ct.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)):this.zoomLevel>1&&this.panTo({x:Ct.clientX,y:Ct.clientY}))},Dt.prototype.onPointerUp=function(Ct){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)),this.isDragging=!1,this.addUndoStep()},Dt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Dt.prototype.onKeyUp=function(Ct){this._currentMarker===void 0||this.notesArea!==void 0||Ct.key!=="Delete"&&Ct.key!=="Backspace"||this.deleteSelectedMarker()},Dt.prototype.clientToLocalCoordinates=function(Ct,yt){var kt=this.markerImage.getBoundingClientRect();return{x:(Ct-kt.left)/this.zoomLevel,y:(yt-kt.top)/this.zoomLevel}},Dt.prototype.onWindowResize=function(){this.positionUI()},Dt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ct=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"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()},Dt.prototype.addLicenseKey=function(Ct){oe.addKey(Ct)},Dt.prototype.addEventListener=function(Ct,yt){this.eventListeners.addEventListener(Ct,yt)},Dt.prototype.removeEventListener=function(Ct,yt){this.eventListeners.removeEventListener(Ct,yt)},Dt.prototype.renderState=function(Ct){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ct),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Dt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Dt.prototype.focus=function(){var Ct=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(yt){return yt(new Fe(Ct))}))},Dt.prototype.blur=function(){var Ct=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(yt){return yt(new Fe(Ct))}))},Dt.instanceCounter=0,Dt}()},98535:function(An,Un,Et){"use strict";Et.r(Un),Et.d(Un,{Panel:function(){return Ie},default:function(){return Ee}});var Mt=Et(72308),ne=Et(80702),ge=Et(52487),xe=Et(62853),ee=Et(92310),Ht=Et.n(ee),oe=Et(18929),Re=Et(48736),ve=Et(59301),Tt=Et(74416),Ue=Et(11592),ie=Et(77321),Je=Et(49618),Ot=Et(77900),et=Et(10228),nt=ve.forwardRef(function(ke,wn){var on=ke.prefixCls,qe=ke.forceRender,We=ke.className,he=ke.style,It=ke.children,Le=ke.isActive,an=ke.role,Ze=ke.classNames,Ce=ke.styles,nn=ve.useState(Le||qe),Ye=(0,ge.Z)(nn,2),Sn=Ye[0],Fe=Ye[1];return ve.useEffect(function(){(qe||Le)&&Fe(!0)},[qe,Le]),Sn?ve.createElement("div",{ref:wn,className:Ht()("".concat(on,"-content"),(0,Je.Z)((0,Je.Z)({},"".concat(on,"-content-active"),Le),"".concat(on,"-content-inactive"),!Le),We),style:he,role:an},ve.createElement("div",{className:Ht()("".concat(on,"-content-box"),Ze==null?void 0:Ze.body),style:Ce==null?void 0:Ce.body},It)):null});nt.displayName="PanelContent";var ct=nt,lt=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],gt=ve.forwardRef(function(ke,wn){var on=ke.showArrow,qe=on===void 0?!0:on,We=ke.headerClass,he=ke.isActive,It=ke.onItemClick,Le=ke.forceRender,an=ke.className,Ze=ke.classNames,Ce=Ze===void 0?{}:Ze,nn=ke.styles,Ye=nn===void 0?{}:nn,Sn=ke.prefixCls,Fe=ke.collapsible,vn=ke.accordion,ue=ke.panelKey,Ve=ke.extra,In=ke.header,Dt=ke.expandIcon,Ct=ke.openMotion,yt=ke.destroyInactivePanel,kt=ke.children,jt=(0,Tt.Z)(ke,lt),bt=Fe==="disabled",Gt=Ve!=null&&typeof Ve!="boolean",fe=(0,Je.Z)((0,Je.Z)((0,Je.Z)({onClick:function(){It==null||It(ue)},onKeyDown:function(fn){(fn.key==="Enter"||fn.keyCode===et.Z.ENTER||fn.which===et.Z.ENTER)&&(It==null||It(ue))},role:vn?"tab":"button"},"aria-expanded",he),"aria-disabled",bt),"tabIndex",bt?-1:0),Se=typeof Dt=="function"?Dt(ke):ve.createElement("i",{className:"arrow"}),Be=Se&&ve.createElement("div",(0,Mt.Z)({className:"".concat(Sn,"-expand-icon")},["header","icon"].includes(Fe)?fe:{}),Se),re=Ht()("".concat(Sn,"-item"),(0,Je.Z)((0,Je.Z)({},"".concat(Sn,"-item-active"),he),"".concat(Sn,"-item-disabled"),bt),an),Te=Ht()(We,"".concat(Sn,"-header"),(0,Je.Z)({},"".concat(Sn,"-collapsible-").concat(Fe),!!Fe),Ce.header),Ne=(0,ie.Z)({className:Te,style:Ye.header},["header","icon"].includes(Fe)?{}:fe);return ve.createElement("div",(0,Mt.Z)({},jt,{ref:wn,className:re}),ve.createElement("div",Ne,qe&&Be,ve.createElement("span",(0,Mt.Z)({className:"".concat(Sn,"-header-text")},Fe==="header"?fe:{}),In),Gt&&ve.createElement("div",{className:"".concat(Sn,"-extra")},Ve)),ve.createElement(Ot.default,(0,Mt.Z)({visible:he,leavedClassName:"".concat(Sn,"-content-hidden")},Ct,{forceRender:Le,removeOnLeave:yt}),function($e,fn){var tn=$e.className,He=$e.style;return ve.createElement(ct,{ref:fn,prefixCls:Sn,className:tn,classNames:Ce,style:He,styles:Ye,isActive:he,forceRender:Le,role:vn?"tabpanel":void 0},kt)}))}),mt=gt,St=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],wt=function(wn,on){var qe=on.prefixCls,We=on.accordion,he=on.collapsible,It=on.destroyInactivePanel,Le=on.onItemClick,an=on.activeKey,Ze=on.openMotion,Ce=on.expandIcon;return wn.map(function(nn,Ye){var Sn=nn.children,Fe=nn.label,vn=nn.key,ue=nn.collapsible,Ve=nn.onItemClick,In=nn.destroyInactivePanel,Dt=(0,Tt.Z)(nn,St),Ct=String(vn!=null?vn:Ye),yt=ue!=null?ue:he,kt=In!=null?In:It,jt=function(fe){yt!=="disabled"&&(Le(fe),Ve==null||Ve(fe))},bt=!1;return We?bt=an[0]===Ct:bt=an.indexOf(Ct)>-1,ve.createElement(mt,(0,Mt.Z)({},Dt,{prefixCls:qe,key:Ct,panelKey:Ct,isActive:bt,accordion:We,openMotion:Ze,expandIcon:Ce,header:Fe,collapsible:yt,onItemClick:jt,destroyInactivePanel:kt}),Sn)})},zt=function(wn,on,qe){if(!wn)return null;var We=qe.prefixCls,he=qe.accordion,It=qe.collapsible,Le=qe.destroyInactivePanel,an=qe.onItemClick,Ze=qe.activeKey,Ce=qe.openMotion,nn=qe.expandIcon,Ye=wn.key||String(on),Sn=wn.props,Fe=Sn.header,vn=Sn.headerClass,ue=Sn.destroyInactivePanel,Ve=Sn.collapsible,In=Sn.onItemClick,Dt=!1;he?Dt=Ze[0]===Ye:Dt=Ze.indexOf(Ye)>-1;var Ct=Ve!=null?Ve:It,yt=function(bt){Ct!=="disabled"&&(an(bt),In==null||In(bt))},kt={key:Ye,panelKey:Ye,header:Fe,headerClass:vn,isActive:Dt,prefixCls:We,destroyInactivePanel:ue!=null?ue:Le,openMotion:Ce,accordion:he,children:wn.props.children,onItemClick:yt,expandIcon:nn,collapsible:Ct};return typeof wn.type=="string"?wn:(Object.keys(kt).forEach(function(jt){typeof kt[jt]=="undefined"&&delete kt[jt]}),ve.cloneElement(wn,kt))};function Wt(ke,wn,on){return Array.isArray(ke)?wt(ke,on):(0,Ue.Z)(wn).map(function(qe,We){return zt(qe,We,on)})}var $t=Wt,Jt=Et(26112);function Vt(ke){var wn=ke;if(!Array.isArray(wn)){var on=(0,xe.Z)(wn);wn=on==="number"||on==="string"?[wn]:[]}return wn.map(function(qe){return String(qe)})}var pe=ve.forwardRef(function(ke,wn){var on=ke.prefixCls,qe=on===void 0?"rc-collapse":on,We=ke.destroyInactivePanel,he=We===void 0?!1:We,It=ke.style,Le=ke.accordion,an=ke.className,Ze=ke.children,Ce=ke.collapsible,nn=ke.openMotion,Ye=ke.expandIcon,Sn=ke.activeKey,Fe=ke.defaultActiveKey,vn=ke.onChange,ue=ke.items,Ve=Ht()(qe,an),In=(0,oe.Z)([],{value:Sn,onChange:function(Gt){return vn==null?void 0:vn(Gt)},defaultValue:Fe,postState:Vt}),Dt=(0,ge.Z)(In,2),Ct=Dt[0],yt=Dt[1],kt=function(Gt){return yt(function(){if(Le)return Ct[0]===Gt?[]:[Gt];var fe=Ct.indexOf(Gt),Se=fe>-1;return Se?Ct.filter(function(Be){return Be!==Gt}):[].concat((0,ne.Z)(Ct),[Gt])})};(0,Re.ZP)(!Ze,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var jt=$t(ue,Ze,{prefixCls:qe,accordion:Le,openMotion:nn,expandIcon:Ye,collapsible:Ce,destroyInactivePanel:he,onItemClick:kt,activeKey:Ct});return ve.createElement("div",(0,Mt.Z)({ref:wn,className:Ve,style:It,role:Le?"tablist":void 0},(0,Jt.Z)(ke,{aria:!0,data:!0})),jt)}),ce=Object.assign(pe,{Panel:mt}),Ee=ce,Ie=ce.Panel},66042:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return Ee}});var Mt=Et(77321),ne=Et(52487),ge=Et(43403),xe=Et(34280),ee=Et(59301),Ht=ee.createContext(null),oe=ee.createContext({}),Re=Ht,ve=Et(49618),Tt=Et(72308),Ue=Et(92310),ie=Et.n(Ue),Je=Et(77900),Ot=Et(10228),et=Et(26112),nt=Et(74416),ct=Et(8654),lt=["prefixCls","className","containerRef"],gt=function(ke){var wn=ke.prefixCls,on=ke.className,qe=ke.containerRef,We=(0,nt.Z)(ke,lt),he=ee.useContext(oe),It=he.panel,Le=(0,ct.x1)(It,qe);return ee.createElement("div",(0,Tt.Z)({className:ie()("".concat(wn,"-content"),on),role:"dialog",ref:Le},(0,et.Z)(ke,{aria:!0}),{"aria-modal":"true"},We))},mt=gt,St=Et(48736);function wt(Ie){return typeof Ie=="string"&&String(Number(Ie))===Ie?((0,St.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ie)):Ie}function zt(Ie){warning(!("wrapperClassName"in Ie),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ie.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Wt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function $t(Ie,ke){var wn,on,qe,We=Ie.prefixCls,he=Ie.open,It=Ie.placement,Le=Ie.inline,an=Ie.push,Ze=Ie.forceRender,Ce=Ie.autoFocus,nn=Ie.keyboard,Ye=Ie.classNames,Sn=Ie.rootClassName,Fe=Ie.rootStyle,vn=Ie.zIndex,ue=Ie.className,Ve=Ie.id,In=Ie.style,Dt=Ie.motion,Ct=Ie.width,yt=Ie.height,kt=Ie.children,jt=Ie.mask,bt=Ie.maskClosable,Gt=Ie.maskMotion,fe=Ie.maskClassName,Se=Ie.maskStyle,Be=Ie.afterOpenChange,re=Ie.onClose,Te=Ie.onMouseEnter,Ne=Ie.onMouseOver,$e=Ie.onMouseLeave,fn=Ie.onClick,tn=Ie.onKeyDown,He=Ie.onKeyUp,On=Ie.styles,Xn=Ie.drawerRender,Pn=ee.useRef(),Gn=ee.useRef(),Ni=ee.useRef();ee.useImperativeHandle(ke,function(){return Pn.current});var xi=function(Jn){var er=Jn.keyCode,Ji=Jn.shiftKey;switch(er){case Ot.Z.TAB:{if(er===Ot.Z.TAB){if(!Ji&&document.activeElement===Ni.current){var Zi;(Zi=Gn.current)===null||Zi===void 0||Zi.focus({preventScroll:!0})}else if(Ji&&document.activeElement===Gn.current){var fi;(fi=Ni.current)===null||fi===void 0||fi.focus({preventScroll:!0})}}break}case Ot.Z.ESC:{re&&nn&&(Jn.stopPropagation(),re(Jn));break}}};ee.useEffect(function(){if(he&&Ce){var Ii;(Ii=Pn.current)===null||Ii===void 0||Ii.focus({preventScroll:!0})}},[he]);var ki=ee.useState(!1),tr=(0,ne.Z)(ki,2),Qe=tr[0],sn=tr[1],Qn=ee.useContext(Re),Li;typeof an=="boolean"?Li=an?{}:{distance:0}:Li=an||{};var Ri=(wn=(on=(qe=Li)===null||qe===void 0?void 0:qe.distance)!==null&&on!==void 0?on:Qn==null?void 0:Qn.pushDistance)!==null&&wn!==void 0?wn:180,Pi=ee.useMemo(function(){return{pushDistance:Ri,push:function(){sn(!0)},pull:function(){sn(!1)}}},[Ri]);ee.useEffect(function(){if(he){var Ii;Qn==null||(Ii=Qn.push)===null||Ii===void 0||Ii.call(Qn)}else{var Jn;Qn==null||(Jn=Qn.pull)===null||Jn===void 0||Jn.call(Qn)}},[he]),ee.useEffect(function(){return function(){var Ii;Qn==null||(Ii=Qn.pull)===null||Ii===void 0||Ii.call(Qn)}},[]);var ur=jt&&ee.createElement(Je.default,(0,Tt.Z)({key:"mask"},Gt,{visible:he}),function(Ii,Jn){var er=Ii.className,Ji=Ii.style;return ee.createElement("div",{className:ie()("".concat(We,"-mask"),er,Ye==null?void 0:Ye.mask,fe),style:(0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({},Ji),Se),On==null?void 0:On.mask),onClick:bt&&he?re:void 0,ref:Jn})}),ir=typeof Dt=="function"?Dt(It):Dt,pr={};if(Qe&&Ri)switch(It){case"top":pr.transform="translateY(".concat(Ri,"px)");break;case"bottom":pr.transform="translateY(".concat(-Ri,"px)");break;case"left":pr.transform="translateX(".concat(Ri,"px)");break;default:pr.transform="translateX(".concat(-Ri,"px)");break}It==="left"||It==="right"?pr.width=wt(Ct):pr.height=wt(yt);var ci={onMouseEnter:Te,onMouseOver:Ne,onMouseLeave:$e,onClick:fn,onKeyDown:tn,onKeyUp:He},qi=ee.createElement(Je.default,(0,Tt.Z)({key:"panel"},ir,{visible:he,forceRender:Ze,onVisibleChanged:function(Jn){Be==null||Be(Jn)},removeOnLeave:!1,leavedClassName:"".concat(We,"-content-wrapper-hidden")}),function(Ii,Jn){var er=Ii.className,Ji=Ii.style,Zi=ee.createElement(mt,(0,Tt.Z)({id:Ve,containerRef:Jn,prefixCls:We,className:ie()(ue,Ye==null?void 0:Ye.content),style:(0,Mt.Z)((0,Mt.Z)({},In),On==null?void 0:On.content)},(0,et.Z)(Ie,{aria:!0}),ci),kt);return ee.createElement("div",(0,Tt.Z)({className:ie()("".concat(We,"-content-wrapper"),Ye==null?void 0:Ye.wrapper,er),style:(0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({},pr),Ji),On==null?void 0:On.wrapper)},(0,et.Z)(Ie,{data:!0})),Xn?Xn(Zi):Zi)}),Pt=(0,Mt.Z)({},Fe);return vn&&(Pt.zIndex=vn),ee.createElement(Re.Provider,{value:Pi},ee.createElement("div",{className:ie()(We,"".concat(We,"-").concat(It),Sn,(0,ve.Z)((0,ve.Z)({},"".concat(We,"-open"),he),"".concat(We,"-inline"),Le)),style:Pt,tabIndex:-1,ref:Pn,onKeyDown:xi},ur,ee.createElement("div",{tabIndex:0,ref:Gn,style:Wt,"aria-hidden":"true","data-sentinel":"start"}),qi,ee.createElement("div",{tabIndex:0,ref:Ni,style:Wt,"aria-hidden":"true","data-sentinel":"end"})))}var Jt=ee.forwardRef($t),Vt=Jt,pe=function(ke){var wn=ke.open,on=wn===void 0?!1:wn,qe=ke.prefixCls,We=qe===void 0?"rc-drawer":qe,he=ke.placement,It=he===void 0?"right":he,Le=ke.autoFocus,an=Le===void 0?!0:Le,Ze=ke.keyboard,Ce=Ze===void 0?!0:Ze,nn=ke.width,Ye=nn===void 0?378:nn,Sn=ke.mask,Fe=Sn===void 0?!0:Sn,vn=ke.maskClosable,ue=vn===void 0?!0:vn,Ve=ke.getContainer,In=ke.forceRender,Dt=ke.afterOpenChange,Ct=ke.destroyOnClose,yt=ke.onMouseEnter,kt=ke.onMouseOver,jt=ke.onMouseLeave,bt=ke.onClick,Gt=ke.onKeyDown,fe=ke.onKeyUp,Se=ke.panelRef,Be=ee.useState(!1),re=(0,ne.Z)(Be,2),Te=re[0],Ne=re[1],$e=ee.useState(!1),fn=(0,ne.Z)($e,2),tn=fn[0],He=fn[1];(0,xe.Z)(function(){He(!0)},[]);var On=tn?on:!1,Xn=ee.useRef(),Pn=ee.useRef();(0,xe.Z)(function(){On&&(Pn.current=document.activeElement)},[On]);var Gn=function(Qe){var sn;if(Ne(Qe),Dt==null||Dt(Qe),!Qe&&Pn.current&&!((sn=Xn.current)!==null&&sn!==void 0&&sn.contains(Pn.current))){var Qn;(Qn=Pn.current)===null||Qn===void 0||Qn.focus({preventScroll:!0})}},Ni=ee.useMemo(function(){return{panel:Se}},[Se]);if(!In&&!Te&&!On&&Ct)return null;var xi={onMouseEnter:yt,onMouseOver:kt,onMouseLeave:jt,onClick:bt,onKeyDown:Gt,onKeyUp:fe},ki=(0,Mt.Z)((0,Mt.Z)({},ke),{},{open:On,prefixCls:We,placement:It,autoFocus:an,keyboard:Ce,width:Ye,mask:Fe,maskClosable:ue,inline:Ve===!1,afterOpenChange:Gn,ref:Xn},xi);return ee.createElement(oe.Provider,{value:Ni},ee.createElement(ge.Z,{open:On||In||Te,autoDestroy:!1,getContainer:Ve,autoLock:Fe&&(On||Te)},ee.createElement(Vt,ki)))},ce=pe,Ee=ce},23425:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return Wt}});var Mt=Et(49618),ne=Et(72308),ge=Et(62853),xe=Et(77321),ee=Et(52487),Ht=Et(92310),oe=Et.n(Ht),Re=Et(18929),ve=Et(10228),Tt=Et(26112),Ue=Et(48736),ie=Et(59301),Je=Et(17119),Ot=[10,20,50,100],et=function(Jt){var Vt=Jt.pageSizeOptions,pe=Vt===void 0?Ot:Vt,ce=Jt.locale,Ee=Jt.changeSize,Ie=Jt.pageSize,ke=Jt.goButton,wn=Jt.quickGo,on=Jt.rootPrefixCls,qe=Jt.disabled,We=Jt.buildOptionText,he=Jt.showSizeChanger,It=Jt.sizeChangerRender,Le=ie.useState(""),an=(0,ee.Z)(Le,2),Ze=an[0],Ce=an[1],nn=function(){return!Ze||Number.isNaN(Ze)?void 0:Number(Ze)},Ye=typeof We=="function"?We:function(yt){return"".concat(yt," ").concat(ce.items_per_page)},Sn=function(kt){Ce(kt.target.value)},Fe=function(kt){ke||Ze===""||(Ce(""),!(kt.relatedTarget&&(kt.relatedTarget.className.indexOf("".concat(on,"-item-link"))>=0||kt.relatedTarget.className.indexOf("".concat(on,"-item"))>=0))&&(wn==null||wn(nn())))},vn=function(kt){Ze!==""&&(kt.keyCode===ve.Z.ENTER||kt.type==="click")&&(Ce(""),wn==null||wn(nn()))},ue=function(){return pe.some(function(kt){return kt.toString()===Ie.toString()})?pe:pe.concat([Ie]).sort(function(kt,jt){var bt=Number.isNaN(Number(kt))?0:Number(kt),Gt=Number.isNaN(Number(jt))?0:Number(jt);return bt-Gt})},Ve="".concat(on,"-options");if(!he&&!wn)return null;var In=null,Dt=null,Ct=null;return he&&It&&(In=It({disabled:qe,size:Ie,onSizeChange:function(kt){Ee==null||Ee(Number(kt))},"aria-label":ce.page_size,className:"".concat(Ve,"-size-changer"),options:ue().map(function(yt){return{label:Ye(yt),value:yt}})})),wn&&(ke&&(Ct=typeof ke=="boolean"?ie.createElement("button",{type:"button",onClick:vn,onKeyUp:vn,disabled:qe,className:"".concat(Ve,"-quick-jumper-button")},ce.jump_to_confirm):ie.createElement("span",{onClick:vn,onKeyUp:vn},ke)),Dt=ie.createElement("div",{className:"".concat(Ve,"-quick-jumper")},ce.jump_to,ie.createElement("input",{disabled:qe,type:"text",value:Ze,onChange:Sn,onKeyUp:vn,onBlur:Fe,"aria-label":ce.page}),ce.page,Ct)),ie.createElement("li",{className:Ve},In,Dt)},nt=et,ct=function(Jt){var Vt=Jt.rootPrefixCls,pe=Jt.page,ce=Jt.active,Ee=Jt.className,Ie=Jt.showTitle,ke=Jt.onClick,wn=Jt.onKeyPress,on=Jt.itemRender,qe="".concat(Vt,"-item"),We=oe()(qe,"".concat(qe,"-").concat(pe),(0,Mt.Z)((0,Mt.Z)({},"".concat(qe,"-active"),ce),"".concat(qe,"-disabled"),!pe),Ee),he=function(){ke(pe)},It=function(Ze){wn(Ze,ke,pe)},Le=on(pe,"page",ie.createElement("a",{rel:"nofollow"},pe));return Le?ie.createElement("li",{title:Ie?String(pe):null,className:We,onClick:he,onKeyDown:It,tabIndex:0},Le):null},lt=ct,gt=function(Jt,Vt,pe){return pe};function mt(){}function St($t){var Jt=Number($t);return typeof Jt=="number"&&!Number.isNaN(Jt)&&isFinite(Jt)&&Math.floor(Jt)===Jt}function wt($t,Jt,Vt){var pe=typeof $t=="undefined"?Jt:$t;return Math.floor((Vt-1)/pe)+1}var zt=function(Jt){var Vt=Jt.prefixCls,pe=Vt===void 0?"rc-pagination":Vt,ce=Jt.selectPrefixCls,Ee=ce===void 0?"rc-select":ce,Ie=Jt.className,ke=Jt.current,wn=Jt.defaultCurrent,on=wn===void 0?1:wn,qe=Jt.total,We=qe===void 0?0:qe,he=Jt.pageSize,It=Jt.defaultPageSize,Le=It===void 0?10:It,an=Jt.onChange,Ze=an===void 0?mt:an,Ce=Jt.hideOnSinglePage,nn=Jt.align,Ye=Jt.showPrevNextJumpers,Sn=Ye===void 0?!0:Ye,Fe=Jt.showQuickJumper,vn=Jt.showLessItems,ue=Jt.showTitle,Ve=ue===void 0?!0:ue,In=Jt.onShowSizeChange,Dt=In===void 0?mt:In,Ct=Jt.locale,yt=Ct===void 0?Je.Z:Ct,kt=Jt.style,jt=Jt.totalBoundaryShowSizeChanger,bt=jt===void 0?50:jt,Gt=Jt.disabled,fe=Jt.simple,Se=Jt.showTotal,Be=Jt.showSizeChanger,re=Be===void 0?We>bt:Be,Te=Jt.sizeChangerRender,Ne=Jt.pageSizeOptions,$e=Jt.itemRender,fn=$e===void 0?gt:$e,tn=Jt.jumpPrevIcon,He=Jt.jumpNextIcon,On=Jt.prevIcon,Xn=Jt.nextIcon,Pn=ie.useRef(null),Gn=(0,Re.Z)(10,{value:he,defaultValue:Le}),Ni=(0,ee.Z)(Gn,2),xi=Ni[0],ki=Ni[1],tr=(0,Re.Z)(1,{value:ke,defaultValue:on,postState:function(or){return Math.max(1,Math.min(or,wt(void 0,xi,We)))}}),Qe=(0,ee.Z)(tr,2),sn=Qe[0],Qn=Qe[1],Li=ie.useState(sn),Ri=(0,ee.Z)(Li,2),Pi=Ri[0],ur=Ri[1];(0,ie.useEffect)(function(){ur(sn)},[sn]);var ir=Ze!==mt,pr="current"in Jt,ci=Math.max(1,sn-(vn?3:5)),qi=Math.min(wt(void 0,xi,We),sn+(vn?3:5));function Pt(_i,or){var Cr=_i||ie.createElement("button",{type:"button","aria-label":or,className:"".concat(pe,"-item-link")});return typeof _i=="function"&&(Cr=ie.createElement(_i,(0,xe.Z)({},Jt))),Cr}function Ii(_i){var or=_i.target.value,Cr=wt(void 0,xi,We),Po;return or===""?Po=or:Number.isNaN(Number(or))?Po=Pi:or>=Cr?Po=Cr:Po=Number(or),Po}function Jn(_i){return St(_i)&&_i!==sn&&St(We)&&We>0}var er=We>xi?Fe:!1;function Ji(_i){(_i.keyCode===ve.Z.UP||_i.keyCode===ve.Z.DOWN)&&_i.preventDefault()}function Zi(_i){var or=Ii(_i);switch(or!==Pi&&ur(or),_i.keyCode){case ve.Z.ENTER:En(or);break;case ve.Z.UP:En(or-1);break;case ve.Z.DOWN:En(or+1);break;default:break}}function fi(_i){En(Ii(_i))}function bn(_i){var or=wt(_i,xi,We),Cr=sn>or&&or!==0?or:sn;ki(_i),ur(Cr),Dt==null||Dt(sn,_i),Qn(Cr),Ze==null||Ze(Cr,_i)}function En(_i){if(Jn(_i)&&!Gt){var or=wt(void 0,xi,We),Cr=_i;return _i>or?Cr=or:_i<1&&(Cr=1),Cr!==Pi&&ur(Cr),Qn(Cr),Ze==null||Ze(Cr,xi),Cr}return sn}var Ae=sn>1,Me=sn<wt(void 0,xi,We);function be(){Ae&&En(sn-1)}function qn(){Me&&En(sn+1)}function ni(){En(ci)}function Fi(){En(qi)}function gn(_i,or){if(_i.key==="Enter"||_i.charCode===ve.Z.ENTER||_i.keyCode===ve.Z.ENTER){for(var Cr=arguments.length,Po=new Array(Cr>2?Cr-2:0),co=2;co<Cr;co++)Po[co-2]=arguments[co];or.apply(void 0,Po)}}function Hn(_i){gn(_i,be)}function Oe(_i){gn(_i,qn)}function De(_i){gn(_i,ni)}function ai(_i){gn(_i,Fi)}function qt(_i){var or=fn(_i,"prev",Pt(On,"prev page"));return ie.isValidElement(or)?ie.cloneElement(or,{disabled:!Ae}):or}function un(_i){var or=fn(_i,"next",Pt(Xn,"next page"));return ie.isValidElement(or)?ie.cloneElement(or,{disabled:!Me}):or}function Rn(_i){(_i.type==="click"||_i.keyCode===ve.Z.ENTER)&&En(Pi)}var Ai=null,ln=(0,Tt.Z)(Jt,{aria:!0,data:!0}),yn=Se&&ie.createElement("li",{className:"".concat(pe,"-total-text")},Se(We,[We===0?0:(sn-1)*xi+1,sn*xi>We?We:sn*xi])),li=null,bi=wt(void 0,xi,We);if(Ce&&We<=xi)return null;var Ui=[],Di={rootPrefixCls:pe,onClick:En,onKeyPress:gn,showTitle:Ve,itemRender:fn,page:-1},$n=sn-1>0?sn-1:0,wi=sn+1<bi?sn+1:bi,dr=Fe&&Fe.goButton,fr=(0,ge.Z)(fe)==="object"?fe.readOnly:!fe,xr=dr,cn=null;fe&&(dr&&(typeof dr=="boolean"?xr=ie.createElement("button",{type:"button",onClick:Rn,onKeyUp:Rn},yt.jump_to_confirm):xr=ie.createElement("span",{onClick:Rn,onKeyUp:Rn},dr),xr=ie.createElement("li",{title:Ve?"".concat(yt.jump_to).concat(sn,"/").concat(bi):null,className:"".concat(pe,"-simple-pager")},xr)),cn=ie.createElement("li",{title:Ve?"".concat(sn,"/").concat(bi):null,className:"".concat(pe,"-simple-pager")},fr?Pi:ie.createElement("input",{type:"text","aria-label":yt.jump_to,value:Pi,disabled:Gt,onKeyDown:Ji,onKeyUp:Zi,onChange:Zi,onBlur:fi,size:3}),ie.createElement("span",{className:"".concat(pe,"-slash")},"/"),bi));var _r=vn?1:2;if(bi<=3+_r*2){bi||Ui.push(ie.createElement(lt,(0,ne.Z)({},Di,{key:"noPager",page:1,className:"".concat(pe,"-item-disabled")})));for(var kr=1;kr<=bi;kr+=1)Ui.push(ie.createElement(lt,(0,ne.Z)({},Di,{key:kr,page:kr,active:sn===kr})))}else{var to=vn?yt.prev_3:yt.prev_5,rn=vn?yt.next_3:yt.next_5,gi=fn(ci,"jump-prev",Pt(tn,"prev page")),Ki=fn(qi,"jump-next",Pt(He,"next page"));Sn&&(Ai=gi?ie.createElement("li",{title:Ve?to:null,key:"prev",onClick:ni,tabIndex:0,onKeyDown:De,className:oe()("".concat(pe,"-jump-prev"),(0,Mt.Z)({},"".concat(pe,"-jump-prev-custom-icon"),!!tn))},gi):null,li=Ki?ie.createElement("li",{title:Ve?rn:null,key:"next",onClick:Fi,tabIndex:0,onKeyDown:ai,className:oe()("".concat(pe,"-jump-next"),(0,Mt.Z)({},"".concat(pe,"-jump-next-custom-icon"),!!He))},Ki):null);var nr=Math.max(1,sn-_r),Qi=Math.min(sn+_r,bi);sn-1<=_r&&(Qi=1+_r*2),bi-sn<=_r&&(nr=bi-_r*2);for(var rr=nr;rr<=Qi;rr+=1)Ui.push(ie.createElement(lt,(0,ne.Z)({},Di,{key:rr,page:rr,active:sn===rr})));if(sn-1>=_r*2&&sn!==3&&(Ui[0]=ie.cloneElement(Ui[0],{className:oe()("".concat(pe,"-item-after-jump-prev"),Ui[0].props.className)}),Ui.unshift(Ai)),bi-sn>=_r*2&&sn!==bi-2){var Zr=Ui[Ui.length-1];Ui[Ui.length-1]=ie.cloneElement(Zr,{className:oe()("".concat(pe,"-item-before-jump-next"),Zr.props.className)}),Ui.push(li)}nr!==1&&Ui.unshift(ie.createElement(lt,(0,ne.Z)({},Di,{key:1,page:1}))),Qi!==bi&&Ui.push(ie.createElement(lt,(0,ne.Z)({},Di,{key:bi,page:bi})))}var Br=qt($n);if(Br){var Hr=!Ae||!bi;Br=ie.createElement("li",{title:Ve?yt.prev_page:null,onClick:be,tabIndex:Hr?null:0,onKeyDown:Hn,className:oe()("".concat(pe,"-prev"),(0,Mt.Z)({},"".concat(pe,"-disabled"),Hr)),"aria-disabled":Hr},Br)}var zr=un(wi);if(zr){var pn,Yr;fe?(pn=!Me,Yr=Ae?0:null):(pn=!Me||!bi,Yr=pn?null:0),zr=ie.createElement("li",{title:Ve?yt.next_page:null,onClick:qn,tabIndex:Yr,onKeyDown:Oe,className:oe()("".concat(pe,"-next"),(0,Mt.Z)({},"".concat(pe,"-disabled"),pn)),"aria-disabled":pn},zr)}var Ln=oe()(pe,Ie,(0,Mt.Z)((0,Mt.Z)((0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({},"".concat(pe,"-start"),nn==="start"),"".concat(pe,"-center"),nn==="center"),"".concat(pe,"-end"),nn==="end"),"".concat(pe,"-simple"),fe),"".concat(pe,"-disabled"),Gt));return ie.createElement("ul",(0,ne.Z)({className:Ln,style:kt,ref:Pn},ln),yn,Br,fe?cn:Ui,zr,ie.createElement(nt,{locale:yt,rootPrefixCls:pe,disabled:Gt,selectPrefixCls:Ee,changeSize:bn,pageSize:xi,pageSizeOptions:Ne,quickGo:er?En:null,goButton:xr,showSizeChanger:re,sizeChangerRender:Te}))},Wt=zt},48365:function(An,Un,Et){"use strict";var Mt=Et(61186),ne=Et.n(Mt),ge=Et(90111),xe=Et.n(ge),ee=Et(58319),Ht=Et.n(ee),oe=Et(23250),Re=Et.n(oe),ve=Et(74959),Tt=Et.n(ve),Ue=Et(10238),ie=Et.n(Ue),Je=Et(33656),Ot=Et.n(Je);ne().extend(Ot()),ne().extend(ie()),ne().extend(xe()),ne().extend(Ht()),ne().extend(Re()),ne().extend(Tt()),ne().extend(function(gt,mt){var St=mt.prototype,wt=St.format;St.format=function(Wt){var $t=(Wt||"").replace("Wo","wo");return wt.bind(this)($t)}});var et={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"},nt=function(mt){var St=et[mt];return St||mt.split("_")[0]},ct=function(){},lt={getNow:function(){var mt=ne()();return typeof mt.tz=="function"?mt.tz():mt},getFixedDate:function(mt){return ne()(mt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(mt){return mt.endOf("month")},getWeekDay:function(mt){var St=mt.locale("en");return St.weekday()+St.localeData().firstDayOfWeek()},getYear:function(mt){return mt.year()},getMonth:function(mt){return mt.month()},getDate:function(mt){return mt.date()},getHour:function(mt){return mt.hour()},getMinute:function(mt){return mt.minute()},getSecond:function(mt){return mt.second()},getMillisecond:function(mt){return mt.millisecond()},addYear:function(mt,St){return mt.add(St,"year")},addMonth:function(mt,St){return mt.add(St,"month")},addDate:function(mt,St){return mt.add(St,"day")},setYear:function(mt,St){return mt.year(St)},setMonth:function(mt,St){return mt.month(St)},setDate:function(mt,St){return mt.date(St)},setHour:function(mt,St){return mt.hour(St)},setMinute:function(mt,St){return mt.minute(St)},setSecond:function(mt,St){return mt.second(St)},setMillisecond:function(mt,St){return mt.millisecond(St)},isAfter:function(mt,St){return mt.isAfter(St)},isValidate:function(mt){return mt.isValid()},locale:{getWeekFirstDay:function(mt){return ne()().locale(nt(mt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(mt,St){return St.locale(nt(mt)).weekday(0)},getWeek:function(mt,St){return St.locale(nt(mt)).week()},getShortWeekDays:function(mt){return ne()().locale(nt(mt)).localeData().weekdaysMin()},getShortMonths:function(mt){return ne()().locale(nt(mt)).localeData().monthsShort()},format:function(mt,St,wt){return St.locale(nt(mt)).format(wt)},parse:function(mt,St,wt){for(var zt=nt(mt),Wt=0;Wt<wt.length;Wt+=1){var $t=wt[Wt],Jt=St;if($t.includes("wo")||$t.includes("Wo")){for(var Vt=Jt.split("-")[0],pe=Jt.split("-")[1],ce=ne()(Vt,"YYYY").startOf("year").locale(zt),Ee=0;Ee<=52;Ee+=1){var Ie=ce.add(Ee,"week");if(Ie.format("Wo")===pe)return Ie}return ct(),null}var ke=ne()(Jt,$t,!0).locale(zt);if(ke.isValid())return ke}return St&&ct(),null}}};Un.Z=lt},8571:function(An,Un,Et){"use strict";Et.d(Un,{Sq:function(){return ti},ZP:function(){return ar}});var Mt=Et(72308),ne=Et(80702),ge=Et(77321),xe=Et(52487),ee=Et(70425),Ht=Et(34280),oe=Et(2738),Re=Et(26112),ve=Et(48736),Tt=Et(59301),Ue=Et(49618),ie=Et(65352),Je=Et(92310),Ot=Et.n(Je);function et(Nt,ae){return Nt!==void 0?Nt:ae?"bottomRight":"bottomLeft"}var nt=Tt.createContext(null),ct=nt,lt={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 gt(Nt){var ae=Nt.popupElement,Ut=Nt.popupStyle,se=Nt.popupClassName,we=Nt.popupAlign,Xe=Nt.transitionName,en=Nt.getPopupContainer,hn=Nt.children,Bn=Nt.range,Dn=Nt.placement,mn=Nt.builtinPlacements,ii=mn===void 0?lt:mn,Bi=Nt.direction,de=Nt.visible,Wn=Nt.onClose,Yn=Tt.useContext(ct),zn=Yn.prefixCls,_n="".concat(zn,"-dropdown"),ei=et(Dn,Bi==="rtl");return Tt.createElement(ie.Z,{showAction:[],hideAction:["click"],popupPlacement:ei,builtinPlacements:ii,prefixCls:_n,popupTransitionName:Xe,popup:ae,popupAlign:we,popupVisible:de,popupClassName:Ot()(se,(0,Ue.Z)((0,Ue.Z)({},"".concat(_n,"-range"),Bn),"".concat(_n,"-rtl"),Bi==="rtl")),popupStyle:Ut,stretch:"minWidth",getPopupContainer:en,onPopupVisibleChange:function(yi){yi||Wn()}},hn)}var mt=gt;function St(Nt,ae){for(var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",se=String(Nt);se.length<ae;)se="".concat(Ut).concat(se);return se}function wt(Nt){return Nt==null?[]:Array.isArray(Nt)?Nt:[Nt]}function zt(Nt,ae,Ut){var se=(0,ne.Z)(Nt);return se[ae]=Ut,se}function Wt(Nt,ae){var Ut={},se=ae||Object.keys(Nt);return se.forEach(function(we){Nt[we]!==void 0&&(Ut[we]=Nt[we])}),Ut}function $t(Nt,ae,Ut){if(Ut)return Ut;switch(Nt){case"time":return ae.fieldTimeFormat;case"datetime":return ae.fieldDateTimeFormat;case"month":return ae.fieldMonthFormat;case"year":return ae.fieldYearFormat;case"quarter":return ae.fieldQuarterFormat;case"week":return ae.fieldWeekFormat;default:return ae.fieldDateFormat}}function Jt(Nt,ae,Ut){var se=Ut!==void 0?Ut:ae[ae.length-1],we=ae.find(function(Xe){return Nt[Xe]});return se!==we?Nt[we]:void 0}function Vt(Nt){return Wt(Nt,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function pe(Nt,ae,Ut,se){var we=Tt.useMemo(function(){return Nt||function(en,hn){var Bn=en;return ae&&hn.type==="date"?ae(Bn,hn.today):Ut&&hn.type==="month"?Ut(Bn,hn.locale):hn.originNode}},[Nt,Ut,ae]),Xe=Tt.useCallback(function(en,hn){return we(en,(0,ge.Z)((0,ge.Z)({},hn),{},{range:se}))},[we,se]);return Xe}function ce(Nt,ae){var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],se=Tt.useState([!1,!1]),we=(0,xe.Z)(se,2),Xe=we[0],en=we[1],hn=function(mn,ii){en(function(Bi){return zt(Bi,ii,mn)})},Bn=Tt.useMemo(function(){return Xe.map(function(Dn,mn){if(Dn)return!0;var ii=Nt[mn];return ii?!!(!Ut[mn]&&!ii||ii&&ae(ii,{activeIndex:mn})):!1})},[Nt,Xe,ae,Ut]);return[Bn,hn]}function Ee(Nt,ae,Ut,se,we){var Xe="",en=[];return Nt&&en.push(we?"hh":"HH"),ae&&en.push("mm"),Ut&&en.push("ss"),Xe=en.join(":"),se&&(Xe+=".SSS"),we&&(Xe+=" A"),Xe}function Ie(Nt,ae,Ut,se,we,Xe){var en=Nt.fieldDateTimeFormat,hn=Nt.fieldDateFormat,Bn=Nt.fieldTimeFormat,Dn=Nt.fieldMonthFormat,mn=Nt.fieldYearFormat,ii=Nt.fieldWeekFormat,Bi=Nt.fieldQuarterFormat,de=Nt.yearFormat,Wn=Nt.cellYearFormat,Yn=Nt.cellQuarterFormat,zn=Nt.dayFormat,_n=Nt.cellDateFormat,ei=Ee(ae,Ut,se,we,Xe);return(0,ge.Z)((0,ge.Z)({},Nt),{},{fieldDateTimeFormat:en||"YYYY-MM-DD ".concat(ei),fieldDateFormat:hn||"YYYY-MM-DD",fieldTimeFormat:Bn||ei,fieldMonthFormat:Dn||"YYYY-MM",fieldYearFormat:mn||"YYYY",fieldWeekFormat:ii||"gggg-wo",fieldQuarterFormat:Bi||"YYYY-[Q]Q",yearFormat:de||"YYYY",cellYearFormat:Wn||"YYYY",cellQuarterFormat:Yn||"[Q]Q",cellDateFormat:_n||zn||"D"})}function ke(Nt,ae){var Ut=ae.showHour,se=ae.showMinute,we=ae.showSecond,Xe=ae.showMillisecond,en=ae.use12Hours;return Tt.useMemo(function(){return Ie(Nt,Ut,se,we,Xe,en)},[Nt,Ut,se,we,Xe,en])}var wn=Et(62853);function on(Nt,ae,Ut){return Ut!=null?Ut:ae.some(function(se){return Nt.includes(se)})}var qe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function We(Nt){var ae=Wt(Nt,qe),Ut=Nt.format,se=Nt.picker,we=null;return Ut&&(we=Ut,Array.isArray(we)&&(we=we[0]),we=(0,wn.Z)(we)==="object"?we.format:we),se==="time"&&(ae.format=we),[ae,we]}function he(Nt){return Nt&&typeof Nt=="string"}function It(Nt,ae,Ut,se){return[Nt,ae,Ut,se].some(function(we){return we!==void 0})}function Le(Nt,ae,Ut,se,we){var Xe=ae,en=Ut,hn=se;if(!Nt&&!Xe&&!en&&!hn&&!we)Xe=!0,en=!0,hn=!0;else if(Nt){var Bn,Dn,mn,ii=[Xe,en,hn].some(function(Wn){return Wn===!1}),Bi=[Xe,en,hn].some(function(Wn){return Wn===!0}),de=ii?!0:!Bi;Xe=(Bn=Xe)!==null&&Bn!==void 0?Bn:de,en=(Dn=en)!==null&&Dn!==void 0?Dn:de,hn=(mn=hn)!==null&&mn!==void 0?mn:de}return[Xe,en,hn,we]}function an(Nt){var ae=Nt.showTime,Ut=We(Nt),se=(0,xe.Z)(Ut,2),we=se[0],Xe=se[1],en=ae&&(0,wn.Z)(ae)==="object"?ae:{},hn=(0,ge.Z)((0,ge.Z)({defaultOpenValue:en.defaultOpenValue||en.defaultValue},we),en),Bn=hn.showMillisecond,Dn=hn.showHour,mn=hn.showMinute,ii=hn.showSecond,Bi=It(Dn,mn,ii,Bn),de=Le(Bi,Dn,mn,ii,Bn),Wn=(0,xe.Z)(de,3);return Dn=Wn[0],mn=Wn[1],ii=Wn[2],[hn,(0,ge.Z)((0,ge.Z)({},hn),{},{showHour:Dn,showMinute:mn,showSecond:ii,showMillisecond:Bn}),hn.format,Xe]}function Ze(Nt,ae,Ut,se,we){var Xe=Nt==="time";if(Nt==="datetime"||Xe){for(var en=se,hn=$t(Nt,we,null),Bn=hn,Dn=[ae,Ut],mn=0;mn<Dn.length;mn+=1){var ii=wt(Dn[mn])[0];if(he(ii)){Bn=ii;break}}var Bi=en.showHour,de=en.showMinute,Wn=en.showSecond,Yn=en.showMillisecond,zn=en.use12Hours,_n=on(Bn,["a","A","LT","LLL","LTS"],zn),ei=It(Bi,de,Wn,Yn);ei||(Bi=on(Bn,["H","h","k","LT","LLL"]),de=on(Bn,["m","LT","LLL"]),Wn=on(Bn,["s","LTS"]),Yn=on(Bn,["SSS"]));var Oi=Le(ei,Bi,de,Wn,Yn),yi=(0,xe.Z)(Oi,3);Bi=yi[0],de=yi[1],Wn=yi[2];var oi=ae||Ee(Bi,de,Wn,Yn,_n);return(0,ge.Z)((0,ge.Z)({},en),{},{format:oi,showHour:Bi,showMinute:de,showSecond:Wn,showMillisecond:Yn,use12Hours:_n})}return null}function Ce(Nt,ae,Ut){if(ae===!1)return null;var se=ae&&(0,wn.Z)(ae)==="object"?ae:{};return se.clearIcon||Ut||Tt.createElement("span",{className:"".concat(Nt,"-clear-btn")})}var nn=7;function Ye(Nt,ae,Ut){return!Nt&&!ae||Nt===ae?!0:!Nt||!ae?!1:Ut()}function Sn(Nt,ae,Ut){return Ye(ae,Ut,function(){var se=Math.floor(Nt.getYear(ae)/10),we=Math.floor(Nt.getYear(Ut)/10);return se===we})}function Fe(Nt,ae,Ut){return Ye(ae,Ut,function(){return Nt.getYear(ae)===Nt.getYear(Ut)})}function vn(Nt,ae){var Ut=Math.floor(Nt.getMonth(ae)/3);return Ut+1}function ue(Nt,ae,Ut){return Ye(ae,Ut,function(){return Fe(Nt,ae,Ut)&&vn(Nt,ae)===vn(Nt,Ut)})}function Ve(Nt,ae,Ut){return Ye(ae,Ut,function(){return Fe(Nt,ae,Ut)&&Nt.getMonth(ae)===Nt.getMonth(Ut)})}function In(Nt,ae,Ut){return Ye(ae,Ut,function(){return Fe(Nt,ae,Ut)&&Ve(Nt,ae,Ut)&&Nt.getDate(ae)===Nt.getDate(Ut)})}function Dt(Nt,ae,Ut){return Ye(ae,Ut,function(){return Nt.getHour(ae)===Nt.getHour(Ut)&&Nt.getMinute(ae)===Nt.getMinute(Ut)&&Nt.getSecond(ae)===Nt.getSecond(Ut)})}function Ct(Nt,ae,Ut){return Ye(ae,Ut,function(){return In(Nt,ae,Ut)&&Dt(Nt,ae,Ut)&&Nt.getMillisecond(ae)===Nt.getMillisecond(Ut)})}function yt(Nt,ae,Ut,se){return Ye(Ut,se,function(){var we=Nt.locale.getWeekFirstDate(ae,Ut),Xe=Nt.locale.getWeekFirstDate(ae,se);return Fe(Nt,we,Xe)&&Nt.locale.getWeek(ae,Ut)===Nt.locale.getWeek(ae,se)})}function kt(Nt,ae,Ut,se,we){switch(we){case"date":return In(Nt,Ut,se);case"week":return yt(Nt,ae.locale,Ut,se);case"month":return Ve(Nt,Ut,se);case"quarter":return ue(Nt,Ut,se);case"year":return Fe(Nt,Ut,se);case"decade":return Sn(Nt,Ut,se);case"time":return Dt(Nt,Ut,se);default:return Ct(Nt,Ut,se)}}function jt(Nt,ae,Ut,se){return!ae||!Ut||!se?!1:Nt.isAfter(se,ae)&&Nt.isAfter(Ut,se)}function bt(Nt,ae,Ut,se,we){return kt(Nt,ae,Ut,se,we)?!0:Nt.isAfter(Ut,se)}function Gt(Nt,ae,Ut){var se=ae.locale.getWeekFirstDay(Nt),we=ae.setDate(Ut,1),Xe=ae.getWeekDay(we),en=ae.addDate(we,se-Xe);return ae.getMonth(en)===ae.getMonth(Ut)&&ae.getDate(en)>1&&(en=ae.addDate(en,-7)),en}function fe(Nt,ae){var Ut=ae.generateConfig,se=ae.locale,we=ae.format;return Nt?typeof we=="function"?we(Nt):Ut.locale.format(se.locale,Nt,we):""}function Se(Nt,ae,Ut){var se=ae,we=["getHour","getMinute","getSecond","getMillisecond"],Xe=["setHour","setMinute","setSecond","setMillisecond"];return Xe.forEach(function(en,hn){Ut?se=Nt[en](se,Nt[we[hn]](Ut)):se=Nt[en](se,0)}),se}function Be(Nt,ae,Ut,se,we){var Xe=(0,ee.zX)(function(en,hn){return!!(Ut&&Ut(en,hn)||se&&Nt.isAfter(se,en)&&!kt(Nt,ae,se,en,hn.type)||we&&Nt.isAfter(en,we)&&!kt(Nt,ae,we,en,hn.type))});return Xe}function re(Nt,ae,Ut){return Tt.useMemo(function(){var se=$t(Nt,ae,Ut),we=wt(se),Xe=we[0],en=(0,wn.Z)(Xe)==="object"&&Xe.type==="mask"?Xe.format:null;return[we.map(function(hn){return typeof hn=="string"||typeof hn=="function"?hn:hn.format}),en]},[Nt,ae,Ut])}function Te(Nt,ae,Ut){return typeof Nt[0]=="function"||Ut?!0:ae}function Ne(Nt,ae,Ut,se){var we=(0,ee.zX)(function(Xe,en){var hn=(0,ge.Z)({type:ae},en);if(delete hn.activeIndex,!Nt.isValidate(Xe)||Ut&&Ut(Xe,hn))return!0;if((ae==="date"||ae==="time")&&se){var Bn,Dn=en&&en.activeIndex===1?"end":"start",mn=((Bn=se.disabledTime)===null||Bn===void 0?void 0:Bn.call(se,Xe,Dn,{from:hn.from}))||{},ii=mn.disabledHours,Bi=mn.disabledMinutes,de=mn.disabledSeconds,Wn=mn.disabledMilliseconds,Yn=se.disabledHours,zn=se.disabledMinutes,_n=se.disabledSeconds,ei=ii||Yn,Oi=Bi||zn,yi=de||_n,oi=Nt.getHour(Xe),Vn=Nt.getMinute(Xe),zi=Nt.getSecond(Xe),lr=Nt.getMillisecond(Xe);if(ei&&ei().includes(oi)||Oi&&Oi(oi).includes(Vn)||yi&&yi(oi,Vn).includes(zi)||Wn&&Wn(oi,Vn,zi).includes(lr))return!0}return!1});return we}function $e(Nt){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=Tt.useMemo(function(){var se=Nt&&wt(Nt);return ae&&se&&(se[1]=se[1]||se[0]),se},[Nt,ae]);return Ut}function fn(Nt,ae){var Ut=Nt.generateConfig,se=Nt.locale,we=Nt.picker,Xe=we===void 0?"date":we,en=Nt.prefixCls,hn=en===void 0?"rc-picker":en,Bn=Nt.styles,Dn=Bn===void 0?{}:Bn,mn=Nt.classNames,ii=mn===void 0?{}:mn,Bi=Nt.order,de=Bi===void 0?!0:Bi,Wn=Nt.components,Yn=Wn===void 0?{}:Wn,zn=Nt.inputRender,_n=Nt.allowClear,ei=Nt.clearIcon,Oi=Nt.needConfirm,yi=Nt.multiple,oi=Nt.format,Vn=Nt.inputReadOnly,zi=Nt.disabledDate,lr=Nt.minDate,mr=Nt.maxDate,Er=Nt.showTime,Si=Nt.value,cr=Nt.defaultValue,gr=Nt.pickerValue,Pr=Nt.defaultPickerValue,Vi=$e(Si),Xi=$e(cr),dn=$e(gr),Gi=$e(Pr),hr=Xe==="date"&&Er?"datetime":Xe,Fr=hr==="time"||hr==="datetime",Or=Fr||yi,yr=Oi!=null?Oi:Fr,ji=an(Nt),br=(0,xe.Z)(ji,4),Ur=br[0],Jr=br[1],Tr=br[2],so=br[3],no=ke(se,Jr),Wr=Tt.useMemo(function(){return Ze(hr,Tr,so,Ur,no)},[hr,Tr,so,Ur,no]),fo=Tt.useMemo(function(){return(0,ge.Z)((0,ge.Z)({},Nt),{},{prefixCls:hn,locale:no,picker:Xe,styles:Dn,classNames:ii,order:de,components:(0,ge.Z)({input:zn},Yn),clearIcon:Ce(hn,_n,ei),showTime:Wr,value:Vi,defaultValue:Xi,pickerValue:dn,defaultPickerValue:Gi},ae==null?void 0:ae())},[Nt]),Mo=re(hr,no,oi),_o=(0,xe.Z)(Mo,2),io=_o[0],ta=_o[1],Ao=Te(io,Vn,yi),ca=Be(Ut,se,zi,lr,mr),No=Ne(Ut,Xe,ca,Wr),Xo=Tt.useMemo(function(){return(0,ge.Z)((0,ge.Z)({},fo),{},{needConfirm:yr,inputReadOnly:Ao,disabledDate:ca})},[fo,yr,Ao,ca]);return[Xo,hr,Or,io,ta,No]}var tn=Et(16089);function He(Nt,ae,Ut){var se=(0,ee.C8)(ae,{value:Nt}),we=(0,xe.Z)(se,2),Xe=we[0],en=we[1],hn=Tt.useRef(Nt),Bn=Tt.useRef(),Dn=function(){tn.Z.cancel(Bn.current)},mn=(0,ee.zX)(function(){en(hn.current),Ut&&Xe!==hn.current&&Ut(hn.current)}),ii=(0,ee.zX)(function(Bi,de){Dn(),hn.current=Bi,Bi||de?mn():Bn.current=(0,tn.Z)(mn)});return Tt.useEffect(function(){return Dn},[]),[Xe,ii]}function On(Nt,ae){var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],se=arguments.length>3?arguments[3]:void 0,we=Ut.every(function(mn){return mn})?!1:Nt,Xe=He(we,ae||!1,se),en=(0,xe.Z)(Xe,2),hn=en[0],Bn=en[1];function Dn(mn){var ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!ii.inherit||hn)&&Bn(mn,ii.force)}return[hn,Dn]}function Xn(Nt){var ae=Tt.useRef();return Tt.useImperativeHandle(Nt,function(){var Ut;return{nativeElement:(Ut=ae.current)===null||Ut===void 0?void 0:Ut.nativeElement,focus:function(we){var Xe;(Xe=ae.current)===null||Xe===void 0||Xe.focus(we)},blur:function(){var we;(we=ae.current)===null||we===void 0||we.blur()}}}),ae}function Pn(Nt,ae){return Tt.useMemo(function(){return Nt||(ae?((0,ve.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ae).map(function(Ut){var se=(0,xe.Z)(Ut,2),we=se[0],Xe=se[1];return{label:we,value:Xe}})):[])},[Nt,ae])}function Gn(Nt,ae){var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,se=Tt.useRef(ae);se.current=ae,(0,Ht.o)(function(){if(Nt)se.current(Nt);else{var we=(0,tn.Z)(function(){se.current(Nt)},Ut);return function(){tn.Z.cancel(we)}}},[Nt])}function Ni(Nt){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,se=Tt.useState(0),we=(0,xe.Z)(se,2),Xe=we[0],en=we[1],hn=Tt.useState(!1),Bn=(0,xe.Z)(hn,2),Dn=Bn[0],mn=Bn[1],ii=Tt.useRef([]),Bi=Tt.useRef(null),de=Tt.useRef(null),Wn=function(yi){Bi.current=yi},Yn=function(yi){return Bi.current===yi},zn=function(yi){mn(yi)},_n=function(yi){return yi&&(de.current=yi),de.current},ei=function(yi){var oi=ii.current,Vn=new Set(oi.filter(function(lr){return yi[lr]||ae[lr]})),zi=oi[oi.length-1]===0?1:0;return Vn.size>=2||Nt[zi]?null:zi};return Gn(Dn||Ut,function(){Dn||(ii.current=[],Wn(null))}),Tt.useEffect(function(){Dn&&ii.current.push(Xe)},[Dn,Xe]),[Dn,zn,_n,Xe,en,ei,ii.current,Wn,Yn]}function xi(Nt,ae,Ut,se,we,Xe){var en=Ut[Ut.length-1],hn=function(Dn,mn){var ii=(0,xe.Z)(Nt,2),Bi=ii[0],de=ii[1],Wn=(0,ge.Z)((0,ge.Z)({},mn),{},{from:Jt(Nt,Ut)});return en===1&&ae[0]&&Bi&&!kt(se,we,Bi,Dn,Wn.type)&&se.isAfter(Bi,Dn)||en===0&&ae[1]&&de&&!kt(se,we,de,Dn,Wn.type)&&se.isAfter(Dn,de)?!0:Xe==null?void 0:Xe(Dn,Wn)};return hn}function ki(Nt,ae,Ut,se){switch(ae){case"date":case"week":return Nt.addMonth(Ut,se);case"month":case"quarter":return Nt.addYear(Ut,se);case"year":return Nt.addYear(Ut,se*10);case"decade":return Nt.addYear(Ut,se*100);default:return Ut}}var tr=[];function Qe(Nt,ae,Ut,se,we,Xe,en,hn){var Bn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:tr,Dn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:tr,mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:tr,ii=arguments.length>11?arguments[11]:void 0,Bi=arguments.length>12?arguments[12]:void 0,de=arguments.length>13?arguments[13]:void 0,Wn=en==="time",Yn=Xe||0,zn=function(dn){var Gi=Nt.getNow();return Wn&&(Gi=Se(Nt,Gi)),Bn[dn]||Ut[dn]||Gi},_n=(0,xe.Z)(Dn,2),ei=_n[0],Oi=_n[1],yi=(0,ee.C8)(function(){return zn(0)},{value:ei}),oi=(0,xe.Z)(yi,2),Vn=oi[0],zi=oi[1],lr=(0,ee.C8)(function(){return zn(1)},{value:Oi}),mr=(0,xe.Z)(lr,2),Er=mr[0],Si=mr[1],cr=Tt.useMemo(function(){var Xi=[Vn,Er][Yn];return Wn?Xi:Se(Nt,Xi,mn[Yn])},[Wn,Vn,Er,Yn,Nt,mn]),gr=function(dn){var Gi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",hr=[zi,Si][Yn];hr(dn);var Fr=[Vn,Er];Fr[Yn]=dn,ii&&(!kt(Nt,ae,Vn,Fr[0],en)||!kt(Nt,ae,Er,Fr[1],en))&&ii(Fr,{source:Gi,range:Yn===1?"end":"start",mode:se})},Pr=function(dn,Gi){if(hn){var hr={date:"month",week:"month",month:"year",quarter:"year"},Fr=hr[en];if(Fr&&!kt(Nt,ae,dn,Gi,Fr))return ki(Nt,en,Gi,-1);if(en==="year"&&dn){var Or=Math.floor(Nt.getYear(dn)/10),yr=Math.floor(Nt.getYear(Gi)/10);if(Or!==yr)return ki(Nt,en,Gi,-1)}}return Gi},Vi=Tt.useRef(null);return(0,Ht.Z)(function(){if(we&&!Bn[Yn]){var Xi=Wn?null:Nt.getNow();if(Vi.current!==null&&Vi.current!==Yn?Xi=[Vn,Er][Yn^1]:Ut[Yn]?Xi=Yn===0?Ut[0]:Pr(Ut[0],Ut[1]):Ut[Yn^1]&&(Xi=Ut[Yn^1]),Xi){Bi&&Nt.isAfter(Bi,Xi)&&(Xi=Bi);var dn=hn?ki(Nt,en,Xi,1):Xi;de&&Nt.isAfter(dn,de)&&(Xi=hn?ki(Nt,en,de,-1):de),gr(Xi,"reset")}}},[we,Yn,Ut[Yn]]),Tt.useEffect(function(){we?Vi.current=Yn:Vi.current=null},[we,Yn]),(0,Ht.Z)(function(){we&&Bn&&Bn[Yn]&&gr(Bn[Yn],"reset")},[we,Yn]),[cr,gr]}function sn(Nt,ae){var Ut=Tt.useRef(Nt),se=Tt.useState({}),we=(0,xe.Z)(se,2),Xe=we[1],en=function(Dn){return Dn&&ae!==void 0?ae:Ut.current},hn=function(Dn){Ut.current=Dn,Xe({})};return[en,hn,en(!0)]}var Qn=[];function Li(Nt,ae,Ut){var se=function(en){return en.map(function(hn){return fe(hn,{generateConfig:Nt,locale:ae,format:Ut[0]})})},we=function(en,hn){for(var Bn=Math.max(en.length,hn.length),Dn=-1,mn=0;mn<Bn;mn+=1){var ii=en[mn]||null,Bi=hn[mn]||null;if(ii!==Bi&&!Ct(Nt,ii,Bi)){Dn=mn;break}}return[Dn<0,Dn!==0]};return[se,we]}function Ri(Nt,ae){return(0,ne.Z)(Nt).sort(function(Ut,se){return ae.isAfter(Ut,se)?1:-1})}function Pi(Nt){var ae=sn(Nt),Ut=(0,xe.Z)(ae,2),se=Ut[0],we=Ut[1],Xe=(0,ee.zX)(function(){we(Nt)});return Tt.useEffect(function(){Xe()},[Nt]),[se,we]}function ur(Nt,ae,Ut,se,we,Xe,en,hn,Bn){var Dn=(0,ee.C8)(Xe,{value:en}),mn=(0,xe.Z)(Dn,2),ii=mn[0],Bi=mn[1],de=ii||Qn,Wn=Pi(de),Yn=(0,xe.Z)(Wn,2),zn=Yn[0],_n=Yn[1],ei=Li(Nt,ae,Ut),Oi=(0,xe.Z)(ei,2),yi=Oi[0],oi=Oi[1],Vn=(0,ee.zX)(function(lr){var mr=(0,ne.Z)(lr);if(se)for(var Er=0;Er<2;Er+=1)mr[Er]=mr[Er]||null;else we&&(mr=Ri(mr.filter(function(Xi){return Xi}),Nt));var Si=oi(zn(),mr),cr=(0,xe.Z)(Si,2),gr=cr[0],Pr=cr[1];if(!gr&&(_n(mr),hn)){var Vi=yi(mr);hn(mr,Vi,{range:Pr?"end":"start"})}}),zi=function(){Bn&&Bn(zn())};return[de,Bi,zn,Vn,zi]}function ir(Nt,ae,Ut,se,we,Xe,en,hn,Bn,Dn){var mn=Nt.generateConfig,ii=Nt.locale,Bi=Nt.picker,de=Nt.onChange,Wn=Nt.allowEmpty,Yn=Nt.order,zn=Xe.some(function(gr){return gr})?!1:Yn,_n=Li(mn,ii,en),ei=(0,xe.Z)(_n,2),Oi=ei[0],yi=ei[1],oi=sn(ae),Vn=(0,xe.Z)(oi,2),zi=Vn[0],lr=Vn[1],mr=(0,ee.zX)(function(){lr(ae)});Tt.useEffect(function(){mr()},[ae]);var Er=(0,ee.zX)(function(gr){var Pr=gr===null,Vi=(0,ne.Z)(gr||zi());if(Pr)for(var Xi=Math.max(Xe.length,Vi.length),dn=0;dn<Xi;dn+=1)Xe[dn]||(Vi[dn]=null);zn&&Vi[0]&&Vi[1]&&(Vi=Ri(Vi,mn)),we(Vi);var Gi=Vi,hr=(0,xe.Z)(Gi,2),Fr=hr[0],Or=hr[1],yr=!Fr,ji=!Or,br=Wn?(!yr||Wn[0])&&(!ji||Wn[1]):!0,Ur=!Yn||yr||ji||kt(mn,ii,Fr,Or,Bi)||mn.isAfter(Or,Fr),Jr=(Xe[0]||!Fr||!Dn(Fr,{activeIndex:0}))&&(Xe[1]||!Or||!Dn(Or,{from:Fr,activeIndex:1})),Tr=Pr||br&&Ur&&Jr;if(Tr){Ut(Vi);var so=yi(Vi,ae),no=(0,xe.Z)(so,1),Wr=no[0];de&&!Wr&&de(Pr&&Vi.every(function(fo){return!fo})?null:Vi,Oi(Vi))}return Tr}),Si=(0,ee.zX)(function(gr,Pr){var Vi=zt(zi(),gr,se()[gr]);lr(Vi),Pr&&Er()}),cr=!hn&&!Bn;return Gn(!cr,function(){cr&&(Er(),we(ae),mr())},2),[Si,Er]}function pr(Nt,ae,Ut,se,we){return ae!=="date"&&ae!=="time"?!1:Ut!==void 0?Ut:se!==void 0?se:!we&&(Nt==="date"||Nt==="time")}var ci=Et(29301);function qi(Nt,ae,Ut,se,we,Xe){var en=Nt;function hn(ii,Bi,de){var Wn=Xe[ii](en),Yn=de.find(function(Oi){return Oi.value===Wn});if(!Yn||Yn.disabled){var zn=de.filter(function(Oi){return!Oi.disabled}),_n=(0,ne.Z)(zn).reverse(),ei=_n.find(function(Oi){return Oi.value<=Wn})||zn[0];ei&&(Wn=ei.value,en=Xe[Bi](en,Wn))}return Wn}var Bn=hn("getHour","setHour",ae()),Dn=hn("getMinute","setMinute",Ut(Bn)),mn=hn("getSecond","setSecond",se(Bn,Dn));return hn("getMillisecond","setMillisecond",we(Bn,Dn,mn)),en}function Pt(){return[]}function Ii(Nt,ae){for(var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,we=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Xe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,en=[],hn=Ut>=1?Ut|0:1,Bn=Nt;Bn<=ae;Bn+=hn){var Dn=we.includes(Bn);(!Dn||!se)&&en.push({label:St(Bn,Xe),value:Bn,disabled:Dn})}return en}function Jn(Nt){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ut=arguments.length>2?arguments[2]:void 0,se=ae||{},we=se.use12Hours,Xe=se.hourStep,en=Xe===void 0?1:Xe,hn=se.minuteStep,Bn=hn===void 0?1:hn,Dn=se.secondStep,mn=Dn===void 0?1:Dn,ii=se.millisecondStep,Bi=ii===void 0?100:ii,de=se.hideDisabledOptions,Wn=se.disabledTime,Yn=se.disabledHours,zn=se.disabledMinutes,_n=se.disabledSeconds,ei=Tt.useMemo(function(){return Ut||Nt.getNow()},[Ut,Nt]);if(0)var Oi,yi,oi;var Vn=Tt.useCallback(function(Or){var yr=(Wn==null?void 0:Wn(Or))||{};return[yr.disabledHours||Yn||Pt,yr.disabledMinutes||zn||Pt,yr.disabledSeconds||_n||Pt,yr.disabledMilliseconds||Pt]},[Wn,Yn,zn,_n]),zi=Tt.useMemo(function(){return Vn(ei)},[ei,Vn]),lr=(0,xe.Z)(zi,4),mr=lr[0],Er=lr[1],Si=lr[2],cr=lr[3],gr=Tt.useCallback(function(Or,yr,ji,br){var Ur=Ii(0,23,en,de,Or()),Jr=we?Ur.map(function(Wr){return(0,ge.Z)((0,ge.Z)({},Wr),{},{label:St(Wr.value%12||12,2)})}):Ur,Tr=function(fo){return Ii(0,59,Bn,de,yr(fo))},so=function(fo,Mo){return Ii(0,59,mn,de,ji(fo,Mo))},no=function(fo,Mo,_o){return Ii(0,999,Bi,de,br(fo,Mo,_o),3)};return[Jr,Tr,so,no]},[de,en,we,Bi,Bn,mn]),Pr=Tt.useMemo(function(){return gr(mr,Er,Si,cr)},[gr,mr,Er,Si,cr]),Vi=(0,xe.Z)(Pr,4),Xi=Vi[0],dn=Vi[1],Gi=Vi[2],hr=Vi[3],Fr=function(yr,ji){var br=function(){return Xi},Ur=dn,Jr=Gi,Tr=hr;if(ji){var so=Vn(ji),no=(0,xe.Z)(so,4),Wr=no[0],fo=no[1],Mo=no[2],_o=no[3],io=gr(Wr,fo,Mo,_o),ta=(0,xe.Z)(io,4),Ao=ta[0],ca=ta[1],No=ta[2],Xo=ta[3];br=function(){return Ao},Ur=ca,Jr=No,Tr=Xo}var ea=qi(yr,br,Ur,Jr,Tr,Nt);return ea};return[Fr,Xi,dn,Gi,hr]}function er(Nt){var ae=Nt.mode,Ut=Nt.internalMode,se=Nt.renderExtraFooter,we=Nt.showNow,Xe=Nt.showTime,en=Nt.onSubmit,hn=Nt.onNow,Bn=Nt.invalid,Dn=Nt.needConfirm,mn=Nt.generateConfig,ii=Nt.disabledDate,Bi=Tt.useContext(ct),de=Bi.prefixCls,Wn=Bi.locale,Yn=Bi.button,zn=Yn===void 0?"button":Yn,_n=mn.getNow(),ei=Jn(mn,Xe,_n),Oi=(0,xe.Z)(ei,1),yi=Oi[0],oi=se==null?void 0:se(ae),Vn=ii(_n,{type:ae}),zi=function(){if(!Vn){var Pr=yi(_n);hn(Pr)}},lr="".concat(de,"-now"),mr="".concat(lr,"-btn"),Er=we&&Tt.createElement("li",{className:lr},Tt.createElement("a",{className:Ot()(mr,Vn&&"".concat(mr,"-disabled")),"aria-disabled":Vn,onClick:zi},Ut==="date"?Wn.today:Wn.now)),Si=Dn&&Tt.createElement("li",{className:"".concat(de,"-ok")},Tt.createElement(zn,{disabled:Bn,onClick:en},Wn.ok)),cr=(Er||Si)&&Tt.createElement("ul",{className:"".concat(de,"-ranges")},Er,Si);return!oi&&!cr?null:Tt.createElement("div",{className:"".concat(de,"-footer")},oi&&Tt.createElement("div",{className:"".concat(de,"-footer-extra")},oi),cr)}function Ji(Nt,ae,Ut){function se(we,Xe){var en=we.findIndex(function(Bn){return kt(Nt,ae,Bn,Xe,Ut)});if(en===-1)return[].concat((0,ne.Z)(we),[Xe]);var hn=(0,ne.Z)(we);return hn.splice(en,1),hn}return se}var Zi=Tt.createContext(null);function fi(){return Tt.useContext(Zi)}function bn(Nt,ae){var Ut=Nt.prefixCls,se=Nt.generateConfig,we=Nt.locale,Xe=Nt.disabledDate,en=Nt.minDate,hn=Nt.maxDate,Bn=Nt.cellRender,Dn=Nt.hoverValue,mn=Nt.hoverRangeValue,ii=Nt.onHover,Bi=Nt.values,de=Nt.pickerValue,Wn=Nt.onSelect,Yn=Nt.prevIcon,zn=Nt.nextIcon,_n=Nt.superPrevIcon,ei=Nt.superNextIcon,Oi=se.getNow(),yi={now:Oi,values:Bi,pickerValue:de,prefixCls:Ut,disabledDate:Xe,minDate:en,maxDate:hn,cellRender:Bn,hoverValue:Dn,hoverRangeValue:mn,onHover:ii,locale:we,generateConfig:se,onSelect:Wn,panelType:ae,prevIcon:Yn,nextIcon:zn,superPrevIcon:_n,superNextIcon:ei};return[yi,Oi]}var En=Tt.createContext({});function Ae(Nt){for(var ae=Nt.rowNum,Ut=Nt.colNum,se=Nt.baseDate,we=Nt.getCellDate,Xe=Nt.prefixColumn,en=Nt.rowClassName,hn=Nt.titleFormat,Bn=Nt.getCellText,Dn=Nt.getCellClassName,mn=Nt.headerCells,ii=Nt.cellSelection,Bi=ii===void 0?!0:ii,de=Nt.disabledDate,Wn=fi(),Yn=Wn.prefixCls,zn=Wn.panelType,_n=Wn.now,ei=Wn.disabledDate,Oi=Wn.cellRender,yi=Wn.onHover,oi=Wn.hoverValue,Vn=Wn.hoverRangeValue,zi=Wn.generateConfig,lr=Wn.values,mr=Wn.locale,Er=Wn.onSelect,Si=de||ei,cr="".concat(Yn,"-cell"),gr=Tt.useContext(En),Pr=gr.onCellDblClick,Vi=function(ji){return lr.some(function(br){return br&&kt(zi,mr,ji,br,zn)})},Xi=[],dn=0;dn<ae;dn+=1){for(var Gi=[],hr=void 0,Fr=function(){var ji=dn*Ut+Or,br=we(se,ji),Ur=Si==null?void 0:Si(br,{type:zn});Or===0&&(hr=br,Xe&&Gi.push(Xe(hr)));var Jr=!1,Tr=!1,so=!1;if(Bi&&Vn){var no=(0,xe.Z)(Vn,2),Wr=no[0],fo=no[1];Jr=jt(zi,Wr,fo,br),Tr=kt(zi,mr,br,Wr,zn),so=kt(zi,mr,br,fo,zn)}var Mo=hn?fe(br,{locale:mr,format:hn,generateConfig:zi}):void 0,_o=Tt.createElement("div",{className:"".concat(cr,"-inner")},Bn(br));Gi.push(Tt.createElement("td",{key:Or,title:Mo,className:Ot()(cr,(0,ge.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(cr,"-disabled"),Ur),"".concat(cr,"-hover"),(oi||[]).some(function(io){return kt(zi,mr,br,io,zn)})),"".concat(cr,"-in-range"),Jr&&!Tr&&!so),"".concat(cr,"-range-start"),Tr),"".concat(cr,"-range-end"),so),"".concat(Yn,"-cell-selected"),!Vn&&zn!=="week"&&Vi(br)),Dn(br))),onClick:function(){Ur||Er(br)},onDoubleClick:function(){!Ur&&Pr&&Pr()},onMouseEnter:function(){Ur||yi==null||yi(br)},onMouseLeave:function(){Ur||yi==null||yi(null)}},Oi?Oi(br,{prefixCls:Yn,originNode:_o,today:_n,type:zn,locale:mr}):_o))},Or=0;Or<Ut;Or+=1)Fr();Xi.push(Tt.createElement("tr",{key:dn,className:en==null?void 0:en(hr)},Gi))}return Tt.createElement("div",{className:"".concat(Yn,"-body")},Tt.createElement("table",{className:"".concat(Yn,"-content")},mn&&Tt.createElement("thead",null,Tt.createElement("tr",null,mn)),Tt.createElement("tbody",null,Xi)))}var Me={visibility:"hidden"};function be(Nt){var ae=Nt.offset,Ut=Nt.superOffset,se=Nt.onChange,we=Nt.getStart,Xe=Nt.getEnd,en=Nt.children,hn=fi(),Bn=hn.prefixCls,Dn=hn.prevIcon,mn=Dn===void 0?"\u2039":Dn,ii=hn.nextIcon,Bi=ii===void 0?"\u203A":ii,de=hn.superPrevIcon,Wn=de===void 0?"\xAB":de,Yn=hn.superNextIcon,zn=Yn===void 0?"\xBB":Yn,_n=hn.minDate,ei=hn.maxDate,Oi=hn.generateConfig,yi=hn.locale,oi=hn.pickerValue,Vn=hn.panelType,zi="".concat(Bn,"-header"),lr=Tt.useContext(En),mr=lr.hidePrev,Er=lr.hideNext,Si=lr.hideHeader,cr=Tt.useMemo(function(){if(!_n||!ae||!Xe)return!1;var yr=Xe(ae(-1,oi));return!bt(Oi,yi,yr,_n,Vn)},[_n,ae,oi,Xe,Oi,yi,Vn]),gr=Tt.useMemo(function(){if(!_n||!Ut||!Xe)return!1;var yr=Xe(Ut(-1,oi));return!bt(Oi,yi,yr,_n,Vn)},[_n,Ut,oi,Xe,Oi,yi,Vn]),Pr=Tt.useMemo(function(){if(!ei||!ae||!we)return!1;var yr=we(ae(1,oi));return!bt(Oi,yi,ei,yr,Vn)},[ei,ae,oi,we,Oi,yi,Vn]),Vi=Tt.useMemo(function(){if(!ei||!Ut||!we)return!1;var yr=we(Ut(1,oi));return!bt(Oi,yi,ei,yr,Vn)},[ei,Ut,oi,we,Oi,yi,Vn]),Xi=function(ji){ae&&se(ae(ji,oi))},dn=function(ji){Ut&&se(Ut(ji,oi))};if(Si)return null;var Gi="".concat(zi,"-prev-btn"),hr="".concat(zi,"-next-btn"),Fr="".concat(zi,"-super-prev-btn"),Or="".concat(zi,"-super-next-btn");return Tt.createElement("div",{className:zi},Ut&&Tt.createElement("button",{type:"button","aria-label":yi.previousYear,onClick:function(){return dn(-1)},tabIndex:-1,className:Ot()(Fr,gr&&"".concat(Fr,"-disabled")),disabled:gr,style:mr?Me:{}},Wn),ae&&Tt.createElement("button",{type:"button","aria-label":yi.previousMonth,onClick:function(){return Xi(-1)},tabIndex:-1,className:Ot()(Gi,cr&&"".concat(Gi,"-disabled")),disabled:cr,style:mr?Me:{}},mn),Tt.createElement("div",{className:"".concat(zi,"-view")},en),ae&&Tt.createElement("button",{type:"button","aria-label":yi.nextMonth,onClick:function(){return Xi(1)},tabIndex:-1,className:Ot()(hr,Pr&&"".concat(hr,"-disabled")),disabled:Pr,style:Er?Me:{}},Bi),Ut&&Tt.createElement("button",{type:"button","aria-label":yi.nextYear,onClick:function(){return dn(1)},tabIndex:-1,className:Ot()(Or,Vi&&"".concat(Or,"-disabled")),disabled:Vi,style:Er?Me:{}},zn))}var qn=be;function ni(Nt){var ae=Nt.prefixCls,Ut=Nt.panelName,se=Ut===void 0?"date":Ut,we=Nt.locale,Xe=Nt.generateConfig,en=Nt.pickerValue,hn=Nt.onPickerValueChange,Bn=Nt.onModeChange,Dn=Nt.mode,mn=Dn===void 0?"date":Dn,ii=Nt.disabledDate,Bi=Nt.onSelect,de=Nt.onHover,Wn=Nt.showWeek,Yn="".concat(ae,"-").concat(se,"-panel"),zn="".concat(ae,"-cell"),_n=mn==="week",ei=bn(Nt,mn),Oi=(0,xe.Z)(ei,2),yi=Oi[0],oi=Oi[1],Vn=Xe.locale.getWeekFirstDay(we.locale),zi=Xe.setDate(en,1),lr=Gt(we.locale,Xe,zi),mr=Xe.getMonth(en),Er=Wn===void 0?_n:Wn,Si=Er?function(yr){var ji=ii==null?void 0:ii(yr,{type:"week"});return Tt.createElement("td",{key:"week",className:Ot()(zn,"".concat(zn,"-week"),(0,Ue.Z)({},"".concat(zn,"-disabled"),ji)),onClick:function(){ji||Bi(yr)},onMouseEnter:function(){ji||de==null||de(yr)},onMouseLeave:function(){ji||de==null||de(null)}},Tt.createElement("div",{className:"".concat(zn,"-inner")},Xe.locale.getWeek(we.locale,yr)))}:null,cr=[],gr=we.shortWeekDays||(Xe.locale.getShortWeekDays?Xe.locale.getShortWeekDays(we.locale):[]);Si&&cr.push(Tt.createElement("th",{key:"empty"},Tt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},we.week)));for(var Pr=0;Pr<nn;Pr+=1)cr.push(Tt.createElement("th",{key:Pr},gr[(Pr+Vn)%nn]));var Vi=function(ji,br){return Xe.addDate(ji,br)},Xi=function(ji){return fe(ji,{locale:we,format:we.cellDateFormat,generateConfig:Xe})},dn=function(ji){var br=(0,Ue.Z)((0,Ue.Z)({},"".concat(ae,"-cell-in-view"),Ve(Xe,ji,en)),"".concat(ae,"-cell-today"),In(Xe,ji,oi));return br},Gi=we.shortMonths||(Xe.locale.getShortMonths?Xe.locale.getShortMonths(we.locale):[]),hr=Tt.createElement("button",{type:"button","aria-label":we.yearSelect,key:"year",onClick:function(){Bn("year",en)},tabIndex:-1,className:"".concat(ae,"-year-btn")},fe(en,{locale:we,format:we.yearFormat,generateConfig:Xe})),Fr=Tt.createElement("button",{type:"button","aria-label":we.monthSelect,key:"month",onClick:function(){Bn("month",en)},tabIndex:-1,className:"".concat(ae,"-month-btn")},we.monthFormat?fe(en,{locale:we,format:we.monthFormat,generateConfig:Xe}):Gi[mr]),Or=we.monthBeforeYear?[Fr,hr]:[hr,Fr];return Tt.createElement(Zi.Provider,{value:yi},Tt.createElement("div",{className:Ot()(Yn,Wn&&"".concat(Yn,"-show-week"))},Tt.createElement(qn,{offset:function(ji){return Xe.addMonth(en,ji)},superOffset:function(ji){return Xe.addYear(en,ji)},onChange:hn,getStart:function(ji){return Xe.setDate(ji,1)},getEnd:function(ji){var br=Xe.setDate(ji,1);return br=Xe.addMonth(br,1),Xe.addDate(br,-1)}},Or),Tt.createElement(Ae,(0,Mt.Z)({titleFormat:we.fieldDateFormat},Nt,{colNum:nn,rowNum:6,baseDate:lr,headerCells:cr,getCellDate:Vi,getCellText:Xi,getCellClassName:dn,prefixColumn:Si,cellSelection:!_n}))))}var Fi=Et(29194),gn=1/3;function Hn(Nt,ae){var Ut=Tt.useRef(!1),se=Tt.useRef(null),we=Tt.useRef(null),Xe=function(){return Ut.current},en=function(){tn.Z.cancel(se.current),Ut.current=!1},hn=Tt.useRef(),Bn=function(){var ii=Nt.current;if(we.current=null,hn.current=0,ii){var Bi=ii.querySelector('[data-value="'.concat(ae,'"]')),de=ii.querySelector("li"),Wn=function Yn(){en(),Ut.current=!0,hn.current+=1;var zn=ii.scrollTop,_n=de.offsetTop,ei=Bi.offsetTop,Oi=ei-_n;if(ei===0&&Bi!==de||!(0,Fi.Z)(ii)){hn.current<=5&&(se.current=(0,tn.Z)(Yn));return}var yi=zn+(Oi-zn)*gn,oi=Math.abs(Oi-yi);if(we.current!==null&&we.current<oi){en();return}if(we.current=oi,oi<=1){ii.scrollTop=Oi,en();return}ii.scrollTop=yi,se.current=(0,tn.Z)(Yn)};Bi&&de&&Wn()}},Dn=(0,ee.zX)(Bn);return[Dn,en,Xe]}var Oe=300;function De(Nt){return Nt.map(function(ae){var Ut=ae.value,se=ae.label,we=ae.disabled;return[Ut,se,we].join(",")}).join(";")}function ai(Nt){var ae=Nt.units,Ut=Nt.value,se=Nt.optionalValue,we=Nt.type,Xe=Nt.onChange,en=Nt.onHover,hn=Nt.onDblClick,Bn=Nt.changeOnScroll,Dn=fi(),mn=Dn.prefixCls,ii=Dn.cellRender,Bi=Dn.now,de=Dn.locale,Wn="".concat(mn,"-time-panel"),Yn="".concat(mn,"-time-panel-cell"),zn=Tt.useRef(null),_n=Tt.useRef(),ei=function(){clearTimeout(_n.current)},Oi=Hn(zn,Ut!=null?Ut:se),yi=(0,xe.Z)(Oi,3),oi=yi[0],Vn=yi[1],zi=yi[2];(0,Ht.Z)(function(){return oi(),ei(),function(){Vn(),ei()}},[Ut,se,De(ae)]);var lr=function(Si){ei();var cr=Si.target;!zi()&&Bn&&(_n.current=setTimeout(function(){var gr=zn.current,Pr=gr.querySelector("li").offsetTop,Vi=Array.from(gr.querySelectorAll("li")),Xi=Vi.map(function(Or){return Or.offsetTop-Pr}),dn=Xi.map(function(Or,yr){return ae[yr].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Or-cr.scrollTop)}),Gi=Math.min.apply(Math,(0,ne.Z)(dn)),hr=dn.findIndex(function(Or){return Or===Gi}),Fr=ae[hr];Fr&&!Fr.disabled&&Xe(Fr.value)},Oe))},mr="".concat(Wn,"-column");return Tt.createElement("ul",{className:mr,ref:zn,"data-type":we,onScroll:lr},ae.map(function(Er){var Si=Er.label,cr=Er.value,gr=Er.disabled,Pr=Tt.createElement("div",{className:"".concat(Yn,"-inner")},Si);return Tt.createElement("li",{key:cr,className:Ot()(Yn,(0,Ue.Z)((0,Ue.Z)({},"".concat(Yn,"-selected"),Ut===cr),"".concat(Yn,"-disabled"),gr)),onClick:function(){gr||Xe(cr)},onDoubleClick:function(){!gr&&hn&&hn()},onMouseEnter:function(){en(cr)},onMouseLeave:function(){en(null)},"data-value":cr},ii?ii(cr,{prefixCls:mn,originNode:Pr,today:Bi,type:"time",subType:we,locale:de}):Pr)}))}function qt(Nt){return Nt<12}function un(Nt){var ae=Nt.showHour,Ut=Nt.showMinute,se=Nt.showSecond,we=Nt.showMillisecond,Xe=Nt.use12Hours,en=Nt.changeOnScroll,hn=fi(),Bn=hn.prefixCls,Dn=hn.values,mn=hn.generateConfig,ii=hn.locale,Bi=hn.onSelect,de=hn.onHover,Wn=de===void 0?function(){}:de,Yn=hn.pickerValue,zn=(Dn==null?void 0:Dn[0])||null,_n=Tt.useContext(En),ei=_n.onCellDblClick,Oi=Jn(mn,Nt,zn),yi=(0,xe.Z)(Oi,5),oi=yi[0],Vn=yi[1],zi=yi[2],lr=yi[3],mr=yi[4],Er=function(vi){var ia=zn&&mn[vi](zn),me=Yn&&mn[vi](Yn);return[ia,me]},Si=Er("getHour"),cr=(0,xe.Z)(Si,2),gr=cr[0],Pr=cr[1],Vi=Er("getMinute"),Xi=(0,xe.Z)(Vi,2),dn=Xi[0],Gi=Xi[1],hr=Er("getSecond"),Fr=(0,xe.Z)(hr,2),Or=Fr[0],yr=Fr[1],ji=Er("getMillisecond"),br=(0,xe.Z)(ji,2),Ur=br[0],Jr=br[1],Tr=gr===null?null:qt(gr)?"am":"pm",so=Tt.useMemo(function(){return Xe?qt(gr)?Vn.filter(function(wr){return qt(wr.value)}):Vn.filter(function(wr){return!qt(wr.value)}):Vn},[gr,Vn,Xe]),no=function(vi,ia){var me,kn=vi.filter(function(Ja){return!Ja.disabled});return ia!=null?ia:kn==null||(me=kn[0])===null||me===void 0?void 0:me.value},Wr=no(Vn,gr),fo=Tt.useMemo(function(){return zi(Wr)},[zi,Wr]),Mo=no(fo,dn),_o=Tt.useMemo(function(){return lr(Wr,Mo)},[lr,Wr,Mo]),io=no(_o,Or),ta=Tt.useMemo(function(){return mr(Wr,Mo,io)},[mr,Wr,Mo,io]),Ao=no(ta,Ur),ca=Tt.useMemo(function(){if(!Xe)return[];var wr=mn.getNow(),vi=mn.setHour(wr,6),ia=mn.setHour(wr,18),me=function(Ja,Qa){var pa=ii.cellMeridiemFormat;return pa?fe(Ja,{generateConfig:mn,locale:ii,format:pa}):Qa};return[{label:me(vi,"AM"),value:"am",disabled:Vn.every(function(kn){return kn.disabled||!qt(kn.value)})},{label:me(ia,"PM"),value:"pm",disabled:Vn.every(function(kn){return kn.disabled||qt(kn.value)})}]},[Vn,Xe,mn,ii]),No=function(vi){var ia=oi(vi);Bi(ia)},Xo=Tt.useMemo(function(){var wr=zn||Yn||mn.getNow(),vi=function(me){return me!=null};return vi(gr)?(wr=mn.setHour(wr,gr),wr=mn.setMinute(wr,dn),wr=mn.setSecond(wr,Or),wr=mn.setMillisecond(wr,Ur)):vi(Pr)?(wr=mn.setHour(wr,Pr),wr=mn.setMinute(wr,Gi),wr=mn.setSecond(wr,yr),wr=mn.setMillisecond(wr,Jr)):vi(Wr)&&(wr=mn.setHour(wr,Wr),wr=mn.setMinute(wr,Mo),wr=mn.setSecond(wr,io),wr=mn.setMillisecond(wr,Ao)),wr},[zn,Yn,gr,dn,Or,Ur,Wr,Mo,io,Ao,Pr,Gi,yr,Jr,mn]),ea=function(vi,ia){return vi===null?null:mn[ia](Xo,vi)},Qo=function(vi){return ea(vi,"setHour")},Ro=function(vi){return ea(vi,"setMinute")},ko=function(vi){return ea(vi,"setSecond")},oa=function(vi){return ea(vi,"setMillisecond")},Ca=function(vi){return vi===null?null:vi==="am"&&!qt(gr)?mn.setHour(Xo,gr-12):vi==="pm"&&qt(gr)?mn.setHour(Xo,gr+12):Xo},Zo=function(vi){No(Qo(vi))},Ia=function(vi){No(Ro(vi))},Fo=function(vi){No(ko(vi))},wo=function(vi){No(oa(vi))},po=function(vi){No(Ca(vi))},Yo=function(vi){Wn(Qo(vi))},Ir=function(vi){Wn(Ro(vi))},ao=function(vi){Wn(ko(vi))},vr=function(vi){Wn(oa(vi))},Nr=function(vi){Wn(Ca(vi))},uo={onDblClick:ei,changeOnScroll:en};return Tt.createElement("div",{className:"".concat(Bn,"-content")},ae&&Tt.createElement(ai,(0,Mt.Z)({units:so,value:gr,optionalValue:Pr,type:"hour",onChange:Zo,onHover:Yo},uo)),Ut&&Tt.createElement(ai,(0,Mt.Z)({units:fo,value:dn,optionalValue:Gi,type:"minute",onChange:Ia,onHover:Ir},uo)),se&&Tt.createElement(ai,(0,Mt.Z)({units:_o,value:Or,optionalValue:yr,type:"second",onChange:Fo,onHover:ao},uo)),we&&Tt.createElement(ai,(0,Mt.Z)({units:ta,value:Ur,optionalValue:Jr,type:"millisecond",onChange:wo,onHover:vr},uo)),Xe&&Tt.createElement(ai,(0,Mt.Z)({units:ca,value:Tr,type:"meridiem",onChange:po,onHover:Nr},uo)))}function Rn(Nt){var ae=Nt.prefixCls,Ut=Nt.value,se=Nt.locale,we=Nt.generateConfig,Xe=Nt.showTime,en=Xe||{},hn=en.format,Bn="".concat(ae,"-time-panel"),Dn=bn(Nt,"time"),mn=(0,xe.Z)(Dn,1),ii=mn[0];return Tt.createElement(Zi.Provider,{value:ii},Tt.createElement("div",{className:Ot()(Bn)},Tt.createElement(qn,null,Ut?fe(Ut,{locale:se,format:hn,generateConfig:we}):"\xA0"),Tt.createElement(un,Xe)))}function Ai(Nt){var ae=Nt.prefixCls,Ut=Nt.generateConfig,se=Nt.showTime,we=Nt.onSelect,Xe=Nt.value,en=Nt.pickerValue,hn=Nt.onHover,Bn="".concat(ae,"-datetime-panel"),Dn=Jn(Ut,se),mn=(0,xe.Z)(Dn,1),ii=mn[0],Bi=function(zn){return Xe?Se(Ut,zn,Xe):Se(Ut,zn,en)},de=function(zn){hn==null||hn(zn&&Bi(zn))},Wn=function(zn){var _n=Bi(zn);we(ii(_n,_n))};return Tt.createElement("div",{className:Bn},Tt.createElement(ni,(0,Mt.Z)({},Nt,{onSelect:Wn,onHover:de})),Tt.createElement(Rn,Nt))}function ln(Nt){var ae=Nt.prefixCls,Ut=Nt.locale,se=Nt.generateConfig,we=Nt.pickerValue,Xe=Nt.disabledDate,en=Nt.onPickerValueChange,hn="".concat(ae,"-decade-panel"),Bn=bn(Nt,"decade"),Dn=(0,xe.Z)(Bn,1),mn=Dn[0],ii=function(Vn){var zi=Math.floor(se.getYear(Vn)/100)*100;return se.setYear(Vn,zi)},Bi=function(Vn){var zi=ii(Vn);return se.addYear(zi,99)},de=ii(we),Wn=Bi(we),Yn=se.addYear(de,-10),zn=function(Vn,zi){return se.addYear(Vn,zi*10)},_n=function(Vn){var zi=Ut.cellYearFormat,lr=fe(Vn,{locale:Ut,format:zi,generateConfig:se}),mr=fe(se.addYear(Vn,9),{locale:Ut,format:zi,generateConfig:se});return"".concat(lr,"-").concat(mr)},ei=function(Vn){return(0,Ue.Z)({},"".concat(ae,"-cell-in-view"),Sn(se,Vn,de)||Sn(se,Vn,Wn)||jt(se,de,Wn,Vn))},Oi=Xe?function(oi,Vn){var zi=se.setDate(oi,1),lr=se.setMonth(zi,0),mr=se.setYear(lr,Math.floor(se.getYear(lr)/10)*10),Er=se.addYear(mr,10),Si=se.addDate(Er,-1);return Xe(mr,Vn)&&Xe(Si,Vn)}:null,yi="".concat(fe(de,{locale:Ut,format:Ut.yearFormat,generateConfig:se}),"-").concat(fe(Wn,{locale:Ut,format:Ut.yearFormat,generateConfig:se}));return Tt.createElement(Zi.Provider,{value:mn},Tt.createElement("div",{className:hn},Tt.createElement(qn,{superOffset:function(Vn){return se.addYear(we,Vn*100)},onChange:en,getStart:ii,getEnd:Bi},yi),Tt.createElement(Ae,(0,Mt.Z)({},Nt,{disabledDate:Oi,colNum:3,rowNum:4,baseDate:Yn,getCellDate:zn,getCellText:_n,getCellClassName:ei}))))}function yn(Nt){var ae=Nt.prefixCls,Ut=Nt.locale,se=Nt.generateConfig,we=Nt.pickerValue,Xe=Nt.disabledDate,en=Nt.onPickerValueChange,hn=Nt.onModeChange,Bn="".concat(ae,"-month-panel"),Dn=bn(Nt,"month"),mn=(0,xe.Z)(Dn,1),ii=mn[0],Bi=se.setMonth(we,0),de=Ut.shortMonths||(se.locale.getShortMonths?se.locale.getShortMonths(Ut.locale):[]),Wn=function(yi,oi){return se.addMonth(yi,oi)},Yn=function(yi){var oi=se.getMonth(yi);return Ut.monthFormat?fe(yi,{locale:Ut,format:Ut.monthFormat,generateConfig:se}):de[oi]},zn=function(){return(0,Ue.Z)({},"".concat(ae,"-cell-in-view"),!0)},_n=Xe?function(Oi,yi){var oi=se.setDate(Oi,1),Vn=se.setMonth(oi,se.getMonth(oi)+1),zi=se.addDate(Vn,-1);return Xe(oi,yi)&&Xe(zi,yi)}:null,ei=Tt.createElement("button",{type:"button",key:"year","aria-label":Ut.yearSelect,onClick:function(){hn("year")},tabIndex:-1,className:"".concat(ae,"-year-btn")},fe(we,{locale:Ut,format:Ut.yearFormat,generateConfig:se}));return Tt.createElement(Zi.Provider,{value:ii},Tt.createElement("div",{className:Bn},Tt.createElement(qn,{superOffset:function(yi){return se.addYear(we,yi)},onChange:en,getStart:function(yi){return se.setMonth(yi,0)},getEnd:function(yi){return se.setMonth(yi,11)}},ei),Tt.createElement(Ae,(0,Mt.Z)({},Nt,{disabledDate:_n,titleFormat:Ut.fieldMonthFormat,colNum:3,rowNum:4,baseDate:Bi,getCellDate:Wn,getCellText:Yn,getCellClassName:zn}))))}function li(Nt){var ae=Nt.prefixCls,Ut=Nt.locale,se=Nt.generateConfig,we=Nt.pickerValue,Xe=Nt.onPickerValueChange,en=Nt.onModeChange,hn="".concat(ae,"-quarter-panel"),Bn=bn(Nt,"quarter"),Dn=(0,xe.Z)(Bn,1),mn=Dn[0],ii=se.setMonth(we,0),Bi=function(_n,ei){return se.addMonth(_n,ei*3)},de=function(_n){return fe(_n,{locale:Ut,format:Ut.cellQuarterFormat,generateConfig:se})},Wn=function(){return(0,Ue.Z)({},"".concat(ae,"-cell-in-view"),!0)},Yn=Tt.createElement("button",{type:"button",key:"year","aria-label":Ut.yearSelect,onClick:function(){en("year")},tabIndex:-1,className:"".concat(ae,"-year-btn")},fe(we,{locale:Ut,format:Ut.yearFormat,generateConfig:se}));return Tt.createElement(Zi.Provider,{value:mn},Tt.createElement("div",{className:hn},Tt.createElement(qn,{superOffset:function(_n){return se.addYear(we,_n)},onChange:Xe,getStart:function(_n){return se.setMonth(_n,0)},getEnd:function(_n){return se.setMonth(_n,11)}},Yn),Tt.createElement(Ae,(0,Mt.Z)({},Nt,{titleFormat:Ut.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:ii,getCellDate:Bi,getCellText:de,getCellClassName:Wn}))))}function bi(Nt){var ae=Nt.prefixCls,Ut=Nt.generateConfig,se=Nt.locale,we=Nt.value,Xe=Nt.hoverValue,en=Nt.hoverRangeValue,hn=se.locale,Bn="".concat(ae,"-week-panel-row"),Dn=function(ii){var Bi={};if(en){var de=(0,xe.Z)(en,2),Wn=de[0],Yn=de[1],zn=yt(Ut,hn,Wn,ii),_n=yt(Ut,hn,Yn,ii);Bi["".concat(Bn,"-range-start")]=zn,Bi["".concat(Bn,"-range-end")]=_n,Bi["".concat(Bn,"-range-hover")]=!zn&&!_n&&jt(Ut,Wn,Yn,ii)}return Xe&&(Bi["".concat(Bn,"-hover")]=Xe.some(function(ei){return yt(Ut,hn,ii,ei)})),Ot()(Bn,(0,Ue.Z)({},"".concat(Bn,"-selected"),!en&&yt(Ut,hn,we,ii)),Bi)};return Tt.createElement(ni,(0,Mt.Z)({},Nt,{mode:"week",panelName:"week",rowClassName:Dn}))}function Ui(Nt){var ae=Nt.prefixCls,Ut=Nt.locale,se=Nt.generateConfig,we=Nt.pickerValue,Xe=Nt.disabledDate,en=Nt.onPickerValueChange,hn=Nt.onModeChange,Bn="".concat(ae,"-year-panel"),Dn=bn(Nt,"year"),mn=(0,xe.Z)(Dn,1),ii=mn[0],Bi=function(zi){var lr=Math.floor(se.getYear(zi)/10)*10;return se.setYear(zi,lr)},de=function(zi){var lr=Bi(zi);return se.addYear(lr,9)},Wn=Bi(we),Yn=de(we),zn=se.addYear(Wn,-1),_n=function(zi,lr){return se.addYear(zi,lr)},ei=function(zi){return fe(zi,{locale:Ut,format:Ut.cellYearFormat,generateConfig:se})},Oi=function(zi){return(0,Ue.Z)({},"".concat(ae,"-cell-in-view"),Fe(se,zi,Wn)||Fe(se,zi,Yn)||jt(se,Wn,Yn,zi))},yi=Xe?function(Vn,zi){var lr=se.setMonth(Vn,0),mr=se.setDate(lr,1),Er=se.addYear(mr,1),Si=se.addDate(Er,-1);return Xe(mr,zi)&&Xe(Si,zi)}:null,oi=Tt.createElement("button",{type:"button",key:"decade","aria-label":Ut.decadeSelect,onClick:function(){hn("decade")},tabIndex:-1,className:"".concat(ae,"-decade-btn")},fe(Wn,{locale:Ut,format:Ut.yearFormat,generateConfig:se}),"-",fe(Yn,{locale:Ut,format:Ut.yearFormat,generateConfig:se}));return Tt.createElement(Zi.Provider,{value:ii},Tt.createElement("div",{className:Bn},Tt.createElement(qn,{superOffset:function(zi){return se.addYear(we,zi*10)},onChange:en,getStart:Bi,getEnd:de},oi),Tt.createElement(Ae,(0,Mt.Z)({},Nt,{disabledDate:yi,titleFormat:Ut.fieldYearFormat,colNum:3,rowNum:4,baseDate:zn,getCellDate:_n,getCellText:ei,getCellClassName:Oi}))))}var Di={date:ni,datetime:Ai,week:bi,month:yn,quarter:li,year:Ui,decade:ln,time:Rn};function $n(Nt,ae){var Ut,se=Nt.locale,we=Nt.generateConfig,Xe=Nt.direction,en=Nt.prefixCls,hn=Nt.tabIndex,Bn=hn===void 0?0:hn,Dn=Nt.multiple,mn=Nt.defaultValue,ii=Nt.value,Bi=Nt.onChange,de=Nt.onSelect,Wn=Nt.defaultPickerValue,Yn=Nt.pickerValue,zn=Nt.onPickerValueChange,_n=Nt.mode,ei=Nt.onPanelChange,Oi=Nt.picker,yi=Oi===void 0?"date":Oi,oi=Nt.showTime,Vn=Nt.hoverValue,zi=Nt.hoverRangeValue,lr=Nt.cellRender,mr=Nt.dateRender,Er=Nt.monthCellRender,Si=Nt.components,cr=Si===void 0?{}:Si,gr=Nt.hideHeader,Pr=((Ut=Tt.useContext(ct))===null||Ut===void 0?void 0:Ut.prefixCls)||en||"rc-picker",Vi=Tt.useRef();Tt.useImperativeHandle(ae,function(){return{nativeElement:Vi.current}});var Xi=an(Nt),dn=(0,xe.Z)(Xi,4),Gi=dn[0],hr=dn[1],Fr=dn[2],Or=dn[3],yr=ke(se,hr),ji=yi==="date"&&oi?"datetime":yi,br=Tt.useMemo(function(){return Ze(ji,Fr,Or,Gi,yr)},[ji,Fr,Or,Gi,yr]),Ur=we.getNow(),Jr=(0,ee.C8)(yi,{value:_n,postState:function(Nr){return Nr||"date"}}),Tr=(0,xe.Z)(Jr,2),so=Tr[0],no=Tr[1],Wr=so==="date"&&br?"datetime":so,fo=Ji(we,se,ji),Mo=(0,ee.C8)(mn,{value:ii}),_o=(0,xe.Z)(Mo,2),io=_o[0],ta=_o[1],Ao=Tt.useMemo(function(){var vr=wt(io).filter(function(Nr){return Nr});return Dn?vr:vr.slice(0,1)},[io,Dn]),ca=(0,ee.zX)(function(vr){ta(vr),Bi&&(vr===null||Ao.length!==vr.length||Ao.some(function(Nr,uo){return!kt(we,se,Nr,vr[uo],ji)}))&&(Bi==null||Bi(Dn?vr:vr[0]))}),No=(0,ee.zX)(function(vr){if(de==null||de(vr),so===yi){var Nr=Dn?fo(Ao,vr):[vr];ca(Nr)}}),Xo=(0,ee.C8)(Wn||Ao[0]||Ur,{value:Yn}),ea=(0,xe.Z)(Xo,2),Qo=ea[0],Ro=ea[1];Tt.useEffect(function(){Ao[0]&&!Yn&&Ro(Ao[0])},[Ao[0]]);var ko=function(Nr,uo){ei==null||ei(Nr||Yn,uo||so)},oa=function(Nr){var uo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ro(Nr),zn==null||zn(Nr),uo&&ko(Nr)},Ca=function(Nr,uo){no(Nr),uo&&oa(uo),ko(uo,Nr)},Zo=function(Nr){if(No(Nr),oa(Nr),so!==yi){var uo=["decade","year"],wr=[].concat(uo,["month"]),vi={quarter:[].concat(uo,["quarter"]),week:[].concat((0,ne.Z)(wr),["week"]),date:[].concat((0,ne.Z)(wr),["date"])},ia=vi[yi]||wr,me=ia.indexOf(so),kn=ia[me+1];kn&&Ca(kn,Nr)}},Ia=Tt.useMemo(function(){var vr,Nr;if(Array.isArray(zi)){var uo=(0,xe.Z)(zi,2);vr=uo[0],Nr=uo[1]}else vr=zi;return!vr&&!Nr?null:(vr=vr||Nr,Nr=Nr||vr,we.isAfter(vr,Nr)?[Nr,vr]:[vr,Nr])},[zi,we]),Fo=pe(lr,mr,Er),wo=cr[Wr]||Di[Wr]||ni,po=Tt.useContext(En),Yo=Tt.useMemo(function(){return(0,ge.Z)((0,ge.Z)({},po),{},{hideHeader:gr})},[po,gr]),Ir="".concat(Pr,"-panel"),ao=Wt(Nt,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Tt.createElement(En.Provider,{value:Yo},Tt.createElement("div",{ref:Vi,tabIndex:Bn,className:Ot()(Ir,(0,Ue.Z)({},"".concat(Ir,"-rtl"),Xe==="rtl"))},Tt.createElement(wo,(0,Mt.Z)({},ao,{showTime:br,prefixCls:Pr,locale:yr,generateConfig:we,onModeChange:Ca,pickerValue:Qo,onPickerValueChange:function(Nr){oa(Nr,!0)},value:Ao[0],onSelect:Zo,values:Ao,cellRender:Fo,hoverRangeValue:Ia,hoverValue:Vn}))))}var wi=Tt.memo(Tt.forwardRef($n)),dr=wi;function fr(Nt){var ae=Nt.picker,Ut=Nt.multiplePanel,se=Nt.pickerValue,we=Nt.onPickerValueChange,Xe=Nt.needConfirm,en=Nt.onSubmit,hn=Nt.range,Bn=Nt.hoverValue,Dn=Tt.useContext(ct),mn=Dn.prefixCls,ii=Dn.generateConfig,Bi=Tt.useCallback(function(ei,Oi){return ki(ii,ae,ei,Oi)},[ii,ae]),de=Tt.useMemo(function(){return Bi(se,1)},[se,Bi]),Wn=function(Oi){we(Bi(Oi,-1))},Yn={onCellDblClick:function(){Xe&&en()}},zn=ae==="time",_n=(0,ge.Z)((0,ge.Z)({},Nt),{},{hoverValue:null,hoverRangeValue:null,hideHeader:zn});return hn?_n.hoverRangeValue=Bn:_n.hoverValue=Bn,Ut?Tt.createElement("div",{className:"".concat(mn,"-panels")},Tt.createElement(En.Provider,{value:(0,ge.Z)((0,ge.Z)({},Yn),{},{hideNext:!0})},Tt.createElement(dr,_n)),Tt.createElement(En.Provider,{value:(0,ge.Z)((0,ge.Z)({},Yn),{},{hidePrev:!0})},Tt.createElement(dr,(0,Mt.Z)({},_n,{pickerValue:de,onPickerValueChange:Wn})))):Tt.createElement(En.Provider,{value:(0,ge.Z)({},Yn)},Tt.createElement(dr,_n))}function xr(Nt){return typeof Nt=="function"?Nt():Nt}function cn(Nt){var ae=Nt.prefixCls,Ut=Nt.presets,se=Nt.onClick,we=Nt.onHover;return Ut.length?Tt.createElement("div",{className:"".concat(ae,"-presets")},Tt.createElement("ul",null,Ut.map(function(Xe,en){var hn=Xe.label,Bn=Xe.value;return Tt.createElement("li",{key:en,onClick:function(){se(xr(Bn))},onMouseEnter:function(){we(xr(Bn))},onMouseLeave:function(){we(null)}},hn)}))):null}function _r(Nt){var ae=Nt.panelRender,Ut=Nt.internalMode,se=Nt.picker,we=Nt.showNow,Xe=Nt.range,en=Nt.multiple,hn=Nt.activeInfo,Bn=hn===void 0?[0,0,0]:hn,Dn=Nt.presets,mn=Nt.onPresetHover,ii=Nt.onPresetSubmit,Bi=Nt.onFocus,de=Nt.onBlur,Wn=Nt.onPanelMouseDown,Yn=Nt.direction,zn=Nt.value,_n=Nt.onSelect,ei=Nt.isInvalid,Oi=Nt.defaultOpenValue,yi=Nt.onOk,oi=Nt.onSubmit,Vn=Tt.useContext(ct),zi=Vn.prefixCls,lr="".concat(zi,"-panel"),mr=Yn==="rtl",Er=Tt.useRef(null),Si=Tt.useRef(null),cr=Tt.useState(0),gr=(0,xe.Z)(cr,2),Pr=gr[0],Vi=gr[1],Xi=Tt.useState(0),dn=(0,xe.Z)(Xi,2),Gi=dn[0],hr=dn[1],Fr=Tt.useState(0),Or=(0,xe.Z)(Fr,2),yr=Or[0],ji=Or[1],br=function(Zo){Zo.width&&Vi(Zo.width)},Ur=(0,xe.Z)(Bn,3),Jr=Ur[0],Tr=Ur[1],so=Ur[2],no=Tt.useState(0),Wr=(0,xe.Z)(no,2),fo=Wr[0],Mo=Wr[1];Tt.useEffect(function(){Mo(10)},[Jr]),Tt.useEffect(function(){if(Xe&&Si.current){var Ca,Zo=((Ca=Er.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,Ia=Si.current.getBoundingClientRect();if(!Ia.height||Ia.right<0){Mo(function(Yo){return Math.max(0,Yo-1)});return}var Fo=(mr?Tr-Zo:Jr)-Ia.left;if(ji(Fo),Pr&&Pr<so){var wo=mr?Ia.right-(Tr-Zo+Pr):Jr+Zo-Ia.left-Pr,po=Math.max(0,wo);hr(po)}else hr(0)}},[fo,mr,Pr,Jr,Tr,so,Xe]);function _o(Ca){return Ca.filter(function(Zo){return Zo})}var io=Tt.useMemo(function(){return _o(wt(zn))},[zn]),ta=se==="time"&&!io.length,Ao=Tt.useMemo(function(){return ta?_o([Oi]):io},[ta,io,Oi]),ca=ta?Oi:io,No=Tt.useMemo(function(){return Ao.length?Ao.some(function(Ca){return ei(Ca)}):!0},[Ao,ei]),Xo=function(){ta&&_n(Oi),yi(),oi()},ea=Tt.createElement("div",{className:"".concat(zi,"-panel-layout")},Tt.createElement(cn,{prefixCls:zi,presets:Dn,onClick:ii,onHover:mn}),Tt.createElement("div",null,Tt.createElement(fr,(0,Mt.Z)({},Nt,{value:ca})),Tt.createElement(er,(0,Mt.Z)({},Nt,{showNow:en?!1:we,invalid:No,onSubmit:Xo}))));ae&&(ea=ae(ea));var Qo="".concat(lr,"-container"),Ro="marginLeft",ko="marginRight",oa=Tt.createElement("div",{onMouseDown:Wn,tabIndex:-1,className:Ot()(Qo,"".concat(zi,"-").concat(Ut,"-panel-container")),style:(0,Ue.Z)((0,Ue.Z)({},mr?ko:Ro,Gi),mr?Ro:ko,"auto"),onFocus:Bi,onBlur:de},ea);return Xe&&(oa=Tt.createElement("div",{onMouseDown:Wn,ref:Si,className:Ot()("".concat(zi,"-range-wrapper"),"".concat(zi,"-").concat(se,"-range-wrapper"))},Tt.createElement("div",{ref:Er,className:"".concat(zi,"-range-arrow"),style:{left:yr}}),Tt.createElement(ci.Z,{onResize:br},oa))),oa}var kr=Et(74416);function to(Nt,ae){var Ut=Nt.format,se=Nt.maskFormat,we=Nt.generateConfig,Xe=Nt.locale,en=Nt.preserveInvalidOnBlur,hn=Nt.inputReadOnly,Bn=Nt.required,Dn=Nt["aria-required"],mn=Nt.onSubmit,ii=Nt.onFocus,Bi=Nt.onBlur,de=Nt.onInputChange,Wn=Nt.onInvalid,Yn=Nt.open,zn=Nt.onOpenChange,_n=Nt.onKeyDown,ei=Nt.onChange,Oi=Nt.activeHelp,yi=Nt.name,oi=Nt.autoComplete,Vn=Nt.id,zi=Nt.value,lr=Nt.invalid,mr=Nt.placeholder,Er=Nt.disabled,Si=Nt.activeIndex,cr=Nt.allHelp,gr=Nt.picker,Pr=function(yr,ji){var br=we.locale.parse(Xe.locale,yr,[ji]);return br&&we.isValidate(br)?br:null},Vi=Ut[0],Xi=Tt.useCallback(function(Or){return fe(Or,{locale:Xe,format:Vi,generateConfig:we})},[Xe,we,Vi]),dn=Tt.useMemo(function(){return zi.map(Xi)},[zi,Xi]),Gi=Tt.useMemo(function(){var Or=gr==="time"?8:10,yr=typeof Vi=="function"?Vi(we.getNow()).length:Vi.length;return Math.max(Or,yr)+2},[Vi,gr,we]),hr=function(yr){for(var ji=0;ji<Ut.length;ji+=1){var br=Ut[ji];if(typeof br=="string"){var Ur=Pr(yr,br);if(Ur)return Ur}}return!1},Fr=function(yr){function ji(Jr){return yr!==void 0?Jr[yr]:Jr}var br=(0,Re.Z)(Nt,{aria:!0,data:!0}),Ur=(0,ge.Z)((0,ge.Z)({},br),{},{format:se,validateFormat:function(Tr){return!!hr(Tr)},preserveInvalidOnBlur:en,readOnly:hn,required:Bn,"aria-required":Dn,name:yi,autoComplete:oi,size:Gi,id:ji(Vn),value:ji(dn)||"",invalid:ji(lr),placeholder:ji(mr),active:Si===yr,helped:cr||Oi&&Si===yr,disabled:ji(Er),onFocus:function(Tr){ii(Tr,yr)},onBlur:function(Tr){Bi(Tr,yr)},onSubmit:mn,onChange:function(Tr){de();var so=hr(Tr);if(so){Wn(!1,yr),ei(so,yr);return}Wn(!!Tr,yr)},onHelp:function(){zn(!0,{index:yr})},onKeyDown:function(Tr){var so=!1;if(_n==null||_n(Tr,function(){so=!0}),!Tr.defaultPrevented&&!so)switch(Tr.key){case"Escape":zn(!1,{index:yr});break;case"Enter":Yn||zn(!0);break}}},ae==null?void 0:ae({valueTexts:dn}));return Object.keys(Ur).forEach(function(Jr){Ur[Jr]===void 0&&delete Ur[Jr]}),Ur};return[Fr,Xi]}var rn=["onMouseEnter","onMouseLeave"];function gi(Nt){return Tt.useMemo(function(){return Wt(Nt,rn)},[Nt])}var Ki=["icon","type"],nr=["onClear"];function Qi(Nt){var ae=Nt.icon,Ut=Nt.type,se=(0,kr.Z)(Nt,Ki),we=Tt.useContext(ct),Xe=we.prefixCls;return ae?Tt.createElement("span",(0,Mt.Z)({className:"".concat(Xe,"-").concat(Ut)},se),ae):null}function rr(Nt){var ae=Nt.onClear,Ut=(0,kr.Z)(Nt,nr);return Tt.createElement(Qi,(0,Mt.Z)({},Ut,{type:"clear",role:"button",onMouseDown:function(we){we.preventDefault()},onClick:function(we){we.stopPropagation(),ae()}}))}var Zr=Et(96949),Br=Et(55090),Hr=["YYYY","MM","DD","HH","mm","ss","SSS"],zr="\u9867",pn=function(){function Nt(ae){(0,Zr.Z)(this,Nt),(0,Ue.Z)(this,"format",void 0),(0,Ue.Z)(this,"maskFormat",void 0),(0,Ue.Z)(this,"cells",void 0),(0,Ue.Z)(this,"maskCells",void 0),this.format=ae;var Ut=Hr.map(function(hn){return"(".concat(hn,")")}).join("|"),se=new RegExp(Ut,"g");this.maskFormat=ae.replace(se,function(hn){return zr.repeat(hn.length)});var we=new RegExp("(".concat(Hr.join("|"),")")),Xe=(ae.split(we)||[]).filter(function(hn){return hn}),en=0;this.cells=Xe.map(function(hn){var Bn=Hr.includes(hn),Dn=en,mn=en+hn.length;return en=mn,{text:hn,mask:Bn,start:Dn,end:mn}}),this.maskCells=this.cells.filter(function(hn){return hn.mask})}return(0,Br.Z)(Nt,[{key:"getSelection",value:function(Ut){var se=this.maskCells[Ut]||{},we=se.start,Xe=se.end;return[we||0,Xe||0]}},{key:"match",value:function(Ut){for(var se=0;se<this.maskFormat.length;se+=1){var we=this.maskFormat[se],Xe=Ut[se];if(!Xe||we!==zr&&we!==Xe)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Ut){for(var se=Number.MAX_SAFE_INTEGER,we=0,Xe=0;Xe<this.maskCells.length;Xe+=1){var en=this.maskCells[Xe],hn=en.start,Bn=en.end;if(Ut>=hn&&Ut<=Bn)return Xe;var Dn=Math.min(Math.abs(Ut-hn),Math.abs(Ut-Bn));Dn<se&&(se=Dn,we=Xe)}return we}}]),Nt}();function Yr(Nt){var ae={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 ae[Nt]}var Ln=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],_i=Tt.forwardRef(function(Nt,ae){var Ut=Nt.active,se=Nt.showActiveCls,we=se===void 0?!0:se,Xe=Nt.suffixIcon,en=Nt.format,hn=Nt.validateFormat,Bn=Nt.onChange,Dn=Nt.onInput,mn=Nt.helped,ii=Nt.onHelp,Bi=Nt.onSubmit,de=Nt.onKeyDown,Wn=Nt.preserveInvalidOnBlur,Yn=Wn===void 0?!1:Wn,zn=Nt.invalid,_n=Nt.clearIcon,ei=(0,kr.Z)(Nt,Ln),Oi=Nt.value,yi=Nt.onFocus,oi=Nt.onBlur,Vn=Nt.onMouseUp,zi=Tt.useContext(ct),lr=zi.prefixCls,mr=zi.input,Er=mr===void 0?"input":mr,Si="".concat(lr,"-input"),cr=Tt.useState(!1),gr=(0,xe.Z)(cr,2),Pr=gr[0],Vi=gr[1],Xi=Tt.useState(Oi),dn=(0,xe.Z)(Xi,2),Gi=dn[0],hr=dn[1],Fr=Tt.useState(""),Or=(0,xe.Z)(Fr,2),yr=Or[0],ji=Or[1],br=Tt.useState(null),Ur=(0,xe.Z)(br,2),Jr=Ur[0],Tr=Ur[1],so=Tt.useState(null),no=(0,xe.Z)(so,2),Wr=no[0],fo=no[1],Mo=Gi||"";Tt.useEffect(function(){hr(Oi)},[Oi]);var _o=Tt.useRef(),io=Tt.useRef();Tt.useImperativeHandle(ae,function(){return{nativeElement:_o.current,inputElement:io.current,focus:function(Nr){io.current.focus(Nr)},blur:function(){io.current.blur()}}});var ta=Tt.useMemo(function(){return new pn(en||"")},[en]),Ao=Tt.useMemo(function(){return mn?[0,0]:ta.getSelection(Jr)},[ta,Jr,mn]),ca=(0,xe.Z)(Ao,2),No=ca[0],Xo=ca[1],ea=function(Nr){Nr&&Nr!==en&&Nr!==Oi&&ii()},Qo=(0,ee.zX)(function(vr){hn(vr)&&Bn(vr),hr(vr),ea(vr)}),Ro=function(Nr){if(!en){var uo=Nr.target.value;ea(uo),hr(uo),Bn(uo)}},ko=function(Nr){var uo=Nr.clipboardData.getData("text");hn(uo)&&Qo(uo)},oa=Tt.useRef(!1),Ca=function(){oa.current=!0},Zo=function(Nr){var uo=Nr.target,wr=uo.selectionStart,vi=ta.getMaskCellIndex(wr);Tr(vi),fo({}),Vn==null||Vn(Nr),oa.current=!1},Ia=function(Nr){Vi(!0),Tr(0),ji(""),yi(Nr)},Fo=function(Nr){oi(Nr)},wo=function(Nr){Vi(!1),Fo(Nr)};Gn(Ut,function(){!Ut&&!Yn&&hr(Oi)});var po=function(Nr){Nr.key==="Enter"&&hn(Mo)&&Bi(),de==null||de(Nr)},Yo=function(Nr){po(Nr);var uo=Nr.key,wr=null,vi=null,ia=Xo-No,me=en.slice(No,Xo),kn=function(Na){Tr(function(ss){var ts=ss+Na;return ts=Math.max(ts,0),ts=Math.min(ts,ta.size()-1),ts})},Ja=function(Na){var ss=Yr(me),ts=(0,xe.Z)(ss,3),Hs=ts[0],aa=ts[1],Vr=ts[2],Ha=Mo.slice(No,Xo),qa=Number(Ha);if(isNaN(qa))return String(Vr||(Na>0?Hs:aa));var sa=qa+Na,mo=aa-Hs+1;return String(Hs+(mo+sa-Hs)%mo)};switch(uo){case"Backspace":case"Delete":wr="",vi=me;break;case"ArrowLeft":wr="",kn(-1);break;case"ArrowRight":wr="",kn(1);break;case"ArrowUp":wr="",vi=Ja(1);break;case"ArrowDown":wr="",vi=Ja(-1);break;default:isNaN(Number(uo))||(wr=yr+uo,vi=wr);break}if(wr!==null&&(ji(wr),wr.length>=ia&&(kn(1),ji(""))),vi!==null){var Qa=Mo.slice(0,No)+St(vi,ia)+Mo.slice(Xo);Qo(Qa.slice(0,en.length))}fo({})},Ir=Tt.useRef();(0,Ht.Z)(function(){if(!(!Pr||!en||oa.current)){if(!ta.match(Mo)){Qo(en);return}return io.current.setSelectionRange(No,Xo),Ir.current=(0,tn.Z)(function(){io.current.setSelectionRange(No,Xo)}),function(){tn.Z.cancel(Ir.current)}}},[ta,en,Pr,Mo,Jr,No,Xo,Wr,Qo]);var ao=en?{onFocus:Ia,onBlur:wo,onKeyDown:Yo,onMouseDown:Ca,onMouseUp:Zo,onPaste:ko}:{};return Tt.createElement("div",{ref:_o,className:Ot()(Si,(0,Ue.Z)((0,Ue.Z)({},"".concat(Si,"-active"),Ut&&we),"".concat(Si,"-placeholder"),mn))},Tt.createElement(Er,(0,Mt.Z)({ref:io,"aria-invalid":zn,autoComplete:"off"},ei,{onKeyDown:po,onBlur:Fo},ao,{value:Mo,onChange:Ro})),Tt.createElement(Qi,{type:"suffix",icon:Xe}),_n)}),or=_i,Cr=["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"],Po=["index"];function co(Nt,ae){var Ut=Nt.id,se=Nt.prefix,we=Nt.clearIcon,Xe=Nt.suffixIcon,en=Nt.separator,hn=en===void 0?"~":en,Bn=Nt.activeIndex,Dn=Nt.activeHelp,mn=Nt.allHelp,ii=Nt.focused,Bi=Nt.onFocus,de=Nt.onBlur,Wn=Nt.onKeyDown,Yn=Nt.locale,zn=Nt.generateConfig,_n=Nt.placeholder,ei=Nt.className,Oi=Nt.style,yi=Nt.onClick,oi=Nt.onClear,Vn=Nt.value,zi=Nt.onChange,lr=Nt.onSubmit,mr=Nt.onInputChange,Er=Nt.format,Si=Nt.maskFormat,cr=Nt.preserveInvalidOnBlur,gr=Nt.onInvalid,Pr=Nt.disabled,Vi=Nt.invalid,Xi=Nt.inputReadOnly,dn=Nt.direction,Gi=Nt.onOpenChange,hr=Nt.onActiveInfo,Fr=Nt.placement,Or=Nt.onMouseDown,yr=Nt.required,ji=Nt["aria-required"],br=Nt.autoFocus,Ur=Nt.tabIndex,Jr=(0,kr.Z)(Nt,Cr),Tr=dn==="rtl",so=Tt.useContext(ct),no=so.prefixCls,Wr=Tt.useMemo(function(){if(typeof Ut=="string")return[Ut];var Fo=Ut||{};return[Fo.start,Fo.end]},[Ut]),fo=Tt.useRef(),Mo=Tt.useRef(),_o=Tt.useRef(),io=function(wo){var po;return(po=[Mo,_o][wo])===null||po===void 0?void 0:po.current};Tt.useImperativeHandle(ae,function(){return{nativeElement:fo.current,focus:function(wo){if((0,wn.Z)(wo)==="object"){var po,Yo=wo||{},Ir=Yo.index,ao=Ir===void 0?0:Ir,vr=(0,kr.Z)(Yo,Po);(po=io(ao))===null||po===void 0||po.focus(vr)}else{var Nr;(Nr=io(wo!=null?wo:0))===null||Nr===void 0||Nr.focus()}},blur:function(){var wo,po;(wo=io(0))===null||wo===void 0||wo.blur(),(po=io(1))===null||po===void 0||po.blur()}}});var ta=gi(Jr),Ao=Tt.useMemo(function(){return Array.isArray(_n)?_n:[_n,_n]},[_n]),ca=to((0,ge.Z)((0,ge.Z)({},Nt),{},{id:Wr,placeholder:Ao})),No=(0,xe.Z)(ca,1),Xo=No[0],ea=Tt.useState({position:"absolute",width:0}),Qo=(0,xe.Z)(ea,2),Ro=Qo[0],ko=Qo[1],oa=(0,ee.zX)(function(){var Fo=io(Bn);if(Fo){var wo=Fo.nativeElement.getBoundingClientRect(),po=fo.current.getBoundingClientRect(),Yo=wo.left-po.left;ko(function(Ir){return(0,ge.Z)((0,ge.Z)({},Ir),{},{width:wo.width,left:Yo})}),hr([wo.left,wo.right,po.width])}});Tt.useEffect(function(){oa()},[Bn]);var Ca=we&&(Vn[0]&&!Pr[0]||Vn[1]&&!Pr[1]),Zo=br&&!Pr[0],Ia=br&&!Zo&&!Pr[1];return Tt.createElement(ci.Z,{onResize:oa},Tt.createElement("div",(0,Mt.Z)({},ta,{className:Ot()(no,"".concat(no,"-range"),(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(no,"-focused"),ii),"".concat(no,"-disabled"),Pr.every(function(Fo){return Fo})),"".concat(no,"-invalid"),Vi.some(function(Fo){return Fo})),"".concat(no,"-rtl"),Tr),ei),style:Oi,ref:fo,onClick:yi,onMouseDown:function(wo){var po=wo.target;po!==Mo.current.inputElement&&po!==_o.current.inputElement&&wo.preventDefault(),Or==null||Or(wo)}}),se&&Tt.createElement("div",{className:"".concat(no,"-prefix")},se),Tt.createElement(or,(0,Mt.Z)({ref:Mo},Xo(0),{autoFocus:Zo,tabIndex:Ur,"date-range":"start"})),Tt.createElement("div",{className:"".concat(no,"-range-separator")},hn),Tt.createElement(or,(0,Mt.Z)({ref:_o},Xo(1),{autoFocus:Ia,tabIndex:Ur,"date-range":"end"})),Tt.createElement("div",{className:"".concat(no,"-active-bar"),style:Ro}),Tt.createElement(Qi,{type:"suffix",icon:Xe}),Ca&&Tt.createElement(rr,{icon:we,onClear:oi})))}var Kr=Tt.forwardRef(co),eo=Kr;function Ke(Nt,ae){var Ut=Nt!=null?Nt:ae;return Array.isArray(Ut)?Ut:[Ut,Ut]}function Mn(Nt){return Nt===1?"end":"start"}function Ge(Nt,ae){var Ut=fn(Nt,function(){var ro=Nt.disabled,ho=Nt.allowEmpty,Lo=Ke(ro,!1),$o=Ke(ho,!1);return{disabled:Lo,allowEmpty:$o}}),se=(0,xe.Z)(Ut,6),we=se[0],Xe=se[1],en=se[2],hn=se[3],Bn=se[4],Dn=se[5],mn=we.prefixCls,ii=we.styles,Bi=we.classNames,de=we.defaultValue,Wn=we.value,Yn=we.needConfirm,zn=we.onKeyDown,_n=we.disabled,ei=we.allowEmpty,Oi=we.disabledDate,yi=we.minDate,oi=we.maxDate,Vn=we.defaultOpen,zi=we.open,lr=we.onOpenChange,mr=we.locale,Er=we.generateConfig,Si=we.picker,cr=we.showNow,gr=we.showToday,Pr=we.showTime,Vi=we.mode,Xi=we.onPanelChange,dn=we.onCalendarChange,Gi=we.onOk,hr=we.defaultPickerValue,Fr=we.pickerValue,Or=we.onPickerValueChange,yr=we.inputReadOnly,ji=we.suffixIcon,br=we.onFocus,Ur=we.onBlur,Jr=we.presets,Tr=we.ranges,so=we.components,no=we.cellRender,Wr=we.dateRender,fo=we.monthCellRender,Mo=we.onClick,_o=Xn(ae),io=On(zi,Vn,_n,lr),ta=(0,xe.Z)(io,2),Ao=ta[0],ca=ta[1],No=function(ho,Lo){(_n.some(function($o){return!$o})||!ho)&&ca(ho,Lo)},Xo=ur(Er,mr,hn,!0,!1,de,Wn,dn,Gi),ea=(0,xe.Z)(Xo,5),Qo=ea[0],Ro=ea[1],ko=ea[2],oa=ea[3],Ca=ea[4],Zo=ko(),Ia=Ni(_n,ei,Ao),Fo=(0,xe.Z)(Ia,9),wo=Fo[0],po=Fo[1],Yo=Fo[2],Ir=Fo[3],ao=Fo[4],vr=Fo[5],Nr=Fo[6],uo=Fo[7],wr=Fo[8],vi=function(ho,Lo){po(!0),br==null||br(ho,{range:Mn(Lo!=null?Lo:Ir)})},ia=function(ho,Lo){po(!1),Ur==null||Ur(ho,{range:Mn(Lo!=null?Lo:Ir)})},me=Tt.useMemo(function(){if(!Pr)return null;var ro=Pr.disabledTime,ho=ro?function(Lo){var $o=Mn(Ir),es=Jt(Zo,Nr,Ir);return ro(Lo,$o,{from:es})}:void 0;return(0,ge.Z)((0,ge.Z)({},Pr),{},{disabledTime:ho})},[Pr,Ir,Zo,Nr]),kn=(0,ee.C8)([Si,Si],{value:Vi}),Ja=(0,xe.Z)(kn,2),Qa=Ja[0],pa=Ja[1],Na=Qa[Ir]||Si,ss=Na==="date"&&me?"datetime":Na,ts=ss===Si&&ss!=="time",Hs=pr(Si,Na,cr,gr,!0),aa=ir(we,Qo,Ro,ko,oa,_n,hn,wo,Ao,Dn),Vr=(0,xe.Z)(aa,2),Ha=Vr[0],qa=Vr[1],sa=xi(Zo,_n,Nr,Er,mr,Oi),mo=ce(Zo,Dn,ei),fa=(0,xe.Z)(mo,2),ls=fa[0],ra=fa[1],us=Qe(Er,mr,Zo,Qa,Ao,Ir,Xe,ts,hr,Fr,me==null?void 0:me.defaultOpenValue,Or,yi,oi),Ta=(0,xe.Z)(us,2),El=Ta[0],zo=Ta[1],La=(0,ee.zX)(function(ro,ho,Lo){var $o=zt(Qa,Ir,ho);if(($o[0]!==Qa[0]||$o[1]!==Qa[1])&&pa($o),Xi&&Lo!==!1){var es=(0,ne.Z)(Zo);ro&&(es[Ir]=ro),Xi(es,$o)}}),To=function(ho,Lo){return zt(Zo,Lo,ho)},Uo=function(ho,Lo){var $o=Zo;ho&&($o=To(ho,Ir)),uo(Ir);var es=vr($o);oa($o),Ha(Ir,es===null),es===null?No(!1,{force:!0}):Lo||_o.current.focus({index:es})},ua=function(ho){var Lo,$o=ho.target.getRootNode();if(!_o.current.nativeElement.contains((Lo=$o.activeElement)!==null&&Lo!==void 0?Lo:document.activeElement)){var es=_n.findIndex(function(hs){return!hs});es>=0&&_o.current.focus({index:es})}No(!0),Mo==null||Mo(ho)},ga=function(){qa(null),No(!1,{force:!0})},Ko=Tt.useState(null),fl=(0,xe.Z)(Ko,2),Qr=fl[0],pu=fl[1],Co=Tt.useState(null),Gl=(0,xe.Z)(Co,2),Qs=Gl[0],Fl=Gl[1],mu=Tt.useMemo(function(){return Qs||Zo},[Zo,Qs]);Tt.useEffect(function(){Ao||Fl(null)},[Ao]);var vu=Tt.useState([0,0,0]),Zs=(0,xe.Z)(vu,2),Vl=Zs[0],Wo=Zs[1],Ws=Pn(Jr,Tr),yu=function(ho){Fl(ho),pu("preset")},gl=function(ho){var Lo=qa(ho);Lo&&No(!1,{force:!0})},Fu=function(ho){Uo(ho)},pl=function(ho){Fl(ho?To(ho,Ir):null),pu("cell")},Eo=function(ho){No(!0),vi(ho)},Ho=function(){Yo("panel")},wa=function(ho){var Lo=zt(Zo,Ir,ho);oa(Lo),!Yn&&!en&&Xe===ss&&Uo(ho)},_a=function(){No(!1)},Ka=pe(no,Wr,fo,Mn(Ir)),Nl=Zo[Ir]||null,ml=(0,ee.zX)(function(ro){return Dn(ro,{activeIndex:Ir})}),Do=Tt.useMemo(function(){var ro=(0,Re.Z)(we,!1),ho=(0,oe.Z)(we,[].concat((0,ne.Z)(Object.keys(ro)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return ho},[we]),vo=Tt.createElement(_r,(0,Mt.Z)({},Do,{showNow:Hs,showTime:me,range:!0,multiplePanel:ts,activeInfo:Vl,disabledDate:sa,onFocus:Eo,onBlur:ia,onPanelMouseDown:Ho,picker:Si,mode:Na,internalMode:ss,onPanelChange:La,format:Bn,value:Nl,isInvalid:ml,onChange:null,onSelect:wa,pickerValue:El,defaultOpenValue:wt(Pr==null?void 0:Pr.defaultOpenValue)[Ir],onPickerValueChange:zo,hoverValue:mu,onHover:pl,needConfirm:Yn,onSubmit:Uo,onOk:Ca,presets:Ws,onPresetHover:yu,onPresetSubmit:gl,onNow:Fu,cellRender:Ka})),Za=function(ho,Lo){var $o=To(ho,Lo);oa($o)},iu=function(){Yo("input")},Ed=function(ho,Lo){var $o=Nr.length,es=Nr[$o-1];if($o&&es!==Lo&&Yn&&!ei[es]&&!wr(es)&&Zo[es]){_o.current.focus({index:es});return}Yo("input"),No(!0,{inherit:!0}),Ir!==Lo&&Ao&&!Yn&&en&&Uo(null,!0),ao(Lo),vi(ho,Lo)},hg=function(ho,Lo){if(No(!1),!Yn&&Yo()==="input"){var $o=vr(Zo);Ha(Ir,$o===null)}ia(ho,Lo)},tf=function(ho,Lo){ho.key==="Tab"&&Uo(null,!0),zn==null||zn(ho,Lo)},Ra=Tt.useMemo(function(){return{prefixCls:mn,locale:mr,generateConfig:Er,button:so.button,input:so.input}},[mn,mr,Er,so.button,so.input]);if((0,Ht.Z)(function(){Ao&&Ir!==void 0&&La(null,Si,!1)},[Ao,Ir,Si]),(0,Ht.Z)(function(){var ro=Yo();!Ao&&ro==="input"&&(No(!1),Uo(null,!0)),!Ao&&en&&!Yn&&ro==="panel"&&(No(!0),Uo())},[Ao]),0)var Ju;return Tt.createElement(ct.Provider,{value:Ra},Tt.createElement(mt,(0,Mt.Z)({},Vt(we),{popupElement:vo,popupStyle:ii.popup,popupClassName:Bi.popup,visible:Ao,onClose:_a,range:!0}),Tt.createElement(eo,(0,Mt.Z)({},we,{ref:_o,suffixIcon:ji,activeIndex:wo||Ao?Ir:null,activeHelp:!!Qs,allHelp:!!Qs&&Qr==="preset",focused:wo,onFocus:Ed,onBlur:hg,onKeyDown:tf,onSubmit:Uo,value:mu,maskFormat:Bn,onChange:Za,onInputChange:iu,format:hn,inputReadOnly:yr,disabled:_n,open:Ao,onOpenChange:No,onClick:ua,onClear:ga,invalid:ls,onInvalid:ra,onActiveInfo:Wo}))))}var Bt=Tt.forwardRef(Ge),ti=Bt,Kn=Et(11780);function ui(Nt){var ae=Nt.prefixCls,Ut=Nt.value,se=Nt.onRemove,we=Nt.removeIcon,Xe=we===void 0?"\xD7":we,en=Nt.formatDate,hn=Nt.disabled,Bn=Nt.maxTagCount,Dn=Nt.placeholder,mn="".concat(ae,"-selector"),ii="".concat(ae,"-selection"),Bi="".concat(ii,"-overflow");function de(zn,_n){return Tt.createElement("span",{className:Ot()("".concat(ii,"-item")),title:typeof zn=="string"?zn:null},Tt.createElement("span",{className:"".concat(ii,"-item-content")},zn),!hn&&_n&&Tt.createElement("span",{onMouseDown:function(Oi){Oi.preventDefault()},onClick:_n,className:"".concat(ii,"-item-remove")},Xe))}function Wn(zn){var _n=en(zn),ei=function(yi){yi&&yi.stopPropagation(),se(zn)};return de(_n,ei)}function Yn(zn){var _n="+ ".concat(zn.length," ...");return de(_n)}return Tt.createElement("div",{className:mn},Tt.createElement(Kn.Z,{prefixCls:Bi,data:Ut,renderItem:Wn,renderRest:Yn,itemKey:function(_n){return en(_n)},maxCount:Bn}),!Ut.length&&Tt.createElement("span",{className:"".concat(ae,"-selection-placeholder")},Dn))}var Mi=["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 Ei(Nt,ae){var Ut=Nt.id,se=Nt.open,we=Nt.prefix,Xe=Nt.clearIcon,en=Nt.suffixIcon,hn=Nt.activeHelp,Bn=Nt.allHelp,Dn=Nt.focused,mn=Nt.onFocus,ii=Nt.onBlur,Bi=Nt.onKeyDown,de=Nt.locale,Wn=Nt.generateConfig,Yn=Nt.placeholder,zn=Nt.className,_n=Nt.style,ei=Nt.onClick,Oi=Nt.onClear,yi=Nt.internalPicker,oi=Nt.value,Vn=Nt.onChange,zi=Nt.onSubmit,lr=Nt.onInputChange,mr=Nt.multiple,Er=Nt.maxTagCount,Si=Nt.format,cr=Nt.maskFormat,gr=Nt.preserveInvalidOnBlur,Pr=Nt.onInvalid,Vi=Nt.disabled,Xi=Nt.invalid,dn=Nt.inputReadOnly,Gi=Nt.direction,hr=Nt.onOpenChange,Fr=Nt.onMouseDown,Or=Nt.required,yr=Nt["aria-required"],ji=Nt.autoFocus,br=Nt.tabIndex,Ur=Nt.removeIcon,Jr=(0,kr.Z)(Nt,Mi),Tr=Gi==="rtl",so=Tt.useContext(ct),no=so.prefixCls,Wr=Tt.useRef(),fo=Tt.useRef();Tt.useImperativeHandle(ae,function(){return{nativeElement:Wr.current,focus:function(Ro){var ko;(ko=fo.current)===null||ko===void 0||ko.focus(Ro)},blur:function(){var Ro;(Ro=fo.current)===null||Ro===void 0||Ro.blur()}}});var Mo=gi(Jr),_o=function(Ro){Vn([Ro])},io=function(Ro){var ko=oi.filter(function(oa){return oa&&!kt(Wn,de,oa,Ro,yi)});Vn(ko),se||zi()},ta=to((0,ge.Z)((0,ge.Z)({},Nt),{},{onChange:_o}),function(Qo){var Ro=Qo.valueTexts;return{value:Ro[0]||"",active:Dn}}),Ao=(0,xe.Z)(ta,2),ca=Ao[0],No=Ao[1],Xo=!!(Xe&&oi.length&&!Vi),ea=mr?Tt.createElement(Tt.Fragment,null,Tt.createElement(ui,{prefixCls:no,value:oi,onRemove:io,formatDate:No,maxTagCount:Er,disabled:Vi,removeIcon:Ur,placeholder:Yn}),Tt.createElement("input",{className:"".concat(no,"-multiple-input"),value:oi.map(No).join(","),ref:fo,readOnly:!0,autoFocus:ji,tabIndex:br}),Tt.createElement(Qi,{type:"suffix",icon:en}),Xo&&Tt.createElement(rr,{icon:Xe,onClear:Oi})):Tt.createElement(or,(0,Mt.Z)({ref:fo},ca(),{autoFocus:ji,tabIndex:br,suffixIcon:en,clearIcon:Xo&&Tt.createElement(rr,{icon:Xe,onClear:Oi}),showActiveCls:!1}));return Tt.createElement("div",(0,Mt.Z)({},Mo,{className:Ot()(no,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(no,"-multiple"),mr),"".concat(no,"-focused"),Dn),"".concat(no,"-disabled"),Vi),"".concat(no,"-invalid"),Xi),"".concat(no,"-rtl"),Tr),zn),style:_n,ref:Wr,onClick:ei,onMouseDown:function(Ro){var ko,oa=Ro.target;oa!==((ko=fo.current)===null||ko===void 0?void 0:ko.inputElement)&&Ro.preventDefault(),Fr==null||Fr(Ro)}}),we&&Tt.createElement("div",{className:"".concat(no,"-prefix")},we),ea)}var Nn=Tt.forwardRef(Ei),si=Nn;function hi(Nt,ae){var Ut=fn(Nt),se=(0,xe.Z)(Ut,6),we=se[0],Xe=se[1],en=se[2],hn=se[3],Bn=se[4],Dn=se[5],mn=we,ii=mn.prefixCls,Bi=mn.styles,de=mn.classNames,Wn=mn.order,Yn=mn.defaultValue,zn=mn.value,_n=mn.needConfirm,ei=mn.onChange,Oi=mn.onKeyDown,yi=mn.disabled,oi=mn.disabledDate,Vn=mn.minDate,zi=mn.maxDate,lr=mn.defaultOpen,mr=mn.open,Er=mn.onOpenChange,Si=mn.locale,cr=mn.generateConfig,gr=mn.picker,Pr=mn.showNow,Vi=mn.showToday,Xi=mn.showTime,dn=mn.mode,Gi=mn.onPanelChange,hr=mn.onCalendarChange,Fr=mn.onOk,Or=mn.multiple,yr=mn.defaultPickerValue,ji=mn.pickerValue,br=mn.onPickerValueChange,Ur=mn.inputReadOnly,Jr=mn.suffixIcon,Tr=mn.removeIcon,so=mn.onFocus,no=mn.onBlur,Wr=mn.presets,fo=mn.components,Mo=mn.cellRender,_o=mn.dateRender,io=mn.monthCellRender,ta=mn.onClick,Ao=Xn(ae);function ca(Do){return Do===null?null:Or?Do:Do[0]}var No=Ji(cr,Si,Xe),Xo=On(mr,lr,[yi],Er),ea=(0,xe.Z)(Xo,2),Qo=ea[0],Ro=ea[1],ko=function(vo,Za,iu){if(hr){var Ed=(0,ge.Z)({},iu);delete Ed.range,hr(ca(vo),ca(Za),Ed)}},oa=function(vo){Fr==null||Fr(ca(vo))},Ca=ur(cr,Si,hn,!1,Wn,Yn,zn,ko,oa),Zo=(0,xe.Z)(Ca,5),Ia=Zo[0],Fo=Zo[1],wo=Zo[2],po=Zo[3],Yo=Zo[4],Ir=wo(),ao=Ni([yi]),vr=(0,xe.Z)(ao,4),Nr=vr[0],uo=vr[1],wr=vr[2],vi=vr[3],ia=function(vo){uo(!0),so==null||so(vo,{})},me=function(vo){uo(!1),no==null||no(vo,{})},kn=(0,ee.C8)(gr,{value:dn}),Ja=(0,xe.Z)(kn,2),Qa=Ja[0],pa=Ja[1],Na=Qa==="date"&&Xi?"datetime":Qa,ss=pr(gr,Qa,Pr,Vi),ts=ei&&function(Do,vo){ei(ca(Do),ca(vo))},Hs=ir((0,ge.Z)((0,ge.Z)({},we),{},{onChange:ts}),Ia,Fo,wo,po,[],hn,Nr,Qo,Dn),aa=(0,xe.Z)(Hs,2),Vr=aa[1],Ha=ce(Ir,Dn),qa=(0,xe.Z)(Ha,2),sa=qa[0],mo=qa[1],fa=Tt.useMemo(function(){return sa.some(function(Do){return Do})},[sa]),ls=function(vo,Za){if(br){var iu=(0,ge.Z)((0,ge.Z)({},Za),{},{mode:Za.mode[0]});delete iu.range,br(vo[0],iu)}},ra=Qe(cr,Si,Ir,[Qa],Qo,vi,Xe,!1,yr,ji,wt(Xi==null?void 0:Xi.defaultOpenValue),ls,Vn,zi),us=(0,xe.Z)(ra,2),Ta=us[0],El=us[1],zo=(0,ee.zX)(function(Do,vo,Za){if(pa(vo),Gi&&Za!==!1){var iu=Do||Ir[Ir.length-1];Gi(iu,vo)}}),La=function(){Vr(wo()),Ro(!1,{force:!0})},To=function(vo){!yi&&!Ao.current.nativeElement.contains(document.activeElement)&&Ao.current.focus(),Ro(!0),ta==null||ta(vo)},Uo=function(){Vr(null),Ro(!1,{force:!0})},ua=Tt.useState(null),ga=(0,xe.Z)(ua,2),Ko=ga[0],fl=ga[1],Qr=Tt.useState(null),pu=(0,xe.Z)(Qr,2),Co=pu[0],Gl=pu[1],Qs=Tt.useMemo(function(){var Do=[Co].concat((0,ne.Z)(Ir)).filter(function(vo){return vo});return Or?Do:Do.slice(0,1)},[Ir,Co,Or]),Fl=Tt.useMemo(function(){return!Or&&Co?[Co]:Ir.filter(function(Do){return Do})},[Ir,Co,Or]);Tt.useEffect(function(){Qo||Gl(null)},[Qo]);var mu=Pn(Wr),vu=function(vo){Gl(vo),fl("preset")},Zs=function(vo){var Za=Or?No(wo(),vo):[vo],iu=Vr(Za);iu&&!Or&&Ro(!1,{force:!0})},Vl=function(vo){Zs(vo)},Wo=function(vo){Gl(vo),fl("cell")},Ws=function(vo){Ro(!0),ia(vo)},yu=function(vo){if(wr("panel"),!(Or&&Na!==gr)){var Za=Or?No(wo(),vo):[vo];po(Za),!_n&&!en&&Xe===Na&&La()}},gl=function(){Ro(!1)},Fu=pe(Mo,_o,io),pl=Tt.useMemo(function(){var Do=(0,Re.Z)(we,!1),vo=(0,oe.Z)(we,[].concat((0,ne.Z)(Object.keys(Do)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,ge.Z)((0,ge.Z)({},vo),{},{multiple:we.multiple})},[we]),Eo=Tt.createElement(_r,(0,Mt.Z)({},pl,{showNow:ss,showTime:Xi,disabledDate:oi,onFocus:Ws,onBlur:me,picker:gr,mode:Qa,internalMode:Na,onPanelChange:zo,format:Bn,value:Ir,isInvalid:Dn,onChange:null,onSelect:yu,pickerValue:Ta,defaultOpenValue:Xi==null?void 0:Xi.defaultOpenValue,onPickerValueChange:El,hoverValue:Qs,onHover:Wo,needConfirm:_n,onSubmit:La,onOk:Yo,presets:mu,onPresetHover:vu,onPresetSubmit:Zs,onNow:Vl,cellRender:Fu})),Ho=function(vo){po(vo)},wa=function(){wr("input")},_a=function(vo){wr("input"),Ro(!0,{inherit:!0}),ia(vo)},Ka=function(vo){Ro(!1),me(vo)},Nl=function(vo,Za){vo.key==="Tab"&&La(),Oi==null||Oi(vo,Za)},ml=Tt.useMemo(function(){return{prefixCls:ii,locale:Si,generateConfig:cr,button:fo.button,input:fo.input}},[ii,Si,cr,fo.button,fo.input]);return(0,Ht.Z)(function(){Qo&&vi!==void 0&&zo(null,gr,!1)},[Qo,vi,gr]),(0,Ht.Z)(function(){var Do=wr();!Qo&&Do==="input"&&(Ro(!1),La()),!Qo&&en&&!_n&&Do==="panel"&&La()},[Qo]),Tt.createElement(ct.Provider,{value:ml},Tt.createElement(mt,(0,Mt.Z)({},Vt(we),{popupElement:Eo,popupStyle:Bi.popup,popupClassName:de.popup,visible:Qo,onClose:gl}),Tt.createElement(si,(0,Mt.Z)({},we,{ref:Ao,suffixIcon:Jr,removeIcon:Tr,activeHelp:!!Co,allHelp:!!Co&&Ko==="preset",focused:Nr,onFocus:_a,onBlur:Ka,onKeyDown:Nl,onSubmit:La,value:Fl,maskFormat:Bn,onChange:Ho,onInputChange:wa,internalPicker:Xe,format:hn,inputReadOnly:Ur,disabled:yi,open:Qo,onOpenChange:Ro,onClick:To,onClear:Uo,invalid:fa,onInvalid:function(vo){mo(vo,0)}}))))}var pi=Tt.forwardRef(hi),mi=pi,ar=mi},85095:function(An,Un){"use strict";Object.defineProperty(Un,"__esModule",{value:!0}),Un.commonLocale=void 0;var Et=Un.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},44820:function(An,Un,Et){"use strict";var Mt=Et(8219).default;Object.defineProperty(Un,"__esModule",{value:!0}),Un.default=void 0;var ne=Mt(Et(56495)),ge=Et(85095),xe=(0,ne.default)((0,ne.default)({},ge.commonLocale),{},{locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",week:"\u5468",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA",yearFormat:"YYYY\u5E74",cellDateFormat:"D",monthBeforeYear:!1}),ee=Un.default=xe},25930:function(An,Un,Et){"use strict";Et.d(Un,{Cd:function(){return pe}});var Mt=Et(72308),ne=Et(77321),ge=Et(74416),xe=Et(59301),ee=Et(92310),Ht=Et.n(ee),oe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Re=function(){var Ie=(0,xe.useRef)([]),ke=(0,xe.useRef)(null);return(0,xe.useEffect)(function(){var wn=Date.now(),on=!1;Ie.current.forEach(function(qe){if(qe){on=!0;var We=qe.style;We.transitionDuration=".3s, .3s, .3s, .06s",ke.current&&wn-ke.current<100&&(We.transitionDuration="0s, 0s")}}),on&&(ke.current=Date.now())}),Ie.current},ve=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Tt=function(Ie){var ke=(0,ne.Z)((0,ne.Z)({},oe),Ie),wn=ke.className,on=ke.percent,qe=ke.prefixCls,We=ke.strokeColor,he=ke.strokeLinecap,It=ke.strokeWidth,Le=ke.style,an=ke.trailColor,Ze=ke.trailWidth,Ce=ke.transition,nn=(0,ge.Z)(ke,ve);delete nn.gapPosition;var Ye=Array.isArray(on)?on:[on],Sn=Array.isArray(We)?We:[We],Fe=Re(),vn=It/2,ue=100-It/2,Ve="M ".concat(he==="round"?vn:0,",").concat(vn,`
|
|
L `).concat(he==="round"?ue:100,",").concat(vn),In="0 0 100 ".concat(It),Dt=0;return xe.createElement("svg",(0,Mt.Z)({className:Ht()("".concat(qe,"-line"),wn),viewBox:In,preserveAspectRatio:"none",style:Le},nn),xe.createElement("path",{className:"".concat(qe,"-line-trail"),d:Ve,strokeLinecap:he,stroke:an,strokeWidth:Ze||It,fillOpacity:"0"}),Ye.map(function(Ct,yt){var kt=1;switch(he){case"round":kt=1-It/100;break;case"square":kt=1-It/2/100;break;default:kt=1;break}var jt={strokeDasharray:"".concat(Ct*kt,"px, 100px"),strokeDashoffset:"-".concat(Dt,"px"),transition:Ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},bt=Sn[yt]||Sn[Sn.length-1];return Dt+=Ct,xe.createElement("path",{key:yt,className:"".concat(qe,"-line-path"),d:Ve,strokeLinecap:he,stroke:bt,strokeWidth:It,fillOpacity:"0",ref:function(fe){Fe[yt]=fe},style:jt})}))},Ue=Tt,ie=Et(62853),Je=Et(52487),Ot=Et(47273),et=0,nt=(0,Ot.Z)();function ct(){var Ee;return nt?(Ee=et,et+=1):Ee="TEST_OR_SSR",Ee}var lt=function(Ee){var Ie=xe.useState(),ke=(0,Je.Z)(Ie,2),wn=ke[0],on=ke[1];return xe.useEffect(function(){on("rc_progress_".concat(ct()))},[]),Ee||wn},gt=function(Ie){var ke=Ie.bg,wn=Ie.children;return xe.createElement("div",{style:{width:"100%",height:"100%",background:ke}},wn)};function mt(Ee,Ie){return Object.keys(Ee).map(function(ke){var wn=parseFloat(ke),on="".concat(Math.floor(wn*Ie),"%");return"".concat(Ee[ke]," ").concat(on)})}var St=xe.forwardRef(function(Ee,Ie){var ke=Ee.prefixCls,wn=Ee.color,on=Ee.gradientId,qe=Ee.radius,We=Ee.style,he=Ee.ptg,It=Ee.strokeLinecap,Le=Ee.strokeWidth,an=Ee.size,Ze=Ee.gapDegree,Ce=wn&&(0,ie.Z)(wn)==="object",nn=Ce?"#FFF":void 0,Ye=an/2,Sn=xe.createElement("circle",{className:"".concat(ke,"-circle-path"),r:qe,cx:Ye,cy:Ye,stroke:nn,strokeLinecap:It,strokeWidth:Le,opacity:he===0?0:1,style:We,ref:Ie});if(!Ce)return Sn;var Fe="".concat(on,"-conic"),vn=Ze?"".concat(180+Ze/2,"deg"):"0deg",ue=mt(wn,(360-Ze)/360),Ve=mt(wn,1),In="conic-gradient(from ".concat(vn,", ").concat(ue.join(", "),")"),Dt="linear-gradient(to ".concat(Ze?"bottom":"top",", ").concat(Ve.join(", "),")");return xe.createElement(xe.Fragment,null,xe.createElement("mask",{id:Fe},Sn),xe.createElement("foreignObject",{x:0,y:0,width:an,height:an,mask:"url(#".concat(Fe,")")},xe.createElement(gt,{bg:Dt},xe.createElement(gt,{bg:In}))))}),wt=St,zt=100,Wt=function(Ie,ke,wn,on,qe,We,he,It,Le,an){var Ze=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ce=wn/100*360*((360-We)/360),nn=We===0?0:{bottom:0,top:180,left:90,right:-90}[he],Ye=(100-on)/100*ke;Le==="round"&&on!==100&&(Ye+=an/2,Ye>=ke&&(Ye=ke-.01));var Sn=zt/2;return{stroke:typeof It=="string"?It:void 0,strokeDasharray:"".concat(ke,"px ").concat(Ie),strokeDashoffset:Ye+Ze,transform:"rotate(".concat(qe+Ce+nn,"deg)"),transformOrigin:"".concat(Sn,"px ").concat(Sn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},$t=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Jt(Ee){var Ie=Ee!=null?Ee:[];return Array.isArray(Ie)?Ie:[Ie]}var Vt=function(Ie){var ke=(0,ne.Z)((0,ne.Z)({},oe),Ie),wn=ke.id,on=ke.prefixCls,qe=ke.steps,We=ke.strokeWidth,he=ke.trailWidth,It=ke.gapDegree,Le=It===void 0?0:It,an=ke.gapPosition,Ze=ke.trailColor,Ce=ke.strokeLinecap,nn=ke.style,Ye=ke.className,Sn=ke.strokeColor,Fe=ke.percent,vn=(0,ge.Z)(ke,$t),ue=zt/2,Ve=lt(wn),In="".concat(Ve,"-gradient"),Dt=ue-We/2,Ct=Math.PI*2*Dt,yt=Le>0?90+Le/2:-90,kt=Ct*((360-Le)/360),jt=(0,ie.Z)(qe)==="object"?qe:{count:qe,gap:2},bt=jt.count,Gt=jt.gap,fe=Jt(Fe),Se=Jt(Sn),Be=Se.find(function(He){return He&&(0,ie.Z)(He)==="object"}),re=Be&&(0,ie.Z)(Be)==="object",Te=re?"butt":Ce,Ne=Wt(Ct,kt,0,100,yt,Le,an,Ze,Te,We),$e=Re(),fn=function(){var On=0;return fe.map(function(Xn,Pn){var Gn=Se[Pn]||Se[Se.length-1],Ni=Wt(Ct,kt,On,Xn,yt,Le,an,Gn,Te,We);return On+=Xn,xe.createElement(wt,{key:Pn,color:Gn,ptg:Xn,radius:Dt,prefixCls:on,gradientId:In,style:Ni,strokeLinecap:Te,strokeWidth:We,gapDegree:Le,ref:function(ki){$e[Pn]=ki},size:zt})}).reverse()},tn=function(){var On=Math.round(bt*(fe[0]/100)),Xn=100/bt,Pn=0;return new Array(bt).fill(null).map(function(Gn,Ni){var xi=Ni<=On-1?Se[0]:Ze,ki=xi&&(0,ie.Z)(xi)==="object"?"url(#".concat(In,")"):void 0,tr=Wt(Ct,kt,Pn,Xn,yt,Le,an,xi,"butt",We,Gt);return Pn+=(kt-tr.strokeDashoffset+Gt)*100/kt,xe.createElement("circle",{key:Ni,className:"".concat(on,"-circle-path"),r:Dt,cx:ue,cy:ue,stroke:ki,strokeWidth:We,opacity:1,style:tr,ref:function(sn){$e[Ni]=sn}})})};return xe.createElement("svg",(0,Mt.Z)({className:Ht()("".concat(on,"-circle"),Ye),viewBox:"0 0 ".concat(zt," ").concat(zt),style:nn,id:wn,role:"presentation"},vn),!bt&&xe.createElement("circle",{className:"".concat(on,"-circle-trail"),r:Dt,cx:ue,cy:ue,stroke:Ze,strokeLinecap:Te,strokeWidth:he||We,style:Ne}),bt?tn():fn())},pe=Vt,ce={Line:Ue,Circle:pe}},738:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return mt}});var Mt=Et(72308),ne=Et(49618),ge=Et(52487),xe=Et(74416),ee=Et(92310),Ht=Et.n(ee),oe=Et(18929),Re=Et(10228),ve=Et(26112),Tt=Et(59301);function Ue(St,wt){var zt=St.disabled,Wt=St.prefixCls,$t=St.character,Jt=St.characterRender,Vt=St.index,pe=St.count,ce=St.value,Ee=St.allowHalf,Ie=St.focused,ke=St.onHover,wn=St.onClick,on=function(Ce){ke(Ce,Vt)},qe=function(Ce){wn(Ce,Vt)},We=function(Ce){Ce.keyCode===Re.Z.ENTER&&wn(Ce,Vt)},he=Vt+1,It=new Set([Wt]);ce===0&&Vt===0&&Ie?It.add("".concat(Wt,"-focused")):Ee&&ce+.5>=he&&ce<he?(It.add("".concat(Wt,"-half")),It.add("".concat(Wt,"-active")),Ie&&It.add("".concat(Wt,"-focused"))):(he<=ce?It.add("".concat(Wt,"-full")):It.add("".concat(Wt,"-zero")),he===ce&&Ie&&It.add("".concat(Wt,"-focused")));var Le=typeof $t=="function"?$t(St):$t,an=Tt.createElement("li",{className:Ht()(Array.from(It)),ref:wt},Tt.createElement("div",{onClick:zt?null:qe,onKeyDown:zt?null:We,onMouseMove:zt?null:on,role:"radio","aria-checked":ce>Vt?"true":"false","aria-posinset":Vt+1,"aria-setsize":pe,tabIndex:zt?-1:0},Tt.createElement("div",{className:"".concat(Wt,"-first")},Le),Tt.createElement("div",{className:"".concat(Wt,"-second")},Le)));return Jt&&(an=Jt(an,St)),an}var ie=Tt.forwardRef(Ue);function Je(){var St=Tt.useRef({});function wt(Wt){return St.current[Wt]}function zt(Wt){return function($t){St.current[Wt]=$t}}return[wt,zt]}function Ot(St){var wt=St.pageXOffset,zt="scrollLeft";if(typeof wt!="number"){var Wt=St.document;wt=Wt.documentElement[zt],typeof wt!="number"&&(wt=Wt.body[zt])}return wt}function et(St){var wt,zt,Wt=St.ownerDocument,$t=Wt.body,Jt=Wt&&Wt.documentElement,Vt=St.getBoundingClientRect();return wt=Vt.left,zt=Vt.top,wt-=Jt.clientLeft||$t.clientLeft||0,zt-=Jt.clientTop||$t.clientTop||0,{left:wt,top:zt}}function nt(St){var wt=et(St),zt=St.ownerDocument,Wt=zt.defaultView||zt.parentWindow;return wt.left+=Ot(Wt),wt.left}var ct=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function lt(St,wt){var zt=St.prefixCls,Wt=zt===void 0?"rc-rate":zt,$t=St.className,Jt=St.defaultValue,Vt=St.value,pe=St.count,ce=pe===void 0?5:pe,Ee=St.allowHalf,Ie=Ee===void 0?!1:Ee,ke=St.allowClear,wn=ke===void 0?!0:ke,on=St.keyboard,qe=on===void 0?!0:on,We=St.character,he=We===void 0?"\u2605":We,It=St.characterRender,Le=St.disabled,an=St.direction,Ze=an===void 0?"ltr":an,Ce=St.tabIndex,nn=Ce===void 0?0:Ce,Ye=St.autoFocus,Sn=St.onHoverChange,Fe=St.onChange,vn=St.onFocus,ue=St.onBlur,Ve=St.onKeyDown,In=St.onMouseLeave,Dt=(0,xe.Z)(St,ct),Ct=Je(),yt=(0,ge.Z)(Ct,2),kt=yt[0],jt=yt[1],bt=Tt.useRef(null),Gt=function(){if(!Le){var ci;(ci=bt.current)===null||ci===void 0||ci.focus()}};Tt.useImperativeHandle(wt,function(){return{focus:Gt,blur:function(){if(!Le){var ci;(ci=bt.current)===null||ci===void 0||ci.blur()}}}});var fe=(0,oe.Z)(Jt||0,{value:Vt}),Se=(0,ge.Z)(fe,2),Be=Se[0],re=Se[1],Te=(0,oe.Z)(null),Ne=(0,ge.Z)(Te,2),$e=Ne[0],fn=Ne[1],tn=function(ci,qi){var Pt=Ze==="rtl",Ii=ci+1;if(Ie){var Jn=kt(ci),er=nt(Jn),Ji=Jn.clientWidth;(Pt&&qi-er>Ji/2||!Pt&&qi-er<Ji/2)&&(Ii-=.5)}return Ii},He=function(ci){re(ci),Fe==null||Fe(ci)},On=Tt.useState(!1),Xn=(0,ge.Z)(On,2),Pn=Xn[0],Gn=Xn[1],Ni=function(){Gn(!0),vn==null||vn()},xi=function(){Gn(!1),ue==null||ue()},ki=Tt.useState(null),tr=(0,ge.Z)(ki,2),Qe=tr[0],sn=tr[1],Qn=function(ci,qi){var Pt=tn(qi,ci.pageX);Pt!==$e&&(sn(Pt),fn(null)),Sn==null||Sn(Pt)},Li=function(ci){Le||(sn(null),fn(null),Sn==null||Sn(void 0)),ci&&(In==null||In(ci))},Ri=function(ci,qi){var Pt=tn(qi,ci.pageX),Ii=!1;wn&&(Ii=Pt===Be),Li(),He(Ii?0:Pt),fn(Ii?Pt:null)},Pi=function(ci){var qi=ci.keyCode,Pt=Ze==="rtl",Ii=Ie?.5:1;qe&&(qi===Re.Z.RIGHT&&Be<ce&&!Pt?(He(Be+Ii),ci.preventDefault()):qi===Re.Z.LEFT&&Be>0&&!Pt||qi===Re.Z.RIGHT&&Be>0&&Pt?(He(Be-Ii),ci.preventDefault()):qi===Re.Z.LEFT&&Be<ce&&Pt&&(He(Be+Ii),ci.preventDefault())),Ve==null||Ve(ci)};Tt.useEffect(function(){Ye&&!Le&&Gt()},[]);var ur=new Array(ce).fill(0).map(function(pr,ci){return Tt.createElement(ie,{ref:jt(ci),index:ci,count:ce,disabled:Le,prefixCls:"".concat(Wt,"-star"),allowHalf:Ie,value:Qe===null?Be:Qe,onClick:Ri,onHover:Qn,key:pr||ci,character:he,characterRender:It,focused:Pn})}),ir=Ht()(Wt,$t,(0,ne.Z)((0,ne.Z)({},"".concat(Wt,"-disabled"),Le),"".concat(Wt,"-rtl"),Ze==="rtl"));return Tt.createElement("ul",(0,Mt.Z)({className:ir,onMouseLeave:Li,tabIndex:Le?-1:nn,onFocus:Le?null:Ni,onBlur:Le?null:xi,onKeyDown:Le?null:Pi,ref:bt},(0,ve.Z)(Dt,{aria:!0,data:!0,attr:!0})),ur)}var gt=Tt.forwardRef(lt),mt=gt},69582:function(An,Un,Et){"use strict";Et.d(Un,{ZP:function(){return oe}});var Mt=Et(52487),ne=Et(59301),ge=Et(47273),xe=0,ee=(0,ge.Z)();function Ht(){var Re;return ee?(Re=xe,xe+=1):Re="TEST_OR_SSR",Re}function oe(Re){var ve=ne.useState(),Tt=(0,Mt.Z)(ve,2),Ue=Tt[0],ie=Tt[1];return ne.useEffect(function(){ie("rc_select_".concat(Ht()))},[]),Re||Ue}},45560:function(An,Un,Et){"use strict";Et.d(Un,{Ac:function(){return On},Xo:function(){return Pn},Wx:function(){return Ni},ZP:function(){return Hn},lk:function(){return mt}});var Mt=Et(72308),ne=Et(80702),ge=Et(49618),xe=Et(77321),ee=Et(52487),Ht=Et(74416),oe=Et(62853),Re=Et(18929),ve=Et(48736),Tt=Et(59301),Ue=Et(92310),ie=Et.n(Ue),Je=Et(34280),Ot=Et(49658),et=Et(8654),nt=function(De){var ai=De.className,qt=De.customizeIcon,un=De.customizeIconProps,Rn=De.children,Ai=De.onMouseDown,ln=De.onClick,yn=typeof qt=="function"?qt(un):qt;return Tt.createElement("span",{className:ai,onMouseDown:function(bi){bi.preventDefault(),Ai==null||Ai(bi)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},yn!==void 0?yn:Tt.createElement("span",{className:ie()(ai.split(/\s+/).map(function(li){return"".concat(li,"-icon")}))},Rn))},ct=nt,lt=function(De,ai,qt,un,Rn){var Ai=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ln=arguments.length>6?arguments[6]:void 0,yn=arguments.length>7?arguments[7]:void 0,li=Tt.useMemo(function(){if((0,oe.Z)(un)==="object")return un.clearIcon;if(Rn)return Rn},[un,Rn]),bi=Tt.useMemo(function(){return!!(!Ai&&un&&(qt.length||ln)&&!(yn==="combobox"&&ln===""))},[un,Ai,qt.length,ln,yn]);return{allowClear:bi,clearIcon:Tt.createElement(ct,{className:"".concat(De,"-clear"),onMouseDown:ai,customizeIcon:li},"\xD7")}},gt=Tt.createContext(null);function mt(){return Tt.useContext(gt)}function St(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,De=Tt.useState(!1),ai=(0,ee.Z)(De,2),qt=ai[0],un=ai[1],Rn=Tt.useRef(null),Ai=function(){window.clearTimeout(Rn.current)};Tt.useEffect(function(){return Ai},[]);var ln=function(li,bi){Ai(),Rn.current=window.setTimeout(function(){un(li),bi&&bi()},Oe)};return[qt,ln,Ai]}function wt(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,De=Tt.useRef(null),ai=Tt.useRef(null);Tt.useEffect(function(){return function(){window.clearTimeout(ai.current)}},[]);function qt(un){(un||De.current===null)&&(De.current=un),window.clearTimeout(ai.current),ai.current=window.setTimeout(function(){De.current=null},Oe)}return[function(){return De.current},qt]}function zt(Oe,De,ai,qt){var un=Tt.useRef(null);un.current={open:De,triggerOpen:ai,customizedTrigger:qt},Tt.useEffect(function(){function Rn(Ai){var ln;if(!((ln=un.current)!==null&&ln!==void 0&&ln.customizedTrigger)){var yn=Ai.target;yn.shadowRoot&&Ai.composed&&(yn=Ai.composedPath()[0]||yn),un.current.open&&Oe().filter(function(li){return li}).every(function(li){return!li.contains(yn)&&li!==yn})&&un.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Rn),function(){return window.removeEventListener("mousedown",Rn)}},[])}var Wt=Et(10228);function $t(Oe){return Oe&&![Wt.Z.ESC,Wt.Z.SHIFT,Wt.Z.BACKSPACE,Wt.Z.TAB,Wt.Z.WIN_KEY,Wt.Z.ALT,Wt.Z.META,Wt.Z.WIN_KEY_RIGHT,Wt.Z.CTRL,Wt.Z.SEMICOLON,Wt.Z.EQUALS,Wt.Z.CAPS_LOCK,Wt.Z.CONTEXT_MENU,Wt.Z.F1,Wt.Z.F2,Wt.Z.F3,Wt.Z.F4,Wt.Z.F5,Wt.Z.F6,Wt.Z.F7,Wt.Z.F8,Wt.Z.F9,Wt.Z.F10,Wt.Z.F11,Wt.Z.F12].includes(Oe)}var Jt=Et(26112),Vt=Et(11780),pe=function(De,ai){var qt,un=De.prefixCls,Rn=De.id,Ai=De.inputElement,ln=De.disabled,yn=De.tabIndex,li=De.autoFocus,bi=De.autoComplete,Ui=De.editable,Di=De.activeDescendantId,$n=De.value,wi=De.maxLength,dr=De.onKeyDown,fr=De.onMouseDown,xr=De.onChange,cn=De.onPaste,_r=De.onCompositionStart,kr=De.onCompositionEnd,to=De.onBlur,rn=De.open,gi=De.attrs,Ki=Ai||Tt.createElement("input",null),nr=Ki,Qi=nr.ref,rr=nr.props,Zr=rr.onKeyDown,Br=rr.onChange,Hr=rr.onMouseDown,zr=rr.onCompositionStart,pn=rr.onCompositionEnd,Yr=rr.onBlur,Ln=rr.style;return(0,ve.Kp)(!("maxLength"in Ki.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ki=Tt.cloneElement(Ki,(0,xe.Z)((0,xe.Z)((0,xe.Z)({type:"search"},rr),{},{id:Rn,ref:(0,et.sQ)(ai,Qi),disabled:ln,tabIndex:yn,autoComplete:bi||"off",autoFocus:li,className:ie()("".concat(un,"-selection-search-input"),(qt=Ki)===null||qt===void 0||(qt=qt.props)===null||qt===void 0?void 0:qt.className),role:"combobox","aria-expanded":rn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Rn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Rn,"_list"),"aria-activedescendant":rn?Di:void 0},gi),{},{value:Ui?$n:"",maxLength:wi,readOnly:!Ui,unselectable:Ui?null:"on",style:(0,xe.Z)((0,xe.Z)({},Ln),{},{opacity:Ui?null:0}),onKeyDown:function(or){dr(or),Zr&&Zr(or)},onMouseDown:function(or){fr(or),Hr&&Hr(or)},onChange:function(or){xr(or),Br&&Br(or)},onCompositionStart:function(or){_r(or),zr&&zr(or)},onCompositionEnd:function(or){kr(or),pn&&pn(or)},onPaste:cn,onBlur:function(or){to(or),Yr&&Yr(or)}})),Ki},ce=Tt.forwardRef(pe),Ee=ce;function Ie(Oe){return Array.isArray(Oe)?Oe:Oe!==void 0?[Oe]:[]}var ke=typeof window!="undefined"&&window.document&&window.document.documentElement,wn=ke;function on(Oe){return Oe!=null}function qe(Oe){return!Oe&&Oe!==0}function We(Oe){return["string","number"].includes((0,oe.Z)(Oe))}function he(Oe){var De=void 0;return Oe&&(We(Oe.title)?De=Oe.title.toString():We(Oe.label)&&(De=Oe.label.toString())),De}function It(Oe,De){wn?Tt.useLayoutEffect(Oe,De):Tt.useEffect(Oe,De)}function Le(Oe){var De;return(De=Oe.key)!==null&&De!==void 0?De:Oe.value}var an=function(De){De.preventDefault(),De.stopPropagation()},Ze=function(De){var ai=De.id,qt=De.prefixCls,un=De.values,Rn=De.open,Ai=De.searchValue,ln=De.autoClearSearchValue,yn=De.inputRef,li=De.placeholder,bi=De.disabled,Ui=De.mode,Di=De.showSearch,$n=De.autoFocus,wi=De.autoComplete,dr=De.activeDescendantId,fr=De.tabIndex,xr=De.removeIcon,cn=De.maxTagCount,_r=De.maxTagTextLength,kr=De.maxTagPlaceholder,to=kr===void 0?function(Ei){return"+ ".concat(Ei.length," ...")}:kr,rn=De.tagRender,gi=De.onToggleOpen,Ki=De.onRemove,nr=De.onInputChange,Qi=De.onInputPaste,rr=De.onInputKeyDown,Zr=De.onInputMouseDown,Br=De.onInputCompositionStart,Hr=De.onInputCompositionEnd,zr=De.onInputBlur,pn=Tt.useRef(null),Yr=(0,Tt.useState)(0),Ln=(0,ee.Z)(Yr,2),_i=Ln[0],or=Ln[1],Cr=(0,Tt.useState)(!1),Po=(0,ee.Z)(Cr,2),co=Po[0],Kr=Po[1],eo="".concat(qt,"-selection"),Ke=Rn||Ui==="multiple"&&ln===!1||Ui==="tags"?Ai:"",Mn=Ui==="tags"||Ui==="multiple"&&ln===!1||Di&&(Rn||co);It(function(){or(pn.current.scrollWidth)},[Ke]);var Ge=function(Nn,si,hi,pi,mi){return Tt.createElement("span",{title:he(Nn),className:ie()("".concat(eo,"-item"),(0,ge.Z)({},"".concat(eo,"-item-disabled"),hi))},Tt.createElement("span",{className:"".concat(eo,"-item-content")},si),pi&&Tt.createElement(ct,{className:"".concat(eo,"-item-remove"),onMouseDown:an,onClick:mi,customizeIcon:xr},"\xD7"))},Bt=function(Nn,si,hi,pi,mi,ar){var Nt=function(Ut){an(Ut),gi(!Rn)};return Tt.createElement("span",{onMouseDown:Nt},rn({label:si,value:Nn,disabled:hi,closable:pi,onClose:mi,isMaxTag:!!ar}))},ti=function(Nn){var si=Nn.disabled,hi=Nn.label,pi=Nn.value,mi=!bi&&!si,ar=hi;if(typeof _r=="number"&&(typeof hi=="string"||typeof hi=="number")){var Nt=String(ar);Nt.length>_r&&(ar="".concat(Nt.slice(0,_r),"..."))}var ae=function(se){se&&se.stopPropagation(),Ki(Nn)};return typeof rn=="function"?Bt(pi,ar,si,mi,ae):Ge(Nn,ar,si,mi,ae)},Kn=function(Nn){if(!un.length)return null;var si=typeof to=="function"?to(Nn):to;return typeof rn=="function"?Bt(void 0,si,!1,!1,void 0,!0):Ge({title:si},si,!1)},ui=Tt.createElement("div",{className:"".concat(eo,"-search"),style:{width:_i},onFocus:function(){Kr(!0)},onBlur:function(){Kr(!1)}},Tt.createElement(Ee,{ref:yn,open:Rn,prefixCls:qt,id:ai,inputElement:null,disabled:bi,autoFocus:$n,autoComplete:wi,editable:Mn,activeDescendantId:dr,value:Ke,onKeyDown:rr,onMouseDown:Zr,onChange:nr,onPaste:Qi,onCompositionStart:Br,onCompositionEnd:Hr,onBlur:zr,tabIndex:fr,attrs:(0,Jt.Z)(De,!0)}),Tt.createElement("span",{ref:pn,className:"".concat(eo,"-search-mirror"),"aria-hidden":!0},Ke,"\xA0")),Mi=Tt.createElement(Vt.Z,{prefixCls:"".concat(eo,"-overflow"),data:un,renderItem:ti,renderRest:Kn,suffix:ui,itemKey:Le,maxCount:cn});return Tt.createElement("span",{className:"".concat(eo,"-wrap")},Mi,!un.length&&!Ke&&Tt.createElement("span",{className:"".concat(eo,"-placeholder")},li))},Ce=Ze,nn=function(De){var ai=De.inputElement,qt=De.prefixCls,un=De.id,Rn=De.inputRef,Ai=De.disabled,ln=De.autoFocus,yn=De.autoComplete,li=De.activeDescendantId,bi=De.mode,Ui=De.open,Di=De.values,$n=De.placeholder,wi=De.tabIndex,dr=De.showSearch,fr=De.searchValue,xr=De.activeValue,cn=De.maxLength,_r=De.onInputKeyDown,kr=De.onInputMouseDown,to=De.onInputChange,rn=De.onInputPaste,gi=De.onInputCompositionStart,Ki=De.onInputCompositionEnd,nr=De.onInputBlur,Qi=De.title,rr=Tt.useState(!1),Zr=(0,ee.Z)(rr,2),Br=Zr[0],Hr=Zr[1],zr=bi==="combobox",pn=zr||dr,Yr=Di[0],Ln=fr||"";zr&&xr&&!Br&&(Ln=xr),Tt.useEffect(function(){zr&&Hr(!1)},[zr,xr]);var _i=bi!=="combobox"&&!Ui&&!dr?!1:!!Ln,or=Qi===void 0?he(Yr):Qi,Cr=Tt.useMemo(function(){return Yr?null:Tt.createElement("span",{className:"".concat(qt,"-selection-placeholder"),style:_i?{visibility:"hidden"}:void 0},$n)},[Yr,_i,$n,qt]);return Tt.createElement("span",{className:"".concat(qt,"-selection-wrap")},Tt.createElement("span",{className:"".concat(qt,"-selection-search")},Tt.createElement(Ee,{ref:Rn,prefixCls:qt,id:un,open:Ui,inputElement:ai,disabled:Ai,autoFocus:ln,autoComplete:yn,editable:pn,activeDescendantId:li,value:Ln,onKeyDown:_r,onMouseDown:kr,onChange:function(co){Hr(!0),to(co)},onPaste:rn,onCompositionStart:gi,onCompositionEnd:Ki,onBlur:nr,tabIndex:wi,attrs:(0,Jt.Z)(De,!0),maxLength:zr?cn:void 0})),!zr&&Yr?Tt.createElement("span",{className:"".concat(qt,"-selection-item"),title:or,style:_i?{visibility:"hidden"}:void 0},Yr.label):null,Cr)},Ye=nn,Sn=function(De,ai){var qt=(0,Tt.useRef)(null),un=(0,Tt.useRef)(!1),Rn=De.prefixCls,Ai=De.open,ln=De.mode,yn=De.showSearch,li=De.tokenWithEnter,bi=De.disabled,Ui=De.prefix,Di=De.autoClearSearchValue,$n=De.onSearch,wi=De.onSearchSubmit,dr=De.onToggleOpen,fr=De.onInputKeyDown,xr=De.onInputBlur,cn=De.domRef;Tt.useImperativeHandle(ai,function(){return{focus:function(or){qt.current.focus(or)},blur:function(){qt.current.blur()}}});var _r=wt(0),kr=(0,ee.Z)(_r,2),to=kr[0],rn=kr[1],gi=function(or){var Cr=or.which,Po=qt.current instanceof HTMLTextAreaElement;!Po&&Ai&&(Cr===Wt.Z.UP||Cr===Wt.Z.DOWN)&&or.preventDefault(),fr&&fr(or),Cr===Wt.Z.ENTER&&ln==="tags"&&!un.current&&!Ai&&(wi==null||wi(or.target.value)),!(Po&&!Ai&&~[Wt.Z.UP,Wt.Z.DOWN,Wt.Z.LEFT,Wt.Z.RIGHT].indexOf(Cr))&&$t(Cr)&&dr(!0)},Ki=function(){rn(!0)},nr=(0,Tt.useRef)(null),Qi=function(or){$n(or,!0,un.current)!==!1&&dr(!0)},rr=function(){un.current=!0},Zr=function(or){un.current=!1,ln!=="combobox"&&Qi(or.target.value)},Br=function(or){var Cr=or.target.value;if(li&&nr.current&&/[\r\n]/.test(nr.current)){var Po=nr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Cr=Cr.replace(Po,nr.current)}nr.current=null,Qi(Cr)},Hr=function(or){var Cr=or.clipboardData,Po=Cr==null?void 0:Cr.getData("text");nr.current=Po||""},zr=function(or){var Cr=or.target;if(Cr!==qt.current){var Po=document.body.style.msTouchAction!==void 0;Po?setTimeout(function(){qt.current.focus()}):qt.current.focus()}},pn=function(or){var Cr=to();or.target!==qt.current&&!Cr&&!(ln==="combobox"&&bi)&&or.preventDefault(),(ln!=="combobox"&&(!yn||!Cr)||!Ai)&&(Ai&&Di!==!1&&$n("",!0,!1),dr())},Yr={inputRef:qt,onInputKeyDown:gi,onInputMouseDown:Ki,onInputChange:Br,onInputPaste:Hr,onInputCompositionStart:rr,onInputCompositionEnd:Zr,onInputBlur:xr},Ln=ln==="multiple"||ln==="tags"?Tt.createElement(Ce,(0,Mt.Z)({},De,Yr)):Tt.createElement(Ye,(0,Mt.Z)({},De,Yr));return Tt.createElement("div",{ref:cn,className:"".concat(Rn,"-selector"),onClick:zr,onMouseDown:pn},Ui&&Tt.createElement("div",{className:"".concat(Rn,"-prefix")},Ui),Ln)},Fe=Tt.forwardRef(Sn),vn=Fe,ue=Et(65352),Ve=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],In=function(De){var ai=De===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ai,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ai,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ai,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ai,adjustY:1},htmlRegion:"scroll"}}},Dt=function(De,ai){var qt=De.prefixCls,un=De.disabled,Rn=De.visible,Ai=De.children,ln=De.popupElement,yn=De.animation,li=De.transitionName,bi=De.dropdownStyle,Ui=De.dropdownClassName,Di=De.direction,$n=Di===void 0?"ltr":Di,wi=De.placement,dr=De.builtinPlacements,fr=De.dropdownMatchSelectWidth,xr=De.dropdownRender,cn=De.dropdownAlign,_r=De.getPopupContainer,kr=De.empty,to=De.getTriggerDOMNode,rn=De.onPopupVisibleChange,gi=De.onPopupMouseEnter,Ki=(0,Ht.Z)(De,Ve),nr="".concat(qt,"-dropdown"),Qi=ln;xr&&(Qi=xr(ln));var rr=Tt.useMemo(function(){return dr||In(fr)},[dr,fr]),Zr=yn?"".concat(nr,"-").concat(yn):li,Br=typeof fr=="number",Hr=Tt.useMemo(function(){return Br?null:fr===!1?"minWidth":"width"},[fr,Br]),zr=bi;Br&&(zr=(0,xe.Z)((0,xe.Z)({},zr),{},{width:fr}));var pn=Tt.useRef(null);return Tt.useImperativeHandle(ai,function(){return{getPopupElement:function(){var Ln;return(Ln=pn.current)===null||Ln===void 0?void 0:Ln.popupElement}}}),Tt.createElement(ue.Z,(0,Mt.Z)({},Ki,{showAction:rn?["click"]:[],hideAction:rn?["click"]:[],popupPlacement:wi||($n==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:rr,prefixCls:nr,popupTransitionName:Zr,popup:Tt.createElement("div",{onMouseEnter:gi},Qi),ref:pn,stretch:Hr,popupAlign:cn,popupVisible:Rn,getPopupContainer:_r,popupClassName:ie()(Ui,(0,ge.Z)({},"".concat(nr,"-empty"),kr)),popupStyle:zr,getTriggerDOMNode:to,onPopupVisibleChange:rn}),Ai)},Ct=Tt.forwardRef(Dt),yt=Ct,kt=Et(68413);function jt(Oe,De){var ai=Oe.key,qt;return"value"in Oe&&(qt=Oe.value),ai!=null?ai:qt!==void 0?qt:"rc-index-key-".concat(De)}function bt(Oe){return typeof Oe!="undefined"&&!Number.isNaN(Oe)}function Gt(Oe,De){var ai=Oe||{},qt=ai.label,un=ai.value,Rn=ai.options,Ai=ai.groupLabel,ln=qt||(De?"children":"label");return{label:ln,value:un||"value",options:Rn||"options",groupLabel:Ai||ln}}function fe(Oe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ai=De.fieldNames,qt=De.childrenAsData,un=[],Rn=Gt(ai,!1),Ai=Rn.label,ln=Rn.value,yn=Rn.options,li=Rn.groupLabel;function bi(Ui,Di){Array.isArray(Ui)&&Ui.forEach(function($n){if(Di||!(yn in $n)){var wi=$n[ln];un.push({key:jt($n,un.length),groupOption:Di,data:$n,label:$n[Ai],value:wi})}else{var dr=$n[li];dr===void 0&&qt&&(dr=$n.label),un.push({key:jt($n,un.length),group:!0,data:$n,label:dr}),bi($n[yn],!0)}})}return bi(Oe,!1),un}function Se(Oe){var De=(0,xe.Z)({},Oe);return"props"in De||Object.defineProperty(De,"props",{get:function(){return(0,ve.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),De}}),De}var Be=function(De,ai,qt){if(!ai||!ai.length)return null;var un=!1,Rn=function ln(yn,li){var bi=(0,kt.Z)(li),Ui=bi[0],Di=bi.slice(1);if(!Ui)return[yn];var $n=yn.split(Ui);return un=un||$n.length>1,$n.reduce(function(wi,dr){return[].concat((0,ne.Z)(wi),(0,ne.Z)(ln(dr,Di)))},[]).filter(Boolean)},Ai=Rn(De,ai);return un?typeof qt!="undefined"?Ai.slice(0,qt):Ai:null},re=Tt.createContext(null),Te=re;function Ne(Oe){var De=Oe.visible,ai=Oe.values;if(!De)return null;var qt=50;return Tt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ai.slice(0,qt).map(function(un){var Rn=un.label,Ai=un.value;return["number","string"].includes((0,oe.Z)(Rn))?Rn:Ai}).join(", ")),ai.length>qt?", ...":null)}var $e=["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"],fn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],tn=function(De){return De==="tags"||De==="multiple"},He=Tt.forwardRef(function(Oe,De){var ai,qt=Oe.id,un=Oe.prefixCls,Rn=Oe.className,Ai=Oe.showSearch,ln=Oe.tagRender,yn=Oe.direction,li=Oe.omitDomProps,bi=Oe.displayValues,Ui=Oe.onDisplayValuesChange,Di=Oe.emptyOptions,$n=Oe.notFoundContent,wi=$n===void 0?"Not Found":$n,dr=Oe.onClear,fr=Oe.mode,xr=Oe.disabled,cn=Oe.loading,_r=Oe.getInputElement,kr=Oe.getRawInputElement,to=Oe.open,rn=Oe.defaultOpen,gi=Oe.onDropdownVisibleChange,Ki=Oe.activeValue,nr=Oe.onActiveValueChange,Qi=Oe.activeDescendantId,rr=Oe.searchValue,Zr=Oe.autoClearSearchValue,Br=Oe.onSearch,Hr=Oe.onSearchSplit,zr=Oe.tokenSeparators,pn=Oe.allowClear,Yr=Oe.prefix,Ln=Oe.suffixIcon,_i=Oe.clearIcon,or=Oe.OptionList,Cr=Oe.animation,Po=Oe.transitionName,co=Oe.dropdownStyle,Kr=Oe.dropdownClassName,eo=Oe.dropdownMatchSelectWidth,Ke=Oe.dropdownRender,Mn=Oe.dropdownAlign,Ge=Oe.placement,Bt=Oe.builtinPlacements,ti=Oe.getPopupContainer,Kn=Oe.showAction,ui=Kn===void 0?[]:Kn,Mi=Oe.onFocus,Ei=Oe.onBlur,Nn=Oe.onKeyUp,si=Oe.onKeyDown,hi=Oe.onMouseDown,pi=(0,Ht.Z)(Oe,$e),mi=tn(fr),ar=(Ai!==void 0?Ai:mi)||fr==="combobox",Nt=(0,xe.Z)({},pi);fn.forEach(function(Ir){delete Nt[Ir]}),li==null||li.forEach(function(Ir){delete Nt[Ir]});var ae=Tt.useState(!1),Ut=(0,ee.Z)(ae,2),se=Ut[0],we=Ut[1];Tt.useEffect(function(){we((0,Ot.Z)())},[]);var Xe=Tt.useRef(null),en=Tt.useRef(null),hn=Tt.useRef(null),Bn=Tt.useRef(null),Dn=Tt.useRef(null),mn=Tt.useRef(!1),ii=St(),Bi=(0,ee.Z)(ii,3),de=Bi[0],Wn=Bi[1],Yn=Bi[2];Tt.useImperativeHandle(De,function(){var Ir,ao;return{focus:(Ir=Bn.current)===null||Ir===void 0?void 0:Ir.focus,blur:(ao=Bn.current)===null||ao===void 0?void 0:ao.blur,scrollTo:function(Nr){var uo;return(uo=Dn.current)===null||uo===void 0?void 0:uo.scrollTo(Nr)},nativeElement:Xe.current||en.current}});var zn=Tt.useMemo(function(){var Ir;if(fr!=="combobox")return rr;var ao=(Ir=bi[0])===null||Ir===void 0?void 0:Ir.value;return typeof ao=="string"||typeof ao=="number"?String(ao):""},[rr,fr,bi]),_n=fr==="combobox"&&typeof _r=="function"&&_r()||null,ei=typeof kr=="function"&&kr(),Oi=(0,et.x1)(en,ei==null||(ai=ei.props)===null||ai===void 0?void 0:ai.ref),yi=Tt.useState(!1),oi=(0,ee.Z)(yi,2),Vn=oi[0],zi=oi[1];(0,Je.Z)(function(){zi(!0)},[]);var lr=(0,Re.Z)(!1,{defaultValue:rn,value:to}),mr=(0,ee.Z)(lr,2),Er=mr[0],Si=mr[1],cr=Vn?Er:!1,gr=!wi&&Di;(xr||gr&&cr&&fr==="combobox")&&(cr=!1);var Pr=gr?!1:cr,Vi=Tt.useCallback(function(Ir){var ao=Ir!==void 0?Ir:!cr;xr||(Si(ao),cr!==ao&&(gi==null||gi(ao)))},[xr,cr,Si,gi]),Xi=Tt.useMemo(function(){return(zr||[]).some(function(Ir){return[`
|
|
`,`\r
|
|
`].includes(Ir)})},[zr]),dn=Tt.useContext(Te)||{},Gi=dn.maxCount,hr=dn.rawValues,Fr=function(ao,vr,Nr){if(!(mi&&bt(Gi)&&(hr==null?void 0:hr.size)>=Gi)){var uo=!0,wr=ao;nr==null||nr(null);var vi=Be(ao,zr,bt(Gi)?Gi-hr.size:void 0),ia=Nr?null:vi;return fr!=="combobox"&&ia&&(wr="",Hr==null||Hr(ia),Vi(!1),uo=!1),Br&&zn!==wr&&Br(wr,{source:vr?"typing":"effect"}),uo}},Or=function(ao){!ao||!ao.trim()||Br(ao,{source:"submit"})};Tt.useEffect(function(){!cr&&!mi&&fr!=="combobox"&&Fr("",!1,!1)},[cr]),Tt.useEffect(function(){Er&&xr&&Si(!1),xr&&!mn.current&&Wn(!1)},[xr]);var yr=wt(),ji=(0,ee.Z)(yr,2),br=ji[0],Ur=ji[1],Jr=Tt.useRef(!1),Tr=function(ao){var vr=br(),Nr=ao.key,uo=Nr==="Enter";if(uo&&(fr!=="combobox"&&ao.preventDefault(),cr||Vi(!0)),Ur(!!zn),Nr==="Backspace"&&!vr&&mi&&!zn&&bi.length){for(var wr=(0,ne.Z)(bi),vi=null,ia=wr.length-1;ia>=0;ia-=1){var me=wr[ia];if(!me.disabled){wr.splice(ia,1),vi=me;break}}vi&&Ui(wr,{type:"remove",values:[vi]})}for(var kn=arguments.length,Ja=new Array(kn>1?kn-1:0),Qa=1;Qa<kn;Qa++)Ja[Qa-1]=arguments[Qa];if(cr&&(!uo||!Jr.current)){var pa;uo&&(Jr.current=!0),(pa=Dn.current)===null||pa===void 0||pa.onKeyDown.apply(pa,[ao].concat(Ja))}si==null||si.apply(void 0,[ao].concat(Ja))},so=function(ao){for(var vr=arguments.length,Nr=new Array(vr>1?vr-1:0),uo=1;uo<vr;uo++)Nr[uo-1]=arguments[uo];if(cr){var wr;(wr=Dn.current)===null||wr===void 0||wr.onKeyUp.apply(wr,[ao].concat(Nr))}ao.key==="Enter"&&(Jr.current=!1),Nn==null||Nn.apply(void 0,[ao].concat(Nr))},no=function(ao){var vr=bi.filter(function(Nr){return Nr!==ao});Ui(vr,{type:"remove",values:[ao]})},Wr=function(){Jr.current=!1},fo=Tt.useRef(!1),Mo=function(){Wn(!0),xr||(Mi&&!fo.current&&Mi.apply(void 0,arguments),ui.includes("focus")&&Vi(!0)),fo.current=!0},_o=function(){mn.current=!0,Wn(!1,function(){fo.current=!1,mn.current=!1,Vi(!1)}),!xr&&(zn&&(fr==="tags"?Br(zn,{source:"submit"}):fr==="multiple"&&Br("",{source:"blur"})),Ei&&Ei.apply(void 0,arguments))},io=[];Tt.useEffect(function(){return function(){io.forEach(function(Ir){return clearTimeout(Ir)}),io.splice(0,io.length)}},[]);var ta=function(ao){var vr,Nr=ao.target,uo=(vr=hn.current)===null||vr===void 0?void 0:vr.getPopupElement();if(uo&&uo.contains(Nr)){var wr=setTimeout(function(){var kn=io.indexOf(wr);if(kn!==-1&&io.splice(kn,1),Yn(),!se&&!uo.contains(document.activeElement)){var Ja;(Ja=Bn.current)===null||Ja===void 0||Ja.focus()}});io.push(wr)}for(var vi=arguments.length,ia=new Array(vi>1?vi-1:0),me=1;me<vi;me++)ia[me-1]=arguments[me];hi==null||hi.apply(void 0,[ao].concat(ia))},Ao=Tt.useState({}),ca=(0,ee.Z)(Ao,2),No=ca[1];function Xo(){No({})}var ea;ei&&(ea=function(ao){Vi(ao)}),zt(function(){var Ir;return[Xe.current,(Ir=hn.current)===null||Ir===void 0?void 0:Ir.getPopupElement()]},Pr,Vi,!!ei);var Qo=Tt.useMemo(function(){return(0,xe.Z)((0,xe.Z)({},Oe),{},{notFoundContent:wi,open:cr,triggerOpen:Pr,id:qt,showSearch:ar,multiple:mi,toggleOpen:Vi})},[Oe,wi,Pr,cr,qt,ar,mi,Vi]),Ro=!!Ln||cn,ko;Ro&&(ko=Tt.createElement(ct,{className:ie()("".concat(un,"-arrow"),(0,ge.Z)({},"".concat(un,"-arrow-loading"),cn)),customizeIcon:Ln,customizeIconProps:{loading:cn,searchValue:zn,open:cr,focused:de,showSearch:ar}}));var oa=function(){var ao;dr==null||dr(),(ao=Bn.current)===null||ao===void 0||ao.focus(),Ui([],{type:"clear",values:bi}),Fr("",!1,!1)},Ca=lt(un,oa,bi,pn,_i,xr,zn,fr),Zo=Ca.allowClear,Ia=Ca.clearIcon,Fo=Tt.createElement(or,{ref:Dn}),wo=ie()(un,Rn,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(un,"-focused"),de),"".concat(un,"-multiple"),mi),"".concat(un,"-single"),!mi),"".concat(un,"-allow-clear"),pn),"".concat(un,"-show-arrow"),Ro),"".concat(un,"-disabled"),xr),"".concat(un,"-loading"),cn),"".concat(un,"-open"),cr),"".concat(un,"-customize-input"),_n),"".concat(un,"-show-search"),ar)),po=Tt.createElement(yt,{ref:hn,disabled:xr,prefixCls:un,visible:Pr,popupElement:Fo,animation:Cr,transitionName:Po,dropdownStyle:co,dropdownClassName:Kr,direction:yn,dropdownMatchSelectWidth:eo,dropdownRender:Ke,dropdownAlign:Mn,placement:Ge,builtinPlacements:Bt,getPopupContainer:ti,empty:Di,getTriggerDOMNode:function(ao){return en.current||ao},onPopupVisibleChange:ea,onPopupMouseEnter:Xo},ei?Tt.cloneElement(ei,{ref:Oi}):Tt.createElement(vn,(0,Mt.Z)({},Oe,{domRef:en,prefixCls:un,inputElement:_n,ref:Bn,id:qt,prefix:Yr,showSearch:ar,autoClearSearchValue:Zr,mode:fr,activeDescendantId:Qi,tagRender:ln,values:bi,open:cr,onToggleOpen:Vi,activeValue:Ki,searchValue:zn,onSearch:Fr,onSearchSubmit:Or,onRemove:no,tokenWithEnter:Xi,onInputBlur:Wr}))),Yo;return ei?Yo=po:Yo=Tt.createElement("div",(0,Mt.Z)({className:wo},Nt,{ref:Xe,onMouseDown:ta,onKeyDown:Tr,onKeyUp:so,onFocus:Mo,onBlur:_o}),Tt.createElement(Ne,{visible:de&&!cr,values:bi}),po,ko,Zo&&Ia),Tt.createElement(gt.Provider,{value:Qo},Yo)}),On=He,Xn=function(){return null};Xn.isSelectOptGroup=!0;var Pn=Xn,Gn=function(){return null};Gn.isSelectOption=!0;var Ni=Gn,xi=Et(80547),ki=Et(2738),tr=Et(45680);function Qe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var sn=["disabled","title","children","style","className"];function Qn(Oe){return typeof Oe=="string"||typeof Oe=="number"}var Li=function(De,ai){var qt=mt(),un=qt.prefixCls,Rn=qt.id,Ai=qt.open,ln=qt.multiple,yn=qt.mode,li=qt.searchValue,bi=qt.toggleOpen,Ui=qt.notFoundContent,Di=qt.onPopupScroll,$n=Tt.useContext(Te),wi=$n.maxCount,dr=$n.flattenOptions,fr=$n.onActiveValue,xr=$n.defaultActiveFirstOption,cn=$n.onSelect,_r=$n.menuItemSelectedIcon,kr=$n.rawValues,to=$n.fieldNames,rn=$n.virtual,gi=$n.direction,Ki=$n.listHeight,nr=$n.listItemHeight,Qi=$n.optionRender,rr="".concat(un,"-item"),Zr=(0,xi.Z)(function(){return dr},[Ai,dr],function(Kn,ui){return ui[0]&&Kn[1]!==ui[1]}),Br=Tt.useRef(null),Hr=Tt.useMemo(function(){return ln&&bt(wi)&&(kr==null?void 0:kr.size)>=wi},[ln,wi,kr==null?void 0:kr.size]),zr=function(ui){ui.preventDefault()},pn=function(ui){var Mi;(Mi=Br.current)===null||Mi===void 0||Mi.scrollTo(typeof ui=="number"?{index:ui}:ui)},Yr=Tt.useCallback(function(Kn){return yn==="combobox"?!1:kr.has(Kn)},[yn,(0,ne.Z)(kr).toString(),kr.size]),Ln=function(ui){for(var Mi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ei=Zr.length,Nn=0;Nn<Ei;Nn+=1){var si=(ui+Nn*Mi+Ei)%Ei,hi=Zr[si]||{},pi=hi.group,mi=hi.data;if(!pi&&!(mi!=null&&mi.disabled)&&(Yr(mi.value)||!Hr))return si}return-1},_i=Tt.useState(function(){return Ln(0)}),or=(0,ee.Z)(_i,2),Cr=or[0],Po=or[1],co=function(ui){var Mi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Po(ui);var Ei={source:Mi?"keyboard":"mouse"},Nn=Zr[ui];if(!Nn){fr(null,-1,Ei);return}fr(Nn.value,ui,Ei)};(0,Tt.useEffect)(function(){co(xr!==!1?Ln(0):-1)},[Zr.length,li]);var Kr=Tt.useCallback(function(Kn){return yn==="combobox"?String(Kn).toLowerCase()===li.toLowerCase():kr.has(Kn)},[yn,li,(0,ne.Z)(kr).toString(),kr.size]);(0,Tt.useEffect)(function(){var Kn=setTimeout(function(){if(!ln&&Ai&&kr.size===1){var Mi=Array.from(kr)[0],Ei=Zr.findIndex(function(Nn){var si=Nn.data;return si.value===Mi});Ei!==-1&&(co(Ei),pn(Ei))}});if(Ai){var ui;(ui=Br.current)===null||ui===void 0||ui.scrollTo(void 0)}return function(){return clearTimeout(Kn)}},[Ai,li]);var eo=function(ui){ui!==void 0&&cn(ui,{selected:!kr.has(ui)}),ln||bi(!1)};if(Tt.useImperativeHandle(ai,function(){return{onKeyDown:function(ui){var Mi=ui.which,Ei=ui.ctrlKey;switch(Mi){case Wt.Z.N:case Wt.Z.P:case Wt.Z.UP:case Wt.Z.DOWN:{var Nn=0;if(Mi===Wt.Z.UP?Nn=-1:Mi===Wt.Z.DOWN?Nn=1:Qe()&&Ei&&(Mi===Wt.Z.N?Nn=1:Mi===Wt.Z.P&&(Nn=-1)),Nn!==0){var si=Ln(Cr+Nn,Nn);pn(si),co(si,!0)}break}case Wt.Z.TAB:case Wt.Z.ENTER:{var hi,pi=Zr[Cr];pi&&!(pi!=null&&(hi=pi.data)!==null&&hi!==void 0&&hi.disabled)&&!Hr?eo(pi.value):eo(void 0),Ai&&ui.preventDefault();break}case Wt.Z.ESC:bi(!1),Ai&&ui.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ui){pn(ui)}}}),Zr.length===0)return Tt.createElement("div",{role:"listbox",id:"".concat(Rn,"_list"),className:"".concat(rr,"-empty"),onMouseDown:zr},Ui);var Ke=Object.keys(to).map(function(Kn){return to[Kn]}),Mn=function(ui){return ui.label};function Ge(Kn,ui){var Mi=Kn.group;return{role:Mi?"presentation":"option",id:"".concat(Rn,"_list_").concat(ui)}}var Bt=function(ui){var Mi=Zr[ui];if(!Mi)return null;var Ei=Mi.data||{},Nn=Ei.value,si=Mi.group,hi=(0,Jt.Z)(Ei,!0),pi=Mn(Mi);return Mi?Tt.createElement("div",(0,Mt.Z)({"aria-label":typeof pi=="string"&&!si?pi:null},hi,{key:ui},Ge(Mi,ui),{"aria-selected":Kr(Nn)}),Nn):null},ti={role:"listbox",id:"".concat(Rn,"_list")};return Tt.createElement(Tt.Fragment,null,rn&&Tt.createElement("div",(0,Mt.Z)({},ti,{style:{height:0,width:0,overflow:"hidden"}}),Bt(Cr-1),Bt(Cr),Bt(Cr+1)),Tt.createElement(tr.Z,{itemKey:"key",ref:Br,data:Zr,height:Ki,itemHeight:nr,fullHeight:!1,onMouseDown:zr,onScroll:Di,virtual:rn,direction:gi,innerProps:rn?null:ti},function(Kn,ui){var Mi=Kn.group,Ei=Kn.groupOption,Nn=Kn.data,si=Kn.label,hi=Kn.value,pi=Nn.key;if(Mi){var mi,ar=(mi=Nn.title)!==null&&mi!==void 0?mi:Qn(si)?si.toString():void 0;return Tt.createElement("div",{className:ie()(rr,"".concat(rr,"-group"),Nn.className),title:ar},si!==void 0?si:pi)}var Nt=Nn.disabled,ae=Nn.title,Ut=Nn.children,se=Nn.style,we=Nn.className,Xe=(0,Ht.Z)(Nn,sn),en=(0,ki.Z)(Xe,Ke),hn=Yr(hi),Bn=Nt||!hn&&Hr,Dn="".concat(rr,"-option"),mn=ie()(rr,Dn,we,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Dn,"-grouped"),Ei),"".concat(Dn,"-active"),Cr===ui&&!Bn),"".concat(Dn,"-disabled"),Bn),"".concat(Dn,"-selected"),hn)),ii=Mn(Kn),Bi=!_r||typeof _r=="function"||hn,de=typeof ii=="number"?ii:ii||hi,Wn=Qn(de)?de.toString():void 0;return ae!==void 0&&(Wn=ae),Tt.createElement("div",(0,Mt.Z)({},(0,Jt.Z)(en),rn?{}:Ge(Kn,ui),{"aria-selected":Kr(hi),className:mn,title:Wn,onMouseMove:function(){Cr===ui||Bn||co(ui)},onClick:function(){Bn||eo(hi)},style:se}),Tt.createElement("div",{className:"".concat(Dn,"-content")},typeof Qi=="function"?Qi(Kn,{index:ui}):de),Tt.isValidElement(_r)||hn,Bi&&Tt.createElement(ct,{className:"".concat(rr,"-option-state"),customizeIcon:_r,customizeIconProps:{value:hi,disabled:Bn,isSelected:hn}},hn?"\u2713":null))}))},Ri=Tt.forwardRef(Li),Pi=Ri,ur=function(Oe,De){var ai=Tt.useRef({values:new Map,options:new Map}),qt=Tt.useMemo(function(){var Rn=ai.current,Ai=Rn.values,ln=Rn.options,yn=Oe.map(function(Ui){if(Ui.label===void 0){var Di;return(0,xe.Z)((0,xe.Z)({},Ui),{},{label:(Di=Ai.get(Ui.value))===null||Di===void 0?void 0:Di.label})}return Ui}),li=new Map,bi=new Map;return yn.forEach(function(Ui){li.set(Ui.value,Ui),bi.set(Ui.value,De.get(Ui.value)||ln.get(Ui.value))}),ai.current.values=li,ai.current.options=bi,yn},[Oe,De]),un=Tt.useCallback(function(Rn){return De.get(Rn)||ai.current.options.get(Rn)},[De]);return[qt,un]};function ir(Oe,De){return Ie(Oe).join("").toUpperCase().includes(De)}var pr=function(Oe,De,ai,qt,un){return Tt.useMemo(function(){if(!ai||qt===!1)return Oe;var Rn=De.options,Ai=De.label,ln=De.value,yn=[],li=typeof qt=="function",bi=ai.toUpperCase(),Ui=li?qt:function($n,wi){return un?ir(wi[un],bi):wi[Rn]?ir(wi[Ai!=="children"?Ai:"label"],bi):ir(wi[ln],bi)},Di=li?function($n){return Se($n)}:function($n){return $n};return Oe.forEach(function($n){if($n[Rn]){var wi=Ui(ai,Di($n));if(wi)yn.push($n);else{var dr=$n[Rn].filter(function(fr){return Ui(ai,Di(fr))});dr.length&&yn.push((0,xe.Z)((0,xe.Z)({},$n),{},(0,ge.Z)({},Rn,dr)))}return}Ui(ai,Di($n))&&yn.push($n)}),yn},[Oe,qt,un,ai,De])},ci=Et(69582),qi=Et(11592),Pt=["children","value"],Ii=["children"];function Jn(Oe){var De=Oe,ai=De.key,qt=De.props,un=qt.children,Rn=qt.value,Ai=(0,Ht.Z)(qt,Pt);return(0,xe.Z)({key:ai,value:Rn!==void 0?Rn:ai,children:un},Ai)}function er(Oe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,qi.Z)(Oe).map(function(ai,qt){if(!Tt.isValidElement(ai)||!ai.type)return null;var un=ai,Rn=un.type.isSelectOptGroup,Ai=un.key,ln=un.props,yn=ln.children,li=(0,Ht.Z)(ln,Ii);return De||!Rn?Jn(ai):(0,xe.Z)((0,xe.Z)({key:"__RC_SELECT_GRP__".concat(Ai===null?qt:Ai,"__"),label:Ai},li),{},{options:er(yn)})}).filter(function(ai){return ai})}var Ji=function(De,ai,qt,un,Rn){return Tt.useMemo(function(){var Ai=De,ln=!De;ln&&(Ai=er(ai));var yn=new Map,li=new Map,bi=function($n,wi,dr){dr&&typeof dr=="string"&&$n.set(wi[dr],wi)},Ui=function Di($n){for(var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dr=0;dr<$n.length;dr+=1){var fr=$n[dr];!fr[qt.options]||wi?(yn.set(fr[qt.value],fr),bi(li,fr,qt.label),bi(li,fr,un),bi(li,fr,Rn)):Di(fr[qt.options],!0)}};return Ui(Ai),{options:Ai,valueOptions:yn,labelOptions:li}},[De,ai,qt,un,Rn])},Zi=Ji;function fi(Oe){var De=Tt.useRef();De.current=Oe;var ai=Tt.useCallback(function(){return De.current.apply(De,arguments)},[]);return ai}function bn(Oe){var De=Oe.mode,ai=Oe.options,qt=Oe.children,un=Oe.backfill,Rn=Oe.allowClear,Ai=Oe.placeholder,ln=Oe.getInputElement,yn=Oe.showSearch,li=Oe.onSearch,bi=Oe.defaultOpen,Ui=Oe.autoFocus,Di=Oe.labelInValue,$n=Oe.value,wi=Oe.inputValue,dr=Oe.optionLabelProp,fr=isMultiple(De),xr=yn!==void 0?yn:fr||De==="combobox",cn=ai||convertChildrenToData(qt);if(warning(De!=="tags"||cn.every(function(rn){return!rn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),De==="tags"||De==="combobox"){var _r=cn.some(function(rn){return rn.options?rn.options.some(function(gi){return typeof("value"in gi?gi.value:gi.key)=="number"}):typeof("value"in rn?rn.value:rn.key)=="number"});warning(!_r,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(De!=="combobox"||!dr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(De==="combobox"||!un,"`backfill` only works with `combobox` mode."),warning(De==="combobox"||!ln,"`getInputElement` only work with `combobox` mode."),noteOnce(De!=="combobox"||!ln||!Rn||!Ai,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),li&&!xr&&De!=="combobox"&&De!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!bi||Ui,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$n!=null){var kr=toArray($n);warning(!Di||kr.every(function(rn){return _typeof(rn)==="object"&&("key"in rn||"value"in rn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!fr||Array.isArray($n),"`value` should be array when `mode` is `multiple` or `tags`")}if(qt){var to=null;toNodeArray(qt).some(function(rn){if(!React.isValidElement(rn)||!rn.type)return!1;var gi=rn,Ki=gi.type;if(Ki.isSelectOption)return!1;if(Ki.isSelectOptGroup){var nr=toNodeArray(rn.props.children).every(function(Qi){return!React.isValidElement(Qi)||!rn.type||Qi.type.isSelectOption?!0:(to=Qi.type,!1)});return!nr}return to=Ki,!0}),to&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(to.displayName||to.name||to,"`.")),warning(wi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function En(Oe,De){if(Oe){var ai=function qt(un){for(var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ai=0;Ai<un.length;Ai++){var ln=un[Ai];if(ln[De==null?void 0:De.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Rn&&Array.isArray(ln[De==null?void 0:De.options])&&qt(ln[De==null?void 0:De.options],!0))break}};ai(Oe)}}var Ae=null,Me=["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"],be=["inputValue"];function qn(Oe){return!Oe||(0,oe.Z)(Oe)!=="object"}var ni=Tt.forwardRef(function(Oe,De){var ai=Oe.id,qt=Oe.mode,un=Oe.prefixCls,Rn=un===void 0?"rc-select":un,Ai=Oe.backfill,ln=Oe.fieldNames,yn=Oe.inputValue,li=Oe.searchValue,bi=Oe.onSearch,Ui=Oe.autoClearSearchValue,Di=Ui===void 0?!0:Ui,$n=Oe.onSelect,wi=Oe.onDeselect,dr=Oe.dropdownMatchSelectWidth,fr=dr===void 0?!0:dr,xr=Oe.filterOption,cn=Oe.filterSort,_r=Oe.optionFilterProp,kr=Oe.optionLabelProp,to=Oe.options,rn=Oe.optionRender,gi=Oe.children,Ki=Oe.defaultActiveFirstOption,nr=Oe.menuItemSelectedIcon,Qi=Oe.virtual,rr=Oe.direction,Zr=Oe.listHeight,Br=Zr===void 0?200:Zr,Hr=Oe.listItemHeight,zr=Hr===void 0?20:Hr,pn=Oe.labelRender,Yr=Oe.value,Ln=Oe.defaultValue,_i=Oe.labelInValue,or=Oe.onChange,Cr=Oe.maxCount,Po=(0,Ht.Z)(Oe,Me),co=(0,ci.ZP)(ai),Kr=tn(qt),eo=!!(!to&&gi),Ke=Tt.useMemo(function(){return xr===void 0&&qt==="combobox"?!1:xr},[xr,qt]),Mn=Tt.useMemo(function(){return Gt(ln,eo)},[JSON.stringify(ln),eo]),Ge=(0,Re.Z)("",{value:li!==void 0?li:yn,postState:function(Xi){return Xi||""}}),Bt=(0,ee.Z)(Ge,2),ti=Bt[0],Kn=Bt[1],ui=Zi(to,gi,Mn,_r,kr),Mi=ui.valueOptions,Ei=ui.labelOptions,Nn=ui.options,si=Tt.useCallback(function(Vi){var Xi=Ie(Vi);return Xi.map(function(dn){var Gi,hr,Fr,Or,yr;if(qn(dn))Gi=dn;else{var ji;Fr=dn.key,hr=dn.label,Gi=(ji=dn.value)!==null&&ji!==void 0?ji:Fr}var br=Mi.get(Gi);if(br){var Ur;if(hr===void 0&&(hr=br==null?void 0:br[kr||Mn.label]),Fr===void 0&&(Fr=(Ur=br==null?void 0:br.key)!==null&&Ur!==void 0?Ur:Gi),Or=br==null?void 0:br.disabled,yr=br==null?void 0:br.title,0)var Jr}return{label:hr,value:Gi,key:Fr,disabled:Or,title:yr}})},[Mn,kr,Mi]),hi=(0,Re.Z)(Ln,{value:Yr}),pi=(0,ee.Z)(hi,2),mi=pi[0],ar=pi[1],Nt=Tt.useMemo(function(){var Vi,Xi=Kr&&mi===null?[]:mi,dn=si(Xi);return qt==="combobox"&&qe((Vi=dn[0])===null||Vi===void 0?void 0:Vi.value)?[]:dn},[mi,si,qt,Kr]),ae=ur(Nt,Mi),Ut=(0,ee.Z)(ae,2),se=Ut[0],we=Ut[1],Xe=Tt.useMemo(function(){if(!qt&&se.length===1){var Vi=se[0];if(Vi.value===null&&(Vi.label===null||Vi.label===void 0))return[]}return se.map(function(Xi){var dn;return(0,xe.Z)((0,xe.Z)({},Xi),{},{label:(dn=typeof pn=="function"?pn(Xi):Xi.label)!==null&&dn!==void 0?dn:Xi.value})})},[qt,se,pn]),en=Tt.useMemo(function(){return new Set(se.map(function(Vi){return Vi.value}))},[se]);Tt.useEffect(function(){if(qt==="combobox"){var Vi,Xi=(Vi=se[0])===null||Vi===void 0?void 0:Vi.value;Kn(on(Xi)?String(Xi):"")}},[se]);var hn=fi(function(Vi,Xi){var dn=Xi!=null?Xi:Vi;return(0,ge.Z)((0,ge.Z)({},Mn.value,Vi),Mn.label,dn)}),Bn=Tt.useMemo(function(){if(qt!=="tags")return Nn;var Vi=(0,ne.Z)(Nn),Xi=function(Gi){return Mi.has(Gi)};return(0,ne.Z)(se).sort(function(dn,Gi){return dn.value<Gi.value?-1:1}).forEach(function(dn){var Gi=dn.value;Xi(Gi)||Vi.push(hn(Gi,dn.label))}),Vi},[hn,Nn,Mi,se,qt]),Dn=pr(Bn,Mn,ti,Ke,_r),mn=Tt.useMemo(function(){return qt!=="tags"||!ti||Dn.some(function(Vi){return Vi[_r||"value"]===ti})||Dn.some(function(Vi){return Vi[Mn.value]===ti})?Dn:[hn(ti)].concat((0,ne.Z)(Dn))},[hn,_r,qt,Dn,ti,Mn]),ii=function Vi(Xi){var dn=(0,ne.Z)(Xi).sort(function(Gi,hr){return cn(Gi,hr,{searchValue:ti})});return dn.map(function(Gi){return Array.isArray(Gi.options)?(0,xe.Z)((0,xe.Z)({},Gi),{},{options:Gi.options.length>0?Vi(Gi.options):Gi.options}):Gi})},Bi=Tt.useMemo(function(){return cn?ii(mn):mn},[mn,cn,ti]),de=Tt.useMemo(function(){return fe(Bi,{fieldNames:Mn,childrenAsData:eo})},[Bi,Mn,eo]),Wn=function(Xi){var dn=si(Xi);if(ar(dn),or&&(dn.length!==se.length||dn.some(function(Fr,Or){var yr;return((yr=se[Or])===null||yr===void 0?void 0:yr.value)!==(Fr==null?void 0:Fr.value)}))){var Gi=_i?dn:dn.map(function(Fr){return Fr.value}),hr=dn.map(function(Fr){return Se(we(Fr.value))});or(Kr?Gi:Gi[0],Kr?hr:hr[0])}},Yn=Tt.useState(null),zn=(0,ee.Z)(Yn,2),_n=zn[0],ei=zn[1],Oi=Tt.useState(0),yi=(0,ee.Z)(Oi,2),oi=yi[0],Vn=yi[1],zi=Ki!==void 0?Ki:qt!=="combobox",lr=Tt.useCallback(function(Vi,Xi){var dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gi=dn.source,hr=Gi===void 0?"keyboard":Gi;Vn(Xi),Ai&&qt==="combobox"&&Vi!==null&&hr==="keyboard"&&ei(String(Vi))},[Ai,qt]),mr=function(Xi,dn,Gi){var hr=function(){var no,Wr=we(Xi);return[_i?{label:Wr==null?void 0:Wr[Mn.label],value:Xi,key:(no=Wr==null?void 0:Wr.key)!==null&&no!==void 0?no:Xi}:Xi,Se(Wr)]};if(dn&&$n){var Fr=hr(),Or=(0,ee.Z)(Fr,2),yr=Or[0],ji=Or[1];$n(yr,ji)}else if(!dn&&wi&&Gi!=="clear"){var br=hr(),Ur=(0,ee.Z)(br,2),Jr=Ur[0],Tr=Ur[1];wi(Jr,Tr)}},Er=fi(function(Vi,Xi){var dn,Gi=Kr?Xi.selected:!0;Gi?dn=Kr?[].concat((0,ne.Z)(se),[Vi]):[Vi]:dn=se.filter(function(hr){return hr.value!==Vi}),Wn(dn),mr(Vi,Gi),qt==="combobox"?ei(""):(!tn||Di)&&(Kn(""),ei(""))}),Si=function(Xi,dn){Wn(Xi);var Gi=dn.type,hr=dn.values;(Gi==="remove"||Gi==="clear")&&hr.forEach(function(Fr){mr(Fr.value,!1,Gi)})},cr=function(Xi,dn){if(Kn(Xi),ei(null),dn.source==="submit"){var Gi=(Xi||"").trim();if(Gi){var hr=Array.from(new Set([].concat((0,ne.Z)(en),[Gi])));Wn(hr),mr(Gi,!0),Kn("")}return}dn.source!=="blur"&&(qt==="combobox"&&Wn(Xi),bi==null||bi(Xi))},gr=function(Xi){var dn=Xi;qt!=="tags"&&(dn=Xi.map(function(hr){var Fr=Ei.get(hr);return Fr==null?void 0:Fr.value}).filter(function(hr){return hr!==void 0}));var Gi=Array.from(new Set([].concat((0,ne.Z)(en),(0,ne.Z)(dn))));Wn(Gi),Gi.forEach(function(hr){mr(hr,!0)})},Pr=Tt.useMemo(function(){var Vi=Qi!==!1&&fr!==!1;return(0,xe.Z)((0,xe.Z)({},ui),{},{flattenOptions:de,onActiveValue:lr,defaultActiveFirstOption:zi,onSelect:Er,menuItemSelectedIcon:nr,rawValues:en,fieldNames:Mn,virtual:Vi,direction:rr,listHeight:Br,listItemHeight:zr,childrenAsData:eo,maxCount:Cr,optionRender:rn})},[Cr,ui,de,lr,zi,Er,nr,en,Mn,Qi,fr,rr,Br,zr,eo,rn]);return Tt.createElement(Te.Provider,{value:Pr},Tt.createElement(On,(0,Mt.Z)({},Po,{id:co,prefixCls:Rn,ref:De,omitDomProps:be,mode:qt,displayValues:Xe,onDisplayValuesChange:Si,direction:rr,searchValue:ti,onSearch:cr,autoClearSearchValue:Di,onSearchSplit:gr,dropdownMatchSelectWidth:fr,OptionList:Pi,emptyOptions:!de.length,activeValue:_n,activeDescendantId:"".concat(co,"_list_").concat(oi)})))}),Fi=ni;Fi.Option=Ni,Fi.OptGroup=Pn;var gn=Fi,Hn=gn},63158:function(An,Un,Et){"use strict";var Mt=Et(72308),ne=Et(49618),ge=Et(52487),xe=Et(74416),ee=Et(59301),Ht=Et(92310),oe=Et.n(Ht),Re=Et(18929),ve=Et(10228),Tt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ue=ee.forwardRef(function(ie,Je){var Ot,et=ie.prefixCls,nt=et===void 0?"rc-switch":et,ct=ie.className,lt=ie.checked,gt=ie.defaultChecked,mt=ie.disabled,St=ie.loadingIcon,wt=ie.checkedChildren,zt=ie.unCheckedChildren,Wt=ie.onClick,$t=ie.onChange,Jt=ie.onKeyDown,Vt=(0,xe.Z)(ie,Tt),pe=(0,Re.Z)(!1,{value:lt,defaultValue:gt}),ce=(0,ge.Z)(pe,2),Ee=ce[0],Ie=ce[1];function ke(We,he){var It=Ee;return mt||(It=We,Ie(It),$t==null||$t(It,he)),It}function wn(We){We.which===ve.Z.LEFT?ke(!1,We):We.which===ve.Z.RIGHT&&ke(!0,We),Jt==null||Jt(We)}function on(We){var he=ke(!Ee,We);Wt==null||Wt(he,We)}var qe=oe()(nt,ct,(Ot={},(0,ne.Z)(Ot,"".concat(nt,"-checked"),Ee),(0,ne.Z)(Ot,"".concat(nt,"-disabled"),mt),Ot));return ee.createElement("button",(0,Mt.Z)({},Vt,{type:"button",role:"switch","aria-checked":Ee,disabled:mt,className:qe,ref:Je,onKeyDown:wn,onClick:on}),St,ee.createElement("span",{className:"".concat(nt,"-inner")},ee.createElement("span",{className:"".concat(nt,"-inner-checked")},wt),ee.createElement("span",{className:"".concat(nt,"-inner-unchecked")},zt)))});Ue.displayName="Switch",Un.Z=Ue},67204:function(An,Un,Et){"use strict";Et.d(Un,{R:function(){return ne},w:function(){return Mt}});var Mt={},ne="rc-table-internal-hook"},78612:function(An,Un,Et){"use strict";Et.d(Un,{L:function(){return nt},Z:function(){return St}});var Mt=Et(52487),ne=Et(49618),ge=Et(80702),xe=Et(62853),ee=Et(77321),Ht=Et(74416),oe=Et(11592),Re=Et(48736),ve=Et(59301),Tt=Et(67204),Ue=Et(90494);function ie(wt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof zt=="number"?zt:zt.endsWith("%")?wt*parseFloat(zt)/100:null}function Je(wt,zt,Wt){return ve.useMemo(function(){if(zt&&zt>0){var $t=0,Jt=0;wt.forEach(function(on){var qe=ie(zt,on.width);qe?$t+=qe:Jt+=1});var Vt=Math.max(zt,Wt),pe=Math.max(Vt-$t,Jt),ce=Jt,Ee=pe/Jt,Ie=0,ke=wt.map(function(on){var qe=(0,ee.Z)({},on),We=ie(zt,qe.width);if(We)qe.width=We;else{var he=Math.floor(Ee);qe.width=ce===1?pe:he,pe-=he,ce-=1}return Ie+=qe.width,qe});if(Ie<Vt){var wn=Vt/Ie;pe=Vt,ke.forEach(function(on,qe){var We=Math.floor(on.width*wn);on.width=qe===ke.length-1?pe:We,pe-=We})}return[ke,Math.max(Ie,Vt)]}return[wt,zt]},[wt,zt,Wt])}var Ot=["children"],et=["fixed"];function nt(wt){return(0,oe.Z)(wt).filter(function(zt){return ve.isValidElement(zt)}).map(function(zt){var Wt=zt.key,$t=zt.props,Jt=$t.children,Vt=(0,Ht.Z)($t,Ot),pe=(0,ee.Z)({key:Wt},Vt);return Jt&&(pe.children=nt(Jt)),pe})}function ct(wt){return wt.filter(function(zt){return zt&&(0,xe.Z)(zt)==="object"&&!zt.hidden}).map(function(zt){var Wt=zt.children;return Wt&&Wt.length>0?(0,ee.Z)((0,ee.Z)({},zt),{},{children:ct(Wt)}):zt})}function lt(wt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return wt.filter(function(Wt){return Wt&&(0,xe.Z)(Wt)==="object"}).reduce(function(Wt,$t,Jt){var Vt=$t.fixed,pe=Vt===!0?"left":Vt,ce="".concat(zt,"-").concat(Jt),Ee=$t.children;return Ee&&Ee.length>0?[].concat((0,ge.Z)(Wt),(0,ge.Z)(lt(Ee,ce).map(function(Ie){return(0,ee.Z)({fixed:pe},Ie)}))):[].concat((0,ge.Z)(Wt),[(0,ee.Z)((0,ee.Z)({key:ce},$t),{},{fixed:pe})])},[])}function gt(wt){return wt.map(function(zt){var Wt=zt.fixed,$t=(0,Ht.Z)(zt,et),Jt=Wt;return Wt==="left"?Jt="right":Wt==="right"&&(Jt="left"),(0,ee.Z)({fixed:Jt},$t)})}function mt(wt,zt){var Wt=wt.prefixCls,$t=wt.columns,Jt=wt.children,Vt=wt.expandable,pe=wt.expandedKeys,ce=wt.columnTitle,Ee=wt.getRowKey,Ie=wt.onTriggerExpand,ke=wt.expandIcon,wn=wt.rowExpandable,on=wt.expandIconColumnIndex,qe=wt.direction,We=wt.expandRowByClick,he=wt.columnWidth,It=wt.fixed,Le=wt.scrollWidth,an=wt.clientWidth,Ze=ve.useMemo(function(){var In=$t||nt(Jt)||[];return ct(In.slice())},[$t,Jt]),Ce=ve.useMemo(function(){if(Vt){var In=Ze.slice();if(!In.includes(Tt.w)){var Dt=on||0;Dt>=0&&(Dt||It==="left"||!It)&&In.splice(Dt,0,Tt.w),It==="right"&&In.splice(Ze.length,0,Tt.w)}var Ct=In.indexOf(Tt.w);In=In.filter(function(bt,Gt){return bt!==Tt.w||Gt===Ct});var yt=Ze[Ct],kt;It?kt=It:kt=yt?yt.fixed:null;var jt=(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)({},Ue.v,{className:"".concat(Wt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ce),"fixed",kt),"className","".concat(Wt,"-row-expand-icon-cell")),"width",he),"render",function(Gt,fe,Se){var Be=Ee(fe,Se),re=pe.has(Be),Te=wn?wn(fe):!0,Ne=ke({prefixCls:Wt,expanded:re,expandable:Te,record:fe,onExpand:Ie});return We?ve.createElement("span",{onClick:function(fn){return fn.stopPropagation()}},Ne):Ne});return In.map(function(bt){return bt===Tt.w?jt:bt})}return Ze.filter(function(bt){return bt!==Tt.w})},[Vt,Ze,Ee,pe,ke,qe]),nn=ve.useMemo(function(){var In=Ce;return zt&&(In=zt(In)),In.length||(In=[{render:function(){return null}}]),In},[zt,Ce,qe]),Ye=ve.useMemo(function(){return qe==="rtl"?gt(lt(nn)):lt(nn)},[nn,qe,Le]),Sn=ve.useMemo(function(){for(var In=-1,Dt=Ye.length-1;Dt>=0;Dt-=1){var Ct=Ye[Dt].fixed;if(Ct==="left"||Ct===!0){In=Dt;break}}if(In>=0)for(var yt=0;yt<=In;yt+=1){var kt=Ye[yt].fixed;if(kt!=="left"&&kt!==!0)return!0}var jt=Ye.findIndex(function(fe){var Se=fe.fixed;return Se==="right"});if(jt>=0)for(var bt=jt;bt<Ye.length;bt+=1){var Gt=Ye[bt].fixed;if(Gt!=="right")return!0}return!1},[Ye]),Fe=Je(Ye,Le,an),vn=(0,Mt.Z)(Fe,2),ue=vn[0],Ve=vn[1];return[nn,ue,Ve,Sn]}var St=mt},16596:function(An,Un,Et){"use strict";Et.d(Un,{w2:function(){return Mt.w},vP:function(){return Pi.v},RQ:function(){return Mt.R},ER:function(){return Be},Q$:function(){return kr},TN:function(){return co}});var Mt=Et(67204),ne=Et(52487),ge=Et(6089),xe=Et(34280),ee=Et(13697),Ht=Et(59301),oe=Et(4676);function Re(Ke){var Mn=Ht.createContext(void 0),Ge=function(ti){var Kn=ti.value,ui=ti.children,Mi=Ht.useRef(Kn);Mi.current=Kn;var Ei=Ht.useState(function(){return{getValue:function(){return Mi.current},listeners:new Set}}),Nn=(0,ne.Z)(Ei,1),si=Nn[0];return(0,xe.Z)(function(){(0,oe.unstable_batchedUpdates)(function(){si.listeners.forEach(function(hi){hi(Kn)})})},[Kn]),Ht.createElement(Mn.Provider,{value:si},ui)};return{Context:Mn,Provider:Ge,defaultValue:Ke}}function ve(Ke,Mn){var Ge=(0,ge.Z)(typeof Mn=="function"?Mn:function(hi){if(Mn===void 0)return hi;if(!Array.isArray(Mn))return hi[Mn];var pi={};return Mn.forEach(function(mi){pi[mi]=hi[mi]}),pi}),Bt=Ht.useContext(Ke==null?void 0:Ke.Context),ti=Bt||{},Kn=ti.listeners,ui=ti.getValue,Mi=Ht.useRef();Mi.current=Ge(Bt?ui():Ke==null?void 0:Ke.defaultValue);var Ei=Ht.useState({}),Nn=(0,ne.Z)(Ei,2),si=Nn[1];return(0,xe.Z)(function(){if(!Bt)return;function hi(pi){var mi=Ge(pi);(0,ee.Z)(Mi.current,mi,!0)||si({})}return Kn.add(hi),function(){Kn.delete(hi)}},[Bt]),Mi.current}var Tt=Et(72308),Ue=Et(8654);function ie(){var Ke=Ht.createContext(null);function Mn(){return Ht.useContext(Ke)}function Ge(ti,Kn){var ui=(0,Ue.Yr)(ti),Mi=function(Nn,si){var hi=ui?{ref:si}:{},pi=Ht.useRef(0),mi=Ht.useRef(Nn),ar=Mn();return ar!==null?Ht.createElement(ti,(0,Tt.Z)({},Nn,hi)):((!Kn||Kn(mi.current,Nn))&&(pi.current+=1),mi.current=Nn,Ht.createElement(Ke.Provider,{value:pi.current},Ht.createElement(ti,(0,Tt.Z)({},Nn,hi))))};return ui?Ht.forwardRef(Mi):Mi}function Bt(ti,Kn){var ui=(0,Ue.Yr)(ti),Mi=function(Nn,si){var hi=ui?{ref:si}:{};return Mn(),Ht.createElement(ti,(0,Tt.Z)({},Nn,hi))};return ui?Ht.memo(Ht.forwardRef(Mi),Kn):Ht.memo(Mi,Kn)}return{makeImmutable:Ge,responseImmutable:Bt,useImmutableMark:Mn}}var Je=ie(),Ot=Je.makeImmutable,et=Je.responseImmutable,nt=Je.useImmutableMark,ct=ie(),lt=ct.makeImmutable,gt=ct.responseImmutable,mt=ct.useImmutableMark,St=Re(),wt=St;function zt(Ke,Mn){var Ge=React.useRef(0);Ge.current+=1;var Bt=React.useRef(Ke),ti=[];Object.keys(Ke||{}).map(function(ui){var Mi;(Ke==null?void 0:Ke[ui])!==((Mi=Bt.current)===null||Mi===void 0?void 0:Mi[ui])&&ti.push(ui)}),Bt.current=Ke;var Kn=React.useRef([]);return ti.length&&(Kn.current=ti),React.useDebugValue(Ge.current),React.useDebugValue(Kn.current.join(", ")),Mn&&console.log("".concat(Mn,":"),Ge.current,Kn.current),Ge.current}var Wt=null,$t=null,Jt=Et(62853),Vt=Et(77321),pe=Et(49618),ce=Et(92310),Ee=Et.n(ce),Ie=Et(80547),ke=Et(97938),wn=Et(48736),on=Ht.createContext({renderWithProps:!1}),qe=on,We="RC_TABLE_KEY";function he(Ke){return Ke==null?[]:Array.isArray(Ke)?Ke:[Ke]}function It(Ke){var Mn=[],Ge={};return Ke.forEach(function(Bt){for(var ti=Bt||{},Kn=ti.key,ui=ti.dataIndex,Mi=Kn||he(ui).join("-")||We;Ge[Mi];)Mi="".concat(Mi,"_next");Ge[Mi]=!0,Mn.push(Mi)}),Mn}function Le(Ke){return Ke!=null}function an(Ke){return typeof Ke=="number"&&!Number.isNaN(Ke)}function Ze(Ke){return Ke&&(0,Jt.Z)(Ke)==="object"&&!Array.isArray(Ke)&&!Ht.isValidElement(Ke)}function Ce(Ke,Mn,Ge,Bt,ti,Kn){var ui=Ht.useContext(qe),Mi=mt(),Ei=(0,Ie.Z)(function(){if(Le(Bt))return[Bt];var Nn=Mn==null||Mn===""?[]:Array.isArray(Mn)?Mn:[Mn],si=(0,ke.Z)(Ke,Nn),hi=si,pi=void 0;if(ti){var mi=ti(si,Ke,Ge);Ze(mi)?(hi=mi.children,pi=mi.props,ui.renderWithProps=!0):hi=mi}return[hi,pi]},[Mi,Ke,Bt,Mn,ti,Ge],function(Nn,si){if(Kn){var hi=(0,ne.Z)(Nn,2),pi=hi[1],mi=(0,ne.Z)(si,2),ar=mi[1];return Kn(ar,pi)}return ui.renderWithProps?!0:!(0,ee.Z)(Nn,si,!0)});return Ei}function nn(Ke,Mn,Ge,Bt){var ti=Ke+Mn-1;return Ke<=Bt&&ti>=Ge}function Ye(Ke,Mn){return ve(wt,function(Ge){var Bt=nn(Ke,Mn||1,Ge.hoverStartRow,Ge.hoverEndRow);return[Bt,Ge.onHover]})}var Sn=Et(70425),Fe=function(Mn){var Ge=Mn.ellipsis,Bt=Mn.rowType,ti=Mn.children,Kn,ui=Ge===!0?{showTitle:!0}:Ge;return ui&&(ui.showTitle||Bt==="header")&&(typeof ti=="string"||typeof ti=="number"?Kn=ti.toString():Ht.isValidElement(ti)&&typeof ti.props.children=="string"&&(Kn=ti.props.children)),Kn};function vn(Ke){var Mn,Ge,Bt,ti,Kn,ui,Mi,Ei,Nn=Ke.component,si=Ke.children,hi=Ke.ellipsis,pi=Ke.scope,mi=Ke.prefixCls,ar=Ke.className,Nt=Ke.align,ae=Ke.record,Ut=Ke.render,se=Ke.dataIndex,we=Ke.renderIndex,Xe=Ke.shouldCellUpdate,en=Ke.index,hn=Ke.rowType,Bn=Ke.colSpan,Dn=Ke.rowSpan,mn=Ke.fixLeft,ii=Ke.fixRight,Bi=Ke.firstFixLeft,de=Ke.lastFixLeft,Wn=Ke.firstFixRight,Yn=Ke.lastFixRight,zn=Ke.appendNode,_n=Ke.additionalProps,ei=_n===void 0?{}:_n,Oi=Ke.isSticky,yi="".concat(mi,"-cell"),oi=ve(wt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Vn=oi.supportSticky,zi=oi.allColumnsFixedLeft,lr=oi.rowHoverable,mr=Ce(ae,se,we,si,Ut,Xe),Er=(0,ne.Z)(mr,2),Si=Er[0],cr=Er[1],gr={},Pr=typeof mn=="number"&&Vn,Vi=typeof ii=="number"&&Vn;Pr&&(gr.position="sticky",gr.left=mn),Vi&&(gr.position="sticky",gr.right=ii);var Xi=(Mn=(Ge=(Bt=cr==null?void 0:cr.colSpan)!==null&&Bt!==void 0?Bt:ei.colSpan)!==null&&Ge!==void 0?Ge:Bn)!==null&&Mn!==void 0?Mn:1,dn=(ti=(Kn=(ui=cr==null?void 0:cr.rowSpan)!==null&&ui!==void 0?ui:ei.rowSpan)!==null&&Kn!==void 0?Kn:Dn)!==null&&ti!==void 0?ti:1,Gi=Ye(en,dn),hr=(0,ne.Z)(Gi,2),Fr=hr[0],Or=hr[1],yr=(0,Sn.zX)(function(no){var Wr;ae&&Or(en,en+dn-1),ei==null||(Wr=ei.onMouseEnter)===null||Wr===void 0||Wr.call(ei,no)}),ji=(0,Sn.zX)(function(no){var Wr;ae&&Or(-1,-1),ei==null||(Wr=ei.onMouseLeave)===null||Wr===void 0||Wr.call(ei,no)});if(Xi===0||dn===0)return null;var br=(Mi=ei.title)!==null&&Mi!==void 0?Mi:Fe({rowType:hn,ellipsis:hi,children:Si}),Ur=Ee()(yi,ar,(Ei={},(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)(Ei,"".concat(yi,"-fix-left"),Pr&&Vn),"".concat(yi,"-fix-left-first"),Bi&&Vn),"".concat(yi,"-fix-left-last"),de&&Vn),"".concat(yi,"-fix-left-all"),de&&zi&&Vn),"".concat(yi,"-fix-right"),Vi&&Vn),"".concat(yi,"-fix-right-first"),Wn&&Vn),"".concat(yi,"-fix-right-last"),Yn&&Vn),"".concat(yi,"-ellipsis"),hi),"".concat(yi,"-with-append"),zn),"".concat(yi,"-fix-sticky"),(Pr||Vi)&&Oi&&Vn),(0,pe.Z)(Ei,"".concat(yi,"-row-hover"),!cr&&Fr)),ei.className,cr==null?void 0:cr.className),Jr={};Nt&&(Jr.textAlign=Nt);var Tr=(0,Vt.Z)((0,Vt.Z)((0,Vt.Z)((0,Vt.Z)({},cr==null?void 0:cr.style),gr),Jr),ei.style),so=Si;return(0,Jt.Z)(so)==="object"&&!Array.isArray(so)&&!Ht.isValidElement(so)&&(so=null),hi&&(de||Wn)&&(so=Ht.createElement("span",{className:"".concat(yi,"-content")},so)),Ht.createElement(Nn,(0,Tt.Z)({},cr,ei,{className:Ur,style:Tr,title:br,scope:pi,onMouseEnter:lr?yr:void 0,onMouseLeave:lr?ji:void 0,colSpan:Xi!==1?Xi:null,rowSpan:dn!==1?dn:null}),zn,so)}var ue=Ht.memo(vn);function Ve(Ke,Mn,Ge,Bt,ti){var Kn=Ge[Ke]||{},ui=Ge[Mn]||{},Mi,Ei;Kn.fixed==="left"?Mi=Bt.left[ti==="rtl"?Mn:Ke]:ui.fixed==="right"&&(Ei=Bt.right[ti==="rtl"?Ke:Mn]);var Nn=!1,si=!1,hi=!1,pi=!1,mi=Ge[Mn+1],ar=Ge[Ke-1],Nt=mi&&!mi.fixed||ar&&!ar.fixed||Ge.every(function(Xe){return Xe.fixed==="left"});if(ti==="rtl"){if(Mi!==void 0){var ae=ar&&ar.fixed==="left";pi=!ae&&Nt}else if(Ei!==void 0){var Ut=mi&&mi.fixed==="right";hi=!Ut&&Nt}}else if(Mi!==void 0){var se=mi&&mi.fixed==="left";Nn=!se&&Nt}else if(Ei!==void 0){var we=ar&&ar.fixed==="right";si=!we&&Nt}return{fixLeft:Mi,fixRight:Ei,lastFixLeft:Nn,firstFixRight:si,lastFixRight:hi,firstFixLeft:pi,isSticky:Bt.isSticky}}var In=Ht.createContext({}),Dt=In;function Ct(Ke){var Mn=Ke.className,Ge=Ke.index,Bt=Ke.children,ti=Ke.colSpan,Kn=ti===void 0?1:ti,ui=Ke.rowSpan,Mi=Ke.align,Ei=ve(wt,["prefixCls","direction"]),Nn=Ei.prefixCls,si=Ei.direction,hi=Ht.useContext(Dt),pi=hi.scrollColumnIndex,mi=hi.stickyOffsets,ar=hi.flattenColumns,Nt=Ge+Kn-1,ae=Nt+1===pi?Kn+1:Kn,Ut=Ve(Ge,Ge+ae-1,ar,mi,si);return Ht.createElement(ue,(0,Tt.Z)({className:Mn,index:Ge,component:"td",prefixCls:Nn,record:null,dataIndex:null,align:Mi,colSpan:ae,rowSpan:ui,render:function(){return Bt}},Ut))}var yt=Et(74416),kt=["children"];function jt(Ke){var Mn=Ke.children,Ge=(0,yt.Z)(Ke,kt);return Ht.createElement("tr",Ge,Mn)}function bt(Ke){var Mn=Ke.children;return Mn}bt.Row=jt,bt.Cell=Ct;var Gt=bt;function fe(Ke){var Mn=Ke.children,Ge=Ke.stickyOffsets,Bt=Ke.flattenColumns,ti=ve(wt,"prefixCls"),Kn=Bt.length-1,ui=Bt[Kn],Mi=Ht.useMemo(function(){return{stickyOffsets:Ge,flattenColumns:Bt,scrollColumnIndex:ui!=null&&ui.scrollbar?Kn:null}},[ui,Bt,Kn,Ge]);return Ht.createElement(Dt.Provider,{value:Mi},Ht.createElement("tfoot",{className:"".concat(ti,"-summary")},Mn))}var Se=gt(fe),Be=Gt,re=Et(29301),Te=Et(29194),Ne=Et(24514),$e=Et(75152),fn=Et(26112);function tn(Ke,Mn,Ge,Bt,ti,Kn,ui){Ke.push({record:Mn,indent:Ge,index:ui});var Mi=Kn(Mn),Ei=ti==null?void 0:ti.has(Mi);if(Mn&&Array.isArray(Mn[Bt])&&Ei)for(var Nn=0;Nn<Mn[Bt].length;Nn+=1)tn(Ke,Mn[Bt][Nn],Ge+1,Bt,ti,Kn,Nn)}function He(Ke,Mn,Ge,Bt){var ti=Ht.useMemo(function(){if(Ge!=null&&Ge.size){for(var Kn=[],ui=0;ui<(Ke==null?void 0:Ke.length);ui+=1){var Mi=Ke[ui];tn(Kn,Mi,0,Mn,Ge,Bt,ui)}return Kn}return Ke==null?void 0:Ke.map(function(Ei,Nn){return{record:Ei,indent:0,index:Nn}})},[Ke,Mn,Ge,Bt]);return ti}function On(Ke,Mn,Ge,Bt){var ti=ve(wt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Kn=ti.flattenColumns,ui=ti.expandableType,Mi=ti.expandedKeys,Ei=ti.childrenColumnName,Nn=ti.onTriggerExpand,si=ti.rowExpandable,hi=ti.onRow,pi=ti.expandRowByClick,mi=ti.rowClassName,ar=ui==="nest",Nt=ui==="row"&&(!si||si(Ke)),ae=Nt||ar,Ut=Mi&&Mi.has(Mn),se=Ei&&Ke&&Ke[Ei],we=(0,Sn.zX)(Nn),Xe=hi==null?void 0:hi(Ke,Ge),en=Xe==null?void 0:Xe.onClick,hn=function(ii){pi&&ae&&Nn(Ke,ii);for(var Bi=arguments.length,de=new Array(Bi>1?Bi-1:0),Wn=1;Wn<Bi;Wn++)de[Wn-1]=arguments[Wn];en==null||en.apply(void 0,[ii].concat(de))},Bn;typeof mi=="string"?Bn=mi:typeof mi=="function"&&(Bn=mi(Ke,Ge,Bt));var Dn=It(Kn);return(0,Vt.Z)((0,Vt.Z)({},ti),{},{columnsKey:Dn,nestExpandable:ar,expanded:Ut,hasNestChildren:se,record:Ke,onTriggerExpand:we,rowSupportExpand:Nt,expandable:ae,rowProps:(0,Vt.Z)((0,Vt.Z)({},Xe),{},{className:Ee()(Bn,Xe==null?void 0:Xe.className),onClick:hn})})}function Xn(Ke){var Mn=Ke.prefixCls,Ge=Ke.children,Bt=Ke.component,ti=Ke.cellComponent,Kn=Ke.className,ui=Ke.expanded,Mi=Ke.colSpan,Ei=Ke.isEmpty,Nn=ve(wt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),si=Nn.scrollbarSize,hi=Nn.fixHeader,pi=Nn.fixColumn,mi=Nn.componentWidth,ar=Nn.horizonScroll,Nt=Ge;return(Ei?ar&&mi:pi)&&(Nt=Ht.createElement("div",{style:{width:mi-(hi&&!Ei?si:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Mn,"-expanded-row-fixed")},Nt)),Ht.createElement(Bt,{className:Kn,style:{display:ui?null:"none"}},Ht.createElement(ue,{component:ti,prefixCls:Mn,colSpan:Mi},Nt))}var Pn=Xn;function Gn(Ke){var Mn=Ke.prefixCls,Ge=Ke.record,Bt=Ke.onExpand,ti=Ke.expanded,Kn=Ke.expandable,ui="".concat(Mn,"-row-expand-icon");if(!Kn)return Ht.createElement("span",{className:Ee()(ui,"".concat(Mn,"-row-spaced"))});var Mi=function(Nn){Bt(Ge,Nn),Nn.stopPropagation()};return Ht.createElement("span",{className:Ee()(ui,(0,pe.Z)((0,pe.Z)({},"".concat(Mn,"-row-expanded"),ti),"".concat(Mn,"-row-collapsed"),!ti)),onClick:Mi})}function Ni(Ke,Mn,Ge){var Bt=[];function ti(Kn){(Kn||[]).forEach(function(ui,Mi){Bt.push(Mn(ui,Mi)),ti(ui[Ge])})}return ti(Ke),Bt}function xi(Ke,Mn,Ge,Bt){return typeof Ke=="string"?Ke:typeof Ke=="function"?Ke(Mn,Ge,Bt):""}function ki(Ke,Mn,Ge,Bt,ti){var Kn=Ke.record,ui=Ke.prefixCls,Mi=Ke.columnsKey,Ei=Ke.fixedInfoList,Nn=Ke.expandIconColumnIndex,si=Ke.nestExpandable,hi=Ke.indentSize,pi=Ke.expandIcon,mi=Ke.expanded,ar=Ke.hasNestChildren,Nt=Ke.onTriggerExpand,ae=Mi[Ge],Ut=Ei[Ge],se;Ge===(Nn||0)&&si&&(se=Ht.createElement(Ht.Fragment,null,Ht.createElement("span",{style:{paddingLeft:"".concat(hi*Bt,"px")},className:"".concat(ui,"-row-indent indent-level-").concat(Bt)}),pi({prefixCls:ui,expanded:mi,expandable:ar,record:Kn,onExpand:Nt})));var we;return Mn.onCell&&(we=Mn.onCell(Kn,ti)),{key:ae,fixedInfo:Ut,appendCellNode:se,additionalCellProps:we||{}}}function tr(Ke){var Mn=Ke.className,Ge=Ke.style,Bt=Ke.record,ti=Ke.index,Kn=Ke.renderIndex,ui=Ke.rowKey,Mi=Ke.indent,Ei=Mi===void 0?0:Mi,Nn=Ke.rowComponent,si=Ke.cellComponent,hi=Ke.scopeCellComponent,pi=On(Bt,ui,ti,Ei),mi=pi.prefixCls,ar=pi.flattenColumns,Nt=pi.expandedRowClassName,ae=pi.expandedRowRender,Ut=pi.rowProps,se=pi.expanded,we=pi.rowSupportExpand,Xe=Ht.useRef(!1);Xe.current||(Xe.current=se);var en=xi(Nt,Bt,ti,Ei),hn=Ht.createElement(Nn,(0,Tt.Z)({},Ut,{"data-row-key":ui,className:Ee()(Mn,"".concat(mi,"-row"),"".concat(mi,"-row-level-").concat(Ei),Ut==null?void 0:Ut.className,(0,pe.Z)({},en,Ei>=1)),style:(0,Vt.Z)((0,Vt.Z)({},Ge),Ut==null?void 0:Ut.style)}),ar.map(function(mn,ii){var Bi=mn.render,de=mn.dataIndex,Wn=mn.className,Yn=ki(pi,mn,ii,Ei,ti),zn=Yn.key,_n=Yn.fixedInfo,ei=Yn.appendCellNode,Oi=Yn.additionalCellProps;return Ht.createElement(ue,(0,Tt.Z)({className:Wn,ellipsis:mn.ellipsis,align:mn.align,scope:mn.rowScope,component:mn.rowScope?hi:si,prefixCls:mi,key:zn,record:Bt,index:ti,renderIndex:Kn,dataIndex:de,render:Bi,shouldCellUpdate:mn.shouldCellUpdate},_n,{appendNode:ei,additionalProps:Oi}))})),Bn;if(we&&(Xe.current||se)){var Dn=ae(Bt,ti,Ei+1,se);Bn=Ht.createElement(Pn,{expanded:se,className:Ee()("".concat(mi,"-expanded-row"),"".concat(mi,"-expanded-row-level-").concat(Ei+1),en),prefixCls:mi,component:Nn,cellComponent:si,colSpan:ar.length,isEmpty:!1},Dn)}return Ht.createElement(Ht.Fragment,null,hn,Bn)}var Qe=gt(tr);function sn(Ke){var Mn=Ke.columnKey,Ge=Ke.onColumnResize,Bt=Ht.useRef();return Ht.useEffect(function(){Bt.current&&Ge(Mn,Bt.current.offsetWidth)},[]),Ht.createElement(re.Z,{data:Mn},Ht.createElement("td",{ref:Bt,style:{padding:0,border:0,height:0}},Ht.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Qn(Ke){var Mn=Ke.prefixCls,Ge=Ke.columnsKey,Bt=Ke.onColumnResize;return Ht.createElement("tr",{"aria-hidden":"true",className:"".concat(Mn,"-measure-row"),style:{height:0,fontSize:0}},Ht.createElement(re.Z.Collection,{onBatchResize:function(Kn){Kn.forEach(function(ui){var Mi=ui.data,Ei=ui.size;Bt(Mi,Ei.offsetWidth)})}},Ge.map(function(ti){return Ht.createElement(sn,{key:ti,columnKey:ti,onColumnResize:Bt})})))}function Li(Ke){var Mn=Ke.data,Ge=Ke.measureColumnWidth,Bt=ve(wt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ti=Bt.prefixCls,Kn=Bt.getComponent,ui=Bt.onColumnResize,Mi=Bt.flattenColumns,Ei=Bt.getRowKey,Nn=Bt.expandedKeys,si=Bt.childrenColumnName,hi=Bt.emptyNode,pi=He(Mn,si,Nn,Ei),mi=Ht.useRef({renderWithProps:!1}),ar=Kn(["body","wrapper"],"tbody"),Nt=Kn(["body","row"],"tr"),ae=Kn(["body","cell"],"td"),Ut=Kn(["body","cell"],"th"),se;Mn.length?se=pi.map(function(Xe,en){var hn=Xe.record,Bn=Xe.indent,Dn=Xe.index,mn=Ei(hn,en);return Ht.createElement(Qe,{key:mn,rowKey:mn,record:hn,index:en,renderIndex:Dn,rowComponent:Nt,cellComponent:ae,scopeCellComponent:Ut,indent:Bn})}):se=Ht.createElement(Pn,{expanded:!0,className:"".concat(ti,"-placeholder"),prefixCls:ti,component:Nt,cellComponent:ae,colSpan:Mi.length,isEmpty:!0},hi);var we=It(Mi);return Ht.createElement(qe.Provider,{value:mi.current},Ht.createElement(ar,{className:"".concat(ti,"-tbody")},Ge&&Ht.createElement(Qn,{prefixCls:ti,columnsKey:we,onColumnResize:ui}),se))}var Ri=gt(Li),Pi=Et(90494),ur=["columnType"];function ir(Ke){for(var Mn=Ke.colWidths,Ge=Ke.columns,Bt=Ke.columCount,ti=ve(wt,["tableLayout"]),Kn=ti.tableLayout,ui=[],Mi=Bt||Ge.length,Ei=!1,Nn=Mi-1;Nn>=0;Nn-=1){var si=Mn[Nn],hi=Ge&&Ge[Nn],pi=void 0,mi=void 0;if(hi&&(pi=hi[Pi.v],Kn==="auto"&&(mi=hi.minWidth)),si||mi||pi||Ei){var ar=pi||{},Nt=ar.columnType,ae=(0,yt.Z)(ar,ur);ui.unshift(Ht.createElement("col",(0,Tt.Z)({key:Nn,style:{width:si,minWidth:mi}},ae))),Ei=!0}}return Ht.createElement("colgroup",null,ui)}var pr=ir,ci=Et(80702),qi=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Pt(Ke,Mn){return(0,Ht.useMemo)(function(){for(var Ge=[],Bt=0;Bt<Mn;Bt+=1){var ti=Ke[Bt];if(ti!==void 0)Ge[Bt]=ti;else return null}return Ge},[Ke.join("_"),Mn])}var Ii=Ht.forwardRef(function(Ke,Mn){var Ge=Ke.className,Bt=Ke.noData,ti=Ke.columns,Kn=Ke.flattenColumns,ui=Ke.colWidths,Mi=Ke.columCount,Ei=Ke.stickyOffsets,Nn=Ke.direction,si=Ke.fixHeader,hi=Ke.stickyTopOffset,pi=Ke.stickyBottomOffset,mi=Ke.stickyClassName,ar=Ke.onScroll,Nt=Ke.maxContentScroll,ae=Ke.children,Ut=(0,yt.Z)(Ke,qi),se=ve(wt,["prefixCls","scrollbarSize","isSticky","getComponent"]),we=se.prefixCls,Xe=se.scrollbarSize,en=se.isSticky,hn=se.getComponent,Bn=hn(["header","table"],"table"),Dn=en&&!si?0:Xe,mn=Ht.useRef(null),ii=Ht.useCallback(function(Oi){(0,Ue.mH)(Mn,Oi),(0,Ue.mH)(mn,Oi)},[]);Ht.useEffect(function(){var Oi;function yi(oi){var Vn=oi,zi=Vn.currentTarget,lr=Vn.deltaX;lr&&(ar({currentTarget:zi,scrollLeft:zi.scrollLeft+lr}),oi.preventDefault())}return(Oi=mn.current)===null||Oi===void 0||Oi.addEventListener("wheel",yi,{passive:!1}),function(){var oi;(oi=mn.current)===null||oi===void 0||oi.removeEventListener("wheel",yi)}},[]);var Bi=Ht.useMemo(function(){return Kn.every(function(Oi){return Oi.width})},[Kn]),de=Kn[Kn.length-1],Wn={fixed:de?de.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(we,"-cell-scrollbar")}}},Yn=(0,Ht.useMemo)(function(){return Dn?[].concat((0,ci.Z)(ti),[Wn]):ti},[Dn,ti]),zn=(0,Ht.useMemo)(function(){return Dn?[].concat((0,ci.Z)(Kn),[Wn]):Kn},[Dn,Kn]),_n=(0,Ht.useMemo)(function(){var Oi=Ei.right,yi=Ei.left;return(0,Vt.Z)((0,Vt.Z)({},Ei),{},{left:Nn==="rtl"?[].concat((0,ci.Z)(yi.map(function(oi){return oi+Dn})),[0]):yi,right:Nn==="rtl"?Oi:[].concat((0,ci.Z)(Oi.map(function(oi){return oi+Dn})),[0]),isSticky:en})},[Dn,Ei,en]),ei=Pt(ui,Mi);return Ht.createElement("div",{style:(0,Vt.Z)({overflow:"hidden"},en?{top:hi,bottom:pi}:{}),ref:ii,className:Ee()(Ge,(0,pe.Z)({},mi,!!mi))},Ht.createElement(Bn,{style:{tableLayout:"fixed",visibility:Bt||ei?null:"hidden"}},(!Bt||!Nt||Bi)&&Ht.createElement(pr,{colWidths:ei?[].concat((0,ci.Z)(ei),[Dn]):[],columCount:Mi+1,columns:zn}),ae((0,Vt.Z)((0,Vt.Z)({},Ut),{},{stickyOffsets:_n,columns:Yn,flattenColumns:zn}))))}),Jn=Ht.memo(Ii),er=function(Mn){var Ge=Mn.cells,Bt=Mn.stickyOffsets,ti=Mn.flattenColumns,Kn=Mn.rowComponent,ui=Mn.cellComponent,Mi=Mn.onHeaderRow,Ei=Mn.index,Nn=ve(wt,["prefixCls","direction"]),si=Nn.prefixCls,hi=Nn.direction,pi;Mi&&(pi=Mi(Ge.map(function(ar){return ar.column}),Ei));var mi=It(Ge.map(function(ar){return ar.column}));return Ht.createElement(Kn,pi,Ge.map(function(ar,Nt){var ae=ar.column,Ut=Ve(ar.colStart,ar.colEnd,ti,Bt,hi),se;return ae&&ae.onHeaderCell&&(se=ar.column.onHeaderCell(ae)),Ht.createElement(ue,(0,Tt.Z)({},ar,{scope:ae.title?ar.colSpan>1?"colgroup":"col":null,ellipsis:ae.ellipsis,align:ae.align,component:ui,prefixCls:si,key:mi[Nt]},Ut,{additionalProps:se,rowType:"header"}))}))},Ji=er;function Zi(Ke){var Mn=[];function Ge(ui,Mi){var Ei=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Mn[Ei]=Mn[Ei]||[];var Nn=Mi,si=ui.filter(Boolean).map(function(hi){var pi={key:hi.key,className:hi.className||"",children:hi.title,column:hi,colStart:Nn},mi=1,ar=hi.children;return ar&&ar.length>0&&(mi=Ge(ar,Nn,Ei+1).reduce(function(Nt,ae){return Nt+ae},0),pi.hasSubColumns=!0),"colSpan"in hi&&(mi=hi.colSpan),"rowSpan"in hi&&(pi.rowSpan=hi.rowSpan),pi.colSpan=mi,pi.colEnd=pi.colStart+mi-1,Mn[Ei].push(pi),Nn+=mi,mi});return si}Ge(Ke,0);for(var Bt=Mn.length,ti=function(Mi){Mn[Mi].forEach(function(Ei){!("rowSpan"in Ei)&&!Ei.hasSubColumns&&(Ei.rowSpan=Bt-Mi)})},Kn=0;Kn<Bt;Kn+=1)ti(Kn);return Mn}var fi=function(Mn){var Ge=Mn.stickyOffsets,Bt=Mn.columns,ti=Mn.flattenColumns,Kn=Mn.onHeaderRow,ui=ve(wt,["prefixCls","getComponent"]),Mi=ui.prefixCls,Ei=ui.getComponent,Nn=Ht.useMemo(function(){return Zi(Bt)},[Bt]),si=Ei(["header","wrapper"],"thead"),hi=Ei(["header","row"],"tr"),pi=Ei(["header","cell"],"th");return Ht.createElement(si,{className:"".concat(Mi,"-thead")},Nn.map(function(mi,ar){var Nt=Ht.createElement(Ji,{key:ar,flattenColumns:ti,cells:mi,stickyOffsets:Ge,rowComponent:hi,cellComponent:pi,onHeaderRow:Kn,index:ar});return Nt}))},bn=gt(fi),En=Et(78612);function Ae(Ke,Mn,Ge){var Bt=(0,Pi.g)(Ke),ti=Bt.expandIcon,Kn=Bt.expandedRowKeys,ui=Bt.defaultExpandedRowKeys,Mi=Bt.defaultExpandAllRows,Ei=Bt.expandedRowRender,Nn=Bt.onExpand,si=Bt.onExpandedRowsChange,hi=Bt.childrenColumnName,pi=ti||Gn,mi=hi||"children",ar=Ht.useMemo(function(){return Ei?"row":Ke.expandable&&Ke.internalHooks===Mt.R&&Ke.expandable.__PARENT_RENDER_ICON__||Mn.some(function(en){return en&&(0,Jt.Z)(en)==="object"&&en[mi]})?"nest":!1},[!!Ei,Mn]),Nt=Ht.useState(function(){return ui||(Mi?Ni(Mn,Ge,mi):[])}),ae=(0,ne.Z)(Nt,2),Ut=ae[0],se=ae[1],we=Ht.useMemo(function(){return new Set(Kn||Ut||[])},[Kn,Ut]),Xe=Ht.useCallback(function(en){var hn=Ge(en,Mn.indexOf(en)),Bn,Dn=we.has(hn);Dn?(we.delete(hn),Bn=(0,ci.Z)(we)):Bn=[].concat((0,ci.Z)(we),[hn]),se(Bn),Nn&&Nn(!Dn,en),si&&si(Bn)},[Ge,we,Mn,Nn,si]);return[Bt,ar,we,pi,mi,Xe]}function Me(Ke,Mn,Ge){var Bt=Ke.map(function(ti,Kn){return Ve(Kn,Kn,Ke,Mn,Ge)});return(0,Ie.Z)(function(){return Bt},[Bt],function(ti,Kn){return!(0,ee.Z)(ti,Kn)})}function be(Ke){var Mn=(0,Ht.useRef)(Ke),Ge=(0,Ht.useState)({}),Bt=(0,ne.Z)(Ge,2),ti=Bt[1],Kn=(0,Ht.useRef)(null),ui=(0,Ht.useRef)([]);function Mi(Ei){ui.current.push(Ei);var Nn=Promise.resolve();Kn.current=Nn,Nn.then(function(){if(Kn.current===Nn){var si=ui.current,hi=Mn.current;ui.current=[],si.forEach(function(pi){Mn.current=pi(Mn.current)}),Kn.current=null,hi!==Mn.current&&ti({})}})}return(0,Ht.useEffect)(function(){return function(){Kn.current=null}},[]),[Mn.current,Mi]}function qn(Ke){var Mn=(0,Ht.useRef)(Ke||null),Ge=(0,Ht.useRef)();function Bt(){window.clearTimeout(Ge.current)}function ti(ui){Mn.current=ui,Bt(),Ge.current=window.setTimeout(function(){Mn.current=null,Ge.current=void 0},100)}function Kn(){return Mn.current}return(0,Ht.useEffect)(function(){return Bt},[]),[ti,Kn]}function ni(){var Ke=Ht.useState(-1),Mn=(0,ne.Z)(Ke,2),Ge=Mn[0],Bt=Mn[1],ti=Ht.useState(-1),Kn=(0,ne.Z)(ti,2),ui=Kn[0],Mi=Kn[1],Ei=Ht.useCallback(function(Nn,si){Bt(Nn),Mi(si)},[]);return[Ge,ui,Ei]}var Fi=Et(47273),gn=(0,Fi.Z)()?window:null;function Hn(Ke,Mn){var Ge=(0,Jt.Z)(Ke)==="object"?Ke:{},Bt=Ge.offsetHeader,ti=Bt===void 0?0:Bt,Kn=Ge.offsetSummary,ui=Kn===void 0?0:Kn,Mi=Ge.offsetScroll,Ei=Mi===void 0?0:Mi,Nn=Ge.getContainer,si=Nn===void 0?function(){return gn}:Nn,hi=si()||gn,pi=!!Ke;return Ht.useMemo(function(){return{isSticky:pi,stickyClassName:pi?"".concat(Mn,"-sticky-holder"):"",offsetHeader:ti,offsetSummary:ui,offsetScroll:Ei,container:hi}},[pi,Ei,ti,ui,Mn,hi])}function Oe(Ke,Mn,Ge){var Bt=(0,Ht.useMemo)(function(){var ti=Mn.length,Kn=function(Nn,si,hi){for(var pi=[],mi=0,ar=Nn;ar!==si;ar+=hi)pi.push(mi),Mn[ar].fixed&&(mi+=Ke[ar]||0);return pi},ui=Kn(0,ti,1),Mi=Kn(ti-1,-1,-1).reverse();return Ge==="rtl"?{left:Mi,right:ui}:{left:ui,right:Mi}},[Ke,Mn,Ge]);return Bt}var De=Oe;function ai(Ke){var Mn=Ke.className,Ge=Ke.children;return Ht.createElement("div",{className:Mn},Ge)}var qt=ai,un=Et(8224),Rn=Et(16089),Ai=Et(76846);function ln(Ke){var Mn=(0,Ai.bn)(Ke),Ge=Mn.getBoundingClientRect(),Bt=document.documentElement;return{left:Ge.left+(window.pageXOffset||Bt.scrollLeft)-(Bt.clientLeft||document.body.clientLeft||0),top:Ge.top+(window.pageYOffset||Bt.scrollTop)-(Bt.clientTop||document.body.clientTop||0)}}var yn=function(Mn,Ge){var Bt,ti,Kn=Mn.scrollBodyRef,ui=Mn.onScroll,Mi=Mn.offsetScroll,Ei=Mn.container,Nn=Mn.direction,si=ve(wt,"prefixCls"),hi=((Bt=Kn.current)===null||Bt===void 0?void 0:Bt.scrollWidth)||0,pi=((ti=Kn.current)===null||ti===void 0?void 0:ti.clientWidth)||0,mi=hi&&pi*(pi/hi),ar=Ht.useRef(),Nt=be({scrollLeft:0,isHiddenScrollBar:!0}),ae=(0,ne.Z)(Nt,2),Ut=ae[0],se=ae[1],we=Ht.useRef({delta:0,x:0}),Xe=Ht.useState(!1),en=(0,ne.Z)(Xe,2),hn=en[0],Bn=en[1],Dn=Ht.useRef(null);Ht.useEffect(function(){return function(){Rn.Z.cancel(Dn.current)}},[]);var mn=function(){Bn(!1)},ii=function(zn){zn.persist(),we.current.delta=zn.pageX-Ut.scrollLeft,we.current.x=0,Bn(!0),zn.preventDefault()},Bi=function(zn){var _n,ei=zn||((_n=window)===null||_n===void 0?void 0:_n.event),Oi=ei.buttons;if(!hn||Oi===0){hn&&Bn(!1);return}var yi=we.current.x+zn.pageX-we.current.x-we.current.delta,oi=Nn==="rtl";yi=Math.max(oi?mi-pi:0,Math.min(oi?0:pi-mi,yi));var Vn=!oi||Math.abs(yi)+Math.abs(mi)<pi;Vn&&(ui({scrollLeft:yi/pi*(hi+2)}),we.current.x=zn.pageX)},de=function(){Rn.Z.cancel(Dn.current),Dn.current=(0,Rn.Z)(function(){if(Kn.current){var zn=ln(Kn.current).top,_n=zn+Kn.current.offsetHeight,ei=Ei===window?document.documentElement.scrollTop+window.innerHeight:ln(Ei).top+Ei.clientHeight;_n-(0,$e.Z)()<=ei||zn>=ei-Mi?se(function(Oi){return(0,Vt.Z)((0,Vt.Z)({},Oi),{},{isHiddenScrollBar:!0})}):se(function(Oi){return(0,Vt.Z)((0,Vt.Z)({},Oi),{},{isHiddenScrollBar:!1})})}})},Wn=function(zn){se(function(_n){return(0,Vt.Z)((0,Vt.Z)({},_n),{},{scrollLeft:zn/hi*pi||0})})};return Ht.useImperativeHandle(Ge,function(){return{setScrollLeft:Wn,checkScrollBarVisible:de}}),Ht.useEffect(function(){var Yn=(0,un.Z)(document.body,"mouseup",mn,!1),zn=(0,un.Z)(document.body,"mousemove",Bi,!1);return de(),function(){Yn.remove(),zn.remove()}},[mi,hn]),Ht.useEffect(function(){if(Kn.current){for(var Yn=[],zn=(0,Ai.bn)(Kn.current);zn;)Yn.push(zn),zn=zn.parentElement;return Yn.forEach(function(_n){return _n.addEventListener("scroll",de,!1)}),window.addEventListener("resize",de,!1),window.addEventListener("scroll",de,!1),Ei.addEventListener("scroll",de,!1),function(){Yn.forEach(function(_n){return _n.removeEventListener("scroll",de)}),window.removeEventListener("resize",de),window.removeEventListener("scroll",de),Ei.removeEventListener("scroll",de)}}},[Ei]),Ht.useEffect(function(){Ut.isHiddenScrollBar||se(function(Yn){var zn=Kn.current;return zn?(0,Vt.Z)((0,Vt.Z)({},Yn),{},{scrollLeft:zn.scrollLeft/zn.scrollWidth*zn.clientWidth}):Yn})},[Ut.isHiddenScrollBar]),hi<=pi||!mi||Ut.isHiddenScrollBar?null:Ht.createElement("div",{style:{height:(0,$e.Z)(),width:pi,bottom:Mi},className:"".concat(si,"-sticky-scroll")},Ht.createElement("div",{onMouseDown:ii,ref:ar,className:Ee()("".concat(si,"-sticky-scroll-bar"),(0,pe.Z)({},"".concat(si,"-sticky-scroll-bar-active"),hn)),style:{width:"".concat(mi,"px"),transform:"translate3d(".concat(Ut.scrollLeft,"px, 0, 0)")}}))},li=Ht.forwardRef(yn);function bi(Ke){return null}var Ui=bi;function Di(Ke){return null}var $n=Di,wi="rc-table",dr=[],fr={};function xr(){return"No Data"}function cn(Ke,Mn){var Ge=(0,Vt.Z)({rowKey:"key",prefixCls:wi,emptyText:xr},Ke),Bt=Ge.prefixCls,ti=Ge.className,Kn=Ge.rowClassName,ui=Ge.style,Mi=Ge.data,Ei=Ge.rowKey,Nn=Ge.scroll,si=Ge.tableLayout,hi=Ge.direction,pi=Ge.title,mi=Ge.footer,ar=Ge.summary,Nt=Ge.caption,ae=Ge.id,Ut=Ge.showHeader,se=Ge.components,we=Ge.emptyText,Xe=Ge.onRow,en=Ge.onHeaderRow,hn=Ge.onScroll,Bn=Ge.internalHooks,Dn=Ge.transformColumns,mn=Ge.internalRefs,ii=Ge.tailor,Bi=Ge.getContainerWidth,de=Ge.sticky,Wn=Ge.rowHoverable,Yn=Wn===void 0?!0:Wn,zn=Mi||dr,_n=!!zn.length,ei=Bn===Mt.R,Oi=Ht.useCallback(function(Eo,Ho){return(0,ke.Z)(se,Eo)||Ho},[se]),yi=Ht.useMemo(function(){return typeof Ei=="function"?Ei:function(Eo){var Ho=Eo&&Eo[Ei];return Ho}},[Ei]),oi=Oi(["body"]),Vn=ni(),zi=(0,ne.Z)(Vn,3),lr=zi[0],mr=zi[1],Er=zi[2],Si=Ae(Ge,zn,yi),cr=(0,ne.Z)(Si,6),gr=cr[0],Pr=cr[1],Vi=cr[2],Xi=cr[3],dn=cr[4],Gi=cr[5],hr=Nn==null?void 0:Nn.x,Fr=Ht.useState(0),Or=(0,ne.Z)(Fr,2),yr=Or[0],ji=Or[1],br=(0,En.Z)((0,Vt.Z)((0,Vt.Z)((0,Vt.Z)({},Ge),gr),{},{expandable:!!gr.expandedRowRender,columnTitle:gr.columnTitle,expandedKeys:Vi,getRowKey:yi,onTriggerExpand:Gi,expandIcon:Xi,expandIconColumnIndex:gr.expandIconColumnIndex,direction:hi,scrollWidth:ei&&ii&&typeof hr=="number"?hr:null,clientWidth:yr}),ei?Dn:null),Ur=(0,ne.Z)(br,4),Jr=Ur[0],Tr=Ur[1],so=Ur[2],no=Ur[3],Wr=so!=null?so:hr,fo=Ht.useMemo(function(){return{columns:Jr,flattenColumns:Tr}},[Jr,Tr]),Mo=Ht.useRef(),_o=Ht.useRef(),io=Ht.useRef(),ta=Ht.useRef();Ht.useImperativeHandle(Mn,function(){return{nativeElement:Mo.current,scrollTo:function(Ho){var wa;if(io.current instanceof HTMLElement){var _a=Ho.index,Ka=Ho.top,Nl=Ho.key;if(an(Ka)){var ml;(ml=io.current)===null||ml===void 0||ml.scrollTo({top:Ka})}else{var Do,vo=Nl!=null?Nl:yi(zn[_a]);(Do=io.current.querySelector('[data-row-key="'.concat(vo,'"]')))===null||Do===void 0||Do.scrollIntoView()}}else(wa=io.current)!==null&&wa!==void 0&&wa.scrollTo&&io.current.scrollTo(Ho)}}});var Ao=Ht.useRef(),ca=Ht.useState(!1),No=(0,ne.Z)(ca,2),Xo=No[0],ea=No[1],Qo=Ht.useState(!1),Ro=(0,ne.Z)(Qo,2),ko=Ro[0],oa=Ro[1],Ca=be(new Map),Zo=(0,ne.Z)(Ca,2),Ia=Zo[0],Fo=Zo[1],wo=It(Tr),po=wo.map(function(Eo){return Ia.get(Eo)}),Yo=Ht.useMemo(function(){return po},[po.join("_")]),Ir=De(Yo,Tr,hi),ao=Nn&&Le(Nn.y),vr=Nn&&Le(Wr)||!!gr.fixed,Nr=vr&&Tr.some(function(Eo){var Ho=Eo.fixed;return Ho}),uo=Ht.useRef(),wr=Hn(de,Bt),vi=wr.isSticky,ia=wr.offsetHeader,me=wr.offsetSummary,kn=wr.offsetScroll,Ja=wr.stickyClassName,Qa=wr.container,pa=Ht.useMemo(function(){return ar==null?void 0:ar(zn)},[ar,zn]),Na=(ao||vi)&&Ht.isValidElement(pa)&&pa.type===Gt&&pa.props.fixed,ss,ts,Hs;ao&&(ts={overflowY:_n?"scroll":"auto",maxHeight:Nn.y}),vr&&(ss={overflowX:"auto"},ao||(ts={overflowY:"hidden"}),Hs={width:Wr===!0?"auto":Wr,minWidth:"100%"});var aa=Ht.useCallback(function(Eo,Ho){(0,Te.Z)(Mo.current)&&Fo(function(wa){if(wa.get(Eo)!==Ho){var _a=new Map(wa);return _a.set(Eo,Ho),_a}return wa})},[]),Vr=qn(null),Ha=(0,ne.Z)(Vr,2),qa=Ha[0],sa=Ha[1];function mo(Eo,Ho){Ho&&(typeof Ho=="function"?Ho(Eo):Ho.scrollLeft!==Eo&&(Ho.scrollLeft=Eo,Ho.scrollLeft!==Eo&&setTimeout(function(){Ho.scrollLeft=Eo},0)))}var fa=(0,ge.Z)(function(Eo){var Ho=Eo.currentTarget,wa=Eo.scrollLeft,_a=hi==="rtl",Ka=typeof wa=="number"?wa:Ho.scrollLeft,Nl=Ho||fr;if(!sa()||sa()===Nl){var ml;qa(Nl),mo(Ka,_o.current),mo(Ka,io.current),mo(Ka,Ao.current),mo(Ka,(ml=uo.current)===null||ml===void 0?void 0:ml.setScrollLeft)}var Do=Ho||_o.current;if(Do){var vo=ei&&ii&&typeof Wr=="number"?Wr:Do.scrollWidth,Za=Do.clientWidth;if(vo===Za){ea(!1),oa(!1);return}_a?(ea(-Ka<vo-Za),oa(-Ka>0)):(ea(Ka>0),oa(Ka<vo-Za))}}),ls=(0,ge.Z)(function(Eo){fa(Eo),hn==null||hn(Eo)}),ra=function(){if(vr&&io.current){var Ho;fa({currentTarget:(0,Ai.bn)(io.current),scrollLeft:(Ho=io.current)===null||Ho===void 0?void 0:Ho.scrollLeft})}else ea(!1),oa(!1)},us=function(Ho){var wa,_a=Ho.width;(wa=uo.current)===null||wa===void 0||wa.checkScrollBarVisible();var Ka=Mo.current?Mo.current.offsetWidth:_a;ei&&Bi&&Mo.current&&(Ka=Bi(Mo.current,Ka)||Ka),Ka!==yr&&(ra(),ji(Ka))},Ta=Ht.useRef(!1);Ht.useEffect(function(){Ta.current&&ra()},[vr,Mi,Jr.length]),Ht.useEffect(function(){Ta.current=!0},[]);var El=Ht.useState(0),zo=(0,ne.Z)(El,2),La=zo[0],To=zo[1],Uo=Ht.useState(!0),ua=(0,ne.Z)(Uo,2),ga=ua[0],Ko=ua[1];Ht.useEffect(function(){(!ii||!ei)&&(io.current instanceof Element?To((0,$e.o)(io.current).width):To((0,$e.o)(ta.current).width)),Ko((0,Ne.G)("position","sticky"))},[]),Ht.useEffect(function(){ei&&mn&&(mn.body.current=io.current)});var fl=Ht.useCallback(function(Eo){return Ht.createElement(Ht.Fragment,null,Ht.createElement(bn,Eo),Na==="top"&&Ht.createElement(Se,Eo,pa))},[Na,pa]),Qr=Ht.useCallback(function(Eo){return Ht.createElement(Se,Eo,pa)},[pa]),pu=Oi(["table"],"table"),Co=Ht.useMemo(function(){return si||(Nr?Wr==="max-content"?"auto":"fixed":ao||vi||Tr.some(function(Eo){var Ho=Eo.ellipsis;return Ho})?"fixed":"auto")},[ao,Nr,Tr,si,vi]),Gl,Qs={colWidths:Yo,columCount:Tr.length,stickyOffsets:Ir,onHeaderRow:en,fixHeader:ao,scroll:Nn},Fl=Ht.useMemo(function(){return _n?null:typeof we=="function"?we():we},[_n,we]),mu=Ht.createElement(Ri,{data:zn,measureColumnWidth:ao||vr||vi}),vu=Ht.createElement(pr,{colWidths:Tr.map(function(Eo){var Ho=Eo.width;return Ho}),columns:Tr}),Zs=Nt!=null?Ht.createElement("caption",{className:"".concat(Bt,"-caption")},Nt):void 0,Vl=(0,fn.Z)(Ge,{data:!0}),Wo=(0,fn.Z)(Ge,{aria:!0});if(ao||vi){var Ws;typeof oi=="function"?(Ws=oi(zn,{scrollbarSize:La,ref:io,onScroll:fa}),Qs.colWidths=Tr.map(function(Eo,Ho){var wa=Eo.width,_a=Ho===Tr.length-1?wa-La:wa;return typeof _a=="number"&&!Number.isNaN(_a)?_a:0})):Ws=Ht.createElement("div",{style:(0,Vt.Z)((0,Vt.Z)({},ss),ts),onScroll:ls,ref:io,className:Ee()("".concat(Bt,"-body"))},Ht.createElement(pu,(0,Tt.Z)({style:(0,Vt.Z)((0,Vt.Z)({},Hs),{},{tableLayout:Co})},Wo),Zs,vu,mu,!Na&&pa&&Ht.createElement(Se,{stickyOffsets:Ir,flattenColumns:Tr},pa)));var yu=(0,Vt.Z)((0,Vt.Z)((0,Vt.Z)({noData:!zn.length,maxContentScroll:vr&&Wr==="max-content"},Qs),fo),{},{direction:hi,stickyClassName:Ja,onScroll:fa});Gl=Ht.createElement(Ht.Fragment,null,Ut!==!1&&Ht.createElement(Jn,(0,Tt.Z)({},yu,{stickyTopOffset:ia,className:"".concat(Bt,"-header"),ref:_o}),fl),Ws,Na&&Na!=="top"&&Ht.createElement(Jn,(0,Tt.Z)({},yu,{stickyBottomOffset:me,className:"".concat(Bt,"-summary"),ref:Ao}),Qr),vi&&io.current&&io.current instanceof Element&&Ht.createElement(li,{ref:uo,offsetScroll:kn,scrollBodyRef:io,onScroll:fa,container:Qa,direction:hi}))}else Gl=Ht.createElement("div",{style:(0,Vt.Z)((0,Vt.Z)({},ss),ts),className:Ee()("".concat(Bt,"-content")),onScroll:fa,ref:io},Ht.createElement(pu,(0,Tt.Z)({style:(0,Vt.Z)((0,Vt.Z)({},Hs),{},{tableLayout:Co})},Wo),Zs,vu,Ut!==!1&&Ht.createElement(bn,(0,Tt.Z)({},Qs,fo)),mu,pa&&Ht.createElement(Se,{stickyOffsets:Ir,flattenColumns:Tr},pa)));var gl=Ht.createElement("div",(0,Tt.Z)({className:Ee()(Bt,ti,(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat(Bt,"-rtl"),hi==="rtl"),"".concat(Bt,"-ping-left"),Xo),"".concat(Bt,"-ping-right"),ko),"".concat(Bt,"-layout-fixed"),si==="fixed"),"".concat(Bt,"-fixed-header"),ao),"".concat(Bt,"-fixed-column"),Nr),"".concat(Bt,"-fixed-column-gapped"),Nr&&no),"".concat(Bt,"-scroll-horizontal"),vr),"".concat(Bt,"-has-fix-left"),Tr[0]&&Tr[0].fixed),"".concat(Bt,"-has-fix-right"),Tr[Tr.length-1]&&Tr[Tr.length-1].fixed==="right")),style:ui,id:ae,ref:Mo},Vl),pi&&Ht.createElement(qt,{className:"".concat(Bt,"-title")},pi(zn)),Ht.createElement("div",{ref:ta,className:"".concat(Bt,"-container")},Gl),mi&&Ht.createElement(qt,{className:"".concat(Bt,"-footer")},mi(zn)));vr&&(gl=Ht.createElement(re.Z,{onResize:us},gl));var Fu=Me(Tr,Ir,hi),pl=Ht.useMemo(function(){return{scrollX:Wr,prefixCls:Bt,getComponent:Oi,scrollbarSize:La,direction:hi,fixedInfoList:Fu,isSticky:vi,supportSticky:ga,componentWidth:yr,fixHeader:ao,fixColumn:Nr,horizonScroll:vr,tableLayout:Co,rowClassName:Kn,expandedRowClassName:gr.expandedRowClassName,expandIcon:Xi,expandableType:Pr,expandRowByClick:gr.expandRowByClick,expandedRowRender:gr.expandedRowRender,onTriggerExpand:Gi,expandIconColumnIndex:gr.expandIconColumnIndex,indentSize:gr.indentSize,allColumnsFixedLeft:Tr.every(function(Eo){return Eo.fixed==="left"}),emptyNode:Fl,columns:Jr,flattenColumns:Tr,onColumnResize:aa,hoverStartRow:lr,hoverEndRow:mr,onHover:Er,rowExpandable:gr.rowExpandable,onRow:Xe,getRowKey:yi,expandedKeys:Vi,childrenColumnName:dn,rowHoverable:Yn}},[Wr,Bt,Oi,La,hi,Fu,vi,ga,yr,ao,Nr,vr,Co,Kn,gr.expandedRowClassName,Xi,Pr,gr.expandRowByClick,gr.expandedRowRender,Gi,gr.expandIconColumnIndex,gr.indentSize,Fl,Jr,Tr,aa,lr,mr,Er,gr.rowExpandable,Xe,yi,Vi,dn,Yn]);return Ht.createElement(wt.Provider,{value:pl},gl)}var _r=Ht.forwardRef(cn);function kr(Ke){return lt(_r,Ke)}var to=kr();to.EXPAND_COLUMN=Mt.w,to.INTERNAL_HOOKS=Mt.R,to.Column=Ui,to.ColumnGroup=$n,to.Summary=Be;var rn=to,gi=Et(45680),Ki=Re(null),nr=Re(null);function Qi(Ke,Mn,Ge){var Bt=Mn||1;return Ge[Ke+Bt]-(Ge[Ke]||0)}function rr(Ke){var Mn=Ke.rowInfo,Ge=Ke.column,Bt=Ke.colIndex,ti=Ke.indent,Kn=Ke.index,ui=Ke.component,Mi=Ke.renderIndex,Ei=Ke.record,Nn=Ke.style,si=Ke.className,hi=Ke.inverse,pi=Ke.getHeight,mi=Ge.render,ar=Ge.dataIndex,Nt=Ge.className,ae=Ge.width,Ut=ve(nr,["columnsOffset"]),se=Ut.columnsOffset,we=ki(Mn,Ge,Bt,ti,Kn),Xe=we.key,en=we.fixedInfo,hn=we.appendCellNode,Bn=we.additionalCellProps,Dn=Bn.style,mn=Bn.colSpan,ii=mn===void 0?1:mn,Bi=Bn.rowSpan,de=Bi===void 0?1:Bi,Wn=Bt-1,Yn=Qi(Wn,ii,se),zn=ii>1?ae-Yn:0,_n=(0,Vt.Z)((0,Vt.Z)((0,Vt.Z)({},Dn),Nn),{},{flex:"0 0 ".concat(Yn,"px"),width:"".concat(Yn,"px"),marginRight:zn,pointerEvents:"auto"}),ei=Ht.useMemo(function(){return hi?de<=1:ii===0||de===0||de>1},[de,ii,hi]);ei?_n.visibility="hidden":hi&&(_n.height=pi==null?void 0:pi(de));var Oi=ei?function(){return null}:mi,yi={};return(de===0||ii===0)&&(yi.rowSpan=1,yi.colSpan=1),Ht.createElement(ue,(0,Tt.Z)({className:Ee()(Nt,si),ellipsis:Ge.ellipsis,align:Ge.align,scope:Ge.rowScope,component:ui,prefixCls:Mn.prefixCls,key:Xe,record:Ei,index:Kn,renderIndex:Mi,dataIndex:ar,render:Oi,shouldCellUpdate:Ge.shouldCellUpdate},en,{appendNode:hn,additionalProps:(0,Vt.Z)((0,Vt.Z)({},Bn),{},{style:_n},yi)}))}var Zr=rr,Br=["data","index","className","rowKey","style","extra","getHeight"],Hr=Ht.forwardRef(function(Ke,Mn){var Ge=Ke.data,Bt=Ke.index,ti=Ke.className,Kn=Ke.rowKey,ui=Ke.style,Mi=Ke.extra,Ei=Ke.getHeight,Nn=(0,yt.Z)(Ke,Br),si=Ge.record,hi=Ge.indent,pi=Ge.index,mi=ve(wt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ar=mi.scrollX,Nt=mi.flattenColumns,ae=mi.prefixCls,Ut=mi.fixColumn,se=mi.componentWidth,we=ve(Ki,["getComponent"]),Xe=we.getComponent,en=On(si,Kn,Bt,hi),hn=Xe(["body","row"],"div"),Bn=Xe(["body","cell"],"div"),Dn=en.rowSupportExpand,mn=en.expanded,ii=en.rowProps,Bi=en.expandedRowRender,de=en.expandedRowClassName,Wn;if(Dn&&mn){var Yn=Bi(si,Bt,hi+1,mn),zn=xi(de,si,Bt,hi),_n={};Ut&&(_n={style:(0,pe.Z)({},"--virtual-width","".concat(se,"px"))});var ei="".concat(ae,"-expanded-row-cell");Wn=Ht.createElement(hn,{className:Ee()("".concat(ae,"-expanded-row"),"".concat(ae,"-expanded-row-level-").concat(hi+1),zn)},Ht.createElement(ue,{component:Bn,prefixCls:ae,className:Ee()(ei,(0,pe.Z)({},"".concat(ei,"-fixed"),Ut)),additionalProps:_n},Yn))}var Oi=(0,Vt.Z)((0,Vt.Z)({},ui),{},{width:ar});Mi&&(Oi.position="absolute",Oi.pointerEvents="none");var yi=Ht.createElement(hn,(0,Tt.Z)({},ii,Nn,{"data-row-key":Kn,ref:Dn?null:Mn,className:Ee()(ti,"".concat(ae,"-row"),ii==null?void 0:ii.className,(0,pe.Z)({},"".concat(ae,"-row-extra"),Mi)),style:(0,Vt.Z)((0,Vt.Z)({},Oi),ii==null?void 0:ii.style)}),Nt.map(function(oi,Vn){return Ht.createElement(Zr,{key:Vn,component:Bn,rowInfo:en,column:oi,colIndex:Vn,indent:hi,index:Bt,renderIndex:pi,record:si,inverse:Mi,getHeight:Ei})}));return Dn?Ht.createElement("div",{ref:Mn},yi,Wn):yi}),zr=gt(Hr),pn=zr,Yr=Ht.forwardRef(function(Ke,Mn){var Ge=Ke.data,Bt=Ke.onScroll,ti=ve(wt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Kn=ti.flattenColumns,ui=ti.onColumnResize,Mi=ti.getRowKey,Ei=ti.expandedKeys,Nn=ti.prefixCls,si=ti.childrenColumnName,hi=ti.scrollX,pi=ti.direction,mi=ve(Ki),ar=mi.sticky,Nt=mi.scrollY,ae=mi.listItemHeight,Ut=mi.getComponent,se=mi.onScroll,we=Ht.useRef(),Xe=He(Ge,si,Ei,Mi),en=Ht.useMemo(function(){var Wn=0;return Kn.map(function(Yn){var zn=Yn.width,_n=Yn.key;return Wn+=zn,[_n,zn,Wn]})},[Kn]),hn=Ht.useMemo(function(){return en.map(function(Wn){return Wn[2]})},[en]);Ht.useEffect(function(){en.forEach(function(Wn){var Yn=(0,ne.Z)(Wn,2),zn=Yn[0],_n=Yn[1];ui(zn,_n)})},[en]),Ht.useImperativeHandle(Mn,function(){var Wn,Yn={scrollTo:function(_n){var ei;(ei=we.current)===null||ei===void 0||ei.scrollTo(_n)},nativeElement:(Wn=we.current)===null||Wn===void 0?void 0:Wn.nativeElement};return Object.defineProperty(Yn,"scrollLeft",{get:function(){var _n;return((_n=we.current)===null||_n===void 0?void 0:_n.getScrollInfo().x)||0},set:function(_n){var ei;(ei=we.current)===null||ei===void 0||ei.scrollTo({left:_n})}}),Yn});var Bn=function(Yn,zn){var _n,ei=(_n=Xe[zn])===null||_n===void 0?void 0:_n.record,Oi=Yn.onCell;if(Oi){var yi,oi=Oi(ei,zn);return(yi=oi==null?void 0:oi.rowSpan)!==null&&yi!==void 0?yi:1}return 1},Dn=function(Yn){var zn=Yn.start,_n=Yn.end,ei=Yn.getSize,Oi=Yn.offsetY;if(_n<0)return null;for(var yi=Kn.filter(function(Xi){return Bn(Xi,zn)===0}),oi=zn,Vn=function(dn){if(yi=yi.filter(function(Gi){return Bn(Gi,dn)===0}),!yi.length)return oi=dn,1},zi=zn;zi>=0&&!Vn(zi);zi-=1);for(var lr=Kn.filter(function(Xi){return Bn(Xi,_n)!==1}),mr=_n,Er=function(dn){if(lr=lr.filter(function(Gi){return Bn(Gi,dn)!==1}),!lr.length)return mr=Math.max(dn-1,_n),1},Si=_n;Si<Xe.length&&!Er(Si);Si+=1);for(var cr=[],gr=function(dn){var Gi=Xe[dn];if(!Gi)return 1;Kn.some(function(hr){return Bn(hr,dn)>1})&&cr.push(dn)},Pr=oi;Pr<=mr;Pr+=1)gr(Pr);var Vi=cr.map(function(Xi){var dn=Xe[Xi],Gi=Mi(dn.record,Xi),hr=function(yr){var ji=Xi+yr-1,br=Mi(Xe[ji].record,ji),Ur=ei(Gi,br);return Ur.bottom-Ur.top},Fr=ei(Gi);return Ht.createElement(pn,{key:Xi,data:dn,rowKey:Gi,index:Xi,style:{top:-Oi+Fr.top},extra:!0,getHeight:hr})});return Vi},mn=Ht.useMemo(function(){return{columnsOffset:hn}},[hn]),ii="".concat(Nn,"-tbody"),Bi=Ut(["body","wrapper"]),de={};return ar&&(de.position="sticky",de.bottom=0,(0,Jt.Z)(ar)==="object"&&ar.offsetScroll&&(de.bottom=ar.offsetScroll)),Ht.createElement(nr.Provider,{value:mn},Ht.createElement(gi.Z,{fullHeight:!1,ref:we,prefixCls:"".concat(ii,"-virtual"),styles:{horizontalScrollBar:de},className:ii,height:Nt,itemHeight:ae||24,data:Xe,itemKey:function(Yn){return Mi(Yn.record)},component:Bi,scrollWidth:hi,direction:pi,onVirtualScroll:function(Yn){var zn,_n=Yn.x;Bt({currentTarget:(zn=we.current)===null||zn===void 0?void 0:zn.nativeElement,scrollLeft:_n})},onScroll:se,extraRender:Dn},function(Wn,Yn,zn){var _n=Mi(Wn.record,Yn);return Ht.createElement(pn,{data:Wn,rowKey:_n,index:Yn,style:zn.style})}))}),Ln=gt(Yr),_i=Ln,or=function(Mn,Ge){var Bt=Ge.ref,ti=Ge.onScroll;return Ht.createElement(_i,{ref:Bt,data:Mn,onScroll:ti})};function Cr(Ke,Mn){var Ge=Ke.data,Bt=Ke.columns,ti=Ke.scroll,Kn=Ke.sticky,ui=Ke.prefixCls,Mi=ui===void 0?wi:ui,Ei=Ke.className,Nn=Ke.listItemHeight,si=Ke.components,hi=Ke.onScroll,pi=ti||{},mi=pi.x,ar=pi.y;typeof mi!="number"&&(mi=1),typeof ar!="number"&&(ar=500);var Nt=(0,Sn.zX)(function(se,we){return(0,ke.Z)(si,se)||we}),ae=(0,Sn.zX)(hi),Ut=Ht.useMemo(function(){return{sticky:Kn,scrollY:ar,listItemHeight:Nn,getComponent:Nt,onScroll:ae}},[Kn,ar,Nn,Nt,ae]);return Ht.createElement(Ki.Provider,{value:Ut},Ht.createElement(rn,(0,Tt.Z)({},Ke,{className:Ee()(Ei,"".concat(Mi,"-virtual")),scroll:(0,Vt.Z)((0,Vt.Z)({},ti),{},{x:mi}),components:(0,Vt.Z)((0,Vt.Z)({},si),{},{body:Ge!=null&&Ge.length?or:void 0}),columns:Bt,internalHooks:Mt.R,tailor:!0,ref:Mn})))}var Po=Ht.forwardRef(Cr);function co(Ke){return lt(Po,Ke)}var Kr=co(),eo=null},90494:function(An,Un,Et){"use strict";Et.d(Un,{g:function(){return Ht},v:function(){return ee}});var Mt=Et(77321),ne=Et(74416),ge=Et(48736),xe=["expandable"],ee="RC_TABLE_INTERNAL_COL_DEFINE";function Ht(oe){var Re=oe.expandable,ve=(0,ne.Z)(oe,xe),Tt;return"expandable"in oe?Tt=(0,Mt.Z)((0,Mt.Z)({},ve),Re):Tt=ve,Tt.showExpandColumn===!1&&(Tt.expandIconColumnIndex=-1),Tt}},22711:function(An,Un,Et){"use strict";Et.r(Un),Et.d(Un,{ResizableTextArea:function(){return ce},default:function(){return wn}});var Mt=Et(72308),ne=Et(49618),ge=Et(77321),xe=Et(80702),ee=Et(52487),Ht=Et(74416),oe=Et(92310),Re=Et.n(oe),ve=Et(36901),Tt=Et(66003),Ue=Et(30292),ie=Et(18929),Je=Et(59301),Ot=Et(62853),et=Et(29301),nt=Et(34280),ct=Et(16089),lt=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,gt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],mt={},St;function wt(on){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We=on.getAttribute("id")||on.getAttribute("data-reactid")||on.getAttribute("name");if(qe&&mt[We])return mt[We];var he=window.getComputedStyle(on),It=he.getPropertyValue("box-sizing")||he.getPropertyValue("-moz-box-sizing")||he.getPropertyValue("-webkit-box-sizing"),Le=parseFloat(he.getPropertyValue("padding-bottom"))+parseFloat(he.getPropertyValue("padding-top")),an=parseFloat(he.getPropertyValue("border-bottom-width"))+parseFloat(he.getPropertyValue("border-top-width")),Ze=gt.map(function(nn){return"".concat(nn,":").concat(he.getPropertyValue(nn))}).join(";"),Ce={sizingStyle:Ze,paddingSize:Le,borderSize:an,boxSizing:It};return qe&&We&&(mt[We]=Ce),Ce}function zt(on){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;St||(St=document.createElement("textarea"),St.setAttribute("tab-index","-1"),St.setAttribute("aria-hidden","true"),St.setAttribute("name","hiddenTextarea"),document.body.appendChild(St)),on.getAttribute("wrap")?St.setAttribute("wrap",on.getAttribute("wrap")):St.removeAttribute("wrap");var It=wt(on,qe),Le=It.paddingSize,an=It.borderSize,Ze=It.boxSizing,Ce=It.sizingStyle;St.setAttribute("style","".concat(Ce,";").concat(lt)),St.value=on.value||on.placeholder||"";var nn=void 0,Ye=void 0,Sn,Fe=St.scrollHeight;if(Ze==="border-box"?Fe+=an:Ze==="content-box"&&(Fe-=Le),We!==null||he!==null){St.value=" ";var vn=St.scrollHeight-Le;We!==null&&(nn=vn*We,Ze==="border-box"&&(nn=nn+Le+an),Fe=Math.max(nn,Fe)),he!==null&&(Ye=vn*he,Ze==="border-box"&&(Ye=Ye+Le+an),Sn=Fe>Ye?"":"hidden",Fe=Math.min(Ye,Fe))}var ue={height:Fe,overflowY:Sn,resize:"none"};return nn&&(ue.minHeight=nn),Ye&&(ue.maxHeight=Ye),ue}var Wt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$t=0,Jt=1,Vt=2,pe=Je.forwardRef(function(on,qe){var We=on,he=We.prefixCls,It=We.defaultValue,Le=We.value,an=We.autoSize,Ze=We.onResize,Ce=We.className,nn=We.style,Ye=We.disabled,Sn=We.onChange,Fe=We.onInternalAutoSize,vn=(0,Ht.Z)(We,Wt),ue=(0,ie.Z)(It,{value:Le,postState:function(tr){return tr!=null?tr:""}}),Ve=(0,ee.Z)(ue,2),In=Ve[0],Dt=Ve[1],Ct=function(tr){Dt(tr.target.value),Sn==null||Sn(tr)},yt=Je.useRef();Je.useImperativeHandle(qe,function(){return{textArea:yt.current}});var kt=Je.useMemo(function(){return an&&(0,Ot.Z)(an)==="object"?[an.minRows,an.maxRows]:[]},[an]),jt=(0,ee.Z)(kt,2),bt=jt[0],Gt=jt[1],fe=!!an,Se=function(){try{if(document.activeElement===yt.current){var tr=yt.current,Qe=tr.selectionStart,sn=tr.selectionEnd,Qn=tr.scrollTop;yt.current.setSelectionRange(Qe,sn),yt.current.scrollTop=Qn}}catch(Li){}},Be=Je.useState(Vt),re=(0,ee.Z)(Be,2),Te=re[0],Ne=re[1],$e=Je.useState(),fn=(0,ee.Z)($e,2),tn=fn[0],He=fn[1],On=function(){Ne($t)};(0,nt.Z)(function(){fe&&On()},[Le,bt,Gt,fe]),(0,nt.Z)(function(){if(Te===$t)Ne(Jt);else if(Te===Jt){var ki=zt(yt.current,!1,bt,Gt);Ne(Vt),He(ki)}else Se()},[Te]);var Xn=Je.useRef(),Pn=function(){ct.Z.cancel(Xn.current)},Gn=function(tr){Te===Vt&&(Ze==null||Ze(tr),an&&(Pn(),Xn.current=(0,ct.Z)(function(){On()})))};Je.useEffect(function(){return Pn},[]);var Ni=fe?tn:null,xi=(0,ge.Z)((0,ge.Z)({},nn),Ni);return(Te===$t||Te===Jt)&&(xi.overflowY="hidden",xi.overflowX="hidden"),Je.createElement(et.Z,{onResize:Gn,disabled:!(an||Ze)},Je.createElement("textarea",(0,Mt.Z)({},vn,{ref:yt,style:xi,className:Re()(he,Ce,(0,ne.Z)({},"".concat(he,"-disabled"),Ye)),disabled:Ye,value:In,onChange:Ct})))}),ce=pe,Ee=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ie=Je.forwardRef(function(on,qe){var We,he=on.defaultValue,It=on.value,Le=on.onFocus,an=on.onBlur,Ze=on.onChange,Ce=on.allowClear,nn=on.maxLength,Ye=on.onCompositionStart,Sn=on.onCompositionEnd,Fe=on.suffix,vn=on.prefixCls,ue=vn===void 0?"rc-textarea":vn,Ve=on.showCount,In=on.count,Dt=on.className,Ct=on.style,yt=on.disabled,kt=on.hidden,jt=on.classNames,bt=on.styles,Gt=on.onResize,fe=on.onClear,Se=on.onPressEnter,Be=on.readOnly,re=on.autoSize,Te=on.onKeyDown,Ne=(0,Ht.Z)(on,Ee),$e=(0,ie.Z)(he,{value:It,defaultValue:he}),fn=(0,ee.Z)($e,2),tn=fn[0],He=fn[1],On=tn==null?"":String(tn),Xn=Je.useState(!1),Pn=(0,ee.Z)(Xn,2),Gn=Pn[0],Ni=Pn[1],xi=Je.useRef(!1),ki=Je.useState(null),tr=(0,ee.Z)(ki,2),Qe=tr[0],sn=tr[1],Qn=(0,Je.useRef)(null),Li=(0,Je.useRef)(null),Ri=function(){var Oe;return(Oe=Li.current)===null||Oe===void 0?void 0:Oe.textArea},Pi=function(){Ri().focus()};(0,Je.useImperativeHandle)(qe,function(){var Hn;return{resizableTextArea:Li.current,focus:Pi,blur:function(){Ri().blur()},nativeElement:((Hn=Qn.current)===null||Hn===void 0?void 0:Hn.nativeElement)||Ri()}}),(0,Je.useEffect)(function(){Ni(function(Hn){return!yt&&Hn})},[yt]);var ur=Je.useState(null),ir=(0,ee.Z)(ur,2),pr=ir[0],ci=ir[1];Je.useEffect(function(){if(pr){var Hn;(Hn=Ri()).setSelectionRange.apply(Hn,(0,xe.Z)(pr))}},[pr]);var qi=(0,Tt.Z)(In,Ve),Pt=(We=qi.max)!==null&&We!==void 0?We:nn,Ii=Number(Pt)>0,Jn=qi.strategy(On),er=!!Pt&&Jn>Pt,Ji=function(Oe,De){var ai=De;!xi.current&&qi.exceedFormatter&&qi.max&&qi.strategy(De)>qi.max&&(ai=qi.exceedFormatter(De,{max:qi.max}),De!==ai&&ci([Ri().selectionStart||0,Ri().selectionEnd||0])),He(ai),(0,Ue.rJ)(Oe.currentTarget,Oe,Ze,ai)},Zi=function(Oe){xi.current=!0,Ye==null||Ye(Oe)},fi=function(Oe){xi.current=!1,Ji(Oe,Oe.currentTarget.value),Sn==null||Sn(Oe)},bn=function(Oe){Ji(Oe,Oe.target.value)},En=function(Oe){Oe.key==="Enter"&&Se&&Se(Oe),Te==null||Te(Oe)},Ae=function(Oe){Ni(!0),Le==null||Le(Oe)},Me=function(Oe){Ni(!1),an==null||an(Oe)},be=function(Oe){He(""),Pi(),(0,Ue.rJ)(Ri(),Oe,Ze)},qn=Fe,ni;qi.show&&(qi.showFormatter?ni=qi.showFormatter({value:On,count:Jn,maxLength:Pt}):ni="".concat(Jn).concat(Ii?" / ".concat(Pt):""),qn=Je.createElement(Je.Fragment,null,qn,Je.createElement("span",{className:Re()("".concat(ue,"-data-count"),jt==null?void 0:jt.count),style:bt==null?void 0:bt.count},ni)));var Fi=function(Oe){var De;Gt==null||Gt(Oe),(De=Ri())!==null&&De!==void 0&&De.style.height&&sn(!0)},gn=!re&&!Ve&&!Ce;return Je.createElement(ve.BaseInput,{ref:Qn,value:On,allowClear:Ce,handleReset:be,suffix:qn,prefixCls:ue,classNames:(0,ge.Z)((0,ge.Z)({},jt),{},{affixWrapper:Re()(jt==null?void 0:jt.affixWrapper,(0,ne.Z)((0,ne.Z)({},"".concat(ue,"-show-count"),Ve),"".concat(ue,"-textarea-allow-clear"),Ce))}),disabled:yt,focused:Gn,className:Re()(Dt,er&&"".concat(ue,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},Ct),Qe&&!gn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ni=="string"?ni:void 0}},hidden:kt,readOnly:Be,onClear:fe},Je.createElement(ce,(0,Mt.Z)({},Ne,{autoSize:re,maxLength:nn,onKeyDown:En,onChange:bn,onFocus:Ae,onBlur:Me,onCompositionStart:Zi,onCompositionEnd:fi,className:Re()(jt==null?void 0:jt.textarea),style:(0,ge.Z)((0,ge.Z)({},bt==null?void 0:bt.textarea),{},{resize:Ct==null?void 0:Ct.resize}),disabled:yt,prefixCls:ue,onResize:Fi,ref:Li,readOnly:Be})))}),ke=Ie,wn=ke},639:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return mt}});var Mt=Et(72308),ne=Et(49618),ge=Et(77321),xe=Et(52487),ee=Et(74416),Ht=Et(59301),oe=Et(92310),Re=Et.n(oe),ve=Et(26112),Tt=Et(30699),Ue=function(wt){for(var zt=wt.prefixCls,Wt=wt.level,$t=wt.isStart,Jt=wt.isEnd,Vt="".concat(zt,"-indent-unit"),pe=[],ce=0;ce<Wt;ce+=1)pe.push(Ht.createElement("span",{key:ce,className:Re()(Vt,(0,ne.Z)((0,ne.Z)({},"".concat(Vt,"-start"),$t[ce]),"".concat(Vt,"-end"),Jt[ce]))}));return Ht.createElement("span",{"aria-hidden":"true",className:"".concat(zt,"-indent")},pe)},ie=Ht.memo(Ue),Je=Et(65065),Ot=Et(34061),et=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],nt="open",ct="close",lt="---",gt=function(wt){var zt,Wt,$t,Jt=wt.eventKey,Vt=wt.className,pe=wt.style,ce=wt.dragOver,Ee=wt.dragOverGapTop,Ie=wt.dragOverGapBottom,ke=wt.isLeaf,wn=wt.isStart,on=wt.isEnd,qe=wt.expanded,We=wt.selected,he=wt.checked,It=wt.halfChecked,Le=wt.loading,an=wt.domRef,Ze=wt.active,Ce=wt.data,nn=wt.onMouseMove,Ye=wt.selectable,Sn=(0,ee.Z)(wt,et),Fe=Ht.useContext(Tt.k),vn=Ht.useContext(Tt.y),ue=Ht.useRef(null),Ve=Ht.useState(!1),In=(0,xe.Z)(Ve,2),Dt=In[0],Ct=In[1],yt=!!(Fe.disabled||wt.disabled||(zt=vn.nodeDisabled)!==null&&zt!==void 0&&zt.call(vn,Ce)),kt=Ht.useMemo(function(){return!Fe.checkable||wt.checkable===!1?!1:Fe.checkable},[Fe.checkable,wt.checkable]),jt=function(Jn){yt||Fe.onNodeSelect(Jn,(0,Ot.F)(wt))},bt=function(Jn){yt||!kt||wt.disableCheckbox||Fe.onNodeCheck(Jn,(0,Ot.F)(wt),!he)},Gt=Ht.useMemo(function(){return typeof Ye=="boolean"?Ye:Fe.selectable},[Ye,Fe.selectable]),fe=function(Jn){Fe.onNodeClick(Jn,(0,Ot.F)(wt)),Gt?jt(Jn):bt(Jn)},Se=function(Jn){Fe.onNodeDoubleClick(Jn,(0,Ot.F)(wt))},Be=function(Jn){Fe.onNodeMouseEnter(Jn,(0,Ot.F)(wt))},re=function(Jn){Fe.onNodeMouseLeave(Jn,(0,Ot.F)(wt))},Te=function(Jn){Fe.onNodeContextMenu(Jn,(0,Ot.F)(wt))},Ne=Ht.useMemo(function(){return!!(Fe.draggable&&(!Fe.draggable.nodeDraggable||Fe.draggable.nodeDraggable(Ce)))},[Fe.draggable,Ce]),$e=function(Jn){Jn.stopPropagation(),Ct(!0),Fe.onNodeDragStart(Jn,wt);try{Jn.dataTransfer.setData("text/plain","")}catch(er){}},fn=function(Jn){Jn.preventDefault(),Jn.stopPropagation(),Fe.onNodeDragEnter(Jn,wt)},tn=function(Jn){Jn.preventDefault(),Jn.stopPropagation(),Fe.onNodeDragOver(Jn,wt)},He=function(Jn){Jn.stopPropagation(),Fe.onNodeDragLeave(Jn,wt)},On=function(Jn){Jn.stopPropagation(),Ct(!1),Fe.onNodeDragEnd(Jn,wt)},Xn=function(Jn){Jn.preventDefault(),Jn.stopPropagation(),Ct(!1),Fe.onNodeDrop(Jn,wt)},Pn=function(Jn){Le||Fe.onNodeExpand(Jn,(0,Ot.F)(wt))},Gn=Ht.useMemo(function(){var Ii=(0,Je.Z)(Fe.keyEntities,Jt)||{},Jn=Ii.children;return!!(Jn||[]).length},[Fe.keyEntities,Jt]),Ni=Ht.useMemo(function(){return ke===!1?!1:ke||!Fe.loadData&&!Gn||Fe.loadData&&wt.loaded&&!Gn},[ke,Fe.loadData,Gn,wt.loaded]);Ht.useEffect(function(){Le||typeof Fe.loadData=="function"&&qe&&!Ni&&!wt.loaded&&Fe.onNodeLoad((0,Ot.F)(wt))},[Le,Fe.loadData,Fe.onNodeLoad,qe,Ni,wt]);var xi=Ht.useMemo(function(){var Ii;return(Ii=Fe.draggable)!==null&&Ii!==void 0&&Ii.icon?Ht.createElement("span",{className:"".concat(Fe.prefixCls,"-draggable-icon")},Fe.draggable.icon):null},[Fe.draggable]),ki=function(Jn){var er=wt.switcherIcon||Fe.switcherIcon;return typeof er=="function"?er((0,ge.Z)((0,ge.Z)({},wt),{},{isLeaf:Jn})):er},tr=function(){if(Ni){var Jn=ki(!0);return Jn!==!1?Ht.createElement("span",{className:Re()("".concat(Fe.prefixCls,"-switcher"),"".concat(Fe.prefixCls,"-switcher-noop"))},Jn):null}var er=ki(!1);return er!==!1?Ht.createElement("span",{onClick:Pn,className:Re()("".concat(Fe.prefixCls,"-switcher"),"".concat(Fe.prefixCls,"-switcher_").concat(qe?nt:ct))},er):null},Qe=Ht.useMemo(function(){if(!kt)return null;var Ii=typeof kt!="boolean"?kt:null;return Ht.createElement("span",{className:Re()("".concat(Fe.prefixCls,"-checkbox"),(0,ne.Z)((0,ne.Z)((0,ne.Z)({},"".concat(Fe.prefixCls,"-checkbox-checked"),he),"".concat(Fe.prefixCls,"-checkbox-indeterminate"),!he&&It),"".concat(Fe.prefixCls,"-checkbox-disabled"),yt||wt.disableCheckbox)),onClick:bt,role:"checkbox","aria-checked":It?"mixed":he,"aria-disabled":yt||wt.disableCheckbox,"aria-label":"Select ".concat(typeof wt.title=="string"?wt.title:"tree node")},Ii)},[kt,he,It,yt,wt.disableCheckbox,wt.title]),sn=Ht.useMemo(function(){return Ni?null:qe?nt:ct},[Ni,qe]),Qn=Ht.useMemo(function(){return Ht.createElement("span",{className:Re()("".concat(Fe.prefixCls,"-iconEle"),"".concat(Fe.prefixCls,"-icon__").concat(sn||"docu"),(0,ne.Z)({},"".concat(Fe.prefixCls,"-icon_loading"),Le))})},[Fe.prefixCls,sn,Le]),Li=Ht.useMemo(function(){var Ii=!!Fe.draggable,Jn=!wt.disabled&&Ii&&Fe.dragOverNodeKey===Jt;return Jn?Fe.dropIndicatorRender({dropPosition:Fe.dropPosition,dropLevelOffset:Fe.dropLevelOffset,indent:Fe.indent,prefixCls:Fe.prefixCls,direction:Fe.direction}):null},[Fe.dropPosition,Fe.dropLevelOffset,Fe.indent,Fe.prefixCls,Fe.direction,Fe.draggable,Fe.dragOverNodeKey,Fe.dropIndicatorRender]),Ri=Ht.useMemo(function(){var Ii=wt.title,Jn=Ii===void 0?lt:Ii,er="".concat(Fe.prefixCls,"-node-content-wrapper"),Ji;if(Fe.showIcon){var Zi=wt.icon||Fe.icon;Ji=Zi?Ht.createElement("span",{className:Re()("".concat(Fe.prefixCls,"-iconEle"),"".concat(Fe.prefixCls,"-icon__customize"))},typeof Zi=="function"?Zi(wt):Zi):Qn}else Fe.loadData&&Le&&(Ji=Qn);var fi;return typeof Jn=="function"?fi=Jn(Ce):Fe.titleRender?fi=Fe.titleRender(Ce):fi=Jn,Ht.createElement("span",{ref:ue,title:typeof Jn=="string"?Jn:"",className:Re()(er,"".concat(er,"-").concat(sn||"normal"),(0,ne.Z)({},"".concat(Fe.prefixCls,"-node-selected"),!yt&&(We||Dt))),onMouseEnter:Be,onMouseLeave:re,onContextMenu:Te,onClick:fe,onDoubleClick:Se},Ji,Ht.createElement("span",{className:"".concat(Fe.prefixCls,"-title")},fi),Li)},[Fe.prefixCls,Fe.showIcon,wt,Fe.icon,Qn,Fe.titleRender,Ce,sn,Be,re,Te,fe,Se]),Pi=(0,ve.Z)(Sn,{aria:!0,data:!0}),ur=(0,Je.Z)(Fe.keyEntities,Jt)||{},ir=ur.level,pr=on[on.length-1],ci=!yt&&Ne,qi=Fe.draggingNodeKey===Jt,Pt=Ye!==void 0?{"aria-selected":!!Ye}:void 0;return Ht.createElement("div",(0,Mt.Z)({ref:an,role:"treeitem","aria-expanded":ke?void 0:qe,className:Re()(Vt,"".concat(Fe.prefixCls,"-treenode"),($t={},(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)($t,"".concat(Fe.prefixCls,"-treenode-disabled"),yt),"".concat(Fe.prefixCls,"-treenode-switcher-").concat(qe?"open":"close"),!ke),"".concat(Fe.prefixCls,"-treenode-checkbox-checked"),he),"".concat(Fe.prefixCls,"-treenode-checkbox-indeterminate"),It),"".concat(Fe.prefixCls,"-treenode-selected"),We),"".concat(Fe.prefixCls,"-treenode-loading"),Le),"".concat(Fe.prefixCls,"-treenode-active"),Ze),"".concat(Fe.prefixCls,"-treenode-leaf-last"),pr),"".concat(Fe.prefixCls,"-treenode-draggable"),Ne),"dragging",qi),(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)($t,"drop-target",Fe.dropTargetKey===Jt),"drop-container",Fe.dropContainerKey===Jt),"drag-over",!yt&&ce),"drag-over-gap-top",!yt&&Ee),"drag-over-gap-bottom",!yt&&Ie),"filter-node",(Wt=Fe.filterTreeNode)===null||Wt===void 0?void 0:Wt.call(Fe,(0,Ot.F)(wt))),"".concat(Fe.prefixCls,"-treenode-leaf"),Ni))),style:pe,draggable:ci,onDragStart:ci?$e:void 0,onDragEnter:Ne?fn:void 0,onDragOver:Ne?tn:void 0,onDragLeave:Ne?He:void 0,onDrop:Ne?Xn:void 0,onDragEnd:Ne?On:void 0,onMouseMove:nn},Pt,Pi),Ht.createElement(ie,{prefixCls:Fe.prefixCls,level:ir,isStart:wn,isEnd:on}),xi,tr(),Qe,Ri)};gt.isTreeNode=1;var mt=gt},30699:function(An,Un,Et){"use strict";Et.d(Un,{k:function(){return ne},y:function(){return ge}});var Mt=Et(59301),ne=Mt.createContext(null),ge=Mt.createContext({})},15018:function(An,Un,Et){"use strict";Et.d(Un,{OF:function(){return Jt.Z},y6:function(){return ct.y},ZP:function(){return yt}});var Mt=Et(72308),ne=Et(62853),ge=Et(77321),xe=Et(80702),ee=Et(96949),Ht=Et(55090),oe=Et(80237),Re=Et(77205),ve=Et(38793),Tt=Et(49618),Ue=Et(92310),ie=Et.n(Ue),Je=Et(10228),Ot=Et(26112),et=Et(48736),nt=Et(59301),ct=Et(30699),lt=function(jt){var bt=jt.dropPosition,Gt=jt.dropLevelOffset,fe=jt.indent,Se={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(bt){case-1:Se.top=0,Se.left=-Gt*fe;break;case 1:Se.bottom=0,Se.left=-Gt*fe;break;case 0:Se.bottom=0,Se.left=fe;break}return nt.createElement("div",{style:Se})},gt=lt;function mt(kt){if(kt==null)throw new TypeError("Cannot destructure "+kt)}var St=Et(52487),wt=Et(74416),zt=Et(34280),Wt=Et(45680),$t=Et(77900),Jt=Et(639);function Vt(kt,jt){var bt=nt.useState(!1),Gt=(0,St.Z)(bt,2),fe=Gt[0],Se=Gt[1];(0,zt.Z)(function(){if(fe)return kt(),function(){jt()}},[fe]),(0,zt.Z)(function(){return Se(!0),function(){Se(!1)}},[])}var pe=Vt,ce=Et(34061),Ee=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ie=nt.forwardRef(function(kt,jt){var bt=kt.className,Gt=kt.style,fe=kt.motion,Se=kt.motionNodes,Be=kt.motionType,re=kt.onMotionStart,Te=kt.onMotionEnd,Ne=kt.active,$e=kt.treeNodeRequiredProps,fn=(0,wt.Z)(kt,Ee),tn=nt.useState(!0),He=(0,St.Z)(tn,2),On=He[0],Xn=He[1],Pn=nt.useContext(ct.k),Gn=Pn.prefixCls,Ni=Se&&Be!=="hide";(0,zt.Z)(function(){Se&&Ni!==On&&Xn(Ni)},[Se]);var xi=function(){Se&&re()},ki=nt.useRef(!1),tr=function(){Se&&!ki.current&&(ki.current=!0,Te())};pe(xi,tr);var Qe=function(Qn){Ni===Qn&&tr()};return Se?nt.createElement($t.default,(0,Mt.Z)({ref:jt,visible:On},fe,{motionAppear:Be==="show",onVisibleChanged:Qe}),function(sn,Qn){var Li=sn.className,Ri=sn.style;return nt.createElement("div",{ref:Qn,className:ie()("".concat(Gn,"-treenode-motion"),Li),style:Ri},Se.map(function(Pi){var ur=Object.assign({},(mt(Pi.data),Pi.data)),ir=Pi.title,pr=Pi.key,ci=Pi.isStart,qi=Pi.isEnd;delete ur.children;var Pt=(0,ce.H8)(pr,$e);return nt.createElement(Jt.Z,(0,Mt.Z)({},ur,Pt,{title:ir,active:Ne,data:Pi.data,key:pr,isStart:ci,isEnd:qi}))}))}):nt.createElement(Jt.Z,(0,Mt.Z)({domRef:jt,className:bt,style:Gt},fn,{active:Ne}))}),ke=Ie;function wn(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],bt=kt.length,Gt=jt.length;if(Math.abs(bt-Gt)!==1)return{add:!1,key:null};function fe(Se,Be){var re=new Map;Se.forEach(function(Ne){re.set(Ne,!0)});var Te=Be.filter(function(Ne){return!re.has(Ne)});return Te.length===1?Te[0]:null}return bt<Gt?{add:!0,key:fe(kt,jt)}:{add:!1,key:fe(jt,kt)}}function on(kt,jt,bt){var Gt=kt.findIndex(function(re){return re.key===bt}),fe=kt[Gt+1],Se=jt.findIndex(function(re){return re.key===bt});if(fe){var Be=jt.findIndex(function(re){return re.key===fe.key});return jt.slice(Se+1,Be)}return jt.slice(Se+1)}var qe=["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"],We={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},he=function(){},It="RC_TREE_MOTION_".concat(Math.random()),Le={key:It},an={key:It,level:0,index:0,pos:"0",node:Le,nodes:[Le]},Ze={parent:null,children:[],pos:an.pos,data:Le,title:null,key:It,isStart:[],isEnd:[]};function Ce(kt,jt,bt,Gt){return jt===!1||!bt?kt:kt.slice(0,Math.ceil(bt/Gt)+1)}function nn(kt){var jt=kt.key,bt=kt.pos;return(0,ce.km)(jt,bt)}function Ye(kt){for(var jt=String(kt.data.key),bt=kt;bt.parent;)bt=bt.parent,jt="".concat(bt.data.key," > ").concat(jt);return jt}var Sn=nt.forwardRef(function(kt,jt){var bt=kt.prefixCls,Gt=kt.data,fe=kt.selectable,Se=kt.checkable,Be=kt.expandedKeys,re=kt.selectedKeys,Te=kt.checkedKeys,Ne=kt.loadedKeys,$e=kt.loadingKeys,fn=kt.halfCheckedKeys,tn=kt.keyEntities,He=kt.disabled,On=kt.dragging,Xn=kt.dragOverNodeKey,Pn=kt.dropPosition,Gn=kt.motion,Ni=kt.height,xi=kt.itemHeight,ki=kt.virtual,tr=kt.scrollWidth,Qe=kt.focusable,sn=kt.activeItem,Qn=kt.focused,Li=kt.tabIndex,Ri=kt.onKeyDown,Pi=kt.onFocus,ur=kt.onBlur,ir=kt.onActiveChange,pr=kt.onListChangeStart,ci=kt.onListChangeEnd,qi=(0,wt.Z)(kt,qe),Pt=nt.useRef(null),Ii=nt.useRef(null);nt.useImperativeHandle(jt,function(){return{scrollTo:function(bi){Pt.current.scrollTo(bi)},getIndentWidth:function(){return Ii.current.offsetWidth}}});var Jn=nt.useState(Be),er=(0,St.Z)(Jn,2),Ji=er[0],Zi=er[1],fi=nt.useState(Gt),bn=(0,St.Z)(fi,2),En=bn[0],Ae=bn[1],Me=nt.useState(Gt),be=(0,St.Z)(Me,2),qn=be[0],ni=be[1],Fi=nt.useState([]),gn=(0,St.Z)(Fi,2),Hn=gn[0],Oe=gn[1],De=nt.useState(null),ai=(0,St.Z)(De,2),qt=ai[0],un=ai[1],Rn=nt.useRef(Gt);Rn.current=Gt;function Ai(){var li=Rn.current;Ae(li),ni(li),Oe([]),un(null),ci()}(0,zt.Z)(function(){Zi(Be);var li=wn(Ji,Be);if(li.key!==null)if(li.add){var bi=En.findIndex(function(fr){var xr=fr.key;return xr===li.key}),Ui=Ce(on(En,Gt,li.key),ki,Ni,xi),Di=En.slice();Di.splice(bi+1,0,Ze),ni(Di),Oe(Ui),un("show")}else{var $n=Gt.findIndex(function(fr){var xr=fr.key;return xr===li.key}),wi=Ce(on(Gt,En,li.key),ki,Ni,xi),dr=Gt.slice();dr.splice($n+1,0,Ze),ni(dr),Oe(wi),un("hide")}else En!==Gt&&(Ae(Gt),ni(Gt))},[Be,Gt]),nt.useEffect(function(){On||Ai()},[On]);var ln=Gn?qn:Gt,yn={expandedKeys:Be,selectedKeys:re,loadedKeys:Ne,loadingKeys:$e,checkedKeys:Te,halfCheckedKeys:fn,dragOverNodeKey:Xn,dropPosition:Pn,keyEntities:tn};return nt.createElement(nt.Fragment,null,Qn&&sn&&nt.createElement("span",{style:We,"aria-live":"assertive"},Ye(sn)),nt.createElement("div",null,nt.createElement("input",{style:We,disabled:Qe===!1||He,tabIndex:Qe!==!1?Li:null,onKeyDown:Ri,onFocus:Pi,onBlur:ur,value:"",onChange:he,"aria-label":"for screen reader"})),nt.createElement("div",{className:"".concat(bt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},nt.createElement("div",{className:"".concat(bt,"-indent")},nt.createElement("div",{ref:Ii,className:"".concat(bt,"-indent-unit")}))),nt.createElement(Wt.Z,(0,Mt.Z)({},qi,{data:ln,itemKey:nn,height:Ni,fullHeight:!1,virtual:ki,itemHeight:xi,scrollWidth:tr,prefixCls:"".concat(bt,"-list"),ref:Pt,role:"tree",onVisibleChange:function(bi){bi.every(function(Ui){return nn(Ui)!==It})&&Ai()}}),function(li){var bi=li.pos,Ui=Object.assign({},(mt(li.data),li.data)),Di=li.title,$n=li.key,wi=li.isStart,dr=li.isEnd,fr=(0,ce.km)($n,bi);delete Ui.key,delete Ui.children;var xr=(0,ce.H8)(fr,yn);return nt.createElement(ke,(0,Mt.Z)({},Ui,xr,{title:Di,active:!!sn&&$n===sn.key,pos:bi,data:li.data,isStart:wi,isEnd:dr,motion:Gn,motionNodes:$n===It?Hn:null,motionType:qt,onMotionStart:pr,onMotionEnd:Ai,treeNodeRequiredProps:yn,onMouseMove:function(){ir(null)}}))}))}),Fe=Sn,vn=Et(82661),ue=Et(34643),Ve=Et(65065),In=10,Dt=function(kt){(0,Re.Z)(bt,kt);var jt=(0,ve.Z)(bt);function bt(){var Gt;(0,ee.Z)(this,bt);for(var fe=arguments.length,Se=new Array(fe),Be=0;Be<fe;Be++)Se[Be]=arguments[Be];return Gt=jt.call.apply(jt,[this].concat(Se)),(0,Tt.Z)((0,oe.Z)(Gt),"destroyed",!1),(0,Tt.Z)((0,oe.Z)(Gt),"delayedDragEnterLogic",void 0),(0,Tt.Z)((0,oe.Z)(Gt),"loadingRetryTimes",{}),(0,Tt.Z)((0,oe.Z)(Gt),"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,ce.w$)()}),(0,Tt.Z)((0,oe.Z)(Gt),"dragStartMousePosition",null),(0,Tt.Z)((0,oe.Z)(Gt),"dragNodeProps",null),(0,Tt.Z)((0,oe.Z)(Gt),"currentMouseOverDroppableNodeKey",null),(0,Tt.Z)((0,oe.Z)(Gt),"listRef",nt.createRef()),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeDragStart",function(re,Te){var Ne=Gt.state,$e=Ne.expandedKeys,fn=Ne.keyEntities,tn=Gt.props.onDragStart,He=Te.eventKey;Gt.dragNodeProps=Te,Gt.dragStartMousePosition={x:re.clientX,y:re.clientY};var On=(0,vn._5)($e,He);Gt.setState({draggingNodeKey:He,dragChildrenKeys:(0,vn.wA)(He,fn),indent:Gt.listRef.current.getIndentWidth()}),Gt.setExpandedKeys(On),window.addEventListener("dragend",Gt.onWindowDragEnd),tn==null||tn({event:re,node:(0,ce.F)(Te)})}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeDragEnter",function(re,Te){var Ne=Gt.state,$e=Ne.expandedKeys,fn=Ne.keyEntities,tn=Ne.dragChildrenKeys,He=Ne.flattenNodes,On=Ne.indent,Xn=Gt.props,Pn=Xn.onDragEnter,Gn=Xn.onExpand,Ni=Xn.allowDrop,xi=Xn.direction,ki=Te.pos,tr=Te.eventKey;if(Gt.currentMouseOverDroppableNodeKey!==tr&&(Gt.currentMouseOverDroppableNodeKey=tr),!Gt.dragNodeProps){Gt.resetDragState();return}var Qe=(0,vn.OM)(re,Gt.dragNodeProps,Te,On,Gt.dragStartMousePosition,Ni,He,fn,$e,xi),sn=Qe.dropPosition,Qn=Qe.dropLevelOffset,Li=Qe.dropTargetKey,Ri=Qe.dropContainerKey,Pi=Qe.dropTargetPos,ur=Qe.dropAllowed,ir=Qe.dragOverNodeKey;if(tn.includes(Li)||!ur){Gt.resetDragState();return}if(Gt.delayedDragEnterLogic||(Gt.delayedDragEnterLogic={}),Object.keys(Gt.delayedDragEnterLogic).forEach(function(pr){clearTimeout(Gt.delayedDragEnterLogic[pr])}),Gt.dragNodeProps.eventKey!==Te.eventKey&&(re.persist(),Gt.delayedDragEnterLogic[ki]=window.setTimeout(function(){if(Gt.state.draggingNodeKey!==null){var pr=(0,xe.Z)($e),ci=(0,Ve.Z)(fn,Te.eventKey);ci&&(ci.children||[]).length&&(pr=(0,vn.L0)($e,Te.eventKey)),Gt.props.hasOwnProperty("expandedKeys")||Gt.setExpandedKeys(pr),Gn==null||Gn(pr,{node:(0,ce.F)(Te),expanded:!0,nativeEvent:re.nativeEvent})}},800)),Gt.dragNodeProps.eventKey===Li&&Qn===0){Gt.resetDragState();return}Gt.setState({dragOverNodeKey:ir,dropPosition:sn,dropLevelOffset:Qn,dropTargetKey:Li,dropContainerKey:Ri,dropTargetPos:Pi,dropAllowed:ur}),Pn==null||Pn({event:re,node:(0,ce.F)(Te),expandedKeys:$e})}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeDragOver",function(re,Te){var Ne=Gt.state,$e=Ne.dragChildrenKeys,fn=Ne.flattenNodes,tn=Ne.keyEntities,He=Ne.expandedKeys,On=Ne.indent,Xn=Gt.props,Pn=Xn.onDragOver,Gn=Xn.allowDrop,Ni=Xn.direction;if(Gt.dragNodeProps){var xi=(0,vn.OM)(re,Gt.dragNodeProps,Te,On,Gt.dragStartMousePosition,Gn,fn,tn,He,Ni),ki=xi.dropPosition,tr=xi.dropLevelOffset,Qe=xi.dropTargetKey,sn=xi.dropContainerKey,Qn=xi.dropTargetPos,Li=xi.dropAllowed,Ri=xi.dragOverNodeKey;$e.includes(Qe)||!Li||(Gt.dragNodeProps.eventKey===Qe&&tr===0?Gt.state.dropPosition===null&&Gt.state.dropLevelOffset===null&&Gt.state.dropTargetKey===null&&Gt.state.dropContainerKey===null&&Gt.state.dropTargetPos===null&&Gt.state.dropAllowed===!1&&Gt.state.dragOverNodeKey===null||Gt.resetDragState():ki===Gt.state.dropPosition&&tr===Gt.state.dropLevelOffset&&Qe===Gt.state.dropTargetKey&&sn===Gt.state.dropContainerKey&&Qn===Gt.state.dropTargetPos&&Li===Gt.state.dropAllowed&&Ri===Gt.state.dragOverNodeKey||Gt.setState({dropPosition:ki,dropLevelOffset:tr,dropTargetKey:Qe,dropContainerKey:sn,dropTargetPos:Qn,dropAllowed:Li,dragOverNodeKey:Ri}),Pn==null||Pn({event:re,node:(0,ce.F)(Te)}))}}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeDragLeave",function(re,Te){Gt.currentMouseOverDroppableNodeKey===Te.eventKey&&!re.currentTarget.contains(re.relatedTarget)&&(Gt.resetDragState(),Gt.currentMouseOverDroppableNodeKey=null);var Ne=Gt.props.onDragLeave;Ne==null||Ne({event:re,node:(0,ce.F)(Te)})}),(0,Tt.Z)((0,oe.Z)(Gt),"onWindowDragEnd",function(re){Gt.onNodeDragEnd(re,null,!0),window.removeEventListener("dragend",Gt.onWindowDragEnd)}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeDragEnd",function(re,Te){var Ne=Gt.props.onDragEnd;Gt.setState({dragOverNodeKey:null}),Gt.cleanDragState(),Ne==null||Ne({event:re,node:(0,ce.F)(Te)}),Gt.dragNodeProps=null,window.removeEventListener("dragend",Gt.onWindowDragEnd)}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeDrop",function(re,Te){var Ne,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,fn=Gt.state,tn=fn.dragChildrenKeys,He=fn.dropPosition,On=fn.dropTargetKey,Xn=fn.dropTargetPos,Pn=fn.dropAllowed;if(Pn){var Gn=Gt.props.onDrop;if(Gt.setState({dragOverNodeKey:null}),Gt.cleanDragState(),On!==null){var Ni=(0,ge.Z)((0,ge.Z)({},(0,ce.H8)(On,Gt.getTreeNodeRequiredProps())),{},{active:((Ne=Gt.getActiveItem())===null||Ne===void 0?void 0:Ne.key)===On,data:(0,Ve.Z)(Gt.state.keyEntities,On).node}),xi=tn.includes(On);(0,et.ZP)(!xi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ki=(0,vn.yx)(Xn),tr={event:re,node:(0,ce.F)(Ni),dragNode:Gt.dragNodeProps?(0,ce.F)(Gt.dragNodeProps):null,dragNodesKeys:[Gt.dragNodeProps.eventKey].concat(tn),dropToGap:He!==0,dropPosition:He+Number(ki[ki.length-1])};$e||Gn==null||Gn(tr),Gt.dragNodeProps=null}}}),(0,Tt.Z)((0,oe.Z)(Gt),"cleanDragState",function(){var re=Gt.state.draggingNodeKey;re!==null&&Gt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Gt.dragStartMousePosition=null,Gt.currentMouseOverDroppableNodeKey=null}),(0,Tt.Z)((0,oe.Z)(Gt),"triggerExpandActionExpand",function(re,Te){var Ne=Gt.state,$e=Ne.expandedKeys,fn=Ne.flattenNodes,tn=Te.expanded,He=Te.key,On=Te.isLeaf;if(!(On||re.shiftKey||re.metaKey||re.ctrlKey)){var Xn=fn.filter(function(Gn){return Gn.key===He})[0],Pn=(0,ce.F)((0,ge.Z)((0,ge.Z)({},(0,ce.H8)(He,Gt.getTreeNodeRequiredProps())),{},{data:Xn.data}));Gt.setExpandedKeys(tn?(0,vn._5)($e,He):(0,vn.L0)($e,He)),Gt.onNodeExpand(re,Pn)}}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeClick",function(re,Te){var Ne=Gt.props,$e=Ne.onClick,fn=Ne.expandAction;fn==="click"&&Gt.triggerExpandActionExpand(re,Te),$e==null||$e(re,Te)}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeDoubleClick",function(re,Te){var Ne=Gt.props,$e=Ne.onDoubleClick,fn=Ne.expandAction;fn==="doubleClick"&&Gt.triggerExpandActionExpand(re,Te),$e==null||$e(re,Te)}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeSelect",function(re,Te){var Ne=Gt.state.selectedKeys,$e=Gt.state,fn=$e.keyEntities,tn=$e.fieldNames,He=Gt.props,On=He.onSelect,Xn=He.multiple,Pn=Te.selected,Gn=Te[tn.key],Ni=!Pn;Ni?Xn?Ne=(0,vn.L0)(Ne,Gn):Ne=[Gn]:Ne=(0,vn._5)(Ne,Gn);var xi=Ne.map(function(ki){var tr=(0,Ve.Z)(fn,ki);return tr?tr.node:null}).filter(Boolean);Gt.setUncontrolledState({selectedKeys:Ne}),On==null||On(Ne,{event:"select",selected:Ni,node:Te,selectedNodes:xi,nativeEvent:re.nativeEvent})}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeCheck",function(re,Te,Ne){var $e=Gt.state,fn=$e.keyEntities,tn=$e.checkedKeys,He=$e.halfCheckedKeys,On=Gt.props,Xn=On.checkStrictly,Pn=On.onCheck,Gn=Te.key,Ni,xi={event:"check",node:Te,checked:Ne,nativeEvent:re.nativeEvent};if(Xn){var ki=Ne?(0,vn.L0)(tn,Gn):(0,vn._5)(tn,Gn),tr=(0,vn._5)(He,Gn);Ni={checked:ki,halfChecked:tr},xi.checkedNodes=ki.map(function(Pi){return(0,Ve.Z)(fn,Pi)}).filter(Boolean).map(function(Pi){return Pi.node}),Gt.setUncontrolledState({checkedKeys:ki})}else{var Qe=(0,ue.S)([].concat((0,xe.Z)(tn),[Gn]),!0,fn),sn=Qe.checkedKeys,Qn=Qe.halfCheckedKeys;if(!Ne){var Li=new Set(sn);Li.delete(Gn);var Ri=(0,ue.S)(Array.from(Li),{checked:!1,halfCheckedKeys:Qn},fn);sn=Ri.checkedKeys,Qn=Ri.halfCheckedKeys}Ni=sn,xi.checkedNodes=[],xi.checkedNodesPositions=[],xi.halfCheckedKeys=Qn,sn.forEach(function(Pi){var ur=(0,Ve.Z)(fn,Pi);if(ur){var ir=ur.node,pr=ur.pos;xi.checkedNodes.push(ir),xi.checkedNodesPositions.push({node:ir,pos:pr})}}),Gt.setUncontrolledState({checkedKeys:sn},!1,{halfCheckedKeys:Qn})}Pn==null||Pn(Ni,xi)}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeLoad",function(re){var Te,Ne=re.key,$e=Gt.state.keyEntities,fn=(0,Ve.Z)($e,Ne);if(!(fn!=null&&(Te=fn.children)!==null&&Te!==void 0&&Te.length)){var tn=new Promise(function(He,On){Gt.setState(function(Xn){var Pn=Xn.loadedKeys,Gn=Pn===void 0?[]:Pn,Ni=Xn.loadingKeys,xi=Ni===void 0?[]:Ni,ki=Gt.props,tr=ki.loadData,Qe=ki.onLoad;if(!tr||Gn.includes(Ne)||xi.includes(Ne))return null;var sn=tr(re);return sn.then(function(){var Qn=Gt.state.loadedKeys,Li=(0,vn.L0)(Qn,Ne);Qe==null||Qe(Li,{event:"load",node:re}),Gt.setUncontrolledState({loadedKeys:Li}),Gt.setState(function(Ri){return{loadingKeys:(0,vn._5)(Ri.loadingKeys,Ne)}}),He()}).catch(function(Qn){if(Gt.setState(function(Ri){return{loadingKeys:(0,vn._5)(Ri.loadingKeys,Ne)}}),Gt.loadingRetryTimes[Ne]=(Gt.loadingRetryTimes[Ne]||0)+1,Gt.loadingRetryTimes[Ne]>=In){var Li=Gt.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Gt.setUncontrolledState({loadedKeys:(0,vn.L0)(Li,Ne)}),He()}On(Qn)}),{loadingKeys:(0,vn.L0)(xi,Ne)}})});return tn.catch(function(){}),tn}}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeMouseEnter",function(re,Te){var Ne=Gt.props.onMouseEnter;Ne==null||Ne({event:re,node:Te})}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeMouseLeave",function(re,Te){var Ne=Gt.props.onMouseLeave;Ne==null||Ne({event:re,node:Te})}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeContextMenu",function(re,Te){var Ne=Gt.props.onRightClick;Ne&&(re.preventDefault(),Ne({event:re,node:Te}))}),(0,Tt.Z)((0,oe.Z)(Gt),"onFocus",function(){var re=Gt.props.onFocus;Gt.setState({focused:!0});for(var Te=arguments.length,Ne=new Array(Te),$e=0;$e<Te;$e++)Ne[$e]=arguments[$e];re==null||re.apply(void 0,Ne)}),(0,Tt.Z)((0,oe.Z)(Gt),"onBlur",function(){var re=Gt.props.onBlur;Gt.setState({focused:!1}),Gt.onActiveChange(null);for(var Te=arguments.length,Ne=new Array(Te),$e=0;$e<Te;$e++)Ne[$e]=arguments[$e];re==null||re.apply(void 0,Ne)}),(0,Tt.Z)((0,oe.Z)(Gt),"getTreeNodeRequiredProps",function(){var re=Gt.state,Te=re.expandedKeys,Ne=re.selectedKeys,$e=re.loadedKeys,fn=re.loadingKeys,tn=re.checkedKeys,He=re.halfCheckedKeys,On=re.dragOverNodeKey,Xn=re.dropPosition,Pn=re.keyEntities;return{expandedKeys:Te||[],selectedKeys:Ne||[],loadedKeys:$e||[],loadingKeys:fn||[],checkedKeys:tn||[],halfCheckedKeys:He||[],dragOverNodeKey:On,dropPosition:Xn,keyEntities:Pn}}),(0,Tt.Z)((0,oe.Z)(Gt),"setExpandedKeys",function(re){var Te=Gt.state,Ne=Te.treeData,$e=Te.fieldNames,fn=(0,ce.oH)(Ne,re,$e);Gt.setUncontrolledState({expandedKeys:re,flattenNodes:fn},!0)}),(0,Tt.Z)((0,oe.Z)(Gt),"onNodeExpand",function(re,Te){var Ne=Gt.state.expandedKeys,$e=Gt.state,fn=$e.listChanging,tn=$e.fieldNames,He=Gt.props,On=He.onExpand,Xn=He.loadData,Pn=Te.expanded,Gn=Te[tn.key];if(!fn){var Ni=Ne.includes(Gn),xi=!Pn;if((0,et.ZP)(Pn&&Ni||!Pn&&!Ni,"Expand state not sync with index check"),Ne=xi?(0,vn.L0)(Ne,Gn):(0,vn._5)(Ne,Gn),Gt.setExpandedKeys(Ne),On==null||On(Ne,{node:Te,expanded:xi,nativeEvent:re.nativeEvent}),xi&&Xn){var ki=Gt.onNodeLoad(Te);ki&&ki.then(function(){var tr=(0,ce.oH)(Gt.state.treeData,Ne,tn);Gt.setUncontrolledState({flattenNodes:tr})}).catch(function(){var tr=Gt.state.expandedKeys,Qe=(0,vn._5)(tr,Gn);Gt.setExpandedKeys(Qe)})}}}),(0,Tt.Z)((0,oe.Z)(Gt),"onListChangeStart",function(){Gt.setUncontrolledState({listChanging:!0})}),(0,Tt.Z)((0,oe.Z)(Gt),"onListChangeEnd",function(){setTimeout(function(){Gt.setUncontrolledState({listChanging:!1})})}),(0,Tt.Z)((0,oe.Z)(Gt),"onActiveChange",function(re){var Te=Gt.state.activeKey,Ne=Gt.props,$e=Ne.onActiveChange,fn=Ne.itemScrollOffset,tn=fn===void 0?0:fn;Te!==re&&(Gt.setState({activeKey:re}),re!==null&&Gt.scrollTo({key:re,offset:tn}),$e==null||$e(re))}),(0,Tt.Z)((0,oe.Z)(Gt),"getActiveItem",function(){var re=Gt.state,Te=re.activeKey,Ne=re.flattenNodes;return Te===null?null:Ne.find(function($e){var fn=$e.key;return fn===Te})||null}),(0,Tt.Z)((0,oe.Z)(Gt),"offsetActiveKey",function(re){var Te=Gt.state,Ne=Te.flattenNodes,$e=Te.activeKey,fn=Ne.findIndex(function(On){var Xn=On.key;return Xn===$e});fn===-1&&re<0&&(fn=Ne.length),fn=(fn+re+Ne.length)%Ne.length;var tn=Ne[fn];if(tn){var He=tn.key;Gt.onActiveChange(He)}else Gt.onActiveChange(null)}),(0,Tt.Z)((0,oe.Z)(Gt),"onKeyDown",function(re){var Te=Gt.state,Ne=Te.activeKey,$e=Te.expandedKeys,fn=Te.checkedKeys,tn=Te.fieldNames,He=Gt.props,On=He.onKeyDown,Xn=He.checkable,Pn=He.selectable;switch(re.which){case Je.Z.UP:{Gt.offsetActiveKey(-1),re.preventDefault();break}case Je.Z.DOWN:{Gt.offsetActiveKey(1),re.preventDefault();break}}var Gn=Gt.getActiveItem();if(Gn&&Gn.data){var Ni=Gt.getTreeNodeRequiredProps(),xi=Gn.data.isLeaf===!1||!!(Gn.data[tn.children]||[]).length,ki=(0,ce.F)((0,ge.Z)((0,ge.Z)({},(0,ce.H8)(Ne,Ni)),{},{data:Gn.data,active:!0}));switch(re.which){case Je.Z.LEFT:{xi&&$e.includes(Ne)?Gt.onNodeExpand({},ki):Gn.parent&&Gt.onActiveChange(Gn.parent.key),re.preventDefault();break}case Je.Z.RIGHT:{xi&&!$e.includes(Ne)?Gt.onNodeExpand({},ki):Gn.children&&Gn.children.length&&Gt.onActiveChange(Gn.children[0].key),re.preventDefault();break}case Je.Z.ENTER:case Je.Z.SPACE:{Xn&&!ki.disabled&&ki.checkable!==!1&&!ki.disableCheckbox?Gt.onNodeCheck({},ki,!fn.includes(Ne)):!Xn&&Pn&&!ki.disabled&&ki.selectable!==!1&&Gt.onNodeSelect({},ki);break}}}On==null||On(re)}),(0,Tt.Z)((0,oe.Z)(Gt),"setUncontrolledState",function(re){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Gt.destroyed){var $e=!1,fn=!0,tn={};Object.keys(re).forEach(function(He){if(Gt.props.hasOwnProperty(He)){fn=!1;return}$e=!0,tn[He]=re[He]}),$e&&(!Te||fn)&&Gt.setState((0,ge.Z)((0,ge.Z)({},tn),Ne))}}),(0,Tt.Z)((0,oe.Z)(Gt),"scrollTo",function(re){Gt.listRef.current.scrollTo(re)}),Gt}return(0,Ht.Z)(bt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var fe=this.props,Se=fe.activeKey,Be=fe.itemScrollOffset,re=Be===void 0?0:Be;Se!==void 0&&Se!==this.state.activeKey&&(this.setState({activeKey:Se}),Se!==null&&this.scrollTo({key:Se,offset:re}))}},{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 fe=this.state,Se=fe.focused,Be=fe.flattenNodes,re=fe.keyEntities,Te=fe.draggingNodeKey,Ne=fe.activeKey,$e=fe.dropLevelOffset,fn=fe.dropContainerKey,tn=fe.dropTargetKey,He=fe.dropPosition,On=fe.dragOverNodeKey,Xn=fe.indent,Pn=this.props,Gn=Pn.prefixCls,Ni=Pn.className,xi=Pn.style,ki=Pn.showLine,tr=Pn.focusable,Qe=Pn.tabIndex,sn=Qe===void 0?0:Qe,Qn=Pn.selectable,Li=Pn.showIcon,Ri=Pn.icon,Pi=Pn.switcherIcon,ur=Pn.draggable,ir=Pn.checkable,pr=Pn.checkStrictly,ci=Pn.disabled,qi=Pn.motion,Pt=Pn.loadData,Ii=Pn.filterTreeNode,Jn=Pn.height,er=Pn.itemHeight,Ji=Pn.scrollWidth,Zi=Pn.virtual,fi=Pn.titleRender,bn=Pn.dropIndicatorRender,En=Pn.onContextMenu,Ae=Pn.onScroll,Me=Pn.direction,be=Pn.rootClassName,qn=Pn.rootStyle,ni=(0,Ot.Z)(this.props,{aria:!0,data:!0}),Fi;ur&&((0,ne.Z)(ur)==="object"?Fi=ur:typeof ur=="function"?Fi={nodeDraggable:ur}:Fi={});var gn={prefixCls:Gn,selectable:Qn,showIcon:Li,icon:Ri,switcherIcon:Pi,draggable:Fi,draggingNodeKey:Te,checkable:ir,checkStrictly:pr,disabled:ci,keyEntities:re,dropLevelOffset:$e,dropContainerKey:fn,dropTargetKey:tn,dropPosition:He,dragOverNodeKey:On,indent:Xn,direction:Me,dropIndicatorRender:bn,loadData:Pt,filterTreeNode:Ii,titleRender:fi,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 nt.createElement(ct.k.Provider,{value:gn},nt.createElement("div",{className:ie()(Gn,Ni,be,(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({},"".concat(Gn,"-show-line"),ki),"".concat(Gn,"-focused"),Se),"".concat(Gn,"-active-focused"),Ne!==null)),style:qn},nt.createElement(Fe,(0,Mt.Z)({ref:this.listRef,prefixCls:Gn,style:xi,data:Be,disabled:ci,selectable:Qn,checkable:!!ir,motion:qi,dragging:Te!==null,height:Jn,itemHeight:er,virtual:Zi,focusable:tr,focused:Se,tabIndex:sn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:En,onScroll:Ae,scrollWidth:Ji},this.getTreeNodeRequiredProps(),ni))))}}],[{key:"getDerivedStateFromProps",value:function(fe,Se){var Be=Se.prevProps,re={prevProps:fe};function Te(sn){return!Be&&fe.hasOwnProperty(sn)||Be&&Be[sn]!==fe[sn]}var Ne,$e=Se.fieldNames;if(Te("fieldNames")&&($e=(0,ce.w$)(fe.fieldNames),re.fieldNames=$e),Te("treeData")?Ne=fe.treeData:Te("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ne=(0,ce.zn)(fe.children)),Ne){re.treeData=Ne;var fn=(0,ce.I8)(Ne,{fieldNames:$e});re.keyEntities=(0,ge.Z)((0,Tt.Z)({},It,an),fn.keyEntities)}var tn=re.keyEntities||Se.keyEntities;if(Te("expandedKeys")||Be&&Te("autoExpandParent"))re.expandedKeys=fe.autoExpandParent||!Be&&fe.defaultExpandParent?(0,vn.r7)(fe.expandedKeys,tn):fe.expandedKeys;else if(!Be&&fe.defaultExpandAll){var He=(0,ge.Z)({},tn);delete He[It];var On=[];Object.keys(He).forEach(function(sn){var Qn=He[sn];Qn.children&&Qn.children.length&&On.push(Qn.key)}),re.expandedKeys=On}else!Be&&fe.defaultExpandedKeys&&(re.expandedKeys=fe.autoExpandParent||fe.defaultExpandParent?(0,vn.r7)(fe.defaultExpandedKeys,tn):fe.defaultExpandedKeys);if(re.expandedKeys||delete re.expandedKeys,Ne||re.expandedKeys){var Xn=(0,ce.oH)(Ne||Se.treeData,re.expandedKeys||Se.expandedKeys,$e);re.flattenNodes=Xn}if(fe.selectable&&(Te("selectedKeys")?re.selectedKeys=(0,vn.BT)(fe.selectedKeys,fe):!Be&&fe.defaultSelectedKeys&&(re.selectedKeys=(0,vn.BT)(fe.defaultSelectedKeys,fe))),fe.checkable){var Pn;if(Te("checkedKeys")?Pn=(0,vn.E6)(fe.checkedKeys)||{}:!Be&&fe.defaultCheckedKeys?Pn=(0,vn.E6)(fe.defaultCheckedKeys)||{}:Ne&&(Pn=(0,vn.E6)(fe.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),Pn){var Gn=Pn,Ni=Gn.checkedKeys,xi=Ni===void 0?[]:Ni,ki=Gn.halfCheckedKeys,tr=ki===void 0?[]:ki;if(!fe.checkStrictly){var Qe=(0,ue.S)(xi,!0,tn);xi=Qe.checkedKeys,tr=Qe.halfCheckedKeys}re.checkedKeys=xi,re.halfCheckedKeys=tr}}return Te("loadedKeys")&&(re.loadedKeys=fe.loadedKeys),re}}]),bt}(nt.Component);(0,Tt.Z)(Dt,"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:gt,allowDrop:function(){return!0},expandAction:!1}),(0,Tt.Z)(Dt,"TreeNode",Jt.Z);var Ct=Dt,yt=Ct},82661:function(An,Un,Et){"use strict";Et.d(Un,{BT:function(){return nt},E6:function(){return gt},L0:function(){return Tt},OM:function(){return et},_5:function(){return ve},r7:function(){return mt},wA:function(){return ie},yx:function(){return Ue}});var Mt=Et(80702),ne=Et(62853),ge=Et(48736),xe=Et(59301),ee=Et(639),Ht=Et(65065),oe=Et(34061),Re=null;function ve(St,wt){if(!St)return[];var zt=St.slice(),Wt=zt.indexOf(wt);return Wt>=0&&zt.splice(Wt,1),zt}function Tt(St,wt){var zt=(St||[]).slice();return zt.indexOf(wt)===-1&&zt.push(wt),zt}function Ue(St){return St.split("-")}function ie(St,wt){var zt=[],Wt=(0,Ht.Z)(wt,St);function $t(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Jt.forEach(function(Vt){var pe=Vt.key,ce=Vt.children;zt.push(pe),$t(ce)})}return $t(Wt.children),zt}function Je(St){if(St.parent){var wt=Ue(St.pos);return Number(wt[wt.length-1])===St.parent.children.length-1}return!1}function Ot(St){var wt=Ue(St.pos);return Number(wt[wt.length-1])===0}function et(St,wt,zt,Wt,$t,Jt,Vt,pe,ce,Ee){var Ie,ke=St.clientX,wn=St.clientY,on=St.target.getBoundingClientRect(),qe=on.top,We=on.height,he=(Ee==="rtl"?-1:1)*((($t==null?void 0:$t.x)||0)-ke),It=(he-12)/Wt,Le=ce.filter(function(yt){var kt;return(kt=pe[yt])===null||kt===void 0||(kt=kt.children)===null||kt===void 0?void 0:kt.length}),an=(0,Ht.Z)(pe,zt.eventKey);if(wn<qe+We/2){var Ze=Vt.findIndex(function(yt){return yt.key===an.key}),Ce=Ze<=0?0:Ze-1,nn=Vt[Ce].key;an=(0,Ht.Z)(pe,nn)}var Ye=an.key,Sn=an,Fe=an.key,vn=0,ue=0;if(!Le.includes(Ye))for(var Ve=0;Ve<It&&Je(an);Ve+=1)an=an.parent,ue+=1;var In=wt.data,Dt=an.node,Ct=!0;return Ot(an)&&an.level===0&&wn<qe+We/2&&Jt({dragNode:In,dropNode:Dt,dropPosition:-1})&&an.key===zt.eventKey?vn=-1:(Sn.children||[]).length&&Le.includes(Fe)?Jt({dragNode:In,dropNode:Dt,dropPosition:0})?vn=0:Ct=!1:ue===0?It>-1.5?Jt({dragNode:In,dropNode:Dt,dropPosition:1})?vn=1:Ct=!1:Jt({dragNode:In,dropNode:Dt,dropPosition:0})?vn=0:Jt({dragNode:In,dropNode:Dt,dropPosition:1})?vn=1:Ct=!1:Jt({dragNode:In,dropNode:Dt,dropPosition:1})?vn=1:Ct=!1,{dropPosition:vn,dropLevelOffset:ue,dropTargetKey:an.key,dropTargetPos:an.pos,dragOverNodeKey:Fe,dropContainerKey:vn===0?null:((Ie=an.parent)===null||Ie===void 0?void 0:Ie.key)||null,dropAllowed:Ct}}function nt(St,wt){if(St){var zt=wt.multiple;return zt?St.slice():St.length?[St[0]]:St}}var ct=function(wt){return wt};function lt(St,wt){if(!St)return[];var zt=wt||{},Wt=zt.processProps,$t=Wt===void 0?ct:Wt,Jt=Array.isArray(St)?St:[St];return Jt.map(function(Vt){var pe=Vt.children,ce=_objectWithoutProperties(Vt,Re),Ee=lt(pe,wt);return React.createElement(TreeNode,_extends({key:ce.key},$t(ce)),Ee)})}function gt(St){if(!St)return null;var wt;if(Array.isArray(St))wt={checkedKeys:St,halfCheckedKeys:void 0};else if((0,ne.Z)(St)==="object")wt={checkedKeys:St.checked||void 0,halfCheckedKeys:St.halfChecked||void 0};else return(0,ge.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return wt}function mt(St,wt){var zt=new Set;function Wt($t){if(!zt.has($t)){var Jt=(0,Ht.Z)(wt,$t);if(Jt){zt.add($t);var Vt=Jt.parent,pe=Jt.node;pe.disabled||Vt&&Wt(Vt.key)}}}return(St||[]).forEach(function($t){Wt($t)}),(0,Mt.Z)(zt)}},34643:function(An,Un,Et){"use strict";Et.d(Un,{S:function(){return oe}});var Mt=Et(48736),ne=Et(65065);function ge(Re,ve){var Tt=new Set;return Re.forEach(function(Ue){ve.has(Ue)||Tt.add(Ue)}),Tt}function xe(Re){var ve=Re||{},Tt=ve.disabled,Ue=ve.disableCheckbox,ie=ve.checkable;return!!(Tt||Ue)||ie===!1}function ee(Re,ve,Tt,Ue){for(var ie=new Set(Re),Je=new Set,Ot=0;Ot<=Tt;Ot+=1){var et=ve.get(Ot)||new Set;et.forEach(function(gt){var mt=gt.key,St=gt.node,wt=gt.children,zt=wt===void 0?[]:wt;ie.has(mt)&&!Ue(St)&&zt.filter(function(Wt){return!Ue(Wt.node)}).forEach(function(Wt){ie.add(Wt.key)})})}for(var nt=new Set,ct=Tt;ct>=0;ct-=1){var lt=ve.get(ct)||new Set;lt.forEach(function(gt){var mt=gt.parent,St=gt.node;if(!(Ue(St)||!gt.parent||nt.has(gt.parent.key))){if(Ue(gt.parent.node)){nt.add(mt.key);return}var wt=!0,zt=!1;(mt.children||[]).filter(function(Wt){return!Ue(Wt.node)}).forEach(function(Wt){var $t=Wt.key,Jt=ie.has($t);wt&&!Jt&&(wt=!1),!zt&&(Jt||Je.has($t))&&(zt=!0)}),wt&&ie.add(mt.key),zt&&Je.add(mt.key),nt.add(mt.key)}})}return{checkedKeys:Array.from(ie),halfCheckedKeys:Array.from(ge(Je,ie))}}function Ht(Re,ve,Tt,Ue,ie){for(var Je=new Set(Re),Ot=new Set(ve),et=0;et<=Ue;et+=1){var nt=Tt.get(et)||new Set;nt.forEach(function(mt){var St=mt.key,wt=mt.node,zt=mt.children,Wt=zt===void 0?[]:zt;!Je.has(St)&&!Ot.has(St)&&!ie(wt)&&Wt.filter(function($t){return!ie($t.node)}).forEach(function($t){Je.delete($t.key)})})}Ot=new Set;for(var ct=new Set,lt=Ue;lt>=0;lt-=1){var gt=Tt.get(lt)||new Set;gt.forEach(function(mt){var St=mt.parent,wt=mt.node;if(!(ie(wt)||!mt.parent||ct.has(mt.parent.key))){if(ie(mt.parent.node)){ct.add(St.key);return}var zt=!0,Wt=!1;(St.children||[]).filter(function($t){return!ie($t.node)}).forEach(function($t){var Jt=$t.key,Vt=Je.has(Jt);zt&&!Vt&&(zt=!1),!Wt&&(Vt||Ot.has(Jt))&&(Wt=!0)}),zt||Je.delete(St.key),Wt&&Ot.add(St.key),ct.add(St.key)}})}return{checkedKeys:Array.from(Je),halfCheckedKeys:Array.from(ge(Ot,Je))}}function oe(Re,ve,Tt,Ue){var ie=[],Je;Ue?Je=Ue:Je=xe;var Ot=new Set(Re.filter(function(lt){var gt=!!(0,ne.Z)(Tt,lt);return gt||ie.push(lt),gt})),et=new Map,nt=0;Object.keys(Tt).forEach(function(lt){var gt=Tt[lt],mt=gt.level,St=et.get(mt);St||(St=new Set,et.set(mt,St)),St.add(gt),nt=Math.max(nt,mt)}),(0,Mt.ZP)(!ie.length,"Tree missing follow keys: ".concat(ie.slice(0,100).map(function(lt){return"'".concat(lt,"'")}).join(", ")));var ct;return ve===!0?ct=ee(Ot,et,nt,Je):ct=Ht(Ot,ve.halfCheckedKeys,et,nt,Je),ct}},65065:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return Mt}});function Mt(ne,ge){return ne[ge]}},34061:function(An,Un,Et){"use strict";Et.d(Un,{F:function(){return mt},H8:function(){return gt},I8:function(){return lt},km:function(){return ie},oH:function(){return nt},w$:function(){return Je},zn:function(){return et}});var Mt=Et(62853),ne=Et(80702),ge=Et(77321),xe=Et(74416),ee=Et(11592),Ht=Et(2738),oe=Et(48736),Re=Et(65065),ve=["children"];function Tt(St,wt){return"".concat(St,"-").concat(wt)}function Ue(St){return St&&St.type&&St.type.isTreeNode}function ie(St,wt){return St!=null?St:wt}function Je(St){var wt=St||{},zt=wt.title,Wt=wt._title,$t=wt.key,Jt=wt.children,Vt=zt||"title";return{title:Vt,_title:Wt||[Vt],key:$t||"key",children:Jt||"children"}}function Ot(St,wt){var zt=new Map;function Wt($t){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";($t||[]).forEach(function(Vt){var pe=Vt[wt.key],ce=Vt[wt.children];warning(pe!=null,"Tree node must have a certain key: [".concat(Jt).concat(pe,"]"));var Ee=String(pe);warning(!zt.has(Ee)||pe===null||pe===void 0,"Same 'key' exist in the Tree: ".concat(Ee)),zt.set(Ee,!0),Wt(ce,"".concat(Jt).concat(Ee," > "))})}Wt(St)}function et(St){function wt(zt){var Wt=(0,ee.Z)(zt);return Wt.map(function($t){if(!Ue($t))return(0,oe.ZP)(!$t,"Tree/TreeNode can only accept TreeNode as children."),null;var Jt=$t.key,Vt=$t.props,pe=Vt.children,ce=(0,xe.Z)(Vt,ve),Ee=(0,ge.Z)({key:Jt},ce),Ie=wt(pe);return Ie.length&&(Ee.children=Ie),Ee}).filter(function($t){return $t})}return wt(St)}function nt(St,wt,zt){var Wt=Je(zt),$t=Wt._title,Jt=Wt.key,Vt=Wt.children,pe=new Set(wt===!0?[]:wt),ce=[];function Ee(Ie){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ie.map(function(wn,on){for(var qe=Tt(ke?ke.pos:"0",on),We=ie(wn[Jt],qe),he,It=0;It<$t.length;It+=1){var Le=$t[It];if(wn[Le]!==void 0){he=wn[Le];break}}var an=Object.assign((0,Ht.Z)(wn,[].concat((0,ne.Z)($t),[Jt,Vt])),{title:he,key:We,parent:ke,pos:qe,children:null,data:wn,isStart:[].concat((0,ne.Z)(ke?ke.isStart:[]),[on===0]),isEnd:[].concat((0,ne.Z)(ke?ke.isEnd:[]),[on===Ie.length-1])});return ce.push(an),wt===!0||pe.has(We)?an.children=Ee(wn[Vt]||[],an):an.children=[],an})}return Ee(St),ce}function ct(St,wt,zt){var Wt={};(0,Mt.Z)(zt)==="object"?Wt=zt:Wt={externalGetKey:zt},Wt=Wt||{};var $t=Wt,Jt=$t.childrenPropName,Vt=$t.externalGetKey,pe=$t.fieldNames,ce=Je(pe),Ee=ce.key,Ie=ce.children,ke=Jt||Ie,wn;Vt?typeof Vt=="string"?wn=function(We){return We[Vt]}:typeof Vt=="function"&&(wn=function(We){return Vt(We)}):wn=function(We,he){return ie(We[Ee],he)};function on(qe,We,he,It){var Le=qe?qe[ke]:St,an=qe?Tt(he.pos,We):"0",Ze=qe?[].concat((0,ne.Z)(It),[qe]):[];if(qe){var Ce=wn(qe,an),nn={node:qe,index:We,pos:an,key:Ce,parentPos:he.node?he.pos:null,level:he.level+1,nodes:Ze};wt(nn)}Le&&Le.forEach(function(Ye,Sn){on(Ye,Sn,{node:qe,pos:an,level:he?he.level+1:-1},Ze)})}on(null)}function lt(St){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=wt.initWrapper,Wt=wt.processEntity,$t=wt.onProcessFinished,Jt=wt.externalGetKey,Vt=wt.childrenPropName,pe=wt.fieldNames,ce=arguments.length>2?arguments[2]:void 0,Ee=Jt||ce,Ie={},ke={},wn={posEntities:Ie,keyEntities:ke};return zt&&(wn=zt(wn)||wn),ct(St,function(on){var qe=on.node,We=on.index,he=on.pos,It=on.key,Le=on.parentPos,an=on.level,Ze=on.nodes,Ce={node:qe,nodes:Ze,index:We,key:It,pos:he,level:an},nn=ie(It,he);Ie[he]=Ce,ke[nn]=Ce,Ce.parent=Ie[Le],Ce.parent&&(Ce.parent.children=Ce.parent.children||[],Ce.parent.children.push(Ce)),Wt&&Wt(Ce,wn)},{externalGetKey:Ee,childrenPropName:Vt,fieldNames:pe}),$t&&$t(wn),wn}function gt(St,wt){var zt=wt.expandedKeys,Wt=wt.selectedKeys,$t=wt.loadedKeys,Jt=wt.loadingKeys,Vt=wt.checkedKeys,pe=wt.halfCheckedKeys,ce=wt.dragOverNodeKey,Ee=wt.dropPosition,Ie=wt.keyEntities,ke=(0,Re.Z)(Ie,St),wn={eventKey:St,expanded:zt.indexOf(St)!==-1,selected:Wt.indexOf(St)!==-1,loaded:$t.indexOf(St)!==-1,loading:Jt.indexOf(St)!==-1,checked:Vt.indexOf(St)!==-1,halfChecked:pe.indexOf(St)!==-1,pos:String(ke?ke.pos:""),dragOver:ce===St&&Ee===0,dragOverGapTop:ce===St&&Ee===-1,dragOverGapBottom:ce===St&&Ee===1};return wn}function mt(St){var wt=St.data,zt=St.expanded,Wt=St.selected,$t=St.checked,Jt=St.loaded,Vt=St.loading,pe=St.halfChecked,ce=St.dragOver,Ee=St.dragOverGapTop,Ie=St.dragOverGapBottom,ke=St.pos,wn=St.active,on=St.eventKey,qe=(0,ge.Z)((0,ge.Z)({},wt),{},{expanded:zt,selected:Wt,checked:$t,loaded:Jt,loading:Vt,halfChecked:pe,dragOver:ce,dragOverGapTop:Ee,dragOverGapBottom:Ie,pos:ke,active:wn,key:on});return"props"in qe||Object.defineProperty(qe,"props",{get:function(){return(0,oe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),St}}),qe}},90472:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return on}});var Mt=Et(72308),ne=Et(96949),ge=Et(55090),xe=Et(80237),ee=Et(77205),Ht=Et(38793),oe=Et(49618),Re=Et(59301),ve=Et(77321),Tt=Et(74416),Ue=Et(62853),ie=Et(65736),Je=Et(72633),Ot=Et(80702),et=Et(92310),nt=Et.n(et),ct=Et(26112),lt=Et(48736),gt=function(qe,We){if(qe&&We){var he=Array.isArray(We)?We:We.split(","),It=qe.name||"",Le=qe.type||"",an=Le.replace(/\/.*$/,"");return he.some(function(Ze){var Ce=Ze.trim();if(/^\*(\/\*)?$/.test(Ze))return!0;if(Ce.charAt(0)==="."){var nn=It.toLowerCase(),Ye=Ce.toLowerCase(),Sn=[Ye];return(Ye===".jpg"||Ye===".jpeg")&&(Sn=[".jpg",".jpeg"]),Sn.some(function(Fe){return nn.endsWith(Fe)})}return/\/\*$/.test(Ce)?an===Ce.replace(/\/.*$/,""):Le===Ce?!0:/^\w+$/.test(Ce)?((0,lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ce,"'.Skip for check.")),!0):!1})}return!0};function mt(qe,We){var he="cannot ".concat(qe.method," ").concat(qe.action," ").concat(We.status,"'"),It=new Error(he);return It.status=We.status,It.method=qe.method,It.url=qe.action,It}function St(qe){var We=qe.responseText||qe.response;if(!We)return We;try{return JSON.parse(We)}catch(he){return We}}function wt(qe){var We=new XMLHttpRequest;qe.onProgress&&We.upload&&(We.upload.onprogress=function(an){an.total>0&&(an.percent=an.loaded/an.total*100),qe.onProgress(an)});var he=new FormData;qe.data&&Object.keys(qe.data).forEach(function(Le){var an=qe.data[Le];if(Array.isArray(an)){an.forEach(function(Ze){he.append("".concat(Le,"[]"),Ze)});return}he.append(Le,an)}),qe.file instanceof Blob?he.append(qe.filename,qe.file,qe.file.name):he.append(qe.filename,qe.file),We.onerror=function(an){qe.onError(an)},We.onload=function(){return We.status<200||We.status>=300?qe.onError(mt(qe,We),St(We)):qe.onSuccess(St(We),We)},We.open(qe.method,qe.action,!0),qe.withCredentials&&"withCredentials"in We&&(We.withCredentials=!0);var It=qe.headers||{};return It["X-Requested-With"]!==null&&We.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(It).forEach(function(Le){It[Le]!==null&&We.setRequestHeader(Le,It[Le])}),We.send(he),{abort:function(){We.abort()}}}var zt=function(){var qe=(0,Je.Z)((0,ie.Z)().mark(function We(he,It){var Le,an,Ze,Ce,nn,Ye,Sn,Fe;return(0,ie.Z)().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:Ye=function(){return Ye=(0,Je.Z)((0,ie.Z)().mark(function In(Dt){return(0,ie.Z)().wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.abrupt("return",new Promise(function(kt){Dt.file(function(jt){It(jt)?(Dt.fullPath&&!jt.webkitRelativePath&&(Object.defineProperties(jt,{webkitRelativePath:{writable:!0}}),jt.webkitRelativePath=Dt.fullPath.replace(/^\//,""),Object.defineProperties(jt,{webkitRelativePath:{writable:!1}})),kt(jt)):kt(null)})}));case 1:case"end":return yt.stop()}},In)})),Ye.apply(this,arguments)},nn=function(In){return Ye.apply(this,arguments)},Ce=function(){return Ce=(0,Je.Z)((0,ie.Z)().mark(function In(Dt){var Ct,yt,kt,jt,bt;return(0,ie.Z)().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:Ct=Dt.createReader(),yt=[];case 2:return fe.next=5,new Promise(function(Se){Ct.readEntries(Se,function(){return Se([])})});case 5:if(kt=fe.sent,jt=kt.length,jt){fe.next=9;break}return fe.abrupt("break",12);case 9:for(bt=0;bt<jt;bt++)yt.push(kt[bt]);fe.next=2;break;case 12:return fe.abrupt("return",yt);case 13:case"end":return fe.stop()}},In)})),Ce.apply(this,arguments)},Ze=function(In){return Ce.apply(this,arguments)},Le=[],an=[],he.forEach(function(Ve){return an.push(Ve.webkitGetAsEntry())}),Sn=function(){var Ve=(0,Je.Z)((0,ie.Z)().mark(function In(Dt,Ct){var yt,kt;return(0,ie.Z)().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(Dt){bt.next=2;break}return bt.abrupt("return");case 2:if(Dt.path=Ct||"",!Dt.isFile){bt.next=10;break}return bt.next=6,nn(Dt);case 6:yt=bt.sent,yt&&Le.push(yt),bt.next=15;break;case 10:if(!Dt.isDirectory){bt.next=15;break}return bt.next=13,Ze(Dt);case 13:kt=bt.sent,an.push.apply(an,(0,Ot.Z)(kt));case 15:case"end":return bt.stop()}},In)}));return function(Dt,Ct){return Ve.apply(this,arguments)}}(),Fe=0;case 9:if(!(Fe<an.length)){ue.next=15;break}return ue.next=12,Sn(an[Fe]);case 12:Fe++,ue.next=9;break;case 15:return ue.abrupt("return",Le);case 16:case"end":return ue.stop()}},We)}));return function(he,It){return qe.apply(this,arguments)}}(),Wt=zt,$t=+new Date,Jt=0;function Vt(){return"rc-upload-".concat($t,"-").concat(++Jt)}var pe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ce=function(qe){(0,ee.Z)(he,qe);var We=(0,Ht.Z)(he);function he(){var It;(0,ne.Z)(this,he);for(var Le=arguments.length,an=new Array(Le),Ze=0;Ze<Le;Ze++)an[Ze]=arguments[Ze];return It=We.call.apply(We,[this].concat(an)),(0,oe.Z)((0,xe.Z)(It),"state",{uid:Vt()}),(0,oe.Z)((0,xe.Z)(It),"reqs",{}),(0,oe.Z)((0,xe.Z)(It),"fileInput",void 0),(0,oe.Z)((0,xe.Z)(It),"_isMounted",void 0),(0,oe.Z)((0,xe.Z)(It),"onChange",function(Ce){var nn=It.props,Ye=nn.accept,Sn=nn.directory,Fe=Ce.target.files,vn=(0,Ot.Z)(Fe).filter(function(ue){return!Sn||gt(ue,Ye)});It.uploadFiles(vn),It.reset()}),(0,oe.Z)((0,xe.Z)(It),"onClick",function(Ce){var nn=It.fileInput;if(nn){var Ye=Ce.target,Sn=It.props.onClick;if(Ye&&Ye.tagName==="BUTTON"){var Fe=nn.parentNode;Fe.focus(),Ye.blur()}nn.click(),Sn&&Sn(Ce)}}),(0,oe.Z)((0,xe.Z)(It),"onKeyDown",function(Ce){Ce.key==="Enter"&&It.onClick(Ce)}),(0,oe.Z)((0,xe.Z)(It),"onFileDrop",function(){var Ce=(0,Je.Z)((0,ie.Z)().mark(function nn(Ye){var Sn,Fe,vn;return(0,ie.Z)().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(Sn=It.props.multiple,Ye.preventDefault(),Ye.type!=="dragover"){Ve.next=4;break}return Ve.abrupt("return");case 4:if(!It.props.directory){Ve.next=11;break}return Ve.next=7,Wt(Array.prototype.slice.call(Ye.dataTransfer.items),function(In){return gt(In,It.props.accept)});case 7:Fe=Ve.sent,It.uploadFiles(Fe),Ve.next=14;break;case 11:vn=(0,Ot.Z)(Ye.dataTransfer.files).filter(function(In){return gt(In,It.props.accept)}),Sn===!1&&(vn=vn.slice(0,1)),It.uploadFiles(vn);case 14:case"end":return Ve.stop()}},nn)}));return function(nn){return Ce.apply(this,arguments)}}()),(0,oe.Z)((0,xe.Z)(It),"uploadFiles",function(Ce){var nn=(0,Ot.Z)(Ce),Ye=nn.map(function(Sn){return Sn.uid=Vt(),It.processFile(Sn,nn)});Promise.all(Ye).then(function(Sn){var Fe=It.props.onBatchStart;Fe==null||Fe(Sn.map(function(vn){var ue=vn.origin,Ve=vn.parsedFile;return{file:ue,parsedFile:Ve}})),Sn.filter(function(vn){return vn.parsedFile!==null}).forEach(function(vn){It.post(vn)})})}),(0,oe.Z)((0,xe.Z)(It),"processFile",function(){var Ce=(0,Je.Z)((0,ie.Z)().mark(function nn(Ye,Sn){var Fe,vn,ue,Ve,In,Dt,Ct,yt,kt;return(0,ie.Z)().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(Fe=It.props.beforeUpload,vn=Ye,!Fe){bt.next=14;break}return bt.prev=3,bt.next=6,Fe(Ye,Sn);case 6:vn=bt.sent,bt.next=12;break;case 9:bt.prev=9,bt.t0=bt.catch(3),vn=!1;case 12:if(vn!==!1){bt.next=14;break}return bt.abrupt("return",{origin:Ye,parsedFile:null,action:null,data:null});case 14:if(ue=It.props.action,typeof ue!="function"){bt.next=21;break}return bt.next=18,ue(Ye);case 18:Ve=bt.sent,bt.next=22;break;case 21:Ve=ue;case 22:if(In=It.props.data,typeof In!="function"){bt.next=29;break}return bt.next=26,In(Ye);case 26:Dt=bt.sent,bt.next=30;break;case 29:Dt=In;case 30:return Ct=((0,Ue.Z)(vn)==="object"||typeof vn=="string")&&vn?vn:Ye,Ct instanceof File?yt=Ct:yt=new File([Ct],Ye.name,{type:Ye.type}),kt=yt,kt.uid=Ye.uid,bt.abrupt("return",{origin:Ye,data:Dt,parsedFile:kt,action:Ve});case 35:case"end":return bt.stop()}},nn,null,[[3,9]])}));return function(nn,Ye){return Ce.apply(this,arguments)}}()),(0,oe.Z)((0,xe.Z)(It),"saveFileInput",function(Ce){It.fileInput=Ce}),It}return(0,ge.Z)(he,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Le){var an=this,Ze=Le.data,Ce=Le.origin,nn=Le.action,Ye=Le.parsedFile;if(this._isMounted){var Sn=this.props,Fe=Sn.onStart,vn=Sn.customRequest,ue=Sn.name,Ve=Sn.headers,In=Sn.withCredentials,Dt=Sn.method,Ct=Ce.uid,yt=vn||wt,kt={action:nn,filename:ue,data:Ze,file:Ye,headers:Ve,withCredentials:In,method:Dt||"post",onProgress:function(bt){var Gt=an.props.onProgress;Gt==null||Gt(bt,Ye)},onSuccess:function(bt,Gt){var fe=an.props.onSuccess;fe==null||fe(bt,Ye,Gt),delete an.reqs[Ct]},onError:function(bt,Gt){var fe=an.props.onError;fe==null||fe(bt,Gt,Ye),delete an.reqs[Ct]}};Fe(Ce),this.reqs[Ct]=yt(kt)}}},{key:"reset",value:function(){this.setState({uid:Vt()})}},{key:"abort",value:function(Le){var an=this.reqs;if(Le){var Ze=Le.uid?Le.uid:Le;an[Ze]&&an[Ze].abort&&an[Ze].abort(),delete an[Ze]}else Object.keys(an).forEach(function(Ce){an[Ce]&&an[Ce].abort&&an[Ce].abort(),delete an[Ce]})}},{key:"render",value:function(){var Le=this.props,an=Le.component,Ze=Le.prefixCls,Ce=Le.className,nn=Le.classNames,Ye=nn===void 0?{}:nn,Sn=Le.disabled,Fe=Le.id,vn=Le.name,ue=Le.style,Ve=Le.styles,In=Ve===void 0?{}:Ve,Dt=Le.multiple,Ct=Le.accept,yt=Le.capture,kt=Le.children,jt=Le.directory,bt=Le.openFileDialogOnClick,Gt=Le.onMouseEnter,fe=Le.onMouseLeave,Se=Le.hasControlInside,Be=(0,Tt.Z)(Le,pe),re=nt()((0,oe.Z)((0,oe.Z)((0,oe.Z)({},Ze,!0),"".concat(Ze,"-disabled"),Sn),Ce,Ce)),Te=jt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ne=Sn?{}:{onClick:bt?this.onClick:function(){},onKeyDown:bt?this.onKeyDown:function(){},onMouseEnter:Gt,onMouseLeave:fe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Se?void 0:"0"};return Re.createElement(an,(0,Mt.Z)({},Ne,{className:re,role:Se?void 0:"button",style:ue}),Re.createElement("input",(0,Mt.Z)({},(0,ct.Z)(Be,{aria:!0,data:!0}),{id:Fe,name:vn,disabled:Sn,type:"file",ref:this.saveFileInput,onClick:function(fn){return fn.stopPropagation()},key:this.state.uid,style:(0,ve.Z)({display:"none"},In.input),className:Ye.input,accept:Ct},Te,{multiple:Dt,onChange:this.onChange},yt!=null?{capture:yt}:{})),kt)}}]),he}(Re.Component),Ee=ce;function Ie(){}var ke=function(qe){(0,ee.Z)(he,qe);var We=(0,Ht.Z)(he);function he(){var It;(0,ne.Z)(this,he);for(var Le=arguments.length,an=new Array(Le),Ze=0;Ze<Le;Ze++)an[Ze]=arguments[Ze];return It=We.call.apply(We,[this].concat(an)),(0,oe.Z)((0,xe.Z)(It),"uploader",void 0),(0,oe.Z)((0,xe.Z)(It),"saveUploader",function(Ce){It.uploader=Ce}),It}return(0,ge.Z)(he,[{key:"abort",value:function(Le){this.uploader.abort(Le)}},{key:"render",value:function(){return Re.createElement(Ee,(0,Mt.Z)({},this.props,{ref:this.saveUploader}))}}]),he}(Re.Component);(0,oe.Z)(ke,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ie,onError:Ie,onSuccess:Ie,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var wn=ke,on=wn},8224:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return ne}});var Mt=Et(4676);function ne(ge,xe,ee,Ht){var oe=Mt.unstable_batchedUpdates?function(ve){Mt.unstable_batchedUpdates(ee,ve)}:ee;return ge!=null&&ge.addEventListener&&ge.addEventListener(xe,oe,Ht),{remove:function(){ge!=null&&ge.removeEventListener&&ge.removeEventListener(xe,oe,Ht)}}}},24514:function(An,Un,Et){"use strict";Et.d(Un,{G:function(){return xe}});var Mt=Et(47273),ne=function(Ht){if((0,Mt.Z)()&&window.document.documentElement){var oe=Array.isArray(Ht)?Ht:[Ht],Re=window.document.documentElement;return oe.some(function(ve){return ve in Re.style})}return!1},ge=function(Ht,oe){if(!ne(Ht))return!1;var Re=document.createElement("div"),ve=Re.style[Ht];return Re.style[Ht]=oe,Re.style[Ht]!==ve};function xe(ee,Ht){return!Array.isArray(ee)&&Ht!==void 0?ge(ee,Ht):ne(ee)}},45680:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return In}});var Mt=Et(72308),ne=Et(62853),ge=Et(77321),xe=Et(49618),ee=Et(52487),Ht=Et(74416),oe=Et(92310),Re=Et.n(oe),ve=Et(29301),Tt=Et(70425),Ue=Et(34280),ie=Et(59301),Je=Et(4676),Ot=ie.forwardRef(function(Dt,Ct){var yt=Dt.height,kt=Dt.offsetY,jt=Dt.offsetX,bt=Dt.children,Gt=Dt.prefixCls,fe=Dt.onInnerResize,Se=Dt.innerProps,Be=Dt.rtl,re=Dt.extra,Te={},Ne={display:"flex",flexDirection:"column"};return kt!==void 0&&(Te={height:yt,position:"relative",overflow:"hidden"},Ne=(0,ge.Z)((0,ge.Z)({},Ne),{},(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({transform:"translateY(".concat(kt,"px)")},Be?"marginRight":"marginLeft",-jt),"position","absolute"),"left",0),"right",0),"top",0))),ie.createElement("div",{style:Te},ie.createElement(ve.Z,{onResize:function(fn){var tn=fn.offsetHeight;tn&&fe&&fe()}},ie.createElement("div",(0,Mt.Z)({style:Ne,className:Re()((0,xe.Z)({},"".concat(Gt,"-holder-inner"),Gt)),ref:Ct},Se),bt,re)))});Ot.displayName="Filler";var et=Ot;function nt(Dt){var Ct=Dt.children,yt=Dt.setRef,kt=ie.useCallback(function(jt){yt(jt)},[]);return ie.cloneElement(Ct,{ref:kt})}function ct(Dt,Ct,yt,kt,jt,bt,Gt,fe){var Se=fe.getKey;return Dt.slice(Ct,yt+1).map(function(Be,re){var Te=Ct+re,Ne=Gt(Be,Te,{style:{width:kt},offsetX:jt}),$e=Se(Be);return ie.createElement(nt,{key:$e,setRef:function(tn){return bt(Be,tn)}},Ne)})}function lt(Dt,Ct,yt,kt){var jt=yt-Dt,bt=Ct-yt,Gt=Math.min(jt,bt)*2;if(kt<=Gt){var fe=Math.floor(kt/2);return kt%2?yt+fe+1:yt-fe}return jt>bt?yt-(kt-bt):yt+(kt-jt)}function gt(Dt,Ct,yt){var kt=Dt.length,jt=Ct.length,bt,Gt;if(kt===0&&jt===0)return null;kt<jt?(bt=Dt,Gt=Ct):(bt=Ct,Gt=Dt);var fe={__EMPTY_ITEM__:!0};function Se(fn){return fn!==void 0?yt(fn):fe}for(var Be=null,re=Math.abs(kt-jt)!==1,Te=0;Te<Gt.length;Te+=1){var Ne=Se(bt[Te]),$e=Se(Gt[Te]);if(Ne!==$e){Be=Te,re=re||Ne!==Se(Gt[Te+1]);break}}return Be===null?null:{index:Be,multiple:re}}function mt(Dt,Ct,yt){var kt=ie.useState(Dt),jt=(0,ee.Z)(kt,2),bt=jt[0],Gt=jt[1],fe=ie.useState(null),Se=(0,ee.Z)(fe,2),Be=Se[0],re=Se[1];return ie.useEffect(function(){var Te=gt(bt||[],Dt||[],Ct);(Te==null?void 0:Te.index)!==void 0&&(yt==null||yt(Te.index),re(Dt[Te.index])),Gt(Dt)},[Dt]),[Be]}var St=Et(16089),wt=(typeof navigator=="undefined"?"undefined":(0,ne.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),zt=wt,Wt=function(Dt,Ct,yt,kt){var jt=(0,ie.useRef)(!1),bt=(0,ie.useRef)(null);function Gt(){clearTimeout(bt.current),jt.current=!0,bt.current=setTimeout(function(){jt.current=!1},50)}var fe=(0,ie.useRef)({top:Dt,bottom:Ct,left:yt,right:kt});return fe.current.top=Dt,fe.current.bottom=Ct,fe.current.left=yt,fe.current.right=kt,function(Se,Be){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Te=Se?Be<0&&fe.current.left||Be>0&&fe.current.right:Be<0&&fe.current.top||Be>0&&fe.current.bottom;return re&&Te?(clearTimeout(bt.current),jt.current=!1):(!Te||jt.current)&&Gt(),!jt.current&&Te}};function $t(Dt,Ct,yt,kt,jt,bt,Gt){var fe=(0,ie.useRef)(0),Se=(0,ie.useRef)(null),Be=(0,ie.useRef)(null),re=(0,ie.useRef)(!1),Te=Wt(Ct,yt,kt,jt);function Ne(Xn,Pn){if(St.Z.cancel(Se.current),!Te(!1,Pn)){var Gn=Xn;if(!Gn._virtualHandled)Gn._virtualHandled=!0;else return;fe.current+=Pn,Be.current=Pn,zt||Gn.preventDefault(),Se.current=(0,St.Z)(function(){var Ni=re.current?10:1;Gt(fe.current*Ni,!1),fe.current=0})}}function $e(Xn,Pn){Gt(Pn,!0),zt||Xn.preventDefault()}var fn=(0,ie.useRef)(null),tn=(0,ie.useRef)(null);function He(Xn){if(Dt){St.Z.cancel(tn.current),tn.current=(0,St.Z)(function(){fn.current=null},2);var Pn=Xn.deltaX,Gn=Xn.deltaY,Ni=Xn.shiftKey,xi=Pn,ki=Gn;(fn.current==="sx"||!fn.current&&Ni&&Gn&&!Pn)&&(xi=Gn,ki=0,fn.current="sx");var tr=Math.abs(xi),Qe=Math.abs(ki);fn.current===null&&(fn.current=bt&&tr>Qe?"x":"y"),fn.current==="y"?Ne(Xn,ki):$e(Xn,xi)}}function On(Xn){Dt&&(re.current=Xn.detail===Be.current)}return[He,On]}function Jt(Dt,Ct,yt,kt){var jt=ie.useMemo(function(){return[new Map,[]]},[Dt,yt.id,kt]),bt=(0,ee.Z)(jt,2),Gt=bt[0],fe=bt[1],Se=function(re){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,Ne=Gt.get(re),$e=Gt.get(Te);if(Ne===void 0||$e===void 0)for(var fn=Dt.length,tn=fe.length;tn<fn;tn+=1){var He,On=Dt[tn],Xn=Ct(On);Gt.set(Xn,tn);var Pn=(He=yt.get(Xn))!==null&&He!==void 0?He:kt;if(fe[tn]=(fe[tn-1]||0)+Pn,Xn===re&&(Ne=tn),Xn===Te&&($e=tn),Ne!==void 0&&$e!==void 0)break}return{top:fe[Ne-1]||0,bottom:fe[$e]}};return Se}var Vt=Et(96949),pe=Et(55090),ce=function(){function Dt(){(0,Vt.Z)(this,Dt),(0,xe.Z)(this,"maps",void 0),(0,xe.Z)(this,"id",0),(0,xe.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,pe.Z)(Dt,[{key:"set",value:function(yt,kt){this.maps[yt]=kt,this.id+=1,this.diffKeys.add(yt)}},{key:"get",value:function(yt){return this.maps[yt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Dt}(),Ee=ce;function Ie(Dt){var Ct=parseFloat(Dt);return isNaN(Ct)?0:Ct}function ke(Dt,Ct,yt){var kt=ie.useState(0),jt=(0,ee.Z)(kt,2),bt=jt[0],Gt=jt[1],fe=(0,ie.useRef)(new Map),Se=(0,ie.useRef)(new Ee),Be=(0,ie.useRef)(0);function re(){Be.current+=1}function Te(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;re();var fn=function(){var On=!1;fe.current.forEach(function(Xn,Pn){if(Xn&&Xn.offsetParent){var Gn=Xn.offsetHeight,Ni=getComputedStyle(Xn),xi=Ni.marginTop,ki=Ni.marginBottom,tr=Ie(xi),Qe=Ie(ki),sn=Gn+tr+Qe;Se.current.get(Pn)!==sn&&(Se.current.set(Pn,sn),On=!0)}}),On&&Gt(function(Xn){return Xn+1})};if($e)fn();else{Be.current+=1;var tn=Be.current;Promise.resolve().then(function(){tn===Be.current&&fn()})}}function Ne($e,fn){var tn=Dt($e),He=fe.current.get(tn);fn?(fe.current.set(tn,fn),Te()):fe.current.delete(tn),!He!=!fn&&(fn?Ct==null||Ct($e):yt==null||yt($e))}return(0,ie.useEffect)(function(){return re},[]),[Ne,Te,Se.current,bt]}var wn=14/15;function on(Dt,Ct,yt){var kt=(0,ie.useRef)(!1),jt=(0,ie.useRef)(0),bt=(0,ie.useRef)(0),Gt=(0,ie.useRef)(null),fe=(0,ie.useRef)(null),Se,Be=function($e){if(kt.current){var fn=Math.ceil($e.touches[0].pageX),tn=Math.ceil($e.touches[0].pageY),He=jt.current-fn,On=bt.current-tn,Xn=Math.abs(He)>Math.abs(On);Xn?jt.current=fn:bt.current=tn;var Pn=yt(Xn,Xn?He:On,!1,$e);Pn&&$e.preventDefault(),clearInterval(fe.current),Pn&&(fe.current=setInterval(function(){Xn?He*=wn:On*=wn;var Gn=Math.floor(Xn?He:On);(!yt(Xn,Gn,!0)||Math.abs(Gn)<=.1)&&clearInterval(fe.current)},16))}},re=function(){kt.current=!1,Se()},Te=function($e){Se(),$e.touches.length===1&&!kt.current&&(kt.current=!0,jt.current=Math.ceil($e.touches[0].pageX),bt.current=Math.ceil($e.touches[0].pageY),Gt.current=$e.target,Gt.current.addEventListener("touchmove",Be,{passive:!1}),Gt.current.addEventListener("touchend",re,{passive:!0}))};Se=function(){Gt.current&&(Gt.current.removeEventListener("touchmove",Be),Gt.current.removeEventListener("touchend",re))},(0,Ue.Z)(function(){return Dt&&Ct.current.addEventListener("touchstart",Te,{passive:!0}),function(){var Ne;(Ne=Ct.current)===null||Ne===void 0||Ne.removeEventListener("touchstart",Te),Se(),clearInterval(fe.current)}},[Dt])}function qe(Dt){return Math.floor(Math.pow(Dt,.5))}function We(Dt,Ct){var yt="touches"in Dt?Dt.touches[0]:Dt;return yt[Ct?"pageX":"pageY"]-window[Ct?"scrollX":"scrollY"]}function he(Dt,Ct,yt){ie.useEffect(function(){var kt=Ct.current;if(Dt&&kt){var jt=!1,bt,Gt,fe=function(){St.Z.cancel(bt)},Se=function Ne(){fe(),bt=(0,St.Z)(function(){yt(Gt),Ne()})},Be=function($e){if(!($e.target.draggable||$e.button!==0)){var fn=$e;fn._virtualHandled||(fn._virtualHandled=!0,jt=!0)}},re=function(){jt=!1,fe()},Te=function($e){if(jt){var fn=We($e,!1),tn=kt.getBoundingClientRect(),He=tn.top,On=tn.bottom;if(fn<=He){var Xn=He-fn;Gt=-qe(Xn),Se()}else if(fn>=On){var Pn=fn-On;Gt=qe(Pn),Se()}else fe()}};return kt.addEventListener("mousedown",Be),kt.ownerDocument.addEventListener("mouseup",re),kt.ownerDocument.addEventListener("mousemove",Te),function(){kt.removeEventListener("mousedown",Be),kt.ownerDocument.removeEventListener("mouseup",re),kt.ownerDocument.removeEventListener("mousemove",Te),fe()}}},[Dt])}var It=10;function Le(Dt,Ct,yt,kt,jt,bt,Gt,fe){var Se=ie.useRef(),Be=ie.useState(null),re=(0,ee.Z)(Be,2),Te=re[0],Ne=re[1];return(0,Ue.Z)(function(){if(Te&&Te.times<It){if(!Dt.current){Ne(function(qi){return(0,ge.Z)({},qi)});return}bt();var $e=Te.targetAlign,fn=Te.originAlign,tn=Te.index,He=Te.offset,On=Dt.current.clientHeight,Xn=!1,Pn=$e,Gn=null;if(On){for(var Ni=$e||fn,xi=0,ki=0,tr=0,Qe=Math.min(Ct.length-1,tn),sn=0;sn<=Qe;sn+=1){var Qn=jt(Ct[sn]);ki=xi;var Li=yt.get(Qn);tr=ki+(Li===void 0?kt:Li),xi=tr}for(var Ri=Ni==="top"?He:On-He,Pi=Qe;Pi>=0;Pi-=1){var ur=jt(Ct[Pi]),ir=yt.get(ur);if(ir===void 0){Xn=!0;break}if(Ri-=ir,Ri<=0)break}switch(Ni){case"top":Gn=ki-He;break;case"bottom":Gn=tr-On+He;break;default:{var pr=Dt.current.scrollTop,ci=pr+On;ki<pr?Pn="top":tr>ci&&(Pn="bottom")}}Gn!==null&&Gt(Gn),Gn!==Te.lastTop&&(Xn=!0)}Xn&&Ne((0,ge.Z)((0,ge.Z)({},Te),{},{times:Te.times+1,targetAlign:Pn,lastTop:Gn}))}},[Te,Dt.current]),function($e){if($e==null){fe();return}if(St.Z.cancel(Se.current),typeof $e=="number")Gt($e);else if($e&&(0,ne.Z)($e)==="object"){var fn,tn=$e.align;"index"in $e?fn=$e.index:fn=Ct.findIndex(function(Xn){return jt(Xn)===$e.key});var He=$e.offset,On=He===void 0?0:He;Ne({times:0,index:fn,offset:On,originAlign:tn})}}}var an=ie.forwardRef(function(Dt,Ct){var yt=Dt.prefixCls,kt=Dt.rtl,jt=Dt.scrollOffset,bt=Dt.scrollRange,Gt=Dt.onStartMove,fe=Dt.onStopMove,Se=Dt.onScroll,Be=Dt.horizontal,re=Dt.spinSize,Te=Dt.containerSize,Ne=Dt.style,$e=Dt.thumbStyle,fn=Dt.showScrollBar,tn=ie.useState(!1),He=(0,ee.Z)(tn,2),On=He[0],Xn=He[1],Pn=ie.useState(null),Gn=(0,ee.Z)(Pn,2),Ni=Gn[0],xi=Gn[1],ki=ie.useState(null),tr=(0,ee.Z)(ki,2),Qe=tr[0],sn=tr[1],Qn=!kt,Li=ie.useRef(),Ri=ie.useRef(),Pi=ie.useState(fn),ur=(0,ee.Z)(Pi,2),ir=ur[0],pr=ur[1],ci=ie.useRef(),qi=function(){fn===!0||fn===!1||(clearTimeout(ci.current),pr(!0),ci.current=setTimeout(function(){pr(!1)},3e3))},Pt=bt-Te||0,Ii=Te-re||0,Jn=ie.useMemo(function(){if(jt===0||Pt===0)return 0;var be=jt/Pt;return be*Ii},[jt,Pt,Ii]),er=function(qn){qn.stopPropagation(),qn.preventDefault()},Ji=ie.useRef({top:Jn,dragging:On,pageY:Ni,startTop:Qe});Ji.current={top:Jn,dragging:On,pageY:Ni,startTop:Qe};var Zi=function(qn){Xn(!0),xi(We(qn,Be)),sn(Ji.current.top),Gt(),qn.stopPropagation(),qn.preventDefault()};ie.useEffect(function(){var be=function(gn){gn.preventDefault()},qn=Li.current,ni=Ri.current;return qn.addEventListener("touchstart",be,{passive:!1}),ni.addEventListener("touchstart",Zi,{passive:!1}),function(){qn.removeEventListener("touchstart",be),ni.removeEventListener("touchstart",Zi)}},[]);var fi=ie.useRef();fi.current=Pt;var bn=ie.useRef();bn.current=Ii,ie.useEffect(function(){if(On){var be,qn=function(gn){var Hn=Ji.current,Oe=Hn.dragging,De=Hn.pageY,ai=Hn.startTop;St.Z.cancel(be);var qt=Li.current.getBoundingClientRect(),un=Te/(Be?qt.width:qt.height);if(Oe){var Rn=(We(gn,Be)-De)*un,Ai=ai;!Qn&&Be?Ai-=Rn:Ai+=Rn;var ln=fi.current,yn=bn.current,li=yn?Ai/yn:0,bi=Math.ceil(li*ln);bi=Math.max(bi,0),bi=Math.min(bi,ln),be=(0,St.Z)(function(){Se(bi,Be)})}},ni=function(){Xn(!1),fe()};return window.addEventListener("mousemove",qn,{passive:!0}),window.addEventListener("touchmove",qn,{passive:!0}),window.addEventListener("mouseup",ni,{passive:!0}),window.addEventListener("touchend",ni,{passive:!0}),function(){window.removeEventListener("mousemove",qn),window.removeEventListener("touchmove",qn),window.removeEventListener("mouseup",ni),window.removeEventListener("touchend",ni),St.Z.cancel(be)}}},[On]),ie.useEffect(function(){return qi(),function(){clearTimeout(ci.current)}},[jt]),ie.useImperativeHandle(Ct,function(){return{delayHidden:qi}});var En="".concat(yt,"-scrollbar"),Ae={position:"absolute",visibility:ir?null:"hidden"},Me={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Be?(Ae.height=8,Ae.left=0,Ae.right=0,Ae.bottom=0,Me.height="100%",Me.width=re,Qn?Me.left=Jn:Me.right=Jn):(Ae.width=8,Ae.top=0,Ae.bottom=0,Qn?Ae.right=0:Ae.left=0,Me.width="100%",Me.height=re,Me.top=Jn),ie.createElement("div",{ref:Li,className:Re()(En,(0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(En,"-horizontal"),Be),"".concat(En,"-vertical"),!Be),"".concat(En,"-visible"),ir)),style:(0,ge.Z)((0,ge.Z)({},Ae),Ne),onMouseDown:er,onMouseMove:qi},ie.createElement("div",{ref:Ri,className:Re()("".concat(En,"-thumb"),(0,xe.Z)({},"".concat(En,"-thumb-moving"),On)),style:(0,ge.Z)((0,ge.Z)({},Me),$e),onMouseDown:Zi}))}),Ze=an,Ce=20;function nn(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,yt=Dt/Ct*Dt;return isNaN(yt)&&(yt=0),yt=Math.max(yt,Ce),Math.floor(yt)}var Ye=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Sn=[],Fe={overflowY:"auto",overflowAnchor:"none"};function vn(Dt,Ct){var yt=Dt.prefixCls,kt=yt===void 0?"rc-virtual-list":yt,jt=Dt.className,bt=Dt.height,Gt=Dt.itemHeight,fe=Dt.fullHeight,Se=fe===void 0?!0:fe,Be=Dt.style,re=Dt.data,Te=Dt.children,Ne=Dt.itemKey,$e=Dt.virtual,fn=Dt.direction,tn=Dt.scrollWidth,He=Dt.component,On=He===void 0?"div":He,Xn=Dt.onScroll,Pn=Dt.onVirtualScroll,Gn=Dt.onVisibleChange,Ni=Dt.innerProps,xi=Dt.extraRender,ki=Dt.styles,tr=Dt.showScrollBar,Qe=tr===void 0?"optional":tr,sn=(0,Ht.Z)(Dt,Ye),Qn=ie.useCallback(function(Nn){return typeof Ne=="function"?Ne(Nn):Nn==null?void 0:Nn[Ne]},[Ne]),Li=ke(Qn,null,null),Ri=(0,ee.Z)(Li,4),Pi=Ri[0],ur=Ri[1],ir=Ri[2],pr=Ri[3],ci=!!($e!==!1&&bt&&Gt),qi=ie.useMemo(function(){return Object.values(ir.maps).reduce(function(Nn,si){return Nn+si},0)},[ir.id,ir.maps]),Pt=ci&&re&&(Math.max(Gt*re.length,qi)>bt||!!tn),Ii=fn==="rtl",Jn=Re()(kt,(0,xe.Z)({},"".concat(kt,"-rtl"),Ii),jt),er=re||Sn,Ji=(0,ie.useRef)(),Zi=(0,ie.useRef)(),fi=(0,ie.useRef)(),bn=(0,ie.useState)(0),En=(0,ee.Z)(bn,2),Ae=En[0],Me=En[1],be=(0,ie.useState)(0),qn=(0,ee.Z)(be,2),ni=qn[0],Fi=qn[1],gn=(0,ie.useState)(!1),Hn=(0,ee.Z)(gn,2),Oe=Hn[0],De=Hn[1],ai=function(){De(!0)},qt=function(){De(!1)},un={getKey:Qn};function Rn(Nn){Me(function(si){var hi;typeof Nn=="function"?hi=Nn(si):hi=Nn;var pi=rr(hi);return Ji.current.scrollTop=pi,pi})}var Ai=(0,ie.useRef)({start:0,end:er.length}),ln=(0,ie.useRef)(),yn=mt(er,Qn),li=(0,ee.Z)(yn,1),bi=li[0];ln.current=bi;var Ui=ie.useMemo(function(){if(!ci)return{scrollHeight:void 0,start:0,end:er.length-1,offset:void 0};if(!Pt){var Nn;return{scrollHeight:((Nn=Zi.current)===null||Nn===void 0?void 0:Nn.offsetHeight)||0,start:0,end:er.length-1,offset:void 0}}for(var si=0,hi,pi,mi,ar=er.length,Nt=0;Nt<ar;Nt+=1){var ae=er[Nt],Ut=Qn(ae),se=ir.get(Ut),we=si+(se===void 0?Gt:se);we>=Ae&&hi===void 0&&(hi=Nt,pi=si),we>Ae+bt&&mi===void 0&&(mi=Nt),si=we}return hi===void 0&&(hi=0,pi=0,mi=Math.ceil(bt/Gt)),mi===void 0&&(mi=er.length-1),mi=Math.min(mi+1,er.length-1),{scrollHeight:si,start:hi,end:mi,offset:pi}},[Pt,ci,Ae,er,pr,bt]),Di=Ui.scrollHeight,$n=Ui.start,wi=Ui.end,dr=Ui.offset;Ai.current.start=$n,Ai.current.end=wi,ie.useLayoutEffect(function(){var Nn=ir.getRecord();if(Nn.size===1){var si=Array.from(Nn)[0],hi=er[$n];if(hi){var pi=Qn(hi);if(pi===si){var mi=ir.get(si),ar=mi-Gt;Rn(function(Nt){return Nt+ar})}}}ir.resetRecord()},[Di]);var fr=ie.useState({width:0,height:bt}),xr=(0,ee.Z)(fr,2),cn=xr[0],_r=xr[1],kr=function(si){_r({width:si.offsetWidth,height:si.offsetHeight})},to=(0,ie.useRef)(),rn=(0,ie.useRef)(),gi=ie.useMemo(function(){return nn(cn.width,tn)},[cn.width,tn]),Ki=ie.useMemo(function(){return nn(cn.height,Di)},[cn.height,Di]),nr=Di-bt,Qi=(0,ie.useRef)(nr);Qi.current=nr;function rr(Nn){var si=Nn;return Number.isNaN(Qi.current)||(si=Math.min(si,Qi.current)),si=Math.max(si,0),si}var Zr=Ae<=0,Br=Ae>=nr,Hr=ni<=0,zr=ni>=tn,pn=Wt(Zr,Br,Hr,zr),Yr=function(){return{x:Ii?-ni:ni,y:Ae}},Ln=(0,ie.useRef)(Yr()),_i=(0,Tt.zX)(function(Nn){if(Pn){var si=(0,ge.Z)((0,ge.Z)({},Yr()),Nn);(Ln.current.x!==si.x||Ln.current.y!==si.y)&&(Pn(si),Ln.current=si)}});function or(Nn,si){var hi=Nn;si?((0,Je.flushSync)(function(){Fi(hi)}),_i()):Rn(hi)}function Cr(Nn){var si=Nn.currentTarget.scrollTop;si!==Ae&&Rn(si),Xn==null||Xn(Nn),_i()}var Po=function(si){var hi=si,pi=tn?tn-cn.width:0;return hi=Math.max(hi,0),hi=Math.min(hi,pi),hi},co=(0,Tt.zX)(function(Nn,si){si?((0,Je.flushSync)(function(){Fi(function(hi){var pi=hi+(Ii?-Nn:Nn);return Po(pi)})}),_i()):Rn(function(hi){var pi=hi+Nn;return pi})}),Kr=$t(ci,Zr,Br,Hr,zr,!!tn,co),eo=(0,ee.Z)(Kr,2),Ke=eo[0],Mn=eo[1];on(ci,Ji,function(Nn,si,hi,pi){var mi=pi;return pn(Nn,si,hi)?!1:!mi||!mi._virtualHandled?(mi&&(mi._virtualHandled=!0),Ke({preventDefault:function(){},deltaX:Nn?si:0,deltaY:Nn?0:si}),!0):!1}),he(Pt,Ji,function(Nn){Rn(function(si){return si+Nn})}),(0,Ue.Z)(function(){function Nn(hi){var pi=Zr&&hi.detail<0,mi=Br&&hi.detail>0;ci&&!pi&&!mi&&hi.preventDefault()}var si=Ji.current;return si.addEventListener("wheel",Ke,{passive:!1}),si.addEventListener("DOMMouseScroll",Mn,{passive:!0}),si.addEventListener("MozMousePixelScroll",Nn,{passive:!1}),function(){si.removeEventListener("wheel",Ke),si.removeEventListener("DOMMouseScroll",Mn),si.removeEventListener("MozMousePixelScroll",Nn)}},[ci,Zr,Br]),(0,Ue.Z)(function(){if(tn){var Nn=Po(ni);Fi(Nn),_i({x:Nn})}},[cn.width,tn]);var Ge=function(){var si,hi;(si=to.current)===null||si===void 0||si.delayHidden(),(hi=rn.current)===null||hi===void 0||hi.delayHidden()},Bt=Le(Ji,er,ir,Gt,Qn,function(){return ur(!0)},Rn,Ge);ie.useImperativeHandle(Ct,function(){return{nativeElement:fi.current,getScrollInfo:Yr,scrollTo:function(si){function hi(pi){return pi&&(0,ne.Z)(pi)==="object"&&("left"in pi||"top"in pi)}hi(si)?(si.left!==void 0&&Fi(Po(si.left)),Bt(si.top)):Bt(si)}}}),(0,Ue.Z)(function(){if(Gn){var Nn=er.slice($n,wi+1);Gn(Nn,er)}},[$n,wi,er]);var ti=Jt(er,Qn,ir,Gt),Kn=xi==null?void 0:xi({start:$n,end:wi,virtual:Pt,offsetX:ni,offsetY:dr,rtl:Ii,getSize:ti}),ui=ct(er,$n,wi,tn,ni,Pi,Te,un),Mi=null;bt&&(Mi=(0,ge.Z)((0,xe.Z)({},Se?"height":"maxHeight",bt),Fe),ci&&(Mi.overflowY="hidden",tn&&(Mi.overflowX="hidden"),Oe&&(Mi.pointerEvents="none")));var Ei={};return Ii&&(Ei.dir="rtl"),ie.createElement("div",(0,Mt.Z)({ref:fi,style:(0,ge.Z)((0,ge.Z)({},Be),{},{position:"relative"}),className:Jn},Ei,sn),ie.createElement(ve.Z,{onResize:kr},ie.createElement(On,{className:"".concat(kt,"-holder"),style:Mi,ref:Ji,onScroll:Cr,onMouseEnter:Ge},ie.createElement(et,{prefixCls:kt,height:Di,offsetX:ni,offsetY:dr,scrollWidth:tn,onInnerResize:ur,ref:Zi,innerProps:Ni,rtl:Ii,extra:Kn},ui))),Pt&&Di>bt&&ie.createElement(Ze,{ref:to,prefixCls:kt,scrollOffset:Ae,scrollRange:Di,rtl:Ii,onScroll:or,onStartMove:ai,onStopMove:qt,spinSize:Ki,containerSize:cn.height,style:ki==null?void 0:ki.verticalScrollBar,thumbStyle:ki==null?void 0:ki.verticalScrollBarThumb,showScrollBar:Qe}),Pt&&tn>cn.width&&ie.createElement(Ze,{ref:rn,prefixCls:kt,scrollOffset:ni,scrollRange:tn,rtl:Ii,onScroll:or,onStartMove:ai,onStopMove:qt,spinSize:gi,containerSize:cn.width,horizontal:!0,style:ki==null?void 0:ki.horizontalScrollBar,thumbStyle:ki==null?void 0:ki.horizontalScrollBarThumb,showScrollBar:Qe}))}var ue=ie.forwardRef(vn);ue.displayName="List";var Ve=ue,In=Ve},25510:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeW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ObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/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/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt403fpv956c/bRMnLWq33HyLnX7GGXb2OecEgLX/Vw+w9+32L7b88sv2Bdvi1ho9KgTPzglAaqYt9pbFwzbr2RhxQsoTdi+xM6jPwjJ6kTH24gsv2ZxwEuEIe+KJx+0jWFjuutuOPupIY4vw2mutE8DUK6+9arNxs4wwGz9pU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bTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hY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JSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(An,Un,Et){"use strict";An.exports=Et.p+"static/AssistantCode3.a8740efb.jpeg"},13014:function(An,Un,Et){"use strict";An.exports=Et.p+"static/yunying_code.7d649890.jpg"},93314:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo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="},55351:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAAAXNSR0IArs4c6QAAQABJREFUeAHs3QfYddlVF/AXHAt2saIoX+wVxAIIChM0ININRYzKKFFBggokFghk6KYQEgQFRBiBQEAgRIICUsaKWMBYscHYsPcGqFzXb0/+J+vu75R73++bCfq4nufe3dZea+21yzlrt3Nz8zi8cTlfWL/vrN/pify93uu93unLv/zLT3vwZV/2Zafv//2//yLHz/pZP+v0j//xP97LcvrNv/k3L/jk/+2//bfv4v/Tf/pPT7/kl/ySJc8P/IE/8PQn/sSfOMvzB/7AH1jS13Ty83/+zz/983/+z5c8/+E//IfTr/gVv2I3z0znV//qX336b//tvy00Zs//+B//4/TO7/zOuzR//a//9af/9b/+15L1z/7ZP3v6MT/mx+zmmeWYw7/m1/ya03//7/99oTl7yPyO7/iOZzw+/dM/fUY7C5PrR/7IH7nk+Yk/8See/tbf+lsLzv/8n//z9D7v8z5L+izTWviX/tJfevpn/+yfLTT+43/8j6d3eId3WGhob5/5mZ+5pPN87ud+7pK+RnOO0xa1yT3Qpl//9V//KroznwvD+mj11TfQZ28eqB/Pq+v3hvX7//D/NfD/NfB9WwNvVOK9383Nd73jG7zBG7zZ61fgBfX7PtV5a6S7+d//+38vauz+JXLy1Og3xRwHO916gt3UaH2cqWF87/d+7833+37fb4nhv5YG/E5jIfYazyU0lb3TEO5lm2leEkbjgQeM7+sgbdZ5l2Etl/QuF3+n0ctKL9fqco2nuM5jLbyV7/t2/OkNv/u7v+cFaujBCKpSfsSP+BE39cpwoxPdD9DI67Xmpl6PLib3g37QD7qp16uRhxw/7sf9uKWBCvuh+T3f8z1LJdcr3cX0IWosP/bH/thBW0P5AT/gB9zUK+PNv/pX/2qhg8+P//E/fgnPnh/1o37Uzb/5N/9mif5P/+k/DZlEoCn/EXzXd33Xzb/4F//ipkbTVdTv/u7vvqnX6NW0REr/zu/8zkVH//k//+dRLmUiR+qg6+uH//A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OxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},54751:function(An,Un,Et){var Mt=Et(70277);function ne(ge,xe,ee){return(xe=Mt(xe))in ge?Object.defineProperty(ge,xe,{value:ee,enumerable:!0,configurable:!0,writable:!0}):ge[xe]=ee,ge}An.exports=ne,An.exports.__esModule=!0,An.exports.default=An.exports},8219:function(An){function Un(Et){return Et&&Et.__esModule?Et:{default:Et}}An.exports=Un,An.exports.__esModule=!0,An.exports.default=An.exports},56495:function(An,Un,Et){var Mt=Et(54751);function ne(xe,ee){var Ht=Object.keys(xe);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(xe);ee&&(oe=oe.filter(function(Re){return Object.getOwnPropertyDescriptor(xe,Re).enumerable})),Ht.push.apply(Ht,oe)}return Ht}function ge(xe){for(var ee=1;ee<arguments.length;ee++){var Ht=arguments[ee]!=null?arguments[ee]:{};ee%2?ne(Object(Ht),!0).forEach(function(oe){Mt(xe,oe,Ht[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Ht)):ne(Object(Ht)).forEach(function(oe){Object.defineProperty(xe,oe,Object.getOwnPropertyDescriptor(Ht,oe))})}return xe}An.exports=ge,An.exports.__esModule=!0,An.exports.default=An.exports},53659:function(An,Un,Et){var Mt=Et(85163).default;function ne(ge,xe){if(Mt(ge)!="object"||!ge)return ge;var ee=ge[Symbol.toPrimitive];if(ee!==void 0){var Ht=ee.call(ge,xe||"default");if(Mt(Ht)!="object")return Ht;throw new TypeError("@@toPrimitive must return a primitive value.")}return(xe==="string"?String:Number)(ge)}An.exports=ne,An.exports.__esModule=!0,An.exports.default=An.exports},70277:function(An,Un,Et){var Mt=Et(85163).default,ne=Et(53659);function ge(xe){var ee=ne(xe,"string");return Mt(ee)=="symbol"?ee:ee+""}An.exports=ge,An.exports.__esModule=!0,An.exports.default=An.exports},16722:function(An,Un,Et){"use strict";Et.d(Un,{Z:function(){return Re}});const Mt=ve=>typeof ve=="object"&&ve!=null&&ve.nodeType===1,ne=(ve,Tt)=>(!Tt||ve!=="hidden")&&ve!=="visible"&&ve!=="clip",ge=(ve,Tt)=>{if(ve.clientHeight<ve.scrollHeight||ve.clientWidth<ve.scrollWidth){const Ue=getComputedStyle(ve,null);return ne(Ue.overflowY,Tt)||ne(Ue.overflowX,Tt)||(ie=>{const Je=(Ot=>{if(!Ot.ownerDocument||!Ot.ownerDocument.defaultView)return null;try{return Ot.ownerDocument.defaultView.frameElement}catch(et){return null}})(ie);return!!Je&&(Je.clientHeight<ie.scrollHeight||Je.clientWidth<ie.scrollWidth)})(ve)}return!1},xe=(ve,Tt,Ue,ie,Je,Ot,et,nt)=>Ot<ve&&et>Tt||Ot>ve&&et<Tt?0:Ot<=ve&&nt<=Ue||et>=Tt&&nt>=Ue?Ot-ve-ie:et>Tt&&nt<Ue||Ot<ve&&nt>Ue?et-Tt+Je:0,ee=ve=>{const Tt=ve.parentElement;return Tt==null?ve.getRootNode().host||null:Tt},Ht=(ve,Tt)=>{var Ue,ie,Je,Ot;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ct,boundary:lt,skipOverflowHiddenElements:gt}=Tt,mt=typeof lt=="function"?lt:Ze=>Ze!==lt;if(!Mt(ve))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,wt=[];let zt=ve;for(;Mt(zt)&&mt(zt);){if(zt=ee(zt),zt===St){wt.push(zt);break}zt!=null&&zt===document.body&&ge(zt)&&!ge(document.documentElement)||zt!=null&&ge(zt,gt)&&wt.push(zt)}const Wt=(ie=(Ue=window.visualViewport)==null?void 0:Ue.width)!=null?ie:innerWidth,$t=(Ot=(Je=window.visualViewport)==null?void 0:Je.height)!=null?Ot:innerHeight,{scrollX:Jt,scrollY:Vt}=window,{height:pe,width:ce,top:Ee,right:Ie,bottom:ke,left:wn}=ve.getBoundingClientRect(),{top:on,right:qe,bottom:We,left:he}=(Ze=>{const Ce=window.getComputedStyle(Ze);return{top:parseFloat(Ce.scrollMarginTop)||0,right:parseFloat(Ce.scrollMarginRight)||0,bottom:parseFloat(Ce.scrollMarginBottom)||0,left:parseFloat(Ce.scrollMarginLeft)||0}})(ve);let It=nt==="start"||nt==="nearest"?Ee-on:nt==="end"?ke+We:Ee+pe/2-on+We,Le=ct==="center"?wn+ce/2-he+qe:ct==="end"?Ie+qe:wn-he;const an=[];for(let Ze=0;Ze<wt.length;Ze++){const Ce=wt[Ze],{height:nn,width:Ye,top:Sn,right:Fe,bottom:vn,left:ue}=Ce.getBoundingClientRect();if(et==="if-needed"&&Ee>=0&&wn>=0&&ke<=$t&&Ie<=Wt&&(Ce===St&&!ge(Ce)||Ee>=Sn&&ke<=vn&&wn>=ue&&Ie<=Fe))return an;const Ve=getComputedStyle(Ce),In=parseInt(Ve.borderLeftWidth,10),Dt=parseInt(Ve.borderTopWidth,10),Ct=parseInt(Ve.borderRightWidth,10),yt=parseInt(Ve.borderBottomWidth,10);let kt=0,jt=0;const bt="offsetWidth"in Ce?Ce.offsetWidth-Ce.clientWidth-In-Ct:0,Gt="offsetHeight"in Ce?Ce.offsetHeight-Ce.clientHeight-Dt-yt:0,fe="offsetWidth"in Ce?Ce.offsetWidth===0?0:Ye/Ce.offsetWidth:0,Se="offsetHeight"in Ce?Ce.offsetHeight===0?0:nn/Ce.offsetHeight:0;if(St===Ce)kt=nt==="start"?It:nt==="end"?It-$t:nt==="nearest"?xe(Vt,Vt+$t,$t,Dt,yt,Vt+It,Vt+It+pe,pe):It-$t/2,jt=ct==="start"?Le:ct==="center"?Le-Wt/2:ct==="end"?Le-Wt:xe(Jt,Jt+Wt,Wt,In,Ct,Jt+Le,Jt+Le+ce,ce),kt=Math.max(0,kt+Vt),jt=Math.max(0,jt+Jt);else{kt=nt==="start"?It-Sn-Dt:nt==="end"?It-vn+yt+Gt:nt==="nearest"?xe(Sn,vn,nn,Dt,yt+Gt,It,It+pe,pe):It-(Sn+nn/2)+Gt/2,jt=ct==="start"?Le-ue-In:ct==="center"?Le-(ue+Ye/2)+bt/2:ct==="end"?Le-Fe+Ct+bt:xe(ue,Fe,Ye,In,Ct+bt,Le,Le+ce,ce);const{scrollLeft:Be,scrollTop:re}=Ce;kt=Se===0?0:Math.max(0,Math.min(re+kt/Se,Ce.scrollHeight-nn/Se+Gt)),jt=fe===0?0:Math.max(0,Math.min(Be+jt/fe,Ce.scrollWidth-Ye/fe+bt)),It+=re-kt,Le+=Be-jt}an.push({el:Ce,top:kt,left:jt})}return an},oe=ve=>ve===!1?{block:"end",inline:"nearest"}:(Tt=>Tt===Object(Tt)&&Object.keys(Tt).length!==0)(ve)?ve:{block:"start",inline:"nearest"};function Re(ve,Tt){if(!ve.isConnected||!(Je=>{let Ot=Je;for(;Ot&&Ot.parentNode;){if(Ot.parentNode===document)return!0;Ot=Ot.parentNode instanceof ShadowRoot?Ot.parentNode.host:Ot.parentNode}return!1})(ve))return;const Ue=(Je=>{const Ot=window.getComputedStyle(Je);return{top:parseFloat(Ot.scrollMarginTop)||0,right:parseFloat(Ot.scrollMarginRight)||0,bottom:parseFloat(Ot.scrollMarginBottom)||0,left:parseFloat(Ot.scrollMarginLeft)||0}})(ve);if((Je=>typeof Je=="object"&&typeof Je.behavior=="function")(Tt))return Tt.behavior(Ht(ve,Tt));const ie=typeof Tt=="boolean"||Tt==null?void 0:Tt.behavior;for(const{el:Je,top:Ot,left:et}of Ht(ve,oe(Tt))){const nt=Ot-Ue.top+Ue.bottom,ct=et-Ue.left+Ue.right;Je.scroll({top:nt,left:ct,behavior:ie})}}}}]);
|